diff --git a/pkgs/appengine/.gitignore b/pkgs/appengine/.gitignore index 6c862f08..ce4589be 100644 --- a/pkgs/appengine/.gitignore +++ b/pkgs/appengine/.gitignore @@ -2,3 +2,4 @@ .packages .pub/ pubspec.lock +tmp/ diff --git a/pkgs/appengine/CHANGELOG.md b/pkgs/appengine/CHANGELOG.md index 4e1bd544..678da17f 100644 --- a/pkgs/appengine/CHANGELOG.md +++ b/pkgs/appengine/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.13.8 + * Require `package:protobuf` ^3.1.0. + ## 0.13.7 * Widen dependency constraint on `package:http`. diff --git a/pkgs/appengine/README.md b/pkgs/appengine/README.md index 327a99b0..ab0b7f33 100644 --- a/pkgs/appengine/README.md +++ b/pkgs/appengine/README.md @@ -166,3 +166,8 @@ This will perform a remote docker build in the cloud and deploy a new version. You can find the URL to the version that got deployed in the output of `gcloud app deploy` (as well as via the [Cloud Console](https://console.cloud.google.com) under `AppEngine > Versions`). + +## Regenerating protobuf + +You need to have protoc in `$PATH`. +Run the `tool/fetch_protos_and_regenerate_dart.sh` script. It will fetch the latest protos and compile them for dart using the protoc_plugin in `dev_dependencies`. diff --git a/pkgs/appengine/analysis_options.yaml b/pkgs/appengine/analysis_options.yaml index 8324814b..7370d6f3 100644 --- a/pkgs/appengine/analysis_options.yaml +++ b/pkgs/appengine/analysis_options.yaml @@ -4,3 +4,6 @@ analyzer: errors: # This is triggered in generated code. unnecessary_import: ignore + + exclude: + - tmp/** \ No newline at end of file diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pb.dart index 4264b36e..72474b40 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pb.dart @@ -1,29 +1,33 @@ -/// +// // Generated code. Do not modify. // source: google/api/annotations.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'http.pb.dart' as $0; +import 'http.pb.dart' as $55; class Annotations { - static final http = $pb.Extension<$0.HttpRule>( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.MethodOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'http', + static final http = $pb.Extension<$55.HttpRule>( + _omitMessageNames ? '' : 'google.protobuf.MethodOptions', + _omitFieldNames ? '' : 'http', 72295728, $pb.PbFieldType.OM, - defaultOrMaker: $0.HttpRule.getDefault, - subBuilder: $0.HttpRule.create); + defaultOrMaker: $55.HttpRule.getDefault, + subBuilder: $55.HttpRule.create); static void registerAllExtensions($pb.ExtensionRegistry registry) { registry.add(http); } } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pbenum.dart index 512e1e7c..2edb4101 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/annotations.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pbjson.dart index 036634be..56d3cf31 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/annotations.pbjson.dart @@ -1,10 +1,14 @@ -/// +// // Generated code. Do not modify. // source: google/api/annotations.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pb.dart new file mode 100644 index 00000000..1c99d4a8 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pb.dart @@ -0,0 +1,908 @@ +// +// Generated code. Do not modify. +// source: google/api/apikeys/v2/apikeys.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/field_mask.pb.dart' as $58; +import 'resources.pb.dart' as $30; + +/// Request message for `CreateKey` method. +class CreateKeyRequest extends $pb.GeneratedMessage { + factory CreateKeyRequest({ + $core.String? parent, + $30.Key? key, + $core.String? keyId, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (key != null) { + $result.key = key; + } + if (keyId != null) { + $result.keyId = keyId; + } + return $result; + } + CreateKeyRequest._() : super(); + factory CreateKeyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CreateKeyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateKeyRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$30.Key>(2, _omitFieldNames ? '' : 'key', subBuilder: $30.Key.create) + ..aOS(3, _omitFieldNames ? '' : 'keyId') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CreateKeyRequest clone() => CreateKeyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CreateKeyRequest copyWith(void Function(CreateKeyRequest) updates) => + super.copyWith((message) => updates(message as CreateKeyRequest)) + as CreateKeyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CreateKeyRequest create() => CreateKeyRequest._(); + CreateKeyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CreateKeyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CreateKeyRequest? _defaultInstance; + + /// Required. The project in which the API key is created. + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// Required. The API key fields to set at creation time. + /// You can configure only the `display_name`, `restrictions`, and + /// `annotations` fields. + @$pb.TagNumber(2) + $30.Key get key => $_getN(1); + @$pb.TagNumber(2) + set key($30.Key v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasKey() => $_has(1); + @$pb.TagNumber(2) + void clearKey() => clearField(2); + @$pb.TagNumber(2) + $30.Key ensureKey() => $_ensure(1); + + /// User specified key id (optional). If specified, it will become the final + /// component of the key resource name. + /// + /// The id must be unique within the project, must conform with RFC-1034, + /// is restricted to lower-cased letters, and has a maximum length of 63 + /// characters. In another word, the id must match the regular + /// expression: `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + /// + /// The id must NOT be a UUID-like string. + @$pb.TagNumber(3) + $core.String get keyId => $_getSZ(2); + @$pb.TagNumber(3) + set keyId($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasKeyId() => $_has(2); + @$pb.TagNumber(3) + void clearKeyId() => clearField(3); +} + +/// Request message for `ListKeys` method. +class ListKeysRequest extends $pb.GeneratedMessage { + factory ListKeysRequest({ + $core.String? parent, + $core.int? pageSize, + $core.String? pageToken, + $core.bool? showDeleted, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (pageSize != null) { + $result.pageSize = pageSize; + } + if (pageToken != null) { + $result.pageToken = pageToken; + } + if (showDeleted != null) { + $result.showDeleted = showDeleted; + } + return $result; + } + ListKeysRequest._() : super(); + factory ListKeysRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListKeysRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListKeysRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..aOB(6, _omitFieldNames ? '' : 'showDeleted') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListKeysRequest clone() => ListKeysRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListKeysRequest copyWith(void Function(ListKeysRequest) updates) => + super.copyWith((message) => updates(message as ListKeysRequest)) + as ListKeysRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListKeysRequest create() => ListKeysRequest._(); + ListKeysRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListKeysRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListKeysRequest? _defaultInstance; + + /// Required. Lists all API keys associated with this project. + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// Optional. Specifies the maximum number of results to be returned at a time. + @$pb.TagNumber(2) + $core.int get pageSize => $_getIZ(1); + @$pb.TagNumber(2) + set pageSize($core.int v) { + $_setSignedInt32(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPageSize() => $_has(1); + @$pb.TagNumber(2) + void clearPageSize() => clearField(2); + + /// Optional. Requests a specific page of results. + @$pb.TagNumber(3) + $core.String get pageToken => $_getSZ(2); + @$pb.TagNumber(3) + set pageToken($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasPageToken() => $_has(2); + @$pb.TagNumber(3) + void clearPageToken() => clearField(3); + + /// Optional. Indicate that keys deleted in the past 30 days should also be + /// returned. + @$pb.TagNumber(6) + $core.bool get showDeleted => $_getBF(3); + @$pb.TagNumber(6) + set showDeleted($core.bool v) { + $_setBool(3, v); + } + + @$pb.TagNumber(6) + $core.bool hasShowDeleted() => $_has(3); + @$pb.TagNumber(6) + void clearShowDeleted() => clearField(6); +} + +/// Response message for `ListKeys` method. +class ListKeysResponse extends $pb.GeneratedMessage { + factory ListKeysResponse({ + $core.Iterable<$30.Key>? keys, + $core.String? nextPageToken, + }) { + final $result = create(); + if (keys != null) { + $result.keys.addAll(keys); + } + if (nextPageToken != null) { + $result.nextPageToken = nextPageToken; + } + return $result; + } + ListKeysResponse._() : super(); + factory ListKeysResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListKeysResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListKeysResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..pc<$30.Key>(1, _omitFieldNames ? '' : 'keys', $pb.PbFieldType.PM, + subBuilder: $30.Key.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListKeysResponse clone() => ListKeysResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListKeysResponse copyWith(void Function(ListKeysResponse) updates) => + super.copyWith((message) => updates(message as ListKeysResponse)) + as ListKeysResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListKeysResponse create() => ListKeysResponse._(); + ListKeysResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListKeysResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListKeysResponse? _defaultInstance; + + /// A list of API keys. + @$pb.TagNumber(1) + $core.List<$30.Key> get keys => $_getList(0); + + /// The pagination token for the next page of results. + @$pb.TagNumber(2) + $core.String get nextPageToken => $_getSZ(1); + @$pb.TagNumber(2) + set nextPageToken($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasNextPageToken() => $_has(1); + @$pb.TagNumber(2) + void clearNextPageToken() => clearField(2); +} + +/// Request message for `GetKey` method. +class GetKeyRequest extends $pb.GeneratedMessage { + factory GetKeyRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + GetKeyRequest._() : super(); + factory GetKeyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetKeyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetKeyRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetKeyRequest clone() => GetKeyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetKeyRequest copyWith(void Function(GetKeyRequest) updates) => + super.copyWith((message) => updates(message as GetKeyRequest)) + as GetKeyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetKeyRequest create() => GetKeyRequest._(); + GetKeyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetKeyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetKeyRequest? _defaultInstance; + + /// Required. The resource name of the API key to get. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// Request message for `GetKeyString` method. +class GetKeyStringRequest extends $pb.GeneratedMessage { + factory GetKeyStringRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + GetKeyStringRequest._() : super(); + factory GetKeyStringRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetKeyStringRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetKeyStringRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetKeyStringRequest clone() => GetKeyStringRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetKeyStringRequest copyWith(void Function(GetKeyStringRequest) updates) => + super.copyWith((message) => updates(message as GetKeyStringRequest)) + as GetKeyStringRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetKeyStringRequest create() => GetKeyStringRequest._(); + GetKeyStringRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetKeyStringRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetKeyStringRequest? _defaultInstance; + + /// Required. The resource name of the API key to be retrieved. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// Response message for `GetKeyString` method. +class GetKeyStringResponse extends $pb.GeneratedMessage { + factory GetKeyStringResponse({ + $core.String? keyString, + }) { + final $result = create(); + if (keyString != null) { + $result.keyString = keyString; + } + return $result; + } + GetKeyStringResponse._() : super(); + factory GetKeyStringResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetKeyStringResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetKeyStringResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'keyString') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetKeyStringResponse clone() => + GetKeyStringResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetKeyStringResponse copyWith(void Function(GetKeyStringResponse) updates) => + super.copyWith((message) => updates(message as GetKeyStringResponse)) + as GetKeyStringResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetKeyStringResponse create() => GetKeyStringResponse._(); + GetKeyStringResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetKeyStringResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetKeyStringResponse? _defaultInstance; + + /// An encrypted and signed value of the key. + @$pb.TagNumber(1) + $core.String get keyString => $_getSZ(0); + @$pb.TagNumber(1) + set keyString($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasKeyString() => $_has(0); + @$pb.TagNumber(1) + void clearKeyString() => clearField(1); +} + +/// Request message for `UpdateKey` method. +class UpdateKeyRequest extends $pb.GeneratedMessage { + factory UpdateKeyRequest({ + $30.Key? key, + $58.FieldMask? updateMask, + }) { + final $result = create(); + if (key != null) { + $result.key = key; + } + if (updateMask != null) { + $result.updateMask = updateMask; + } + return $result; + } + UpdateKeyRequest._() : super(); + factory UpdateKeyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdateKeyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateKeyRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOM<$30.Key>(1, _omitFieldNames ? '' : 'key', subBuilder: $30.Key.create) + ..aOM<$58.FieldMask>(2, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') + UpdateKeyRequest clone() => UpdateKeyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateKeyRequest copyWith(void Function(UpdateKeyRequest) updates) => + super.copyWith((message) => updates(message as UpdateKeyRequest)) + as UpdateKeyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdateKeyRequest create() => UpdateKeyRequest._(); + UpdateKeyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UpdateKeyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static UpdateKeyRequest? _defaultInstance; + + /// Required. Set the `name` field to the resource name of the API key to be + /// updated. You can update only the `display_name`, `restrictions`, and + /// `annotations` fields. + @$pb.TagNumber(1) + $30.Key get key => $_getN(0); + @$pb.TagNumber(1) + set key($30.Key v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasKey() => $_has(0); + @$pb.TagNumber(1) + void clearKey() => clearField(1); + @$pb.TagNumber(1) + $30.Key ensureKey() => $_ensure(0); + + /// The field mask specifies which fields to be updated as part of this + /// request. All other fields are ignored. + /// Mutable fields are: `display_name`, `restrictions`, and `annotations`. + /// If an update mask is not provided, the service treats it as an implied mask + /// equivalent to all allowed fields that are set on the wire. If the field + /// mask has a special value "*", the service treats it equivalent to replace + /// all allowed mutable fields. + @$pb.TagNumber(2) + $58.FieldMask get updateMask => $_getN(1); + @$pb.TagNumber(2) + set updateMask($58.FieldMask v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasUpdateMask() => $_has(1); + @$pb.TagNumber(2) + void clearUpdateMask() => clearField(2); + @$pb.TagNumber(2) + $58.FieldMask ensureUpdateMask() => $_ensure(1); +} + +/// Request message for `DeleteKey` method. +class DeleteKeyRequest extends $pb.GeneratedMessage { + factory DeleteKeyRequest({ + $core.String? name, + $core.String? etag, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (etag != null) { + $result.etag = etag; + } + return $result; + } + DeleteKeyRequest._() : super(); + factory DeleteKeyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DeleteKeyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteKeyRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'etag') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeleteKeyRequest clone() => DeleteKeyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeleteKeyRequest copyWith(void Function(DeleteKeyRequest) updates) => + super.copyWith((message) => updates(message as DeleteKeyRequest)) + as DeleteKeyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DeleteKeyRequest create() => DeleteKeyRequest._(); + DeleteKeyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DeleteKeyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static DeleteKeyRequest? _defaultInstance; + + /// Required. The resource name of the API key to be deleted. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Optional. The etag known to the client for the expected state of the key. + /// This is to be used for optimistic concurrency. + @$pb.TagNumber(2) + $core.String get etag => $_getSZ(1); + @$pb.TagNumber(2) + set etag($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasEtag() => $_has(1); + @$pb.TagNumber(2) + void clearEtag() => clearField(2); +} + +/// Request message for `UndeleteKey` method. +class UndeleteKeyRequest extends $pb.GeneratedMessage { + factory UndeleteKeyRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + UndeleteKeyRequest._() : super(); + factory UndeleteKeyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UndeleteKeyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UndeleteKeyRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + UndeleteKeyRequest clone() => UndeleteKeyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UndeleteKeyRequest copyWith(void Function(UndeleteKeyRequest) updates) => + super.copyWith((message) => updates(message as UndeleteKeyRequest)) + as UndeleteKeyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UndeleteKeyRequest create() => UndeleteKeyRequest._(); + UndeleteKeyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UndeleteKeyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static UndeleteKeyRequest? _defaultInstance; + + /// Required. The resource name of the API key to be undeleted. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// Request message for `LookupKey` method. +class LookupKeyRequest extends $pb.GeneratedMessage { + factory LookupKeyRequest({ + $core.String? keyString, + }) { + final $result = create(); + if (keyString != null) { + $result.keyString = keyString; + } + return $result; + } + LookupKeyRequest._() : super(); + factory LookupKeyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory LookupKeyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LookupKeyRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'keyString') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + LookupKeyRequest clone() => LookupKeyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + LookupKeyRequest copyWith(void Function(LookupKeyRequest) updates) => + super.copyWith((message) => updates(message as LookupKeyRequest)) + as LookupKeyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static LookupKeyRequest create() => LookupKeyRequest._(); + LookupKeyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static LookupKeyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static LookupKeyRequest? _defaultInstance; + + /// Required. Finds the project that owns the key string value. + @$pb.TagNumber(1) + $core.String get keyString => $_getSZ(0); + @$pb.TagNumber(1) + set keyString($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasKeyString() => $_has(0); + @$pb.TagNumber(1) + void clearKeyString() => clearField(1); +} + +/// Response message for `LookupKey` method. +class LookupKeyResponse extends $pb.GeneratedMessage { + factory LookupKeyResponse({ + $core.String? parent, + $core.String? name, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (name != null) { + $result.name = name; + } + return $result; + } + LookupKeyResponse._() : super(); + factory LookupKeyResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory LookupKeyResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LookupKeyResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + LookupKeyResponse clone() => LookupKeyResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + LookupKeyResponse copyWith(void Function(LookupKeyResponse) updates) => + super.copyWith((message) => updates(message as LookupKeyResponse)) + as LookupKeyResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static LookupKeyResponse create() => LookupKeyResponse._(); + LookupKeyResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static LookupKeyResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static LookupKeyResponse? _defaultInstance; + + /// The project that owns the key with the value specified in the request. + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// The resource name of the API key. If the API key has been purged, + /// resource name is empty. + @$pb.TagNumber(2) + $core.String get name => $_getSZ(1); + @$pb.TagNumber(2) + set name($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasName() => $_has(1); + @$pb.TagNumber(2) + void clearName() => clearField(2); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pbenum.dart new file mode 100644 index 00000000..cc87da73 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/api/apikeys/v2/apikeys.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pbgrpc.dart new file mode 100644 index 00000000..afed6baa --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pbgrpc.dart @@ -0,0 +1,241 @@ +// +// Generated code. Do not modify. +// source: google/api/apikeys/v2/apikeys.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; +import 'dart:core' as $core; + +import 'package:grpc/service_api.dart' as $grpc; +import 'package:protobuf/protobuf.dart' as $pb; + +import '../../../longrunning/operations.pb.dart' as $0; +import 'apikeys.pb.dart' as $29; +import 'resources.pb.dart' as $30; + +export 'apikeys.pb.dart'; + +@$pb.GrpcServiceName('google.api.apikeys.v2.ApiKeys') +class ApiKeysClient extends $grpc.Client { + static final _$createKey = + $grpc.ClientMethod<$29.CreateKeyRequest, $0.Operation>( + '/google.api.apikeys.v2.ApiKeys/CreateKey', + ($29.CreateKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$listKeys = + $grpc.ClientMethod<$29.ListKeysRequest, $29.ListKeysResponse>( + '/google.api.apikeys.v2.ApiKeys/ListKeys', + ($29.ListKeysRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $29.ListKeysResponse.fromBuffer(value)); + static final _$getKey = $grpc.ClientMethod<$29.GetKeyRequest, $30.Key>( + '/google.api.apikeys.v2.ApiKeys/GetKey', + ($29.GetKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $30.Key.fromBuffer(value)); + static final _$getKeyString = + $grpc.ClientMethod<$29.GetKeyStringRequest, $29.GetKeyStringResponse>( + '/google.api.apikeys.v2.ApiKeys/GetKeyString', + ($29.GetKeyStringRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $29.GetKeyStringResponse.fromBuffer(value)); + static final _$updateKey = + $grpc.ClientMethod<$29.UpdateKeyRequest, $0.Operation>( + '/google.api.apikeys.v2.ApiKeys/UpdateKey', + ($29.UpdateKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$deleteKey = + $grpc.ClientMethod<$29.DeleteKeyRequest, $0.Operation>( + '/google.api.apikeys.v2.ApiKeys/DeleteKey', + ($29.DeleteKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$undeleteKey = + $grpc.ClientMethod<$29.UndeleteKeyRequest, $0.Operation>( + '/google.api.apikeys.v2.ApiKeys/UndeleteKey', + ($29.UndeleteKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$lookupKey = + $grpc.ClientMethod<$29.LookupKeyRequest, $29.LookupKeyResponse>( + '/google.api.apikeys.v2.ApiKeys/LookupKey', + ($29.LookupKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $29.LookupKeyResponse.fromBuffer(value)); + + ApiKeysClient($grpc.ClientChannel channel, + {$grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors}) + : super(channel, options: options, interceptors: interceptors); + + $grpc.ResponseFuture<$0.Operation> createKey($29.CreateKeyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$createKey, request, options: options); + } + + $grpc.ResponseFuture<$29.ListKeysResponse> listKeys( + $29.ListKeysRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$listKeys, request, options: options); + } + + $grpc.ResponseFuture<$30.Key> getKey($29.GetKeyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getKey, request, options: options); + } + + $grpc.ResponseFuture<$29.GetKeyStringResponse> getKeyString( + $29.GetKeyStringRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getKeyString, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> updateKey($29.UpdateKeyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$updateKey, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> deleteKey($29.DeleteKeyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$deleteKey, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> undeleteKey($29.UndeleteKeyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$undeleteKey, request, options: options); + } + + $grpc.ResponseFuture<$29.LookupKeyResponse> lookupKey( + $29.LookupKeyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$lookupKey, request, options: options); + } +} + +@$pb.GrpcServiceName('google.api.apikeys.v2.ApiKeys') +abstract class ApiKeysServiceBase extends $grpc.Service { + $core.String get $name => 'google.api.apikeys.v2.ApiKeys'; + + ApiKeysServiceBase() { + $addMethod($grpc.ServiceMethod<$29.CreateKeyRequest, $0.Operation>( + 'CreateKey', + createKey_Pre, + false, + false, + ($core.List<$core.int> value) => $29.CreateKeyRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$29.ListKeysRequest, $29.ListKeysResponse>( + 'ListKeys', + listKeys_Pre, + false, + false, + ($core.List<$core.int> value) => $29.ListKeysRequest.fromBuffer(value), + ($29.ListKeysResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$29.GetKeyRequest, $30.Key>( + 'GetKey', + getKey_Pre, + false, + false, + ($core.List<$core.int> value) => $29.GetKeyRequest.fromBuffer(value), + ($30.Key value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$29.GetKeyStringRequest, $29.GetKeyStringResponse>( + 'GetKeyString', + getKeyString_Pre, + false, + false, + ($core.List<$core.int> value) => + $29.GetKeyStringRequest.fromBuffer(value), + ($29.GetKeyStringResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$29.UpdateKeyRequest, $0.Operation>( + 'UpdateKey', + updateKey_Pre, + false, + false, + ($core.List<$core.int> value) => $29.UpdateKeyRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$29.DeleteKeyRequest, $0.Operation>( + 'DeleteKey', + deleteKey_Pre, + false, + false, + ($core.List<$core.int> value) => $29.DeleteKeyRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$29.UndeleteKeyRequest, $0.Operation>( + 'UndeleteKey', + undeleteKey_Pre, + false, + false, + ($core.List<$core.int> value) => + $29.UndeleteKeyRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$29.LookupKeyRequest, $29.LookupKeyResponse>( + 'LookupKey', + lookupKey_Pre, + false, + false, + ($core.List<$core.int> value) => $29.LookupKeyRequest.fromBuffer(value), + ($29.LookupKeyResponse value) => value.writeToBuffer())); + } + + $async.Future<$0.Operation> createKey_Pre($grpc.ServiceCall call, + $async.Future<$29.CreateKeyRequest> request) async { + return createKey(call, await request); + } + + $async.Future<$29.ListKeysResponse> listKeys_Pre($grpc.ServiceCall call, + $async.Future<$29.ListKeysRequest> request) async { + return listKeys(call, await request); + } + + $async.Future<$30.Key> getKey_Pre( + $grpc.ServiceCall call, $async.Future<$29.GetKeyRequest> request) async { + return getKey(call, await request); + } + + $async.Future<$29.GetKeyStringResponse> getKeyString_Pre( + $grpc.ServiceCall call, + $async.Future<$29.GetKeyStringRequest> request) async { + return getKeyString(call, await request); + } + + $async.Future<$0.Operation> updateKey_Pre($grpc.ServiceCall call, + $async.Future<$29.UpdateKeyRequest> request) async { + return updateKey(call, await request); + } + + $async.Future<$0.Operation> deleteKey_Pre($grpc.ServiceCall call, + $async.Future<$29.DeleteKeyRequest> request) async { + return deleteKey(call, await request); + } + + $async.Future<$0.Operation> undeleteKey_Pre($grpc.ServiceCall call, + $async.Future<$29.UndeleteKeyRequest> request) async { + return undeleteKey(call, await request); + } + + $async.Future<$29.LookupKeyResponse> lookupKey_Pre($grpc.ServiceCall call, + $async.Future<$29.LookupKeyRequest> request) async { + return lookupKey(call, await request); + } + + $async.Future<$0.Operation> createKey( + $grpc.ServiceCall call, $29.CreateKeyRequest request); + $async.Future<$29.ListKeysResponse> listKeys( + $grpc.ServiceCall call, $29.ListKeysRequest request); + $async.Future<$30.Key> getKey( + $grpc.ServiceCall call, $29.GetKeyRequest request); + $async.Future<$29.GetKeyStringResponse> getKeyString( + $grpc.ServiceCall call, $29.GetKeyStringRequest request); + $async.Future<$0.Operation> updateKey( + $grpc.ServiceCall call, $29.UpdateKeyRequest request); + $async.Future<$0.Operation> deleteKey( + $grpc.ServiceCall call, $29.DeleteKeyRequest request); + $async.Future<$0.Operation> undeleteKey( + $grpc.ServiceCall call, $29.UndeleteKeyRequest request); + $async.Future<$29.LookupKeyResponse> lookupKey( + $grpc.ServiceCall call, $29.LookupKeyRequest request); +} diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pbjson.dart new file mode 100644 index 00000000..ce0a17e6 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/apikeys.pbjson.dart @@ -0,0 +1,198 @@ +// +// Generated code. Do not modify. +// source: google/api/apikeys/v2/apikeys.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 createKeyRequestDescriptor instead') +const CreateKeyRequest$json = { + '1': 'CreateKeyRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + { + '1': 'key', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.api.apikeys.v2.Key', + '8': {}, + '10': 'key' + }, + {'1': 'key_id', '3': 3, '4': 1, '5': 9, '10': 'keyId'}, + ], +}; + +/// Descriptor for `CreateKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List createKeyRequestDescriptor = $convert.base64Decode( + 'ChBDcmVhdGVLZXlSZXF1ZXN0EjoKBnBhcmVudBgBIAEoCUIi4EEC+kEcEhphcGlrZXlzLmdvb2' + 'dsZWFwaXMuY29tL0tleVIGcGFyZW50EjEKA2tleRgCIAEoCzIaLmdvb2dsZS5hcGkuYXBpa2V5' + 'cy52Mi5LZXlCA+BBAlIDa2V5EhUKBmtleV9pZBgDIAEoCVIFa2V5SWQ='); + +@$core.Deprecated('Use listKeysRequestDescriptor instead') +const ListKeysRequest$json = { + '1': 'ListKeysRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + {'1': 'page_size', '3': 2, '4': 1, '5': 5, '8': {}, '10': 'pageSize'}, + {'1': 'page_token', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'pageToken'}, + {'1': 'show_deleted', '3': 6, '4': 1, '5': 8, '8': {}, '10': 'showDeleted'}, + ], +}; + +/// Descriptor for `ListKeysRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listKeysRequestDescriptor = $convert.base64Decode( + 'Cg9MaXN0S2V5c1JlcXVlc3QSOgoGcGFyZW50GAEgASgJQiLgQQL6QRwSGmFwaWtleXMuZ29vZ2' + 'xlYXBpcy5jb20vS2V5UgZwYXJlbnQSIAoJcGFnZV9zaXplGAIgASgFQgPgQQFSCHBhZ2VTaXpl' + 'EiIKCnBhZ2VfdG9rZW4YAyABKAlCA+BBAVIJcGFnZVRva2VuEiYKDHNob3dfZGVsZXRlZBgGIA' + 'EoCEID4EEBUgtzaG93RGVsZXRlZA=='); + +@$core.Deprecated('Use listKeysResponseDescriptor instead') +const ListKeysResponse$json = { + '1': 'ListKeysResponse', + '2': [ + { + '1': 'keys', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.api.apikeys.v2.Key', + '10': 'keys' + }, + {'1': 'next_page_token', '3': 2, '4': 1, '5': 9, '10': 'nextPageToken'}, + ], +}; + +/// Descriptor for `ListKeysResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listKeysResponseDescriptor = $convert.base64Decode( + 'ChBMaXN0S2V5c1Jlc3BvbnNlEi4KBGtleXMYASADKAsyGi5nb29nbGUuYXBpLmFwaWtleXMudj' + 'IuS2V5UgRrZXlzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + +@$core.Deprecated('Use getKeyRequestDescriptor instead') +const GetKeyRequest$json = { + '1': 'GetKeyRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `GetKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getKeyRequestDescriptor = $convert.base64Decode( + 'Cg1HZXRLZXlSZXF1ZXN0EjYKBG5hbWUYASABKAlCIuBBAvpBHAoaYXBpa2V5cy5nb29nbGVhcG' + 'lzLmNvbS9LZXlSBG5hbWU='); + +@$core.Deprecated('Use getKeyStringRequestDescriptor instead') +const GetKeyStringRequest$json = { + '1': 'GetKeyStringRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `GetKeyStringRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getKeyStringRequestDescriptor = $convert.base64Decode( + 'ChNHZXRLZXlTdHJpbmdSZXF1ZXN0EjYKBG5hbWUYASABKAlCIuBBAvpBHAoaYXBpa2V5cy5nb2' + '9nbGVhcGlzLmNvbS9LZXlSBG5hbWU='); + +@$core.Deprecated('Use getKeyStringResponseDescriptor instead') +const GetKeyStringResponse$json = { + '1': 'GetKeyStringResponse', + '2': [ + {'1': 'key_string', '3': 1, '4': 1, '5': 9, '10': 'keyString'}, + ], +}; + +/// Descriptor for `GetKeyStringResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getKeyStringResponseDescriptor = $convert.base64Decode( + 'ChRHZXRLZXlTdHJpbmdSZXNwb25zZRIdCgprZXlfc3RyaW5nGAEgASgJUglrZXlTdHJpbmc='); + +@$core.Deprecated('Use updateKeyRequestDescriptor instead') +const UpdateKeyRequest$json = { + '1': 'UpdateKeyRequest', + '2': [ + { + '1': 'key', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.api.apikeys.v2.Key', + '8': {}, + '10': 'key' + }, + { + '1': 'update_mask', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.protobuf.FieldMask', + '10': 'updateMask' + }, + ], +}; + +/// Descriptor for `UpdateKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List updateKeyRequestDescriptor = $convert.base64Decode( + 'ChBVcGRhdGVLZXlSZXF1ZXN0EjEKA2tleRgBIAEoCzIaLmdvb2dsZS5hcGkuYXBpa2V5cy52Mi' + '5LZXlCA+BBAlIDa2V5EjsKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZp' + 'ZWxkTWFza1IKdXBkYXRlTWFzaw=='); + +@$core.Deprecated('Use deleteKeyRequestDescriptor instead') +const DeleteKeyRequest$json = { + '1': 'DeleteKeyRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + {'1': 'etag', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'etag'}, + ], +}; + +/// Descriptor for `DeleteKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List deleteKeyRequestDescriptor = $convert.base64Decode( + 'ChBEZWxldGVLZXlSZXF1ZXN0EjYKBG5hbWUYASABKAlCIuBBAvpBHAoaYXBpa2V5cy5nb29nbG' + 'VhcGlzLmNvbS9LZXlSBG5hbWUSFwoEZXRhZxgCIAEoCUID4EEBUgRldGFn'); + +@$core.Deprecated('Use undeleteKeyRequestDescriptor instead') +const UndeleteKeyRequest$json = { + '1': 'UndeleteKeyRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `UndeleteKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List undeleteKeyRequestDescriptor = $convert.base64Decode( + 'ChJVbmRlbGV0ZUtleVJlcXVlc3QSNgoEbmFtZRgBIAEoCUIi4EEC+kEcChphcGlrZXlzLmdvb2' + 'dsZWFwaXMuY29tL0tleVIEbmFtZQ=='); + +@$core.Deprecated('Use lookupKeyRequestDescriptor instead') +const LookupKeyRequest$json = { + '1': 'LookupKeyRequest', + '2': [ + {'1': 'key_string', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'keyString'}, + ], +}; + +/// Descriptor for `LookupKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List lookupKeyRequestDescriptor = $convert.base64Decode( + 'ChBMb29rdXBLZXlSZXF1ZXN0EiIKCmtleV9zdHJpbmcYASABKAlCA+BBAlIJa2V5U3RyaW5n'); + +@$core.Deprecated('Use lookupKeyResponseDescriptor instead') +const LookupKeyResponse$json = { + '1': 'LookupKeyResponse', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '10': 'parent'}, + {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, + ], +}; + +/// Descriptor for `LookupKeyResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List lookupKeyResponseDescriptor = $convert.base64Decode( + 'ChFMb29rdXBLZXlSZXNwb25zZRIWCgZwYXJlbnQYASABKAlSBnBhcmVudBISCgRuYW1lGAIgAS' + 'gJUgRuYW1l'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/resources.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/resources.pb.dart new file mode 100644 index 00000000..b39b92cb --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/resources.pb.dart @@ -0,0 +1,833 @@ +// +// Generated code. Do not modify. +// source: google/api/apikeys/v2/resources.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/timestamp.pb.dart' as $50; + +/// The representation of a key managed by the API Keys API. +class Key extends $pb.GeneratedMessage { + factory Key({ + $core.String? name, + $core.String? displayName, + $core.String? keyString, + $50.Timestamp? createTime, + $core.String? uid, + $50.Timestamp? updateTime, + $50.Timestamp? deleteTime, + $core.Map<$core.String, $core.String>? annotations, + Restrictions? restrictions, + $core.String? etag, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (displayName != null) { + $result.displayName = displayName; + } + if (keyString != null) { + $result.keyString = keyString; + } + if (createTime != null) { + $result.createTime = createTime; + } + if (uid != null) { + $result.uid = uid; + } + if (updateTime != null) { + $result.updateTime = updateTime; + } + if (deleteTime != null) { + $result.deleteTime = deleteTime; + } + if (annotations != null) { + $result.annotations.addAll(annotations); + } + if (restrictions != null) { + $result.restrictions = restrictions; + } + if (etag != null) { + $result.etag = etag; + } + return $result; + } + Key._() : super(); + factory Key.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Key.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Key', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'displayName') + ..aOS(3, _omitFieldNames ? '' : 'keyString') + ..aOM<$50.Timestamp>(4, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aOS(5, _omitFieldNames ? '' : 'uid') + ..aOM<$50.Timestamp>(6, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(7, _omitFieldNames ? '' : 'deleteTime', + subBuilder: $50.Timestamp.create) + ..m<$core.String, $core.String>(8, _omitFieldNames ? '' : 'annotations', + entryClassName: 'Key.AnnotationsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.apikeys.v2')) + ..aOM(9, _omitFieldNames ? '' : 'restrictions', + subBuilder: Restrictions.create) + ..aOS(11, _omitFieldNames ? '' : 'etag') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + Key clone() => Key()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Key copyWith(void Function(Key) updates) => + super.copyWith((message) => updates(message as Key)) as Key; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Key create() => Key._(); + Key createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Key getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Key? _defaultInstance; + + /// Output only. The resource name of the key. + /// The `name` has the form: + /// `projects//locations/global/keys/`. + /// For example: + /// `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` + /// + /// NOTE: Key is a global resource; hence the only supported value for + /// location is `global`. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Human-readable display name of this key that you can modify. + /// The maximum length is 63 characters. + @$pb.TagNumber(2) + $core.String get displayName => $_getSZ(1); + @$pb.TagNumber(2) + set displayName($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasDisplayName() => $_has(1); + @$pb.TagNumber(2) + void clearDisplayName() => clearField(2); + + /// Output only. An encrypted and signed value held by this key. + /// This field can be accessed only through the `GetKeyString` method. + @$pb.TagNumber(3) + $core.String get keyString => $_getSZ(2); + @$pb.TagNumber(3) + set keyString($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasKeyString() => $_has(2); + @$pb.TagNumber(3) + void clearKeyString() => clearField(3); + + /// Output only. A timestamp identifying the time this key was originally + /// created. + @$pb.TagNumber(4) + $50.Timestamp get createTime => $_getN(3); + @$pb.TagNumber(4) + set createTime($50.Timestamp v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasCreateTime() => $_has(3); + @$pb.TagNumber(4) + void clearCreateTime() => clearField(4); + @$pb.TagNumber(4) + $50.Timestamp ensureCreateTime() => $_ensure(3); + + /// Output only. Unique id in UUID4 format. + @$pb.TagNumber(5) + $core.String get uid => $_getSZ(4); + @$pb.TagNumber(5) + set uid($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasUid() => $_has(4); + @$pb.TagNumber(5) + void clearUid() => clearField(5); + + /// Output only. A timestamp identifying the time this key was last + /// updated. + @$pb.TagNumber(6) + $50.Timestamp get updateTime => $_getN(5); + @$pb.TagNumber(6) + set updateTime($50.Timestamp v) { + setField(6, v); + } + + @$pb.TagNumber(6) + $core.bool hasUpdateTime() => $_has(5); + @$pb.TagNumber(6) + void clearUpdateTime() => clearField(6); + @$pb.TagNumber(6) + $50.Timestamp ensureUpdateTime() => $_ensure(5); + + /// Output only. A timestamp when this key was deleted. If the resource is not + /// deleted, this must be empty. + @$pb.TagNumber(7) + $50.Timestamp get deleteTime => $_getN(6); + @$pb.TagNumber(7) + set deleteTime($50.Timestamp v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasDeleteTime() => $_has(6); + @$pb.TagNumber(7) + void clearDeleteTime() => clearField(7); + @$pb.TagNumber(7) + $50.Timestamp ensureDeleteTime() => $_ensure(6); + + /// Annotations is an unstructured key-value map stored with a policy that + /// may be set by external tools to store and retrieve arbitrary metadata. + /// They are not queryable and should be preserved when modifying objects. + @$pb.TagNumber(8) + $core.Map<$core.String, $core.String> get annotations => $_getMap(7); + + /// Key restrictions. + @$pb.TagNumber(9) + Restrictions get restrictions => $_getN(8); + @$pb.TagNumber(9) + set restrictions(Restrictions v) { + setField(9, v); + } + + @$pb.TagNumber(9) + $core.bool hasRestrictions() => $_has(8); + @$pb.TagNumber(9) + void clearRestrictions() => clearField(9); + @$pb.TagNumber(9) + Restrictions ensureRestrictions() => $_ensure(8); + + /// Output only. A checksum computed by the server based on the current value + /// of the Key resource. This may be sent on update and delete requests to + /// ensure the client has an up-to-date value before proceeding. See + /// https://google.aip.dev/154. + @$pb.TagNumber(11) + $core.String get etag => $_getSZ(9); + @$pb.TagNumber(11) + set etag($core.String v) { + $_setString(9, v); + } + + @$pb.TagNumber(11) + $core.bool hasEtag() => $_has(9); + @$pb.TagNumber(11) + void clearEtag() => clearField(11); +} + +enum Restrictions_ClientRestrictions { + browserKeyRestrictions, + serverKeyRestrictions, + androidKeyRestrictions, + iosKeyRestrictions, + notSet +} + +/// Describes the restrictions on the key. +class Restrictions extends $pb.GeneratedMessage { + factory Restrictions({ + BrowserKeyRestrictions? browserKeyRestrictions, + ServerKeyRestrictions? serverKeyRestrictions, + AndroidKeyRestrictions? androidKeyRestrictions, + IosKeyRestrictions? iosKeyRestrictions, + $core.Iterable? apiTargets, + }) { + final $result = create(); + if (browserKeyRestrictions != null) { + $result.browserKeyRestrictions = browserKeyRestrictions; + } + if (serverKeyRestrictions != null) { + $result.serverKeyRestrictions = serverKeyRestrictions; + } + if (androidKeyRestrictions != null) { + $result.androidKeyRestrictions = androidKeyRestrictions; + } + if (iosKeyRestrictions != null) { + $result.iosKeyRestrictions = iosKeyRestrictions; + } + if (apiTargets != null) { + $result.apiTargets.addAll(apiTargets); + } + return $result; + } + Restrictions._() : super(); + factory Restrictions.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Restrictions.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Restrictions_ClientRestrictions> + _Restrictions_ClientRestrictionsByTag = { + 1: Restrictions_ClientRestrictions.browserKeyRestrictions, + 2: Restrictions_ClientRestrictions.serverKeyRestrictions, + 3: Restrictions_ClientRestrictions.androidKeyRestrictions, + 4: Restrictions_ClientRestrictions.iosKeyRestrictions, + 0: Restrictions_ClientRestrictions.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Restrictions', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3, 4]) + ..aOM( + 1, _omitFieldNames ? '' : 'browserKeyRestrictions', + subBuilder: BrowserKeyRestrictions.create) + ..aOM( + 2, _omitFieldNames ? '' : 'serverKeyRestrictions', + subBuilder: ServerKeyRestrictions.create) + ..aOM( + 3, _omitFieldNames ? '' : 'androidKeyRestrictions', + subBuilder: AndroidKeyRestrictions.create) + ..aOM(4, _omitFieldNames ? '' : 'iosKeyRestrictions', + subBuilder: IosKeyRestrictions.create) + ..pc(5, _omitFieldNames ? '' : 'apiTargets', $pb.PbFieldType.PM, + subBuilder: ApiTarget.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') + Restrictions clone() => Restrictions()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Restrictions copyWith(void Function(Restrictions) updates) => + super.copyWith((message) => updates(message as Restrictions)) + as Restrictions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Restrictions create() => Restrictions._(); + Restrictions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Restrictions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static Restrictions? _defaultInstance; + + Restrictions_ClientRestrictions whichClientRestrictions() => + _Restrictions_ClientRestrictionsByTag[$_whichOneof(0)]!; + void clearClientRestrictions() => clearField($_whichOneof(0)); + + /// The HTTP referrers (websites) that are allowed to use the key. + @$pb.TagNumber(1) + BrowserKeyRestrictions get browserKeyRestrictions => $_getN(0); + @$pb.TagNumber(1) + set browserKeyRestrictions(BrowserKeyRestrictions v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasBrowserKeyRestrictions() => $_has(0); + @$pb.TagNumber(1) + void clearBrowserKeyRestrictions() => clearField(1); + @$pb.TagNumber(1) + BrowserKeyRestrictions ensureBrowserKeyRestrictions() => $_ensure(0); + + /// The IP addresses of callers that are allowed to use the key. + @$pb.TagNumber(2) + ServerKeyRestrictions get serverKeyRestrictions => $_getN(1); + @$pb.TagNumber(2) + set serverKeyRestrictions(ServerKeyRestrictions v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasServerKeyRestrictions() => $_has(1); + @$pb.TagNumber(2) + void clearServerKeyRestrictions() => clearField(2); + @$pb.TagNumber(2) + ServerKeyRestrictions ensureServerKeyRestrictions() => $_ensure(1); + + /// The Android apps that are allowed to use the key. + @$pb.TagNumber(3) + AndroidKeyRestrictions get androidKeyRestrictions => $_getN(2); + @$pb.TagNumber(3) + set androidKeyRestrictions(AndroidKeyRestrictions v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasAndroidKeyRestrictions() => $_has(2); + @$pb.TagNumber(3) + void clearAndroidKeyRestrictions() => clearField(3); + @$pb.TagNumber(3) + AndroidKeyRestrictions ensureAndroidKeyRestrictions() => $_ensure(2); + + /// The iOS apps that are allowed to use the key. + @$pb.TagNumber(4) + IosKeyRestrictions get iosKeyRestrictions => $_getN(3); + @$pb.TagNumber(4) + set iosKeyRestrictions(IosKeyRestrictions v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasIosKeyRestrictions() => $_has(3); + @$pb.TagNumber(4) + void clearIosKeyRestrictions() => clearField(4); + @$pb.TagNumber(4) + IosKeyRestrictions ensureIosKeyRestrictions() => $_ensure(3); + + /// A restriction for a specific service and optionally one or + /// more specific methods. Requests are allowed if they + /// match any of these restrictions. If no restrictions are + /// specified, all targets are allowed. + @$pb.TagNumber(5) + $core.List get apiTargets => $_getList(4); +} + +/// The HTTP referrers (websites) that are allowed to use the key. +class BrowserKeyRestrictions extends $pb.GeneratedMessage { + factory BrowserKeyRestrictions({ + $core.Iterable<$core.String>? allowedReferrers, + }) { + final $result = create(); + if (allowedReferrers != null) { + $result.allowedReferrers.addAll(allowedReferrers); + } + return $result; + } + BrowserKeyRestrictions._() : super(); + factory BrowserKeyRestrictions.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory BrowserKeyRestrictions.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BrowserKeyRestrictions', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'allowedReferrers') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + BrowserKeyRestrictions clone() => + BrowserKeyRestrictions()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BrowserKeyRestrictions copyWith( + void Function(BrowserKeyRestrictions) updates) => + super.copyWith((message) => updates(message as BrowserKeyRestrictions)) + as BrowserKeyRestrictions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static BrowserKeyRestrictions create() => BrowserKeyRestrictions._(); + BrowserKeyRestrictions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static BrowserKeyRestrictions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static BrowserKeyRestrictions? _defaultInstance; + + /// A list of regular expressions for the referrer URLs that are allowed + /// to make API calls with this key. + @$pb.TagNumber(1) + $core.List<$core.String> get allowedReferrers => $_getList(0); +} + +/// The IP addresses of callers that are allowed to use the key. +class ServerKeyRestrictions extends $pb.GeneratedMessage { + factory ServerKeyRestrictions({ + $core.Iterable<$core.String>? allowedIps, + }) { + final $result = create(); + if (allowedIps != null) { + $result.allowedIps.addAll(allowedIps); + } + return $result; + } + ServerKeyRestrictions._() : super(); + factory ServerKeyRestrictions.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ServerKeyRestrictions.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ServerKeyRestrictions', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'allowedIps') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ServerKeyRestrictions clone() => + ServerKeyRestrictions()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ServerKeyRestrictions copyWith( + void Function(ServerKeyRestrictions) updates) => + super.copyWith((message) => updates(message as ServerKeyRestrictions)) + as ServerKeyRestrictions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ServerKeyRestrictions create() => ServerKeyRestrictions._(); + ServerKeyRestrictions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ServerKeyRestrictions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ServerKeyRestrictions? _defaultInstance; + + /// A list of the caller IP addresses that are allowed to make API calls + /// with this key. + @$pb.TagNumber(1) + $core.List<$core.String> get allowedIps => $_getList(0); +} + +/// The Android apps that are allowed to use the key. +class AndroidKeyRestrictions extends $pb.GeneratedMessage { + factory AndroidKeyRestrictions({ + $core.Iterable? allowedApplications, + }) { + final $result = create(); + if (allowedApplications != null) { + $result.allowedApplications.addAll(allowedApplications); + } + return $result; + } + AndroidKeyRestrictions._() : super(); + factory AndroidKeyRestrictions.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AndroidKeyRestrictions.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AndroidKeyRestrictions', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'allowedApplications', $pb.PbFieldType.PM, + subBuilder: AndroidApplication.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') + AndroidKeyRestrictions clone() => + AndroidKeyRestrictions()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AndroidKeyRestrictions copyWith( + void Function(AndroidKeyRestrictions) updates) => + super.copyWith((message) => updates(message as AndroidKeyRestrictions)) + as AndroidKeyRestrictions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AndroidKeyRestrictions create() => AndroidKeyRestrictions._(); + AndroidKeyRestrictions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AndroidKeyRestrictions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static AndroidKeyRestrictions? _defaultInstance; + + /// A list of Android applications that are allowed to make API calls with + /// this key. + @$pb.TagNumber(1) + $core.List get allowedApplications => $_getList(0); +} + +/// Identifier of an Android application for key use. +class AndroidApplication extends $pb.GeneratedMessage { + factory AndroidApplication({ + $core.String? sha1Fingerprint, + $core.String? packageName, + }) { + final $result = create(); + if (sha1Fingerprint != null) { + $result.sha1Fingerprint = sha1Fingerprint; + } + if (packageName != null) { + $result.packageName = packageName; + } + return $result; + } + AndroidApplication._() : super(); + factory AndroidApplication.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AndroidApplication.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AndroidApplication', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sha1Fingerprint') + ..aOS(2, _omitFieldNames ? '' : 'packageName') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AndroidApplication clone() => AndroidApplication()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AndroidApplication copyWith(void Function(AndroidApplication) updates) => + super.copyWith((message) => updates(message as AndroidApplication)) + as AndroidApplication; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AndroidApplication create() => AndroidApplication._(); + AndroidApplication createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AndroidApplication getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static AndroidApplication? _defaultInstance; + + /// The SHA1 fingerprint of the application. For example, both sha1 formats are + /// acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or + /// DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. + /// Output format is the latter. + @$pb.TagNumber(1) + $core.String get sha1Fingerprint => $_getSZ(0); + @$pb.TagNumber(1) + set sha1Fingerprint($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasSha1Fingerprint() => $_has(0); + @$pb.TagNumber(1) + void clearSha1Fingerprint() => clearField(1); + + /// The package name of the application. + @$pb.TagNumber(2) + $core.String get packageName => $_getSZ(1); + @$pb.TagNumber(2) + set packageName($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPackageName() => $_has(1); + @$pb.TagNumber(2) + void clearPackageName() => clearField(2); +} + +/// The iOS apps that are allowed to use the key. +class IosKeyRestrictions extends $pb.GeneratedMessage { + factory IosKeyRestrictions({ + $core.Iterable<$core.String>? allowedBundleIds, + }) { + final $result = create(); + if (allowedBundleIds != null) { + $result.allowedBundleIds.addAll(allowedBundleIds); + } + return $result; + } + IosKeyRestrictions._() : super(); + factory IosKeyRestrictions.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory IosKeyRestrictions.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'IosKeyRestrictions', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'allowedBundleIds') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + IosKeyRestrictions clone() => IosKeyRestrictions()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + IosKeyRestrictions copyWith(void Function(IosKeyRestrictions) updates) => + super.copyWith((message) => updates(message as IosKeyRestrictions)) + as IosKeyRestrictions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static IosKeyRestrictions create() => IosKeyRestrictions._(); + IosKeyRestrictions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static IosKeyRestrictions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static IosKeyRestrictions? _defaultInstance; + + /// A list of bundle IDs that are allowed when making API calls with this key. + @$pb.TagNumber(1) + $core.List<$core.String> get allowedBundleIds => $_getList(0); +} + +/// A restriction for a specific service and optionally one or multiple +/// specific methods. Both fields are case insensitive. +class ApiTarget extends $pb.GeneratedMessage { + factory ApiTarget({ + $core.String? service, + $core.Iterable<$core.String>? methods, + }) { + final $result = create(); + if (service != null) { + $result.service = service; + } + if (methods != null) { + $result.methods.addAll(methods); + } + return $result; + } + ApiTarget._() : super(); + factory ApiTarget.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ApiTarget.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApiTarget', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.apikeys.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'service') + ..pPS(2, _omitFieldNames ? '' : 'methods') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ApiTarget clone() => ApiTarget()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ApiTarget copyWith(void Function(ApiTarget) updates) => + super.copyWith((message) => updates(message as ApiTarget)) as ApiTarget; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ApiTarget create() => ApiTarget._(); + ApiTarget createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ApiTarget getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ApiTarget? _defaultInstance; + + /// The service for this restriction. It should be the canonical + /// service name, for example: `translate.googleapis.com`. + /// You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) + /// to get a list of services that are enabled in the project. + @$pb.TagNumber(1) + $core.String get service => $_getSZ(0); + @$pb.TagNumber(1) + set service($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasService() => $_has(0); + @$pb.TagNumber(1) + void clearService() => clearField(1); + + /// Optional. List of one or more methods that can be called. + /// If empty, all methods for the service are allowed. A wildcard + /// (*) can be used as the last symbol. + /// Valid examples: + /// `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` + /// `TranslateText` + /// `Get*` + /// `translate.googleapis.com.Get*` + @$pb.TagNumber(2) + $core.List<$core.String> get methods => $_getList(1); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/resources.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/resources.pbenum.dart new file mode 100644 index 00000000..b3bfd3dd --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/resources.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/api/apikeys/v2/resources.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/resources.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/resources.pbjson.dart new file mode 100644 index 00000000..020684ab --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/apikeys/v2/resources.pbjson.dart @@ -0,0 +1,264 @@ +// +// Generated code. Do not modify. +// source: google/api/apikeys/v2/resources.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 keyDescriptor instead') +const Key$json = { + '1': 'Key', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + {'1': 'uid', '3': 5, '4': 1, '5': 9, '8': {}, '10': 'uid'}, + {'1': 'display_name', '3': 2, '4': 1, '5': 9, '10': 'displayName'}, + {'1': 'key_string', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'keyString'}, + { + '1': 'create_time', + '3': 4, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'createTime' + }, + { + '1': 'update_time', + '3': 6, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'updateTime' + }, + { + '1': 'delete_time', + '3': 7, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'deleteTime' + }, + { + '1': 'annotations', + '3': 8, + '4': 3, + '5': 11, + '6': '.google.api.apikeys.v2.Key.AnnotationsEntry', + '10': 'annotations' + }, + { + '1': 'restrictions', + '3': 9, + '4': 1, + '5': 11, + '6': '.google.api.apikeys.v2.Restrictions', + '10': 'restrictions' + }, + {'1': 'etag', '3': 11, '4': 1, '5': 9, '8': {}, '10': 'etag'}, + ], + '3': [Key_AnnotationsEntry$json], + '7': {}, +}; + +@$core.Deprecated('Use keyDescriptor instead') +const Key_AnnotationsEntry$json = { + '1': 'AnnotationsEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `Key`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List keyDescriptor = $convert.base64Decode( + 'CgNLZXkSFwoEbmFtZRgBIAEoCUID4EEDUgRuYW1lEhUKA3VpZBgFIAEoCUID4EEDUgN1aWQSIQ' + 'oMZGlzcGxheV9uYW1lGAIgASgJUgtkaXNwbGF5TmFtZRIiCgprZXlfc3RyaW5nGAMgASgJQgPg' + 'QQNSCWtleVN0cmluZxJACgtjcmVhdGVfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW' + '1lc3RhbXBCA+BBA1IKY3JlYXRlVGltZRJACgt1cGRhdGVfdGltZRgGIAEoCzIaLmdvb2dsZS5w' + 'cm90b2J1Zi5UaW1lc3RhbXBCA+BBA1IKdXBkYXRlVGltZRJACgtkZWxldGVfdGltZRgHIAEoCz' + 'IaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBA1IKZGVsZXRlVGltZRJNCgthbm5vdGF0' + 'aW9ucxgIIAMoCzIrLmdvb2dsZS5hcGkuYXBpa2V5cy52Mi5LZXkuQW5ub3RhdGlvbnNFbnRyeV' + 'ILYW5ub3RhdGlvbnMSRwoMcmVzdHJpY3Rpb25zGAkgASgLMiMuZ29vZ2xlLmFwaS5hcGlrZXlz' + 'LnYyLlJlc3RyaWN0aW9uc1IMcmVzdHJpY3Rpb25zEhcKBGV0YWcYCyABKAlCA+BBA1IEZXRhZx' + 'o+ChBBbm5vdGF0aW9uc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2' + 'YWx1ZToCOAE6YepBXgoaYXBpa2V5cy5nb29nbGVhcGlzLmNvbS9LZXkSMnByb2plY3RzL3twcm' + '9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9rZXlzL3trZXl9KgRrZXlzMgNrZXlSAQE='); + +@$core.Deprecated('Use restrictionsDescriptor instead') +const Restrictions$json = { + '1': 'Restrictions', + '2': [ + { + '1': 'browser_key_restrictions', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.api.apikeys.v2.BrowserKeyRestrictions', + '9': 0, + '10': 'browserKeyRestrictions' + }, + { + '1': 'server_key_restrictions', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.api.apikeys.v2.ServerKeyRestrictions', + '9': 0, + '10': 'serverKeyRestrictions' + }, + { + '1': 'android_key_restrictions', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.api.apikeys.v2.AndroidKeyRestrictions', + '9': 0, + '10': 'androidKeyRestrictions' + }, + { + '1': 'ios_key_restrictions', + '3': 4, + '4': 1, + '5': 11, + '6': '.google.api.apikeys.v2.IosKeyRestrictions', + '9': 0, + '10': 'iosKeyRestrictions' + }, + { + '1': 'api_targets', + '3': 5, + '4': 3, + '5': 11, + '6': '.google.api.apikeys.v2.ApiTarget', + '10': 'apiTargets' + }, + ], + '8': [ + {'1': 'client_restrictions'}, + ], +}; + +/// Descriptor for `Restrictions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List restrictionsDescriptor = $convert.base64Decode( + 'CgxSZXN0cmljdGlvbnMSaQoYYnJvd3Nlcl9rZXlfcmVzdHJpY3Rpb25zGAEgASgLMi0uZ29vZ2' + 'xlLmFwaS5hcGlrZXlzLnYyLkJyb3dzZXJLZXlSZXN0cmljdGlvbnNIAFIWYnJvd3NlcktleVJl' + 'c3RyaWN0aW9ucxJmChdzZXJ2ZXJfa2V5X3Jlc3RyaWN0aW9ucxgCIAEoCzIsLmdvb2dsZS5hcG' + 'kuYXBpa2V5cy52Mi5TZXJ2ZXJLZXlSZXN0cmljdGlvbnNIAFIVc2VydmVyS2V5UmVzdHJpY3Rp' + 'b25zEmkKGGFuZHJvaWRfa2V5X3Jlc3RyaWN0aW9ucxgDIAEoCzItLmdvb2dsZS5hcGkuYXBpa2' + 'V5cy52Mi5BbmRyb2lkS2V5UmVzdHJpY3Rpb25zSABSFmFuZHJvaWRLZXlSZXN0cmljdGlvbnMS' + 'XQoUaW9zX2tleV9yZXN0cmljdGlvbnMYBCABKAsyKS5nb29nbGUuYXBpLmFwaWtleXMudjIuSW' + '9zS2V5UmVzdHJpY3Rpb25zSABSEmlvc0tleVJlc3RyaWN0aW9ucxJBCgthcGlfdGFyZ2V0cxgF' + 'IAMoCzIgLmdvb2dsZS5hcGkuYXBpa2V5cy52Mi5BcGlUYXJnZXRSCmFwaVRhcmdldHNCFQoTY2' + 'xpZW50X3Jlc3RyaWN0aW9ucw=='); + +@$core.Deprecated('Use browserKeyRestrictionsDescriptor instead') +const BrowserKeyRestrictions$json = { + '1': 'BrowserKeyRestrictions', + '2': [ + { + '1': 'allowed_referrers', + '3': 1, + '4': 3, + '5': 9, + '10': 'allowedReferrers' + }, + ], +}; + +/// Descriptor for `BrowserKeyRestrictions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List browserKeyRestrictionsDescriptor = + $convert.base64Decode( + 'ChZCcm93c2VyS2V5UmVzdHJpY3Rpb25zEisKEWFsbG93ZWRfcmVmZXJyZXJzGAEgAygJUhBhbG' + 'xvd2VkUmVmZXJyZXJz'); + +@$core.Deprecated('Use serverKeyRestrictionsDescriptor instead') +const ServerKeyRestrictions$json = { + '1': 'ServerKeyRestrictions', + '2': [ + {'1': 'allowed_ips', '3': 1, '4': 3, '5': 9, '10': 'allowedIps'}, + ], +}; + +/// Descriptor for `ServerKeyRestrictions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List serverKeyRestrictionsDescriptor = $convert.base64Decode( + 'ChVTZXJ2ZXJLZXlSZXN0cmljdGlvbnMSHwoLYWxsb3dlZF9pcHMYASADKAlSCmFsbG93ZWRJcH' + 'M='); + +@$core.Deprecated('Use androidKeyRestrictionsDescriptor instead') +const AndroidKeyRestrictions$json = { + '1': 'AndroidKeyRestrictions', + '2': [ + { + '1': 'allowed_applications', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.api.apikeys.v2.AndroidApplication', + '10': 'allowedApplications' + }, + ], +}; + +/// Descriptor for `AndroidKeyRestrictions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List androidKeyRestrictionsDescriptor = $convert.base64Decode( + 'ChZBbmRyb2lkS2V5UmVzdHJpY3Rpb25zElwKFGFsbG93ZWRfYXBwbGljYXRpb25zGAEgAygLMi' + 'kuZ29vZ2xlLmFwaS5hcGlrZXlzLnYyLkFuZHJvaWRBcHBsaWNhdGlvblITYWxsb3dlZEFwcGxp' + 'Y2F0aW9ucw=='); + +@$core.Deprecated('Use androidApplicationDescriptor instead') +const AndroidApplication$json = { + '1': 'AndroidApplication', + '2': [ + {'1': 'sha1_fingerprint', '3': 1, '4': 1, '5': 9, '10': 'sha1Fingerprint'}, + {'1': 'package_name', '3': 2, '4': 1, '5': 9, '10': 'packageName'}, + ], +}; + +/// Descriptor for `AndroidApplication`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List androidApplicationDescriptor = $convert.base64Decode( + 'ChJBbmRyb2lkQXBwbGljYXRpb24SKQoQc2hhMV9maW5nZXJwcmludBgBIAEoCVIPc2hhMUZpbm' + 'dlcnByaW50EiEKDHBhY2thZ2VfbmFtZRgCIAEoCVILcGFja2FnZU5hbWU='); + +@$core.Deprecated('Use iosKeyRestrictionsDescriptor instead') +const IosKeyRestrictions$json = { + '1': 'IosKeyRestrictions', + '2': [ + { + '1': 'allowed_bundle_ids', + '3': 1, + '4': 3, + '5': 9, + '10': 'allowedBundleIds' + }, + ], +}; + +/// Descriptor for `IosKeyRestrictions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List iosKeyRestrictionsDescriptor = $convert.base64Decode( + 'ChJJb3NLZXlSZXN0cmljdGlvbnMSLAoSYWxsb3dlZF9idW5kbGVfaWRzGAEgAygJUhBhbGxvd2' + 'VkQnVuZGxlSWRz'); + +@$core.Deprecated('Use apiTargetDescriptor instead') +const ApiTarget$json = { + '1': 'ApiTarget', + '2': [ + {'1': 'service', '3': 1, '4': 1, '5': 9, '10': 'service'}, + {'1': 'methods', '3': 2, '4': 3, '5': 9, '8': {}, '10': 'methods'}, + ], +}; + +/// Descriptor for `ApiTarget`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List apiTargetDescriptor = $convert.base64Decode( + 'CglBcGlUYXJnZXQSGAoHc2VydmljZRgBIAEoCVIHc2VydmljZRIdCgdtZXRob2RzGAIgAygJQg' + 'PgQQFSB21ldGhvZHM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pb.dart index 557f7a3e..f2faea77 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pb.dart @@ -1,54 +1,70 @@ -/// +// // Generated code. Do not modify. // source: google/api/auth.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// `Authentication` defines the authentication configuration for API methods +/// provided by an API service. +/// +/// Example: +/// +/// name: calendar.googleapis.com +/// authentication: +/// providers: +/// - id: google_calendar_auth +/// jwks_uri: https://www.googleapis.com/oauth2/v1/certs +/// issuer: https://securetoken.google.com +/// rules: +/// - selector: "*" +/// requirements: +/// provider_id: google_calendar_auth +/// - selector: google.calendar.Delegate +/// oauth: +/// canonical_scopes: https://www.googleapis.com/auth/calendar.read class Authentication extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Authentication', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rules', $pb.PbFieldType.PM, - subBuilder: AuthenticationRule.create) - ..pc( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'providers', - $pb.PbFieldType.PM, - subBuilder: AuthProvider.create) - ..hasRequiredFields = false; - - Authentication._() : super(); factory Authentication({ $core.Iterable? rules, $core.Iterable? providers, }) { - final _result = create(); + final $result = create(); if (rules != null) { - _result.rules.addAll(rules); + $result.rules.addAll(rules); } if (providers != null) { - _result.providers.addAll(providers); + $result.providers.addAll(providers); } - return _result; + return $result; } + Authentication._() : super(); factory Authentication.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Authentication.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Authentication', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc( + 3, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: AuthenticationRule.create) + ..pc( + 4, _omitFieldNames ? '' : 'providers', $pb.PbFieldType.PM, + subBuilder: AuthProvider.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') @@ -58,8 +74,10 @@ class Authentication extends $pb.GeneratedMessage { 'Will be removed in next major version') Authentication copyWith(void Function(Authentication) updates) => super.copyWith((message) => updates(message as Authentication)) - as Authentication; // ignore: deprecated_member_use + as Authentication; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Authentication create() => Authentication._(); Authentication createEmptyInstance() => create(); @@ -70,68 +88,69 @@ class Authentication extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Authentication? _defaultInstance; + /// A list of authentication rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. @$pb.TagNumber(3) $core.List get rules => $_getList(0); + /// Defines a set of authentication providers that a service supports. @$pb.TagNumber(4) $core.List get providers => $_getList(1); } +/// Authentication rules for the service. +/// +/// By default, if a method has any authentication requirements, every request +/// must include a valid credential matching one of the requirements. +/// It's an error to include more than one kind of credential in a single +/// request. +/// +/// If a method doesn't have any auth requirements, request credentials will be +/// ignored. class AuthenticationRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AuthenticationRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'selector') - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oauth', - subBuilder: OAuthRequirements.create) - ..aOB( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allowWithoutCredential') - ..pc( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'requirements', - $pb.PbFieldType.PM, - subBuilder: AuthRequirement.create) - ..hasRequiredFields = false; - - AuthenticationRule._() : super(); factory AuthenticationRule({ $core.String? selector, OAuthRequirements? oauth, $core.bool? allowWithoutCredential, $core.Iterable? requirements, }) { - final _result = create(); + final $result = create(); if (selector != null) { - _result.selector = selector; + $result.selector = selector; } if (oauth != null) { - _result.oauth = oauth; + $result.oauth = oauth; } if (allowWithoutCredential != null) { - _result.allowWithoutCredential = allowWithoutCredential; + $result.allowWithoutCredential = allowWithoutCredential; } if (requirements != null) { - _result.requirements.addAll(requirements); + $result.requirements.addAll(requirements); } - return _result; + return $result; } + AuthenticationRule._() : super(); factory AuthenticationRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuthenticationRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuthenticationRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..aOM(2, _omitFieldNames ? '' : 'oauth', + subBuilder: OAuthRequirements.create) + ..aOB(5, _omitFieldNames ? '' : 'allowWithoutCredential') + ..pc( + 7, _omitFieldNames ? '' : 'requirements', $pb.PbFieldType.PM, + subBuilder: AuthRequirement.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') @@ -141,8 +160,10 @@ class AuthenticationRule extends $pb.GeneratedMessage { 'Will be removed in next major version') AuthenticationRule copyWith(void Function(AuthenticationRule) updates) => super.copyWith((message) => updates(message as AuthenticationRule)) - as AuthenticationRule; // ignore: deprecated_member_use + as AuthenticationRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuthenticationRule create() => AuthenticationRule._(); AuthenticationRule createEmptyInstance() => create(); @@ -153,6 +174,10 @@ class AuthenticationRule extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AuthenticationRule? _defaultInstance; + /// Selects the methods to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. @$pb.TagNumber(1) $core.String get selector => $_getSZ(0); @$pb.TagNumber(1) @@ -165,6 +190,7 @@ class AuthenticationRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSelector() => clearField(1); + /// The requirements for OAuth credentials. @$pb.TagNumber(2) OAuthRequirements get oauth => $_getN(1); @$pb.TagNumber(2) @@ -179,6 +205,8 @@ class AuthenticationRule extends $pb.GeneratedMessage { @$pb.TagNumber(2) OAuthRequirements ensureOauth() => $_ensure(1); + /// If true, the service accepts API keys without any other credential. + /// This flag only applies to HTTP and gRPC requests. @$pb.TagNumber(5) $core.bool get allowWithoutCredential => $_getBF(2); @$pb.TagNumber(5) @@ -191,69 +219,61 @@ class AuthenticationRule extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearAllowWithoutCredential() => clearField(5); + /// Requirements for additional authentication providers. @$pb.TagNumber(7) $core.List get requirements => $_getList(3); } -enum JwtLocation_In { header, query, notSet } +enum JwtLocation_In { header, query, cookie, notSet } +/// Specifies a location to extract JWT from an API request. class JwtLocation extends $pb.GeneratedMessage { - static const $core.Map<$core.int, JwtLocation_In> _JwtLocation_InByTag = { - 1: JwtLocation_In.header, - 2: JwtLocation_In.query, - 0: JwtLocation_In.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'JwtLocation', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'header') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'query') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'valuePrefix') - ..hasRequiredFields = false; - - JwtLocation._() : super(); factory JwtLocation({ $core.String? header, $core.String? query, $core.String? valuePrefix, + $core.String? cookie, }) { - final _result = create(); + final $result = create(); if (header != null) { - _result.header = header; + $result.header = header; } if (query != null) { - _result.query = query; + $result.query = query; } if (valuePrefix != null) { - _result.valuePrefix = valuePrefix; + $result.valuePrefix = valuePrefix; } - return _result; + if (cookie != null) { + $result.cookie = cookie; + } + return $result; } + JwtLocation._() : super(); factory JwtLocation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory JwtLocation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, JwtLocation_In> _JwtLocation_InByTag = { + 1: JwtLocation_In.header, + 2: JwtLocation_In.query, + 4: JwtLocation_In.cookie, + 0: JwtLocation_In.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'JwtLocation', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..oo(0, [1, 2, 4]) + ..aOS(1, _omitFieldNames ? '' : 'header') + ..aOS(2, _omitFieldNames ? '' : 'query') + ..aOS(3, _omitFieldNames ? '' : 'valuePrefix') + ..aOS(4, _omitFieldNames ? '' : 'cookie') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -263,8 +283,10 @@ class JwtLocation extends $pb.GeneratedMessage { 'Will be removed in next major version') JwtLocation copyWith(void Function(JwtLocation) updates) => super.copyWith((message) => updates(message as JwtLocation)) - as JwtLocation; // ignore: deprecated_member_use + as JwtLocation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static JwtLocation create() => JwtLocation._(); JwtLocation createEmptyInstance() => create(); @@ -277,6 +299,7 @@ class JwtLocation extends $pb.GeneratedMessage { JwtLocation_In whichIn() => _JwtLocation_InByTag[$_whichOneof(0)]!; void clearIn() => clearField($_whichOneof(0)); + /// Specifies HTTP header name to extract JWT token. @$pb.TagNumber(1) $core.String get header => $_getSZ(0); @$pb.TagNumber(1) @@ -289,6 +312,7 @@ class JwtLocation extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearHeader() => clearField(1); + /// Specifies URL query parameter name to extract JWT token. @$pb.TagNumber(2) $core.String get query => $_getSZ(1); @$pb.TagNumber(2) @@ -301,6 +325,14 @@ class JwtLocation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearQuery() => clearField(2); + /// The value prefix. The value format is "value_prefix{token}" + /// Only applies to "in" header type. Must be empty for "in" query type. + /// If not empty, the header value has to match (case sensitive) this prefix. + /// If not matched, JWT will not be extracted. If matched, JWT will be + /// extracted after the prefix is removed. + /// + /// For example, for "Authorization: Bearer {JWT}", + /// value_prefix="Bearer " with a space at the end. @$pb.TagNumber(3) $core.String get valuePrefix => $_getSZ(2); @$pb.TagNumber(3) @@ -312,40 +344,25 @@ class JwtLocation extends $pb.GeneratedMessage { $core.bool hasValuePrefix() => $_has(2); @$pb.TagNumber(3) void clearValuePrefix() => clearField(3); + + /// Specifies cookie name to extract JWT token. + @$pb.TagNumber(4) + $core.String get cookie => $_getSZ(3); + @$pb.TagNumber(4) + set cookie($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasCookie() => $_has(3); + @$pb.TagNumber(4) + void clearCookie() => clearField(4); } +/// Configuration for an authentication provider, including support for +/// [JSON Web Token +/// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). class AuthProvider extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuthProvider', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'issuer') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'jwksUri') - ..aOS(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'audiences') - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authorizationUrl') - ..pc(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'jwtLocations', $pb.PbFieldType.PM, subBuilder: JwtLocation.create) - ..hasRequiredFields = false; - - AuthProvider._() : super(); factory AuthProvider({ $core.String? id, $core.String? issuer, @@ -354,33 +371,49 @@ class AuthProvider extends $pb.GeneratedMessage { $core.String? authorizationUrl, $core.Iterable? jwtLocations, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (issuer != null) { - _result.issuer = issuer; + $result.issuer = issuer; } if (jwksUri != null) { - _result.jwksUri = jwksUri; + $result.jwksUri = jwksUri; } if (audiences != null) { - _result.audiences = audiences; + $result.audiences = audiences; } if (authorizationUrl != null) { - _result.authorizationUrl = authorizationUrl; + $result.authorizationUrl = authorizationUrl; } if (jwtLocations != null) { - _result.jwtLocations.addAll(jwtLocations); + $result.jwtLocations.addAll(jwtLocations); } - return _result; + return $result; } + AuthProvider._() : super(); factory AuthProvider.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuthProvider.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuthProvider', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'id') + ..aOS(2, _omitFieldNames ? '' : 'issuer') + ..aOS(3, _omitFieldNames ? '' : 'jwksUri') + ..aOS(4, _omitFieldNames ? '' : 'audiences') + ..aOS(5, _omitFieldNames ? '' : 'authorizationUrl') + ..pc( + 6, _omitFieldNames ? '' : 'jwtLocations', $pb.PbFieldType.PM, + subBuilder: JwtLocation.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') @@ -390,8 +423,10 @@ class AuthProvider extends $pb.GeneratedMessage { 'Will be removed in next major version') AuthProvider copyWith(void Function(AuthProvider) updates) => super.copyWith((message) => updates(message as AuthProvider)) - as AuthProvider; // ignore: deprecated_member_use + as AuthProvider; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuthProvider create() => AuthProvider._(); AuthProvider createEmptyInstance() => create(); @@ -402,6 +437,10 @@ class AuthProvider extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AuthProvider? _defaultInstance; + /// The unique identifier of the auth provider. It will be referred to by + /// `AuthRequirement.provider_id`. + /// + /// Example: "bookstore_auth". @$pb.TagNumber(1) $core.String get id => $_getSZ(0); @$pb.TagNumber(1) @@ -414,6 +453,12 @@ class AuthProvider extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// Identifies the principal that issued the JWT. See + /// https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + /// Usually a URL or an email address. + /// + /// Example: https://securetoken.google.com + /// Example: 1234567-compute@developer.gserviceaccount.com @$pb.TagNumber(2) $core.String get issuer => $_getSZ(1); @$pb.TagNumber(2) @@ -426,6 +471,18 @@ class AuthProvider extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearIssuer() => clearField(2); + /// URL of the provider's public key set to validate signature of the JWT. See + /// [OpenID + /// Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). + /// Optional if the key set document: + /// - can be retrieved from + /// [OpenID + /// Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + /// of the issuer. + /// - can be inferred from the email domain of the issuer (e.g. a Google + /// service account). + /// + /// Example: https://www.googleapis.com/oauth2/v1/certs @$pb.TagNumber(3) $core.String get jwksUri => $_getSZ(2); @$pb.TagNumber(3) @@ -438,6 +495,23 @@ class AuthProvider extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearJwksUri() => clearField(3); + /// The list of JWT + /// [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + /// that are allowed to access. A JWT containing any of these audiences will + /// be accepted. When this setting is absent, JWTs with audiences: + /// - "https://[service.name]/[google.protobuf.Api.name]" + /// - "https://[service.name]/" + /// will be accepted. + /// For example, if no audiences are in the setting, LibraryService API will + /// accept JWTs with the following audiences: + /// - + /// https://library-example.googleapis.com/google.example.library.v1.LibraryService + /// - https://library-example.googleapis.com/ + /// + /// Example: + /// + /// audiences: bookstore_android.apps.googleusercontent.com, + /// bookstore_web.apps.googleusercontent.com @$pb.TagNumber(4) $core.String get audiences => $_getSZ(3); @$pb.TagNumber(4) @@ -450,6 +524,8 @@ class AuthProvider extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearAudiences() => clearField(4); + /// Redirect URL if JWT token is required but not present or is expired. + /// Implement authorizationUrl of securityDefinitions in OpenAPI spec. @$pb.TagNumber(5) $core.String get authorizationUrl => $_getSZ(4); @$pb.TagNumber(5) @@ -462,43 +538,71 @@ class AuthProvider extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearAuthorizationUrl() => clearField(5); + /// Defines the locations to extract the JWT. For now it is only used by the + /// Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] + /// (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) + /// + /// JWT locations can be one of HTTP headers, URL query parameters or + /// cookies. The rule is that the first match wins. + /// + /// If not specified, default to use following 3 locations: + /// 1) Authorization: Bearer + /// 2) x-goog-iap-jwt-assertion + /// 3) access_token query parameter + /// + /// Default locations can be specified as followings: + /// jwt_locations: + /// - header: Authorization + /// value_prefix: "Bearer " + /// - header: x-goog-iap-jwt-assertion + /// - query: access_token @$pb.TagNumber(6) $core.List get jwtLocations => $_getList(5); } +/// OAuth scopes are a way to define data and permissions on data. For example, +/// there are scopes defined for "Read-only access to Google Calendar" and +/// "Access to Cloud Platform". Users can consent to a scope for an application, +/// giving it permission to access that data on their behalf. +/// +/// OAuth scope specifications should be fairly coarse grained; a user will need +/// to see and understand the text description of what your scope means. +/// +/// In most cases: use one or at most two OAuth scopes for an entire family of +/// products. If your product has multiple APIs, you should probably be sharing +/// the OAuth scope across all of those APIs. +/// +/// When you need finer grained OAuth consent screens: talk with your product +/// management about how developers will use them in practice. +/// +/// Please note that even though each of the canonical scopes is enough for a +/// request to be accepted and passed to the backend, a request can still fail +/// due to the backend requiring additional scopes or permissions. class OAuthRequirements extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OAuthRequirements', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'canonicalScopes') - ..hasRequiredFields = false; - - OAuthRequirements._() : super(); factory OAuthRequirements({ $core.String? canonicalScopes, }) { - final _result = create(); + final $result = create(); if (canonicalScopes != null) { - _result.canonicalScopes = canonicalScopes; + $result.canonicalScopes = canonicalScopes; } - return _result; + return $result; } + OAuthRequirements._() : super(); factory OAuthRequirements.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OAuthRequirements.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OAuthRequirements', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'canonicalScopes') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -508,8 +612,10 @@ class OAuthRequirements extends $pb.GeneratedMessage { 'Will be removed in next major version') OAuthRequirements copyWith(void Function(OAuthRequirements) updates) => super.copyWith((message) => updates(message as OAuthRequirements)) - as OAuthRequirements; // ignore: deprecated_member_use + as OAuthRequirements; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OAuthRequirements create() => OAuthRequirements._(); OAuthRequirements createEmptyInstance() => create(); @@ -520,6 +626,13 @@ class OAuthRequirements extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static OAuthRequirements? _defaultInstance; + /// The list of publicly documented OAuth scopes that are allowed access. An + /// OAuth token containing any of these scopes will be accepted. + /// + /// Example: + /// + /// canonical_scopes: https://www.googleapis.com/auth/calendar, + /// https://www.googleapis.com/auth/calendar.read @$pb.TagNumber(1) $core.String get canonicalScopes => $_getSZ(0); @$pb.TagNumber(1) @@ -533,48 +646,39 @@ class OAuthRequirements extends $pb.GeneratedMessage { void clearCanonicalScopes() => clearField(1); } +/// User-defined authentication requirements, including support for +/// [JSON Web Token +/// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). class AuthRequirement extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuthRequirement', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'providerId') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'audiences') - ..hasRequiredFields = false; - - AuthRequirement._() : super(); factory AuthRequirement({ $core.String? providerId, $core.String? audiences, }) { - final _result = create(); + final $result = create(); if (providerId != null) { - _result.providerId = providerId; + $result.providerId = providerId; } if (audiences != null) { - _result.audiences = audiences; + $result.audiences = audiences; } - return _result; + return $result; } + AuthRequirement._() : super(); factory AuthRequirement.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuthRequirement.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuthRequirement', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'providerId') + ..aOS(2, _omitFieldNames ? '' : 'audiences') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -584,8 +688,10 @@ class AuthRequirement extends $pb.GeneratedMessage { 'Will be removed in next major version') AuthRequirement copyWith(void Function(AuthRequirement) updates) => super.copyWith((message) => updates(message as AuthRequirement)) - as AuthRequirement; // ignore: deprecated_member_use + as AuthRequirement; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuthRequirement create() => AuthRequirement._(); AuthRequirement createEmptyInstance() => create(); @@ -596,6 +702,11 @@ class AuthRequirement extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AuthRequirement? _defaultInstance; + /// [id][google.api.AuthProvider.id] from authentication provider. + /// + /// Example: + /// + /// provider_id: bookstore_auth @$pb.TagNumber(1) $core.String get providerId => $_getSZ(0); @$pb.TagNumber(1) @@ -608,6 +719,22 @@ class AuthRequirement extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProviderId() => clearField(1); + /// NOTE: This will be deprecated soon, once AuthProvider.audiences is + /// implemented and accepted in all the runtime components. + /// + /// The list of JWT + /// [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + /// that are allowed to access. A JWT containing any of these audiences will + /// be accepted. When this setting is absent, only JWTs with audience + /// "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" + /// will be accepted. For example, if no audiences are in the setting, + /// LibraryService API will only accept JWTs with the following audience + /// "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + /// + /// Example: + /// + /// audiences: bookstore_android.apps.googleusercontent.com, + /// bookstore_web.apps.googleusercontent.com @$pb.TagNumber(2) $core.String get audiences => $_getSZ(1); @$pb.TagNumber(2) @@ -620,3 +747,7 @@ class AuthRequirement extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearAudiences() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pbenum.dart index 83c88b31..e01f7fa0 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/auth.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pbjson.dart index 7a9d0bf0..4d58068c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/auth.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/auth.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 authenticationDescriptor instead') @@ -34,7 +38,10 @@ const Authentication$json = { /// Descriptor for `Authentication`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List authenticationDescriptor = $convert.base64Decode( - 'Cg5BdXRoZW50aWNhdGlvbhI0CgVydWxlcxgDIAMoCzIeLmdvb2dsZS5hcGkuQXV0aGVudGljYXRpb25SdWxlUgVydWxlcxI2Cglwcm92aWRlcnMYBCADKAsyGC5nb29nbGUuYXBpLkF1dGhQcm92aWRlclIJcHJvdmlkZXJz'); + 'Cg5BdXRoZW50aWNhdGlvbhI0CgVydWxlcxgDIAMoCzIeLmdvb2dsZS5hcGkuQXV0aGVudGljYX' + 'Rpb25SdWxlUgVydWxlcxI2Cglwcm92aWRlcnMYBCADKAsyGC5nb29nbGUuYXBpLkF1dGhQcm92' + 'aWRlclIJcHJvdmlkZXJz'); + @$core.Deprecated('Use authenticationRuleDescriptor instead') const AuthenticationRule$json = { '1': 'AuthenticationRule', @@ -68,13 +75,19 @@ const AuthenticationRule$json = { /// Descriptor for `AuthenticationRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List authenticationRuleDescriptor = $convert.base64Decode( - 'ChJBdXRoZW50aWNhdGlvblJ1bGUSGgoIc2VsZWN0b3IYASABKAlSCHNlbGVjdG9yEjMKBW9hdXRoGAIgASgLMh0uZ29vZ2xlLmFwaS5PQXV0aFJlcXVpcmVtZW50c1IFb2F1dGgSOAoYYWxsb3dfd2l0aG91dF9jcmVkZW50aWFsGAUgASgIUhZhbGxvd1dpdGhvdXRDcmVkZW50aWFsEj8KDHJlcXVpcmVtZW50cxgHIAMoCzIbLmdvb2dsZS5hcGkuQXV0aFJlcXVpcmVtZW50UgxyZXF1aXJlbWVudHM='); + 'ChJBdXRoZW50aWNhdGlvblJ1bGUSGgoIc2VsZWN0b3IYASABKAlSCHNlbGVjdG9yEjMKBW9hdX' + 'RoGAIgASgLMh0uZ29vZ2xlLmFwaS5PQXV0aFJlcXVpcmVtZW50c1IFb2F1dGgSOAoYYWxsb3df' + 'd2l0aG91dF9jcmVkZW50aWFsGAUgASgIUhZhbGxvd1dpdGhvdXRDcmVkZW50aWFsEj8KDHJlcX' + 'VpcmVtZW50cxgHIAMoCzIbLmdvb2dsZS5hcGkuQXV0aFJlcXVpcmVtZW50UgxyZXF1aXJlbWVu' + 'dHM='); + @$core.Deprecated('Use jwtLocationDescriptor instead') const JwtLocation$json = { '1': 'JwtLocation', '2': [ {'1': 'header', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'header'}, {'1': 'query', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'query'}, + {'1': 'cookie', '3': 4, '4': 1, '5': 9, '9': 0, '10': 'cookie'}, {'1': 'value_prefix', '3': 3, '4': 1, '5': 9, '10': 'valuePrefix'}, ], '8': [ @@ -84,7 +97,10 @@ const JwtLocation$json = { /// Descriptor for `JwtLocation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List jwtLocationDescriptor = $convert.base64Decode( - 'CgtKd3RMb2NhdGlvbhIYCgZoZWFkZXIYASABKAlIAFIGaGVhZGVyEhYKBXF1ZXJ5GAIgASgJSABSBXF1ZXJ5EiEKDHZhbHVlX3ByZWZpeBgDIAEoCVILdmFsdWVQcmVmaXhCBAoCaW4='); + 'CgtKd3RMb2NhdGlvbhIYCgZoZWFkZXIYASABKAlIAFIGaGVhZGVyEhYKBXF1ZXJ5GAIgASgJSA' + 'BSBXF1ZXJ5EhgKBmNvb2tpZRgEIAEoCUgAUgZjb29raWUSIQoMdmFsdWVfcHJlZml4GAMgASgJ' + 'Ugt2YWx1ZVByZWZpeEIECgJpbg=='); + @$core.Deprecated('Use authProviderDescriptor instead') const AuthProvider$json = { '1': 'AuthProvider', @@ -113,7 +129,11 @@ const AuthProvider$json = { /// Descriptor for `AuthProvider`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List authProviderDescriptor = $convert.base64Decode( - 'CgxBdXRoUHJvdmlkZXISDgoCaWQYASABKAlSAmlkEhYKBmlzc3VlchgCIAEoCVIGaXNzdWVyEhkKCGp3a3NfdXJpGAMgASgJUgdqd2tzVXJpEhwKCWF1ZGllbmNlcxgEIAEoCVIJYXVkaWVuY2VzEisKEWF1dGhvcml6YXRpb25fdXJsGAUgASgJUhBhdXRob3JpemF0aW9uVXJsEjwKDWp3dF9sb2NhdGlvbnMYBiADKAsyFy5nb29nbGUuYXBpLkp3dExvY2F0aW9uUgxqd3RMb2NhdGlvbnM='); + 'CgxBdXRoUHJvdmlkZXISDgoCaWQYASABKAlSAmlkEhYKBmlzc3VlchgCIAEoCVIGaXNzdWVyEh' + 'kKCGp3a3NfdXJpGAMgASgJUgdqd2tzVXJpEhwKCWF1ZGllbmNlcxgEIAEoCVIJYXVkaWVuY2Vz' + 'EisKEWF1dGhvcml6YXRpb25fdXJsGAUgASgJUhBhdXRob3JpemF0aW9uVXJsEjwKDWp3dF9sb2' + 'NhdGlvbnMYBiADKAsyFy5nb29nbGUuYXBpLkp3dExvY2F0aW9uUgxqd3RMb2NhdGlvbnM='); + @$core.Deprecated('Use oAuthRequirementsDescriptor instead') const OAuthRequirements$json = { '1': 'OAuthRequirements', @@ -124,7 +144,9 @@ const OAuthRequirements$json = { /// Descriptor for `OAuthRequirements`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List oAuthRequirementsDescriptor = $convert.base64Decode( - 'ChFPQXV0aFJlcXVpcmVtZW50cxIpChBjYW5vbmljYWxfc2NvcGVzGAEgASgJUg9jYW5vbmljYWxTY29wZXM='); + 'ChFPQXV0aFJlcXVpcmVtZW50cxIpChBjYW5vbmljYWxfc2NvcGVzGAEgASgJUg9jYW5vbmljYW' + 'xTY29wZXM='); + @$core.Deprecated('Use authRequirementDescriptor instead') const AuthRequirement$json = { '1': 'AuthRequirement', @@ -136,4 +158,5 @@ const AuthRequirement$json = { /// Descriptor for `AuthRequirement`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List authRequirementDescriptor = $convert.base64Decode( - 'Cg9BdXRoUmVxdWlyZW1lbnQSHwoLcHJvdmlkZXJfaWQYASABKAlSCnByb3ZpZGVySWQSHAoJYXVkaWVuY2VzGAIgASgJUglhdWRpZW5jZXM='); + 'Cg9BdXRoUmVxdWlyZW1lbnQSHwoLcHJvdmlkZXJfaWQYASABKAlSCnByb3ZpZGVySWQSHAoJYX' + 'VkaWVuY2VzGAIgASgJUglhdWRpZW5jZXM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pb.dart index 5560b2ae..734a672a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/api/backend.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,41 +17,33 @@ import 'backend.pbenum.dart'; export 'backend.pbenum.dart'; +/// `Backend` defines the backend configuration for a service. class Backend extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Backend', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rules', - $pb.PbFieldType.PM, - subBuilder: BackendRule.create) - ..hasRequiredFields = false; - - Backend._() : super(); factory Backend({ $core.Iterable? rules, }) { - final _result = create(); + final $result = create(); if (rules != null) { - _result.rules.addAll(rules); + $result.rules.addAll(rules); } - return _result; + return $result; } + Backend._() : super(); factory Backend.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Backend.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Backend', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: BackendRule.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') @@ -56,9 +52,10 @@ class Backend extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Backend copyWith(void Function(Backend) updates) => - super.copyWith((message) => updates(message as Backend)) - as Backend; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Backend)) as Backend; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Backend create() => Backend._(); Backend createEmptyInstance() => create(); @@ -68,103 +65,108 @@ class Backend extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Backend? _defaultInstance; + /// A list of API backend rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. @$pb.TagNumber(1) $core.List get rules => $_getList(0); } enum BackendRule_Authentication { jwtAudience, disableAuth, notSet } +/// A backend rule provides configuration for an individual API element. class BackendRule extends $pb.GeneratedMessage { - static const $core.Map<$core.int, BackendRule_Authentication> - _BackendRule_AuthenticationByTag = { - 7: BackendRule_Authentication.jwtAudience, - 8: BackendRule_Authentication.disableAuth, - 0: BackendRule_Authentication.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BackendRule', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..oo(0, [7, 8]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'selector') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'address') - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'deadline', - $pb.PbFieldType.OD) - ..a<$core.double>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'minDeadline', - $pb.PbFieldType.OD) - ..a<$core.double>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'operationDeadline', $pb.PbFieldType.OD) - ..e(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pathTranslation', $pb.PbFieldType.OE, defaultOrMaker: BackendRule_PathTranslation.PATH_TRANSLATION_UNSPECIFIED, valueOf: BackendRule_PathTranslation.valueOf, enumValues: BackendRule_PathTranslation.values) - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'jwtAudience') - ..aOB(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'disableAuth') - ..aOS(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'protocol') - ..hasRequiredFields = false; - - BackendRule._() : super(); factory BackendRule({ $core.String? selector, $core.String? address, $core.double? deadline, - $core.double? minDeadline, + @$core.Deprecated('This field is deprecated.') $core.double? minDeadline, $core.double? operationDeadline, BackendRule_PathTranslation? pathTranslation, $core.String? jwtAudience, $core.bool? disableAuth, $core.String? protocol, + $core.Map<$core.String, BackendRule>? overridesByRequestProtocol, }) { - final _result = create(); + final $result = create(); if (selector != null) { - _result.selector = selector; + $result.selector = selector; } if (address != null) { - _result.address = address; + $result.address = address; } if (deadline != null) { - _result.deadline = deadline; + $result.deadline = deadline; } if (minDeadline != null) { - _result.minDeadline = minDeadline; + // ignore: deprecated_member_use_from_same_package + $result.minDeadline = minDeadline; } if (operationDeadline != null) { - _result.operationDeadline = operationDeadline; + $result.operationDeadline = operationDeadline; } if (pathTranslation != null) { - _result.pathTranslation = pathTranslation; + $result.pathTranslation = pathTranslation; } if (jwtAudience != null) { - _result.jwtAudience = jwtAudience; + $result.jwtAudience = jwtAudience; } if (disableAuth != null) { - _result.disableAuth = disableAuth; + $result.disableAuth = disableAuth; } if (protocol != null) { - _result.protocol = protocol; + $result.protocol = protocol; + } + if (overridesByRequestProtocol != null) { + $result.overridesByRequestProtocol.addAll(overridesByRequestProtocol); } - return _result; + return $result; } + BackendRule._() : super(); factory BackendRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BackendRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, BackendRule_Authentication> + _BackendRule_AuthenticationByTag = { + 7: BackendRule_Authentication.jwtAudience, + 8: BackendRule_Authentication.disableAuth, + 0: BackendRule_Authentication.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BackendRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..oo(0, [7, 8]) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..aOS(2, _omitFieldNames ? '' : 'address') + ..a<$core.double>(3, _omitFieldNames ? '' : 'deadline', $pb.PbFieldType.OD) + ..a<$core.double>( + 4, _omitFieldNames ? '' : 'minDeadline', $pb.PbFieldType.OD) + ..a<$core.double>( + 5, _omitFieldNames ? '' : 'operationDeadline', $pb.PbFieldType.OD) + ..e( + 6, _omitFieldNames ? '' : 'pathTranslation', $pb.PbFieldType.OE, + defaultOrMaker: + BackendRule_PathTranslation.PATH_TRANSLATION_UNSPECIFIED, + valueOf: BackendRule_PathTranslation.valueOf, + enumValues: BackendRule_PathTranslation.values) + ..aOS(7, _omitFieldNames ? '' : 'jwtAudience') + ..aOB(8, _omitFieldNames ? '' : 'disableAuth') + ..aOS(9, _omitFieldNames ? '' : 'protocol') + ..m<$core.String, BackendRule>( + 10, _omitFieldNames ? '' : 'overridesByRequestProtocol', + entryClassName: 'BackendRule.OverridesByRequestProtocolEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: BackendRule.create, + valueDefaultOrMaker: BackendRule.getDefault, + packageName: const $pb.PackageName('google.api')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -174,8 +176,10 @@ class BackendRule extends $pb.GeneratedMessage { 'Will be removed in next major version') BackendRule copyWith(void Function(BackendRule) updates) => super.copyWith((message) => updates(message as BackendRule)) - as BackendRule; // ignore: deprecated_member_use + as BackendRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BackendRule create() => BackendRule._(); BackendRule createEmptyInstance() => create(); @@ -189,6 +193,10 @@ class BackendRule extends $pb.GeneratedMessage { _BackendRule_AuthenticationByTag[$_whichOneof(0)]!; void clearAuthentication() => clearField($_whichOneof(0)); + /// Selects the methods to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. @$pb.TagNumber(1) $core.String get selector => $_getSZ(0); @$pb.TagNumber(1) @@ -201,6 +209,26 @@ class BackendRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSelector() => clearField(1); + /// The address of the API backend. + /// + /// The scheme is used to determine the backend protocol and security. + /// The following schemes are accepted: + /// + /// SCHEME PROTOCOL SECURITY + /// http:// HTTP None + /// https:// HTTP TLS + /// grpc:// gRPC None + /// grpcs:// gRPC TLS + /// + /// It is recommended to explicitly include a scheme. Leaving out the scheme + /// may cause constrasting behaviors across platforms. + /// + /// If the port is unspecified, the default is: + /// - 80 for schemes without TLS + /// - 443 for schemes with TLS + /// + /// For HTTP backends, use [protocol][google.api.BackendRule.protocol] + /// to specify the protocol version. @$pb.TagNumber(2) $core.String get address => $_getSZ(1); @$pb.TagNumber(2) @@ -213,6 +241,8 @@ class BackendRule extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearAddress() => clearField(2); + /// The number of seconds to wait for a response from a request. The default + /// varies based on the request protocol and deployment environment. @$pb.TagNumber(3) $core.double get deadline => $_getN(2); @$pb.TagNumber(3) @@ -225,18 +255,25 @@ class BackendRule extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDeadline() => clearField(3); + /// Deprecated, do not use. + @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(4) $core.double get minDeadline => $_getN(3); + @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(4) set minDeadline($core.double v) { $_setDouble(3, v); } + @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(4) $core.bool hasMinDeadline() => $_has(3); + @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(4) void clearMinDeadline() => clearField(4); + /// The number of seconds to wait for the completion of a long running + /// operation. The default is no deadline. @$pb.TagNumber(5) $core.double get operationDeadline => $_getN(4); @$pb.TagNumber(5) @@ -261,6 +298,9 @@ class BackendRule extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearPathTranslation() => clearField(6); + /// The JWT audience is used when generating a JWT ID token for the backend. + /// This ID token will be added in the HTTP "authorization" header, and sent + /// to the backend. @$pb.TagNumber(7) $core.String get jwtAudience => $_getSZ(6); @$pb.TagNumber(7) @@ -273,6 +313,10 @@ class BackendRule extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearJwtAudience() => clearField(7); + /// When disable_auth is true, a JWT ID token won't be generated and the + /// original "Authorization" HTTP header will be preserved. If the header is + /// used to carry the original token and is expected by the backend, this + /// field must be set to true to preserve the header. @$pb.TagNumber(8) $core.bool get disableAuth => $_getBF(7); @$pb.TagNumber(8) @@ -285,6 +329,27 @@ class BackendRule extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearDisableAuth() => clearField(8); + /// The protocol used for sending a request to the backend. + /// The supported values are "http/1.1" and "h2". + /// + /// The default value is inferred from the scheme in the + /// [address][google.api.BackendRule.address] field: + /// + /// SCHEME PROTOCOL + /// http:// http/1.1 + /// https:// http/1.1 + /// grpc:// h2 + /// grpcs:// h2 + /// + /// For secure HTTP backends (https://) that support HTTP/2, set this field + /// to "h2" for improved performance. + /// + /// Configuring this field to non-default values is only supported for secure + /// HTTP backends. This field will be ignored for all other backends. + /// + /// See + /// https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids + /// for more details on the supported values. @$pb.TagNumber(9) $core.String get protocol => $_getSZ(8); @$pb.TagNumber(9) @@ -296,4 +361,13 @@ class BackendRule extends $pb.GeneratedMessage { $core.bool hasProtocol() => $_has(8); @$pb.TagNumber(9) void clearProtocol() => clearField(9); + + /// The map between request protocol and the backend address. + @$pb.TagNumber(10) + $core.Map<$core.String, BackendRule> get overridesByRequestProtocol => + $_getMap(9); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pbenum.dart index 9b7ebd0f..b7746ef5 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pbenum.dart @@ -1,33 +1,35 @@ -/// +// // Generated code. Do not modify. // source: google/api/backend.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Path Translation specifies how to combine the backend address with the +/// request path in order to produce the appropriate forwarding URL for the +/// request. +/// +/// Path Translation is applicable only to HTTP-based backends. Backends which +/// do not accept requests over HTTP/HTTPS should leave `path_translation` +/// unspecified. class BackendRule_PathTranslation extends $pb.ProtobufEnum { static const BackendRule_PathTranslation PATH_TRANSLATION_UNSPECIFIED = BackendRule_PathTranslation._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PATH_TRANSLATION_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'PATH_TRANSLATION_UNSPECIFIED'); static const BackendRule_PathTranslation CONSTANT_ADDRESS = BackendRule_PathTranslation._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CONSTANT_ADDRESS'); + 1, _omitEnumNames ? '' : 'CONSTANT_ADDRESS'); static const BackendRule_PathTranslation APPEND_PATH_TO_ADDRESS = BackendRule_PathTranslation._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'APPEND_PATH_TO_ADDRESS'); + 2, _omitEnumNames ? '' : 'APPEND_PATH_TO_ADDRESS'); static const $core.List values = [ @@ -44,3 +46,5 @@ class BackendRule_PathTranslation extends $pb.ProtobufEnum { const BackendRule_PathTranslation._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pbjson.dart index 3c692a4c..dadbce72 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/backend.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/backend.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 backendDescriptor instead') @@ -26,7 +30,9 @@ const Backend$json = { /// Descriptor for `Backend`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List backendDescriptor = $convert.base64Decode( - 'CgdCYWNrZW5kEi0KBXJ1bGVzGAEgAygLMhcuZ29vZ2xlLmFwaS5CYWNrZW5kUnVsZVIFcnVsZXM='); + 'CgdCYWNrZW5kEi0KBXJ1bGVzGAEgAygLMhcuZ29vZ2xlLmFwaS5CYWNrZW5kUnVsZVIFcnVsZX' + 'M='); + @$core.Deprecated('Use backendRuleDescriptor instead') const BackendRule$json = { '1': 'BackendRule', @@ -34,7 +40,14 @@ const BackendRule$json = { {'1': 'selector', '3': 1, '4': 1, '5': 9, '10': 'selector'}, {'1': 'address', '3': 2, '4': 1, '5': 9, '10': 'address'}, {'1': 'deadline', '3': 3, '4': 1, '5': 1, '10': 'deadline'}, - {'1': 'min_deadline', '3': 4, '4': 1, '5': 1, '10': 'minDeadline'}, + { + '1': 'min_deadline', + '3': 4, + '4': 1, + '5': 1, + '8': {'3': true}, + '10': 'minDeadline', + }, { '1': 'operation_deadline', '3': 5, @@ -53,13 +66,39 @@ const BackendRule$json = { {'1': 'jwt_audience', '3': 7, '4': 1, '5': 9, '9': 0, '10': 'jwtAudience'}, {'1': 'disable_auth', '3': 8, '4': 1, '5': 8, '9': 0, '10': 'disableAuth'}, {'1': 'protocol', '3': 9, '4': 1, '5': 9, '10': 'protocol'}, + { + '1': 'overrides_by_request_protocol', + '3': 10, + '4': 3, + '5': 11, + '6': '.google.api.BackendRule.OverridesByRequestProtocolEntry', + '10': 'overridesByRequestProtocol' + }, ], + '3': [BackendRule_OverridesByRequestProtocolEntry$json], '4': [BackendRule_PathTranslation$json], '8': [ {'1': 'authentication'}, ], }; +@$core.Deprecated('Use backendRuleDescriptor instead') +const BackendRule_OverridesByRequestProtocolEntry$json = { + '1': 'OverridesByRequestProtocolEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + { + '1': 'value', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.api.BackendRule', + '10': 'value' + }, + ], + '7': {'7': true}, +}; + @$core.Deprecated('Use backendRuleDescriptor instead') const BackendRule_PathTranslation$json = { '1': 'PathTranslation', @@ -72,4 +111,16 @@ const BackendRule_PathTranslation$json = { /// Descriptor for `BackendRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List backendRuleDescriptor = $convert.base64Decode( - 'CgtCYWNrZW5kUnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISGAoHYWRkcmVzcxgCIAEoCVIHYWRkcmVzcxIaCghkZWFkbGluZRgDIAEoAVIIZGVhZGxpbmUSIQoMbWluX2RlYWRsaW5lGAQgASgBUgttaW5EZWFkbGluZRItChJvcGVyYXRpb25fZGVhZGxpbmUYBSABKAFSEW9wZXJhdGlvbkRlYWRsaW5lElIKEHBhdGhfdHJhbnNsYXRpb24YBiABKA4yJy5nb29nbGUuYXBpLkJhY2tlbmRSdWxlLlBhdGhUcmFuc2xhdGlvblIPcGF0aFRyYW5zbGF0aW9uEiMKDGp3dF9hdWRpZW5jZRgHIAEoCUgAUgtqd3RBdWRpZW5jZRIjCgxkaXNhYmxlX2F1dGgYCCABKAhIAFILZGlzYWJsZUF1dGgSGgoIcHJvdG9jb2wYCSABKAlSCHByb3RvY29sImUKD1BhdGhUcmFuc2xhdGlvbhIgChxQQVRIX1RSQU5TTEFUSU9OX1VOU1BFQ0lGSUVEEAASFAoQQ09OU1RBTlRfQUREUkVTUxABEhoKFkFQUEVORF9QQVRIX1RPX0FERFJFU1MQAkIQCg5hdXRoZW50aWNhdGlvbg=='); + 'CgtCYWNrZW5kUnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISGAoHYWRkcmVzcxgCIA' + 'EoCVIHYWRkcmVzcxIaCghkZWFkbGluZRgDIAEoAVIIZGVhZGxpbmUSJQoMbWluX2RlYWRsaW5l' + 'GAQgASgBQgIYAVILbWluRGVhZGxpbmUSLQoSb3BlcmF0aW9uX2RlYWRsaW5lGAUgASgBUhFvcG' + 'VyYXRpb25EZWFkbGluZRJSChBwYXRoX3RyYW5zbGF0aW9uGAYgASgOMicuZ29vZ2xlLmFwaS5C' + 'YWNrZW5kUnVsZS5QYXRoVHJhbnNsYXRpb25SD3BhdGhUcmFuc2xhdGlvbhIjCgxqd3RfYXVkaW' + 'VuY2UYByABKAlIAFILand0QXVkaWVuY2USIwoMZGlzYWJsZV9hdXRoGAggASgISABSC2Rpc2Fi' + 'bGVBdXRoEhoKCHByb3RvY29sGAkgASgJUghwcm90b2NvbBJ6Ch1vdmVycmlkZXNfYnlfcmVxdW' + 'VzdF9wcm90b2NvbBgKIAMoCzI3Lmdvb2dsZS5hcGkuQmFja2VuZFJ1bGUuT3ZlcnJpZGVzQnlS' + 'ZXF1ZXN0UHJvdG9jb2xFbnRyeVIab3ZlcnJpZGVzQnlSZXF1ZXN0UHJvdG9jb2waZgofT3Zlcn' + 'JpZGVzQnlSZXF1ZXN0UHJvdG9jb2xFbnRyeRIQCgNrZXkYASABKAlSA2tleRItCgV2YWx1ZRgC' + 'IAEoCzIXLmdvb2dsZS5hcGkuQmFja2VuZFJ1bGVSBXZhbHVlOgI4ASJlCg9QYXRoVHJhbnNsYX' + 'Rpb24SIAocUEFUSF9UUkFOU0xBVElPTl9VTlNQRUNJRklFRBAAEhQKEENPTlNUQU5UX0FERFJF' + 'U1MQARIaChZBUFBFTkRfUEFUSF9UT19BRERSRVNTEAJCEAoOYXV0aGVudGljYXRpb24='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pb.dart index 08adb60f..8f53d56b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pb.dart @@ -1,56 +1,50 @@ -/// +// // Generated code. Do not modify. // source: google/api/billing.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Configuration of a specific billing destination (Currently only support +/// bill against consumer project). class Billing_BillingDestination extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Billing.BillingDestination', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'monitoredResource') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metrics') - ..hasRequiredFields = false; - - Billing_BillingDestination._() : super(); factory Billing_BillingDestination({ $core.String? monitoredResource, $core.Iterable<$core.String>? metrics, }) { - final _result = create(); + final $result = create(); if (monitoredResource != null) { - _result.monitoredResource = monitoredResource; + $result.monitoredResource = monitoredResource; } if (metrics != null) { - _result.metrics.addAll(metrics); + $result.metrics.addAll(metrics); } - return _result; + return $result; } + Billing_BillingDestination._() : super(); factory Billing_BillingDestination.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Billing_BillingDestination.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Billing.BillingDestination', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'monitoredResource') + ..pPS(2, _omitFieldNames ? '' : 'metrics') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -63,8 +57,10 @@ class Billing_BillingDestination extends $pb.GeneratedMessage { void Function(Billing_BillingDestination) updates) => super.copyWith( (message) => updates(message as Billing_BillingDestination)) - as Billing_BillingDestination; // ignore: deprecated_member_use + as Billing_BillingDestination; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Billing_BillingDestination create() => Billing_BillingDestination._(); Billing_BillingDestination createEmptyInstance() => create(); @@ -75,6 +71,9 @@ class Billing_BillingDestination extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Billing_BillingDestination? _defaultInstance; + /// The monitored resource type. The type must be defined in + /// [Service.monitored_resources][google.api.Service.monitored_resources] + /// section. @$pb.TagNumber(1) $core.String get monitoredResource => $_getSZ(0); @$pb.TagNumber(1) @@ -87,45 +86,72 @@ class Billing_BillingDestination extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMonitoredResource() => clearField(1); + /// Names of the metrics to report to this billing destination. + /// Each name must be defined in + /// [Service.metrics][google.api.Service.metrics] section. @$pb.TagNumber(2) $core.List<$core.String> get metrics => $_getList(1); } +/// Billing related configuration of the service. +/// +/// The following example shows how to configure monitored resources and metrics +/// for billing, `consumer_destinations` is the only supported destination and +/// the monitored resources need at least one label key +/// `cloud.googleapis.com/location` to indicate the location of the billing +/// usage, using different monitored resources between monitoring and billing is +/// recommended so they can be evolved independently: +/// +/// +/// monitored_resources: +/// - type: library.googleapis.com/billing_branch +/// labels: +/// - key: cloud.googleapis.com/location +/// description: | +/// Predefined label to support billing location restriction. +/// - key: city +/// description: | +/// Custom label to define the city where the library branch is located +/// in. +/// - key: name +/// description: Custom label to define the name of the library branch. +/// metrics: +/// - name: library.googleapis.com/book/borrowed_count +/// metric_kind: DELTA +/// value_type: INT64 +/// unit: "1" +/// billing: +/// consumer_destinations: +/// - monitored_resource: library.googleapis.com/billing_branch +/// metrics: +/// - library.googleapis.com/book/borrowed_count class Billing extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Billing', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'consumerDestinations', - $pb.PbFieldType.PM, - subBuilder: Billing_BillingDestination.create) - ..hasRequiredFields = false; - - Billing._() : super(); factory Billing({ $core.Iterable? consumerDestinations, }) { - final _result = create(); + final $result = create(); if (consumerDestinations != null) { - _result.consumerDestinations.addAll(consumerDestinations); + $result.consumerDestinations.addAll(consumerDestinations); } - return _result; + return $result; } + Billing._() : super(); factory Billing.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Billing.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Billing', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc( + 8, _omitFieldNames ? '' : 'consumerDestinations', $pb.PbFieldType.PM, + subBuilder: Billing_BillingDestination.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') @@ -134,9 +160,10 @@ class Billing extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Billing copyWith(void Function(Billing) updates) => - super.copyWith((message) => updates(message as Billing)) - as Billing; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Billing)) as Billing; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Billing create() => Billing._(); Billing createEmptyInstance() => create(); @@ -146,7 +173,15 @@ class Billing extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Billing? _defaultInstance; + /// Billing configurations for sending metrics to the consumer project. + /// There can be multiple consumer destinations per service, each one must have + /// a different monitored resource type. A metric can be used in at most + /// one consumer destination. @$pb.TagNumber(8) $core.List get consumerDestinations => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pbenum.dart index 157e8d96..d4639aff 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/billing.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pbjson.dart index dd407dbb..8fa5969e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/billing.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/billing.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 billingDescriptor instead') @@ -42,4 +46,7 @@ const Billing_BillingDestination$json = { /// Descriptor for `Billing`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List billingDescriptor = $convert.base64Decode( - 'CgdCaWxsaW5nElsKFWNvbnN1bWVyX2Rlc3RpbmF0aW9ucxgIIAMoCzImLmdvb2dsZS5hcGkuQmlsbGluZy5CaWxsaW5nRGVzdGluYXRpb25SFGNvbnN1bWVyRGVzdGluYXRpb25zGl0KEkJpbGxpbmdEZXN0aW5hdGlvbhItChJtb25pdG9yZWRfcmVzb3VyY2UYASABKAlSEW1vbml0b3JlZFJlc291cmNlEhgKB21ldHJpY3MYAiADKAlSB21ldHJpY3M='); + 'CgdCaWxsaW5nElsKFWNvbnN1bWVyX2Rlc3RpbmF0aW9ucxgIIAMoCzImLmdvb2dsZS5hcGkuQm' + 'lsbGluZy5CaWxsaW5nRGVzdGluYXRpb25SFGNvbnN1bWVyRGVzdGluYXRpb25zGl0KEkJpbGxp' + 'bmdEZXN0aW5hdGlvbhItChJtb25pdG9yZWRfcmVzb3VyY2UYASABKAlSEW1vbml0b3JlZFJlc2' + '91cmNlEhgKB21ldHJpY3MYAiADKAlSB21ldHJpY3M='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pb.dart index 2af87cc7..c60e85f4 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pb.dart @@ -1,46 +1,1660 @@ -/// +// // Generated code. Do not modify. // source: google/api/client.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/duration.pb.dart' as $51; +import 'client.pbenum.dart'; +import 'launch_stage.pbenum.dart' as $56; + +export 'client.pbenum.dart'; + +/// Required information for every language. +class CommonLanguageSettings extends $pb.GeneratedMessage { + factory CommonLanguageSettings({ + @$core.Deprecated('This field is deprecated.') + $core.String? referenceDocsUri, + $core.Iterable? destinations, + }) { + final $result = create(); + if (referenceDocsUri != null) { + // ignore: deprecated_member_use_from_same_package + $result.referenceDocsUri = referenceDocsUri; + } + if (destinations != null) { + $result.destinations.addAll(destinations); + } + return $result; + } + CommonLanguageSettings._() : super(); + factory CommonLanguageSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CommonLanguageSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CommonLanguageSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'referenceDocsUri') + ..pc( + 2, _omitFieldNames ? '' : 'destinations', $pb.PbFieldType.KE, + valueOf: ClientLibraryDestination.valueOf, + enumValues: ClientLibraryDestination.values, + defaultEnumValue: + ClientLibraryDestination.CLIENT_LIBRARY_DESTINATION_UNSPECIFIED) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CommonLanguageSettings clone() => + CommonLanguageSettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CommonLanguageSettings copyWith( + void Function(CommonLanguageSettings) updates) => + super.copyWith((message) => updates(message as CommonLanguageSettings)) + as CommonLanguageSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CommonLanguageSettings create() => CommonLanguageSettings._(); + CommonLanguageSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CommonLanguageSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CommonLanguageSettings? _defaultInstance; + + /// Link to automatically generated reference documentation. Example: + /// https://cloud.google.com/nodejs/docs/reference/asset/latest + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(1) + $core.String get referenceDocsUri => $_getSZ(0); + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(1) + set referenceDocsUri($core.String v) { + $_setString(0, v); + } + + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(1) + $core.bool hasReferenceDocsUri() => $_has(0); + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(1) + void clearReferenceDocsUri() => clearField(1); + + /// The destination where API teams want this client library to be published. + @$pb.TagNumber(2) + $core.List get destinations => $_getList(1); +} + +/// Details about how and where to publish client libraries. +class ClientLibrarySettings extends $pb.GeneratedMessage { + factory ClientLibrarySettings({ + $core.String? version, + $56.LaunchStage? launchStage, + $core.bool? restNumericEnums, + JavaSettings? javaSettings, + CppSettings? cppSettings, + PhpSettings? phpSettings, + PythonSettings? pythonSettings, + NodeSettings? nodeSettings, + DotnetSettings? dotnetSettings, + RubySettings? rubySettings, + GoSettings? goSettings, + }) { + final $result = create(); + if (version != null) { + $result.version = version; + } + if (launchStage != null) { + $result.launchStage = launchStage; + } + if (restNumericEnums != null) { + $result.restNumericEnums = restNumericEnums; + } + if (javaSettings != null) { + $result.javaSettings = javaSettings; + } + if (cppSettings != null) { + $result.cppSettings = cppSettings; + } + if (phpSettings != null) { + $result.phpSettings = phpSettings; + } + if (pythonSettings != null) { + $result.pythonSettings = pythonSettings; + } + if (nodeSettings != null) { + $result.nodeSettings = nodeSettings; + } + if (dotnetSettings != null) { + $result.dotnetSettings = dotnetSettings; + } + if (rubySettings != null) { + $result.rubySettings = rubySettings; + } + if (goSettings != null) { + $result.goSettings = goSettings; + } + return $result; + } + ClientLibrarySettings._() : super(); + factory ClientLibrarySettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ClientLibrarySettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ClientLibrarySettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'version') + ..e<$56.LaunchStage>( + 2, _omitFieldNames ? '' : 'launchStage', $pb.PbFieldType.OE, + defaultOrMaker: $56.LaunchStage.LAUNCH_STAGE_UNSPECIFIED, + valueOf: $56.LaunchStage.valueOf, + enumValues: $56.LaunchStage.values) + ..aOB(3, _omitFieldNames ? '' : 'restNumericEnums') + ..aOM(21, _omitFieldNames ? '' : 'javaSettings', + subBuilder: JavaSettings.create) + ..aOM(22, _omitFieldNames ? '' : 'cppSettings', + subBuilder: CppSettings.create) + ..aOM(23, _omitFieldNames ? '' : 'phpSettings', + subBuilder: PhpSettings.create) + ..aOM(24, _omitFieldNames ? '' : 'pythonSettings', + subBuilder: PythonSettings.create) + ..aOM(25, _omitFieldNames ? '' : 'nodeSettings', + subBuilder: NodeSettings.create) + ..aOM(26, _omitFieldNames ? '' : 'dotnetSettings', + subBuilder: DotnetSettings.create) + ..aOM(27, _omitFieldNames ? '' : 'rubySettings', + subBuilder: RubySettings.create) + ..aOM(28, _omitFieldNames ? '' : 'goSettings', + subBuilder: GoSettings.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') + ClientLibrarySettings clone() => + ClientLibrarySettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ClientLibrarySettings copyWith( + void Function(ClientLibrarySettings) updates) => + super.copyWith((message) => updates(message as ClientLibrarySettings)) + as ClientLibrarySettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ClientLibrarySettings create() => ClientLibrarySettings._(); + ClientLibrarySettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ClientLibrarySettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ClientLibrarySettings? _defaultInstance; + + /// Version of the API to apply these settings to. This is the full protobuf + /// package for the API, ending in the version element. + /// Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + @$pb.TagNumber(1) + $core.String get version => $_getSZ(0); + @$pb.TagNumber(1) + set version($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasVersion() => $_has(0); + @$pb.TagNumber(1) + void clearVersion() => clearField(1); + + /// Launch stage of this version of the API. + @$pb.TagNumber(2) + $56.LaunchStage get launchStage => $_getN(1); + @$pb.TagNumber(2) + set launchStage($56.LaunchStage v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasLaunchStage() => $_has(1); + @$pb.TagNumber(2) + void clearLaunchStage() => clearField(2); + + /// When using transport=rest, the client request will encode enums as + /// numbers rather than strings. + @$pb.TagNumber(3) + $core.bool get restNumericEnums => $_getBF(2); + @$pb.TagNumber(3) + set restNumericEnums($core.bool v) { + $_setBool(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasRestNumericEnums() => $_has(2); + @$pb.TagNumber(3) + void clearRestNumericEnums() => clearField(3); + + /// Settings for legacy Java features, supported in the Service YAML. + @$pb.TagNumber(21) + JavaSettings get javaSettings => $_getN(3); + @$pb.TagNumber(21) + set javaSettings(JavaSettings v) { + setField(21, v); + } + + @$pb.TagNumber(21) + $core.bool hasJavaSettings() => $_has(3); + @$pb.TagNumber(21) + void clearJavaSettings() => clearField(21); + @$pb.TagNumber(21) + JavaSettings ensureJavaSettings() => $_ensure(3); + + /// Settings for C++ client libraries. + @$pb.TagNumber(22) + CppSettings get cppSettings => $_getN(4); + @$pb.TagNumber(22) + set cppSettings(CppSettings v) { + setField(22, v); + } + + @$pb.TagNumber(22) + $core.bool hasCppSettings() => $_has(4); + @$pb.TagNumber(22) + void clearCppSettings() => clearField(22); + @$pb.TagNumber(22) + CppSettings ensureCppSettings() => $_ensure(4); + + /// Settings for PHP client libraries. + @$pb.TagNumber(23) + PhpSettings get phpSettings => $_getN(5); + @$pb.TagNumber(23) + set phpSettings(PhpSettings v) { + setField(23, v); + } + + @$pb.TagNumber(23) + $core.bool hasPhpSettings() => $_has(5); + @$pb.TagNumber(23) + void clearPhpSettings() => clearField(23); + @$pb.TagNumber(23) + PhpSettings ensurePhpSettings() => $_ensure(5); + + /// Settings for Python client libraries. + @$pb.TagNumber(24) + PythonSettings get pythonSettings => $_getN(6); + @$pb.TagNumber(24) + set pythonSettings(PythonSettings v) { + setField(24, v); + } + + @$pb.TagNumber(24) + $core.bool hasPythonSettings() => $_has(6); + @$pb.TagNumber(24) + void clearPythonSettings() => clearField(24); + @$pb.TagNumber(24) + PythonSettings ensurePythonSettings() => $_ensure(6); + + /// Settings for Node client libraries. + @$pb.TagNumber(25) + NodeSettings get nodeSettings => $_getN(7); + @$pb.TagNumber(25) + set nodeSettings(NodeSettings v) { + setField(25, v); + } + + @$pb.TagNumber(25) + $core.bool hasNodeSettings() => $_has(7); + @$pb.TagNumber(25) + void clearNodeSettings() => clearField(25); + @$pb.TagNumber(25) + NodeSettings ensureNodeSettings() => $_ensure(7); + + /// Settings for .NET client libraries. + @$pb.TagNumber(26) + DotnetSettings get dotnetSettings => $_getN(8); + @$pb.TagNumber(26) + set dotnetSettings(DotnetSettings v) { + setField(26, v); + } + + @$pb.TagNumber(26) + $core.bool hasDotnetSettings() => $_has(8); + @$pb.TagNumber(26) + void clearDotnetSettings() => clearField(26); + @$pb.TagNumber(26) + DotnetSettings ensureDotnetSettings() => $_ensure(8); + + /// Settings for Ruby client libraries. + @$pb.TagNumber(27) + RubySettings get rubySettings => $_getN(9); + @$pb.TagNumber(27) + set rubySettings(RubySettings v) { + setField(27, v); + } + + @$pb.TagNumber(27) + $core.bool hasRubySettings() => $_has(9); + @$pb.TagNumber(27) + void clearRubySettings() => clearField(27); + @$pb.TagNumber(27) + RubySettings ensureRubySettings() => $_ensure(9); + + /// Settings for Go client libraries. + @$pb.TagNumber(28) + GoSettings get goSettings => $_getN(10); + @$pb.TagNumber(28) + set goSettings(GoSettings v) { + setField(28, v); + } + + @$pb.TagNumber(28) + $core.bool hasGoSettings() => $_has(10); + @$pb.TagNumber(28) + void clearGoSettings() => clearField(28); + @$pb.TagNumber(28) + GoSettings ensureGoSettings() => $_ensure(10); +} + +/// This message configures the settings for publishing [Google Cloud Client +/// libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) +/// generated from the service config. +class Publishing extends $pb.GeneratedMessage { + factory Publishing({ + $core.Iterable? methodSettings, + $core.String? newIssueUri, + $core.String? documentationUri, + $core.String? apiShortName, + $core.String? githubLabel, + $core.Iterable<$core.String>? codeownerGithubTeams, + $core.String? docTagPrefix, + ClientLibraryOrganization? organization, + $core.Iterable? librarySettings, + $core.String? protoReferenceDocumentationUri, + $core.String? restReferenceDocumentationUri, + }) { + final $result = create(); + if (methodSettings != null) { + $result.methodSettings.addAll(methodSettings); + } + if (newIssueUri != null) { + $result.newIssueUri = newIssueUri; + } + if (documentationUri != null) { + $result.documentationUri = documentationUri; + } + if (apiShortName != null) { + $result.apiShortName = apiShortName; + } + if (githubLabel != null) { + $result.githubLabel = githubLabel; + } + if (codeownerGithubTeams != null) { + $result.codeownerGithubTeams.addAll(codeownerGithubTeams); + } + if (docTagPrefix != null) { + $result.docTagPrefix = docTagPrefix; + } + if (organization != null) { + $result.organization = organization; + } + if (librarySettings != null) { + $result.librarySettings.addAll(librarySettings); + } + if (protoReferenceDocumentationUri != null) { + $result.protoReferenceDocumentationUri = protoReferenceDocumentationUri; + } + if (restReferenceDocumentationUri != null) { + $result.restReferenceDocumentationUri = restReferenceDocumentationUri; + } + return $result; + } + Publishing._() : super(); + factory Publishing.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Publishing.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Publishing', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc( + 2, _omitFieldNames ? '' : 'methodSettings', $pb.PbFieldType.PM, + subBuilder: MethodSettings.create) + ..aOS(101, _omitFieldNames ? '' : 'newIssueUri') + ..aOS(102, _omitFieldNames ? '' : 'documentationUri') + ..aOS(103, _omitFieldNames ? '' : 'apiShortName') + ..aOS(104, _omitFieldNames ? '' : 'githubLabel') + ..pPS(105, _omitFieldNames ? '' : 'codeownerGithubTeams') + ..aOS(106, _omitFieldNames ? '' : 'docTagPrefix') + ..e( + 107, _omitFieldNames ? '' : 'organization', $pb.PbFieldType.OE, + defaultOrMaker: + ClientLibraryOrganization.CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED, + valueOf: ClientLibraryOrganization.valueOf, + enumValues: ClientLibraryOrganization.values) + ..pc( + 109, _omitFieldNames ? '' : 'librarySettings', $pb.PbFieldType.PM, + subBuilder: ClientLibrarySettings.create) + ..aOS(110, _omitFieldNames ? '' : 'protoReferenceDocumentationUri') + ..aOS(111, _omitFieldNames ? '' : 'restReferenceDocumentationUri') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + Publishing clone() => Publishing()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Publishing copyWith(void Function(Publishing) updates) => + super.copyWith((message) => updates(message as Publishing)) as Publishing; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Publishing create() => Publishing._(); + Publishing createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Publishing getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static Publishing? _defaultInstance; + + /// A list of API method settings, e.g. the behavior for methods that use the + /// long-running operation pattern. + @$pb.TagNumber(2) + $core.List get methodSettings => $_getList(0); + + /// Link to a *public* URI where users can report issues. Example: + /// https://issuetracker.google.com/issues/new?component=190865&template=1161103 + @$pb.TagNumber(101) + $core.String get newIssueUri => $_getSZ(1); + @$pb.TagNumber(101) + set newIssueUri($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(101) + $core.bool hasNewIssueUri() => $_has(1); + @$pb.TagNumber(101) + void clearNewIssueUri() => clearField(101); + + /// Link to product home page. Example: + /// https://cloud.google.com/asset-inventory/docs/overview + @$pb.TagNumber(102) + $core.String get documentationUri => $_getSZ(2); + @$pb.TagNumber(102) + set documentationUri($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(102) + $core.bool hasDocumentationUri() => $_has(2); + @$pb.TagNumber(102) + void clearDocumentationUri() => clearField(102); + + /// Used as a tracking tag when collecting data about the APIs developer + /// relations artifacts like docs, packages delivered to package managers, + /// etc. Example: "speech". + @$pb.TagNumber(103) + $core.String get apiShortName => $_getSZ(3); + @$pb.TagNumber(103) + set apiShortName($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(103) + $core.bool hasApiShortName() => $_has(3); + @$pb.TagNumber(103) + void clearApiShortName() => clearField(103); + + /// GitHub label to apply to issues and pull requests opened for this API. + @$pb.TagNumber(104) + $core.String get githubLabel => $_getSZ(4); + @$pb.TagNumber(104) + set githubLabel($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(104) + $core.bool hasGithubLabel() => $_has(4); + @$pb.TagNumber(104) + void clearGithubLabel() => clearField(104); + + /// GitHub teams to be added to CODEOWNERS in the directory in GitHub + /// containing source code for the client libraries for this API. + @$pb.TagNumber(105) + $core.List<$core.String> get codeownerGithubTeams => $_getList(5); + + /// A prefix used in sample code when demarking regions to be included in + /// documentation. + @$pb.TagNumber(106) + $core.String get docTagPrefix => $_getSZ(6); + @$pb.TagNumber(106) + set docTagPrefix($core.String v) { + $_setString(6, v); + } + + @$pb.TagNumber(106) + $core.bool hasDocTagPrefix() => $_has(6); + @$pb.TagNumber(106) + void clearDocTagPrefix() => clearField(106); + + /// For whom the client library is being published. + @$pb.TagNumber(107) + ClientLibraryOrganization get organization => $_getN(7); + @$pb.TagNumber(107) + set organization(ClientLibraryOrganization v) { + setField(107, v); + } + + @$pb.TagNumber(107) + $core.bool hasOrganization() => $_has(7); + @$pb.TagNumber(107) + void clearOrganization() => clearField(107); + + /// Client library settings. If the same version string appears multiple + /// times in this list, then the last one wins. Settings from earlier + /// settings with the same version string are discarded. + @$pb.TagNumber(109) + $core.List get librarySettings => $_getList(8); + + /// Optional link to proto reference documentation. Example: + /// https://cloud.google.com/pubsub/lite/docs/reference/rpc + @$pb.TagNumber(110) + $core.String get protoReferenceDocumentationUri => $_getSZ(9); + @$pb.TagNumber(110) + set protoReferenceDocumentationUri($core.String v) { + $_setString(9, v); + } + + @$pb.TagNumber(110) + $core.bool hasProtoReferenceDocumentationUri() => $_has(9); + @$pb.TagNumber(110) + void clearProtoReferenceDocumentationUri() => clearField(110); + + /// Optional link to REST reference documentation. Example: + /// https://cloud.google.com/pubsub/lite/docs/reference/rest + @$pb.TagNumber(111) + $core.String get restReferenceDocumentationUri => $_getSZ(10); + @$pb.TagNumber(111) + set restReferenceDocumentationUri($core.String v) { + $_setString(10, v); + } + + @$pb.TagNumber(111) + $core.bool hasRestReferenceDocumentationUri() => $_has(10); + @$pb.TagNumber(111) + void clearRestReferenceDocumentationUri() => clearField(111); +} + +/// Settings for Java client libraries. +class JavaSettings extends $pb.GeneratedMessage { + factory JavaSettings({ + $core.String? libraryPackage, + $core.Map<$core.String, $core.String>? serviceClassNames, + CommonLanguageSettings? common, + }) { + final $result = create(); + if (libraryPackage != null) { + $result.libraryPackage = libraryPackage; + } + if (serviceClassNames != null) { + $result.serviceClassNames.addAll(serviceClassNames); + } + if (common != null) { + $result.common = common; + } + return $result; + } + JavaSettings._() : super(); + factory JavaSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory JavaSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'JavaSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'libraryPackage') + ..m<$core.String, $core.String>( + 2, _omitFieldNames ? '' : 'serviceClassNames', + entryClassName: 'JavaSettings.ServiceClassNamesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api')) + ..aOM(3, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.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') + JavaSettings clone() => JavaSettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + JavaSettings copyWith(void Function(JavaSettings) updates) => + super.copyWith((message) => updates(message as JavaSettings)) + as JavaSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static JavaSettings create() => JavaSettings._(); + JavaSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static JavaSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static JavaSettings? _defaultInstance; + + /// The package name to use in Java. Clobbers the java_package option + /// set in the protobuf. This should be used **only** by APIs + /// who have already set the language_settings.java.package_name" field + /// in gapic.yaml. API teams should use the protobuf java_package option + /// where possible. + /// + /// Example of a YAML configuration:: + /// + /// publishing: + /// java_settings: + /// library_package: com.google.cloud.pubsub.v1 + @$pb.TagNumber(1) + $core.String get libraryPackage => $_getSZ(0); + @$pb.TagNumber(1) + set libraryPackage($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasLibraryPackage() => $_has(0); + @$pb.TagNumber(1) + void clearLibraryPackage() => clearField(1); + + /// Configure the Java class name to use instead of the service's for its + /// corresponding generated GAPIC client. Keys are fully-qualified + /// service names as they appear in the protobuf (including the full + /// the language_settings.java.interface_names" field in gapic.yaml. API + /// teams should otherwise use the service name as it appears in the + /// protobuf. + /// + /// Example of a YAML configuration:: + /// + /// publishing: + /// java_settings: + /// service_class_names: + /// - google.pubsub.v1.Publisher: TopicAdmin + /// - google.pubsub.v1.Subscriber: SubscriptionAdmin + @$pb.TagNumber(2) + $core.Map<$core.String, $core.String> get serviceClassNames => $_getMap(1); + + /// Some settings. + @$pb.TagNumber(3) + CommonLanguageSettings get common => $_getN(2); + @$pb.TagNumber(3) + set common(CommonLanguageSettings v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasCommon() => $_has(2); + @$pb.TagNumber(3) + void clearCommon() => clearField(3); + @$pb.TagNumber(3) + CommonLanguageSettings ensureCommon() => $_ensure(2); +} + +/// Settings for C++ client libraries. +class CppSettings extends $pb.GeneratedMessage { + factory CppSettings({ + CommonLanguageSettings? common, + }) { + final $result = create(); + if (common != null) { + $result.common = common; + } + return $result; + } + CppSettings._() : super(); + factory CppSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CppSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CppSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.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') + CppSettings clone() => CppSettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CppSettings copyWith(void Function(CppSettings) updates) => + super.copyWith((message) => updates(message as CppSettings)) + as CppSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CppSettings create() => CppSettings._(); + CppSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CppSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CppSettings? _defaultInstance; + + /// Some settings. + @$pb.TagNumber(1) + CommonLanguageSettings get common => $_getN(0); + @$pb.TagNumber(1) + set common(CommonLanguageSettings v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCommon() => $_has(0); + @$pb.TagNumber(1) + void clearCommon() => clearField(1); + @$pb.TagNumber(1) + CommonLanguageSettings ensureCommon() => $_ensure(0); +} + +/// Settings for Php client libraries. +class PhpSettings extends $pb.GeneratedMessage { + factory PhpSettings({ + CommonLanguageSettings? common, + }) { + final $result = create(); + if (common != null) { + $result.common = common; + } + return $result; + } + PhpSettings._() : super(); + factory PhpSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PhpSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PhpSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.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') + PhpSettings clone() => PhpSettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PhpSettings copyWith(void Function(PhpSettings) updates) => + super.copyWith((message) => updates(message as PhpSettings)) + as PhpSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PhpSettings create() => PhpSettings._(); + PhpSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PhpSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PhpSettings? _defaultInstance; + + /// Some settings. + @$pb.TagNumber(1) + CommonLanguageSettings get common => $_getN(0); + @$pb.TagNumber(1) + set common(CommonLanguageSettings v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCommon() => $_has(0); + @$pb.TagNumber(1) + void clearCommon() => clearField(1); + @$pb.TagNumber(1) + CommonLanguageSettings ensureCommon() => $_ensure(0); +} + +/// Experimental features to be included during client library generation. +/// These fields will be deprecated once the feature graduates and is enabled +/// by default. +class PythonSettings_ExperimentalFeatures extends $pb.GeneratedMessage { + factory PythonSettings_ExperimentalFeatures({ + $core.bool? restAsyncIoEnabled, + }) { + final $result = create(); + if (restAsyncIoEnabled != null) { + $result.restAsyncIoEnabled = restAsyncIoEnabled; + } + return $result; + } + PythonSettings_ExperimentalFeatures._() : super(); + factory PythonSettings_ExperimentalFeatures.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PythonSettings_ExperimentalFeatures.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PythonSettings.ExperimentalFeatures', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'restAsyncIoEnabled') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PythonSettings_ExperimentalFeatures clone() => + PythonSettings_ExperimentalFeatures()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PythonSettings_ExperimentalFeatures copyWith( + void Function(PythonSettings_ExperimentalFeatures) updates) => + super.copyWith((message) => + updates(message as PythonSettings_ExperimentalFeatures)) + as PythonSettings_ExperimentalFeatures; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PythonSettings_ExperimentalFeatures create() => + PythonSettings_ExperimentalFeatures._(); + PythonSettings_ExperimentalFeatures createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PythonSettings_ExperimentalFeatures getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + PythonSettings_ExperimentalFeatures>(create); + static PythonSettings_ExperimentalFeatures? _defaultInstance; + + /// Enables generation of asynchronous REST clients if `rest` transport is + /// enabled. By default, asynchronous REST clients will not be generated. + /// This feature will be enabled by default 1 month after launching the + /// feature in preview packages. + @$pb.TagNumber(1) + $core.bool get restAsyncIoEnabled => $_getBF(0); + @$pb.TagNumber(1) + set restAsyncIoEnabled($core.bool v) { + $_setBool(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasRestAsyncIoEnabled() => $_has(0); + @$pb.TagNumber(1) + void clearRestAsyncIoEnabled() => clearField(1); +} + +/// Settings for Python client libraries. +class PythonSettings extends $pb.GeneratedMessage { + factory PythonSettings({ + CommonLanguageSettings? common, + PythonSettings_ExperimentalFeatures? experimentalFeatures, + }) { + final $result = create(); + if (common != null) { + $result.common = common; + } + if (experimentalFeatures != null) { + $result.experimentalFeatures = experimentalFeatures; + } + return $result; + } + PythonSettings._() : super(); + factory PythonSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PythonSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PythonSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.create) + ..aOM( + 2, _omitFieldNames ? '' : 'experimentalFeatures', + subBuilder: PythonSettings_ExperimentalFeatures.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') + PythonSettings clone() => PythonSettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PythonSettings copyWith(void Function(PythonSettings) updates) => + super.copyWith((message) => updates(message as PythonSettings)) + as PythonSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PythonSettings create() => PythonSettings._(); + PythonSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PythonSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PythonSettings? _defaultInstance; + + /// Some settings. + @$pb.TagNumber(1) + CommonLanguageSettings get common => $_getN(0); + @$pb.TagNumber(1) + set common(CommonLanguageSettings v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCommon() => $_has(0); + @$pb.TagNumber(1) + void clearCommon() => clearField(1); + @$pb.TagNumber(1) + CommonLanguageSettings ensureCommon() => $_ensure(0); + + /// Experimental features to be included during client library generation. + @$pb.TagNumber(2) + PythonSettings_ExperimentalFeatures get experimentalFeatures => $_getN(1); + @$pb.TagNumber(2) + set experimentalFeatures(PythonSettings_ExperimentalFeatures v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasExperimentalFeatures() => $_has(1); + @$pb.TagNumber(2) + void clearExperimentalFeatures() => clearField(2); + @$pb.TagNumber(2) + PythonSettings_ExperimentalFeatures ensureExperimentalFeatures() => + $_ensure(1); +} + +/// Settings for Node client libraries. +class NodeSettings extends $pb.GeneratedMessage { + factory NodeSettings({ + CommonLanguageSettings? common, + }) { + final $result = create(); + if (common != null) { + $result.common = common; + } + return $result; + } + NodeSettings._() : super(); + factory NodeSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory NodeSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'NodeSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.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') + NodeSettings clone() => NodeSettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + NodeSettings copyWith(void Function(NodeSettings) updates) => + super.copyWith((message) => updates(message as NodeSettings)) + as NodeSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static NodeSettings create() => NodeSettings._(); + NodeSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static NodeSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static NodeSettings? _defaultInstance; + + /// Some settings. + @$pb.TagNumber(1) + CommonLanguageSettings get common => $_getN(0); + @$pb.TagNumber(1) + set common(CommonLanguageSettings v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCommon() => $_has(0); + @$pb.TagNumber(1) + void clearCommon() => clearField(1); + @$pb.TagNumber(1) + CommonLanguageSettings ensureCommon() => $_ensure(0); +} + +/// Settings for Dotnet client libraries. +class DotnetSettings extends $pb.GeneratedMessage { + factory DotnetSettings({ + CommonLanguageSettings? common, + $core.Map<$core.String, $core.String>? renamedServices, + $core.Map<$core.String, $core.String>? renamedResources, + $core.Iterable<$core.String>? ignoredResources, + $core.Iterable<$core.String>? forcedNamespaceAliases, + $core.Iterable<$core.String>? handwrittenSignatures, + }) { + final $result = create(); + if (common != null) { + $result.common = common; + } + if (renamedServices != null) { + $result.renamedServices.addAll(renamedServices); + } + if (renamedResources != null) { + $result.renamedResources.addAll(renamedResources); + } + if (ignoredResources != null) { + $result.ignoredResources.addAll(ignoredResources); + } + if (forcedNamespaceAliases != null) { + $result.forcedNamespaceAliases.addAll(forcedNamespaceAliases); + } + if (handwrittenSignatures != null) { + $result.handwrittenSignatures.addAll(handwrittenSignatures); + } + return $result; + } + DotnetSettings._() : super(); + factory DotnetSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DotnetSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DotnetSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.create) + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'renamedServices', + entryClassName: 'DotnetSettings.RenamedServicesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api')) + ..m<$core.String, $core.String>( + 3, _omitFieldNames ? '' : 'renamedResources', + entryClassName: 'DotnetSettings.RenamedResourcesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api')) + ..pPS(4, _omitFieldNames ? '' : 'ignoredResources') + ..pPS(5, _omitFieldNames ? '' : 'forcedNamespaceAliases') + ..pPS(6, _omitFieldNames ? '' : 'handwrittenSignatures') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DotnetSettings clone() => DotnetSettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DotnetSettings copyWith(void Function(DotnetSettings) updates) => + super.copyWith((message) => updates(message as DotnetSettings)) + as DotnetSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DotnetSettings create() => DotnetSettings._(); + DotnetSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DotnetSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static DotnetSettings? _defaultInstance; + + /// Some settings. + @$pb.TagNumber(1) + CommonLanguageSettings get common => $_getN(0); + @$pb.TagNumber(1) + set common(CommonLanguageSettings v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCommon() => $_has(0); + @$pb.TagNumber(1) + void clearCommon() => clearField(1); + @$pb.TagNumber(1) + CommonLanguageSettings ensureCommon() => $_ensure(0); + + /// Map from original service names to renamed versions. + /// This is used when the default generated types + /// would cause a naming conflict. (Neither name is + /// fully-qualified.) + /// Example: Subscriber to SubscriberServiceApi. + @$pb.TagNumber(2) + $core.Map<$core.String, $core.String> get renamedServices => $_getMap(1); + + /// Map from full resource types to the effective short name + /// for the resource. This is used when otherwise resource + /// named from different services would cause naming collisions. + /// Example entry: + /// "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + @$pb.TagNumber(3) + $core.Map<$core.String, $core.String> get renamedResources => $_getMap(2); + + /// List of full resource types to ignore during generation. + /// This is typically used for API-specific Location resources, + /// which should be handled by the generator as if they were actually + /// the common Location resources. + /// Example entry: "documentai.googleapis.com/Location" + @$pb.TagNumber(4) + $core.List<$core.String> get ignoredResources => $_getList(3); + + /// Namespaces which must be aliased in snippets due to + /// a known (but non-generator-predictable) naming collision + @$pb.TagNumber(5) + $core.List<$core.String> get forcedNamespaceAliases => $_getList(4); + + /// Method signatures (in the form "service.method(signature)") + /// which are provided separately, so shouldn't be generated. + /// Snippets *calling* these methods are still generated, however. + @$pb.TagNumber(6) + $core.List<$core.String> get handwrittenSignatures => $_getList(5); +} + +/// Settings for Ruby client libraries. +class RubySettings extends $pb.GeneratedMessage { + factory RubySettings({ + CommonLanguageSettings? common, + }) { + final $result = create(); + if (common != null) { + $result.common = common; + } + return $result; + } + RubySettings._() : super(); + factory RubySettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RubySettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RubySettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.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') + RubySettings clone() => RubySettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RubySettings copyWith(void Function(RubySettings) updates) => + super.copyWith((message) => updates(message as RubySettings)) + as RubySettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RubySettings create() => RubySettings._(); + RubySettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RubySettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static RubySettings? _defaultInstance; + + /// Some settings. + @$pb.TagNumber(1) + CommonLanguageSettings get common => $_getN(0); + @$pb.TagNumber(1) + set common(CommonLanguageSettings v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCommon() => $_has(0); + @$pb.TagNumber(1) + void clearCommon() => clearField(1); + @$pb.TagNumber(1) + CommonLanguageSettings ensureCommon() => $_ensure(0); +} + +/// Settings for Go client libraries. +class GoSettings extends $pb.GeneratedMessage { + factory GoSettings({ + CommonLanguageSettings? common, + }) { + final $result = create(); + if (common != null) { + $result.common = common; + } + return $result; + } + GoSettings._() : super(); + factory GoSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GoSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GoSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonLanguageSettings.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') + GoSettings clone() => GoSettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GoSettings copyWith(void Function(GoSettings) updates) => + super.copyWith((message) => updates(message as GoSettings)) as GoSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GoSettings create() => GoSettings._(); + GoSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GoSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GoSettings? _defaultInstance; + + /// Some settings. + @$pb.TagNumber(1) + CommonLanguageSettings get common => $_getN(0); + @$pb.TagNumber(1) + set common(CommonLanguageSettings v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCommon() => $_has(0); + @$pb.TagNumber(1) + void clearCommon() => clearField(1); + @$pb.TagNumber(1) + CommonLanguageSettings ensureCommon() => $_ensure(0); +} + +/// Describes settings to use when generating API methods that use the +/// long-running operation pattern. +/// All default values below are from those used in the client library +/// generators (e.g. +/// [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). +class MethodSettings_LongRunning extends $pb.GeneratedMessage { + factory MethodSettings_LongRunning({ + $51.Duration? initialPollDelay, + $core.double? pollDelayMultiplier, + $51.Duration? maxPollDelay, + $51.Duration? totalPollTimeout, + }) { + final $result = create(); + if (initialPollDelay != null) { + $result.initialPollDelay = initialPollDelay; + } + if (pollDelayMultiplier != null) { + $result.pollDelayMultiplier = pollDelayMultiplier; + } + if (maxPollDelay != null) { + $result.maxPollDelay = maxPollDelay; + } + if (totalPollTimeout != null) { + $result.totalPollTimeout = totalPollTimeout; + } + return $result; + } + MethodSettings_LongRunning._() : super(); + factory MethodSettings_LongRunning.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory MethodSettings_LongRunning.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MethodSettings.LongRunning', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM<$51.Duration>(1, _omitFieldNames ? '' : 'initialPollDelay', + subBuilder: $51.Duration.create) + ..a<$core.double>( + 2, _omitFieldNames ? '' : 'pollDelayMultiplier', $pb.PbFieldType.OF) + ..aOM<$51.Duration>(3, _omitFieldNames ? '' : 'maxPollDelay', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(4, _omitFieldNames ? '' : 'totalPollTimeout', + subBuilder: $51.Duration.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') + MethodSettings_LongRunning clone() => + MethodSettings_LongRunning()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MethodSettings_LongRunning copyWith( + void Function(MethodSettings_LongRunning) updates) => + super.copyWith( + (message) => updates(message as MethodSettings_LongRunning)) + as MethodSettings_LongRunning; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static MethodSettings_LongRunning create() => MethodSettings_LongRunning._(); + MethodSettings_LongRunning createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static MethodSettings_LongRunning getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static MethodSettings_LongRunning? _defaultInstance; + + /// Initial delay after which the first poll request will be made. + /// Default value: 5 seconds. + @$pb.TagNumber(1) + $51.Duration get initialPollDelay => $_getN(0); + @$pb.TagNumber(1) + set initialPollDelay($51.Duration v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasInitialPollDelay() => $_has(0); + @$pb.TagNumber(1) + void clearInitialPollDelay() => clearField(1); + @$pb.TagNumber(1) + $51.Duration ensureInitialPollDelay() => $_ensure(0); + + /// Multiplier to gradually increase delay between subsequent polls until it + /// reaches max_poll_delay. + /// Default value: 1.5. + @$pb.TagNumber(2) + $core.double get pollDelayMultiplier => $_getN(1); + @$pb.TagNumber(2) + set pollDelayMultiplier($core.double v) { + $_setFloat(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPollDelayMultiplier() => $_has(1); + @$pb.TagNumber(2) + void clearPollDelayMultiplier() => clearField(2); + + /// Maximum time between two subsequent poll requests. + /// Default value: 45 seconds. + @$pb.TagNumber(3) + $51.Duration get maxPollDelay => $_getN(2); + @$pb.TagNumber(3) + set maxPollDelay($51.Duration v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasMaxPollDelay() => $_has(2); + @$pb.TagNumber(3) + void clearMaxPollDelay() => clearField(3); + @$pb.TagNumber(3) + $51.Duration ensureMaxPollDelay() => $_ensure(2); + + /// Total polling timeout. + /// Default value: 5 minutes. + @$pb.TagNumber(4) + $51.Duration get totalPollTimeout => $_getN(3); + @$pb.TagNumber(4) + set totalPollTimeout($51.Duration v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasTotalPollTimeout() => $_has(3); + @$pb.TagNumber(4) + void clearTotalPollTimeout() => clearField(4); + @$pb.TagNumber(4) + $51.Duration ensureTotalPollTimeout() => $_ensure(3); +} + +/// Describes the generator configuration for a method. +class MethodSettings extends $pb.GeneratedMessage { + factory MethodSettings({ + $core.String? selector, + MethodSettings_LongRunning? longRunning, + $core.Iterable<$core.String>? autoPopulatedFields, + }) { + final $result = create(); + if (selector != null) { + $result.selector = selector; + } + if (longRunning != null) { + $result.longRunning = longRunning; + } + if (autoPopulatedFields != null) { + $result.autoPopulatedFields.addAll(autoPopulatedFields); + } + return $result; + } + MethodSettings._() : super(); + factory MethodSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory MethodSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MethodSettings', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..aOM(2, _omitFieldNames ? '' : 'longRunning', + subBuilder: MethodSettings_LongRunning.create) + ..pPS(3, _omitFieldNames ? '' : 'autoPopulatedFields') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MethodSettings clone() => MethodSettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MethodSettings copyWith(void Function(MethodSettings) updates) => + super.copyWith((message) => updates(message as MethodSettings)) + as MethodSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static MethodSettings create() => MethodSettings._(); + MethodSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static MethodSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static MethodSettings? _defaultInstance; + + /// The fully qualified name of the method, for which the options below apply. + /// This is used to find the method to apply the options. + /// + /// Example: + /// + /// publishing: + /// method_settings: + /// - selector: google.storage.control.v2.StorageControl.CreateFolder + /// # method settings for CreateFolder... + @$pb.TagNumber(1) + $core.String get selector => $_getSZ(0); + @$pb.TagNumber(1) + set selector($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasSelector() => $_has(0); + @$pb.TagNumber(1) + void clearSelector() => clearField(1); + + /// Describes settings to use for long-running operations when generating + /// API methods for RPCs. Complements RPCs that use the annotations in + /// google/longrunning/operations.proto. + /// + /// Example of a YAML configuration:: + /// + /// publishing: + /// method_settings: + /// - selector: google.cloud.speech.v2.Speech.BatchRecognize + /// long_running: + /// initial_poll_delay: 60s # 1 minute + /// poll_delay_multiplier: 1.5 + /// max_poll_delay: 360s # 6 minutes + /// total_poll_timeout: 54000s # 90 minutes + @$pb.TagNumber(2) + MethodSettings_LongRunning get longRunning => $_getN(1); + @$pb.TagNumber(2) + set longRunning(MethodSettings_LongRunning v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasLongRunning() => $_has(1); + @$pb.TagNumber(2) + void clearLongRunning() => clearField(2); + @$pb.TagNumber(2) + MethodSettings_LongRunning ensureLongRunning() => $_ensure(1); + + /// List of top-level fields of the request message, that should be + /// automatically populated by the client libraries based on their + /// (google.api.field_info).format. Currently supported format: UUID4. + /// + /// Example of a YAML configuration: + /// + /// publishing: + /// method_settings: + /// - selector: google.example.v1.ExampleService.CreateExample + /// auto_populated_fields: + /// - request_id + @$pb.TagNumber(3) + $core.List<$core.String> get autoPopulatedFields => $_getList(2); +} + class Client { static final methodSignature = $pb.Extension<$core.String>.repeated( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.MethodOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'methodSignature', + _omitMessageNames ? '' : 'google.protobuf.MethodOptions', + _omitFieldNames ? '' : 'methodSignature', 1051, $pb.PbFieldType.PS, check: $pb.getCheckFunction($pb.PbFieldType.PS)); static final defaultHost = $pb.Extension<$core.String>( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.ServiceOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'defaultHost', + _omitMessageNames ? '' : 'google.protobuf.ServiceOptions', + _omitFieldNames ? '' : 'defaultHost', 1049, $pb.PbFieldType.OS); static final oauthScopes = $pb.Extension<$core.String>( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.ServiceOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'oauthScopes', + _omitMessageNames ? '' : 'google.protobuf.ServiceOptions', + _omitFieldNames ? '' : 'oauthScopes', 1050, $pb.PbFieldType.OS); + static final apiVersion = $pb.Extension<$core.String>( + _omitMessageNames ? '' : 'google.protobuf.ServiceOptions', + _omitFieldNames ? '' : 'apiVersion', + 525000001, + $pb.PbFieldType.OS); static void registerAllExtensions($pb.ExtensionRegistry registry) { registry.add(methodSignature); registry.add(defaultHost); registry.add(oauthScopes); + registry.add(apiVersion); } } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pbenum.dart index e497b0d8..3a0f3a48 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pbenum.dart @@ -1,6 +1,80 @@ -/// +// // Generated code. Do not modify. // source: google/api/client.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; + +/// The organization for which the client libraries are being published. +/// Affects the url where generated docs are published, etc. +class ClientLibraryOrganization extends $pb.ProtobufEnum { + static const ClientLibraryOrganization + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = ClientLibraryOrganization._( + 0, _omitEnumNames ? '' : 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED'); + static const ClientLibraryOrganization CLOUD = + ClientLibraryOrganization._(1, _omitEnumNames ? '' : 'CLOUD'); + static const ClientLibraryOrganization ADS = + ClientLibraryOrganization._(2, _omitEnumNames ? '' : 'ADS'); + static const ClientLibraryOrganization PHOTOS = + ClientLibraryOrganization._(3, _omitEnumNames ? '' : 'PHOTOS'); + static const ClientLibraryOrganization STREET_VIEW = + ClientLibraryOrganization._(4, _omitEnumNames ? '' : 'STREET_VIEW'); + static const ClientLibraryOrganization SHOPPING = + ClientLibraryOrganization._(5, _omitEnumNames ? '' : 'SHOPPING'); + static const ClientLibraryOrganization GEO = + ClientLibraryOrganization._(6, _omitEnumNames ? '' : 'GEO'); + static const ClientLibraryOrganization GENERATIVE_AI = + ClientLibraryOrganization._(7, _omitEnumNames ? '' : 'GENERATIVE_AI'); + + static const $core.List values = + [ + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED, + CLOUD, + ADS, + PHOTOS, + STREET_VIEW, + SHOPPING, + GEO, + GENERATIVE_AI, + ]; + + static final $core.Map<$core.int, ClientLibraryOrganization> _byValue = + $pb.ProtobufEnum.initByValue(values); + static ClientLibraryOrganization? valueOf($core.int value) => _byValue[value]; + + const ClientLibraryOrganization._($core.int v, $core.String n) : super(v, n); +} + +/// To where should client libraries be published? +class ClientLibraryDestination extends $pb.ProtobufEnum { + static const ClientLibraryDestination CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = + ClientLibraryDestination._( + 0, _omitEnumNames ? '' : 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED'); + static const ClientLibraryDestination GITHUB = + ClientLibraryDestination._(10, _omitEnumNames ? '' : 'GITHUB'); + static const ClientLibraryDestination PACKAGE_MANAGER = + ClientLibraryDestination._(20, _omitEnumNames ? '' : 'PACKAGE_MANAGER'); + + static const $core.List values = + [ + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED, + GITHUB, + PACKAGE_MANAGER, + ]; + + static final $core.Map<$core.int, ClientLibraryDestination> _byValue = + $pb.ProtobufEnum.initByValue(values); + static ClientLibraryDestination? valueOf($core.int value) => _byValue[value]; + + const ClientLibraryDestination._($core.int v, $core.String n) : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pbjson.dart index d81085e5..e70ed21c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/client.pbjson.dart @@ -1,10 +1,614 @@ -/// +// // Generated code. Do not modify. // source: google/api/client.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 clientLibraryOrganizationDescriptor instead') +const ClientLibraryOrganization$json = { + '1': 'ClientLibraryOrganization', + '2': [ + {'1': 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED', '2': 0}, + {'1': 'CLOUD', '2': 1}, + {'1': 'ADS', '2': 2}, + {'1': 'PHOTOS', '2': 3}, + {'1': 'STREET_VIEW', '2': 4}, + {'1': 'SHOPPING', '2': 5}, + {'1': 'GEO', '2': 6}, + {'1': 'GENERATIVE_AI', '2': 7}, + ], +}; + +/// Descriptor for `ClientLibraryOrganization`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List clientLibraryOrganizationDescriptor = $convert.base64Decode( + 'ChlDbGllbnRMaWJyYXJ5T3JnYW5pemF0aW9uEisKJ0NMSUVOVF9MSUJSQVJZX09SR0FOSVpBVE' + 'lPTl9VTlNQRUNJRklFRBAAEgkKBUNMT1VEEAESBwoDQURTEAISCgoGUEhPVE9TEAMSDwoLU1RS' + 'RUVUX1ZJRVcQBBIMCghTSE9QUElORxAFEgcKA0dFTxAGEhEKDUdFTkVSQVRJVkVfQUkQBw=='); + +@$core.Deprecated('Use clientLibraryDestinationDescriptor instead') +const ClientLibraryDestination$json = { + '1': 'ClientLibraryDestination', + '2': [ + {'1': 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED', '2': 0}, + {'1': 'GITHUB', '2': 10}, + {'1': 'PACKAGE_MANAGER', '2': 20}, + ], +}; + +/// Descriptor for `ClientLibraryDestination`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List clientLibraryDestinationDescriptor = + $convert.base64Decode( + 'ChhDbGllbnRMaWJyYXJ5RGVzdGluYXRpb24SKgomQ0xJRU5UX0xJQlJBUllfREVTVElOQVRJT0' + '5fVU5TUEVDSUZJRUQQABIKCgZHSVRIVUIQChITCg9QQUNLQUdFX01BTkFHRVIQFA=='); + +@$core.Deprecated('Use commonLanguageSettingsDescriptor instead') +const CommonLanguageSettings$json = { + '1': 'CommonLanguageSettings', + '2': [ + { + '1': 'reference_docs_uri', + '3': 1, + '4': 1, + '5': 9, + '8': {'3': true}, + '10': 'referenceDocsUri', + }, + { + '1': 'destinations', + '3': 2, + '4': 3, + '5': 14, + '6': '.google.api.ClientLibraryDestination', + '10': 'destinations' + }, + ], +}; + +/// Descriptor for `CommonLanguageSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List commonLanguageSettingsDescriptor = $convert.base64Decode( + 'ChZDb21tb25MYW5ndWFnZVNldHRpbmdzEjAKEnJlZmVyZW5jZV9kb2NzX3VyaRgBIAEoCUICGA' + 'FSEHJlZmVyZW5jZURvY3NVcmkSSAoMZGVzdGluYXRpb25zGAIgAygOMiQuZ29vZ2xlLmFwaS5D' + 'bGllbnRMaWJyYXJ5RGVzdGluYXRpb25SDGRlc3RpbmF0aW9ucw=='); + +@$core.Deprecated('Use clientLibrarySettingsDescriptor instead') +const ClientLibrarySettings$json = { + '1': 'ClientLibrarySettings', + '2': [ + {'1': 'version', '3': 1, '4': 1, '5': 9, '10': 'version'}, + { + '1': 'launch_stage', + '3': 2, + '4': 1, + '5': 14, + '6': '.google.api.LaunchStage', + '10': 'launchStage' + }, + { + '1': 'rest_numeric_enums', + '3': 3, + '4': 1, + '5': 8, + '10': 'restNumericEnums' + }, + { + '1': 'java_settings', + '3': 21, + '4': 1, + '5': 11, + '6': '.google.api.JavaSettings', + '10': 'javaSettings' + }, + { + '1': 'cpp_settings', + '3': 22, + '4': 1, + '5': 11, + '6': '.google.api.CppSettings', + '10': 'cppSettings' + }, + { + '1': 'php_settings', + '3': 23, + '4': 1, + '5': 11, + '6': '.google.api.PhpSettings', + '10': 'phpSettings' + }, + { + '1': 'python_settings', + '3': 24, + '4': 1, + '5': 11, + '6': '.google.api.PythonSettings', + '10': 'pythonSettings' + }, + { + '1': 'node_settings', + '3': 25, + '4': 1, + '5': 11, + '6': '.google.api.NodeSettings', + '10': 'nodeSettings' + }, + { + '1': 'dotnet_settings', + '3': 26, + '4': 1, + '5': 11, + '6': '.google.api.DotnetSettings', + '10': 'dotnetSettings' + }, + { + '1': 'ruby_settings', + '3': 27, + '4': 1, + '5': 11, + '6': '.google.api.RubySettings', + '10': 'rubySettings' + }, + { + '1': 'go_settings', + '3': 28, + '4': 1, + '5': 11, + '6': '.google.api.GoSettings', + '10': 'goSettings' + }, + ], +}; + +/// Descriptor for `ClientLibrarySettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List clientLibrarySettingsDescriptor = $convert.base64Decode( + 'ChVDbGllbnRMaWJyYXJ5U2V0dGluZ3MSGAoHdmVyc2lvbhgBIAEoCVIHdmVyc2lvbhI6CgxsYX' + 'VuY2hfc3RhZ2UYAiABKA4yFy5nb29nbGUuYXBpLkxhdW5jaFN0YWdlUgtsYXVuY2hTdGFnZRIs' + 'ChJyZXN0X251bWVyaWNfZW51bXMYAyABKAhSEHJlc3ROdW1lcmljRW51bXMSPQoNamF2YV9zZX' + 'R0aW5ncxgVIAEoCzIYLmdvb2dsZS5hcGkuSmF2YVNldHRpbmdzUgxqYXZhU2V0dGluZ3MSOgoM' + 'Y3BwX3NldHRpbmdzGBYgASgLMhcuZ29vZ2xlLmFwaS5DcHBTZXR0aW5nc1ILY3BwU2V0dGluZ3' + 'MSOgoMcGhwX3NldHRpbmdzGBcgASgLMhcuZ29vZ2xlLmFwaS5QaHBTZXR0aW5nc1ILcGhwU2V0' + 'dGluZ3MSQwoPcHl0aG9uX3NldHRpbmdzGBggASgLMhouZ29vZ2xlLmFwaS5QeXRob25TZXR0aW' + '5nc1IOcHl0aG9uU2V0dGluZ3MSPQoNbm9kZV9zZXR0aW5ncxgZIAEoCzIYLmdvb2dsZS5hcGku' + 'Tm9kZVNldHRpbmdzUgxub2RlU2V0dGluZ3MSQwoPZG90bmV0X3NldHRpbmdzGBogASgLMhouZ2' + '9vZ2xlLmFwaS5Eb3RuZXRTZXR0aW5nc1IOZG90bmV0U2V0dGluZ3MSPQoNcnVieV9zZXR0aW5n' + 'cxgbIAEoCzIYLmdvb2dsZS5hcGkuUnVieVNldHRpbmdzUgxydWJ5U2V0dGluZ3MSNwoLZ29fc2' + 'V0dGluZ3MYHCABKAsyFi5nb29nbGUuYXBpLkdvU2V0dGluZ3NSCmdvU2V0dGluZ3M='); + +@$core.Deprecated('Use publishingDescriptor instead') +const Publishing$json = { + '1': 'Publishing', + '2': [ + { + '1': 'method_settings', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.api.MethodSettings', + '10': 'methodSettings' + }, + {'1': 'new_issue_uri', '3': 101, '4': 1, '5': 9, '10': 'newIssueUri'}, + { + '1': 'documentation_uri', + '3': 102, + '4': 1, + '5': 9, + '10': 'documentationUri' + }, + {'1': 'api_short_name', '3': 103, '4': 1, '5': 9, '10': 'apiShortName'}, + {'1': 'github_label', '3': 104, '4': 1, '5': 9, '10': 'githubLabel'}, + { + '1': 'codeowner_github_teams', + '3': 105, + '4': 3, + '5': 9, + '10': 'codeownerGithubTeams' + }, + {'1': 'doc_tag_prefix', '3': 106, '4': 1, '5': 9, '10': 'docTagPrefix'}, + { + '1': 'organization', + '3': 107, + '4': 1, + '5': 14, + '6': '.google.api.ClientLibraryOrganization', + '10': 'organization' + }, + { + '1': 'library_settings', + '3': 109, + '4': 3, + '5': 11, + '6': '.google.api.ClientLibrarySettings', + '10': 'librarySettings' + }, + { + '1': 'proto_reference_documentation_uri', + '3': 110, + '4': 1, + '5': 9, + '10': 'protoReferenceDocumentationUri' + }, + { + '1': 'rest_reference_documentation_uri', + '3': 111, + '4': 1, + '5': 9, + '10': 'restReferenceDocumentationUri' + }, + ], +}; + +/// Descriptor for `Publishing`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List publishingDescriptor = $convert.base64Decode( + 'CgpQdWJsaXNoaW5nEkMKD21ldGhvZF9zZXR0aW5ncxgCIAMoCzIaLmdvb2dsZS5hcGkuTWV0aG' + '9kU2V0dGluZ3NSDm1ldGhvZFNldHRpbmdzEiIKDW5ld19pc3N1ZV91cmkYZSABKAlSC25ld0lz' + 'c3VlVXJpEisKEWRvY3VtZW50YXRpb25fdXJpGGYgASgJUhBkb2N1bWVudGF0aW9uVXJpEiQKDm' + 'FwaV9zaG9ydF9uYW1lGGcgASgJUgxhcGlTaG9ydE5hbWUSIQoMZ2l0aHViX2xhYmVsGGggASgJ' + 'UgtnaXRodWJMYWJlbBI0ChZjb2Rlb3duZXJfZ2l0aHViX3RlYW1zGGkgAygJUhRjb2Rlb3duZX' + 'JHaXRodWJUZWFtcxIkCg5kb2NfdGFnX3ByZWZpeBhqIAEoCVIMZG9jVGFnUHJlZml4EkkKDG9y' + 'Z2FuaXphdGlvbhhrIAEoDjIlLmdvb2dsZS5hcGkuQ2xpZW50TGlicmFyeU9yZ2FuaXphdGlvbl' + 'IMb3JnYW5pemF0aW9uEkwKEGxpYnJhcnlfc2V0dGluZ3MYbSADKAsyIS5nb29nbGUuYXBpLkNs' + 'aWVudExpYnJhcnlTZXR0aW5nc1IPbGlicmFyeVNldHRpbmdzEkkKIXByb3RvX3JlZmVyZW5jZV' + '9kb2N1bWVudGF0aW9uX3VyaRhuIAEoCVIecHJvdG9SZWZlcmVuY2VEb2N1bWVudGF0aW9uVXJp' + 'EkcKIHJlc3RfcmVmZXJlbmNlX2RvY3VtZW50YXRpb25fdXJpGG8gASgJUh1yZXN0UmVmZXJlbm' + 'NlRG9jdW1lbnRhdGlvblVyaQ=='); + +@$core.Deprecated('Use javaSettingsDescriptor instead') +const JavaSettings$json = { + '1': 'JavaSettings', + '2': [ + {'1': 'library_package', '3': 1, '4': 1, '5': 9, '10': 'libraryPackage'}, + { + '1': 'service_class_names', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.api.JavaSettings.ServiceClassNamesEntry', + '10': 'serviceClassNames' + }, + { + '1': 'common', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.api.CommonLanguageSettings', + '10': 'common' + }, + ], + '3': [JavaSettings_ServiceClassNamesEntry$json], +}; + +@$core.Deprecated('Use javaSettingsDescriptor instead') +const JavaSettings_ServiceClassNamesEntry$json = { + '1': 'ServiceClassNamesEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `JavaSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List javaSettingsDescriptor = $convert.base64Decode( + 'CgxKYXZhU2V0dGluZ3MSJwoPbGlicmFyeV9wYWNrYWdlGAEgASgJUg5saWJyYXJ5UGFja2FnZR' + 'JfChNzZXJ2aWNlX2NsYXNzX25hbWVzGAIgAygLMi8uZ29vZ2xlLmFwaS5KYXZhU2V0dGluZ3Mu' + 'U2VydmljZUNsYXNzTmFtZXNFbnRyeVIRc2VydmljZUNsYXNzTmFtZXMSOgoGY29tbW9uGAMgAS' + 'gLMiIuZ29vZ2xlLmFwaS5Db21tb25MYW5ndWFnZVNldHRpbmdzUgZjb21tb24aRAoWU2Vydmlj' + 'ZUNsYXNzTmFtZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdW' + 'U6AjgB'); + +@$core.Deprecated('Use cppSettingsDescriptor instead') +const CppSettings$json = { + '1': 'CppSettings', + '2': [ + { + '1': 'common', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.api.CommonLanguageSettings', + '10': 'common' + }, + ], +}; + +/// Descriptor for `CppSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List cppSettingsDescriptor = $convert.base64Decode( + 'CgtDcHBTZXR0aW5ncxI6CgZjb21tb24YASABKAsyIi5nb29nbGUuYXBpLkNvbW1vbkxhbmd1YW' + 'dlU2V0dGluZ3NSBmNvbW1vbg=='); + +@$core.Deprecated('Use phpSettingsDescriptor instead') +const PhpSettings$json = { + '1': 'PhpSettings', + '2': [ + { + '1': 'common', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.api.CommonLanguageSettings', + '10': 'common' + }, + ], +}; + +/// Descriptor for `PhpSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List phpSettingsDescriptor = $convert.base64Decode( + 'CgtQaHBTZXR0aW5ncxI6CgZjb21tb24YASABKAsyIi5nb29nbGUuYXBpLkNvbW1vbkxhbmd1YW' + 'dlU2V0dGluZ3NSBmNvbW1vbg=='); + +@$core.Deprecated('Use pythonSettingsDescriptor instead') +const PythonSettings$json = { + '1': 'PythonSettings', + '2': [ + { + '1': 'common', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.api.CommonLanguageSettings', + '10': 'common' + }, + { + '1': 'experimental_features', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.api.PythonSettings.ExperimentalFeatures', + '10': 'experimentalFeatures' + }, + ], + '3': [PythonSettings_ExperimentalFeatures$json], +}; + +@$core.Deprecated('Use pythonSettingsDescriptor instead') +const PythonSettings_ExperimentalFeatures$json = { + '1': 'ExperimentalFeatures', + '2': [ + { + '1': 'rest_async_io_enabled', + '3': 1, + '4': 1, + '5': 8, + '10': 'restAsyncIoEnabled' + }, + ], +}; + +/// Descriptor for `PythonSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List pythonSettingsDescriptor = $convert.base64Decode( + 'Cg5QeXRob25TZXR0aW5ncxI6CgZjb21tb24YASABKAsyIi5nb29nbGUuYXBpLkNvbW1vbkxhbm' + 'd1YWdlU2V0dGluZ3NSBmNvbW1vbhJkChVleHBlcmltZW50YWxfZmVhdHVyZXMYAiABKAsyLy5n' + 'b29nbGUuYXBpLlB5dGhvblNldHRpbmdzLkV4cGVyaW1lbnRhbEZlYXR1cmVzUhRleHBlcmltZW' + '50YWxGZWF0dXJlcxpJChRFeHBlcmltZW50YWxGZWF0dXJlcxIxChVyZXN0X2FzeW5jX2lvX2Vu' + 'YWJsZWQYASABKAhSEnJlc3RBc3luY0lvRW5hYmxlZA=='); + +@$core.Deprecated('Use nodeSettingsDescriptor instead') +const NodeSettings$json = { + '1': 'NodeSettings', + '2': [ + { + '1': 'common', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.api.CommonLanguageSettings', + '10': 'common' + }, + ], +}; + +/// Descriptor for `NodeSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List nodeSettingsDescriptor = $convert.base64Decode( + 'CgxOb2RlU2V0dGluZ3MSOgoGY29tbW9uGAEgASgLMiIuZ29vZ2xlLmFwaS5Db21tb25MYW5ndW' + 'FnZVNldHRpbmdzUgZjb21tb24='); + +@$core.Deprecated('Use dotnetSettingsDescriptor instead') +const DotnetSettings$json = { + '1': 'DotnetSettings', + '2': [ + { + '1': 'common', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.api.CommonLanguageSettings', + '10': 'common' + }, + { + '1': 'renamed_services', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.api.DotnetSettings.RenamedServicesEntry', + '10': 'renamedServices' + }, + { + '1': 'renamed_resources', + '3': 3, + '4': 3, + '5': 11, + '6': '.google.api.DotnetSettings.RenamedResourcesEntry', + '10': 'renamedResources' + }, + { + '1': 'ignored_resources', + '3': 4, + '4': 3, + '5': 9, + '10': 'ignoredResources' + }, + { + '1': 'forced_namespace_aliases', + '3': 5, + '4': 3, + '5': 9, + '10': 'forcedNamespaceAliases' + }, + { + '1': 'handwritten_signatures', + '3': 6, + '4': 3, + '5': 9, + '10': 'handwrittenSignatures' + }, + ], + '3': [ + DotnetSettings_RenamedServicesEntry$json, + DotnetSettings_RenamedResourcesEntry$json + ], +}; + +@$core.Deprecated('Use dotnetSettingsDescriptor instead') +const DotnetSettings_RenamedServicesEntry$json = { + '1': 'RenamedServicesEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +@$core.Deprecated('Use dotnetSettingsDescriptor instead') +const DotnetSettings_RenamedResourcesEntry$json = { + '1': 'RenamedResourcesEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `DotnetSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List dotnetSettingsDescriptor = $convert.base64Decode( + 'Cg5Eb3RuZXRTZXR0aW5ncxI6CgZjb21tb24YASABKAsyIi5nb29nbGUuYXBpLkNvbW1vbkxhbm' + 'd1YWdlU2V0dGluZ3NSBmNvbW1vbhJaChByZW5hbWVkX3NlcnZpY2VzGAIgAygLMi8uZ29vZ2xl' + 'LmFwaS5Eb3RuZXRTZXR0aW5ncy5SZW5hbWVkU2VydmljZXNFbnRyeVIPcmVuYW1lZFNlcnZpY2' + 'VzEl0KEXJlbmFtZWRfcmVzb3VyY2VzGAMgAygLMjAuZ29vZ2xlLmFwaS5Eb3RuZXRTZXR0aW5n' + 'cy5SZW5hbWVkUmVzb3VyY2VzRW50cnlSEHJlbmFtZWRSZXNvdXJjZXMSKwoRaWdub3JlZF9yZX' + 'NvdXJjZXMYBCADKAlSEGlnbm9yZWRSZXNvdXJjZXMSOAoYZm9yY2VkX25hbWVzcGFjZV9hbGlh' + 'c2VzGAUgAygJUhZmb3JjZWROYW1lc3BhY2VBbGlhc2VzEjUKFmhhbmR3cml0dGVuX3NpZ25hdH' + 'VyZXMYBiADKAlSFWhhbmR3cml0dGVuU2lnbmF0dXJlcxpCChRSZW5hbWVkU2VydmljZXNFbnRy' + 'eRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBGkMKFVJlbmFtZW' + 'RSZXNvdXJjZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6' + 'AjgB'); + +@$core.Deprecated('Use rubySettingsDescriptor instead') +const RubySettings$json = { + '1': 'RubySettings', + '2': [ + { + '1': 'common', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.api.CommonLanguageSettings', + '10': 'common' + }, + ], +}; + +/// Descriptor for `RubySettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rubySettingsDescriptor = $convert.base64Decode( + 'CgxSdWJ5U2V0dGluZ3MSOgoGY29tbW9uGAEgASgLMiIuZ29vZ2xlLmFwaS5Db21tb25MYW5ndW' + 'FnZVNldHRpbmdzUgZjb21tb24='); + +@$core.Deprecated('Use goSettingsDescriptor instead') +const GoSettings$json = { + '1': 'GoSettings', + '2': [ + { + '1': 'common', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.api.CommonLanguageSettings', + '10': 'common' + }, + ], +}; + +/// Descriptor for `GoSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List goSettingsDescriptor = $convert.base64Decode( + 'CgpHb1NldHRpbmdzEjoKBmNvbW1vbhgBIAEoCzIiLmdvb2dsZS5hcGkuQ29tbW9uTGFuZ3VhZ2' + 'VTZXR0aW5nc1IGY29tbW9u'); + +@$core.Deprecated('Use methodSettingsDescriptor instead') +const MethodSettings$json = { + '1': 'MethodSettings', + '2': [ + {'1': 'selector', '3': 1, '4': 1, '5': 9, '10': 'selector'}, + { + '1': 'long_running', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.api.MethodSettings.LongRunning', + '10': 'longRunning' + }, + { + '1': 'auto_populated_fields', + '3': 3, + '4': 3, + '5': 9, + '10': 'autoPopulatedFields' + }, + ], + '3': [MethodSettings_LongRunning$json], +}; + +@$core.Deprecated('Use methodSettingsDescriptor instead') +const MethodSettings_LongRunning$json = { + '1': 'LongRunning', + '2': [ + { + '1': 'initial_poll_delay', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Duration', + '10': 'initialPollDelay' + }, + { + '1': 'poll_delay_multiplier', + '3': 2, + '4': 1, + '5': 2, + '10': 'pollDelayMultiplier' + }, + { + '1': 'max_poll_delay', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.Duration', + '10': 'maxPollDelay' + }, + { + '1': 'total_poll_timeout', + '3': 4, + '4': 1, + '5': 11, + '6': '.google.protobuf.Duration', + '10': 'totalPollTimeout' + }, + ], +}; + +/// Descriptor for `MethodSettings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List methodSettingsDescriptor = $convert.base64Decode( + 'Cg5NZXRob2RTZXR0aW5ncxIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISSQoMbG9uZ19ydW' + '5uaW5nGAIgASgLMiYuZ29vZ2xlLmFwaS5NZXRob2RTZXR0aW5ncy5Mb25nUnVubmluZ1ILbG9u' + 'Z1J1bm5pbmcSMgoVYXV0b19wb3B1bGF0ZWRfZmllbGRzGAMgAygJUhNhdXRvUG9wdWxhdGVkRm' + 'llbGRzGpQCCgtMb25nUnVubmluZxJHChJpbml0aWFsX3BvbGxfZGVsYXkYASABKAsyGS5nb29n' + 'bGUucHJvdG9idWYuRHVyYXRpb25SEGluaXRpYWxQb2xsRGVsYXkSMgoVcG9sbF9kZWxheV9tdW' + 'x0aXBsaWVyGAIgASgCUhNwb2xsRGVsYXlNdWx0aXBsaWVyEj8KDm1heF9wb2xsX2RlbGF5GAMg' + 'ASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgxtYXhQb2xsRGVsYXkSRwoSdG90YWxfcG' + '9sbF90aW1lb3V0GAQgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhB0b3RhbFBvbGxU' + 'aW1lb3V0'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pb.dart new file mode 100644 index 00000000..7278a6d8 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pb.dart @@ -0,0 +1,867 @@ +// +// Generated code. Do not modify. +// source: google/api/cloudquotas/v1/cloudquotas.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/field_mask.pb.dart' as $58; +import 'resources.pb.dart' as $32; +import 'resources.pbenum.dart' as $32; + +/// Message for requesting list of QuotaInfos +class ListQuotaInfosRequest extends $pb.GeneratedMessage { + factory ListQuotaInfosRequest({ + $core.String? parent, + $core.int? pageSize, + $core.String? pageToken, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (pageSize != null) { + $result.pageSize = pageSize; + } + if (pageToken != null) { + $result.pageToken = pageToken; + } + return $result; + } + ListQuotaInfosRequest._() : super(); + factory ListQuotaInfosRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListQuotaInfosRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListQuotaInfosRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListQuotaInfosRequest clone() => + ListQuotaInfosRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListQuotaInfosRequest copyWith( + void Function(ListQuotaInfosRequest) updates) => + super.copyWith((message) => updates(message as ListQuotaInfosRequest)) + as ListQuotaInfosRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListQuotaInfosRequest create() => ListQuotaInfosRequest._(); + ListQuotaInfosRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListQuotaInfosRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListQuotaInfosRequest? _defaultInstance; + + /// Required. Parent value of QuotaInfo resources. + /// Listing across different resource containers (such as 'projects/-') is not + /// allowed. + /// + /// Example names: + /// `projects/123/locations/global/services/compute.googleapis.com` + /// `folders/234/locations/global/services/compute.googleapis.com` + /// `organizations/345/locations/global/services/compute.googleapis.com` + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// Optional. Requested page size. Server may return fewer items than + /// requested. If unspecified, server will pick an appropriate default. + @$pb.TagNumber(2) + $core.int get pageSize => $_getIZ(1); + @$pb.TagNumber(2) + set pageSize($core.int v) { + $_setSignedInt32(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPageSize() => $_has(1); + @$pb.TagNumber(2) + void clearPageSize() => clearField(2); + + /// Optional. A token identifying a page of results the server should return. + @$pb.TagNumber(3) + $core.String get pageToken => $_getSZ(2); + @$pb.TagNumber(3) + set pageToken($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasPageToken() => $_has(2); + @$pb.TagNumber(3) + void clearPageToken() => clearField(3); +} + +/// Message for response to listing QuotaInfos +class ListQuotaInfosResponse extends $pb.GeneratedMessage { + factory ListQuotaInfosResponse({ + $core.Iterable<$32.QuotaInfo>? quotaInfos, + $core.String? nextPageToken, + }) { + final $result = create(); + if (quotaInfos != null) { + $result.quotaInfos.addAll(quotaInfos); + } + if (nextPageToken != null) { + $result.nextPageToken = nextPageToken; + } + return $result; + } + ListQuotaInfosResponse._() : super(); + factory ListQuotaInfosResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListQuotaInfosResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListQuotaInfosResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..pc<$32.QuotaInfo>( + 1, _omitFieldNames ? '' : 'quotaInfos', $pb.PbFieldType.PM, + subBuilder: $32.QuotaInfo.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListQuotaInfosResponse clone() => + ListQuotaInfosResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListQuotaInfosResponse copyWith( + void Function(ListQuotaInfosResponse) updates) => + super.copyWith((message) => updates(message as ListQuotaInfosResponse)) + as ListQuotaInfosResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListQuotaInfosResponse create() => ListQuotaInfosResponse._(); + ListQuotaInfosResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListQuotaInfosResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListQuotaInfosResponse? _defaultInstance; + + /// The list of QuotaInfo + @$pb.TagNumber(1) + $core.List<$32.QuotaInfo> get quotaInfos => $_getList(0); + + /// A token, which can be sent as `page_token` to retrieve the next page. + /// If this field is omitted, there are no subsequent pages. + @$pb.TagNumber(2) + $core.String get nextPageToken => $_getSZ(1); + @$pb.TagNumber(2) + set nextPageToken($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasNextPageToken() => $_has(1); + @$pb.TagNumber(2) + void clearNextPageToken() => clearField(2); +} + +/// Message for getting a QuotaInfo +class GetQuotaInfoRequest extends $pb.GeneratedMessage { + factory GetQuotaInfoRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + GetQuotaInfoRequest._() : super(); + factory GetQuotaInfoRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetQuotaInfoRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetQuotaInfoRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetQuotaInfoRequest clone() => GetQuotaInfoRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetQuotaInfoRequest copyWith(void Function(GetQuotaInfoRequest) updates) => + super.copyWith((message) => updates(message as GetQuotaInfoRequest)) + as GetQuotaInfoRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetQuotaInfoRequest create() => GetQuotaInfoRequest._(); + GetQuotaInfoRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetQuotaInfoRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetQuotaInfoRequest? _defaultInstance; + + /// Required. The resource name of the quota info. + /// + /// An example name: + /// `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion` + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// Message for requesting list of QuotaPreferences +class ListQuotaPreferencesRequest extends $pb.GeneratedMessage { + factory ListQuotaPreferencesRequest({ + $core.String? parent, + $core.int? pageSize, + $core.String? pageToken, + $core.String? filter, + $core.String? orderBy, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (pageSize != null) { + $result.pageSize = pageSize; + } + if (pageToken != null) { + $result.pageToken = pageToken; + } + if (filter != null) { + $result.filter = filter; + } + if (orderBy != null) { + $result.orderBy = orderBy; + } + return $result; + } + ListQuotaPreferencesRequest._() : super(); + factory ListQuotaPreferencesRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListQuotaPreferencesRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListQuotaPreferencesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..aOS(4, _omitFieldNames ? '' : 'filter') + ..aOS(5, _omitFieldNames ? '' : 'orderBy') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListQuotaPreferencesRequest clone() => + ListQuotaPreferencesRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListQuotaPreferencesRequest copyWith( + void Function(ListQuotaPreferencesRequest) updates) => + super.copyWith( + (message) => updates(message as ListQuotaPreferencesRequest)) + as ListQuotaPreferencesRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListQuotaPreferencesRequest create() => + ListQuotaPreferencesRequest._(); + ListQuotaPreferencesRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListQuotaPreferencesRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListQuotaPreferencesRequest? _defaultInstance; + + /// Required. Parent value of QuotaPreference resources. + /// Listing across different resource containers (such as 'projects/-') is not + /// allowed. + /// + /// When the value starts with 'folders' or 'organizations', it lists the + /// QuotaPreferences for org quotas in the container. It does not list the + /// QuotaPreferences in the descendant projects of the container. + /// + /// Example parents: + /// `projects/123/locations/global` + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// Optional. Requested page size. Server may return fewer items than + /// requested. If unspecified, server will pick an appropriate default. + @$pb.TagNumber(2) + $core.int get pageSize => $_getIZ(1); + @$pb.TagNumber(2) + set pageSize($core.int v) { + $_setSignedInt32(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPageSize() => $_has(1); + @$pb.TagNumber(2) + void clearPageSize() => clearField(2); + + /// Optional. A token identifying a page of results the server should return. + @$pb.TagNumber(3) + $core.String get pageToken => $_getSZ(2); + @$pb.TagNumber(3) + set pageToken($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasPageToken() => $_has(2); + @$pb.TagNumber(3) + void clearPageToken() => clearField(3); + + /// Optional. Filter result QuotaPreferences by their state, type, + /// create/update time range. + /// + /// Example filters: + /// `reconciling=true AND request_type=CLOUD_CONSOLE`, + /// `reconciling=true OR creation_time>2022-12-03T10:30:00` + @$pb.TagNumber(4) + $core.String get filter => $_getSZ(3); + @$pb.TagNumber(4) + set filter($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasFilter() => $_has(3); + @$pb.TagNumber(4) + void clearFilter() => clearField(4); + + /// Optional. How to order of the results. By default, the results are ordered + /// by create time. + /// + /// Example orders: + /// `quota_id`, + /// `service, create_time` + @$pb.TagNumber(5) + $core.String get orderBy => $_getSZ(4); + @$pb.TagNumber(5) + set orderBy($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasOrderBy() => $_has(4); + @$pb.TagNumber(5) + void clearOrderBy() => clearField(5); +} + +/// Message for response to listing QuotaPreferences +class ListQuotaPreferencesResponse extends $pb.GeneratedMessage { + factory ListQuotaPreferencesResponse({ + $core.Iterable<$32.QuotaPreference>? quotaPreferences, + $core.String? nextPageToken, + $core.Iterable<$core.String>? unreachable, + }) { + final $result = create(); + if (quotaPreferences != null) { + $result.quotaPreferences.addAll(quotaPreferences); + } + if (nextPageToken != null) { + $result.nextPageToken = nextPageToken; + } + if (unreachable != null) { + $result.unreachable.addAll(unreachable); + } + return $result; + } + ListQuotaPreferencesResponse._() : super(); + factory ListQuotaPreferencesResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListQuotaPreferencesResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListQuotaPreferencesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..pc<$32.QuotaPreference>( + 1, _omitFieldNames ? '' : 'quotaPreferences', $pb.PbFieldType.PM, + subBuilder: $32.QuotaPreference.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..pPS(3, _omitFieldNames ? '' : 'unreachable') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListQuotaPreferencesResponse clone() => + ListQuotaPreferencesResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListQuotaPreferencesResponse copyWith( + void Function(ListQuotaPreferencesResponse) updates) => + super.copyWith( + (message) => updates(message as ListQuotaPreferencesResponse)) + as ListQuotaPreferencesResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListQuotaPreferencesResponse create() => + ListQuotaPreferencesResponse._(); + ListQuotaPreferencesResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListQuotaPreferencesResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListQuotaPreferencesResponse? _defaultInstance; + + /// The list of QuotaPreference + @$pb.TagNumber(1) + $core.List<$32.QuotaPreference> get quotaPreferences => $_getList(0); + + /// A token, which can be sent as `page_token` to retrieve the next page. + /// If this field is omitted, there are no subsequent pages. + @$pb.TagNumber(2) + $core.String get nextPageToken => $_getSZ(1); + @$pb.TagNumber(2) + set nextPageToken($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasNextPageToken() => $_has(1); + @$pb.TagNumber(2) + void clearNextPageToken() => clearField(2); + + /// Locations that could not be reached. + @$pb.TagNumber(3) + $core.List<$core.String> get unreachable => $_getList(2); +} + +/// Message for getting a QuotaPreference +class GetQuotaPreferenceRequest extends $pb.GeneratedMessage { + factory GetQuotaPreferenceRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + GetQuotaPreferenceRequest._() : super(); + factory GetQuotaPreferenceRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetQuotaPreferenceRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetQuotaPreferenceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetQuotaPreferenceRequest clone() => + GetQuotaPreferenceRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetQuotaPreferenceRequest copyWith( + void Function(GetQuotaPreferenceRequest) updates) => + super.copyWith((message) => updates(message as GetQuotaPreferenceRequest)) + as GetQuotaPreferenceRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetQuotaPreferenceRequest create() => GetQuotaPreferenceRequest._(); + GetQuotaPreferenceRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetQuotaPreferenceRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetQuotaPreferenceRequest? _defaultInstance; + + /// Required. Name of the resource + /// + /// Example name: + /// `projects/123/locations/global/quota_preferences/my-config-for-us-east1` + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// Message for creating a QuotaPreference +class CreateQuotaPreferenceRequest extends $pb.GeneratedMessage { + factory CreateQuotaPreferenceRequest({ + $core.String? parent, + $core.String? quotaPreferenceId, + $32.QuotaPreference? quotaPreference, + $core.Iterable<$32.QuotaSafetyCheck>? ignoreSafetyChecks, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (quotaPreferenceId != null) { + $result.quotaPreferenceId = quotaPreferenceId; + } + if (quotaPreference != null) { + $result.quotaPreference = quotaPreference; + } + if (ignoreSafetyChecks != null) { + $result.ignoreSafetyChecks.addAll(ignoreSafetyChecks); + } + return $result; + } + CreateQuotaPreferenceRequest._() : super(); + factory CreateQuotaPreferenceRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CreateQuotaPreferenceRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateQuotaPreferenceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'quotaPreferenceId') + ..aOM<$32.QuotaPreference>(3, _omitFieldNames ? '' : 'quotaPreference', + subBuilder: $32.QuotaPreference.create) + ..pc<$32.QuotaSafetyCheck>( + 4, _omitFieldNames ? '' : 'ignoreSafetyChecks', $pb.PbFieldType.KE, + valueOf: $32.QuotaSafetyCheck.valueOf, + enumValues: $32.QuotaSafetyCheck.values, + defaultEnumValue: $32.QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CreateQuotaPreferenceRequest clone() => + CreateQuotaPreferenceRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CreateQuotaPreferenceRequest copyWith( + void Function(CreateQuotaPreferenceRequest) updates) => + super.copyWith( + (message) => updates(message as CreateQuotaPreferenceRequest)) + as CreateQuotaPreferenceRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CreateQuotaPreferenceRequest create() => + CreateQuotaPreferenceRequest._(); + CreateQuotaPreferenceRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CreateQuotaPreferenceRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CreateQuotaPreferenceRequest? _defaultInstance; + + /// Required. Value for parent. + /// + /// Example: + /// `projects/123/locations/global` + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// Optional. Id of the requesting object, must be unique under its parent. + /// If client does not set this field, the service will generate one. + @$pb.TagNumber(2) + $core.String get quotaPreferenceId => $_getSZ(1); + @$pb.TagNumber(2) + set quotaPreferenceId($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasQuotaPreferenceId() => $_has(1); + @$pb.TagNumber(2) + void clearQuotaPreferenceId() => clearField(2); + + /// Required. The resource being created + @$pb.TagNumber(3) + $32.QuotaPreference get quotaPreference => $_getN(2); + @$pb.TagNumber(3) + set quotaPreference($32.QuotaPreference v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasQuotaPreference() => $_has(2); + @$pb.TagNumber(3) + void clearQuotaPreference() => clearField(3); + @$pb.TagNumber(3) + $32.QuotaPreference ensureQuotaPreference() => $_ensure(2); + + /// The list of quota safety checks to be ignored. + @$pb.TagNumber(4) + $core.List<$32.QuotaSafetyCheck> get ignoreSafetyChecks => $_getList(3); +} + +/// Message for updating a QuotaPreference +class UpdateQuotaPreferenceRequest extends $pb.GeneratedMessage { + factory UpdateQuotaPreferenceRequest({ + $58.FieldMask? updateMask, + $32.QuotaPreference? quotaPreference, + $core.bool? allowMissing, + $core.bool? validateOnly, + $core.Iterable<$32.QuotaSafetyCheck>? ignoreSafetyChecks, + }) { + final $result = create(); + if (updateMask != null) { + $result.updateMask = updateMask; + } + if (quotaPreference != null) { + $result.quotaPreference = quotaPreference; + } + if (allowMissing != null) { + $result.allowMissing = allowMissing; + } + if (validateOnly != null) { + $result.validateOnly = validateOnly; + } + if (ignoreSafetyChecks != null) { + $result.ignoreSafetyChecks.addAll(ignoreSafetyChecks); + } + return $result; + } + UpdateQuotaPreferenceRequest._() : super(); + factory UpdateQuotaPreferenceRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdateQuotaPreferenceRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateQuotaPreferenceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aOM<$58.FieldMask>(1, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.create) + ..aOM<$32.QuotaPreference>(2, _omitFieldNames ? '' : 'quotaPreference', + subBuilder: $32.QuotaPreference.create) + ..aOB(3, _omitFieldNames ? '' : 'allowMissing') + ..aOB(4, _omitFieldNames ? '' : 'validateOnly') + ..pc<$32.QuotaSafetyCheck>( + 5, _omitFieldNames ? '' : 'ignoreSafetyChecks', $pb.PbFieldType.KE, + valueOf: $32.QuotaSafetyCheck.valueOf, + enumValues: $32.QuotaSafetyCheck.values, + defaultEnumValue: $32.QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + UpdateQuotaPreferenceRequest clone() => + UpdateQuotaPreferenceRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateQuotaPreferenceRequest copyWith( + void Function(UpdateQuotaPreferenceRequest) updates) => + super.copyWith( + (message) => updates(message as UpdateQuotaPreferenceRequest)) + as UpdateQuotaPreferenceRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdateQuotaPreferenceRequest create() => + UpdateQuotaPreferenceRequest._(); + UpdateQuotaPreferenceRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UpdateQuotaPreferenceRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static UpdateQuotaPreferenceRequest? _defaultInstance; + + /// Optional. Field mask is used to specify the fields to be overwritten in the + /// QuotaPreference resource by the update. + /// The fields specified in the update_mask are relative to the resource, not + /// the full request. A field will be overwritten if it is in the mask. If the + /// user does not provide a mask then all fields will be overwritten. + @$pb.TagNumber(1) + $58.FieldMask get updateMask => $_getN(0); + @$pb.TagNumber(1) + set updateMask($58.FieldMask v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasUpdateMask() => $_has(0); + @$pb.TagNumber(1) + void clearUpdateMask() => clearField(1); + @$pb.TagNumber(1) + $58.FieldMask ensureUpdateMask() => $_ensure(0); + + /// Required. The resource being updated + @$pb.TagNumber(2) + $32.QuotaPreference get quotaPreference => $_getN(1); + @$pb.TagNumber(2) + set quotaPreference($32.QuotaPreference v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasQuotaPreference() => $_has(1); + @$pb.TagNumber(2) + void clearQuotaPreference() => clearField(2); + @$pb.TagNumber(2) + $32.QuotaPreference ensureQuotaPreference() => $_ensure(1); + + /// Optional. If set to true, and the quota preference is not found, a new one + /// will be created. In this situation, `update_mask` is ignored. + @$pb.TagNumber(3) + $core.bool get allowMissing => $_getBF(2); + @$pb.TagNumber(3) + set allowMissing($core.bool v) { + $_setBool(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasAllowMissing() => $_has(2); + @$pb.TagNumber(3) + void clearAllowMissing() => clearField(3); + + /// Optional. If set to true, validate the request, but do not actually update. + /// Note that a request being valid does not mean that the request is + /// guaranteed to be fulfilled. + @$pb.TagNumber(4) + $core.bool get validateOnly => $_getBF(3); + @$pb.TagNumber(4) + set validateOnly($core.bool v) { + $_setBool(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasValidateOnly() => $_has(3); + @$pb.TagNumber(4) + void clearValidateOnly() => clearField(4); + + /// The list of quota safety checks to be ignored. + @$pb.TagNumber(5) + $core.List<$32.QuotaSafetyCheck> get ignoreSafetyChecks => $_getList(4); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pbenum.dart new file mode 100644 index 00000000..f564bf27 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/api/cloudquotas/v1/cloudquotas.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pbgrpc.dart new file mode 100644 index 00000000..11b3cf8a --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pbgrpc.dart @@ -0,0 +1,210 @@ +// +// Generated code. Do not modify. +// source: google/api/cloudquotas/v1/cloudquotas.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; +import 'dart:core' as $core; + +import 'package:grpc/service_api.dart' as $grpc; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'cloudquotas.pb.dart' as $31; +import 'resources.pb.dart' as $32; + +export 'cloudquotas.pb.dart'; + +@$pb.GrpcServiceName('google.api.cloudquotas.v1.CloudQuotas') +class CloudQuotasClient extends $grpc.Client { + static final _$listQuotaInfos = + $grpc.ClientMethod<$31.ListQuotaInfosRequest, $31.ListQuotaInfosResponse>( + '/google.api.cloudquotas.v1.CloudQuotas/ListQuotaInfos', + ($31.ListQuotaInfosRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $31.ListQuotaInfosResponse.fromBuffer(value)); + static final _$getQuotaInfo = + $grpc.ClientMethod<$31.GetQuotaInfoRequest, $32.QuotaInfo>( + '/google.api.cloudquotas.v1.CloudQuotas/GetQuotaInfo', + ($31.GetQuotaInfoRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $32.QuotaInfo.fromBuffer(value)); + static final _$listQuotaPreferences = $grpc.ClientMethod< + $31.ListQuotaPreferencesRequest, $31.ListQuotaPreferencesResponse>( + '/google.api.cloudquotas.v1.CloudQuotas/ListQuotaPreferences', + ($31.ListQuotaPreferencesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $31.ListQuotaPreferencesResponse.fromBuffer(value)); + static final _$getQuotaPreference = + $grpc.ClientMethod<$31.GetQuotaPreferenceRequest, $32.QuotaPreference>( + '/google.api.cloudquotas.v1.CloudQuotas/GetQuotaPreference', + ($31.GetQuotaPreferenceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $32.QuotaPreference.fromBuffer(value)); + static final _$createQuotaPreference = + $grpc.ClientMethod<$31.CreateQuotaPreferenceRequest, $32.QuotaPreference>( + '/google.api.cloudquotas.v1.CloudQuotas/CreateQuotaPreference', + ($31.CreateQuotaPreferenceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $32.QuotaPreference.fromBuffer(value)); + static final _$updateQuotaPreference = + $grpc.ClientMethod<$31.UpdateQuotaPreferenceRequest, $32.QuotaPreference>( + '/google.api.cloudquotas.v1.CloudQuotas/UpdateQuotaPreference', + ($31.UpdateQuotaPreferenceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $32.QuotaPreference.fromBuffer(value)); + + CloudQuotasClient($grpc.ClientChannel channel, + {$grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors}) + : super(channel, options: options, interceptors: interceptors); + + $grpc.ResponseFuture<$31.ListQuotaInfosResponse> listQuotaInfos( + $31.ListQuotaInfosRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$listQuotaInfos, request, options: options); + } + + $grpc.ResponseFuture<$32.QuotaInfo> getQuotaInfo( + $31.GetQuotaInfoRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getQuotaInfo, request, options: options); + } + + $grpc.ResponseFuture<$31.ListQuotaPreferencesResponse> listQuotaPreferences( + $31.ListQuotaPreferencesRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$listQuotaPreferences, request, options: options); + } + + $grpc.ResponseFuture<$32.QuotaPreference> getQuotaPreference( + $31.GetQuotaPreferenceRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getQuotaPreference, request, options: options); + } + + $grpc.ResponseFuture<$32.QuotaPreference> createQuotaPreference( + $31.CreateQuotaPreferenceRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$createQuotaPreference, request, options: options); + } + + $grpc.ResponseFuture<$32.QuotaPreference> updateQuotaPreference( + $31.UpdateQuotaPreferenceRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$updateQuotaPreference, request, options: options); + } +} + +@$pb.GrpcServiceName('google.api.cloudquotas.v1.CloudQuotas') +abstract class CloudQuotasServiceBase extends $grpc.Service { + $core.String get $name => 'google.api.cloudquotas.v1.CloudQuotas'; + + CloudQuotasServiceBase() { + $addMethod($grpc.ServiceMethod<$31.ListQuotaInfosRequest, + $31.ListQuotaInfosResponse>( + 'ListQuotaInfos', + listQuotaInfos_Pre, + false, + false, + ($core.List<$core.int> value) => + $31.ListQuotaInfosRequest.fromBuffer(value), + ($31.ListQuotaInfosResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$31.GetQuotaInfoRequest, $32.QuotaInfo>( + 'GetQuotaInfo', + getQuotaInfo_Pre, + false, + false, + ($core.List<$core.int> value) => + $31.GetQuotaInfoRequest.fromBuffer(value), + ($32.QuotaInfo value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$31.ListQuotaPreferencesRequest, + $31.ListQuotaPreferencesResponse>( + 'ListQuotaPreferences', + listQuotaPreferences_Pre, + false, + false, + ($core.List<$core.int> value) => + $31.ListQuotaPreferencesRequest.fromBuffer(value), + ($31.ListQuotaPreferencesResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$31.GetQuotaPreferenceRequest, $32.QuotaPreference>( + 'GetQuotaPreference', + getQuotaPreference_Pre, + false, + false, + ($core.List<$core.int> value) => + $31.GetQuotaPreferenceRequest.fromBuffer(value), + ($32.QuotaPreference value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$31.CreateQuotaPreferenceRequest, + $32.QuotaPreference>( + 'CreateQuotaPreference', + createQuotaPreference_Pre, + false, + false, + ($core.List<$core.int> value) => + $31.CreateQuotaPreferenceRequest.fromBuffer(value), + ($32.QuotaPreference value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$31.UpdateQuotaPreferenceRequest, + $32.QuotaPreference>( + 'UpdateQuotaPreference', + updateQuotaPreference_Pre, + false, + false, + ($core.List<$core.int> value) => + $31.UpdateQuotaPreferenceRequest.fromBuffer(value), + ($32.QuotaPreference value) => value.writeToBuffer())); + } + + $async.Future<$31.ListQuotaInfosResponse> listQuotaInfos_Pre( + $grpc.ServiceCall call, + $async.Future<$31.ListQuotaInfosRequest> request) async { + return listQuotaInfos(call, await request); + } + + $async.Future<$32.QuotaInfo> getQuotaInfo_Pre($grpc.ServiceCall call, + $async.Future<$31.GetQuotaInfoRequest> request) async { + return getQuotaInfo(call, await request); + } + + $async.Future<$31.ListQuotaPreferencesResponse> listQuotaPreferences_Pre( + $grpc.ServiceCall call, + $async.Future<$31.ListQuotaPreferencesRequest> request) async { + return listQuotaPreferences(call, await request); + } + + $async.Future<$32.QuotaPreference> getQuotaPreference_Pre( + $grpc.ServiceCall call, + $async.Future<$31.GetQuotaPreferenceRequest> request) async { + return getQuotaPreference(call, await request); + } + + $async.Future<$32.QuotaPreference> createQuotaPreference_Pre( + $grpc.ServiceCall call, + $async.Future<$31.CreateQuotaPreferenceRequest> request) async { + return createQuotaPreference(call, await request); + } + + $async.Future<$32.QuotaPreference> updateQuotaPreference_Pre( + $grpc.ServiceCall call, + $async.Future<$31.UpdateQuotaPreferenceRequest> request) async { + return updateQuotaPreference(call, await request); + } + + $async.Future<$31.ListQuotaInfosResponse> listQuotaInfos( + $grpc.ServiceCall call, $31.ListQuotaInfosRequest request); + $async.Future<$32.QuotaInfo> getQuotaInfo( + $grpc.ServiceCall call, $31.GetQuotaInfoRequest request); + $async.Future<$31.ListQuotaPreferencesResponse> listQuotaPreferences( + $grpc.ServiceCall call, $31.ListQuotaPreferencesRequest request); + $async.Future<$32.QuotaPreference> getQuotaPreference( + $grpc.ServiceCall call, $31.GetQuotaPreferenceRequest request); + $async.Future<$32.QuotaPreference> createQuotaPreference( + $grpc.ServiceCall call, $31.CreateQuotaPreferenceRequest request); + $async.Future<$32.QuotaPreference> updateQuotaPreference( + $grpc.ServiceCall call, $31.UpdateQuotaPreferenceRequest request); +} diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pbjson.dart new file mode 100644 index 00000000..f49f4415 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/cloudquotas.pbjson.dart @@ -0,0 +1,225 @@ +// +// Generated code. Do not modify. +// source: google/api/cloudquotas/v1/cloudquotas.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 listQuotaInfosRequestDescriptor instead') +const ListQuotaInfosRequest$json = { + '1': 'ListQuotaInfosRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + {'1': 'page_size', '3': 2, '4': 1, '5': 5, '8': {}, '10': 'pageSize'}, + {'1': 'page_token', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'pageToken'}, + ], +}; + +/// Descriptor for `ListQuotaInfosRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listQuotaInfosRequestDescriptor = $convert.base64Decode( + 'ChVMaXN0UXVvdGFJbmZvc1JlcXVlc3QSRAoGcGFyZW50GAEgASgJQizgQQL6QSYSJGNsb3VkcX' + 'VvdGFzLmdvb2dsZWFwaXMuY29tL1F1b3RhSW5mb1IGcGFyZW50EiAKCXBhZ2Vfc2l6ZRgCIAEo' + 'BUID4EEBUghwYWdlU2l6ZRIiCgpwYWdlX3Rva2VuGAMgASgJQgPgQQFSCXBhZ2VUb2tlbg=='); + +@$core.Deprecated('Use listQuotaInfosResponseDescriptor instead') +const ListQuotaInfosResponse$json = { + '1': 'ListQuotaInfosResponse', + '2': [ + { + '1': 'quota_infos', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.api.cloudquotas.v1.QuotaInfo', + '10': 'quotaInfos' + }, + {'1': 'next_page_token', '3': 2, '4': 1, '5': 9, '10': 'nextPageToken'}, + ], +}; + +/// Descriptor for `ListQuotaInfosResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listQuotaInfosResponseDescriptor = $convert.base64Decode( + 'ChZMaXN0UXVvdGFJbmZvc1Jlc3BvbnNlEkUKC3F1b3RhX2luZm9zGAEgAygLMiQuZ29vZ2xlLm' + 'FwaS5jbG91ZHF1b3Rhcy52MS5RdW90YUluZm9SCnF1b3RhSW5mb3MSJgoPbmV4dF9wYWdlX3Rv' + 'a2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + +@$core.Deprecated('Use getQuotaInfoRequestDescriptor instead') +const GetQuotaInfoRequest$json = { + '1': 'GetQuotaInfoRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `GetQuotaInfoRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getQuotaInfoRequestDescriptor = $convert.base64Decode( + 'ChNHZXRRdW90YUluZm9SZXF1ZXN0EkAKBG5hbWUYASABKAlCLOBBAvpBJgokY2xvdWRxdW90YX' + 'MuZ29vZ2xlYXBpcy5jb20vUXVvdGFJbmZvUgRuYW1l'); + +@$core.Deprecated('Use listQuotaPreferencesRequestDescriptor instead') +const ListQuotaPreferencesRequest$json = { + '1': 'ListQuotaPreferencesRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + {'1': 'page_size', '3': 2, '4': 1, '5': 5, '8': {}, '10': 'pageSize'}, + {'1': 'page_token', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'pageToken'}, + {'1': 'filter', '3': 4, '4': 1, '5': 9, '8': {}, '10': 'filter'}, + {'1': 'order_by', '3': 5, '4': 1, '5': 9, '8': {}, '10': 'orderBy'}, + ], +}; + +/// Descriptor for `ListQuotaPreferencesRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listQuotaPreferencesRequestDescriptor = $convert.base64Decode( + 'ChtMaXN0UXVvdGFQcmVmZXJlbmNlc1JlcXVlc3QSSgoGcGFyZW50GAEgASgJQjLgQQL6QSwSKm' + 'Nsb3VkcXVvdGFzLmdvb2dsZWFwaXMuY29tL1F1b3RhUHJlZmVyZW5jZVIGcGFyZW50EiAKCXBh' + 'Z2Vfc2l6ZRgCIAEoBUID4EEBUghwYWdlU2l6ZRIiCgpwYWdlX3Rva2VuGAMgASgJQgPgQQFSCX' + 'BhZ2VUb2tlbhIbCgZmaWx0ZXIYBCABKAlCA+BBAVIGZmlsdGVyEh4KCG9yZGVyX2J5GAUgASgJ' + 'QgPgQQFSB29yZGVyQnk='); + +@$core.Deprecated('Use listQuotaPreferencesResponseDescriptor instead') +const ListQuotaPreferencesResponse$json = { + '1': 'ListQuotaPreferencesResponse', + '2': [ + { + '1': 'quota_preferences', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.api.cloudquotas.v1.QuotaPreference', + '10': 'quotaPreferences' + }, + {'1': 'next_page_token', '3': 2, '4': 1, '5': 9, '10': 'nextPageToken'}, + {'1': 'unreachable', '3': 3, '4': 3, '5': 9, '10': 'unreachable'}, + ], +}; + +/// Descriptor for `ListQuotaPreferencesResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listQuotaPreferencesResponseDescriptor = $convert.base64Decode( + 'ChxMaXN0UXVvdGFQcmVmZXJlbmNlc1Jlc3BvbnNlElcKEXF1b3RhX3ByZWZlcmVuY2VzGAEgAy' + 'gLMiouZ29vZ2xlLmFwaS5jbG91ZHF1b3Rhcy52MS5RdW90YVByZWZlcmVuY2VSEHF1b3RhUHJl' + 'ZmVyZW5jZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2VuEiAKC3Vucm' + 'VhY2hhYmxlGAMgAygJUgt1bnJlYWNoYWJsZQ=='); + +@$core.Deprecated('Use getQuotaPreferenceRequestDescriptor instead') +const GetQuotaPreferenceRequest$json = { + '1': 'GetQuotaPreferenceRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `GetQuotaPreferenceRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getQuotaPreferenceRequestDescriptor = + $convert.base64Decode( + 'ChlHZXRRdW90YVByZWZlcmVuY2VSZXF1ZXN0EkYKBG5hbWUYASABKAlCMuBBAvpBLAoqY2xvdW' + 'RxdW90YXMuZ29vZ2xlYXBpcy5jb20vUXVvdGFQcmVmZXJlbmNlUgRuYW1l'); + +@$core.Deprecated('Use createQuotaPreferenceRequestDescriptor instead') +const CreateQuotaPreferenceRequest$json = { + '1': 'CreateQuotaPreferenceRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + { + '1': 'quota_preference_id', + '3': 2, + '4': 1, + '5': 9, + '8': {}, + '10': 'quotaPreferenceId' + }, + { + '1': 'quota_preference', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.api.cloudquotas.v1.QuotaPreference', + '8': {}, + '10': 'quotaPreference' + }, + { + '1': 'ignore_safety_checks', + '3': 4, + '4': 3, + '5': 14, + '6': '.google.api.cloudquotas.v1.QuotaSafetyCheck', + '10': 'ignoreSafetyChecks' + }, + ], +}; + +/// Descriptor for `CreateQuotaPreferenceRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List createQuotaPreferenceRequestDescriptor = $convert.base64Decode( + 'ChxDcmVhdGVRdW90YVByZWZlcmVuY2VSZXF1ZXN0EkoKBnBhcmVudBgBIAEoCUIy4EEC+kEsEi' + 'pjbG91ZHF1b3Rhcy5nb29nbGVhcGlzLmNvbS9RdW90YVByZWZlcmVuY2VSBnBhcmVudBIzChNx' + 'dW90YV9wcmVmZXJlbmNlX2lkGAIgASgJQgPgQQFSEXF1b3RhUHJlZmVyZW5jZUlkEloKEHF1b3' + 'RhX3ByZWZlcmVuY2UYAyABKAsyKi5nb29nbGUuYXBpLmNsb3VkcXVvdGFzLnYxLlF1b3RhUHJl' + 'ZmVyZW5jZUID4EECUg9xdW90YVByZWZlcmVuY2USXQoUaWdub3JlX3NhZmV0eV9jaGVja3MYBC' + 'ADKA4yKy5nb29nbGUuYXBpLmNsb3VkcXVvdGFzLnYxLlF1b3RhU2FmZXR5Q2hlY2tSEmlnbm9y' + 'ZVNhZmV0eUNoZWNrcw=='); + +@$core.Deprecated('Use updateQuotaPreferenceRequestDescriptor instead') +const UpdateQuotaPreferenceRequest$json = { + '1': 'UpdateQuotaPreferenceRequest', + '2': [ + { + '1': 'update_mask', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.FieldMask', + '8': {}, + '10': 'updateMask' + }, + { + '1': 'quota_preference', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.api.cloudquotas.v1.QuotaPreference', + '8': {}, + '10': 'quotaPreference' + }, + { + '1': 'allow_missing', + '3': 3, + '4': 1, + '5': 8, + '8': {}, + '10': 'allowMissing' + }, + { + '1': 'validate_only', + '3': 4, + '4': 1, + '5': 8, + '8': {}, + '10': 'validateOnly' + }, + { + '1': 'ignore_safety_checks', + '3': 5, + '4': 3, + '5': 14, + '6': '.google.api.cloudquotas.v1.QuotaSafetyCheck', + '10': 'ignoreSafetyChecks' + }, + ], +}; + +/// Descriptor for `UpdateQuotaPreferenceRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List updateQuotaPreferenceRequestDescriptor = $convert.base64Decode( + 'ChxVcGRhdGVRdW90YVByZWZlcmVuY2VSZXF1ZXN0EkAKC3VwZGF0ZV9tYXNrGAEgASgLMhouZ2' + '9vZ2xlLnByb3RvYnVmLkZpZWxkTWFza0ID4EEBUgp1cGRhdGVNYXNrEloKEHF1b3RhX3ByZWZl' + 'cmVuY2UYAiABKAsyKi5nb29nbGUuYXBpLmNsb3VkcXVvdGFzLnYxLlF1b3RhUHJlZmVyZW5jZU' + 'ID4EECUg9xdW90YVByZWZlcmVuY2USKAoNYWxsb3dfbWlzc2luZxgDIAEoCEID4EEBUgxhbGxv' + 'd01pc3NpbmcSKAoNdmFsaWRhdGVfb25seRgEIAEoCEID4EEBUgx2YWxpZGF0ZU9ubHkSXQoUaW' + 'dub3JlX3NhZmV0eV9jaGVja3MYBSADKA4yKy5nb29nbGUuYXBpLmNsb3VkcXVvdGFzLnYxLlF1' + 'b3RhU2FmZXR5Q2hlY2tSEmlnbm9yZVNhZmV0eUNoZWNrcw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/resources.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/resources.pb.dart new file mode 100644 index 00000000..73d4005b --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/resources.pb.dart @@ -0,0 +1,1149 @@ +// +// Generated code. Do not modify. +// source: google/api/cloudquotas/v1/resources.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; +import 'package:protobuf/protobuf.dart' as $pb; + +import '../../../protobuf/timestamp.pb.dart' as $50; +import '../../../protobuf/wrappers.pb.dart' as $73; +import 'resources.pbenum.dart'; + +export 'resources.pbenum.dart'; + +/// QuotaInfo represents information about a particular quota for a given +/// project, folder or organization. +class QuotaInfo extends $pb.GeneratedMessage { + factory QuotaInfo({ + $core.String? name, + $core.String? quotaId, + $core.String? metric, + $core.String? service, + $core.bool? isPrecise, + $core.String? refreshInterval, + QuotaInfo_ContainerType? containerType, + $core.Iterable<$core.String>? dimensions, + $core.String? metricDisplayName, + $core.String? quotaDisplayName, + $core.String? metricUnit, + QuotaIncreaseEligibility? quotaIncreaseEligibility, + $core.bool? isFixed, + $core.Iterable? dimensionsInfos, + $core.bool? isConcurrent, + $core.String? serviceRequestQuotaUri, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (quotaId != null) { + $result.quotaId = quotaId; + } + if (metric != null) { + $result.metric = metric; + } + if (service != null) { + $result.service = service; + } + if (isPrecise != null) { + $result.isPrecise = isPrecise; + } + if (refreshInterval != null) { + $result.refreshInterval = refreshInterval; + } + if (containerType != null) { + $result.containerType = containerType; + } + if (dimensions != null) { + $result.dimensions.addAll(dimensions); + } + if (metricDisplayName != null) { + $result.metricDisplayName = metricDisplayName; + } + if (quotaDisplayName != null) { + $result.quotaDisplayName = quotaDisplayName; + } + if (metricUnit != null) { + $result.metricUnit = metricUnit; + } + if (quotaIncreaseEligibility != null) { + $result.quotaIncreaseEligibility = quotaIncreaseEligibility; + } + if (isFixed != null) { + $result.isFixed = isFixed; + } + if (dimensionsInfos != null) { + $result.dimensionsInfos.addAll(dimensionsInfos); + } + if (isConcurrent != null) { + $result.isConcurrent = isConcurrent; + } + if (serviceRequestQuotaUri != null) { + $result.serviceRequestQuotaUri = serviceRequestQuotaUri; + } + return $result; + } + QuotaInfo._() : super(); + factory QuotaInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory QuotaInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QuotaInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'quotaId') + ..aOS(3, _omitFieldNames ? '' : 'metric') + ..aOS(4, _omitFieldNames ? '' : 'service') + ..aOB(5, _omitFieldNames ? '' : 'isPrecise') + ..aOS(6, _omitFieldNames ? '' : 'refreshInterval') + ..e( + 7, _omitFieldNames ? '' : 'containerType', $pb.PbFieldType.OE, + defaultOrMaker: QuotaInfo_ContainerType.CONTAINER_TYPE_UNSPECIFIED, + valueOf: QuotaInfo_ContainerType.valueOf, + enumValues: QuotaInfo_ContainerType.values) + ..pPS(8, _omitFieldNames ? '' : 'dimensions') + ..aOS(9, _omitFieldNames ? '' : 'metricDisplayName') + ..aOS(10, _omitFieldNames ? '' : 'quotaDisplayName') + ..aOS(11, _omitFieldNames ? '' : 'metricUnit') + ..aOM( + 12, _omitFieldNames ? '' : 'quotaIncreaseEligibility', + subBuilder: QuotaIncreaseEligibility.create) + ..aOB(13, _omitFieldNames ? '' : 'isFixed') + ..pc( + 14, _omitFieldNames ? '' : 'dimensionsInfos', $pb.PbFieldType.PM, + subBuilder: DimensionsInfo.create) + ..aOB(15, _omitFieldNames ? '' : 'isConcurrent') + ..aOS(17, _omitFieldNames ? '' : 'serviceRequestQuotaUri') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + QuotaInfo clone() => QuotaInfo()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + QuotaInfo copyWith(void Function(QuotaInfo) updates) => + super.copyWith((message) => updates(message as QuotaInfo)) as QuotaInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static QuotaInfo create() => QuotaInfo._(); + QuotaInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static QuotaInfo getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static QuotaInfo? _defaultInstance; + + /// Resource name of this QuotaInfo. + /// The ID component following "locations/" must be "global". + /// Example: + /// `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion` + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// The id of the quota, which is unquie within the service. + /// Example: `CpusPerProjectPerRegion` + @$pb.TagNumber(2) + $core.String get quotaId => $_getSZ(1); + @$pb.TagNumber(2) + set quotaId($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasQuotaId() => $_has(1); + @$pb.TagNumber(2) + void clearQuotaId() => clearField(2); + + /// The metric of the quota. It specifies the resources consumption the quota + /// is defined for. + /// Example: `compute.googleapis.com/cpus` + @$pb.TagNumber(3) + $core.String get metric => $_getSZ(2); + @$pb.TagNumber(3) + set metric($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasMetric() => $_has(2); + @$pb.TagNumber(3) + void clearMetric() => clearField(3); + + /// The name of the service in which the quota is defined. + /// Example: `compute.googleapis.com` + @$pb.TagNumber(4) + $core.String get service => $_getSZ(3); + @$pb.TagNumber(4) + set service($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasService() => $_has(3); + @$pb.TagNumber(4) + void clearService() => clearField(4); + + /// Whether this is a precise quota. A precise quota is tracked with absolute + /// precision. In contrast, an imprecise quota is not tracked with precision. + @$pb.TagNumber(5) + $core.bool get isPrecise => $_getBF(4); + @$pb.TagNumber(5) + set isPrecise($core.bool v) { + $_setBool(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasIsPrecise() => $_has(4); + @$pb.TagNumber(5) + void clearIsPrecise() => clearField(5); + + /// The reset time interval for the quota. Refresh interval applies to rate + /// quota only. + /// Example: "minute" for per minute, "day" for per day, or "10 seconds" for + /// every 10 seconds. + @$pb.TagNumber(6) + $core.String get refreshInterval => $_getSZ(5); + @$pb.TagNumber(6) + set refreshInterval($core.String v) { + $_setString(5, v); + } + + @$pb.TagNumber(6) + $core.bool hasRefreshInterval() => $_has(5); + @$pb.TagNumber(6) + void clearRefreshInterval() => clearField(6); + + /// The container type of the QuotaInfo. + @$pb.TagNumber(7) + QuotaInfo_ContainerType get containerType => $_getN(6); + @$pb.TagNumber(7) + set containerType(QuotaInfo_ContainerType v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasContainerType() => $_has(6); + @$pb.TagNumber(7) + void clearContainerType() => clearField(7); + + /// The dimensions the quota is defined on. + @$pb.TagNumber(8) + $core.List<$core.String> get dimensions => $_getList(7); + + /// The display name of the quota metric + @$pb.TagNumber(9) + $core.String get metricDisplayName => $_getSZ(8); + @$pb.TagNumber(9) + set metricDisplayName($core.String v) { + $_setString(8, v); + } + + @$pb.TagNumber(9) + $core.bool hasMetricDisplayName() => $_has(8); + @$pb.TagNumber(9) + void clearMetricDisplayName() => clearField(9); + + /// The display name of the quota. + @$pb.TagNumber(10) + $core.String get quotaDisplayName => $_getSZ(9); + @$pb.TagNumber(10) + set quotaDisplayName($core.String v) { + $_setString(9, v); + } + + @$pb.TagNumber(10) + $core.bool hasQuotaDisplayName() => $_has(9); + @$pb.TagNumber(10) + void clearQuotaDisplayName() => clearField(10); + + /// The unit in which the metric value is reported, e.g., "MByte". + @$pb.TagNumber(11) + $core.String get metricUnit => $_getSZ(10); + @$pb.TagNumber(11) + set metricUnit($core.String v) { + $_setString(10, v); + } + + @$pb.TagNumber(11) + $core.bool hasMetricUnit() => $_has(10); + @$pb.TagNumber(11) + void clearMetricUnit() => clearField(11); + + /// Whether it is eligible to request a higher quota value for this quota. + @$pb.TagNumber(12) + QuotaIncreaseEligibility get quotaIncreaseEligibility => $_getN(11); + @$pb.TagNumber(12) + set quotaIncreaseEligibility(QuotaIncreaseEligibility v) { + setField(12, v); + } + + @$pb.TagNumber(12) + $core.bool hasQuotaIncreaseEligibility() => $_has(11); + @$pb.TagNumber(12) + void clearQuotaIncreaseEligibility() => clearField(12); + @$pb.TagNumber(12) + QuotaIncreaseEligibility ensureQuotaIncreaseEligibility() => $_ensure(11); + + /// Whether the quota value is fixed or adjustable + @$pb.TagNumber(13) + $core.bool get isFixed => $_getBF(12); + @$pb.TagNumber(13) + set isFixed($core.bool v) { + $_setBool(12, v); + } + + @$pb.TagNumber(13) + $core.bool hasIsFixed() => $_has(12); + @$pb.TagNumber(13) + void clearIsFixed() => clearField(13); + + /// The collection of dimensions info ordered by their dimensions from more + /// specific ones to less specific ones. + @$pb.TagNumber(14) + $core.List get dimensionsInfos => $_getList(13); + + /// Whether the quota is a concurrent quota. Concurrent quotas are enforced + /// on the total number of concurrent operations in flight at any given time. + @$pb.TagNumber(15) + $core.bool get isConcurrent => $_getBF(14); + @$pb.TagNumber(15) + set isConcurrent($core.bool v) { + $_setBool(14, v); + } + + @$pb.TagNumber(15) + $core.bool hasIsConcurrent() => $_has(14); + @$pb.TagNumber(15) + void clearIsConcurrent() => clearField(15); + + /// URI to the page where users can request more quota for the cloud + /// service—for example, + /// https://console.cloud.google.com/iam-admin/quotas. + @$pb.TagNumber(17) + $core.String get serviceRequestQuotaUri => $_getSZ(15); + @$pb.TagNumber(17) + set serviceRequestQuotaUri($core.String v) { + $_setString(15, v); + } + + @$pb.TagNumber(17) + $core.bool hasServiceRequestQuotaUri() => $_has(15); + @$pb.TagNumber(17) + void clearServiceRequestQuotaUri() => clearField(17); +} + +/// Eligibility information regarding requesting increase adjustment of a quota. +class QuotaIncreaseEligibility extends $pb.GeneratedMessage { + factory QuotaIncreaseEligibility({ + $core.bool? isEligible, + QuotaIncreaseEligibility_IneligibilityReason? ineligibilityReason, + }) { + final $result = create(); + if (isEligible != null) { + $result.isEligible = isEligible; + } + if (ineligibilityReason != null) { + $result.ineligibilityReason = ineligibilityReason; + } + return $result; + } + QuotaIncreaseEligibility._() : super(); + factory QuotaIncreaseEligibility.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory QuotaIncreaseEligibility.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QuotaIncreaseEligibility', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'isEligible') + ..e( + 2, _omitFieldNames ? '' : 'ineligibilityReason', $pb.PbFieldType.OE, + defaultOrMaker: QuotaIncreaseEligibility_IneligibilityReason + .INELIGIBILITY_REASON_UNSPECIFIED, + valueOf: QuotaIncreaseEligibility_IneligibilityReason.valueOf, + enumValues: QuotaIncreaseEligibility_IneligibilityReason.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + QuotaIncreaseEligibility clone() => + QuotaIncreaseEligibility()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + QuotaIncreaseEligibility copyWith( + void Function(QuotaIncreaseEligibility) updates) => + super.copyWith((message) => updates(message as QuotaIncreaseEligibility)) + as QuotaIncreaseEligibility; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static QuotaIncreaseEligibility create() => QuotaIncreaseEligibility._(); + QuotaIncreaseEligibility createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static QuotaIncreaseEligibility getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static QuotaIncreaseEligibility? _defaultInstance; + + /// Whether a higher quota value can be requested for the quota. + @$pb.TagNumber(1) + $core.bool get isEligible => $_getBF(0); + @$pb.TagNumber(1) + set isEligible($core.bool v) { + $_setBool(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasIsEligible() => $_has(0); + @$pb.TagNumber(1) + void clearIsEligible() => clearField(1); + + /// The reason of why it is ineligible to request increased value of the quota. + /// If the is_eligible field is true, it defaults to + /// INELIGIBILITY_REASON_UNSPECIFIED. + @$pb.TagNumber(2) + QuotaIncreaseEligibility_IneligibilityReason get ineligibilityReason => + $_getN(1); + @$pb.TagNumber(2) + set ineligibilityReason(QuotaIncreaseEligibility_IneligibilityReason v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasIneligibilityReason() => $_has(1); + @$pb.TagNumber(2) + void clearIneligibilityReason() => clearField(2); +} + +/// QuotaPreference represents the preferred quota configuration specified for +/// a project, folder or organization. There is only one QuotaPreference +/// resource for a quota value targeting a unique set of dimensions. +class QuotaPreference extends $pb.GeneratedMessage { + factory QuotaPreference({ + $core.String? name, + $core.Map<$core.String, $core.String>? dimensions, + QuotaConfig? quotaConfig, + $core.String? etag, + $50.Timestamp? createTime, + $50.Timestamp? updateTime, + $core.String? service, + $core.String? quotaId, + $core.bool? reconciling, + $core.String? justification, + $core.String? contactEmail, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (dimensions != null) { + $result.dimensions.addAll(dimensions); + } + if (quotaConfig != null) { + $result.quotaConfig = quotaConfig; + } + if (etag != null) { + $result.etag = etag; + } + if (createTime != null) { + $result.createTime = createTime; + } + if (updateTime != null) { + $result.updateTime = updateTime; + } + if (service != null) { + $result.service = service; + } + if (quotaId != null) { + $result.quotaId = quotaId; + } + if (reconciling != null) { + $result.reconciling = reconciling; + } + if (justification != null) { + $result.justification = justification; + } + if (contactEmail != null) { + $result.contactEmail = contactEmail; + } + return $result; + } + QuotaPreference._() : super(); + factory QuotaPreference.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory QuotaPreference.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QuotaPreference', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'dimensions', + entryClassName: 'QuotaPreference.DimensionsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.cloudquotas.v1')) + ..aOM(3, _omitFieldNames ? '' : 'quotaConfig', + subBuilder: QuotaConfig.create) + ..aOS(4, _omitFieldNames ? '' : 'etag') + ..aOM<$50.Timestamp>(5, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(6, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) + ..aOS(7, _omitFieldNames ? '' : 'service') + ..aOS(8, _omitFieldNames ? '' : 'quotaId') + ..aOB(10, _omitFieldNames ? '' : 'reconciling') + ..aOS(11, _omitFieldNames ? '' : 'justification') + ..aOS(12, _omitFieldNames ? '' : 'contactEmail') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + QuotaPreference clone() => QuotaPreference()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + QuotaPreference copyWith(void Function(QuotaPreference) updates) => + super.copyWith((message) => updates(message as QuotaPreference)) + as QuotaPreference; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static QuotaPreference create() => QuotaPreference._(); + QuotaPreference createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static QuotaPreference getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static QuotaPreference? _defaultInstance; + + /// Required except in the CREATE requests. + /// The resource name of the quota preference. + /// The ID component following "locations/" must be "global". + /// Example: + /// `projects/123/locations/global/quotaPreferences/my-config-for-us-east1` + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Immutable. The dimensions that this quota preference applies to. The key of + /// the map entry is the name of a dimension, such as "region", "zone", + /// "network_id", and the value of the map entry is the dimension value. + /// + /// If a dimension is missing from the map of dimensions, the quota preference + /// applies to all the dimension values except for those that have other quota + /// preferences configured for the specific value. + /// + /// NOTE: QuotaPreferences can only be applied across all values of "user" and + /// "resource" dimension. Do not set values for "user" or "resource" in the + /// dimension map. + /// + /// Example: {"provider", "Foo Inc"} where "provider" is a service specific + /// dimension. + @$pb.TagNumber(2) + $core.Map<$core.String, $core.String> get dimensions => $_getMap(1); + + /// Required. Preferred quota configuration. + @$pb.TagNumber(3) + QuotaConfig get quotaConfig => $_getN(2); + @$pb.TagNumber(3) + set quotaConfig(QuotaConfig v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasQuotaConfig() => $_has(2); + @$pb.TagNumber(3) + void clearQuotaConfig() => clearField(3); + @$pb.TagNumber(3) + QuotaConfig ensureQuotaConfig() => $_ensure(2); + + /// Optional. The current etag of the quota preference. If an etag is provided + /// on update and does not match the current server's etag of the quota + /// preference, the request will be blocked and an ABORTED error will be + /// returned. See https://google.aip.dev/134#etags for more details on etags. + @$pb.TagNumber(4) + $core.String get etag => $_getSZ(3); + @$pb.TagNumber(4) + set etag($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasEtag() => $_has(3); + @$pb.TagNumber(4) + void clearEtag() => clearField(4); + + /// Output only. Create time stamp + @$pb.TagNumber(5) + $50.Timestamp get createTime => $_getN(4); + @$pb.TagNumber(5) + set createTime($50.Timestamp v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasCreateTime() => $_has(4); + @$pb.TagNumber(5) + void clearCreateTime() => clearField(5); + @$pb.TagNumber(5) + $50.Timestamp ensureCreateTime() => $_ensure(4); + + /// Output only. Update time stamp + @$pb.TagNumber(6) + $50.Timestamp get updateTime => $_getN(5); + @$pb.TagNumber(6) + set updateTime($50.Timestamp v) { + setField(6, v); + } + + @$pb.TagNumber(6) + $core.bool hasUpdateTime() => $_has(5); + @$pb.TagNumber(6) + void clearUpdateTime() => clearField(6); + @$pb.TagNumber(6) + $50.Timestamp ensureUpdateTime() => $_ensure(5); + + /// Required. The name of the service to which the quota preference is applied. + @$pb.TagNumber(7) + $core.String get service => $_getSZ(6); + @$pb.TagNumber(7) + set service($core.String v) { + $_setString(6, v); + } + + @$pb.TagNumber(7) + $core.bool hasService() => $_has(6); + @$pb.TagNumber(7) + void clearService() => clearField(7); + + /// Required. The id of the quota to which the quota preference is applied. A + /// quota name is unique in the service. Example: `CpusPerProjectPerRegion` + @$pb.TagNumber(8) + $core.String get quotaId => $_getSZ(7); + @$pb.TagNumber(8) + set quotaId($core.String v) { + $_setString(7, v); + } + + @$pb.TagNumber(8) + $core.bool hasQuotaId() => $_has(7); + @$pb.TagNumber(8) + void clearQuotaId() => clearField(8); + + /// Output only. Is the quota preference pending Google Cloud approval and + /// fulfillment. + @$pb.TagNumber(10) + $core.bool get reconciling => $_getBF(8); + @$pb.TagNumber(10) + set reconciling($core.bool v) { + $_setBool(8, v); + } + + @$pb.TagNumber(10) + $core.bool hasReconciling() => $_has(8); + @$pb.TagNumber(10) + void clearReconciling() => clearField(10); + + /// The reason / justification for this quota preference. + @$pb.TagNumber(11) + $core.String get justification => $_getSZ(9); + @$pb.TagNumber(11) + set justification($core.String v) { + $_setString(9, v); + } + + @$pb.TagNumber(11) + $core.bool hasJustification() => $_has(9); + @$pb.TagNumber(11) + void clearJustification() => clearField(11); + + /// Input only. An email address that can be used to contact the the user, in + /// case Google Cloud needs more information to make a decision before + /// additional quota can be granted. + /// + /// When requesting a quota increase, the email address is required. + /// When requesting a quota decrease, the email address is optional. + /// For example, the email address is optional when the + /// `QuotaConfig.preferred_value` is smaller than the + /// `QuotaDetails.reset_value`. + @$pb.TagNumber(12) + $core.String get contactEmail => $_getSZ(10); + @$pb.TagNumber(12) + set contactEmail($core.String v) { + $_setString(10, v); + } + + @$pb.TagNumber(12) + $core.bool hasContactEmail() => $_has(10); + @$pb.TagNumber(12) + void clearContactEmail() => clearField(12); +} + +/// The preferred quota configuration. +class QuotaConfig extends $pb.GeneratedMessage { + factory QuotaConfig({ + $fixnum.Int64? preferredValue, + $core.String? stateDetail, + $73.Int64Value? grantedValue, + $core.String? traceId, + $core.Map<$core.String, $core.String>? annotations, + QuotaConfig_Origin? requestOrigin, + }) { + final $result = create(); + if (preferredValue != null) { + $result.preferredValue = preferredValue; + } + if (stateDetail != null) { + $result.stateDetail = stateDetail; + } + if (grantedValue != null) { + $result.grantedValue = grantedValue; + } + if (traceId != null) { + $result.traceId = traceId; + } + if (annotations != null) { + $result.annotations.addAll(annotations); + } + if (requestOrigin != null) { + $result.requestOrigin = requestOrigin; + } + return $result; + } + QuotaConfig._() : super(); + factory QuotaConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory QuotaConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QuotaConfig', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'preferredValue') + ..aOS(2, _omitFieldNames ? '' : 'stateDetail') + ..aOM<$73.Int64Value>(3, _omitFieldNames ? '' : 'grantedValue', + subBuilder: $73.Int64Value.create) + ..aOS(4, _omitFieldNames ? '' : 'traceId') + ..m<$core.String, $core.String>(5, _omitFieldNames ? '' : 'annotations', + entryClassName: 'QuotaConfig.AnnotationsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.cloudquotas.v1')) + ..e( + 6, _omitFieldNames ? '' : 'requestOrigin', $pb.PbFieldType.OE, + defaultOrMaker: QuotaConfig_Origin.ORIGIN_UNSPECIFIED, + valueOf: QuotaConfig_Origin.valueOf, + enumValues: QuotaConfig_Origin.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + QuotaConfig clone() => QuotaConfig()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + QuotaConfig copyWith(void Function(QuotaConfig) updates) => + super.copyWith((message) => updates(message as QuotaConfig)) + as QuotaConfig; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static QuotaConfig create() => QuotaConfig._(); + QuotaConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static QuotaConfig getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static QuotaConfig? _defaultInstance; + + /// Required. The preferred value. Must be greater than or equal to -1. If set + /// to -1, it means the value is "unlimited". + @$pb.TagNumber(1) + $fixnum.Int64 get preferredValue => $_getI64(0); + @$pb.TagNumber(1) + set preferredValue($fixnum.Int64 v) { + $_setInt64(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasPreferredValue() => $_has(0); + @$pb.TagNumber(1) + void clearPreferredValue() => clearField(1); + + /// Output only. Optional details about the state of this quota preference. + @$pb.TagNumber(2) + $core.String get stateDetail => $_getSZ(1); + @$pb.TagNumber(2) + set stateDetail($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasStateDetail() => $_has(1); + @$pb.TagNumber(2) + void clearStateDetail() => clearField(2); + + /// Output only. Granted quota value. + @$pb.TagNumber(3) + $73.Int64Value get grantedValue => $_getN(2); + @$pb.TagNumber(3) + set grantedValue($73.Int64Value v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasGrantedValue() => $_has(2); + @$pb.TagNumber(3) + void clearGrantedValue() => clearField(3); + @$pb.TagNumber(3) + $73.Int64Value ensureGrantedValue() => $_ensure(2); + + /// Output only. The trace id that the Google Cloud uses to provision the + /// requested quota. This trace id may be used by the client to contact Cloud + /// support to track the state of a quota preference request. The trace id is + /// only produced for increase requests and is unique for each request. The + /// quota decrease requests do not have a trace id. + @$pb.TagNumber(4) + $core.String get traceId => $_getSZ(3); + @$pb.TagNumber(4) + set traceId($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasTraceId() => $_has(3); + @$pb.TagNumber(4) + void clearTraceId() => clearField(4); + + /// Optional. The annotations map for clients to store small amounts of + /// arbitrary data. Do not put PII or other sensitive information here. See + /// https://google.aip.dev/128#annotations + @$pb.TagNumber(5) + $core.Map<$core.String, $core.String> get annotations => $_getMap(4); + + /// Output only. The origin of the quota preference request. + @$pb.TagNumber(6) + QuotaConfig_Origin get requestOrigin => $_getN(5); + @$pb.TagNumber(6) + set requestOrigin(QuotaConfig_Origin v) { + setField(6, v); + } + + @$pb.TagNumber(6) + $core.bool hasRequestOrigin() => $_has(5); + @$pb.TagNumber(6) + void clearRequestOrigin() => clearField(6); +} + +/// The detailed quota information such as effective quota value for a +/// combination of dimensions. +class DimensionsInfo extends $pb.GeneratedMessage { + factory DimensionsInfo({ + $core.Map<$core.String, $core.String>? dimensions, + QuotaDetails? details, + $core.Iterable<$core.String>? applicableLocations, + }) { + final $result = create(); + if (dimensions != null) { + $result.dimensions.addAll(dimensions); + } + if (details != null) { + $result.details = details; + } + if (applicableLocations != null) { + $result.applicableLocations.addAll(applicableLocations); + } + return $result; + } + DimensionsInfo._() : super(); + factory DimensionsInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DimensionsInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DimensionsInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..m<$core.String, $core.String>(1, _omitFieldNames ? '' : 'dimensions', + entryClassName: 'DimensionsInfo.DimensionsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.cloudquotas.v1')) + ..aOM(2, _omitFieldNames ? '' : 'details', + subBuilder: QuotaDetails.create) + ..pPS(3, _omitFieldNames ? '' : 'applicableLocations') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DimensionsInfo clone() => DimensionsInfo()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DimensionsInfo copyWith(void Function(DimensionsInfo) updates) => + super.copyWith((message) => updates(message as DimensionsInfo)) + as DimensionsInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DimensionsInfo create() => DimensionsInfo._(); + DimensionsInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DimensionsInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static DimensionsInfo? _defaultInstance; + + /// The map of dimensions for this dimensions info. The key of a map entry + /// is "region", "zone" or the name of a service specific dimension, and the + /// value of a map entry is the value of the dimension. If a dimension does + /// not appear in the map of dimensions, the dimensions info applies to all + /// the dimension values except for those that have another DimenisonInfo + /// instance configured for the specific value. + /// Example: {"provider" : "Foo Inc"} where "provider" is a service specific + /// dimension of a quota. + @$pb.TagNumber(1) + $core.Map<$core.String, $core.String> get dimensions => $_getMap(0); + + /// Quota details for the specified dimensions. + @$pb.TagNumber(2) + QuotaDetails get details => $_getN(1); + @$pb.TagNumber(2) + set details(QuotaDetails v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasDetails() => $_has(1); + @$pb.TagNumber(2) + void clearDetails() => clearField(2); + @$pb.TagNumber(2) + QuotaDetails ensureDetails() => $_ensure(1); + + /// The applicable regions or zones of this dimensions info. The field will be + /// set to ['global'] for quotas that are not per region or per zone. + /// Otherwise, it will be set to the list of locations this dimension info is + /// applicable to. + @$pb.TagNumber(3) + $core.List<$core.String> get applicableLocations => $_getList(2); +} + +/// The quota details for a map of dimensions. +class QuotaDetails extends $pb.GeneratedMessage { + factory QuotaDetails({ + $fixnum.Int64? value, + RolloutInfo? rolloutInfo, + }) { + final $result = create(); + if (value != null) { + $result.value = value; + } + if (rolloutInfo != null) { + $result.rolloutInfo = rolloutInfo; + } + return $result; + } + QuotaDetails._() : super(); + factory QuotaDetails.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory QuotaDetails.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QuotaDetails', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'value') + ..aOM(3, _omitFieldNames ? '' : 'rolloutInfo', + subBuilder: RolloutInfo.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') + QuotaDetails clone() => QuotaDetails()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + QuotaDetails copyWith(void Function(QuotaDetails) updates) => + super.copyWith((message) => updates(message as QuotaDetails)) + as QuotaDetails; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static QuotaDetails create() => QuotaDetails._(); + QuotaDetails createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static QuotaDetails getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static QuotaDetails? _defaultInstance; + + /// The value currently in effect and being enforced. + @$pb.TagNumber(1) + $fixnum.Int64 get value => $_getI64(0); + @$pb.TagNumber(1) + set value($fixnum.Int64 v) { + $_setInt64(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasValue() => $_has(0); + @$pb.TagNumber(1) + void clearValue() => clearField(1); + + /// Rollout information of this quota. + /// This field is present only if the effective limit will change due to the + /// ongoing rollout of the service config. + @$pb.TagNumber(3) + RolloutInfo get rolloutInfo => $_getN(1); + @$pb.TagNumber(3) + set rolloutInfo(RolloutInfo v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasRolloutInfo() => $_has(1); + @$pb.TagNumber(3) + void clearRolloutInfo() => clearField(3); + @$pb.TagNumber(3) + RolloutInfo ensureRolloutInfo() => $_ensure(1); +} + +/// [Output only] Rollout information of a quota. +class RolloutInfo extends $pb.GeneratedMessage { + factory RolloutInfo({ + $core.bool? ongoingRollout, + }) { + final $result = create(); + if (ongoingRollout != null) { + $result.ongoingRollout = ongoingRollout; + } + return $result; + } + RolloutInfo._() : super(); + factory RolloutInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RolloutInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RolloutInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.cloudquotas.v1'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'ongoingRollout') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RolloutInfo clone() => RolloutInfo()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RolloutInfo copyWith(void Function(RolloutInfo) updates) => + super.copyWith((message) => updates(message as RolloutInfo)) + as RolloutInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RolloutInfo create() => RolloutInfo._(); + RolloutInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RolloutInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static RolloutInfo? _defaultInstance; + + /// Whether there is an ongoing rollout for a quota or not. + @$pb.TagNumber(1) + $core.bool get ongoingRollout => $_getBF(0); + @$pb.TagNumber(1) + set ongoingRollout($core.bool v) { + $_setBool(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasOngoingRollout() => $_has(0); + @$pb.TagNumber(1) + void clearOngoingRollout() => clearField(1); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/resources.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/resources.pbenum.dart new file mode 100644 index 00000000..7fcef85f --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/resources.pbenum.dart @@ -0,0 +1,122 @@ +// +// Generated code. Do not modify. +// source: google/api/cloudquotas/v1/resources.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; + +/// Enumerations of quota safety checks. +class QuotaSafetyCheck extends $pb.ProtobufEnum { + static const QuotaSafetyCheck QUOTA_SAFETY_CHECK_UNSPECIFIED = + QuotaSafetyCheck._( + 0, _omitEnumNames ? '' : 'QUOTA_SAFETY_CHECK_UNSPECIFIED'); + static const QuotaSafetyCheck QUOTA_DECREASE_BELOW_USAGE = + QuotaSafetyCheck._(1, _omitEnumNames ? '' : 'QUOTA_DECREASE_BELOW_USAGE'); + static const QuotaSafetyCheck QUOTA_DECREASE_PERCENTAGE_TOO_HIGH = + QuotaSafetyCheck._( + 2, _omitEnumNames ? '' : 'QUOTA_DECREASE_PERCENTAGE_TOO_HIGH'); + + static const $core.List values = [ + QUOTA_SAFETY_CHECK_UNSPECIFIED, + QUOTA_DECREASE_BELOW_USAGE, + QUOTA_DECREASE_PERCENTAGE_TOO_HIGH, + ]; + + static final $core.Map<$core.int, QuotaSafetyCheck> _byValue = + $pb.ProtobufEnum.initByValue(values); + static QuotaSafetyCheck? valueOf($core.int value) => _byValue[value]; + + const QuotaSafetyCheck._($core.int v, $core.String n) : super(v, n); +} + +/// The enumeration of the types of a cloud resource container. +class QuotaInfo_ContainerType extends $pb.ProtobufEnum { + static const QuotaInfo_ContainerType CONTAINER_TYPE_UNSPECIFIED = + QuotaInfo_ContainerType._( + 0, _omitEnumNames ? '' : 'CONTAINER_TYPE_UNSPECIFIED'); + static const QuotaInfo_ContainerType PROJECT = + QuotaInfo_ContainerType._(1, _omitEnumNames ? '' : 'PROJECT'); + static const QuotaInfo_ContainerType FOLDER = + QuotaInfo_ContainerType._(2, _omitEnumNames ? '' : 'FOLDER'); + static const QuotaInfo_ContainerType ORGANIZATION = + QuotaInfo_ContainerType._(3, _omitEnumNames ? '' : 'ORGANIZATION'); + + static const $core.List values = + [ + CONTAINER_TYPE_UNSPECIFIED, + PROJECT, + FOLDER, + ORGANIZATION, + ]; + + static final $core.Map<$core.int, QuotaInfo_ContainerType> _byValue = + $pb.ProtobufEnum.initByValue(values); + static QuotaInfo_ContainerType? valueOf($core.int value) => _byValue[value]; + + const QuotaInfo_ContainerType._($core.int v, $core.String n) : super(v, n); +} + +/// The enumeration of reasons when it is ineligible to request increase +/// adjustment. +class QuotaIncreaseEligibility_IneligibilityReason extends $pb.ProtobufEnum { + static const QuotaIncreaseEligibility_IneligibilityReason + INELIGIBILITY_REASON_UNSPECIFIED = + QuotaIncreaseEligibility_IneligibilityReason._( + 0, _omitEnumNames ? '' : 'INELIGIBILITY_REASON_UNSPECIFIED'); + static const QuotaIncreaseEligibility_IneligibilityReason + NO_VALID_BILLING_ACCOUNT = QuotaIncreaseEligibility_IneligibilityReason._( + 1, _omitEnumNames ? '' : 'NO_VALID_BILLING_ACCOUNT'); + static const QuotaIncreaseEligibility_IneligibilityReason OTHER = + QuotaIncreaseEligibility_IneligibilityReason._( + 2, _omitEnumNames ? '' : 'OTHER'); + + static const $core.List values = + [ + INELIGIBILITY_REASON_UNSPECIFIED, + NO_VALID_BILLING_ACCOUNT, + OTHER, + ]; + + static final $core + .Map<$core.int, QuotaIncreaseEligibility_IneligibilityReason> _byValue = + $pb.ProtobufEnum.initByValue(values); + static QuotaIncreaseEligibility_IneligibilityReason? valueOf( + $core.int value) => + _byValue[value]; + + const QuotaIncreaseEligibility_IneligibilityReason._( + $core.int v, $core.String n) + : super(v, n); +} + +/// The enumeration of the origins of quota preference requests. +class QuotaConfig_Origin extends $pb.ProtobufEnum { + static const QuotaConfig_Origin ORIGIN_UNSPECIFIED = + QuotaConfig_Origin._(0, _omitEnumNames ? '' : 'ORIGIN_UNSPECIFIED'); + static const QuotaConfig_Origin CLOUD_CONSOLE = + QuotaConfig_Origin._(1, _omitEnumNames ? '' : 'CLOUD_CONSOLE'); + static const QuotaConfig_Origin AUTO_ADJUSTER = + QuotaConfig_Origin._(2, _omitEnumNames ? '' : 'AUTO_ADJUSTER'); + + static const $core.List values = [ + ORIGIN_UNSPECIFIED, + CLOUD_CONSOLE, + AUTO_ADJUSTER, + ]; + + static final $core.Map<$core.int, QuotaConfig_Origin> _byValue = + $pb.ProtobufEnum.initByValue(values); + static QuotaConfig_Origin? valueOf($core.int value) => _byValue[value]; + + const QuotaConfig_Origin._($core.int v, $core.String n) : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/resources.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/resources.pbjson.dart new file mode 100644 index 00000000..87abbd1d --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/cloudquotas/v1/resources.pbjson.dart @@ -0,0 +1,417 @@ +// +// Generated code. Do not modify. +// source: google/api/cloudquotas/v1/resources.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 quotaSafetyCheckDescriptor instead') +const QuotaSafetyCheck$json = { + '1': 'QuotaSafetyCheck', + '2': [ + {'1': 'QUOTA_SAFETY_CHECK_UNSPECIFIED', '2': 0}, + {'1': 'QUOTA_DECREASE_BELOW_USAGE', '2': 1}, + {'1': 'QUOTA_DECREASE_PERCENTAGE_TOO_HIGH', '2': 2}, + ], +}; + +/// Descriptor for `QuotaSafetyCheck`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List quotaSafetyCheckDescriptor = $convert.base64Decode( + 'ChBRdW90YVNhZmV0eUNoZWNrEiIKHlFVT1RBX1NBRkVUWV9DSEVDS19VTlNQRUNJRklFRBAAEh' + '4KGlFVT1RBX0RFQ1JFQVNFX0JFTE9XX1VTQUdFEAESJgoiUVVPVEFfREVDUkVBU0VfUEVSQ0VO' + 'VEFHRV9UT09fSElHSBAC'); + +@$core.Deprecated('Use quotaInfoDescriptor instead') +const QuotaInfo$json = { + '1': 'QuotaInfo', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + {'1': 'quota_id', '3': 2, '4': 1, '5': 9, '10': 'quotaId'}, + {'1': 'metric', '3': 3, '4': 1, '5': 9, '10': 'metric'}, + {'1': 'service', '3': 4, '4': 1, '5': 9, '10': 'service'}, + {'1': 'is_precise', '3': 5, '4': 1, '5': 8, '10': 'isPrecise'}, + {'1': 'refresh_interval', '3': 6, '4': 1, '5': 9, '10': 'refreshInterval'}, + { + '1': 'container_type', + '3': 7, + '4': 1, + '5': 14, + '6': '.google.api.cloudquotas.v1.QuotaInfo.ContainerType', + '10': 'containerType' + }, + {'1': 'dimensions', '3': 8, '4': 3, '5': 9, '10': 'dimensions'}, + { + '1': 'metric_display_name', + '3': 9, + '4': 1, + '5': 9, + '10': 'metricDisplayName' + }, + { + '1': 'quota_display_name', + '3': 10, + '4': 1, + '5': 9, + '10': 'quotaDisplayName' + }, + {'1': 'metric_unit', '3': 11, '4': 1, '5': 9, '10': 'metricUnit'}, + { + '1': 'quota_increase_eligibility', + '3': 12, + '4': 1, + '5': 11, + '6': '.google.api.cloudquotas.v1.QuotaIncreaseEligibility', + '10': 'quotaIncreaseEligibility' + }, + {'1': 'is_fixed', '3': 13, '4': 1, '5': 8, '10': 'isFixed'}, + { + '1': 'dimensions_infos', + '3': 14, + '4': 3, + '5': 11, + '6': '.google.api.cloudquotas.v1.DimensionsInfo', + '10': 'dimensionsInfos' + }, + {'1': 'is_concurrent', '3': 15, '4': 1, '5': 8, '10': 'isConcurrent'}, + { + '1': 'service_request_quota_uri', + '3': 17, + '4': 1, + '5': 9, + '10': 'serviceRequestQuotaUri' + }, + ], + '4': [QuotaInfo_ContainerType$json], + '7': {}, +}; + +@$core.Deprecated('Use quotaInfoDescriptor instead') +const QuotaInfo_ContainerType$json = { + '1': 'ContainerType', + '2': [ + {'1': 'CONTAINER_TYPE_UNSPECIFIED', '2': 0}, + {'1': 'PROJECT', '2': 1}, + {'1': 'FOLDER', '2': 2}, + {'1': 'ORGANIZATION', '2': 3}, + ], +}; + +/// Descriptor for `QuotaInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List quotaInfoDescriptor = $convert.base64Decode( + 'CglRdW90YUluZm8SEgoEbmFtZRgBIAEoCVIEbmFtZRIZCghxdW90YV9pZBgCIAEoCVIHcXVvdG' + 'FJZBIWCgZtZXRyaWMYAyABKAlSBm1ldHJpYxIYCgdzZXJ2aWNlGAQgASgJUgdzZXJ2aWNlEh0K' + 'CmlzX3ByZWNpc2UYBSABKAhSCWlzUHJlY2lzZRIpChByZWZyZXNoX2ludGVydmFsGAYgASgJUg' + '9yZWZyZXNoSW50ZXJ2YWwSWQoOY29udGFpbmVyX3R5cGUYByABKA4yMi5nb29nbGUuYXBpLmNs' + 'b3VkcXVvdGFzLnYxLlF1b3RhSW5mby5Db250YWluZXJUeXBlUg1jb250YWluZXJUeXBlEh4KCm' + 'RpbWVuc2lvbnMYCCADKAlSCmRpbWVuc2lvbnMSLgoTbWV0cmljX2Rpc3BsYXlfbmFtZRgJIAEo' + 'CVIRbWV0cmljRGlzcGxheU5hbWUSLAoScXVvdGFfZGlzcGxheV9uYW1lGAogASgJUhBxdW90YU' + 'Rpc3BsYXlOYW1lEh8KC21ldHJpY191bml0GAsgASgJUgptZXRyaWNVbml0EnEKGnF1b3RhX2lu' + 'Y3JlYXNlX2VsaWdpYmlsaXR5GAwgASgLMjMuZ29vZ2xlLmFwaS5jbG91ZHF1b3Rhcy52MS5RdW' + '90YUluY3JlYXNlRWxpZ2liaWxpdHlSGHF1b3RhSW5jcmVhc2VFbGlnaWJpbGl0eRIZCghpc19m' + 'aXhlZBgNIAEoCFIHaXNGaXhlZBJUChBkaW1lbnNpb25zX2luZm9zGA4gAygLMikuZ29vZ2xlLm' + 'FwaS5jbG91ZHF1b3Rhcy52MS5EaW1lbnNpb25zSW5mb1IPZGltZW5zaW9uc0luZm9zEiMKDWlz' + 'X2NvbmN1cnJlbnQYDyABKAhSDGlzQ29uY3VycmVudBI5ChlzZXJ2aWNlX3JlcXVlc3RfcXVvdG' + 'FfdXJpGBEgASgJUhZzZXJ2aWNlUmVxdWVzdFF1b3RhVXJpIloKDUNvbnRhaW5lclR5cGUSHgoa' + 'Q09OVEFJTkVSX1RZUEVfVU5TUEVDSUZJRUQQABILCgdQUk9KRUNUEAESCgoGRk9MREVSEAISEA' + 'oMT1JHQU5JWkFUSU9OEAM6rgLqQaoCCiRjbG91ZHF1b3Rhcy5nb29nbGVhcGlzLmNvbS9RdW90' + 'YUluZm8SUnByb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9zZXJ2aWNlcy' + '97c2VydmljZX0vcXVvdGFJbmZvcy97cXVvdGFfaW5mb30SUGZvbGRlcnMve2ZvbGRlcn0vbG9j' + 'YXRpb25zL3tsb2NhdGlvbn0vc2VydmljZXMve3NlcnZpY2V9L3F1b3RhSW5mb3Mve3F1b3RhX2' + 'luZm99Elxvcmdhbml6YXRpb25zL3tvcmdhbml6YXRpb259L2xvY2F0aW9ucy97bG9jYXRpb259' + 'L3NlcnZpY2VzL3tzZXJ2aWNlfS9xdW90YUluZm9zL3txdW90YV9pbmZvfQ=='); + +@$core.Deprecated('Use quotaIncreaseEligibilityDescriptor instead') +const QuotaIncreaseEligibility$json = { + '1': 'QuotaIncreaseEligibility', + '2': [ + {'1': 'is_eligible', '3': 1, '4': 1, '5': 8, '10': 'isEligible'}, + { + '1': 'ineligibility_reason', + '3': 2, + '4': 1, + '5': 14, + '6': + '.google.api.cloudquotas.v1.QuotaIncreaseEligibility.IneligibilityReason', + '10': 'ineligibilityReason' + }, + ], + '4': [QuotaIncreaseEligibility_IneligibilityReason$json], +}; + +@$core.Deprecated('Use quotaIncreaseEligibilityDescriptor instead') +const QuotaIncreaseEligibility_IneligibilityReason$json = { + '1': 'IneligibilityReason', + '2': [ + {'1': 'INELIGIBILITY_REASON_UNSPECIFIED', '2': 0}, + {'1': 'NO_VALID_BILLING_ACCOUNT', '2': 1}, + {'1': 'OTHER', '2': 2}, + ], +}; + +/// Descriptor for `QuotaIncreaseEligibility`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List quotaIncreaseEligibilityDescriptor = $convert.base64Decode( + 'ChhRdW90YUluY3JlYXNlRWxpZ2liaWxpdHkSHwoLaXNfZWxpZ2libGUYASABKAhSCmlzRWxpZ2' + 'libGUSegoUaW5lbGlnaWJpbGl0eV9yZWFzb24YAiABKA4yRy5nb29nbGUuYXBpLmNsb3VkcXVv' + 'dGFzLnYxLlF1b3RhSW5jcmVhc2VFbGlnaWJpbGl0eS5JbmVsaWdpYmlsaXR5UmVhc29uUhNpbm' + 'VsaWdpYmlsaXR5UmVhc29uImQKE0luZWxpZ2liaWxpdHlSZWFzb24SJAogSU5FTElHSUJJTElU' + 'WV9SRUFTT05fVU5TUEVDSUZJRUQQABIcChhOT19WQUxJRF9CSUxMSU5HX0FDQ09VTlQQARIJCg' + 'VPVEhFUhAC'); + +@$core.Deprecated('Use quotaPreferenceDescriptor instead') +const QuotaPreference$json = { + '1': 'QuotaPreference', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + { + '1': 'dimensions', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.api.cloudquotas.v1.QuotaPreference.DimensionsEntry', + '8': {}, + '10': 'dimensions' + }, + { + '1': 'quota_config', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.api.cloudquotas.v1.QuotaConfig', + '8': {}, + '10': 'quotaConfig' + }, + {'1': 'etag', '3': 4, '4': 1, '5': 9, '8': {}, '10': 'etag'}, + { + '1': 'create_time', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'createTime' + }, + { + '1': 'update_time', + '3': 6, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'updateTime' + }, + {'1': 'service', '3': 7, '4': 1, '5': 9, '8': {}, '10': 'service'}, + {'1': 'quota_id', '3': 8, '4': 1, '5': 9, '8': {}, '10': 'quotaId'}, + {'1': 'reconciling', '3': 10, '4': 1, '5': 8, '8': {}, '10': 'reconciling'}, + {'1': 'justification', '3': 11, '4': 1, '5': 9, '10': 'justification'}, + { + '1': 'contact_email', + '3': 12, + '4': 1, + '5': 9, + '8': {}, + '10': 'contactEmail' + }, + ], + '3': [QuotaPreference_DimensionsEntry$json], + '7': {}, +}; + +@$core.Deprecated('Use quotaPreferenceDescriptor instead') +const QuotaPreference_DimensionsEntry$json = { + '1': 'DimensionsEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `QuotaPreference`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List quotaPreferenceDescriptor = $convert.base64Decode( + 'Cg9RdW90YVByZWZlcmVuY2USEgoEbmFtZRgBIAEoCVIEbmFtZRJfCgpkaW1lbnNpb25zGAIgAy' + 'gLMjouZ29vZ2xlLmFwaS5jbG91ZHF1b3Rhcy52MS5RdW90YVByZWZlcmVuY2UuRGltZW5zaW9u' + 'c0VudHJ5QgPgQQVSCmRpbWVuc2lvbnMSTgoMcXVvdGFfY29uZmlnGAMgASgLMiYuZ29vZ2xlLm' + 'FwaS5jbG91ZHF1b3Rhcy52MS5RdW90YUNvbmZpZ0ID4EECUgtxdW90YUNvbmZpZxIXCgRldGFn' + 'GAQgASgJQgPgQQFSBGV0YWcSQAoLY3JlYXRlX3RpbWUYBSABKAsyGi5nb29nbGUucHJvdG9idW' + 'YuVGltZXN0YW1wQgPgQQNSCmNyZWF0ZVRpbWUSQAoLdXBkYXRlX3RpbWUYBiABKAsyGi5nb29n' + 'bGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCnVwZGF0ZVRpbWUSHQoHc2VydmljZRgHIAEoCU' + 'ID4EECUgdzZXJ2aWNlEh4KCHF1b3RhX2lkGAggASgJQgPgQQJSB3F1b3RhSWQSJQoLcmVjb25j' + 'aWxpbmcYCiABKAhCA+BBA1ILcmVjb25jaWxpbmcSJAoNanVzdGlmaWNhdGlvbhgLIAEoCVINan' + 'VzdGlmaWNhdGlvbhIoCg1jb250YWN0X2VtYWlsGAwgASgJQgPgQQRSDGNvbnRhY3RFbWFpbBo9' + 'Cg9EaW1lbnNpb25zRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbH' + 'VlOgI4ATqfAupBmwIKKmNsb3VkcXVvdGFzLmdvb2dsZWFwaXMuY29tL1F1b3RhUHJlZmVyZW5j' + 'ZRJLcHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L3F1b3RhUHJlZmVyZW' + '5jZXMve3F1b3RhX3ByZWZlcmVuY2V9Eklmb2xkZXJzL3tmb2xkZXJ9L2xvY2F0aW9ucy97bG9j' + 'YXRpb259L3F1b3RhUHJlZmVyZW5jZXMve3F1b3RhX3ByZWZlcmVuY2V9ElVvcmdhbml6YXRpb2' + '5zL3tvcmdhbml6YXRpb259L2xvY2F0aW9ucy97bG9jYXRpb259L3F1b3RhUHJlZmVyZW5jZXMv' + 'e3F1b3RhX3ByZWZlcmVuY2V9'); + +@$core.Deprecated('Use quotaConfigDescriptor instead') +const QuotaConfig$json = { + '1': 'QuotaConfig', + '2': [ + { + '1': 'preferred_value', + '3': 1, + '4': 1, + '5': 3, + '8': {}, + '10': 'preferredValue' + }, + {'1': 'state_detail', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'stateDetail'}, + { + '1': 'granted_value', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.Int64Value', + '8': {}, + '10': 'grantedValue' + }, + {'1': 'trace_id', '3': 4, '4': 1, '5': 9, '8': {}, '10': 'traceId'}, + { + '1': 'annotations', + '3': 5, + '4': 3, + '5': 11, + '6': '.google.api.cloudquotas.v1.QuotaConfig.AnnotationsEntry', + '8': {}, + '10': 'annotations' + }, + { + '1': 'request_origin', + '3': 6, + '4': 1, + '5': 14, + '6': '.google.api.cloudquotas.v1.QuotaConfig.Origin', + '8': {}, + '10': 'requestOrigin' + }, + ], + '3': [QuotaConfig_AnnotationsEntry$json], + '4': [QuotaConfig_Origin$json], +}; + +@$core.Deprecated('Use quotaConfigDescriptor instead') +const QuotaConfig_AnnotationsEntry$json = { + '1': 'AnnotationsEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +@$core.Deprecated('Use quotaConfigDescriptor instead') +const QuotaConfig_Origin$json = { + '1': 'Origin', + '2': [ + {'1': 'ORIGIN_UNSPECIFIED', '2': 0}, + {'1': 'CLOUD_CONSOLE', '2': 1}, + {'1': 'AUTO_ADJUSTER', '2': 2}, + ], +}; + +/// Descriptor for `QuotaConfig`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List quotaConfigDescriptor = $convert.base64Decode( + 'CgtRdW90YUNvbmZpZxIsCg9wcmVmZXJyZWRfdmFsdWUYASABKANCA+BBAlIOcHJlZmVycmVkVm' + 'FsdWUSJgoMc3RhdGVfZGV0YWlsGAIgASgJQgPgQQNSC3N0YXRlRGV0YWlsEkUKDWdyYW50ZWRf' + 'dmFsdWUYAyABKAsyGy5nb29nbGUucHJvdG9idWYuSW50NjRWYWx1ZUID4EEDUgxncmFudGVkVm' + 'FsdWUSHgoIdHJhY2VfaWQYBCABKAlCA+BBA1IHdHJhY2VJZBJeCgthbm5vdGF0aW9ucxgFIAMo' + 'CzI3Lmdvb2dsZS5hcGkuY2xvdWRxdW90YXMudjEuUXVvdGFDb25maWcuQW5ub3RhdGlvbnNFbn' + 'RyeUID4EEBUgthbm5vdGF0aW9ucxJZCg5yZXF1ZXN0X29yaWdpbhgGIAEoDjItLmdvb2dsZS5h' + 'cGkuY2xvdWRxdW90YXMudjEuUXVvdGFDb25maWcuT3JpZ2luQgPgQQNSDXJlcXVlc3RPcmlnaW' + '4aPgoQQW5ub3RhdGlvbnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIF' + 'dmFsdWU6AjgBIkYKBk9yaWdpbhIWChJPUklHSU5fVU5TUEVDSUZJRUQQABIRCg1DTE9VRF9DT0' + '5TT0xFEAESEQoNQVVUT19BREpVU1RFUhAC'); + +@$core.Deprecated('Use dimensionsInfoDescriptor instead') +const DimensionsInfo$json = { + '1': 'DimensionsInfo', + '2': [ + { + '1': 'dimensions', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.api.cloudquotas.v1.DimensionsInfo.DimensionsEntry', + '10': 'dimensions' + }, + { + '1': 'details', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.api.cloudquotas.v1.QuotaDetails', + '10': 'details' + }, + { + '1': 'applicable_locations', + '3': 3, + '4': 3, + '5': 9, + '10': 'applicableLocations' + }, + ], + '3': [DimensionsInfo_DimensionsEntry$json], +}; + +@$core.Deprecated('Use dimensionsInfoDescriptor instead') +const DimensionsInfo_DimensionsEntry$json = { + '1': 'DimensionsEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `DimensionsInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List dimensionsInfoDescriptor = $convert.base64Decode( + 'Cg5EaW1lbnNpb25zSW5mbxJZCgpkaW1lbnNpb25zGAEgAygLMjkuZ29vZ2xlLmFwaS5jbG91ZH' + 'F1b3Rhcy52MS5EaW1lbnNpb25zSW5mby5EaW1lbnNpb25zRW50cnlSCmRpbWVuc2lvbnMSQQoH' + 'ZGV0YWlscxgCIAEoCzInLmdvb2dsZS5hcGkuY2xvdWRxdW90YXMudjEuUXVvdGFEZXRhaWxzUg' + 'dkZXRhaWxzEjEKFGFwcGxpY2FibGVfbG9jYXRpb25zGAMgAygJUhNhcHBsaWNhYmxlTG9jYXRp' + 'b25zGj0KD0RpbWVuc2lvbnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCV' + 'IFdmFsdWU6AjgB'); + +@$core.Deprecated('Use quotaDetailsDescriptor instead') +const QuotaDetails$json = { + '1': 'QuotaDetails', + '2': [ + {'1': 'value', '3': 1, '4': 1, '5': 3, '10': 'value'}, + { + '1': 'rollout_info', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.api.cloudquotas.v1.RolloutInfo', + '10': 'rolloutInfo' + }, + ], +}; + +/// Descriptor for `QuotaDetails`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List quotaDetailsDescriptor = $convert.base64Decode( + 'CgxRdW90YURldGFpbHMSFAoFdmFsdWUYASABKANSBXZhbHVlEkkKDHJvbGxvdXRfaW5mbxgDIA' + 'EoCzImLmdvb2dsZS5hcGkuY2xvdWRxdW90YXMudjEuUm9sbG91dEluZm9SC3JvbGxvdXRJbmZv'); + +@$core.Deprecated('Use rolloutInfoDescriptor instead') +const RolloutInfo$json = { + '1': 'RolloutInfo', + '2': [ + {'1': 'ongoing_rollout', '3': 1, '4': 1, '5': 8, '10': 'ongoingRollout'}, + ], +}; + +/// Descriptor for `RolloutInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List rolloutInfoDescriptor = $convert.base64Decode( + 'CgtSb2xsb3V0SW5mbxInCg9vbmdvaW5nX3JvbGxvdXQYASABKAhSDm9uZ29pbmdSb2xsb3V0'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pb.dart index 8c5b01d1..0263b647 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/api/config_change.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,41 +17,13 @@ import 'config_change.pbenum.dart'; export 'config_change.pbenum.dart'; +/// Output generated from semantically comparing two versions of a service +/// configuration. +/// +/// Includes detailed information about a field that have changed with +/// applicable advice about potential consequences for the change, such as +/// backwards-incompatibility. class ConfigChange extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ConfigChange', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'element') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'oldValue') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'newValue') - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'changeType', - $pb.PbFieldType.OE, - defaultOrMaker: ChangeType.CHANGE_TYPE_UNSPECIFIED, - valueOf: ChangeType.valueOf, - enumValues: ChangeType.values) - ..pc(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'advices', $pb.PbFieldType.PM, subBuilder: Advice.create) - ..hasRequiredFields = false; - - ConfigChange._() : super(); factory ConfigChange({ $core.String? element, $core.String? oldValue, @@ -55,30 +31,47 @@ class ConfigChange extends $pb.GeneratedMessage { ChangeType? changeType, $core.Iterable? advices, }) { - final _result = create(); + final $result = create(); if (element != null) { - _result.element = element; + $result.element = element; } if (oldValue != null) { - _result.oldValue = oldValue; + $result.oldValue = oldValue; } if (newValue != null) { - _result.newValue = newValue; + $result.newValue = newValue; } if (changeType != null) { - _result.changeType = changeType; + $result.changeType = changeType; } if (advices != null) { - _result.advices.addAll(advices); + $result.advices.addAll(advices); } - return _result; + return $result; } + ConfigChange._() : super(); factory ConfigChange.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ConfigChange.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ConfigChange', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'element') + ..aOS(2, _omitFieldNames ? '' : 'oldValue') + ..aOS(3, _omitFieldNames ? '' : 'newValue') + ..e(4, _omitFieldNames ? '' : 'changeType', $pb.PbFieldType.OE, + defaultOrMaker: ChangeType.CHANGE_TYPE_UNSPECIFIED, + valueOf: ChangeType.valueOf, + enumValues: ChangeType.values) + ..pc(5, _omitFieldNames ? '' : 'advices', $pb.PbFieldType.PM, + subBuilder: Advice.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') @@ -88,8 +81,10 @@ class ConfigChange extends $pb.GeneratedMessage { 'Will be removed in next major version') ConfigChange copyWith(void Function(ConfigChange) updates) => super.copyWith((message) => updates(message as ConfigChange)) - as ConfigChange; // ignore: deprecated_member_use + as ConfigChange; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ConfigChange create() => ConfigChange._(); ConfigChange createEmptyInstance() => create(); @@ -100,6 +95,15 @@ class ConfigChange extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ConfigChange? _defaultInstance; + /// Object hierarchy path to the change, with levels separated by a '.' + /// character. For repeated fields, an applicable unique identifier field is + /// used for the index (usually selector, name, or id). For maps, the term + /// 'key' is used. If the field has no unique identifier, the numeric index + /// is used. + /// Examples: + /// - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + /// - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + /// - logging.producer_destinations[0] @$pb.TagNumber(1) $core.String get element => $_getSZ(0); @$pb.TagNumber(1) @@ -112,6 +116,8 @@ class ConfigChange extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearElement() => clearField(1); + /// Value of the changed object in the old Service configuration, + /// in JSON format. This field will not be populated if ChangeType == ADDED. @$pb.TagNumber(2) $core.String get oldValue => $_getSZ(1); @$pb.TagNumber(2) @@ -124,6 +130,8 @@ class ConfigChange extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOldValue() => clearField(2); + /// Value of the changed object in the new Service configuration, + /// in JSON format. This field will not be populated if ChangeType == REMOVED. @$pb.TagNumber(3) $core.String get newValue => $_getSZ(2); @$pb.TagNumber(3) @@ -136,6 +144,7 @@ class ConfigChange extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearNewValue() => clearField(3); + /// The type for this change, either ADDED, REMOVED, or MODIFIED. @$pb.TagNumber(4) ChangeType get changeType => $_getN(3); @$pb.TagNumber(4) @@ -148,43 +157,39 @@ class ConfigChange extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearChangeType() => clearField(4); + /// Collection of advice provided for this change, useful for determining the + /// possible impact of this change. @$pb.TagNumber(5) $core.List get advices => $_getList(4); } +/// Generated advice about this change, used for providing more +/// information about how a change will affect the existing service. class Advice extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Advice', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..hasRequiredFields = false; - - Advice._() : super(); factory Advice({ $core.String? description, }) { - final _result = create(); + final $result = create(); if (description != null) { - _result.description = description; + $result.description = description; } - return _result; + return $result; } + Advice._() : super(); factory Advice.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Advice.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Advice', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'description') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -193,9 +198,10 @@ class Advice extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Advice copyWith(void Function(Advice) updates) => - super.copyWith((message) => updates(message as Advice)) - as Advice; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Advice)) as Advice; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Advice create() => Advice._(); Advice createEmptyInstance() => create(); @@ -205,6 +211,8 @@ class Advice extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Advice? _defaultInstance; + /// Useful description for why this advice was applied and what actions should + /// be taken to mitigate any implied risks. @$pb.TagNumber(2) $core.String get description => $_getSZ(0); @$pb.TagNumber(2) @@ -217,3 +225,7 @@ class Advice extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDescription() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pbenum.dart index 4586aa15..f04e38fa 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pbenum.dart @@ -1,26 +1,29 @@ -/// +// // Generated code. Do not modify. // source: google/api/config_change.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Classifies set of possible modifications to an object in the service +/// configuration. class ChangeType extends $pb.ProtobufEnum { - static const ChangeType CHANGE_TYPE_UNSPECIFIED = ChangeType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CHANGE_TYPE_UNSPECIFIED'); - static const ChangeType ADDED = ChangeType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ADDED'); - static const ChangeType REMOVED = ChangeType._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'REMOVED'); - static const ChangeType MODIFIED = ChangeType._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'MODIFIED'); + static const ChangeType CHANGE_TYPE_UNSPECIFIED = + ChangeType._(0, _omitEnumNames ? '' : 'CHANGE_TYPE_UNSPECIFIED'); + static const ChangeType ADDED = + ChangeType._(1, _omitEnumNames ? '' : 'ADDED'); + static const ChangeType REMOVED = + ChangeType._(2, _omitEnumNames ? '' : 'REMOVED'); + static const ChangeType MODIFIED = + ChangeType._(3, _omitEnumNames ? '' : 'MODIFIED'); static const $core.List values = [ CHANGE_TYPE_UNSPECIFIED, @@ -35,3 +38,5 @@ class ChangeType extends $pb.ProtobufEnum { const ChangeType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pbjson.dart index 0e5f5e99..88bc2cf8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/config_change.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/config_change.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 changeTypeDescriptor instead') @@ -22,7 +26,9 @@ const ChangeType$json = { /// Descriptor for `ChangeType`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List changeTypeDescriptor = $convert.base64Decode( - 'CgpDaGFuZ2VUeXBlEhsKF0NIQU5HRV9UWVBFX1VOU1BFQ0lGSUVEEAASCQoFQURERUQQARILCgdSRU1PVkVEEAISDAoITU9ESUZJRUQQAw=='); + 'CgpDaGFuZ2VUeXBlEhsKF0NIQU5HRV9UWVBFX1VOU1BFQ0lGSUVEEAASCQoFQURERUQQARILCg' + 'dSRU1PVkVEEAISDAoITU9ESUZJRUQQAw=='); + @$core.Deprecated('Use configChangeDescriptor instead') const ConfigChange$json = { '1': 'ConfigChange', @@ -51,7 +57,11 @@ const ConfigChange$json = { /// Descriptor for `ConfigChange`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List configChangeDescriptor = $convert.base64Decode( - 'CgxDb25maWdDaGFuZ2USGAoHZWxlbWVudBgBIAEoCVIHZWxlbWVudBIbCglvbGRfdmFsdWUYAiABKAlSCG9sZFZhbHVlEhsKCW5ld192YWx1ZRgDIAEoCVIIbmV3VmFsdWUSNwoLY2hhbmdlX3R5cGUYBCABKA4yFi5nb29nbGUuYXBpLkNoYW5nZVR5cGVSCmNoYW5nZVR5cGUSLAoHYWR2aWNlcxgFIAMoCzISLmdvb2dsZS5hcGkuQWR2aWNlUgdhZHZpY2Vz'); + 'CgxDb25maWdDaGFuZ2USGAoHZWxlbWVudBgBIAEoCVIHZWxlbWVudBIbCglvbGRfdmFsdWUYAi' + 'ABKAlSCG9sZFZhbHVlEhsKCW5ld192YWx1ZRgDIAEoCVIIbmV3VmFsdWUSNwoLY2hhbmdlX3R5' + 'cGUYBCABKA4yFi5nb29nbGUuYXBpLkNoYW5nZVR5cGVSCmNoYW5nZVR5cGUSLAoHYWR2aWNlcx' + 'gFIAMoCzISLmdvb2dsZS5hcGkuQWR2aWNlUgdhZHZpY2Vz'); + @$core.Deprecated('Use adviceDescriptor instead') const Advice$json = { '1': 'Advice', diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pb.dart index 96ac0b3a..cb4a83ba 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/api/consumer.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,41 +17,48 @@ import 'consumer.pbenum.dart'; export 'consumer.pbenum.dart'; +/// A descriptor for defining project properties for a service. One service may +/// have many consumer projects, and the service may want to behave differently +/// depending on some properties on the project. For example, a project may be +/// associated with a school, or a business, or a government agency, a business +/// type property on the project may affect how a service responds to the client. +/// This descriptor defines which properties are allowed to be set on a project. +/// +/// Example: +/// +/// project_properties: +/// properties: +/// - name: NO_WATERMARK +/// type: BOOL +/// description: Allows usage of the API without watermarks. +/// - name: EXTENDED_TILE_CACHE_PERIOD +/// type: INT64 class ProjectProperties extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ProjectProperties', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'properties', - $pb.PbFieldType.PM, - subBuilder: Property.create) - ..hasRequiredFields = false; - - ProjectProperties._() : super(); factory ProjectProperties({ $core.Iterable? properties, }) { - final _result = create(); + final $result = create(); if (properties != null) { - _result.properties.addAll(properties); + $result.properties.addAll(properties); } - return _result; + return $result; } + ProjectProperties._() : super(); factory ProjectProperties.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ProjectProperties.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ProjectProperties', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'properties', $pb.PbFieldType.PM, + subBuilder: Property.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') @@ -57,8 +68,10 @@ class ProjectProperties extends $pb.GeneratedMessage { 'Will be removed in next major version') ProjectProperties copyWith(void Function(ProjectProperties) updates) => super.copyWith((message) => updates(message as ProjectProperties)) - as ProjectProperties; // ignore: deprecated_member_use + as ProjectProperties; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ProjectProperties create() => ProjectProperties._(); ProjectProperties createEmptyInstance() => create(); @@ -69,62 +82,60 @@ class ProjectProperties extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ProjectProperties? _defaultInstance; + /// List of per consumer project-specific properties. @$pb.TagNumber(1) $core.List get properties => $_getList(0); } +/// Defines project properties. +/// +/// API services can define properties that can be assigned to consumer projects +/// so that backends can perform response customization without having to make +/// additional calls or maintain additional storage. For example, Maps API +/// defines properties that controls map tile cache period, or whether to embed a +/// watermark in a result. +/// +/// These values can be set via API producer console. Only API providers can +/// define and set these properties. class Property extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Property', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type', - $pb.PbFieldType.OE, - defaultOrMaker: Property_PropertyType.UNSPECIFIED, - valueOf: Property_PropertyType.valueOf, - enumValues: Property_PropertyType.values) - ..aOS( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'description') - ..hasRequiredFields = false; - - Property._() : super(); factory Property({ $core.String? name, Property_PropertyType? type, $core.String? description, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (type != null) { - _result.type = type; + $result.type = type; } if (description != null) { - _result.description = description; + $result.description = description; } - return _result; + return $result; } + Property._() : super(); factory Property.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Property.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Property', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e( + 2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: Property_PropertyType.UNSPECIFIED, + valueOf: Property_PropertyType.valueOf, + enumValues: Property_PropertyType.values) + ..aOS(3, _omitFieldNames ? '' : 'description') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -133,9 +144,10 @@ class Property extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Property copyWith(void Function(Property) updates) => - super.copyWith((message) => updates(message as Property)) - as Property; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Property)) as Property; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Property create() => Property._(); Property createEmptyInstance() => create(); @@ -145,6 +157,7 @@ class Property extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Property? _defaultInstance; + /// The name of the property (a.k.a key). @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -157,6 +170,7 @@ class Property extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The type of this property. @$pb.TagNumber(2) Property_PropertyType get type => $_getN(1); @$pb.TagNumber(2) @@ -169,6 +183,7 @@ class Property extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearType() => clearField(2); + /// The description of the property @$pb.TagNumber(3) $core.String get description => $_getSZ(2); @$pb.TagNumber(3) @@ -181,3 +196,7 @@ class Property extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDescription() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pbenum.dart index 2c652197..c713df65 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pbenum.dart @@ -1,28 +1,30 @@ -/// +// // Generated code. Do not modify. // source: google/api/consumer.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Supported data type of the property values class Property_PropertyType extends $pb.ProtobufEnum { - static const Property_PropertyType UNSPECIFIED = Property_PropertyType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED'); - static const Property_PropertyType INT64 = Property_PropertyType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'INT64'); - static const Property_PropertyType BOOL = Property_PropertyType._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BOOL'); - static const Property_PropertyType STRING = Property_PropertyType._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'STRING'); - static const Property_PropertyType DOUBLE = Property_PropertyType._(4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DOUBLE'); + static const Property_PropertyType UNSPECIFIED = + Property_PropertyType._(0, _omitEnumNames ? '' : 'UNSPECIFIED'); + static const Property_PropertyType INT64 = + Property_PropertyType._(1, _omitEnumNames ? '' : 'INT64'); + static const Property_PropertyType BOOL = + Property_PropertyType._(2, _omitEnumNames ? '' : 'BOOL'); + static const Property_PropertyType STRING = + Property_PropertyType._(3, _omitEnumNames ? '' : 'STRING'); + static const Property_PropertyType DOUBLE = + Property_PropertyType._(4, _omitEnumNames ? '' : 'DOUBLE'); static const $core.List values = [ @@ -39,3 +41,5 @@ class Property_PropertyType extends $pb.ProtobufEnum { const Property_PropertyType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pbjson.dart index d8289cbc..ac8535a0 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/consumer.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/consumer.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 projectPropertiesDescriptor instead') @@ -26,7 +30,9 @@ const ProjectProperties$json = { /// Descriptor for `ProjectProperties`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List projectPropertiesDescriptor = $convert.base64Decode( - 'ChFQcm9qZWN0UHJvcGVydGllcxI0Cgpwcm9wZXJ0aWVzGAEgAygLMhQuZ29vZ2xlLmFwaS5Qcm9wZXJ0eVIKcHJvcGVydGllcw=='); + 'ChFQcm9qZWN0UHJvcGVydGllcxI0Cgpwcm9wZXJ0aWVzGAEgAygLMhQuZ29vZ2xlLmFwaS5Qcm' + '9wZXJ0eVIKcHJvcGVydGllcw=='); + @$core.Deprecated('Use propertyDescriptor instead') const Property$json = { '1': 'Property', @@ -59,4 +65,7 @@ const Property_PropertyType$json = { /// Descriptor for `Property`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List propertyDescriptor = $convert.base64Decode( - 'CghQcm9wZXJ0eRISCgRuYW1lGAEgASgJUgRuYW1lEjUKBHR5cGUYAiABKA4yIS5nb29nbGUuYXBpLlByb3BlcnR5LlByb3BlcnR5VHlwZVIEdHlwZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRpb24iTAoMUHJvcGVydHlUeXBlEg8KC1VOU1BFQ0lGSUVEEAASCQoFSU5UNjQQARIICgRCT09MEAISCgoGU1RSSU5HEAMSCgoGRE9VQkxFEAQ='); + 'CghQcm9wZXJ0eRISCgRuYW1lGAEgASgJUgRuYW1lEjUKBHR5cGUYAiABKA4yIS5nb29nbGUuYX' + 'BpLlByb3BlcnR5LlByb3BlcnR5VHlwZVIEdHlwZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVz' + 'Y3JpcHRpb24iTAoMUHJvcGVydHlUeXBlEg8KC1VOU1BFQ0lGSUVEEAASCQoFSU5UNjQQARIICg' + 'RCT09MEAISCgoGU1RSSU5HEAMSCgoGRE9VQkxFEAQ='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pb.dart index 4b62df73..e9fb642d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pb.dart @@ -1,49 +1,80 @@ -/// +// // Generated code. Do not modify. // source: google/api/context.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// `Context` defines which contexts an API requests. +/// +/// Example: +/// +/// context: +/// rules: +/// - selector: "*" +/// requested: +/// - google.rpc.context.ProjectContext +/// - google.rpc.context.OriginContext +/// +/// The above specifies that all methods in the API request +/// `google.rpc.context.ProjectContext` and +/// `google.rpc.context.OriginContext`. +/// +/// Available context types are defined in package +/// `google.rpc.context`. +/// +/// This also provides mechanism to allowlist any protobuf message extension that +/// can be sent in grpc metadata using “x-goog-ext--bin” and +/// “x-goog-ext--jspb” format. For example, list any service +/// specific protobuf types that can appear in grpc metadata as follows in your +/// yaml file: +/// +/// Example: +/// +/// context: +/// rules: +/// - selector: "google.example.library.v1.LibraryService.CreateBook" +/// allowed_request_extensions: +/// - google.foo.v1.NewExtension +/// allowed_response_extensions: +/// - google.foo.v1.NewExtension +/// +/// You can also specify extension ID instead of fully qualified extension name +/// here. class Context extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Context', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rules', - $pb.PbFieldType.PM, - subBuilder: ContextRule.create) - ..hasRequiredFields = false; - - Context._() : super(); factory Context({ $core.Iterable? rules, }) { - final _result = create(); + final $result = create(); if (rules != null) { - _result.rules.addAll(rules); + $result.rules.addAll(rules); } - return _result; + return $result; } + Context._() : super(); factory Context.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Context.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Context', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: ContextRule.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') @@ -52,9 +83,10 @@ class Context extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Context copyWith(void Function(Context) updates) => - super.copyWith((message) => updates(message as Context)) - as Context; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Context)) as Context; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Context create() => Context._(); Context createEmptyInstance() => create(); @@ -64,44 +96,16 @@ class Context extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Context? _defaultInstance; + /// A list of RPC context rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. @$pb.TagNumber(1) $core.List get rules => $_getList(0); } +/// A context rule provides information about the context for an individual API +/// element. class ContextRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ContextRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'selector') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requested') - ..pPS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'provided') - ..pPS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allowedRequestExtensions') - ..pPS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'allowedResponseExtensions') - ..hasRequiredFields = false; - - ContextRule._() : super(); factory ContextRule({ $core.String? selector, $core.Iterable<$core.String>? requested, @@ -109,30 +113,43 @@ class ContextRule extends $pb.GeneratedMessage { $core.Iterable<$core.String>? allowedRequestExtensions, $core.Iterable<$core.String>? allowedResponseExtensions, }) { - final _result = create(); + final $result = create(); if (selector != null) { - _result.selector = selector; + $result.selector = selector; } if (requested != null) { - _result.requested.addAll(requested); + $result.requested.addAll(requested); } if (provided != null) { - _result.provided.addAll(provided); + $result.provided.addAll(provided); } if (allowedRequestExtensions != null) { - _result.allowedRequestExtensions.addAll(allowedRequestExtensions); + $result.allowedRequestExtensions.addAll(allowedRequestExtensions); } if (allowedResponseExtensions != null) { - _result.allowedResponseExtensions.addAll(allowedResponseExtensions); + $result.allowedResponseExtensions.addAll(allowedResponseExtensions); } - return _result; + return $result; } + ContextRule._() : super(); factory ContextRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ContextRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ContextRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..pPS(2, _omitFieldNames ? '' : 'requested') + ..pPS(3, _omitFieldNames ? '' : 'provided') + ..pPS(4, _omitFieldNames ? '' : 'allowedRequestExtensions') + ..pPS(5, _omitFieldNames ? '' : 'allowedResponseExtensions') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -142,8 +159,10 @@ class ContextRule extends $pb.GeneratedMessage { 'Will be removed in next major version') ContextRule copyWith(void Function(ContextRule) updates) => super.copyWith((message) => updates(message as ContextRule)) - as ContextRule; // ignore: deprecated_member_use + as ContextRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ContextRule create() => ContextRule._(); ContextRule createEmptyInstance() => create(); @@ -153,6 +172,10 @@ class ContextRule extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ContextRule? _defaultInstance; + /// Selects the methods to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. @$pb.TagNumber(1) $core.String get selector => $_getSZ(0); @$pb.TagNumber(1) @@ -165,15 +188,27 @@ class ContextRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSelector() => clearField(1); + /// A list of full type names of requested contexts, only the requested context + /// will be made available to the backend. @$pb.TagNumber(2) $core.List<$core.String> get requested => $_getList(1); + /// A list of full type names of provided contexts. It is used to support + /// propagating HTTP headers and ETags from the response extension. @$pb.TagNumber(3) $core.List<$core.String> get provided => $_getList(2); + /// A list of full type names or extension IDs of extensions allowed in grpc + /// side channel from client to backend. @$pb.TagNumber(4) $core.List<$core.String> get allowedRequestExtensions => $_getList(3); + /// A list of full type names or extension IDs of extensions allowed in grpc + /// side channel from backend to client. @$pb.TagNumber(5) $core.List<$core.String> get allowedResponseExtensions => $_getList(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pbenum.dart index 43cd2dcd..2a5778b5 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/context.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pbjson.dart index 0e13208e..934d53f9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/context.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/context.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 contextDescriptor instead') @@ -26,7 +30,9 @@ const Context$json = { /// Descriptor for `Context`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List contextDescriptor = $convert.base64Decode( - 'CgdDb250ZXh0Ei0KBXJ1bGVzGAEgAygLMhcuZ29vZ2xlLmFwaS5Db250ZXh0UnVsZVIFcnVsZXM='); + 'CgdDb250ZXh0Ei0KBXJ1bGVzGAEgAygLMhcuZ29vZ2xlLmFwaS5Db250ZXh0UnVsZVIFcnVsZX' + 'M='); + @$core.Deprecated('Use contextRuleDescriptor instead') const ContextRule$json = { '1': 'ContextRule', @@ -53,4 +59,8 @@ const ContextRule$json = { /// Descriptor for `ContextRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List contextRuleDescriptor = $convert.base64Decode( - 'CgtDb250ZXh0UnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISHAoJcmVxdWVzdGVkGAIgAygJUglyZXF1ZXN0ZWQSGgoIcHJvdmlkZWQYAyADKAlSCHByb3ZpZGVkEjwKGmFsbG93ZWRfcmVxdWVzdF9leHRlbnNpb25zGAQgAygJUhhhbGxvd2VkUmVxdWVzdEV4dGVuc2lvbnMSPgobYWxsb3dlZF9yZXNwb25zZV9leHRlbnNpb25zGAUgAygJUhlhbGxvd2VkUmVzcG9uc2VFeHRlbnNpb25z'); + 'CgtDb250ZXh0UnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISHAoJcmVxdWVzdGVkGA' + 'IgAygJUglyZXF1ZXN0ZWQSGgoIcHJvdmlkZWQYAyADKAlSCHByb3ZpZGVkEjwKGmFsbG93ZWRf' + 'cmVxdWVzdF9leHRlbnNpb25zGAQgAygJUhhhbGxvd2VkUmVxdWVzdEV4dGVuc2lvbnMSPgobYW' + 'xsb3dlZF9yZXNwb25zZV9leHRlbnNpb25zGAUgAygJUhlhbGxvd2VkUmVzcG9uc2VFeHRlbnNp' + 'b25z'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pb.dart index 8f0b18a9..8e9d5f82 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pb.dart @@ -1,47 +1,58 @@ -/// +// // Generated code. Do not modify. // source: google/api/control.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 Control extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Control', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'environment') - ..hasRequiredFields = false; +import 'policy.pb.dart' as $81; - Control._() : super(); +/// Selects and configures the service controller used by the service. +/// +/// Example: +/// +/// control: +/// environment: servicecontrol.googleapis.com +class Control extends $pb.GeneratedMessage { factory Control({ $core.String? environment, + $core.Iterable<$81.MethodPolicy>? methodPolicies, }) { - final _result = create(); + final $result = create(); if (environment != null) { - _result.environment = environment; + $result.environment = environment; } - return _result; + if (methodPolicies != null) { + $result.methodPolicies.addAll(methodPolicies); + } + return $result; } + Control._() : super(); factory Control.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Control.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Control', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'environment') + ..pc<$81.MethodPolicy>( + 4, _omitFieldNames ? '' : 'methodPolicies', $pb.PbFieldType.PM, + subBuilder: $81.MethodPolicy.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') @@ -50,9 +61,10 @@ class Control extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Control copyWith(void Function(Control) updates) => - super.copyWith((message) => updates(message as Control)) - as Control; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Control)) as Control; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Control create() => Control._(); Control createEmptyInstance() => create(); @@ -62,6 +74,9 @@ class Control extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Control? _defaultInstance; + /// The service controller environment to use. If empty, no control plane + /// feature (like quota and billing) will be enabled. The recommended value for + /// most services is servicecontrol.googleapis.com @$pb.TagNumber(1) $core.String get environment => $_getSZ(0); @$pb.TagNumber(1) @@ -73,4 +88,12 @@ class Control extends $pb.GeneratedMessage { $core.bool hasEnvironment() => $_has(0); @$pb.TagNumber(1) void clearEnvironment() => clearField(1); + + /// Defines policies applying to the API methods of the service. + @$pb.TagNumber(4) + $core.List<$81.MethodPolicy> get methodPolicies => $_getList(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pbenum.dart index b342d603..bd04affa 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/control.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pbjson.dart index be659ca5..13a06711 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/control.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/control.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 controlDescriptor instead') @@ -14,9 +18,18 @@ const Control$json = { '1': 'Control', '2': [ {'1': 'environment', '3': 1, '4': 1, '5': 9, '10': 'environment'}, + { + '1': 'method_policies', + '3': 4, + '4': 3, + '5': 11, + '6': '.google.api.MethodPolicy', + '10': 'methodPolicies' + }, ], }; /// Descriptor for `Control`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List controlDescriptor = $convert.base64Decode( - 'CgdDb250cm9sEiAKC2Vudmlyb25tZW50GAEgASgJUgtlbnZpcm9ubWVudA=='); + 'CgdDb250cm9sEiAKC2Vudmlyb25tZW50GAEgASgJUgtlbnZpcm9ubWVudBJBCg9tZXRob2RfcG' + '9saWNpZXMYBCADKAsyGC5nb29nbGUuYXBpLk1ldGhvZFBvbGljeVIObWV0aG9kUG9saWNpZXM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pb.dart index 96eef1c2..bb98c762 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pb.dart @@ -1,62 +1,53 @@ -/// +// // Generated code. Do not modify. // source: google/api/distribution.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../protobuf/timestamp.pb.dart' as $0; -import '../protobuf/any.pb.dart' as $1; +import '../protobuf/any.pb.dart' as $49; +import '../protobuf/timestamp.pb.dart' as $50; +/// The range of the population values. class Distribution_Range extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Distribution.Range', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..a<$core.double>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'min', - $pb.PbFieldType.OD) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'max', - $pb.PbFieldType.OD) - ..hasRequiredFields = false; - - Distribution_Range._() : super(); factory Distribution_Range({ $core.double? min, $core.double? max, }) { - final _result = create(); + final $result = create(); if (min != null) { - _result.min = min; + $result.min = min; } if (max != null) { - _result.max = max; + $result.max = max; } - return _result; + return $result; } + Distribution_Range._() : super(); factory Distribution_Range.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Distribution_Range.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution.Range', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..a<$core.double>(1, _omitFieldNames ? '' : 'min', $pb.PbFieldType.OD) + ..a<$core.double>(2, _omitFieldNames ? '' : 'max', $pb.PbFieldType.OD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -66,8 +57,10 @@ class Distribution_Range extends $pb.GeneratedMessage { 'Will be removed in next major version') Distribution_Range copyWith(void Function(Distribution_Range) updates) => super.copyWith((message) => updates(message as Distribution_Range)) - as Distribution_Range; // ignore: deprecated_member_use + as Distribution_Range; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution_Range create() => Distribution_Range._(); Distribution_Range createEmptyInstance() => create(); @@ -78,6 +71,7 @@ class Distribution_Range extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Distribution_Range? _defaultInstance; + /// The minimum of the population values. @$pb.TagNumber(1) $core.double get min => $_getN(0); @$pb.TagNumber(1) @@ -90,6 +84,7 @@ class Distribution_Range extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMin() => clearField(1); + /// The maximum of the population values. @$pb.TagNumber(2) $core.double get max => $_getN(1); @$pb.TagNumber(2) @@ -103,58 +98,52 @@ class Distribution_Range extends $pb.GeneratedMessage { void clearMax() => clearField(2); } +/// Specifies a linear sequence of buckets that all have the same width +/// (except overflow and underflow). Each bucket represents a constant +/// absolute uncertainty on the specific value in the bucket. +/// +/// There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the +/// following boundaries: +/// +/// Upper bound (0 <= i < N-1): offset + (width * i). +/// +/// Lower bound (1 <= i < N): offset + (width * (i - 1)). class Distribution_BucketOptions_Linear extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Distribution.BucketOptions.Linear', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'numFiniteBuckets', - $pb.PbFieldType.O3) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'width', - $pb.PbFieldType.OD) - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', - $pb.PbFieldType.OD) - ..hasRequiredFields = false; - - Distribution_BucketOptions_Linear._() : super(); factory Distribution_BucketOptions_Linear({ $core.int? numFiniteBuckets, $core.double? width, $core.double? offset, }) { - final _result = create(); + final $result = create(); if (numFiniteBuckets != null) { - _result.numFiniteBuckets = numFiniteBuckets; + $result.numFiniteBuckets = numFiniteBuckets; } if (width != null) { - _result.width = width; + $result.width = width; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } - return _result; + return $result; } + Distribution_BucketOptions_Linear._() : super(); factory Distribution_BucketOptions_Linear.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Distribution_BucketOptions_Linear.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution.BucketOptions.Linear', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..a<$core.int>( + 1, _omitFieldNames ? '' : 'numFiniteBuckets', $pb.PbFieldType.O3) + ..a<$core.double>(2, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OD) + ..a<$core.double>(3, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.OD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -167,8 +156,10 @@ class Distribution_BucketOptions_Linear extends $pb.GeneratedMessage { void Function(Distribution_BucketOptions_Linear) updates) => super.copyWith((message) => updates(message as Distribution_BucketOptions_Linear)) - as Distribution_BucketOptions_Linear; // ignore: deprecated_member_use + as Distribution_BucketOptions_Linear; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution_BucketOptions_Linear create() => Distribution_BucketOptions_Linear._(); @@ -181,6 +172,7 @@ class Distribution_BucketOptions_Linear extends $pb.GeneratedMessage { create); static Distribution_BucketOptions_Linear? _defaultInstance; + /// Must be greater than 0. @$pb.TagNumber(1) $core.int get numFiniteBuckets => $_getIZ(0); @$pb.TagNumber(1) @@ -193,6 +185,7 @@ class Distribution_BucketOptions_Linear extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearNumFiniteBuckets() => clearField(1); + /// Must be greater than 0. @$pb.TagNumber(2) $core.double get width => $_getN(1); @$pb.TagNumber(2) @@ -205,6 +198,7 @@ class Distribution_BucketOptions_Linear extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearWidth() => clearField(2); + /// Lower bound of the first bucket. @$pb.TagNumber(3) $core.double get offset => $_getN(2); @$pb.TagNumber(3) @@ -218,52 +212,35 @@ class Distribution_BucketOptions_Linear extends $pb.GeneratedMessage { void clearOffset() => clearField(3); } +/// Specifies an exponential sequence of buckets that have a width that is +/// proportional to the value of the lower bound. Each bucket represents a +/// constant relative uncertainty on a specific value in the bucket. +/// +/// There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the +/// following boundaries: +/// +/// Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). +/// +/// Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)). class Distribution_BucketOptions_Exponential extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Distribution.BucketOptions.Exponential', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'numFiniteBuckets', - $pb.PbFieldType.O3) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'growthFactor', - $pb.PbFieldType.OD) - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'scale', - $pb.PbFieldType.OD) - ..hasRequiredFields = false; - - Distribution_BucketOptions_Exponential._() : super(); factory Distribution_BucketOptions_Exponential({ $core.int? numFiniteBuckets, $core.double? growthFactor, $core.double? scale, }) { - final _result = create(); + final $result = create(); if (numFiniteBuckets != null) { - _result.numFiniteBuckets = numFiniteBuckets; + $result.numFiniteBuckets = numFiniteBuckets; } if (growthFactor != null) { - _result.growthFactor = growthFactor; + $result.growthFactor = growthFactor; } if (scale != null) { - _result.scale = scale; + $result.scale = scale; } - return _result; + return $result; } + Distribution_BucketOptions_Exponential._() : super(); factory Distribution_BucketOptions_Exponential.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -271,6 +248,18 @@ class Distribution_BucketOptions_Exponential extends $pb.GeneratedMessage { factory Distribution_BucketOptions_Exponential.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution.BucketOptions.Exponential', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..a<$core.int>( + 1, _omitFieldNames ? '' : 'numFiniteBuckets', $pb.PbFieldType.O3) + ..a<$core.double>( + 2, _omitFieldNames ? '' : 'growthFactor', $pb.PbFieldType.OD) + ..a<$core.double>(3, _omitFieldNames ? '' : 'scale', $pb.PbFieldType.OD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -283,8 +272,10 @@ class Distribution_BucketOptions_Exponential extends $pb.GeneratedMessage { void Function(Distribution_BucketOptions_Exponential) updates) => super.copyWith((message) => updates(message as Distribution_BucketOptions_Exponential)) - as Distribution_BucketOptions_Exponential; // ignore: deprecated_member_use + as Distribution_BucketOptions_Exponential; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution_BucketOptions_Exponential create() => Distribution_BucketOptions_Exponential._(); @@ -297,6 +288,7 @@ class Distribution_BucketOptions_Exponential extends $pb.GeneratedMessage { Distribution_BucketOptions_Exponential>(create); static Distribution_BucketOptions_Exponential? _defaultInstance; + /// Must be greater than 0. @$pb.TagNumber(1) $core.int get numFiniteBuckets => $_getIZ(0); @$pb.TagNumber(1) @@ -309,6 +301,7 @@ class Distribution_BucketOptions_Exponential extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearNumFiniteBuckets() => clearField(1); + /// Must be greater than 1. @$pb.TagNumber(2) $core.double get growthFactor => $_getN(1); @$pb.TagNumber(2) @@ -321,6 +314,7 @@ class Distribution_BucketOptions_Exponential extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearGrowthFactor() => clearField(2); + /// Must be greater than 0. @$pb.TagNumber(3) $core.double get scale => $_getN(2); @$pb.TagNumber(3) @@ -334,34 +328,28 @@ class Distribution_BucketOptions_Exponential extends $pb.GeneratedMessage { void clearScale() => clearField(3); } +/// Specifies a set of buckets with arbitrary widths. +/// +/// There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following +/// boundaries: +/// +/// Upper bound (0 <= i < N-1): bounds[i] +/// Lower bound (1 <= i < N); bounds[i - 1] +/// +/// The `bounds` field must contain at least one element. If `bounds` has +/// only one element, then there are no finite buckets, and that single +/// element is the common boundary of the overflow and underflow buckets. class Distribution_BucketOptions_Explicit extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Distribution.BucketOptions.Explicit', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..p<$core.double>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bounds', - $pb.PbFieldType.PD) - ..hasRequiredFields = false; - - Distribution_BucketOptions_Explicit._() : super(); factory Distribution_BucketOptions_Explicit({ $core.Iterable<$core.double>? bounds, }) { - final _result = create(); + final $result = create(); if (bounds != null) { - _result.bounds.addAll(bounds); + $result.bounds.addAll(bounds); } - return _result; + return $result; } + Distribution_BucketOptions_Explicit._() : super(); factory Distribution_BucketOptions_Explicit.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -369,6 +357,14 @@ class Distribution_BucketOptions_Explicit extends $pb.GeneratedMessage { factory Distribution_BucketOptions_Explicit.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution.BucketOptions.Explicit', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..p<$core.double>(1, _omitFieldNames ? '' : 'bounds', $pb.PbFieldType.KD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -381,8 +377,10 @@ class Distribution_BucketOptions_Explicit extends $pb.GeneratedMessage { void Function(Distribution_BucketOptions_Explicit) updates) => super.copyWith((message) => updates(message as Distribution_BucketOptions_Explicit)) - as Distribution_BucketOptions_Explicit; // ignore: deprecated_member_use + as Distribution_BucketOptions_Explicit; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution_BucketOptions_Explicit create() => Distribution_BucketOptions_Explicit._(); @@ -395,6 +393,7 @@ class Distribution_BucketOptions_Explicit extends $pb.GeneratedMessage { Distribution_BucketOptions_Explicit>(create); static Distribution_BucketOptions_Explicit? _defaultInstance; + /// The values must be monotonically increasing. @$pb.TagNumber(1) $core.List<$core.double> get bounds => $_getList(0); } @@ -406,58 +405,70 @@ enum Distribution_BucketOptions_Options { notSet } +/// `BucketOptions` describes the bucket boundaries used to create a histogram +/// for the distribution. The buckets can be in a linear sequence, an +/// exponential sequence, or each bucket can be specified explicitly. +/// `BucketOptions` does not include the number of values in each bucket. +/// +/// A bucket has an inclusive lower bound and exclusive upper bound for the +/// values that are counted for that bucket. The upper bound of a bucket must +/// be strictly greater than the lower bound. The sequence of N buckets for a +/// distribution consists of an underflow bucket (number 0), zero or more +/// finite buckets (number 1 through N - 2) and an overflow bucket (number N - +/// 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the +/// same as the upper bound of bucket i - 1. The buckets span the whole range +/// of finite values: lower bound of the underflow bucket is -infinity and the +/// upper bound of the overflow bucket is +infinity. The finite buckets are +/// so-called because both bounds are finite. class Distribution_BucketOptions extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Distribution_BucketOptions_Options> - _Distribution_BucketOptions_OptionsByTag = { - 1: Distribution_BucketOptions_Options.linearBuckets, - 2: Distribution_BucketOptions_Options.exponentialBuckets, - 3: Distribution_BucketOptions_Options.explicitBuckets, - 0: Distribution_BucketOptions_Options.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Distribution.BucketOptions', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3]) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'linearBuckets', - subBuilder: Distribution_BucketOptions_Linear.create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'exponentialBuckets', - subBuilder: Distribution_BucketOptions_Exponential.create) - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'explicitBuckets', - subBuilder: Distribution_BucketOptions_Explicit.create) - ..hasRequiredFields = false; - - Distribution_BucketOptions._() : super(); factory Distribution_BucketOptions({ Distribution_BucketOptions_Linear? linearBuckets, Distribution_BucketOptions_Exponential? exponentialBuckets, Distribution_BucketOptions_Explicit? explicitBuckets, }) { - final _result = create(); + final $result = create(); if (linearBuckets != null) { - _result.linearBuckets = linearBuckets; + $result.linearBuckets = linearBuckets; } if (exponentialBuckets != null) { - _result.exponentialBuckets = exponentialBuckets; + $result.exponentialBuckets = exponentialBuckets; } if (explicitBuckets != null) { - _result.explicitBuckets = explicitBuckets; + $result.explicitBuckets = explicitBuckets; } - return _result; + return $result; } + Distribution_BucketOptions._() : super(); factory Distribution_BucketOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Distribution_BucketOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Distribution_BucketOptions_Options> + _Distribution_BucketOptions_OptionsByTag = { + 1: Distribution_BucketOptions_Options.linearBuckets, + 2: Distribution_BucketOptions_Options.exponentialBuckets, + 3: Distribution_BucketOptions_Options.explicitBuckets, + 0: Distribution_BucketOptions_Options.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution.BucketOptions', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3]) + ..aOM( + 1, _omitFieldNames ? '' : 'linearBuckets', + subBuilder: Distribution_BucketOptions_Linear.create) + ..aOM( + 2, _omitFieldNames ? '' : 'exponentialBuckets', + subBuilder: Distribution_BucketOptions_Exponential.create) + ..aOM( + 3, _omitFieldNames ? '' : 'explicitBuckets', + subBuilder: Distribution_BucketOptions_Explicit.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') @@ -470,8 +481,10 @@ class Distribution_BucketOptions extends $pb.GeneratedMessage { void Function(Distribution_BucketOptions) updates) => super.copyWith( (message) => updates(message as Distribution_BucketOptions)) - as Distribution_BucketOptions; // ignore: deprecated_member_use + as Distribution_BucketOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution_BucketOptions create() => Distribution_BucketOptions._(); Distribution_BucketOptions createEmptyInstance() => create(); @@ -486,6 +499,7 @@ class Distribution_BucketOptions extends $pb.GeneratedMessage { _Distribution_BucketOptions_OptionsByTag[$_whichOneof(0)]!; void clearOptions() => clearField($_whichOneof(0)); + /// The linear bucket. @$pb.TagNumber(1) Distribution_BucketOptions_Linear get linearBuckets => $_getN(0); @$pb.TagNumber(1) @@ -500,6 +514,7 @@ class Distribution_BucketOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) Distribution_BucketOptions_Linear ensureLinearBuckets() => $_ensure(0); + /// The exponential buckets. @$pb.TagNumber(2) Distribution_BucketOptions_Exponential get exponentialBuckets => $_getN(1); @$pb.TagNumber(2) @@ -515,6 +530,7 @@ class Distribution_BucketOptions extends $pb.GeneratedMessage { Distribution_BucketOptions_Exponential ensureExponentialBuckets() => $_ensure(1); + /// The explicit buckets. @$pb.TagNumber(3) Distribution_BucketOptions_Explicit get explicitBuckets => $_getN(2); @$pb.TagNumber(3) @@ -530,55 +546,48 @@ class Distribution_BucketOptions extends $pb.GeneratedMessage { Distribution_BucketOptions_Explicit ensureExplicitBuckets() => $_ensure(2); } +/// Exemplars are example points that may be used to annotate aggregated +/// distribution values. They are metadata that gives information about a +/// particular value added to a Distribution bucket, such as a trace ID that +/// was active when a value was added. They may contain further information, +/// such as a example values and timestamps, origin, etc. class Distribution_Exemplar extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Distribution.Exemplar', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..a<$core.double>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value', - $pb.PbFieldType.OD) - ..aOM<$0.Timestamp>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timestamp', - subBuilder: $0.Timestamp.create) - ..pc<$1.Any>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'attachments', - $pb.PbFieldType.PM, - subBuilder: $1.Any.create) - ..hasRequiredFields = false; - - Distribution_Exemplar._() : super(); factory Distribution_Exemplar({ $core.double? value, - $0.Timestamp? timestamp, - $core.Iterable<$1.Any>? attachments, + $50.Timestamp? timestamp, + $core.Iterable<$49.Any>? attachments, }) { - final _result = create(); + final $result = create(); if (value != null) { - _result.value = value; + $result.value = value; } if (timestamp != null) { - _result.timestamp = timestamp; + $result.timestamp = timestamp; } if (attachments != null) { - _result.attachments.addAll(attachments); + $result.attachments.addAll(attachments); } - return _result; + return $result; } + Distribution_Exemplar._() : super(); factory Distribution_Exemplar.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Distribution_Exemplar.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution.Exemplar', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..a<$core.double>(1, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OD) + ..aOM<$50.Timestamp>(2, _omitFieldNames ? '' : 'timestamp', + subBuilder: $50.Timestamp.create) + ..pc<$49.Any>(3, _omitFieldNames ? '' : 'attachments', $pb.PbFieldType.PM, + subBuilder: $49.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') @@ -590,8 +599,10 @@ class Distribution_Exemplar extends $pb.GeneratedMessage { Distribution_Exemplar copyWith( void Function(Distribution_Exemplar) updates) => super.copyWith((message) => updates(message as Distribution_Exemplar)) - as Distribution_Exemplar; // ignore: deprecated_member_use + as Distribution_Exemplar; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution_Exemplar create() => Distribution_Exemplar._(); Distribution_Exemplar createEmptyInstance() => create(); @@ -602,6 +613,8 @@ class Distribution_Exemplar extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Distribution_Exemplar? _defaultInstance; + /// Value of the exemplar point. This value determines to which bucket the + /// exemplar belongs. @$pb.TagNumber(1) $core.double get value => $_getN(0); @$pb.TagNumber(1) @@ -614,10 +627,11 @@ class Distribution_Exemplar extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearValue() => clearField(1); + /// The observation (sampling) time of the above value. @$pb.TagNumber(2) - $0.Timestamp get timestamp => $_getN(1); + $50.Timestamp get timestamp => $_getN(1); @$pb.TagNumber(2) - set timestamp($0.Timestamp v) { + set timestamp($50.Timestamp v) { setField(2, v); } @@ -626,45 +640,38 @@ class Distribution_Exemplar extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearTimestamp() => clearField(2); @$pb.TagNumber(2) - $0.Timestamp ensureTimestamp() => $_ensure(1); - + $50.Timestamp ensureTimestamp() => $_ensure(1); + + /// Contextual information about the example value. Examples are: + /// + /// Trace: type.googleapis.com/google.monitoring.v3.SpanContext + /// + /// Literal string: type.googleapis.com/google.protobuf.StringValue + /// + /// Labels dropped during aggregation: + /// type.googleapis.com/google.monitoring.v3.DroppedLabels + /// + /// There may be only a single attachment of any given message type in a + /// single exemplar, and this is enforced by the system. @$pb.TagNumber(3) - $core.List<$1.Any> get attachments => $_getList(2); + $core.List<$49.Any> get attachments => $_getList(2); } +/// `Distribution` contains summary statistics for a population of values. It +/// optionally contains a histogram representing the distribution of those values +/// across a set of buckets. +/// +/// The summary statistics are the count, mean, sum of the squared deviation from +/// the mean, the minimum, and the maximum of the set of population of values. +/// The histogram is based on a sequence of buckets and gives a count of values +/// that fall into each bucket. The boundaries of the buckets are given either +/// explicitly or by formulas for buckets of fixed or exponentially increasing +/// widths. +/// +/// Although it is not forbidden, it is generally a bad idea to include +/// non-finite values (infinities or NaNs) in the population of values, as this +/// will render the `mean` and `sum_of_squared_deviation` fields meaningless. class Distribution extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Distribution', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'count') - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mean', - $pb.PbFieldType.OD) - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sumOfSquaredDeviation', - $pb.PbFieldType.OD) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'range', - subBuilder: Distribution_Range.create) - ..aOM( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bucketOptions', - subBuilder: Distribution_BucketOptions.create) - ..p<$fixnum.Int64>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bucketCounts', $pb.PbFieldType.P6) - ..pc(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'exemplars', $pb.PbFieldType.PM, subBuilder: Distribution_Exemplar.create) - ..hasRequiredFields = false; - - Distribution._() : super(); factory Distribution({ $fixnum.Int64? count, $core.double? mean, @@ -674,36 +681,57 @@ class Distribution extends $pb.GeneratedMessage { $core.Iterable<$fixnum.Int64>? bucketCounts, $core.Iterable? exemplars, }) { - final _result = create(); + final $result = create(); if (count != null) { - _result.count = count; + $result.count = count; } if (mean != null) { - _result.mean = mean; + $result.mean = mean; } if (sumOfSquaredDeviation != null) { - _result.sumOfSquaredDeviation = sumOfSquaredDeviation; + $result.sumOfSquaredDeviation = sumOfSquaredDeviation; } if (range != null) { - _result.range = range; + $result.range = range; } if (bucketOptions != null) { - _result.bucketOptions = bucketOptions; + $result.bucketOptions = bucketOptions; } if (bucketCounts != null) { - _result.bucketCounts.addAll(bucketCounts); + $result.bucketCounts.addAll(bucketCounts); } if (exemplars != null) { - _result.exemplars.addAll(exemplars); + $result.exemplars.addAll(exemplars); } - return _result; + return $result; } + Distribution._() : super(); factory Distribution.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Distribution.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'count') + ..a<$core.double>(2, _omitFieldNames ? '' : 'mean', $pb.PbFieldType.OD) + ..a<$core.double>( + 3, _omitFieldNames ? '' : 'sumOfSquaredDeviation', $pb.PbFieldType.OD) + ..aOM(4, _omitFieldNames ? '' : 'range', + subBuilder: Distribution_Range.create) + ..aOM(6, _omitFieldNames ? '' : 'bucketOptions', + subBuilder: Distribution_BucketOptions.create) + ..p<$fixnum.Int64>( + 7, _omitFieldNames ? '' : 'bucketCounts', $pb.PbFieldType.K6) + ..pc( + 10, _omitFieldNames ? '' : 'exemplars', $pb.PbFieldType.PM, + subBuilder: Distribution_Exemplar.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') @@ -713,8 +741,10 @@ class Distribution extends $pb.GeneratedMessage { 'Will be removed in next major version') Distribution copyWith(void Function(Distribution) updates) => super.copyWith((message) => updates(message as Distribution)) - as Distribution; // ignore: deprecated_member_use + as Distribution; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution create() => Distribution._(); Distribution createEmptyInstance() => create(); @@ -725,6 +755,9 @@ class Distribution extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Distribution? _defaultInstance; + /// The number of values in the population. Must be non-negative. This value + /// must equal the sum of the values in `bucket_counts` if a histogram is + /// provided. @$pb.TagNumber(1) $fixnum.Int64 get count => $_getI64(0); @$pb.TagNumber(1) @@ -737,6 +770,8 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCount() => clearField(1); + /// The arithmetic mean of the values in the population. If `count` is zero + /// then this field must be zero. @$pb.TagNumber(2) $core.double get mean => $_getN(1); @$pb.TagNumber(2) @@ -749,6 +784,15 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearMean() => clearField(2); + /// The sum of squared deviations from the mean of the values in the + /// population. For values x_i this is: + /// + /// Sum[i=1..n]((x_i - mean)^2) + /// + /// Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition + /// describes Welford's method for accumulating this sum in one pass. + /// + /// If `count` is zero then this field must be zero. @$pb.TagNumber(3) $core.double get sumOfSquaredDeviation => $_getN(2); @$pb.TagNumber(3) @@ -761,6 +805,8 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSumOfSquaredDeviation() => clearField(3); + /// If specified, contains the range of the population values. The field + /// must not be present if the `count` is zero. @$pb.TagNumber(4) Distribution_Range get range => $_getN(3); @$pb.TagNumber(4) @@ -775,6 +821,8 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(4) Distribution_Range ensureRange() => $_ensure(3); + /// Defines the histogram bucket boundaries. If the distribution does not + /// contain a histogram, then omit this field. @$pb.TagNumber(6) Distribution_BucketOptions get bucketOptions => $_getN(4); @$pb.TagNumber(6) @@ -789,9 +837,29 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(6) Distribution_BucketOptions ensureBucketOptions() => $_ensure(4); + /// The number of values in each bucket of the histogram, as described in + /// `bucket_options`. If the distribution does not have a histogram, then omit + /// this field. If there is a histogram, then the sum of the values in + /// `bucket_counts` must equal the value in the `count` field of the + /// distribution. + /// + /// If present, `bucket_counts` should contain N values, where N is the number + /// of buckets specified in `bucket_options`. If you supply fewer than N + /// values, the remaining values are assumed to be 0. + /// + /// The order of the values in `bucket_counts` follows the bucket numbering + /// schemes described for the three bucket types. The first value must be the + /// count for the underflow bucket (number 0). The next N-2 values are the + /// counts for the finite buckets (number 1 through N-2). The N'th value in + /// `bucket_counts` is the count for the overflow bucket (number N-1). @$pb.TagNumber(7) $core.List<$fixnum.Int64> get bucketCounts => $_getList(5); + /// Must be in increasing order of `value` field. @$pb.TagNumber(10) $core.List get exemplars => $_getList(6); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pbenum.dart index 331b338a..baa84d98 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/distribution.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pbjson.dart index c0b5882c..de298a6d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/distribution.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/distribution.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 distributionDescriptor instead') @@ -172,4 +176,24 @@ const Distribution_Exemplar$json = { /// Descriptor for `Distribution`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List distributionDescriptor = $convert.base64Decode( - 'CgxEaXN0cmlidXRpb24SFAoFY291bnQYASABKANSBWNvdW50EhIKBG1lYW4YAiABKAFSBG1lYW4SNwoYc3VtX29mX3NxdWFyZWRfZGV2aWF0aW9uGAMgASgBUhVzdW1PZlNxdWFyZWREZXZpYXRpb24SNAoFcmFuZ2UYBCABKAsyHi5nb29nbGUuYXBpLkRpc3RyaWJ1dGlvbi5SYW5nZVIFcmFuZ2USTQoOYnVja2V0X29wdGlvbnMYBiABKAsyJi5nb29nbGUuYXBpLkRpc3RyaWJ1dGlvbi5CdWNrZXRPcHRpb25zUg1idWNrZXRPcHRpb25zEiMKDWJ1Y2tldF9jb3VudHMYByADKANSDGJ1Y2tldENvdW50cxI/CglleGVtcGxhcnMYCiADKAsyIS5nb29nbGUuYXBpLkRpc3RyaWJ1dGlvbi5FeGVtcGxhclIJZXhlbXBsYXJzGisKBVJhbmdlEhAKA21pbhgBIAEoAVIDbWluEhAKA21heBgCIAEoAVIDbWF4GrkECg1CdWNrZXRPcHRpb25zElYKDmxpbmVhcl9idWNrZXRzGAEgASgLMi0uZ29vZ2xlLmFwaS5EaXN0cmlidXRpb24uQnVja2V0T3B0aW9ucy5MaW5lYXJIAFINbGluZWFyQnVja2V0cxJlChNleHBvbmVudGlhbF9idWNrZXRzGAIgASgLMjIuZ29vZ2xlLmFwaS5EaXN0cmlidXRpb24uQnVja2V0T3B0aW9ucy5FeHBvbmVudGlhbEgAUhJleHBvbmVudGlhbEJ1Y2tldHMSXAoQZXhwbGljaXRfYnVja2V0cxgDIAEoCzIvLmdvb2dsZS5hcGkuRGlzdHJpYnV0aW9uLkJ1Y2tldE9wdGlvbnMuRXhwbGljaXRIAFIPZXhwbGljaXRCdWNrZXRzGmQKBkxpbmVhchIsChJudW1fZmluaXRlX2J1Y2tldHMYASABKAVSEG51bUZpbml0ZUJ1Y2tldHMSFAoFd2lkdGgYAiABKAFSBXdpZHRoEhYKBm9mZnNldBgDIAEoAVIGb2Zmc2V0GnYKC0V4cG9uZW50aWFsEiwKEm51bV9maW5pdGVfYnVja2V0cxgBIAEoBVIQbnVtRmluaXRlQnVja2V0cxIjCg1ncm93dGhfZmFjdG9yGAIgASgBUgxncm93dGhGYWN0b3ISFAoFc2NhbGUYAyABKAFSBXNjYWxlGiIKCEV4cGxpY2l0EhYKBmJvdW5kcxgBIAMoAVIGYm91bmRzQgkKB29wdGlvbnMakgEKCEV4ZW1wbGFyEhQKBXZhbHVlGAEgASgBUgV2YWx1ZRI4Cgl0aW1lc3RhbXAYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgl0aW1lc3RhbXASNgoLYXR0YWNobWVudHMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55UgthdHRhY2htZW50cw=='); + 'CgxEaXN0cmlidXRpb24SFAoFY291bnQYASABKANSBWNvdW50EhIKBG1lYW4YAiABKAFSBG1lYW' + '4SNwoYc3VtX29mX3NxdWFyZWRfZGV2aWF0aW9uGAMgASgBUhVzdW1PZlNxdWFyZWREZXZpYXRp' + 'b24SNAoFcmFuZ2UYBCABKAsyHi5nb29nbGUuYXBpLkRpc3RyaWJ1dGlvbi5SYW5nZVIFcmFuZ2' + 'USTQoOYnVja2V0X29wdGlvbnMYBiABKAsyJi5nb29nbGUuYXBpLkRpc3RyaWJ1dGlvbi5CdWNr' + 'ZXRPcHRpb25zUg1idWNrZXRPcHRpb25zEiMKDWJ1Y2tldF9jb3VudHMYByADKANSDGJ1Y2tldE' + 'NvdW50cxI/CglleGVtcGxhcnMYCiADKAsyIS5nb29nbGUuYXBpLkRpc3RyaWJ1dGlvbi5FeGVt' + 'cGxhclIJZXhlbXBsYXJzGisKBVJhbmdlEhAKA21pbhgBIAEoAVIDbWluEhAKA21heBgCIAEoAV' + 'IDbWF4GrkECg1CdWNrZXRPcHRpb25zElYKDmxpbmVhcl9idWNrZXRzGAEgASgLMi0uZ29vZ2xl' + 'LmFwaS5EaXN0cmlidXRpb24uQnVja2V0T3B0aW9ucy5MaW5lYXJIAFINbGluZWFyQnVja2V0cx' + 'JlChNleHBvbmVudGlhbF9idWNrZXRzGAIgASgLMjIuZ29vZ2xlLmFwaS5EaXN0cmlidXRpb24u' + 'QnVja2V0T3B0aW9ucy5FeHBvbmVudGlhbEgAUhJleHBvbmVudGlhbEJ1Y2tldHMSXAoQZXhwbG' + 'ljaXRfYnVja2V0cxgDIAEoCzIvLmdvb2dsZS5hcGkuRGlzdHJpYnV0aW9uLkJ1Y2tldE9wdGlv' + 'bnMuRXhwbGljaXRIAFIPZXhwbGljaXRCdWNrZXRzGmQKBkxpbmVhchIsChJudW1fZmluaXRlX2' + 'J1Y2tldHMYASABKAVSEG51bUZpbml0ZUJ1Y2tldHMSFAoFd2lkdGgYAiABKAFSBXdpZHRoEhYK' + 'Bm9mZnNldBgDIAEoAVIGb2Zmc2V0GnYKC0V4cG9uZW50aWFsEiwKEm51bV9maW5pdGVfYnVja2' + 'V0cxgBIAEoBVIQbnVtRmluaXRlQnVja2V0cxIjCg1ncm93dGhfZmFjdG9yGAIgASgBUgxncm93' + 'dGhGYWN0b3ISFAoFc2NhbGUYAyABKAFSBXNjYWxlGiIKCEV4cGxpY2l0EhYKBmJvdW5kcxgBIA' + 'MoAVIGYm91bmRzQgkKB29wdGlvbnMakgEKCEV4ZW1wbGFyEhQKBXZhbHVlGAEgASgBUgV2YWx1' + 'ZRI4Cgl0aW1lc3RhbXAYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgl0aW1lc3' + 'RhbXASNgoLYXR0YWNobWVudHMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55UgthdHRhY2ht' + 'ZW50cw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pb.dart index 99c4af97..d00dde59 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pb.dart @@ -1,47 +1,74 @@ -/// +// // Generated code. Do not modify. // source: google/api/documentation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// `Documentation` provides the information for describing a service. +/// +/// Example: +///
documentation:
+///    summary: >
+///      The Google Calendar API gives access
+///      to most calendar features.
+///    pages:
+///    - name: Overview
+///      content: (== include google/foo/overview.md ==)
+///    - name: Tutorial
+///      content: (== include google/foo/tutorial.md ==)
+///      subpages:
+///      - name: Java
+///        content: (== include google/foo/tutorial_java.md ==)
+///    rules:
+///    - selector: google.calendar.Calendar.Get
+///      description: >
+///        ...
+///    - selector: google.calendar.Calendar.Put
+///      description: >
+///        ...
+///  
+/// Documentation is provided in markdown syntax. In addition to +/// standard markdown features, definition lists, tables and fenced +/// code blocks are supported. Section headers can be provided and are +/// interpreted relative to the section nesting of the context where +/// a documentation fragment is embedded. +/// +/// Documentation from the IDL is merged with documentation defined +/// via the config at normalization time, where documentation provided +/// by config rules overrides IDL provided. +/// +/// A number of constructs specific to the API platform are supported +/// in documentation text. +/// +/// In order to reference a proto element, the following +/// notation can be used: +///
[fully.qualified.proto.name][]
+/// To override the display text used for the link, this can be used: +///
[display text][fully.qualified.proto.name]
+/// Text can be excluded from doc using the following notation: +///
(-- internal comment --)
+/// +/// A few directives are available in documentation. Note that +/// directives must appear on a single line to be properly +/// identified. The `include` directive includes a markdown file from +/// an external source: +///
(== include path/to/file ==)
+/// The `resource_for` directive marks a message to be the resource of +/// a collection in REST view. If it is not specified, tools attempt +/// to infer the resource from the operations in a collection: +///
(== resource_for v1.shelves.books ==)
+/// The directive `suppress_warning` does not directly affect documentation +/// and is documented together with service config validation. class Documentation extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Documentation', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'summary') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overview') - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rules', - $pb.PbFieldType.PM, - subBuilder: DocumentationRule.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'documentationRootUrl') - ..pc(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pages', $pb.PbFieldType.PM, subBuilder: Page.create) - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceRootUrl') - ..hasRequiredFields = false; - - Documentation._() : super(); factory Documentation({ $core.String? summary, $core.String? overview, @@ -50,33 +77,50 @@ class Documentation extends $pb.GeneratedMessage { $core.Iterable? pages, $core.String? serviceRootUrl, }) { - final _result = create(); + final $result = create(); if (summary != null) { - _result.summary = summary; + $result.summary = summary; } if (overview != null) { - _result.overview = overview; + $result.overview = overview; } if (rules != null) { - _result.rules.addAll(rules); + $result.rules.addAll(rules); } if (documentationRootUrl != null) { - _result.documentationRootUrl = documentationRootUrl; + $result.documentationRootUrl = documentationRootUrl; } if (pages != null) { - _result.pages.addAll(pages); + $result.pages.addAll(pages); } if (serviceRootUrl != null) { - _result.serviceRootUrl = serviceRootUrl; + $result.serviceRootUrl = serviceRootUrl; } - return _result; + return $result; } + Documentation._() : super(); factory Documentation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Documentation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Documentation', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'summary') + ..aOS(2, _omitFieldNames ? '' : 'overview') + ..pc( + 3, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: DocumentationRule.create) + ..aOS(4, _omitFieldNames ? '' : 'documentationRootUrl') + ..pc(5, _omitFieldNames ? '' : 'pages', $pb.PbFieldType.PM, + subBuilder: Page.create) + ..aOS(6, _omitFieldNames ? '' : 'serviceRootUrl') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -86,8 +130,10 @@ class Documentation extends $pb.GeneratedMessage { 'Will be removed in next major version') Documentation copyWith(void Function(Documentation) updates) => super.copyWith((message) => updates(message as Documentation)) - as Documentation; // ignore: deprecated_member_use + as Documentation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Documentation create() => Documentation._(); Documentation createEmptyInstance() => create(); @@ -98,6 +144,10 @@ class Documentation extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Documentation? _defaultInstance; + /// A short description of what the service does. The summary must be plain + /// text. It becomes the overview of the service displayed in Google Cloud + /// Console. + /// NOTE: This field is equivalent to the standard field `description`. @$pb.TagNumber(1) $core.String get summary => $_getSZ(0); @$pb.TagNumber(1) @@ -110,6 +160,19 @@ class Documentation extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSummary() => clearField(1); + /// Declares a single overview page. For example: + ///
documentation:
+  ///   summary: ...
+  ///   overview: (== include overview.md ==)
+  /// 
+ /// This is a shortcut for the following declaration (using pages style): + ///
documentation:
+  ///   summary: ...
+  ///   pages:
+  ///   - name: Overview
+  ///     content: (== include overview.md ==)
+  /// 
+ /// Note: you cannot specify both `overview` field and `pages` field. @$pb.TagNumber(2) $core.String get overview => $_getSZ(1); @$pb.TagNumber(2) @@ -122,9 +185,13 @@ class Documentation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOverview() => clearField(2); + /// A list of documentation rules that apply to individual API elements. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. @$pb.TagNumber(3) $core.List get rules => $_getList(2); + /// The URL to the root of documentation. @$pb.TagNumber(4) $core.String get documentationRootUrl => $_getSZ(3); @$pb.TagNumber(4) @@ -137,9 +204,14 @@ class Documentation extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearDocumentationRootUrl() => clearField(4); + /// The top level pages for the documentation set. @$pb.TagNumber(5) $core.List get pages => $_getList(4); + /// Specifies the service root url if the default one (the service name + /// from the yaml file) is not suitable. This can be seen in any fully + /// specified service urls as well as sections that show a base that other + /// urls are relative to. @$pb.TagNumber(6) $core.String get serviceRootUrl => $_getSZ(5); @$pb.TagNumber(6) @@ -153,57 +225,42 @@ class Documentation extends $pb.GeneratedMessage { void clearServiceRootUrl() => clearField(6); } +/// A documentation rule provides information about individual API elements. class DocumentationRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DocumentationRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'selector') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'deprecationDescription') - ..hasRequiredFields = false; - - DocumentationRule._() : super(); factory DocumentationRule({ $core.String? selector, $core.String? description, $core.String? deprecationDescription, }) { - final _result = create(); + final $result = create(); if (selector != null) { - _result.selector = selector; + $result.selector = selector; } if (description != null) { - _result.description = description; + $result.description = description; } if (deprecationDescription != null) { - _result.deprecationDescription = deprecationDescription; + $result.deprecationDescription = deprecationDescription; } - return _result; + return $result; } + DocumentationRule._() : super(); factory DocumentationRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DocumentationRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DocumentationRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..aOS(2, _omitFieldNames ? '' : 'description') + ..aOS(3, _omitFieldNames ? '' : 'deprecationDescription') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -213,8 +270,10 @@ class DocumentationRule extends $pb.GeneratedMessage { 'Will be removed in next major version') DocumentationRule copyWith(void Function(DocumentationRule) updates) => super.copyWith((message) => updates(message as DocumentationRule)) - as DocumentationRule; // ignore: deprecated_member_use + as DocumentationRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DocumentationRule create() => DocumentationRule._(); DocumentationRule createEmptyInstance() => create(); @@ -225,6 +284,13 @@ class DocumentationRule extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DocumentationRule? _defaultInstance; + /// The selector is a comma-separated list of patterns for any element such as + /// a method, a field, an enum value. Each pattern is a qualified name of the + /// element which may end in "*", indicating a wildcard. Wildcards are only + /// allowed at the end and for a whole component of the qualified name, + /// i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match + /// one or more components. To specify a default for all applicable elements, + /// the whole pattern "*" is used. @$pb.TagNumber(1) $core.String get selector => $_getSZ(0); @$pb.TagNumber(1) @@ -237,6 +303,9 @@ class DocumentationRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSelector() => clearField(1); + /// Description of the selected proto element (e.g. a message, a method, a + /// 'service' definition, or a field). Defaults to leading & trailing comments + /// taken from the proto source definition of the proto element. @$pb.TagNumber(2) $core.String get description => $_getSZ(1); @$pb.TagNumber(2) @@ -249,6 +318,8 @@ class DocumentationRule extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDescription() => clearField(2); + /// Deprecation description of the selected element(s). It can be provided if + /// an element is marked as `deprecated`. @$pb.TagNumber(3) $core.String get deprecationDescription => $_getSZ(2); @$pb.TagNumber(3) @@ -262,59 +333,44 @@ class DocumentationRule extends $pb.GeneratedMessage { void clearDeprecationDescription() => clearField(3); } +/// Represents a documentation page. A page can contain subpages to represent +/// nested documentation set structure. class Page extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Page', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'content') - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subpages', - $pb.PbFieldType.PM, - subBuilder: Page.create) - ..hasRequiredFields = false; - - Page._() : super(); factory Page({ $core.String? name, $core.String? content, $core.Iterable? subpages, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (content != null) { - _result.content = content; + $result.content = content; } if (subpages != null) { - _result.subpages.addAll(subpages); + $result.subpages.addAll(subpages); } - return _result; + return $result; } + Page._() : super(); factory Page.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Page.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Page', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'content') + ..pc(3, _omitFieldNames ? '' : 'subpages', $pb.PbFieldType.PM, + subBuilder: Page.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') @@ -323,9 +379,10 @@ class Page extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Page copyWith(void Function(Page) updates) => - super.copyWith((message) => updates(message as Page)) - as Page; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Page)) as Page; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Page create() => Page._(); Page createEmptyInstance() => create(); @@ -335,6 +392,20 @@ class Page extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Page? _defaultInstance; + /// The name of the page. It will be used as an identity of the page to + /// generate URI of the page, text of the link to this page in navigation, + /// etc. The full page name (start from the root page name to this page + /// concatenated with `.`) can be used as reference to the page in your + /// documentation. For example: + ///
pages:
+  /// - name: Tutorial
+  ///   content: (== include tutorial.md ==)
+  ///   subpages:
+  ///   - name: Java
+  ///     content: (== include tutorial_java.md ==)
+  /// 
+ /// You can reference `Java` page using Markdown reference link syntax: + /// `[Java][Tutorial.Java]`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -347,6 +418,9 @@ class Page extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The Markdown content of the page. You can use (== include {path} + /// ==) to include content from a Markdown file. The content can be + /// used to produce the documentation page such as HTML format page. @$pb.TagNumber(2) $core.String get content => $_getSZ(1); @$pb.TagNumber(2) @@ -359,6 +433,12 @@ class Page extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearContent() => clearField(2); + /// Subpages of this page. The order of subpages specified here will be + /// honored in the generated docset. @$pb.TagNumber(3) $core.List get subpages => $_getList(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pbenum.dart index fe580691..7d7a2627 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/documentation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pbjson.dart index 67597d71..ae6f7f88 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/documentation.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/documentation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 documentationDescriptor instead') @@ -44,7 +48,12 @@ const Documentation$json = { /// Descriptor for `Documentation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List documentationDescriptor = $convert.base64Decode( - 'Cg1Eb2N1bWVudGF0aW9uEhgKB3N1bW1hcnkYASABKAlSB3N1bW1hcnkSJgoFcGFnZXMYBSADKAsyEC5nb29nbGUuYXBpLlBhZ2VSBXBhZ2VzEjMKBXJ1bGVzGAMgAygLMh0uZ29vZ2xlLmFwaS5Eb2N1bWVudGF0aW9uUnVsZVIFcnVsZXMSNAoWZG9jdW1lbnRhdGlvbl9yb290X3VybBgEIAEoCVIUZG9jdW1lbnRhdGlvblJvb3RVcmwSKAoQc2VydmljZV9yb290X3VybBgGIAEoCVIOc2VydmljZVJvb3RVcmwSGgoIb3ZlcnZpZXcYAiABKAlSCG92ZXJ2aWV3'); + 'Cg1Eb2N1bWVudGF0aW9uEhgKB3N1bW1hcnkYASABKAlSB3N1bW1hcnkSJgoFcGFnZXMYBSADKA' + 'syEC5nb29nbGUuYXBpLlBhZ2VSBXBhZ2VzEjMKBXJ1bGVzGAMgAygLMh0uZ29vZ2xlLmFwaS5E' + 'b2N1bWVudGF0aW9uUnVsZVIFcnVsZXMSNAoWZG9jdW1lbnRhdGlvbl9yb290X3VybBgEIAEoCV' + 'IUZG9jdW1lbnRhdGlvblJvb3RVcmwSKAoQc2VydmljZV9yb290X3VybBgGIAEoCVIOc2Vydmlj' + 'ZVJvb3RVcmwSGgoIb3ZlcnZpZXcYAiABKAlSCG92ZXJ2aWV3'); + @$core.Deprecated('Use documentationRuleDescriptor instead') const DocumentationRule$json = { '1': 'DocumentationRule', @@ -63,7 +72,10 @@ const DocumentationRule$json = { /// Descriptor for `DocumentationRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List documentationRuleDescriptor = $convert.base64Decode( - 'ChFEb2N1bWVudGF0aW9uUnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISIAoLZGVzY3JpcHRpb24YAiABKAlSC2Rlc2NyaXB0aW9uEjcKF2RlcHJlY2F0aW9uX2Rlc2NyaXB0aW9uGAMgASgJUhZkZXByZWNhdGlvbkRlc2NyaXB0aW9u'); + 'ChFEb2N1bWVudGF0aW9uUnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISIAoLZGVzY3' + 'JpcHRpb24YAiABKAlSC2Rlc2NyaXB0aW9uEjcKF2RlcHJlY2F0aW9uX2Rlc2NyaXB0aW9uGAMg' + 'ASgJUhZkZXByZWNhdGlvbkRlc2NyaXB0aW9u'); + @$core.Deprecated('Use pageDescriptor instead') const Page$json = { '1': 'Page', @@ -83,4 +95,5 @@ const Page$json = { /// Descriptor for `Page`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List pageDescriptor = $convert.base64Decode( - 'CgRQYWdlEhIKBG5hbWUYASABKAlSBG5hbWUSGAoHY29udGVudBgCIAEoCVIHY29udGVudBIsCghzdWJwYWdlcxgDIAMoCzIQLmdvb2dsZS5hcGkuUGFnZVIIc3VicGFnZXM='); + 'CgRQYWdlEhIKBG5hbWUYASABKAlSBG5hbWUSGAoHY29udGVudBgCIAEoCVIHY29udGVudBIsCg' + 'hzdWJwYWdlcxgDIAMoCzIQLmdvb2dsZS5hcGkuUGFnZVIIc3VicGFnZXM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pb.dart index 845bac6c..bee1aefa 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pb.dart @@ -1,76 +1,79 @@ -/// +// // Generated code. Do not modify. // source: google/api/endpoint.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// `Endpoint` describes a network address of a service that serves a set of +/// APIs. It is commonly known as a service endpoint. A service may expose +/// any number of service endpoints, and all service endpoints share the same +/// service definition, such as quota limits and monitoring metrics. +/// +/// Example: +/// +/// type: google.api.Service +/// name: library-example.googleapis.com +/// endpoints: +/// # Declares network address `https://library-example.googleapis.com` +/// # for service `library-example.googleapis.com`. The `https` scheme +/// # is implicit for all service endpoints. Other schemes may be +/// # supported in the future. +/// - name: library-example.googleapis.com +/// allow_cors: false +/// - name: content-staging-library-example.googleapis.com +/// # Allows HTTP OPTIONS calls to be passed to the API frontend, for it +/// # to decide whether the subsequent cross-origin request is allowed +/// # to proceed. +/// allow_cors: true class Endpoint extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Endpoint', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'aliases') - ..aOB( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allowCors') - ..aOS( - 101, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'target') - ..hasRequiredFields = false; - - Endpoint._() : super(); factory Endpoint({ $core.String? name, - @$core.Deprecated('This field is deprecated.') - $core.Iterable<$core.String>? aliases, + $core.Iterable<$core.String>? aliases, $core.bool? allowCors, $core.String? target, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (aliases != null) { - // ignore: deprecated_member_use_from_same_package - _result.aliases.addAll(aliases); + $result.aliases.addAll(aliases); } if (allowCors != null) { - _result.allowCors = allowCors; + $result.allowCors = allowCors; } if (target != null) { - _result.target = target; + $result.target = target; } - return _result; + return $result; } + Endpoint._() : super(); factory Endpoint.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Endpoint.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Endpoint', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pPS(2, _omitFieldNames ? '' : 'aliases') + ..aOB(5, _omitFieldNames ? '' : 'allowCors') + ..aOS(101, _omitFieldNames ? '' : 'target') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -79,9 +82,10 @@ class Endpoint extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Endpoint copyWith(void Function(Endpoint) updates) => - super.copyWith((message) => updates(message as Endpoint)) - as Endpoint; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Endpoint)) as Endpoint; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Endpoint create() => Endpoint._(); Endpoint createEmptyInstance() => create(); @@ -91,6 +95,7 @@ class Endpoint extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Endpoint? _defaultInstance; + /// The canonical name of this endpoint. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -103,10 +108,18 @@ class Endpoint extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); - @$core.Deprecated('This field is deprecated.') + /// Aliases for this endpoint, these will be served by the same UrlMap as the + /// parent endpoint, and will be provisioned in the GCP stack for the Regional + /// Endpoints. @$pb.TagNumber(2) $core.List<$core.String> get aliases => $_getList(1); + /// Allowing + /// [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + /// cross-domain traffic, would allow the backends served from this endpoint to + /// receive and respond to HTTP OPTIONS requests. The response will be used by + /// the browser to determine whether the subsequent cross-origin request is + /// allowed to proceed. @$pb.TagNumber(5) $core.bool get allowCors => $_getBF(2); @$pb.TagNumber(5) @@ -119,6 +132,11 @@ class Endpoint extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearAllowCors() => clearField(5); + /// The specification of an Internet routable address of API frontend that will + /// handle requests to this [API + /// Endpoint](https://cloud.google.com/apis/design/glossary). It should be + /// either a valid IPv4 address or a fully-qualified domain name. For example, + /// "8.8.8.8" or "myservice.appspot.com". @$pb.TagNumber(101) $core.String get target => $_getSZ(3); @$pb.TagNumber(101) @@ -131,3 +149,7 @@ class Endpoint extends $pb.GeneratedMessage { @$pb.TagNumber(101) void clearTarget() => clearField(101); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pbenum.dart index 061d591d..27d763a2 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/endpoint.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pbjson.dart index 5b0ad3e4..50f3a6ed 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/endpoint.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/endpoint.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 endpointDescriptor instead') @@ -14,14 +18,7 @@ const Endpoint$json = { '1': 'Endpoint', '2': [ {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, - { - '1': 'aliases', - '3': 2, - '4': 3, - '5': 9, - '8': {'3': true}, - '10': 'aliases', - }, + {'1': 'aliases', '3': 2, '4': 3, '5': 9, '10': 'aliases'}, {'1': 'target', '3': 101, '4': 1, '5': 9, '10': 'target'}, {'1': 'allow_cors', '3': 5, '4': 1, '5': 8, '10': 'allowCors'}, ], @@ -29,4 +26,5 @@ const Endpoint$json = { /// Descriptor for `Endpoint`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List endpointDescriptor = $convert.base64Decode( - 'CghFbmRwb2ludBISCgRuYW1lGAEgASgJUgRuYW1lEhwKB2FsaWFzZXMYAiADKAlCAhgBUgdhbGlhc2VzEhYKBnRhcmdldBhlIAEoCVIGdGFyZ2V0Eh0KCmFsbG93X2NvcnMYBSABKAhSCWFsbG93Q29ycw=='); + 'CghFbmRwb2ludBISCgRuYW1lGAEgASgJUgRuYW1lEhgKB2FsaWFzZXMYAiADKAlSB2FsaWFzZX' + 'MSFgoGdGFyZ2V0GGUgASgJUgZ0YXJnZXQSHQoKYWxsb3dfY29ycxgFIAEoCFIJYWxsb3dDb3Jz'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pb.dart index 13bcb56a..f3db1ca9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/api/error_reason.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pbenum.dart index 41f2564d..bf2a7d79 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pbenum.dart @@ -1,115 +1,91 @@ -/// +// // Generated code. Do not modify. // source: google/api/error_reason.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Defines the supported values for `google.rpc.ErrorInfo.reason` for the +/// `googleapis.com` error domain. This error domain is reserved for [Service +/// Infrastructure](https://cloud.google.com/service-infrastructure/docs/overview). +/// For each error info of this domain, the metadata key "service" refers to the +/// logical identifier of an API service, such as "pubsub.googleapis.com". The +/// "consumer" refers to the entity that consumes an API Service. It typically is +/// a Google project that owns the client application or the server resource, +/// such as "projects/123". Other metadata keys are specific to each error +/// reason. For more information, see the definition of the specific error +/// reason. class ErrorReason extends $pb.ProtobufEnum { - static const ErrorReason ERROR_REASON_UNSPECIFIED = ErrorReason._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ERROR_REASON_UNSPECIFIED'); - static const ErrorReason SERVICE_DISABLED = ErrorReason._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SERVICE_DISABLED'); - static const ErrorReason BILLING_DISABLED = ErrorReason._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'BILLING_DISABLED'); - static const ErrorReason API_KEY_INVALID = ErrorReason._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_INVALID'); - static const ErrorReason API_KEY_SERVICE_BLOCKED = ErrorReason._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_SERVICE_BLOCKED'); - static const ErrorReason API_KEY_HTTP_REFERRER_BLOCKED = ErrorReason._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_HTTP_REFERRER_BLOCKED'); - static const ErrorReason API_KEY_IP_ADDRESS_BLOCKED = ErrorReason._( - 8, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_IP_ADDRESS_BLOCKED'); - static const ErrorReason API_KEY_ANDROID_APP_BLOCKED = ErrorReason._( - 9, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_ANDROID_APP_BLOCKED'); - static const ErrorReason API_KEY_IOS_APP_BLOCKED = ErrorReason._( - 13, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_IOS_APP_BLOCKED'); - static const ErrorReason RATE_LIMIT_EXCEEDED = ErrorReason._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RATE_LIMIT_EXCEEDED'); - static const ErrorReason RESOURCE_QUOTA_EXCEEDED = ErrorReason._( - 6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RESOURCE_QUOTA_EXCEEDED'); - static const ErrorReason LOCATION_TAX_POLICY_VIOLATED = ErrorReason._( - 10, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOCATION_TAX_POLICY_VIOLATED'); - static const ErrorReason USER_PROJECT_DENIED = ErrorReason._( - 11, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'USER_PROJECT_DENIED'); - static const ErrorReason CONSUMER_SUSPENDED = ErrorReason._( - 12, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CONSUMER_SUSPENDED'); - static const ErrorReason CONSUMER_INVALID = ErrorReason._( - 14, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CONSUMER_INVALID'); - static const ErrorReason SECURITY_POLICY_VIOLATED = ErrorReason._( - 15, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SECURITY_POLICY_VIOLATED'); - static const ErrorReason ACCESS_TOKEN_EXPIRED = ErrorReason._( - 16, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ACCESS_TOKEN_EXPIRED'); + static const ErrorReason ERROR_REASON_UNSPECIFIED = + ErrorReason._(0, _omitEnumNames ? '' : 'ERROR_REASON_UNSPECIFIED'); + static const ErrorReason SERVICE_DISABLED = + ErrorReason._(1, _omitEnumNames ? '' : 'SERVICE_DISABLED'); + static const ErrorReason BILLING_DISABLED = + ErrorReason._(2, _omitEnumNames ? '' : 'BILLING_DISABLED'); + static const ErrorReason API_KEY_INVALID = + ErrorReason._(3, _omitEnumNames ? '' : 'API_KEY_INVALID'); + static const ErrorReason API_KEY_SERVICE_BLOCKED = + ErrorReason._(4, _omitEnumNames ? '' : 'API_KEY_SERVICE_BLOCKED'); + static const ErrorReason API_KEY_HTTP_REFERRER_BLOCKED = + ErrorReason._(7, _omitEnumNames ? '' : 'API_KEY_HTTP_REFERRER_BLOCKED'); + static const ErrorReason API_KEY_IP_ADDRESS_BLOCKED = + ErrorReason._(8, _omitEnumNames ? '' : 'API_KEY_IP_ADDRESS_BLOCKED'); + static const ErrorReason API_KEY_ANDROID_APP_BLOCKED = + ErrorReason._(9, _omitEnumNames ? '' : 'API_KEY_ANDROID_APP_BLOCKED'); + static const ErrorReason API_KEY_IOS_APP_BLOCKED = + ErrorReason._(13, _omitEnumNames ? '' : 'API_KEY_IOS_APP_BLOCKED'); + static const ErrorReason RATE_LIMIT_EXCEEDED = + ErrorReason._(5, _omitEnumNames ? '' : 'RATE_LIMIT_EXCEEDED'); + static const ErrorReason RESOURCE_QUOTA_EXCEEDED = + ErrorReason._(6, _omitEnumNames ? '' : 'RESOURCE_QUOTA_EXCEEDED'); + static const ErrorReason LOCATION_TAX_POLICY_VIOLATED = + ErrorReason._(10, _omitEnumNames ? '' : 'LOCATION_TAX_POLICY_VIOLATED'); + static const ErrorReason USER_PROJECT_DENIED = + ErrorReason._(11, _omitEnumNames ? '' : 'USER_PROJECT_DENIED'); + static const ErrorReason CONSUMER_SUSPENDED = + ErrorReason._(12, _omitEnumNames ? '' : 'CONSUMER_SUSPENDED'); + static const ErrorReason CONSUMER_INVALID = + ErrorReason._(14, _omitEnumNames ? '' : 'CONSUMER_INVALID'); + static const ErrorReason SECURITY_POLICY_VIOLATED = + ErrorReason._(15, _omitEnumNames ? '' : 'SECURITY_POLICY_VIOLATED'); + static const ErrorReason ACCESS_TOKEN_EXPIRED = + ErrorReason._(16, _omitEnumNames ? '' : 'ACCESS_TOKEN_EXPIRED'); static const ErrorReason ACCESS_TOKEN_SCOPE_INSUFFICIENT = ErrorReason._( - 17, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ACCESS_TOKEN_SCOPE_INSUFFICIENT'); - static const ErrorReason ACCOUNT_STATE_INVALID = ErrorReason._( - 18, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ACCOUNT_STATE_INVALID'); - static const ErrorReason ACCESS_TOKEN_TYPE_UNSUPPORTED = ErrorReason._( - 19, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ACCESS_TOKEN_TYPE_UNSUPPORTED'); + 17, _omitEnumNames ? '' : 'ACCESS_TOKEN_SCOPE_INSUFFICIENT'); + static const ErrorReason ACCOUNT_STATE_INVALID = + ErrorReason._(18, _omitEnumNames ? '' : 'ACCOUNT_STATE_INVALID'); + static const ErrorReason ACCESS_TOKEN_TYPE_UNSUPPORTED = + ErrorReason._(19, _omitEnumNames ? '' : 'ACCESS_TOKEN_TYPE_UNSUPPORTED'); + static const ErrorReason CREDENTIALS_MISSING = + ErrorReason._(20, _omitEnumNames ? '' : 'CREDENTIALS_MISSING'); + static const ErrorReason RESOURCE_PROJECT_INVALID = + ErrorReason._(21, _omitEnumNames ? '' : 'RESOURCE_PROJECT_INVALID'); + static const ErrorReason SESSION_COOKIE_INVALID = + ErrorReason._(23, _omitEnumNames ? '' : 'SESSION_COOKIE_INVALID'); + static const ErrorReason USER_BLOCKED_BY_ADMIN = + ErrorReason._(24, _omitEnumNames ? '' : 'USER_BLOCKED_BY_ADMIN'); + static const ErrorReason RESOURCE_USAGE_RESTRICTION_VIOLATED = ErrorReason._( + 25, _omitEnumNames ? '' : 'RESOURCE_USAGE_RESTRICTION_VIOLATED'); + static const ErrorReason SYSTEM_PARAMETER_UNSUPPORTED = + ErrorReason._(26, _omitEnumNames ? '' : 'SYSTEM_PARAMETER_UNSUPPORTED'); + static const ErrorReason ORG_RESTRICTION_VIOLATION = + ErrorReason._(27, _omitEnumNames ? '' : 'ORG_RESTRICTION_VIOLATION'); + static const ErrorReason ORG_RESTRICTION_HEADER_INVALID = + ErrorReason._(28, _omitEnumNames ? '' : 'ORG_RESTRICTION_HEADER_INVALID'); + static const ErrorReason SERVICE_NOT_VISIBLE = + ErrorReason._(29, _omitEnumNames ? '' : 'SERVICE_NOT_VISIBLE'); + static const ErrorReason GCP_SUSPENDED = + ErrorReason._(30, _omitEnumNames ? '' : 'GCP_SUSPENDED'); + static const ErrorReason LOCATION_POLICY_VIOLATED = + ErrorReason._(31, _omitEnumNames ? '' : 'LOCATION_POLICY_VIOLATED'); static const $core.List values = [ ERROR_REASON_UNSPECIFIED, @@ -132,6 +108,17 @@ class ErrorReason extends $pb.ProtobufEnum { ACCESS_TOKEN_SCOPE_INSUFFICIENT, ACCOUNT_STATE_INVALID, ACCESS_TOKEN_TYPE_UNSUPPORTED, + CREDENTIALS_MISSING, + RESOURCE_PROJECT_INVALID, + SESSION_COOKIE_INVALID, + USER_BLOCKED_BY_ADMIN, + RESOURCE_USAGE_RESTRICTION_VIOLATED, + SYSTEM_PARAMETER_UNSUPPORTED, + ORG_RESTRICTION_VIOLATION, + ORG_RESTRICTION_HEADER_INVALID, + SERVICE_NOT_VISIBLE, + GCP_SUSPENDED, + LOCATION_POLICY_VIOLATED, ]; static final $core.Map<$core.int, ErrorReason> _byValue = @@ -140,3 +127,5 @@ class ErrorReason extends $pb.ProtobufEnum { const ErrorReason._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pbjson.dart index e61fcdc0..fe8377c8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/error_reason.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/error_reason.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 errorReasonDescriptor instead') @@ -33,9 +37,36 @@ const ErrorReason$json = { {'1': 'ACCESS_TOKEN_SCOPE_INSUFFICIENT', '2': 17}, {'1': 'ACCOUNT_STATE_INVALID', '2': 18}, {'1': 'ACCESS_TOKEN_TYPE_UNSUPPORTED', '2': 19}, + {'1': 'CREDENTIALS_MISSING', '2': 20}, + {'1': 'RESOURCE_PROJECT_INVALID', '2': 21}, + {'1': 'SESSION_COOKIE_INVALID', '2': 23}, + {'1': 'USER_BLOCKED_BY_ADMIN', '2': 24}, + {'1': 'RESOURCE_USAGE_RESTRICTION_VIOLATED', '2': 25}, + {'1': 'SYSTEM_PARAMETER_UNSUPPORTED', '2': 26}, + {'1': 'ORG_RESTRICTION_VIOLATION', '2': 27}, + {'1': 'ORG_RESTRICTION_HEADER_INVALID', '2': 28}, + {'1': 'SERVICE_NOT_VISIBLE', '2': 29}, + {'1': 'GCP_SUSPENDED', '2': 30}, + {'1': 'LOCATION_POLICY_VIOLATED', '2': 31}, ], }; /// Descriptor for `ErrorReason`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List errorReasonDescriptor = $convert.base64Decode( - 'CgtFcnJvclJlYXNvbhIcChhFUlJPUl9SRUFTT05fVU5TUEVDSUZJRUQQABIUChBTRVJWSUNFX0RJU0FCTEVEEAESFAoQQklMTElOR19ESVNBQkxFRBACEhMKD0FQSV9LRVlfSU5WQUxJRBADEhsKF0FQSV9LRVlfU0VSVklDRV9CTE9DS0VEEAQSIQodQVBJX0tFWV9IVFRQX1JFRkVSUkVSX0JMT0NLRUQQBxIeChpBUElfS0VZX0lQX0FERFJFU1NfQkxPQ0tFRBAIEh8KG0FQSV9LRVlfQU5EUk9JRF9BUFBfQkxPQ0tFRBAJEhsKF0FQSV9LRVlfSU9TX0FQUF9CTE9DS0VEEA0SFwoTUkFURV9MSU1JVF9FWENFRURFRBAFEhsKF1JFU09VUkNFX1FVT1RBX0VYQ0VFREVEEAYSIAocTE9DQVRJT05fVEFYX1BPTElDWV9WSU9MQVRFRBAKEhcKE1VTRVJfUFJPSkVDVF9ERU5JRUQQCxIWChJDT05TVU1FUl9TVVNQRU5ERUQQDBIUChBDT05TVU1FUl9JTlZBTElEEA4SHAoYU0VDVVJJVFlfUE9MSUNZX1ZJT0xBVEVEEA8SGAoUQUNDRVNTX1RPS0VOX0VYUElSRUQQEBIjCh9BQ0NFU1NfVE9LRU5fU0NPUEVfSU5TVUZGSUNJRU5UEBESGQoVQUNDT1VOVF9TVEFURV9JTlZBTElEEBISIQodQUNDRVNTX1RPS0VOX1RZUEVfVU5TVVBQT1JURUQQEw=='); + 'CgtFcnJvclJlYXNvbhIcChhFUlJPUl9SRUFTT05fVU5TUEVDSUZJRUQQABIUChBTRVJWSUNFX0' + 'RJU0FCTEVEEAESFAoQQklMTElOR19ESVNBQkxFRBACEhMKD0FQSV9LRVlfSU5WQUxJRBADEhsK' + 'F0FQSV9LRVlfU0VSVklDRV9CTE9DS0VEEAQSIQodQVBJX0tFWV9IVFRQX1JFRkVSUkVSX0JMT0' + 'NLRUQQBxIeChpBUElfS0VZX0lQX0FERFJFU1NfQkxPQ0tFRBAIEh8KG0FQSV9LRVlfQU5EUk9J' + 'RF9BUFBfQkxPQ0tFRBAJEhsKF0FQSV9LRVlfSU9TX0FQUF9CTE9DS0VEEA0SFwoTUkFURV9MSU' + '1JVF9FWENFRURFRBAFEhsKF1JFU09VUkNFX1FVT1RBX0VYQ0VFREVEEAYSIAocTE9DQVRJT05f' + 'VEFYX1BPTElDWV9WSU9MQVRFRBAKEhcKE1VTRVJfUFJPSkVDVF9ERU5JRUQQCxIWChJDT05TVU' + '1FUl9TVVNQRU5ERUQQDBIUChBDT05TVU1FUl9JTlZBTElEEA4SHAoYU0VDVVJJVFlfUE9MSUNZ' + 'X1ZJT0xBVEVEEA8SGAoUQUNDRVNTX1RPS0VOX0VYUElSRUQQEBIjCh9BQ0NFU1NfVE9LRU5fU0' + 'NPUEVfSU5TVUZGSUNJRU5UEBESGQoVQUNDT1VOVF9TVEFURV9JTlZBTElEEBISIQodQUNDRVNT' + 'X1RPS0VOX1RZUEVfVU5TVVBQT1JURUQQExIXChNDUkVERU5USUFMU19NSVNTSU5HEBQSHAoYUk' + 'VTT1VSQ0VfUFJPSkVDVF9JTlZBTElEEBUSGgoWU0VTU0lPTl9DT09LSUVfSU5WQUxJRBAXEhkK' + 'FVVTRVJfQkxPQ0tFRF9CWV9BRE1JThAYEicKI1JFU09VUkNFX1VTQUdFX1JFU1RSSUNUSU9OX1' + 'ZJT0xBVEVEEBkSIAocU1lTVEVNX1BBUkFNRVRFUl9VTlNVUFBPUlRFRBAaEh0KGU9SR19SRVNU' + 'UklDVElPTl9WSU9MQVRJT04QGxIiCh5PUkdfUkVTVFJJQ1RJT05fSEVBREVSX0lOVkFMSUQQHB' + 'IXChNTRVJWSUNFX05PVF9WSVNJQkxFEB0SEQoNR0NQX1NVU1BFTkRFRBAeEhwKGExPQ0FUSU9O' + 'X1BPTElDWV9WSU9MQVRFRBAf'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pb.dart similarity index 57% rename from pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pb.dart rename to pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pb.dart index cd7ee20c..6ad49c95 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pb.dart @@ -1,84 +1,69 @@ -/// +// // Generated code. Do not modify. -// source: google/api/expr/v1alpha1/conformance_service.proto +// source: google/api/expr/conformance/v1alpha1/conformance_service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'syntax.pb.dart' as $1; -import '../../../rpc/status.pb.dart' as $2; -import 'checked.pb.dart' as $3; -import 'eval.pb.dart' as $4; - +import '../../../../rpc/status.pb.dart' as $57; +import '../../v1alpha1/checked.pb.dart' as $102; +import '../../v1alpha1/eval.pb.dart' as $103; +import '../../v1alpha1/syntax.pb.dart' as $100; import 'conformance_service.pbenum.dart'; export 'conformance_service.pbenum.dart'; +/// Request message for the Parse method. class ParseRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ParseRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'celSource') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'syntaxVersion') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sourceLocation') - ..aOB( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'disableMacros') - ..hasRequiredFields = false; - - ParseRequest._() : super(); factory ParseRequest({ $core.String? celSource, $core.String? syntaxVersion, $core.String? sourceLocation, $core.bool? disableMacros, }) { - final _result = create(); + final $result = create(); if (celSource != null) { - _result.celSource = celSource; + $result.celSource = celSource; } if (syntaxVersion != null) { - _result.syntaxVersion = syntaxVersion; + $result.syntaxVersion = syntaxVersion; } if (sourceLocation != null) { - _result.sourceLocation = sourceLocation; + $result.sourceLocation = sourceLocation; } if (disableMacros != null) { - _result.disableMacros = disableMacros; + $result.disableMacros = disableMacros; } - return _result; + return $result; } + ParseRequest._() : super(); factory ParseRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ParseRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ParseRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.conformance.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'celSource') + ..aOS(2, _omitFieldNames ? '' : 'syntaxVersion') + ..aOS(3, _omitFieldNames ? '' : 'sourceLocation') + ..aOB(4, _omitFieldNames ? '' : 'disableMacros') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -88,8 +73,10 @@ class ParseRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ParseRequest copyWith(void Function(ParseRequest) updates) => super.copyWith((message) => updates(message as ParseRequest)) - as ParseRequest; // ignore: deprecated_member_use + as ParseRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ParseRequest create() => ParseRequest._(); ParseRequest createEmptyInstance() => create(); @@ -100,6 +87,7 @@ class ParseRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ParseRequest? _defaultInstance; + /// Required. Source text in CEL syntax. @$pb.TagNumber(1) $core.String get celSource => $_getSZ(0); @$pb.TagNumber(1) @@ -112,6 +100,7 @@ class ParseRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCelSource() => clearField(1); + /// Tag for version of CEL syntax, for future use. @$pb.TagNumber(2) $core.String get syntaxVersion => $_getSZ(1); @$pb.TagNumber(2) @@ -124,6 +113,7 @@ class ParseRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearSyntaxVersion() => clearField(2); + /// File or resource for source text, used in [SourceInfo][google.api.SourceInfo]. @$pb.TagNumber(3) $core.String get sourceLocation => $_getSZ(2); @$pb.TagNumber(3) @@ -136,6 +126,7 @@ class ParseRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSourceLocation() => clearField(3); + /// Prevent macro expansion. See "Macros" in Language Defiinition. @$pb.TagNumber(4) $core.bool get disableMacros => $_getBF(3); @$pb.TagNumber(4) @@ -149,48 +140,40 @@ class ParseRequest extends $pb.GeneratedMessage { void clearDisableMacros() => clearField(4); } +/// Response message for the Parse method. class ParseResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ParseResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM<$1.ParsedExpr>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'parsedExpr', - subBuilder: $1.ParsedExpr.create) - ..pc<$2.Status>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'issues', - $pb.PbFieldType.PM, - subBuilder: $2.Status.create) - ..hasRequiredFields = false; - - ParseResponse._() : super(); factory ParseResponse({ - $1.ParsedExpr? parsedExpr, - $core.Iterable<$2.Status>? issues, + $100.ParsedExpr? parsedExpr, + $core.Iterable<$57.Status>? issues, }) { - final _result = create(); + final $result = create(); if (parsedExpr != null) { - _result.parsedExpr = parsedExpr; + $result.parsedExpr = parsedExpr; } if (issues != null) { - _result.issues.addAll(issues); + $result.issues.addAll(issues); } - return _result; + return $result; } + ParseResponse._() : super(); factory ParseResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ParseResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ParseResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.conformance.v1alpha1'), + createEmptyInstance: create) + ..aOM<$100.ParsedExpr>(1, _omitFieldNames ? '' : 'parsedExpr', + subBuilder: $100.ParsedExpr.create) + ..pc<$57.Status>(2, _omitFieldNames ? '' : 'issues', $pb.PbFieldType.PM, + subBuilder: $57.Status.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') @@ -200,8 +183,10 @@ class ParseResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ParseResponse copyWith(void Function(ParseResponse) updates) => super.copyWith((message) => updates(message as ParseResponse)) - as ParseResponse; // ignore: deprecated_member_use + as ParseResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ParseResponse create() => ParseResponse._(); ParseResponse createEmptyInstance() => create(); @@ -212,10 +197,11 @@ class ParseResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ParseResponse? _defaultInstance; + /// The parsed representation, or unset if parsing failed. @$pb.TagNumber(1) - $1.ParsedExpr get parsedExpr => $_getN(0); + $100.ParsedExpr get parsedExpr => $_getN(0); @$pb.TagNumber(1) - set parsedExpr($1.ParsedExpr v) { + set parsedExpr($100.ParsedExpr v) { setField(1, v); } @@ -224,62 +210,57 @@ class ParseResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParsedExpr() => clearField(1); @$pb.TagNumber(1) - $1.ParsedExpr ensureParsedExpr() => $_ensure(0); + $100.ParsedExpr ensureParsedExpr() => $_ensure(0); + /// Any number of issues with [StatusDetails][] as the details. @$pb.TagNumber(2) - $core.List<$2.Status> get issues => $_getList(1); + $core.List<$57.Status> get issues => $_getList(1); } +/// Request message for the Check method. class CheckRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CheckRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM<$1.ParsedExpr>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'parsedExpr', - subBuilder: $1.ParsedExpr.create) - ..pc<$3.Decl>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'typeEnv', - $pb.PbFieldType.PM, - subBuilder: $3.Decl.create) - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'container') - ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'noStdEnv') - ..hasRequiredFields = false; - - CheckRequest._() : super(); factory CheckRequest({ - $1.ParsedExpr? parsedExpr, - $core.Iterable<$3.Decl>? typeEnv, + $100.ParsedExpr? parsedExpr, + $core.Iterable<$102.Decl>? typeEnv, $core.String? container, $core.bool? noStdEnv, }) { - final _result = create(); + final $result = create(); if (parsedExpr != null) { - _result.parsedExpr = parsedExpr; + $result.parsedExpr = parsedExpr; } if (typeEnv != null) { - _result.typeEnv.addAll(typeEnv); + $result.typeEnv.addAll(typeEnv); } if (container != null) { - _result.container = container; + $result.container = container; } if (noStdEnv != null) { - _result.noStdEnv = noStdEnv; + $result.noStdEnv = noStdEnv; } - return _result; + return $result; } + CheckRequest._() : super(); factory CheckRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CheckRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CheckRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.conformance.v1alpha1'), + createEmptyInstance: create) + ..aOM<$100.ParsedExpr>(1, _omitFieldNames ? '' : 'parsedExpr', + subBuilder: $100.ParsedExpr.create) + ..pc<$102.Decl>(2, _omitFieldNames ? '' : 'typeEnv', $pb.PbFieldType.PM, + subBuilder: $102.Decl.create) + ..aOS(3, _omitFieldNames ? '' : 'container') + ..aOB(4, _omitFieldNames ? '' : 'noStdEnv') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -289,8 +270,10 @@ class CheckRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CheckRequest copyWith(void Function(CheckRequest) updates) => super.copyWith((message) => updates(message as CheckRequest)) - as CheckRequest; // ignore: deprecated_member_use + as CheckRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CheckRequest create() => CheckRequest._(); CheckRequest createEmptyInstance() => create(); @@ -301,10 +284,11 @@ class CheckRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CheckRequest? _defaultInstance; + /// Required. The parsed representation of the CEL program. @$pb.TagNumber(1) - $1.ParsedExpr get parsedExpr => $_getN(0); + $100.ParsedExpr get parsedExpr => $_getN(0); @$pb.TagNumber(1) - set parsedExpr($1.ParsedExpr v) { + set parsedExpr($100.ParsedExpr v) { setField(1, v); } @@ -313,11 +297,16 @@ class CheckRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParsedExpr() => clearField(1); @$pb.TagNumber(1) - $1.ParsedExpr ensureParsedExpr() => $_ensure(0); + $100.ParsedExpr ensureParsedExpr() => $_ensure(0); + /// Declarations of types for external variables and functions. + /// Required if program uses external variables or functions + /// not in the default environment. @$pb.TagNumber(2) - $core.List<$3.Decl> get typeEnv => $_getList(1); + $core.List<$102.Decl> get typeEnv => $_getList(1); + /// The protocol buffer context. See "Name Resolution" in the + /// Language Definition. @$pb.TagNumber(3) $core.String get container => $_getSZ(2); @$pb.TagNumber(3) @@ -330,6 +319,9 @@ class CheckRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearContainer() => clearField(3); + /// If true, use only the declarations in [type_env][google.api.expr.conformance.v1alpha1.CheckRequest.type_env]. If false (default), + /// add declarations for the standard definitions to the type environment. See + /// "Standard Definitions" in the Language Definition. @$pb.TagNumber(4) $core.bool get noStdEnv => $_getBF(3); @$pb.TagNumber(4) @@ -343,48 +335,40 @@ class CheckRequest extends $pb.GeneratedMessage { void clearNoStdEnv() => clearField(4); } +/// Response message for the Check method. class CheckResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CheckResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM<$3.CheckedExpr>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'checkedExpr', - subBuilder: $3.CheckedExpr.create) - ..pc<$2.Status>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'issues', - $pb.PbFieldType.PM, - subBuilder: $2.Status.create) - ..hasRequiredFields = false; - - CheckResponse._() : super(); factory CheckResponse({ - $3.CheckedExpr? checkedExpr, - $core.Iterable<$2.Status>? issues, + $102.CheckedExpr? checkedExpr, + $core.Iterable<$57.Status>? issues, }) { - final _result = create(); + final $result = create(); if (checkedExpr != null) { - _result.checkedExpr = checkedExpr; + $result.checkedExpr = checkedExpr; } if (issues != null) { - _result.issues.addAll(issues); + $result.issues.addAll(issues); } - return _result; + return $result; } + CheckResponse._() : super(); factory CheckResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CheckResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CheckResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.conformance.v1alpha1'), + createEmptyInstance: create) + ..aOM<$102.CheckedExpr>(1, _omitFieldNames ? '' : 'checkedExpr', + subBuilder: $102.CheckedExpr.create) + ..pc<$57.Status>(2, _omitFieldNames ? '' : 'issues', $pb.PbFieldType.PM, + subBuilder: $57.Status.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') @@ -394,8 +378,10 @@ class CheckResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') CheckResponse copyWith(void Function(CheckResponse) updates) => super.copyWith((message) => updates(message as CheckResponse)) - as CheckResponse; // ignore: deprecated_member_use + as CheckResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CheckResponse create() => CheckResponse._(); CheckResponse createEmptyInstance() => create(); @@ -406,10 +392,11 @@ class CheckResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CheckResponse? _defaultInstance; + /// The annotated representation, or unset if checking failed. @$pb.TagNumber(1) - $3.CheckedExpr get checkedExpr => $_getN(0); + $102.CheckedExpr get checkedExpr => $_getN(0); @$pb.TagNumber(1) - set checkedExpr($3.CheckedExpr v) { + set checkedExpr($102.CheckedExpr v) { setField(1, v); } @@ -418,74 +405,73 @@ class CheckResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCheckedExpr() => clearField(1); @$pb.TagNumber(1) - $3.CheckedExpr ensureCheckedExpr() => $_ensure(0); + $102.CheckedExpr ensureCheckedExpr() => $_ensure(0); + /// Any number of issues with [StatusDetails][] as the details. @$pb.TagNumber(2) - $core.List<$2.Status> get issues => $_getList(1); + $core.List<$57.Status> get issues => $_getList(1); } enum EvalRequest_ExprKind { parsedExpr, checkedExpr, notSet } +/// Request message for the Eval method. class EvalRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, EvalRequest_ExprKind> - _EvalRequest_ExprKindByTag = { - 1: EvalRequest_ExprKind.parsedExpr, - 2: EvalRequest_ExprKind.checkedExpr, - 0: EvalRequest_ExprKind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EvalRequest', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM<$1.ParsedExpr>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'parsedExpr', - subBuilder: $1.ParsedExpr.create) - ..aOM<$3.CheckedExpr>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'checkedExpr', - subBuilder: $3.CheckedExpr.create) - ..m<$core.String, $4.ExprValue>( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bindings', - entryClassName: 'EvalRequest.BindingsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: $4.ExprValue.create, - packageName: const $pb.PackageName('google.api.expr.v1alpha1')) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'container') - ..hasRequiredFields = false; - - EvalRequest._() : super(); factory EvalRequest({ - $1.ParsedExpr? parsedExpr, - $3.CheckedExpr? checkedExpr, - $core.Map<$core.String, $4.ExprValue>? bindings, + $100.ParsedExpr? parsedExpr, + $102.CheckedExpr? checkedExpr, + $core.Map<$core.String, $103.ExprValue>? bindings, $core.String? container, }) { - final _result = create(); + final $result = create(); if (parsedExpr != null) { - _result.parsedExpr = parsedExpr; + $result.parsedExpr = parsedExpr; } if (checkedExpr != null) { - _result.checkedExpr = checkedExpr; + $result.checkedExpr = checkedExpr; } if (bindings != null) { - _result.bindings.addAll(bindings); + $result.bindings.addAll(bindings); } if (container != null) { - _result.container = container; + $result.container = container; } - return _result; + return $result; } + EvalRequest._() : super(); factory EvalRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EvalRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, EvalRequest_ExprKind> + _EvalRequest_ExprKindByTag = { + 1: EvalRequest_ExprKind.parsedExpr, + 2: EvalRequest_ExprKind.checkedExpr, + 0: EvalRequest_ExprKind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EvalRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.conformance.v1alpha1'), + createEmptyInstance: create) + ..oo(0, [1, 2]) + ..aOM<$100.ParsedExpr>(1, _omitFieldNames ? '' : 'parsedExpr', + subBuilder: $100.ParsedExpr.create) + ..aOM<$102.CheckedExpr>(2, _omitFieldNames ? '' : 'checkedExpr', + subBuilder: $102.CheckedExpr.create) + ..m<$core.String, $103.ExprValue>(3, _omitFieldNames ? '' : 'bindings', + entryClassName: 'EvalRequest.BindingsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: $103.ExprValue.create, + valueDefaultOrMaker: $103.ExprValue.getDefault, + packageName: + const $pb.PackageName('google.api.expr.conformance.v1alpha1')) + ..aOS(4, _omitFieldNames ? '' : 'container') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -495,8 +481,10 @@ class EvalRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') EvalRequest copyWith(void Function(EvalRequest) updates) => super.copyWith((message) => updates(message as EvalRequest)) - as EvalRequest; // ignore: deprecated_member_use + as EvalRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EvalRequest create() => EvalRequest._(); EvalRequest createEmptyInstance() => create(); @@ -510,10 +498,11 @@ class EvalRequest extends $pb.GeneratedMessage { _EvalRequest_ExprKindByTag[$_whichOneof(0)]!; void clearExprKind() => clearField($_whichOneof(0)); + /// Evaluate based on the parsed representation. @$pb.TagNumber(1) - $1.ParsedExpr get parsedExpr => $_getN(0); + $100.ParsedExpr get parsedExpr => $_getN(0); @$pb.TagNumber(1) - set parsedExpr($1.ParsedExpr v) { + set parsedExpr($100.ParsedExpr v) { setField(1, v); } @@ -522,12 +511,13 @@ class EvalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParsedExpr() => clearField(1); @$pb.TagNumber(1) - $1.ParsedExpr ensureParsedExpr() => $_ensure(0); + $100.ParsedExpr ensureParsedExpr() => $_ensure(0); + /// Evaluate based on the checked representation. @$pb.TagNumber(2) - $3.CheckedExpr get checkedExpr => $_getN(1); + $102.CheckedExpr get checkedExpr => $_getN(1); @$pb.TagNumber(2) - set checkedExpr($3.CheckedExpr v) { + set checkedExpr($102.CheckedExpr v) { setField(2, v); } @@ -536,11 +526,14 @@ class EvalRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearCheckedExpr() => clearField(2); @$pb.TagNumber(2) - $3.CheckedExpr ensureCheckedExpr() => $_ensure(1); + $102.CheckedExpr ensureCheckedExpr() => $_ensure(1); + /// Bindings for the external variables. The types SHOULD be compatible + /// with the type environment in [CheckRequest][google.api.expr.conformance.v1alpha1.CheckRequest], if checked. @$pb.TagNumber(3) - $core.Map<$core.String, $4.ExprValue> get bindings => $_getMap(2); + $core.Map<$core.String, $103.ExprValue> get bindings => $_getMap(2); + /// SHOULD be the same container as used in [CheckRequest][google.api.expr.conformance.v1alpha1.CheckRequest], if checked. @$pb.TagNumber(4) $core.String get container => $_getSZ(3); @$pb.TagNumber(4) @@ -554,48 +547,40 @@ class EvalRequest extends $pb.GeneratedMessage { void clearContainer() => clearField(4); } +/// Response message for the Eval method. class EvalResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EvalResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM<$4.ExprValue>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'result', - subBuilder: $4.ExprValue.create) - ..pc<$2.Status>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'issues', - $pb.PbFieldType.PM, - subBuilder: $2.Status.create) - ..hasRequiredFields = false; - - EvalResponse._() : super(); factory EvalResponse({ - $4.ExprValue? result, - $core.Iterable<$2.Status>? issues, + $103.ExprValue? result, + $core.Iterable<$57.Status>? issues, }) { - final _result = create(); + final $result = create(); if (result != null) { - _result.result = result; + $result.result = result; } if (issues != null) { - _result.issues.addAll(issues); + $result.issues.addAll(issues); } - return _result; + return $result; } + EvalResponse._() : super(); factory EvalResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EvalResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EvalResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.conformance.v1alpha1'), + createEmptyInstance: create) + ..aOM<$103.ExprValue>(1, _omitFieldNames ? '' : 'result', + subBuilder: $103.ExprValue.create) + ..pc<$57.Status>(2, _omitFieldNames ? '' : 'issues', $pb.PbFieldType.PM, + subBuilder: $57.Status.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') @@ -605,8 +590,10 @@ class EvalResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') EvalResponse copyWith(void Function(EvalResponse) updates) => super.copyWith((message) => updates(message as EvalResponse)) - as EvalResponse; // ignore: deprecated_member_use + as EvalResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EvalResponse create() => EvalResponse._(); EvalResponse createEmptyInstance() => create(); @@ -617,10 +604,11 @@ class EvalResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EvalResponse? _defaultInstance; + /// The execution result, or unset if execution couldn't start. @$pb.TagNumber(1) - $4.ExprValue get result => $_getN(0); + $103.ExprValue get result => $_getN(0); @$pb.TagNumber(1) - set result($4.ExprValue v) { + set result($103.ExprValue v) { setField(1, v); } @@ -629,60 +617,180 @@ class EvalResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearResult() => clearField(1); @$pb.TagNumber(1) - $4.ExprValue ensureResult() => $_ensure(0); + $103.ExprValue ensureResult() => $_ensure(0); + /// Any number of issues with [StatusDetails][] as the details. + /// Note that CEL execution errors are reified into [ExprValue][]. + /// Nevertheless, we'll allow out-of-band issues to be raised, + /// which also makes the replies more regular. @$pb.TagNumber(2) - $core.List<$2.Status> get issues => $_getList(1); + $core.List<$57.Status> get issues => $_getList(1); } -class IssueDetails extends $pb.GeneratedMessage { +/// A specific position in source. +class SourcePosition extends $pb.GeneratedMessage { + factory SourcePosition({ + $core.String? location, + $core.int? offset, + $core.int? line, + $core.int? column, + }) { + final $result = create(); + if (location != null) { + $result.location = location; + } + if (offset != null) { + $result.offset = offset; + } + if (line != null) { + $result.line = line; + } + if (column != null) { + $result.column = column; + } + return $result; + } + SourcePosition._() : super(); + factory SourcePosition.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SourcePosition.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'IssueDetails', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), + _omitMessageNames ? '' : 'SourcePosition', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.conformance.v1alpha1'), createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'severity', - $pb.PbFieldType.OE, - defaultOrMaker: IssueDetails_Severity.SEVERITY_UNSPECIFIED, - valueOf: IssueDetails_Severity.valueOf, - enumValues: IssueDetails_Severity.values) - ..aOM<$1.SourcePosition>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'position', - subBuilder: $1.SourcePosition.create) - ..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id') + ..aOS(1, _omitFieldNames ? '' : 'location') + ..a<$core.int>(2, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'line', $pb.PbFieldType.O3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'column', $pb.PbFieldType.O3) ..hasRequiredFields = false; - IssueDetails._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SourcePosition clone() => SourcePosition()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SourcePosition copyWith(void Function(SourcePosition) updates) => + super.copyWith((message) => updates(message as SourcePosition)) + as SourcePosition; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SourcePosition create() => SourcePosition._(); + SourcePosition createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SourcePosition getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static SourcePosition? _defaultInstance; + + /// The source location name (e.g. file name). + @$pb.TagNumber(1) + $core.String get location => $_getSZ(0); + @$pb.TagNumber(1) + set location($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasLocation() => $_has(0); + @$pb.TagNumber(1) + void clearLocation() => clearField(1); + + /// The UTF-8 code unit offset. + @$pb.TagNumber(2) + $core.int get offset => $_getIZ(1); + @$pb.TagNumber(2) + set offset($core.int v) { + $_setSignedInt32(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasOffset() => $_has(1); + @$pb.TagNumber(2) + void clearOffset() => clearField(2); + + /// The 1-based index of the starting line in the source text + /// where the issue occurs, or 0 if unknown. + @$pb.TagNumber(3) + $core.int get line => $_getIZ(2); + @$pb.TagNumber(3) + set line($core.int v) { + $_setSignedInt32(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasLine() => $_has(2); + @$pb.TagNumber(3) + void clearLine() => clearField(3); + + /// The 0-based index of the starting position within the line of source text + /// where the issue occurs. Only meaningful if line is nonzero. + @$pb.TagNumber(4) + $core.int get column => $_getIZ(3); + @$pb.TagNumber(4) + set column($core.int v) { + $_setSignedInt32(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasColumn() => $_has(3); + @$pb.TagNumber(4) + void clearColumn() => clearField(4); +} + +/// Warnings or errors in service execution are represented by +/// [google.rpc.Status][google.rpc.Status] messages, with the following message +/// in the details field. +class IssueDetails extends $pb.GeneratedMessage { factory IssueDetails({ IssueDetails_Severity? severity, - $1.SourcePosition? position, + SourcePosition? position, $fixnum.Int64? id, }) { - final _result = create(); + final $result = create(); if (severity != null) { - _result.severity = severity; + $result.severity = severity; } if (position != null) { - _result.position = position; + $result.position = position; } if (id != null) { - _result.id = id; + $result.id = id; } - return _result; + return $result; } + IssueDetails._() : super(); factory IssueDetails.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory IssueDetails.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'IssueDetails', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.conformance.v1alpha1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'severity', $pb.PbFieldType.OE, + defaultOrMaker: IssueDetails_Severity.SEVERITY_UNSPECIFIED, + valueOf: IssueDetails_Severity.valueOf, + enumValues: IssueDetails_Severity.values) + ..aOM(2, _omitFieldNames ? '' : 'position', + subBuilder: SourcePosition.create) + ..aInt64(3, _omitFieldNames ? '' : 'id') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -692,8 +800,10 @@ class IssueDetails extends $pb.GeneratedMessage { 'Will be removed in next major version') IssueDetails copyWith(void Function(IssueDetails) updates) => super.copyWith((message) => updates(message as IssueDetails)) - as IssueDetails; // ignore: deprecated_member_use + as IssueDetails; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static IssueDetails create() => IssueDetails._(); IssueDetails createEmptyInstance() => create(); @@ -704,6 +814,7 @@ class IssueDetails extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static IssueDetails? _defaultInstance; + /// The severity of the issue. @$pb.TagNumber(1) IssueDetails_Severity get severity => $_getN(0); @$pb.TagNumber(1) @@ -716,10 +827,11 @@ class IssueDetails extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSeverity() => clearField(1); + /// Position in the source, if known. @$pb.TagNumber(2) - $1.SourcePosition get position => $_getN(1); + SourcePosition get position => $_getN(1); @$pb.TagNumber(2) - set position($1.SourcePosition v) { + set position(SourcePosition v) { setField(2, v); } @@ -728,8 +840,9 @@ class IssueDetails extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPosition() => clearField(2); @$pb.TagNumber(2) - $1.SourcePosition ensurePosition() => $_ensure(1); + SourcePosition ensurePosition() => $_ensure(1); + /// Expression ID from [Expr][], 0 if unknown. @$pb.TagNumber(3) $fixnum.Int64 get id => $_getI64(2); @$pb.TagNumber(3) @@ -742,3 +855,7 @@ class IssueDetails extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearId() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pbenum.dart new file mode 100644 index 00000000..633fdf39 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pbenum.dart @@ -0,0 +1,42 @@ +// +// Generated code. Do not modify. +// source: google/api/expr/conformance/v1alpha1/conformance_service.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; + +/// Severities of issues. +class IssueDetails_Severity extends $pb.ProtobufEnum { + static const IssueDetails_Severity SEVERITY_UNSPECIFIED = + IssueDetails_Severity._(0, _omitEnumNames ? '' : 'SEVERITY_UNSPECIFIED'); + static const IssueDetails_Severity DEPRECATION = + IssueDetails_Severity._(1, _omitEnumNames ? '' : 'DEPRECATION'); + static const IssueDetails_Severity WARNING = + IssueDetails_Severity._(2, _omitEnumNames ? '' : 'WARNING'); + static const IssueDetails_Severity ERROR = + IssueDetails_Severity._(3, _omitEnumNames ? '' : 'ERROR'); + + static const $core.List values = + [ + SEVERITY_UNSPECIFIED, + DEPRECATION, + WARNING, + ERROR, + ]; + + static final $core.Map<$core.int, IssueDetails_Severity> _byValue = + $pb.ProtobufEnum.initByValue(values); + static IssueDetails_Severity? valueOf($core.int value) => _byValue[value]; + + const IssueDetails_Severity._($core.int v, $core.String n) : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pbgrpc.dart new file mode 100644 index 00000000..fc59533d --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pbgrpc.dart @@ -0,0 +1,110 @@ +// +// Generated code. Do not modify. +// source: google/api/expr/conformance/v1alpha1/conformance_service.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; +import 'dart:core' as $core; + +import 'package:grpc/service_api.dart' as $grpc; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'conformance_service.pb.dart' as $33; + +export 'conformance_service.pb.dart'; + +@$pb.GrpcServiceName('google.api.expr.conformance.v1alpha1.ConformanceService') +class ConformanceServiceClient extends $grpc.Client { + static final _$parse = + $grpc.ClientMethod<$33.ParseRequest, $33.ParseResponse>( + '/google.api.expr.conformance.v1alpha1.ConformanceService/Parse', + ($33.ParseRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $33.ParseResponse.fromBuffer(value)); + static final _$check = + $grpc.ClientMethod<$33.CheckRequest, $33.CheckResponse>( + '/google.api.expr.conformance.v1alpha1.ConformanceService/Check', + ($33.CheckRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $33.CheckResponse.fromBuffer(value)); + static final _$eval = $grpc.ClientMethod<$33.EvalRequest, $33.EvalResponse>( + '/google.api.expr.conformance.v1alpha1.ConformanceService/Eval', + ($33.EvalRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $33.EvalResponse.fromBuffer(value)); + + ConformanceServiceClient($grpc.ClientChannel channel, + {$grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors}) + : super(channel, options: options, interceptors: interceptors); + + $grpc.ResponseFuture<$33.ParseResponse> parse($33.ParseRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$parse, request, options: options); + } + + $grpc.ResponseFuture<$33.CheckResponse> check($33.CheckRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$check, request, options: options); + } + + $grpc.ResponseFuture<$33.EvalResponse> eval($33.EvalRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$eval, request, options: options); + } +} + +@$pb.GrpcServiceName('google.api.expr.conformance.v1alpha1.ConformanceService') +abstract class ConformanceServiceBase extends $grpc.Service { + $core.String get $name => + 'google.api.expr.conformance.v1alpha1.ConformanceService'; + + ConformanceServiceBase() { + $addMethod($grpc.ServiceMethod<$33.ParseRequest, $33.ParseResponse>( + 'Parse', + parse_Pre, + false, + false, + ($core.List<$core.int> value) => $33.ParseRequest.fromBuffer(value), + ($33.ParseResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$33.CheckRequest, $33.CheckResponse>( + 'Check', + check_Pre, + false, + false, + ($core.List<$core.int> value) => $33.CheckRequest.fromBuffer(value), + ($33.CheckResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$33.EvalRequest, $33.EvalResponse>( + 'Eval', + eval_Pre, + false, + false, + ($core.List<$core.int> value) => $33.EvalRequest.fromBuffer(value), + ($33.EvalResponse value) => value.writeToBuffer())); + } + + $async.Future<$33.ParseResponse> parse_Pre( + $grpc.ServiceCall call, $async.Future<$33.ParseRequest> request) async { + return parse(call, await request); + } + + $async.Future<$33.CheckResponse> check_Pre( + $grpc.ServiceCall call, $async.Future<$33.CheckRequest> request) async { + return check(call, await request); + } + + $async.Future<$33.EvalResponse> eval_Pre( + $grpc.ServiceCall call, $async.Future<$33.EvalRequest> request) async { + return eval(call, await request); + } + + $async.Future<$33.ParseResponse> parse( + $grpc.ServiceCall call, $33.ParseRequest request); + $async.Future<$33.CheckResponse> check( + $grpc.ServiceCall call, $33.CheckRequest request); + $async.Future<$33.EvalResponse> eval( + $grpc.ServiceCall call, $33.EvalRequest request); +} diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pbjson.dart similarity index 64% rename from pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pbjson.dart rename to pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pbjson.dart index ef17cbb5..d146fa4b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/conformance/v1alpha1/conformance_service.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. -// source: google/api/expr/v1alpha1/conformance_service.proto +// source: google/api/expr/conformance/v1alpha1/conformance_service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 parseRequestDescriptor instead') @@ -22,7 +26,10 @@ const ParseRequest$json = { /// Descriptor for `ParseRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List parseRequestDescriptor = $convert.base64Decode( - 'CgxQYXJzZVJlcXVlc3QSHQoKY2VsX3NvdXJjZRgBIAEoCVIJY2VsU291cmNlEiUKDnN5bnRheF92ZXJzaW9uGAIgASgJUg1zeW50YXhWZXJzaW9uEicKD3NvdXJjZV9sb2NhdGlvbhgDIAEoCVIOc291cmNlTG9jYXRpb24SJQoOZGlzYWJsZV9tYWNyb3MYBCABKAhSDWRpc2FibGVNYWNyb3M='); + 'CgxQYXJzZVJlcXVlc3QSHQoKY2VsX3NvdXJjZRgBIAEoCVIJY2VsU291cmNlEiUKDnN5bnRheF' + '92ZXJzaW9uGAIgASgJUg1zeW50YXhWZXJzaW9uEicKD3NvdXJjZV9sb2NhdGlvbhgDIAEoCVIO' + 'c291cmNlTG9jYXRpb24SJQoOZGlzYWJsZV9tYWNyb3MYBCABKAhSDWRpc2FibGVNYWNyb3M='); + @$core.Deprecated('Use parseResponseDescriptor instead') const ParseResponse$json = { '1': 'ParseResponse', @@ -48,7 +55,10 @@ const ParseResponse$json = { /// Descriptor for `ParseResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List parseResponseDescriptor = $convert.base64Decode( - 'Cg1QYXJzZVJlc3BvbnNlEkUKC3BhcnNlZF9leHByGAEgASgLMiQuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlBhcnNlZEV4cHJSCnBhcnNlZEV4cHISKgoGaXNzdWVzGAIgAygLMhIuZ29vZ2xlLnJwYy5TdGF0dXNSBmlzc3Vlcw=='); + 'Cg1QYXJzZVJlc3BvbnNlEkUKC3BhcnNlZF9leHByGAEgASgLMiQuZ29vZ2xlLmFwaS5leHByLn' + 'YxYWxwaGExLlBhcnNlZEV4cHJSCnBhcnNlZEV4cHISKgoGaXNzdWVzGAIgAygLMhIuZ29vZ2xl' + 'LnJwYy5TdGF0dXNSBmlzc3Vlcw=='); + @$core.Deprecated('Use checkRequestDescriptor instead') const CheckRequest$json = { '1': 'CheckRequest', @@ -76,7 +86,11 @@ const CheckRequest$json = { /// Descriptor for `CheckRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List checkRequestDescriptor = $convert.base64Decode( - 'CgxDaGVja1JlcXVlc3QSRQoLcGFyc2VkX2V4cHIYASABKAsyJC5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuUGFyc2VkRXhwclIKcGFyc2VkRXhwchI5Cgh0eXBlX2VudhgCIAMoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5EZWNsUgd0eXBlRW52EhwKCWNvbnRhaW5lchgDIAEoCVIJY29udGFpbmVyEhwKCm5vX3N0ZF9lbnYYBCABKAhSCG5vU3RkRW52'); + 'CgxDaGVja1JlcXVlc3QSRQoLcGFyc2VkX2V4cHIYASABKAsyJC5nb29nbGUuYXBpLmV4cHIudj' + 'FhbHBoYTEuUGFyc2VkRXhwclIKcGFyc2VkRXhwchI5Cgh0eXBlX2VudhgCIAMoCzIeLmdvb2ds' + 'ZS5hcGkuZXhwci52MWFscGhhMS5EZWNsUgd0eXBlRW52EhwKCWNvbnRhaW5lchgDIAEoCVIJY2' + '9udGFpbmVyEhwKCm5vX3N0ZF9lbnYYBCABKAhSCG5vU3RkRW52'); + @$core.Deprecated('Use checkResponseDescriptor instead') const CheckResponse$json = { '1': 'CheckResponse', @@ -102,7 +116,10 @@ const CheckResponse$json = { /// Descriptor for `CheckResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List checkResponseDescriptor = $convert.base64Decode( - 'Cg1DaGVja1Jlc3BvbnNlEkgKDGNoZWNrZWRfZXhwchgBIAEoCzIlLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5DaGVja2VkRXhwclILY2hlY2tlZEV4cHISKgoGaXNzdWVzGAIgAygLMhIuZ29vZ2xlLnJwYy5TdGF0dXNSBmlzc3Vlcw=='); + 'Cg1DaGVja1Jlc3BvbnNlEkgKDGNoZWNrZWRfZXhwchgBIAEoCzIlLmdvb2dsZS5hcGkuZXhwci' + '52MWFscGhhMS5DaGVja2VkRXhwclILY2hlY2tlZEV4cHISKgoGaXNzdWVzGAIgAygLMhIuZ29v' + 'Z2xlLnJwYy5TdGF0dXNSBmlzc3Vlcw=='); + @$core.Deprecated('Use evalRequestDescriptor instead') const EvalRequest$json = { '1': 'EvalRequest', @@ -130,7 +147,7 @@ const EvalRequest$json = { '3': 3, '4': 3, '5': 11, - '6': '.google.api.expr.v1alpha1.EvalRequest.BindingsEntry', + '6': '.google.api.expr.conformance.v1alpha1.EvalRequest.BindingsEntry', '10': 'bindings' }, {'1': 'container', '3': 4, '4': 1, '5': 9, '10': 'container'}, @@ -160,7 +177,15 @@ const EvalRequest_BindingsEntry$json = { /// Descriptor for `EvalRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List evalRequestDescriptor = $convert.base64Decode( - 'CgtFdmFsUmVxdWVzdBJHCgtwYXJzZWRfZXhwchgBIAEoCzIkLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5QYXJzZWRFeHBySABSCnBhcnNlZEV4cHISSgoMY2hlY2tlZF9leHByGAIgASgLMiUuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkNoZWNrZWRFeHBySABSC2NoZWNrZWRFeHByEk8KCGJpbmRpbmdzGAMgAygLMjMuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV2YWxSZXF1ZXN0LkJpbmRpbmdzRW50cnlSCGJpbmRpbmdzEhwKCWNvbnRhaW5lchgEIAEoCVIJY29udGFpbmVyGmAKDUJpbmRpbmdzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSOQoFdmFsdWUYAiABKAsyIy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclZhbHVlUgV2YWx1ZToCOAFCCwoJZXhwcl9raW5k'); + 'CgtFdmFsUmVxdWVzdBJHCgtwYXJzZWRfZXhwchgBIAEoCzIkLmdvb2dsZS5hcGkuZXhwci52MW' + 'FscGhhMS5QYXJzZWRFeHBySABSCnBhcnNlZEV4cHISSgoMY2hlY2tlZF9leHByGAIgASgLMiUu' + 'Z29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkNoZWNrZWRFeHBySABSC2NoZWNrZWRFeHByElsKCG' + 'JpbmRpbmdzGAMgAygLMj8uZ29vZ2xlLmFwaS5leHByLmNvbmZvcm1hbmNlLnYxYWxwaGExLkV2' + 'YWxSZXF1ZXN0LkJpbmRpbmdzRW50cnlSCGJpbmRpbmdzEhwKCWNvbnRhaW5lchgEIAEoCVIJY2' + '9udGFpbmVyGmAKDUJpbmRpbmdzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSOQoFdmFsdWUYAiAB' + 'KAsyIy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclZhbHVlUgV2YWx1ZToCOAFCCwoJZX' + 'hwcl9raW5k'); + @$core.Deprecated('Use evalResponseDescriptor instead') const EvalResponse$json = { '1': 'EvalResponse', @@ -186,7 +211,27 @@ const EvalResponse$json = { /// Descriptor for `EvalResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List evalResponseDescriptor = $convert.base64Decode( - 'CgxFdmFsUmVzcG9uc2USOwoGcmVzdWx0GAEgASgLMiMuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJWYWx1ZVIGcmVzdWx0EioKBmlzc3VlcxgCIAMoCzISLmdvb2dsZS5ycGMuU3RhdHVzUgZpc3N1ZXM='); + 'CgxFdmFsUmVzcG9uc2USOwoGcmVzdWx0GAEgASgLMiMuZ29vZ2xlLmFwaS5leHByLnYxYWxwaG' + 'ExLkV4cHJWYWx1ZVIGcmVzdWx0EioKBmlzc3VlcxgCIAMoCzISLmdvb2dsZS5ycGMuU3RhdHVz' + 'UgZpc3N1ZXM='); + +@$core.Deprecated('Use sourcePositionDescriptor instead') +const SourcePosition$json = { + '1': 'SourcePosition', + '2': [ + {'1': 'location', '3': 1, '4': 1, '5': 9, '10': 'location'}, + {'1': 'offset', '3': 2, '4': 1, '5': 5, '10': 'offset'}, + {'1': 'line', '3': 3, '4': 1, '5': 5, '10': 'line'}, + {'1': 'column', '3': 4, '4': 1, '5': 5, '10': 'column'}, + ], +}; + +/// Descriptor for `SourcePosition`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List sourcePositionDescriptor = $convert.base64Decode( + 'Cg5Tb3VyY2VQb3NpdGlvbhIaCghsb2NhdGlvbhgBIAEoCVIIbG9jYXRpb24SFgoGb2Zmc2V0GA' + 'IgASgFUgZvZmZzZXQSEgoEbGluZRgDIAEoBVIEbGluZRIWCgZjb2x1bW4YBCABKAVSBmNvbHVt' + 'bg=='); + @$core.Deprecated('Use issueDetailsDescriptor instead') const IssueDetails$json = { '1': 'IssueDetails', @@ -196,7 +241,7 @@ const IssueDetails$json = { '3': 1, '4': 1, '5': 14, - '6': '.google.api.expr.v1alpha1.IssueDetails.Severity', + '6': '.google.api.expr.conformance.v1alpha1.IssueDetails.Severity', '10': 'severity' }, { @@ -204,7 +249,7 @@ const IssueDetails$json = { '3': 2, '4': 1, '5': 11, - '6': '.google.api.expr.v1alpha1.SourcePosition', + '6': '.google.api.expr.conformance.v1alpha1.SourcePosition', '10': 'position' }, {'1': 'id', '3': 3, '4': 1, '5': 3, '10': 'id'}, @@ -225,4 +270,9 @@ const IssueDetails_Severity$json = { /// Descriptor for `IssueDetails`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List issueDetailsDescriptor = $convert.base64Decode( - 'CgxJc3N1ZURldGFpbHMSSwoIc2V2ZXJpdHkYASABKA4yLy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuSXNzdWVEZXRhaWxzLlNldmVyaXR5UghzZXZlcml0eRJECghwb3NpdGlvbhgCIAEoCzIoLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5Tb3VyY2VQb3NpdGlvblIIcG9zaXRpb24SDgoCaWQYAyABKANSAmlkIk0KCFNldmVyaXR5EhgKFFNFVkVSSVRZX1VOU1BFQ0lGSUVEEAASDwoLREVQUkVDQVRJT04QARILCgdXQVJOSU5HEAISCQoFRVJST1IQAw=='); + 'CgxJc3N1ZURldGFpbHMSVwoIc2V2ZXJpdHkYASABKA4yOy5nb29nbGUuYXBpLmV4cHIuY29uZm' + '9ybWFuY2UudjFhbHBoYTEuSXNzdWVEZXRhaWxzLlNldmVyaXR5UghzZXZlcml0eRJQCghwb3Np' + 'dGlvbhgCIAEoCzI0Lmdvb2dsZS5hcGkuZXhwci5jb25mb3JtYW5jZS52MWFscGhhMS5Tb3VyY2' + 'VQb3NpdGlvblIIcG9zaXRpb24SDgoCaWQYAyABKANSAmlkIk0KCFNldmVyaXR5EhgKFFNFVkVS' + 'SVRZX1VOU1BFQ0lGSUVEEAASDwoLREVQUkVDQVRJT04QARILCgdXQVJOSU5HEAISCQoFRVJST1' + 'IQAw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pb.dart index 28fbf83a..85b33475 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pb.dart @@ -1,79 +1,87 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/checked.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'syntax.pb.dart' as $0; import '../../../protobuf/empty.pb.dart' as $1; - -import '../../../protobuf/struct.pbenum.dart' as $2; +import '../../../protobuf/struct.pbenum.dart' as $48; import 'checked.pbenum.dart'; +import 'syntax.pb.dart' as $100; export 'checked.pbenum.dart'; +/// A CEL expression which has been successfully type checked. class CheckedExpr extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CheckedExpr', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..m<$fixnum.Int64, Reference>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'referenceMap', - entryClassName: 'CheckedExpr.ReferenceMapEntry', - keyFieldType: $pb.PbFieldType.O6, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: Reference.create, - packageName: const $pb.PackageName('google.api.expr.v1alpha1')) - ..m<$fixnum.Int64, Type>( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'typeMap', - entryClassName: 'CheckedExpr.TypeMapEntry', - keyFieldType: $pb.PbFieldType.O6, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: Type.create, - packageName: const $pb.PackageName('google.api.expr.v1alpha1')) - ..aOM<$0.Expr>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expr', - subBuilder: $0.Expr.create) - ..aOM<$0.SourceInfo>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sourceInfo', - subBuilder: $0.SourceInfo.create) - ..hasRequiredFields = false; - - CheckedExpr._() : super(); factory CheckedExpr({ $core.Map<$fixnum.Int64, Reference>? referenceMap, $core.Map<$fixnum.Int64, Type>? typeMap, - $0.Expr? expr, - $0.SourceInfo? sourceInfo, + $100.Expr? expr, + $100.SourceInfo? sourceInfo, + $core.String? exprVersion, }) { - final _result = create(); + final $result = create(); if (referenceMap != null) { - _result.referenceMap.addAll(referenceMap); + $result.referenceMap.addAll(referenceMap); } if (typeMap != null) { - _result.typeMap.addAll(typeMap); + $result.typeMap.addAll(typeMap); } if (expr != null) { - _result.expr = expr; + $result.expr = expr; } if (sourceInfo != null) { - _result.sourceInfo = sourceInfo; + $result.sourceInfo = sourceInfo; + } + if (exprVersion != null) { + $result.exprVersion = exprVersion; } - return _result; + return $result; } + CheckedExpr._() : super(); factory CheckedExpr.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CheckedExpr.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CheckedExpr', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..m<$fixnum.Int64, Reference>(2, _omitFieldNames ? '' : 'referenceMap', + entryClassName: 'CheckedExpr.ReferenceMapEntry', + keyFieldType: $pb.PbFieldType.O6, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: Reference.create, + valueDefaultOrMaker: Reference.getDefault, + packageName: const $pb.PackageName('google.api.expr.v1alpha1')) + ..m<$fixnum.Int64, Type>(3, _omitFieldNames ? '' : 'typeMap', + entryClassName: 'CheckedExpr.TypeMapEntry', + keyFieldType: $pb.PbFieldType.O6, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: Type.create, + valueDefaultOrMaker: Type.getDefault, + packageName: const $pb.PackageName('google.api.expr.v1alpha1')) + ..aOM<$100.Expr>(4, _omitFieldNames ? '' : 'expr', + subBuilder: $100.Expr.create) + ..aOM<$100.SourceInfo>(5, _omitFieldNames ? '' : 'sourceInfo', + subBuilder: $100.SourceInfo.create) + ..aOS(6, _omitFieldNames ? '' : 'exprVersion') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -83,8 +91,10 @@ class CheckedExpr extends $pb.GeneratedMessage { 'Will be removed in next major version') CheckedExpr copyWith(void Function(CheckedExpr) updates) => super.copyWith((message) => updates(message as CheckedExpr)) - as CheckedExpr; // ignore: deprecated_member_use + as CheckedExpr; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CheckedExpr create() => CheckedExpr._(); CheckedExpr createEmptyInstance() => create(); @@ -94,16 +104,38 @@ class CheckedExpr extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CheckedExpr? _defaultInstance; + /// A map from expression ids to resolved references. + /// + /// The following entries are in this table: + /// + /// - An Ident or Select expression is represented here if it resolves to a + /// declaration. For instance, if `a.b.c` is represented by + /// `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, + /// while `c` is a field selection, then the reference is attached to the + /// nested select expression (but not to the id or or the outer select). + /// In turn, if `a` resolves to a declaration and `b.c` are field selections, + /// the reference is attached to the ident expression. + /// - Every Call expression has an entry here, identifying the function being + /// called. + /// - Every CreateStruct expression for a message has an entry, identifying + /// the message. @$pb.TagNumber(2) $core.Map<$fixnum.Int64, Reference> get referenceMap => $_getMap(0); + /// A map from expression ids to types. + /// + /// Every expression node which has a type different than DYN has a mapping + /// here. If an expression has type DYN, it is omitted from this map to save + /// space. @$pb.TagNumber(3) $core.Map<$fixnum.Int64, Type> get typeMap => $_getMap(1); + /// The checked expression. Semantically equivalent to the parsed `expr`, but + /// may have structural differences. @$pb.TagNumber(4) - $0.Expr get expr => $_getN(2); + $100.Expr get expr => $_getN(2); @$pb.TagNumber(4) - set expr($0.Expr v) { + set expr($100.Expr v) { setField(4, v); } @@ -112,12 +144,14 @@ class CheckedExpr extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearExpr() => clearField(4); @$pb.TagNumber(4) - $0.Expr ensureExpr() => $_ensure(2); + $100.Expr ensureExpr() => $_ensure(2); + /// The source info derived from input that generated the parsed `expr` and + /// any optimizations made during the type-checking pass. @$pb.TagNumber(5) - $0.SourceInfo get sourceInfo => $_getN(3); + $100.SourceInfo get sourceInfo => $_getN(3); @$pb.TagNumber(5) - set sourceInfo($0.SourceInfo v) { + set sourceInfo($100.SourceInfo v) { setField(5, v); } @@ -126,43 +160,55 @@ class CheckedExpr extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearSourceInfo() => clearField(5); @$pb.TagNumber(5) - $0.SourceInfo ensureSourceInfo() => $_ensure(3); + $100.SourceInfo ensureSourceInfo() => $_ensure(3); + + /// The expr version indicates the major / minor version number of the `expr` + /// representation. + /// + /// The most common reason for a version change will be to indicate to the CEL + /// runtimes that transformations have been performed on the expr during static + /// analysis. In some cases, this will save the runtime the work of applying + /// the same or similar transformations prior to evaluation. + @$pb.TagNumber(6) + $core.String get exprVersion => $_getSZ(4); + @$pb.TagNumber(6) + set exprVersion($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(6) + $core.bool hasExprVersion() => $_has(4); + @$pb.TagNumber(6) + void clearExprVersion() => clearField(6); } +/// List type with typed elements, e.g. `list`. class Type_ListType extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Type.ListType', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'elemType', - subBuilder: Type.create) - ..hasRequiredFields = false; - - Type_ListType._() : super(); factory Type_ListType({ Type? elemType, }) { - final _result = create(); + final $result = create(); if (elemType != null) { - _result.elemType = elemType; + $result.elemType = elemType; } - return _result; + return $result; } + Type_ListType._() : super(); factory Type_ListType.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Type_ListType.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Type.ListType', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'elemType', subBuilder: Type.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') @@ -172,8 +218,10 @@ class Type_ListType extends $pb.GeneratedMessage { 'Will be removed in next major version') Type_ListType copyWith(void Function(Type_ListType) updates) => super.copyWith((message) => updates(message as Type_ListType)) - as Type_ListType; // ignore: deprecated_member_use + as Type_ListType; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Type_ListType create() => Type_ListType._(); Type_ListType createEmptyInstance() => create(); @@ -184,6 +232,7 @@ class Type_ListType extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Type_ListType? _defaultInstance; + /// The element type. @$pb.TagNumber(1) Type get elemType => $_getN(0); @$pb.TagNumber(1) @@ -199,47 +248,38 @@ class Type_ListType extends $pb.GeneratedMessage { Type ensureElemType() => $_ensure(0); } +/// Map type with parameterized key and value types, e.g. `map`. class Type_MapType extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Type.MapType', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'keyType', - subBuilder: Type.create) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'valueType', - subBuilder: Type.create) - ..hasRequiredFields = false; - - Type_MapType._() : super(); factory Type_MapType({ Type? keyType, Type? valueType, }) { - final _result = create(); + final $result = create(); if (keyType != null) { - _result.keyType = keyType; + $result.keyType = keyType; } if (valueType != null) { - _result.valueType = valueType; + $result.valueType = valueType; } - return _result; + return $result; } + Type_MapType._() : super(); factory Type_MapType.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Type_MapType.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Type.MapType', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'keyType', subBuilder: Type.create) + ..aOM(2, _omitFieldNames ? '' : 'valueType', subBuilder: Type.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') @@ -249,8 +289,10 @@ class Type_MapType extends $pb.GeneratedMessage { 'Will be removed in next major version') Type_MapType copyWith(void Function(Type_MapType) updates) => super.copyWith((message) => updates(message as Type_MapType)) - as Type_MapType; // ignore: deprecated_member_use + as Type_MapType; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Type_MapType create() => Type_MapType._(); Type_MapType createEmptyInstance() => create(); @@ -261,6 +303,7 @@ class Type_MapType extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Type_MapType? _defaultInstance; + /// The type of the key. @$pb.TagNumber(1) Type get keyType => $_getN(0); @$pb.TagNumber(1) @@ -275,6 +318,7 @@ class Type_MapType extends $pb.GeneratedMessage { @$pb.TagNumber(1) Type ensureKeyType() => $_ensure(0); + /// The type of the value. @$pb.TagNumber(2) Type get valueType => $_getN(1); @$pb.TagNumber(2) @@ -290,48 +334,39 @@ class Type_MapType extends $pb.GeneratedMessage { Type ensureValueType() => $_ensure(1); } +/// Function type with result and arg types. class Type_FunctionType extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Type.FunctionType', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resultType', - subBuilder: Type.create) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'argTypes', - $pb.PbFieldType.PM, - subBuilder: Type.create) - ..hasRequiredFields = false; - - Type_FunctionType._() : super(); factory Type_FunctionType({ Type? resultType, $core.Iterable? argTypes, }) { - final _result = create(); + final $result = create(); if (resultType != null) { - _result.resultType = resultType; + $result.resultType = resultType; } if (argTypes != null) { - _result.argTypes.addAll(argTypes); + $result.argTypes.addAll(argTypes); } - return _result; + return $result; } + Type_FunctionType._() : super(); factory Type_FunctionType.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Type_FunctionType.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Type.FunctionType', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'resultType', subBuilder: Type.create) + ..pc(2, _omitFieldNames ? '' : 'argTypes', $pb.PbFieldType.PM, + subBuilder: Type.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') @@ -341,8 +376,10 @@ class Type_FunctionType extends $pb.GeneratedMessage { 'Will be removed in next major version') Type_FunctionType copyWith(void Function(Type_FunctionType) updates) => super.copyWith((message) => updates(message as Type_FunctionType)) - as Type_FunctionType; // ignore: deprecated_member_use + as Type_FunctionType; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Type_FunctionType create() => Type_FunctionType._(); Type_FunctionType createEmptyInstance() => create(); @@ -353,6 +390,7 @@ class Type_FunctionType extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Type_FunctionType? _defaultInstance; + /// Result type of the function. @$pb.TagNumber(1) Type get resultType => $_getN(0); @$pb.TagNumber(1) @@ -367,54 +405,44 @@ class Type_FunctionType extends $pb.GeneratedMessage { @$pb.TagNumber(1) Type ensureResultType() => $_ensure(0); + /// Argument types of the function. @$pb.TagNumber(2) $core.List get argTypes => $_getList(1); } +/// Application defined abstract type. class Type_AbstractType extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Type.AbstractType', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parameterTypes', - $pb.PbFieldType.PM, - subBuilder: Type.create) - ..hasRequiredFields = false; - - Type_AbstractType._() : super(); factory Type_AbstractType({ $core.String? name, $core.Iterable? parameterTypes, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (parameterTypes != null) { - _result.parameterTypes.addAll(parameterTypes); + $result.parameterTypes.addAll(parameterTypes); } - return _result; + return $result; } + Type_AbstractType._() : super(); factory Type_AbstractType.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Type_AbstractType.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Type.AbstractType', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pc(2, _omitFieldNames ? '' : 'parameterTypes', $pb.PbFieldType.PM, + subBuilder: Type.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') @@ -424,8 +452,10 @@ class Type_AbstractType extends $pb.GeneratedMessage { 'Will be removed in next major version') Type_AbstractType copyWith(void Function(Type_AbstractType) updates) => super.copyWith((message) => updates(message as Type_AbstractType)) - as Type_AbstractType; // ignore: deprecated_member_use + as Type_AbstractType; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Type_AbstractType create() => Type_AbstractType._(); Type_AbstractType createEmptyInstance() => create(); @@ -436,6 +466,7 @@ class Type_AbstractType extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Type_AbstractType? _defaultInstance; + /// The fully qualified name of this abstract type. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -448,6 +479,7 @@ class Type_AbstractType extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Parameter types for this abstract type. @$pb.TagNumber(2) $core.List get parameterTypes => $_getList(1); } @@ -469,62 +501,11 @@ enum Type_TypeKind { notSet } +/// Represents a CEL type. class Type extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Type_TypeKind> _Type_TypeKindByTag = { - 1: Type_TypeKind.dyn, - 2: Type_TypeKind.null_2, - 3: Type_TypeKind.primitive, - 4: Type_TypeKind.wrapper, - 5: Type_TypeKind.wellKnown, - 6: Type_TypeKind.listType, - 7: Type_TypeKind.mapType, - 8: Type_TypeKind.function, - 9: Type_TypeKind.messageType, - 10: Type_TypeKind.typeParam, - 11: Type_TypeKind.type, - 12: Type_TypeKind.error, - 14: Type_TypeKind.abstractType, - 0: Type_TypeKind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Type', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]) - ..aOM<$1.Empty>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'dyn', - subBuilder: $1.Empty.create) - ..e<$2.NullValue>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'null', $pb.PbFieldType.OE, - defaultOrMaker: $2.NullValue.NULL_VALUE, - valueOf: $2.NullValue.valueOf, - enumValues: $2.NullValue.values) - ..e(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'primitive', $pb.PbFieldType.OE, - defaultOrMaker: Type_PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED, - valueOf: Type_PrimitiveType.valueOf, - enumValues: Type_PrimitiveType.values) - ..e(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'wrapper', $pb.PbFieldType.OE, - defaultOrMaker: Type_PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED, - valueOf: Type_PrimitiveType.valueOf, - enumValues: Type_PrimitiveType.values) - ..e( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'wellKnown', $pb.PbFieldType.OE, - defaultOrMaker: Type_WellKnownType.WELL_KNOWN_TYPE_UNSPECIFIED, - valueOf: Type_WellKnownType.valueOf, - enumValues: Type_WellKnownType.values) - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'listType', subBuilder: Type_ListType.create) - ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapType', subBuilder: Type_MapType.create) - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'function', subBuilder: Type_FunctionType.create) - ..aOS(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'messageType') - ..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'typeParam') - ..aOM(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'type', subBuilder: Type.create) - ..aOM<$1.Empty>(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'error', subBuilder: $1.Empty.create) - ..aOM(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'abstractType', subBuilder: Type_AbstractType.create) - ..hasRequiredFields = false; - - Type._() : super(); factory Type({ $1.Empty? dyn, - $2.NullValue? null_2, + $48.NullValue? null_2, Type_PrimitiveType? primitive, Type_PrimitiveType? wrapper, Type_WellKnownType? wellKnown, @@ -537,54 +518,114 @@ class Type extends $pb.GeneratedMessage { $1.Empty? error, Type_AbstractType? abstractType, }) { - final _result = create(); + final $result = create(); if (dyn != null) { - _result.dyn = dyn; + $result.dyn = dyn; } if (null_2 != null) { - _result.null_2 = null_2; + $result.null_2 = null_2; } if (primitive != null) { - _result.primitive = primitive; + $result.primitive = primitive; } if (wrapper != null) { - _result.wrapper = wrapper; + $result.wrapper = wrapper; } if (wellKnown != null) { - _result.wellKnown = wellKnown; + $result.wellKnown = wellKnown; } if (listType != null) { - _result.listType = listType; + $result.listType = listType; } if (mapType != null) { - _result.mapType = mapType; + $result.mapType = mapType; } if (function != null) { - _result.function = function; + $result.function = function; } if (messageType != null) { - _result.messageType = messageType; + $result.messageType = messageType; } if (typeParam != null) { - _result.typeParam = typeParam; + $result.typeParam = typeParam; } if (type != null) { - _result.type = type; + $result.type = type; } if (error != null) { - _result.error = error; + $result.error = error; } if (abstractType != null) { - _result.abstractType = abstractType; + $result.abstractType = abstractType; } - return _result; + return $result; } + Type._() : super(); factory Type.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Type.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Type_TypeKind> _Type_TypeKindByTag = { + 1: Type_TypeKind.dyn, + 2: Type_TypeKind.null_2, + 3: Type_TypeKind.primitive, + 4: Type_TypeKind.wrapper, + 5: Type_TypeKind.wellKnown, + 6: Type_TypeKind.listType, + 7: Type_TypeKind.mapType, + 8: Type_TypeKind.function, + 9: Type_TypeKind.messageType, + 10: Type_TypeKind.typeParam, + 11: Type_TypeKind.type, + 12: Type_TypeKind.error, + 14: Type_TypeKind.abstractType, + 0: Type_TypeKind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Type', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]) + ..aOM<$1.Empty>(1, _omitFieldNames ? '' : 'dyn', + subBuilder: $1.Empty.create) + ..e<$48.NullValue>(2, _omitFieldNames ? '' : 'null', $pb.PbFieldType.OE, + defaultOrMaker: $48.NullValue.NULL_VALUE, + valueOf: $48.NullValue.valueOf, + enumValues: $48.NullValue.values) + ..e( + 3, _omitFieldNames ? '' : 'primitive', $pb.PbFieldType.OE, + defaultOrMaker: Type_PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED, + valueOf: Type_PrimitiveType.valueOf, + enumValues: Type_PrimitiveType.values) + ..e( + 4, _omitFieldNames ? '' : 'wrapper', $pb.PbFieldType.OE, + defaultOrMaker: Type_PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED, + valueOf: Type_PrimitiveType.valueOf, + enumValues: Type_PrimitiveType.values) + ..e( + 5, _omitFieldNames ? '' : 'wellKnown', $pb.PbFieldType.OE, + defaultOrMaker: Type_WellKnownType.WELL_KNOWN_TYPE_UNSPECIFIED, + valueOf: Type_WellKnownType.valueOf, + enumValues: Type_WellKnownType.values) + ..aOM(6, _omitFieldNames ? '' : 'listType', + subBuilder: Type_ListType.create) + ..aOM(7, _omitFieldNames ? '' : 'mapType', + subBuilder: Type_MapType.create) + ..aOM(8, _omitFieldNames ? '' : 'function', + subBuilder: Type_FunctionType.create) + ..aOS(9, _omitFieldNames ? '' : 'messageType') + ..aOS(10, _omitFieldNames ? '' : 'typeParam') + ..aOM(11, _omitFieldNames ? '' : 'type', subBuilder: Type.create) + ..aOM<$1.Empty>(12, _omitFieldNames ? '' : 'error', + subBuilder: $1.Empty.create) + ..aOM(14, _omitFieldNames ? '' : 'abstractType', + subBuilder: Type_AbstractType.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') @@ -593,9 +634,10 @@ class Type extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Type copyWith(void Function(Type) updates) => - super.copyWith((message) => updates(message as Type)) - as Type; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Type)) as Type; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Type create() => Type._(); Type createEmptyInstance() => create(); @@ -608,6 +650,7 @@ class Type extends $pb.GeneratedMessage { Type_TypeKind whichTypeKind() => _Type_TypeKindByTag[$_whichOneof(0)]!; void clearTypeKind() => clearField($_whichOneof(0)); + /// Dynamic type. @$pb.TagNumber(1) $1.Empty get dyn => $_getN(0); @$pb.TagNumber(1) @@ -622,10 +665,11 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(1) $1.Empty ensureDyn() => $_ensure(0); + /// Null value. @$pb.TagNumber(2) - $2.NullValue get null_2 => $_getN(1); + $48.NullValue get null_2 => $_getN(1); @$pb.TagNumber(2) - set null_2($2.NullValue v) { + set null_2($48.NullValue v) { setField(2, v); } @@ -634,6 +678,7 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearNull_2() => clearField(2); + /// Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`. @$pb.TagNumber(3) Type_PrimitiveType get primitive => $_getN(2); @$pb.TagNumber(3) @@ -646,6 +691,7 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPrimitive() => clearField(3); + /// Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`. @$pb.TagNumber(4) Type_PrimitiveType get wrapper => $_getN(3); @$pb.TagNumber(4) @@ -658,6 +704,7 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearWrapper() => clearField(4); + /// Well-known protobuf type such as `google.protobuf.Timestamp`. @$pb.TagNumber(5) Type_WellKnownType get wellKnown => $_getN(4); @$pb.TagNumber(5) @@ -670,6 +717,7 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearWellKnown() => clearField(5); + /// Parameterized list with elements of `list_type`, e.g. `list`. @$pb.TagNumber(6) Type_ListType get listType => $_getN(5); @$pb.TagNumber(6) @@ -684,6 +732,7 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(6) Type_ListType ensureListType() => $_ensure(5); + /// Parameterized map with typed keys and values. @$pb.TagNumber(7) Type_MapType get mapType => $_getN(6); @$pb.TagNumber(7) @@ -698,6 +747,7 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(7) Type_MapType ensureMapType() => $_ensure(6); + /// Function type. @$pb.TagNumber(8) Type_FunctionType get function => $_getN(7); @$pb.TagNumber(8) @@ -712,6 +762,10 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(8) Type_FunctionType ensureFunction() => $_ensure(7); + /// Protocol buffer message type. + /// + /// The `message_type` string specifies the qualified message type name. For + /// example, `google.plus.Profile`. @$pb.TagNumber(9) $core.String get messageType => $_getSZ(8); @$pb.TagNumber(9) @@ -724,6 +778,11 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearMessageType() => clearField(9); + /// Type param type. + /// + /// The `type_param` string specifies the type parameter name, e.g. `list` + /// would be a `list_type` whose element type was a `type_param` type + /// named `E`. @$pb.TagNumber(10) $core.String get typeParam => $_getSZ(9); @$pb.TagNumber(10) @@ -736,6 +795,10 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearTypeParam() => clearField(10); + /// Type type. + /// + /// The `type` value specifies the target type. e.g. int is type with a + /// target type of `Primitive.INT`. @$pb.TagNumber(11) Type get type => $_getN(10); @$pb.TagNumber(11) @@ -750,6 +813,11 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(11) Type ensureType() => $_ensure(10); + /// Error type. + /// + /// During type-checking if an expression is an error, its type is propagated + /// as the `ERROR` type. This permits the type-checker to discover other + /// errors present in the expression. @$pb.TagNumber(12) $1.Empty get error => $_getN(11); @$pb.TagNumber(12) @@ -764,6 +832,7 @@ class Type extends $pb.GeneratedMessage { @$pb.TagNumber(12) $1.Empty ensureError() => $_ensure(11); + /// Abstract, application defined type. @$pb.TagNumber(14) Type_AbstractType get abstractType => $_getN(12); @$pb.TagNumber(14) @@ -779,52 +848,49 @@ class Type extends $pb.GeneratedMessage { Type_AbstractType ensureAbstractType() => $_ensure(12); } +/// Identifier declaration which specifies its type and optional `Expr` value. +/// +/// An identifier without a value is a declaration that must be provided at +/// evaluation time. An identifier with a value should resolve to a constant, +/// but may be used in conjunction with other identifiers bound at evaluation +/// time. class Decl_IdentDecl extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Decl.IdentDecl', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'type', - subBuilder: Type.create) - ..aOM<$0.Constant>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value', - subBuilder: $0.Constant.create) - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'doc') - ..hasRequiredFields = false; - - Decl_IdentDecl._() : super(); factory Decl_IdentDecl({ Type? type, - $0.Constant? value, + $100.Constant? value, $core.String? doc, }) { - final _result = create(); + final $result = create(); if (type != null) { - _result.type = type; + $result.type = type; } if (value != null) { - _result.value = value; + $result.value = value; } if (doc != null) { - _result.doc = doc; + $result.doc = doc; } - return _result; + return $result; } + Decl_IdentDecl._() : super(); factory Decl_IdentDecl.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Decl_IdentDecl.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Decl.IdentDecl', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'type', subBuilder: Type.create) + ..aOM<$100.Constant>(2, _omitFieldNames ? '' : 'value', + subBuilder: $100.Constant.create) + ..aOS(3, _omitFieldNames ? '' : 'doc') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -834,8 +900,10 @@ class Decl_IdentDecl extends $pb.GeneratedMessage { 'Will be removed in next major version') Decl_IdentDecl copyWith(void Function(Decl_IdentDecl) updates) => super.copyWith((message) => updates(message as Decl_IdentDecl)) - as Decl_IdentDecl; // ignore: deprecated_member_use + as Decl_IdentDecl; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Decl_IdentDecl create() => Decl_IdentDecl._(); Decl_IdentDecl createEmptyInstance() => create(); @@ -846,6 +914,7 @@ class Decl_IdentDecl extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Decl_IdentDecl? _defaultInstance; + /// Required. The type of the identifier. @$pb.TagNumber(1) Type get type => $_getN(0); @$pb.TagNumber(1) @@ -860,10 +929,12 @@ class Decl_IdentDecl extends $pb.GeneratedMessage { @$pb.TagNumber(1) Type ensureType() => $_ensure(0); + /// The constant value of the identifier. If not specified, the identifier + /// must be supplied at evaluation time. @$pb.TagNumber(2) - $0.Constant get value => $_getN(1); + $100.Constant get value => $_getN(1); @$pb.TagNumber(2) - set value($0.Constant v) { + set value($100.Constant v) { setField(2, v); } @@ -872,8 +943,9 @@ class Decl_IdentDecl extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearValue() => clearField(2); @$pb.TagNumber(2) - $0.Constant ensureValue() => $_ensure(1); + $100.Constant ensureValue() => $_ensure(1); + /// Documentation string for the identifier. @$pb.TagNumber(3) $core.String get doc => $_getSZ(2); @$pb.TagNumber(3) @@ -887,36 +959,17 @@ class Decl_IdentDecl extends $pb.GeneratedMessage { void clearDoc() => clearField(3); } +/// An overload indicates a function's parameter types and return type, and +/// may optionally include a function body described in terms of +/// [Expr][google.api.expr.v1alpha1.Expr] values. +/// +/// Functions overloads are declared in either a function or method +/// call-style. For methods, the `params[0]` is the expected type of the +/// target receiver. +/// +/// Overloads must have non-overlapping argument types after erasure of all +/// parameterized type variables (similar as type erasure in Java). class Decl_FunctionDecl_Overload extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Decl.FunctionDecl.Overload', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overloadId') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'params', - $pb.PbFieldType.PM, - subBuilder: Type.create) - ..pPS( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'typeParams') - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resultType', subBuilder: Type.create) - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'isInstanceFunction') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'doc') - ..hasRequiredFields = false; - - Decl_FunctionDecl_Overload._() : super(); factory Decl_FunctionDecl_Overload({ $core.String? overloadId, $core.Iterable? params, @@ -925,33 +978,49 @@ class Decl_FunctionDecl_Overload extends $pb.GeneratedMessage { $core.bool? isInstanceFunction, $core.String? doc, }) { - final _result = create(); + final $result = create(); if (overloadId != null) { - _result.overloadId = overloadId; + $result.overloadId = overloadId; } if (params != null) { - _result.params.addAll(params); + $result.params.addAll(params); } if (typeParams != null) { - _result.typeParams.addAll(typeParams); + $result.typeParams.addAll(typeParams); } if (resultType != null) { - _result.resultType = resultType; + $result.resultType = resultType; } if (isInstanceFunction != null) { - _result.isInstanceFunction = isInstanceFunction; + $result.isInstanceFunction = isInstanceFunction; } if (doc != null) { - _result.doc = doc; + $result.doc = doc; } - return _result; + return $result; } + Decl_FunctionDecl_Overload._() : super(); factory Decl_FunctionDecl_Overload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Decl_FunctionDecl_Overload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Decl.FunctionDecl.Overload', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'overloadId') + ..pc(2, _omitFieldNames ? '' : 'params', $pb.PbFieldType.PM, + subBuilder: Type.create) + ..pPS(3, _omitFieldNames ? '' : 'typeParams') + ..aOM(4, _omitFieldNames ? '' : 'resultType', subBuilder: Type.create) + ..aOB(5, _omitFieldNames ? '' : 'isInstanceFunction') + ..aOS(6, _omitFieldNames ? '' : 'doc') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -964,8 +1033,10 @@ class Decl_FunctionDecl_Overload extends $pb.GeneratedMessage { void Function(Decl_FunctionDecl_Overload) updates) => super.copyWith( (message) => updates(message as Decl_FunctionDecl_Overload)) - as Decl_FunctionDecl_Overload; // ignore: deprecated_member_use + as Decl_FunctionDecl_Overload; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Decl_FunctionDecl_Overload create() => Decl_FunctionDecl_Overload._(); Decl_FunctionDecl_Overload createEmptyInstance() => create(); @@ -976,6 +1047,12 @@ class Decl_FunctionDecl_Overload extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Decl_FunctionDecl_Overload? _defaultInstance; + /// Required. Globally unique overload name of the function which reflects + /// the function name and argument types. + /// + /// This will be used by a [Reference][google.api.expr.v1alpha1.Reference] + /// to indicate the `overload_id` that was resolved for the function + /// `name`. @$pb.TagNumber(1) $core.String get overloadId => $_getSZ(0); @$pb.TagNumber(1) @@ -988,12 +1065,29 @@ class Decl_FunctionDecl_Overload extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearOverloadId() => clearField(1); + /// List of function parameter [Type][google.api.expr.v1alpha1.Type] + /// values. + /// + /// Param types are disjoint after generic type parameters have been + /// replaced with the type `DYN`. Since the `DYN` type is compatible with + /// any other type, this means that if `A` is a type parameter, the + /// function types `int` and `int` are not disjoint. Likewise, + /// `map` is not disjoint from `map`. + /// + /// When the `result_type` of a function is a generic type param, the + /// type param name also appears as the `type` of on at least one params. @$pb.TagNumber(2) $core.List get params => $_getList(1); + /// The type param names associated with the function declaration. + /// + /// For example, `function ex(K key, map map) : V` would yield + /// the type params of `K, V`. @$pb.TagNumber(3) $core.List<$core.String> get typeParams => $_getList(2); + /// Required. The result type of the function. For example, the operator + /// `string.isEmpty()` would have `result_type` of `kind: BOOL`. @$pb.TagNumber(4) Type get resultType => $_getN(3); @$pb.TagNumber(4) @@ -1008,6 +1102,11 @@ class Decl_FunctionDecl_Overload extends $pb.GeneratedMessage { @$pb.TagNumber(4) Type ensureResultType() => $_ensure(3); + /// Whether the function is to be used in a method call-style `x.f(...)` + /// or a function call-style `f(x, ...)`. + /// + /// For methods, the first parameter declaration, `params[0]` is the + /// expected type of the target receiver. @$pb.TagNumber(5) $core.bool get isInstanceFunction => $_getBF(4); @$pb.TagNumber(5) @@ -1020,6 +1119,7 @@ class Decl_FunctionDecl_Overload extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearIsInstanceFunction() => clearField(5); + /// Documentation string for the overload. @$pb.TagNumber(6) $core.String get doc => $_getSZ(5); @$pb.TagNumber(6) @@ -1033,41 +1133,39 @@ class Decl_FunctionDecl_Overload extends $pb.GeneratedMessage { void clearDoc() => clearField(6); } +/// Function declaration specifies one or more overloads which indicate the +/// function's parameter types and return type. +/// +/// Functions have no observable side-effects (there may be side-effects like +/// logging which are not observable from CEL). class Decl_FunctionDecl extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Decl.FunctionDecl', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overloads', - $pb.PbFieldType.PM, - subBuilder: Decl_FunctionDecl_Overload.create) - ..hasRequiredFields = false; - - Decl_FunctionDecl._() : super(); factory Decl_FunctionDecl({ $core.Iterable? overloads, }) { - final _result = create(); + final $result = create(); if (overloads != null) { - _result.overloads.addAll(overloads); + $result.overloads.addAll(overloads); } - return _result; + return $result; } + Decl_FunctionDecl._() : super(); factory Decl_FunctionDecl.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Decl_FunctionDecl.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Decl.FunctionDecl', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'overloads', $pb.PbFieldType.PM, + subBuilder: Decl_FunctionDecl_Overload.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') @@ -1077,8 +1175,10 @@ class Decl_FunctionDecl extends $pb.GeneratedMessage { 'Will be removed in next major version') Decl_FunctionDecl copyWith(void Function(Decl_FunctionDecl) updates) => super.copyWith((message) => updates(message as Decl_FunctionDecl)) - as Decl_FunctionDecl; // ignore: deprecated_member_use + as Decl_FunctionDecl; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Decl_FunctionDecl create() => Decl_FunctionDecl._(); Decl_FunctionDecl createEmptyInstance() => create(); @@ -1089,65 +1189,61 @@ class Decl_FunctionDecl extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Decl_FunctionDecl? _defaultInstance; + /// Required. List of function overloads, must contain at least one overload. @$pb.TagNumber(1) $core.List get overloads => $_getList(0); } enum Decl_DeclKind { ident, function, notSet } +/// Represents a declaration of a named value or function. +/// +/// A declaration is part of the contract between the expression, the agent +/// evaluating that expression, and the caller requesting evaluation. class Decl extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Decl_DeclKind> _Decl_DeclKindByTag = { - 2: Decl_DeclKind.ident, - 3: Decl_DeclKind.function, - 0: Decl_DeclKind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Decl', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..oo(0, [2, 3]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ident', - subBuilder: Decl_IdentDecl.create) - ..aOM(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'function', - subBuilder: Decl_FunctionDecl.create) - ..hasRequiredFields = false; - - Decl._() : super(); factory Decl({ $core.String? name, Decl_IdentDecl? ident, Decl_FunctionDecl? function, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (ident != null) { - _result.ident = ident; + $result.ident = ident; } if (function != null) { - _result.function = function; + $result.function = function; } - return _result; + return $result; } + Decl._() : super(); factory Decl.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Decl.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Decl_DeclKind> _Decl_DeclKindByTag = { + 2: Decl_DeclKind.ident, + 3: Decl_DeclKind.function, + 0: Decl_DeclKind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Decl', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..oo(0, [2, 3]) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM(2, _omitFieldNames ? '' : 'ident', + subBuilder: Decl_IdentDecl.create) + ..aOM(3, _omitFieldNames ? '' : 'function', + subBuilder: Decl_FunctionDecl.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') @@ -1156,9 +1252,10 @@ class Decl extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Decl copyWith(void Function(Decl) updates) => - super.copyWith((message) => updates(message as Decl)) - as Decl; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Decl)) as Decl; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Decl create() => Decl._(); Decl createEmptyInstance() => create(); @@ -1171,6 +1268,16 @@ class Decl extends $pb.GeneratedMessage { Decl_DeclKind whichDeclKind() => _Decl_DeclKindByTag[$_whichOneof(0)]!; void clearDeclKind() => clearField($_whichOneof(0)); + /// The fully qualified name of the declaration. + /// + /// Declarations are organized in containers and this represents the full path + /// to the declaration in its container, as in `google.api.expr.Decl`. + /// + /// Declarations used as + /// [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] + /// parameters may or may not have a name depending on whether the overload is + /// function declaration or a function definition containing a result + /// [Expr][google.api.expr.v1alpha1.Expr]. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1183,6 +1290,7 @@ class Decl extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Identifier declaration. @$pb.TagNumber(2) Decl_IdentDecl get ident => $_getN(1); @$pb.TagNumber(2) @@ -1197,6 +1305,7 @@ class Decl extends $pb.GeneratedMessage { @$pb.TagNumber(2) Decl_IdentDecl ensureIdent() => $_ensure(1); + /// Function declaration. @$pb.TagNumber(3) Decl_FunctionDecl get function => $_getN(2); @$pb.TagNumber(3) @@ -1212,58 +1321,44 @@ class Decl extends $pb.GeneratedMessage { Decl_FunctionDecl ensureFunction() => $_ensure(2); } +/// Describes a resolved reference to a declaration. class Reference extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Reference', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pPS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overloadId') - ..aOM<$0.Constant>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value', - subBuilder: $0.Constant.create) - ..hasRequiredFields = false; - - Reference._() : super(); factory Reference({ $core.String? name, $core.Iterable<$core.String>? overloadId, - $0.Constant? value, + $100.Constant? value, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (overloadId != null) { - _result.overloadId.addAll(overloadId); + $result.overloadId.addAll(overloadId); } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + Reference._() : super(); factory Reference.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Reference.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Reference', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pPS(3, _omitFieldNames ? '' : 'overloadId') + ..aOM<$100.Constant>(4, _omitFieldNames ? '' : 'value', + subBuilder: $100.Constant.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') @@ -1272,9 +1367,10 @@ class Reference extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Reference copyWith(void Function(Reference) updates) => - super.copyWith((message) => updates(message as Reference)) - as Reference; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Reference)) as Reference; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Reference create() => Reference._(); Reference createEmptyInstance() => create(); @@ -1284,6 +1380,7 @@ class Reference extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Reference? _defaultInstance; + /// The fully qualified name of the declaration. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1296,13 +1393,24 @@ class Reference extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// For references to functions, this is a list of `Overload.overload_id` + /// values which match according to typing rules. + /// + /// If the list has more than one element, overload resolution among the + /// presented candidates must happen at runtime because of dynamic types. The + /// type checker attempts to narrow down this list as much as possible. + /// + /// Empty if this is not a reference to a + /// [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl]. @$pb.TagNumber(3) $core.List<$core.String> get overloadId => $_getList(1); + /// For references to constants, this may contain the value of the + /// constant if known at compile time. @$pb.TagNumber(4) - $0.Constant get value => $_getN(2); + $100.Constant get value => $_getN(2); @$pb.TagNumber(4) - set value($0.Constant v) { + set value($100.Constant v) { setField(4, v); } @@ -1311,5 +1419,9 @@ class Reference extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearValue() => clearField(4); @$pb.TagNumber(4) - $0.Constant ensureValue() => $_ensure(2); + $100.Constant ensureValue() => $_ensure(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pbenum.dart index b64cfcbd..78bc71c8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pbenum.dart @@ -1,33 +1,35 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/checked.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// CEL primitive types. class Type_PrimitiveType extends $pb.ProtobufEnum { static const Type_PrimitiveType PRIMITIVE_TYPE_UNSPECIFIED = Type_PrimitiveType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PRIMITIVE_TYPE_UNSPECIFIED'); - static const Type_PrimitiveType BOOL = Type_PrimitiveType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BOOL'); - static const Type_PrimitiveType INT64 = Type_PrimitiveType._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'INT64'); - static const Type_PrimitiveType UINT64 = Type_PrimitiveType._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'UINT64'); - static const Type_PrimitiveType DOUBLE = Type_PrimitiveType._(4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DOUBLE'); - static const Type_PrimitiveType STRING = Type_PrimitiveType._(5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'STRING'); - static const Type_PrimitiveType BYTES = Type_PrimitiveType._( - 6, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BYTES'); + 0, _omitEnumNames ? '' : 'PRIMITIVE_TYPE_UNSPECIFIED'); + static const Type_PrimitiveType BOOL = + Type_PrimitiveType._(1, _omitEnumNames ? '' : 'BOOL'); + static const Type_PrimitiveType INT64 = + Type_PrimitiveType._(2, _omitEnumNames ? '' : 'INT64'); + static const Type_PrimitiveType UINT64 = + Type_PrimitiveType._(3, _omitEnumNames ? '' : 'UINT64'); + static const Type_PrimitiveType DOUBLE = + Type_PrimitiveType._(4, _omitEnumNames ? '' : 'DOUBLE'); + static const Type_PrimitiveType STRING = + Type_PrimitiveType._(5, _omitEnumNames ? '' : 'STRING'); + static const Type_PrimitiveType BYTES = + Type_PrimitiveType._(6, _omitEnumNames ? '' : 'BYTES'); static const $core.List values = [ PRIMITIVE_TYPE_UNSPECIFIED, @@ -46,22 +48,17 @@ class Type_PrimitiveType extends $pb.ProtobufEnum { const Type_PrimitiveType._($core.int v, $core.String n) : super(v, n); } +/// Well-known protobuf types treated with first-class support in CEL. class Type_WellKnownType extends $pb.ProtobufEnum { static const Type_WellKnownType WELL_KNOWN_TYPE_UNSPECIFIED = Type_WellKnownType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'WELL_KNOWN_TYPE_UNSPECIFIED'); - static const Type_WellKnownType ANY = Type_WellKnownType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ANY'); - static const Type_WellKnownType TIMESTAMP = Type_WellKnownType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TIMESTAMP'); - static const Type_WellKnownType DURATION = Type_WellKnownType._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DURATION'); + 0, _omitEnumNames ? '' : 'WELL_KNOWN_TYPE_UNSPECIFIED'); + static const Type_WellKnownType ANY = + Type_WellKnownType._(1, _omitEnumNames ? '' : 'ANY'); + static const Type_WellKnownType TIMESTAMP = + Type_WellKnownType._(2, _omitEnumNames ? '' : 'TIMESTAMP'); + static const Type_WellKnownType DURATION = + Type_WellKnownType._(3, _omitEnumNames ? '' : 'DURATION'); static const $core.List values = [ WELL_KNOWN_TYPE_UNSPECIFIED, @@ -76,3 +73,5 @@ class Type_WellKnownType extends $pb.ProtobufEnum { const Type_WellKnownType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pbjson.dart index 926eadf5..cc5bebac 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/checked.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/checked.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 checkedExprDescriptor instead') @@ -37,6 +41,7 @@ const CheckedExpr$json = { '6': '.google.api.expr.v1alpha1.SourceInfo', '10': 'sourceInfo' }, + {'1': 'expr_version', '3': 6, '4': 1, '5': 9, '10': 'exprVersion'}, { '1': 'expr', '3': 4, @@ -85,7 +90,17 @@ const CheckedExpr_TypeMapEntry$json = { /// Descriptor for `CheckedExpr`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List checkedExprDescriptor = $convert.base64Decode( - 'CgtDaGVja2VkRXhwchJcCg1yZWZlcmVuY2VfbWFwGAIgAygLMjcuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkNoZWNrZWRFeHByLlJlZmVyZW5jZU1hcEVudHJ5UgxyZWZlcmVuY2VNYXASTQoIdHlwZV9tYXAYAyADKAsyMi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuQ2hlY2tlZEV4cHIuVHlwZU1hcEVudHJ5Ugd0eXBlTWFwEkUKC3NvdXJjZV9pbmZvGAUgASgLMiQuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlNvdXJjZUluZm9SCnNvdXJjZUluZm8SMgoEZXhwchgEIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5FeHByUgRleHByGmQKEVJlZmVyZW5jZU1hcEVudHJ5EhAKA2tleRgBIAEoA1IDa2V5EjkKBXZhbHVlGAIgASgLMiMuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlJlZmVyZW5jZVIFdmFsdWU6AjgBGloKDFR5cGVNYXBFbnRyeRIQCgNrZXkYASABKANSA2tleRI0CgV2YWx1ZRgCIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlUgV2YWx1ZToCOAE='); + 'CgtDaGVja2VkRXhwchJcCg1yZWZlcmVuY2VfbWFwGAIgAygLMjcuZ29vZ2xlLmFwaS5leHByLn' + 'YxYWxwaGExLkNoZWNrZWRFeHByLlJlZmVyZW5jZU1hcEVudHJ5UgxyZWZlcmVuY2VNYXASTQoI' + 'dHlwZV9tYXAYAyADKAsyMi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuQ2hlY2tlZEV4cHIuVH' + 'lwZU1hcEVudHJ5Ugd0eXBlTWFwEkUKC3NvdXJjZV9pbmZvGAUgASgLMiQuZ29vZ2xlLmFwaS5l' + 'eHByLnYxYWxwaGExLlNvdXJjZUluZm9SCnNvdXJjZUluZm8SIQoMZXhwcl92ZXJzaW9uGAYgAS' + 'gJUgtleHByVmVyc2lvbhIyCgRleHByGAQgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGEx' + 'LkV4cHJSBGV4cHIaZAoRUmVmZXJlbmNlTWFwRW50cnkSEAoDa2V5GAEgASgDUgNrZXkSOQoFdm' + 'FsdWUYAiABKAsyIy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuUmVmZXJlbmNlUgV2YWx1ZToC' + 'OAEaWgoMVHlwZU1hcEVudHJ5EhAKA2tleRgBIAEoA1IDa2V5EjQKBXZhbHVlGAIgASgLMh4uZ2' + '9vZ2xlLmFwaS5leHByLnYxYWxwaGExLlR5cGVSBXZhbHVlOgI4AQ=='); + @$core.Deprecated('Use typeDescriptor instead') const Type$json = { '1': 'Type', @@ -308,7 +323,34 @@ const Type_WellKnownType$json = { /// Descriptor for `Type`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List typeDescriptor = $convert.base64Decode( - 'CgRUeXBlEioKA2R5bhgBIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUgNkeW4SMAoEbnVsbBgCIAEoDjIaLmdvb2dsZS5wcm90b2J1Zi5OdWxsVmFsdWVIAFIEbnVsbBJMCglwcmltaXRpdmUYAyABKA4yLC5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuVHlwZS5QcmltaXRpdmVUeXBlSABSCXByaW1pdGl2ZRJICgd3cmFwcGVyGAQgASgOMiwuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlR5cGUuUHJpbWl0aXZlVHlwZUgAUgd3cmFwcGVyEk0KCndlbGxfa25vd24YBSABKA4yLC5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuVHlwZS5XZWxsS25vd25UeXBlSABSCXdlbGxLbm93bhJGCglsaXN0X3R5cGUYBiABKAsyJy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuVHlwZS5MaXN0VHlwZUgAUghsaXN0VHlwZRJDCghtYXBfdHlwZRgHIAEoCzImLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlLk1hcFR5cGVIAFIHbWFwVHlwZRJJCghmdW5jdGlvbhgIIAEoCzIrLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlLkZ1bmN0aW9uVHlwZUgAUghmdW5jdGlvbhIjCgxtZXNzYWdlX3R5cGUYCSABKAlIAFILbWVzc2FnZVR5cGUSHwoKdHlwZV9wYXJhbRgKIAEoCUgAUgl0eXBlUGFyYW0SNAoEdHlwZRgLIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlSABSBHR5cGUSLgoFZXJyb3IYDCABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlIAFIFZXJyb3ISUgoNYWJzdHJhY3RfdHlwZRgOIAEoCzIrLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlLkFic3RyYWN0VHlwZUgAUgxhYnN0cmFjdFR5cGUaRwoITGlzdFR5cGUSOwoJZWxlbV90eXBlGAEgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlR5cGVSCGVsZW1UeXBlGoMBCgdNYXBUeXBlEjkKCGtleV90eXBlGAEgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlR5cGVSB2tleVR5cGUSPQoKdmFsdWVfdHlwZRgCIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlUgl2YWx1ZVR5cGUajAEKDEZ1bmN0aW9uVHlwZRI/CgtyZXN1bHRfdHlwZRgBIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlUgpyZXN1bHRUeXBlEjsKCWFyZ190eXBlcxgCIAMoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlUghhcmdUeXBlcxprCgxBYnN0cmFjdFR5cGUSEgoEbmFtZRgBIAEoCVIEbmFtZRJHCg9wYXJhbWV0ZXJfdHlwZXMYAiADKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuVHlwZVIOcGFyYW1ldGVyVHlwZXMicwoNUHJpbWl0aXZlVHlwZRIeChpQUklNSVRJVkVfVFlQRV9VTlNQRUNJRklFRBAAEggKBEJPT0wQARIJCgVJTlQ2NBACEgoKBlVJTlQ2NBADEgoKBkRPVUJMRRAEEgoKBlNUUklORxAFEgkKBUJZVEVTEAYiVgoNV2VsbEtub3duVHlwZRIfChtXRUxMX0tOT1dOX1RZUEVfVU5TUEVDSUZJRUQQABIHCgNBTlkQARINCglUSU1FU1RBTVAQAhIMCghEVVJBVElPThADQgsKCXR5cGVfa2luZA=='); + 'CgRUeXBlEioKA2R5bhgBIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUgNkeW4SMAoEbn' + 'VsbBgCIAEoDjIaLmdvb2dsZS5wcm90b2J1Zi5OdWxsVmFsdWVIAFIEbnVsbBJMCglwcmltaXRp' + 'dmUYAyABKA4yLC5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuVHlwZS5QcmltaXRpdmVUeXBlSA' + 'BSCXByaW1pdGl2ZRJICgd3cmFwcGVyGAQgASgOMiwuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGEx' + 'LlR5cGUuUHJpbWl0aXZlVHlwZUgAUgd3cmFwcGVyEk0KCndlbGxfa25vd24YBSABKA4yLC5nb2' + '9nbGUuYXBpLmV4cHIudjFhbHBoYTEuVHlwZS5XZWxsS25vd25UeXBlSABSCXdlbGxLbm93bhJG' + 'CglsaXN0X3R5cGUYBiABKAsyJy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuVHlwZS5MaXN0VH' + 'lwZUgAUghsaXN0VHlwZRJDCghtYXBfdHlwZRgHIAEoCzImLmdvb2dsZS5hcGkuZXhwci52MWFs' + 'cGhhMS5UeXBlLk1hcFR5cGVIAFIHbWFwVHlwZRJJCghmdW5jdGlvbhgIIAEoCzIrLmdvb2dsZS' + '5hcGkuZXhwci52MWFscGhhMS5UeXBlLkZ1bmN0aW9uVHlwZUgAUghmdW5jdGlvbhIjCgxtZXNz' + 'YWdlX3R5cGUYCSABKAlIAFILbWVzc2FnZVR5cGUSHwoKdHlwZV9wYXJhbRgKIAEoCUgAUgl0eX' + 'BlUGFyYW0SNAoEdHlwZRgLIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlSABS' + 'BHR5cGUSLgoFZXJyb3IYDCABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlIAFIFZXJyb3ISUg' + 'oNYWJzdHJhY3RfdHlwZRgOIAEoCzIrLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlLkFi' + 'c3RyYWN0VHlwZUgAUgxhYnN0cmFjdFR5cGUaRwoITGlzdFR5cGUSOwoJZWxlbV90eXBlGAEgAS' + 'gLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlR5cGVSCGVsZW1UeXBlGoMBCgdNYXBUeXBl' + 'EjkKCGtleV90eXBlGAEgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlR5cGVSB2tleV' + 'R5cGUSPQoKdmFsdWVfdHlwZRgCIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBl' + 'Ugl2YWx1ZVR5cGUajAEKDEZ1bmN0aW9uVHlwZRI/CgtyZXN1bHRfdHlwZRgBIAEoCzIeLmdvb2' + 'dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlUgpyZXN1bHRUeXBlEjsKCWFyZ190eXBlcxgCIAMo' + 'CzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlUghhcmdUeXBlcxprCgxBYnN0cmFjdF' + 'R5cGUSEgoEbmFtZRgBIAEoCVIEbmFtZRJHCg9wYXJhbWV0ZXJfdHlwZXMYAiADKAsyHi5nb29n' + 'bGUuYXBpLmV4cHIudjFhbHBoYTEuVHlwZVIOcGFyYW1ldGVyVHlwZXMicwoNUHJpbWl0aXZlVH' + 'lwZRIeChpQUklNSVRJVkVfVFlQRV9VTlNQRUNJRklFRBAAEggKBEJPT0wQARIJCgVJTlQ2NBAC' + 'EgoKBlVJTlQ2NBADEgoKBkRPVUJMRRAEEgoKBlNUUklORxAFEgkKBUJZVEVTEAYiVgoNV2VsbE' + 'tub3duVHlwZRIfChtXRUxMX0tOT1dOX1RZUEVfVU5TUEVDSUZJRUQQABIHCgNBTlkQARINCglU' + 'SU1FU1RBTVAQAhIMCghEVVJBVElPThADQgsKCXR5cGVfa2luZA=='); + @$core.Deprecated('Use declDescriptor instead') const Decl$json = { '1': 'Decl', @@ -414,7 +456,20 @@ const Decl_FunctionDecl_Overload$json = { /// Descriptor for `Decl`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List declDescriptor = $convert.base64Decode( - 'CgREZWNsEhIKBG5hbWUYASABKAlSBG5hbWUSQAoFaWRlbnQYAiABKAsyKC5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRGVjbC5JZGVudERlY2xIAFIFaWRlbnQSSQoIZnVuY3Rpb24YAyABKAsyKy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRGVjbC5GdW5jdGlvbkRlY2xIAFIIZnVuY3Rpb24aiwEKCUlkZW50RGVjbBIyCgR0eXBlGAEgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlR5cGVSBHR5cGUSOAoFdmFsdWUYAiABKAsyIi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuQ29uc3RhbnRSBXZhbHVlEhAKA2RvYxgDIAEoCVIDZG9jGu4CCgxGdW5jdGlvbkRlY2wSUgoJb3ZlcmxvYWRzGAEgAygLMjQuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkRlY2wuRnVuY3Rpb25EZWNsLk92ZXJsb2FkUglvdmVybG9hZHMaiQIKCE92ZXJsb2FkEh8KC292ZXJsb2FkX2lkGAEgASgJUgpvdmVybG9hZElkEjYKBnBhcmFtcxgCIAMoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5UeXBlUgZwYXJhbXMSHwoLdHlwZV9wYXJhbXMYAyADKAlSCnR5cGVQYXJhbXMSPwoLcmVzdWx0X3R5cGUYBCABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuVHlwZVIKcmVzdWx0VHlwZRIwChRpc19pbnN0YW5jZV9mdW5jdGlvbhgFIAEoCFISaXNJbnN0YW5jZUZ1bmN0aW9uEhAKA2RvYxgGIAEoCVIDZG9jQgsKCWRlY2xfa2luZA=='); + 'CgREZWNsEhIKBG5hbWUYASABKAlSBG5hbWUSQAoFaWRlbnQYAiABKAsyKC5nb29nbGUuYXBpLm' + 'V4cHIudjFhbHBoYTEuRGVjbC5JZGVudERlY2xIAFIFaWRlbnQSSQoIZnVuY3Rpb24YAyABKAsy' + 'Ky5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRGVjbC5GdW5jdGlvbkRlY2xIAFIIZnVuY3Rpb2' + '4aiwEKCUlkZW50RGVjbBIyCgR0eXBlGAEgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGEx' + 'LlR5cGVSBHR5cGUSOAoFdmFsdWUYAiABKAsyIi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuQ2' + '9uc3RhbnRSBXZhbHVlEhAKA2RvYxgDIAEoCVIDZG9jGu4CCgxGdW5jdGlvbkRlY2wSUgoJb3Zl' + 'cmxvYWRzGAEgAygLMjQuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkRlY2wuRnVuY3Rpb25EZW' + 'NsLk92ZXJsb2FkUglvdmVybG9hZHMaiQIKCE92ZXJsb2FkEh8KC292ZXJsb2FkX2lkGAEgASgJ' + 'UgpvdmVybG9hZElkEjYKBnBhcmFtcxgCIAMoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS' + '5UeXBlUgZwYXJhbXMSHwoLdHlwZV9wYXJhbXMYAyADKAlSCnR5cGVQYXJhbXMSPwoLcmVzdWx0' + 'X3R5cGUYBCABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuVHlwZVIKcmVzdWx0VHlwZR' + 'IwChRpc19pbnN0YW5jZV9mdW5jdGlvbhgFIAEoCFISaXNJbnN0YW5jZUZ1bmN0aW9uEhAKA2Rv' + 'YxgGIAEoCVIDZG9jQgsKCWRlY2xfa2luZA=='); + @$core.Deprecated('Use referenceDescriptor instead') const Reference$json = { '1': 'Reference', @@ -434,4 +489,6 @@ const Reference$json = { /// Descriptor for `Reference`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List referenceDescriptor = $convert.base64Decode( - 'CglSZWZlcmVuY2USEgoEbmFtZRgBIAEoCVIEbmFtZRIfCgtvdmVybG9hZF9pZBgDIAMoCVIKb3ZlcmxvYWRJZBI4CgV2YWx1ZRgEIAEoCzIiLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5Db25zdGFudFIFdmFsdWU='); + 'CglSZWZlcmVuY2USEgoEbmFtZRgBIAEoCVIEbmFtZRIfCgtvdmVybG9hZF9pZBgDIAMoCVIKb3' + 'ZlcmxvYWRJZBI4CgV2YWx1ZRgEIAEoCzIiLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5Db25z' + 'dGFudFIFdmFsdWU='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pbenum.dart deleted file mode 100644 index c30f498a..00000000 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pbenum.dart +++ /dev/null @@ -1,42 +0,0 @@ -/// -// Generated code. Do not modify. -// source: google/api/expr/v1alpha1/conformance_service.proto -// -// @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields - -// ignore_for_file: UNDEFINED_SHOWN_NAME -import 'dart:core' as $core; -import 'package:protobuf/protobuf.dart' as $pb; - -class IssueDetails_Severity extends $pb.ProtobufEnum { - static const IssueDetails_Severity SEVERITY_UNSPECIFIED = - IssueDetails_Severity._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SEVERITY_UNSPECIFIED'); - static const IssueDetails_Severity DEPRECATION = IssueDetails_Severity._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DEPRECATION'); - static const IssueDetails_Severity WARNING = IssueDetails_Severity._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WARNING'); - static const IssueDetails_Severity ERROR = IssueDetails_Severity._( - 3, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ERROR'); - - static const $core.List values = - [ - SEVERITY_UNSPECIFIED, - DEPRECATION, - WARNING, - ERROR, - ]; - - static final $core.Map<$core.int, IssueDetails_Severity> _byValue = - $pb.ProtobufEnum.initByValue(values); - static IssueDetails_Severity? valueOf($core.int value) => _byValue[value]; - - const IssueDetails_Severity._($core.int v, $core.String n) : super(v, n); -} diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pbgrpc.dart deleted file mode 100644 index 45562cdb..00000000 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/conformance_service.pbgrpc.dart +++ /dev/null @@ -1,99 +0,0 @@ -/// -// Generated code. Do not modify. -// source: google/api/expr/v1alpha1/conformance_service.proto -// -// @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields - -import 'dart:async' as $async; - -import 'dart:core' as $core; - -import 'package:grpc/service_api.dart' as $grpc; -import 'conformance_service.pb.dart' as $0; -export 'conformance_service.pb.dart'; - -class ConformanceServiceClient extends $grpc.Client { - static final _$parse = $grpc.ClientMethod<$0.ParseRequest, $0.ParseResponse>( - '/google.api.expr.v1alpha1.ConformanceService/Parse', - ($0.ParseRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.ParseResponse.fromBuffer(value)); - static final _$check = $grpc.ClientMethod<$0.CheckRequest, $0.CheckResponse>( - '/google.api.expr.v1alpha1.ConformanceService/Check', - ($0.CheckRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.CheckResponse.fromBuffer(value)); - static final _$eval = $grpc.ClientMethod<$0.EvalRequest, $0.EvalResponse>( - '/google.api.expr.v1alpha1.ConformanceService/Eval', - ($0.EvalRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.EvalResponse.fromBuffer(value)); - - ConformanceServiceClient($grpc.ClientChannel channel, - {$grpc.CallOptions? options, - $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, interceptors: interceptors); - - $grpc.ResponseFuture<$0.ParseResponse> parse($0.ParseRequest request, - {$grpc.CallOptions? options}) { - return $createUnaryCall(_$parse, request, options: options); - } - - $grpc.ResponseFuture<$0.CheckResponse> check($0.CheckRequest request, - {$grpc.CallOptions? options}) { - return $createUnaryCall(_$check, request, options: options); - } - - $grpc.ResponseFuture<$0.EvalResponse> eval($0.EvalRequest request, - {$grpc.CallOptions? options}) { - return $createUnaryCall(_$eval, request, options: options); - } -} - -abstract class ConformanceServiceBase extends $grpc.Service { - $core.String get $name => 'google.api.expr.v1alpha1.ConformanceService'; - - ConformanceServiceBase() { - $addMethod($grpc.ServiceMethod<$0.ParseRequest, $0.ParseResponse>( - 'Parse', - parse_Pre, - false, - false, - ($core.List<$core.int> value) => $0.ParseRequest.fromBuffer(value), - ($0.ParseResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.CheckRequest, $0.CheckResponse>( - 'Check', - check_Pre, - false, - false, - ($core.List<$core.int> value) => $0.CheckRequest.fromBuffer(value), - ($0.CheckResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.EvalRequest, $0.EvalResponse>( - 'Eval', - eval_Pre, - false, - false, - ($core.List<$core.int> value) => $0.EvalRequest.fromBuffer(value), - ($0.EvalResponse value) => value.writeToBuffer())); - } - - $async.Future<$0.ParseResponse> parse_Pre( - $grpc.ServiceCall call, $async.Future<$0.ParseRequest> request) async { - return parse(call, await request); - } - - $async.Future<$0.CheckResponse> check_Pre( - $grpc.ServiceCall call, $async.Future<$0.CheckRequest> request) async { - return check(call, await request); - } - - $async.Future<$0.EvalResponse> eval_Pre( - $grpc.ServiceCall call, $async.Future<$0.EvalRequest> request) async { - return eval(call, await request); - } - - $async.Future<$0.ParseResponse> parse( - $grpc.ServiceCall call, $0.ParseRequest request); - $async.Future<$0.CheckResponse> check( - $grpc.ServiceCall call, $0.CheckRequest request); - $async.Future<$0.EvalResponse> eval( - $grpc.ServiceCall call, $0.EvalRequest request); -} diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pb.dart index 050d715c..5f7eddb7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pb.dart @@ -1,60 +1,54 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/eval.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'value.pb.dart' as $0; -import '../../../rpc/status.pb.dart' as $1; +import '../../../rpc/status.pb.dart' as $57; +import 'value.pb.dart' as $101; +/// A single evalution result. class EvalState_Result extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EvalState.Result', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'expr') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value') - ..hasRequiredFields = false; - - EvalState_Result._() : super(); factory EvalState_Result({ $fixnum.Int64? expr, $fixnum.Int64? value, }) { - final _result = create(); + final $result = create(); if (expr != null) { - _result.expr = expr; + $result.expr = expr; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + EvalState_Result._() : super(); factory EvalState_Result.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EvalState_Result.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EvalState.Result', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'expr') + ..aInt64(2, _omitFieldNames ? '' : 'value') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -64,8 +58,10 @@ class EvalState_Result extends $pb.GeneratedMessage { 'Will be removed in next major version') EvalState_Result copyWith(void Function(EvalState_Result) updates) => super.copyWith((message) => updates(message as EvalState_Result)) - as EvalState_Result; // ignore: deprecated_member_use + as EvalState_Result; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EvalState_Result create() => EvalState_Result._(); EvalState_Result createEmptyInstance() => create(); @@ -76,6 +72,7 @@ class EvalState_Result extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EvalState_Result? _defaultInstance; + /// The id of the expression this result if for. @$pb.TagNumber(1) $fixnum.Int64 get expr => $_getI64(0); @$pb.TagNumber(1) @@ -88,6 +85,7 @@ class EvalState_Result extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearExpr() => clearField(1); + /// The index in `values` of the resulting value. @$pb.TagNumber(2) $fixnum.Int64 get value => $_getI64(1); @$pb.TagNumber(2) @@ -101,46 +99,43 @@ class EvalState_Result extends $pb.GeneratedMessage { void clearValue() => clearField(2); } +/// The state of an evaluation. +/// +/// Can represent an inital, partial, or completed state of evaluation. class EvalState extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EvalState', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..pc( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'values', $pb.PbFieldType.PM, - subBuilder: ExprValue.create) - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'results', - $pb.PbFieldType.PM, - subBuilder: EvalState_Result.create) - ..hasRequiredFields = false; - - EvalState._() : super(); factory EvalState({ $core.Iterable? values, $core.Iterable? results, }) { - final _result = create(); + final $result = create(); if (values != null) { - _result.values.addAll(values); + $result.values.addAll(values); } if (results != null) { - _result.results.addAll(results); + $result.results.addAll(results); } - return _result; + return $result; } + EvalState._() : super(); factory EvalState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EvalState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EvalState', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: ExprValue.create) + ..pc( + 3, _omitFieldNames ? '' : 'results', $pb.PbFieldType.PM, + subBuilder: EvalState_Result.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') @@ -149,9 +144,10 @@ class EvalState extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') EvalState copyWith(void Function(EvalState) updates) => - super.copyWith((message) => updates(message as EvalState)) - as EvalState; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as EvalState)) as EvalState; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EvalState create() => EvalState._(); EvalState createEmptyInstance() => create(); @@ -161,67 +157,67 @@ class EvalState extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static EvalState? _defaultInstance; + /// The unique values referenced in this message. @$pb.TagNumber(1) $core.List get values => $_getList(0); + /// An ordered list of results. + /// + /// Tracks the flow of evaluation through the expression. + /// May be sparse. @$pb.TagNumber(3) $core.List get results => $_getList(1); } enum ExprValue_Kind { value, error, unknown, notSet } +/// The value of an evaluated expression. class ExprValue extends $pb.GeneratedMessage { - static const $core.Map<$core.int, ExprValue_Kind> _ExprValue_KindByTag = { - 1: ExprValue_Kind.value, - 2: ExprValue_Kind.error, - 3: ExprValue_Kind.unknown, - 0: ExprValue_Kind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ExprValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3]) - ..aOM<$0.Value>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', - subBuilder: $0.Value.create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'error', - subBuilder: ErrorSet.create) - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unknown', - subBuilder: UnknownSet.create) - ..hasRequiredFields = false; - - ExprValue._() : super(); factory ExprValue({ - $0.Value? value, + $101.Value? value, ErrorSet? error, UnknownSet? unknown, }) { - final _result = create(); + final $result = create(); if (value != null) { - _result.value = value; + $result.value = value; } if (error != null) { - _result.error = error; + $result.error = error; } if (unknown != null) { - _result.unknown = unknown; + $result.unknown = unknown; } - return _result; + return $result; } + ExprValue._() : super(); factory ExprValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ExprValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, ExprValue_Kind> _ExprValue_KindByTag = { + 1: ExprValue_Kind.value, + 2: ExprValue_Kind.error, + 3: ExprValue_Kind.unknown, + 0: ExprValue_Kind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExprValue', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3]) + ..aOM<$101.Value>(1, _omitFieldNames ? '' : 'value', + subBuilder: $101.Value.create) + ..aOM(2, _omitFieldNames ? '' : 'error', + subBuilder: ErrorSet.create) + ..aOM(3, _omitFieldNames ? '' : 'unknown', + subBuilder: UnknownSet.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') @@ -230,9 +226,10 @@ class ExprValue extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ExprValue copyWith(void Function(ExprValue) updates) => - super.copyWith((message) => updates(message as ExprValue)) - as ExprValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ExprValue)) as ExprValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ExprValue create() => ExprValue._(); ExprValue createEmptyInstance() => create(); @@ -245,10 +242,11 @@ class ExprValue extends $pb.GeneratedMessage { ExprValue_Kind whichKind() => _ExprValue_KindByTag[$_whichOneof(0)]!; void clearKind() => clearField($_whichOneof(0)); + /// A concrete value. @$pb.TagNumber(1) - $0.Value get value => $_getN(0); + $101.Value get value => $_getN(0); @$pb.TagNumber(1) - set value($0.Value v) { + set value($101.Value v) { setField(1, v); } @@ -257,8 +255,24 @@ class ExprValue extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearValue() => clearField(1); @$pb.TagNumber(1) - $0.Value ensureValue() => $_ensure(0); + $101.Value ensureValue() => $_ensure(0); + /// The set of errors in the critical path of evalution. + /// + /// Only errors in the critical path are included. For example, + /// `( || true) && ` will only result in ``, + /// while ` || ` will result in both `` and + /// ``. + /// + /// Errors cause by the presence of other errors are not included in the + /// set. For example `.foo`, `foo()`, and ` + 1` will + /// only result in ``. + /// + /// Multiple errors *might* be included when evaluation could result + /// in different errors. For example ` + ` and + /// `foo(, )` may result in ``, `` or both. + /// The exact subset of errors included for this case is unspecified and + /// depends on the implementation details of the evaluator. @$pb.TagNumber(2) ErrorSet get error => $_getN(1); @$pb.TagNumber(2) @@ -273,6 +287,30 @@ class ExprValue extends $pb.GeneratedMessage { @$pb.TagNumber(2) ErrorSet ensureError() => $_ensure(1); + /// The set of unknowns in the critical path of evaluation. + /// + /// Unknown behaves identically to Error with regards to propagation. + /// Specifically, only unknowns in the critical path are included, unknowns + /// caused by the presence of other unknowns are not included, and multiple + /// unknowns *might* be included included when evaluation could result in + /// different unknowns. For example: + /// + /// ( || true) && -> + /// || -> + /// .foo -> + /// foo() -> + /// + -> or + /// + /// Unknown takes precidence over Error in cases where a `Value` can short + /// circuit the result: + /// + /// || -> + /// && -> + /// + /// Errors take precidence in all other cases: + /// + /// + -> + /// foo(, ) -> @$pb.TagNumber(3) UnknownSet get unknown => $_getN(2); @$pb.TagNumber(3) @@ -288,41 +326,36 @@ class ExprValue extends $pb.GeneratedMessage { UnknownSet ensureUnknown() => $_ensure(2); } +/// A set of errors. +/// +/// The errors included depend on the context. See `ExprValue.error`. class ErrorSet extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ErrorSet', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..pc<$1.Status>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'errors', - $pb.PbFieldType.PM, - subBuilder: $1.Status.create) - ..hasRequiredFields = false; - - ErrorSet._() : super(); factory ErrorSet({ - $core.Iterable<$1.Status>? errors, + $core.Iterable<$57.Status>? errors, }) { - final _result = create(); + final $result = create(); if (errors != null) { - _result.errors.addAll(errors); + $result.errors.addAll(errors); } - return _result; + return $result; } + ErrorSet._() : super(); factory ErrorSet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ErrorSet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ErrorSet', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..pc<$57.Status>(1, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, + subBuilder: $57.Status.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') @@ -331,9 +364,10 @@ class ErrorSet extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ErrorSet copyWith(void Function(ErrorSet) updates) => - super.copyWith((message) => updates(message as ErrorSet)) - as ErrorSet; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ErrorSet)) as ErrorSet; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ErrorSet create() => ErrorSet._(); ErrorSet createEmptyInstance() => create(); @@ -343,44 +377,40 @@ class ErrorSet extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ErrorSet? _defaultInstance; + /// The errors in the set. @$pb.TagNumber(1) - $core.List<$1.Status> get errors => $_getList(0); + $core.List<$57.Status> get errors => $_getList(0); } +/// A set of expressions for which the value is unknown. +/// +/// The unknowns included depend on the context. See `ExprValue.unknown`. class UnknownSet extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UnknownSet', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..p<$fixnum.Int64>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'exprs', - $pb.PbFieldType.P6) - ..hasRequiredFields = false; - - UnknownSet._() : super(); factory UnknownSet({ $core.Iterable<$fixnum.Int64>? exprs, }) { - final _result = create(); + final $result = create(); if (exprs != null) { - _result.exprs.addAll(exprs); + $result.exprs.addAll(exprs); } - return _result; + return $result; } + UnknownSet._() : super(); factory UnknownSet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UnknownSet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UnknownSet', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..p<$fixnum.Int64>(1, _omitFieldNames ? '' : 'exprs', $pb.PbFieldType.K6) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -389,9 +419,10 @@ class UnknownSet extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') UnknownSet copyWith(void Function(UnknownSet) updates) => - super.copyWith((message) => updates(message as UnknownSet)) - as UnknownSet; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as UnknownSet)) as UnknownSet; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UnknownSet create() => UnknownSet._(); UnknownSet createEmptyInstance() => create(); @@ -401,6 +432,11 @@ class UnknownSet extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UnknownSet? _defaultInstance; + /// The ids of the expressions with unknown values. @$pb.TagNumber(1) $core.List<$fixnum.Int64> get exprs => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pbenum.dart index 2e3eccee..eb64ef1b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/eval.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pbjson.dart index 70b68d64..b9c8cfba 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/eval.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/eval.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 evalStateDescriptor instead') @@ -44,7 +48,11 @@ const EvalState_Result$json = { /// Descriptor for `EvalState`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List evalStateDescriptor = $convert.base64Decode( - 'CglFdmFsU3RhdGUSOwoGdmFsdWVzGAEgAygLMiMuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJWYWx1ZVIGdmFsdWVzEkQKB3Jlc3VsdHMYAyADKAsyKi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXZhbFN0YXRlLlJlc3VsdFIHcmVzdWx0cxoyCgZSZXN1bHQSEgoEZXhwchgBIAEoA1IEZXhwchIUCgV2YWx1ZRgCIAEoA1IFdmFsdWU='); + 'CglFdmFsU3RhdGUSOwoGdmFsdWVzGAEgAygLMiMuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLk' + 'V4cHJWYWx1ZVIGdmFsdWVzEkQKB3Jlc3VsdHMYAyADKAsyKi5nb29nbGUuYXBpLmV4cHIudjFh' + 'bHBoYTEuRXZhbFN0YXRlLlJlc3VsdFIHcmVzdWx0cxoyCgZSZXN1bHQSEgoEZXhwchgBIAEoA1' + 'IEZXhwchIUCgV2YWx1ZRgCIAEoA1IFdmFsdWU='); + @$core.Deprecated('Use exprValueDescriptor instead') const ExprValue$json = { '1': 'ExprValue', @@ -84,7 +92,11 @@ const ExprValue$json = { /// Descriptor for `ExprValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List exprValueDescriptor = $convert.base64Decode( - 'CglFeHByVmFsdWUSNwoFdmFsdWUYASABKAsyHy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuVmFsdWVIAFIFdmFsdWUSOgoFZXJyb3IYAiABKAsyIi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXJyb3JTZXRIAFIFZXJyb3ISQAoHdW5rbm93bhgDIAEoCzIkLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5Vbmtub3duU2V0SABSB3Vua25vd25CBgoEa2luZA=='); + 'CglFeHByVmFsdWUSNwoFdmFsdWUYASABKAsyHy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuVm' + 'FsdWVIAFIFdmFsdWUSOgoFZXJyb3IYAiABKAsyIi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEu' + 'RXJyb3JTZXRIAFIFZXJyb3ISQAoHdW5rbm93bhgDIAEoCzIkLmdvb2dsZS5hcGkuZXhwci52MW' + 'FscGhhMS5Vbmtub3duU2V0SABSB3Vua25vd25CBgoEa2luZA=='); + @$core.Deprecated('Use errorSetDescriptor instead') const ErrorSet$json = { '1': 'ErrorSet', @@ -103,6 +115,7 @@ const ErrorSet$json = { /// Descriptor for `ErrorSet`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List errorSetDescriptor = $convert.base64Decode( 'CghFcnJvclNldBIqCgZlcnJvcnMYASADKAsyEi5nb29nbGUucnBjLlN0YXR1c1IGZXJyb3Jz'); + @$core.Deprecated('Use unknownSetDescriptor instead') const UnknownSet$json = { '1': 'UnknownSet', diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pb.dart index 4b366812..0730aac9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pb.dart @@ -1,60 +1,53 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/explain.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'value.pb.dart' as $0; +import 'value.pb.dart' as $101; +/// ID and value index of one step. class Explain_ExprStep extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Explain.ExprStep', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'valueIndex', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - Explain_ExprStep._() : super(); factory Explain_ExprStep({ $fixnum.Int64? id, $core.int? valueIndex, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (valueIndex != null) { - _result.valueIndex = valueIndex; + $result.valueIndex = valueIndex; } - return _result; + return $result; } + Explain_ExprStep._() : super(); factory Explain_ExprStep.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Explain_ExprStep.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Explain.ExprStep', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'id') + ..a<$core.int>(2, _omitFieldNames ? '' : 'valueIndex', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -64,8 +57,10 @@ class Explain_ExprStep extends $pb.GeneratedMessage { 'Will be removed in next major version') Explain_ExprStep copyWith(void Function(Explain_ExprStep) updates) => super.copyWith((message) => updates(message as Explain_ExprStep)) - as Explain_ExprStep; // ignore: deprecated_member_use + as Explain_ExprStep; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Explain_ExprStep create() => Explain_ExprStep._(); Explain_ExprStep createEmptyInstance() => create(); @@ -76,6 +71,7 @@ class Explain_ExprStep extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Explain_ExprStep? _defaultInstance; + /// ID of corresponding Expr node. @$pb.TagNumber(1) $fixnum.Int64 get id => $_getI64(0); @$pb.TagNumber(1) @@ -88,6 +84,7 @@ class Explain_ExprStep extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// Index of the value in the values list. @$pb.TagNumber(2) $core.int get valueIndex => $_getIZ(1); @$pb.TagNumber(2) @@ -101,48 +98,42 @@ class Explain_ExprStep extends $pb.GeneratedMessage { void clearValueIndex() => clearField(2); } +/// Values of intermediate expressions produced when evaluating expression. +/// Deprecated, use `EvalState` instead. class Explain extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = - $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Explain', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..pc<$0.Value>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'values', - $pb.PbFieldType.PM, - subBuilder: $0.Value.create) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'exprSteps', - $pb.PbFieldType.PM, - subBuilder: Explain_ExprStep.create) - ..hasRequiredFields = false; - - Explain._() : super(); factory Explain({ - $core.Iterable<$0.Value>? values, + $core.Iterable<$101.Value>? values, $core.Iterable? exprSteps, }) { - final _result = create(); + final $result = create(); if (values != null) { - _result.values.addAll(values); + $result.values.addAll(values); } if (exprSteps != null) { - _result.exprSteps.addAll(exprSteps); + $result.exprSteps.addAll(exprSteps); } - return _result; + return $result; } + Explain._() : super(); factory Explain.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Explain.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Explain', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..pc<$101.Value>(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: $101.Value.create) + ..pc( + 2, _omitFieldNames ? '' : 'exprSteps', $pb.PbFieldType.PM, + subBuilder: Explain_ExprStep.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') @@ -151,9 +142,10 @@ class Explain extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Explain copyWith(void Function(Explain) updates) => - super.copyWith((message) => updates(message as Explain)) - as Explain; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Explain)) as Explain; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Explain create() => Explain._(); Explain createEmptyInstance() => create(); @@ -163,9 +155,22 @@ class Explain extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Explain? _defaultInstance; + /// All of the observed values. + /// + /// The field value_index is an index in the values list. + /// Separating values from steps is needed to remove redundant values. @$pb.TagNumber(1) - $core.List<$0.Value> get values => $_getList(0); + $core.List<$101.Value> get values => $_getList(0); + /// List of steps. + /// + /// Repeated evaluations of the same expression generate new ExprStep + /// instances. The order of such ExprStep instances matches the order of + /// elements returned by Comprehension.iter_range. @$pb.TagNumber(2) $core.List get exprSteps => $_getList(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pbenum.dart index b4021143..4a4b2310 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/explain.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pbjson.dart index cb532252..87863b11 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/explain.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/explain.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 explainDescriptor instead') @@ -45,4 +49,7 @@ const Explain_ExprStep$json = { /// Descriptor for `Explain`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List explainDescriptor = $convert.base64Decode( - 'CgdFeHBsYWluEjcKBnZhbHVlcxgBIAMoCzIfLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5WYWx1ZVIGdmFsdWVzEkkKCmV4cHJfc3RlcHMYAiADKAsyKi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwbGFpbi5FeHByU3RlcFIJZXhwclN0ZXBzGjsKCEV4cHJTdGVwEg4KAmlkGAEgASgDUgJpZBIfCgt2YWx1ZV9pbmRleBgCIAEoBVIKdmFsdWVJbmRleDoCGAE='); + 'CgdFeHBsYWluEjcKBnZhbHVlcxgBIAMoCzIfLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5WYW' + 'x1ZVIGdmFsdWVzEkkKCmV4cHJfc3RlcHMYAiADKAsyKi5nb29nbGUuYXBpLmV4cHIudjFhbHBo' + 'YTEuRXhwbGFpbi5FeHByU3RlcFIJZXhwclN0ZXBzGjsKCEV4cHJTdGVwEg4KAmlkGAEgASgDUg' + 'JpZBIfCgt2YWx1ZV9pbmRleBgCIAEoBVIKdmFsdWVJbmRleDoCGAE='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pb.dart index 18f633fe..642d6910 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pb.dart @@ -1,61 +1,59 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/syntax.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../protobuf/duration.pb.dart' as $0; -import '../../../protobuf/timestamp.pb.dart' as $1; +import '../../../protobuf/duration.pb.dart' as $51; +import '../../../protobuf/struct.pbenum.dart' as $48; +import '../../../protobuf/timestamp.pb.dart' as $50; +import 'syntax.pbenum.dart'; -import '../../../protobuf/struct.pbenum.dart' as $2; +export 'syntax.pbenum.dart'; +/// An expression together with source information as returned by the parser. class ParsedExpr extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ParsedExpr', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expr', - subBuilder: Expr.create) - ..aOM( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sourceInfo', - subBuilder: SourceInfo.create) - ..hasRequiredFields = false; - - ParsedExpr._() : super(); factory ParsedExpr({ Expr? expr, SourceInfo? sourceInfo, }) { - final _result = create(); + final $result = create(); if (expr != null) { - _result.expr = expr; + $result.expr = expr; } if (sourceInfo != null) { - _result.sourceInfo = sourceInfo; + $result.sourceInfo = sourceInfo; } - return _result; + return $result; } + ParsedExpr._() : super(); factory ParsedExpr.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ParsedExpr.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ParsedExpr', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOM(2, _omitFieldNames ? '' : 'expr', subBuilder: Expr.create) + ..aOM(3, _omitFieldNames ? '' : 'sourceInfo', + subBuilder: SourceInfo.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') @@ -64,9 +62,10 @@ class ParsedExpr extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ParsedExpr copyWith(void Function(ParsedExpr) updates) => - super.copyWith((message) => updates(message as ParsedExpr)) - as ParsedExpr; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ParsedExpr)) as ParsedExpr; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ParsedExpr create() => ParsedExpr._(); ParsedExpr createEmptyInstance() => create(); @@ -76,6 +75,7 @@ class ParsedExpr extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ParsedExpr? _defaultInstance; + /// The parsed expression. @$pb.TagNumber(2) Expr get expr => $_getN(0); @$pb.TagNumber(2) @@ -90,6 +90,7 @@ class ParsedExpr extends $pb.GeneratedMessage { @$pb.TagNumber(2) Expr ensureExpr() => $_ensure(0); + /// The source info derived from input that generated the parsed `expr`. @$pb.TagNumber(3) SourceInfo get sourceInfo => $_getN(1); @$pb.TagNumber(3) @@ -105,39 +106,33 @@ class ParsedExpr extends $pb.GeneratedMessage { SourceInfo ensureSourceInfo() => $_ensure(1); } +/// An identifier expression. e.g. `request`. class Expr_Ident extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.Ident', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - Expr_Ident._() : super(); factory Expr_Ident({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + Expr_Ident._() : super(); factory Expr_Ident.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_Ident.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.Ident', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -146,9 +141,10 @@ class Expr_Ident extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Expr_Ident copyWith(void Function(Expr_Ident) updates) => - super.copyWith((message) => updates(message as Expr_Ident)) - as Expr_Ident; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Expr_Ident)) as Expr_Ident; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_Ident create() => Expr_Ident._(); Expr_Ident createEmptyInstance() => create(); @@ -158,6 +154,11 @@ class Expr_Ident extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Expr_Ident? _defaultInstance; + /// Required. Holds a single, unqualified identifier, possibly preceded by a + /// '.'. + /// + /// Qualified names are represented by the + /// [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -171,54 +172,43 @@ class Expr_Ident extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// A field selection expression. e.g. `request.auth`. class Expr_Select extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.Select', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operand', - subBuilder: Expr.create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'field') - ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'testOnly') - ..hasRequiredFields = false; - - Expr_Select._() : super(); factory Expr_Select({ Expr? operand, $core.String? field_2, $core.bool? testOnly, }) { - final _result = create(); + final $result = create(); if (operand != null) { - _result.operand = operand; + $result.operand = operand; } if (field_2 != null) { - _result.field_2 = field_2; + $result.field_2 = field_2; } if (testOnly != null) { - _result.testOnly = testOnly; + $result.testOnly = testOnly; } - return _result; + return $result; } + Expr_Select._() : super(); factory Expr_Select.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_Select.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.Select', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'operand', subBuilder: Expr.create) + ..aOS(2, _omitFieldNames ? '' : 'field') + ..aOB(3, _omitFieldNames ? '' : 'testOnly') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -228,8 +218,10 @@ class Expr_Select extends $pb.GeneratedMessage { 'Will be removed in next major version') Expr_Select copyWith(void Function(Expr_Select) updates) => super.copyWith((message) => updates(message as Expr_Select)) - as Expr_Select; // ignore: deprecated_member_use + as Expr_Select; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_Select create() => Expr_Select._(); Expr_Select createEmptyInstance() => create(); @@ -239,6 +231,10 @@ class Expr_Select extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Expr_Select? _defaultInstance; + /// Required. The target of the selection expression. + /// + /// For example, in the select expression `request.auth`, the `request` + /// portion of the expression is the `operand`. @$pb.TagNumber(1) Expr get operand => $_getN(0); @$pb.TagNumber(1) @@ -253,6 +249,10 @@ class Expr_Select extends $pb.GeneratedMessage { @$pb.TagNumber(1) Expr ensureOperand() => $_ensure(0); + /// Required. The name of the field to select. + /// + /// For example, in the select expression `request.auth`, the `auth` portion + /// of the expression would be the `field`. @$pb.TagNumber(2) $core.String get field_2 => $_getSZ(1); @$pb.TagNumber(2) @@ -265,6 +265,9 @@ class Expr_Select extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearField_2() => clearField(2); + /// Whether the select is to be interpreted as a field presence test. + /// + /// This results from the macro `has(request.auth)`. @$pb.TagNumber(3) $core.bool get testOnly => $_getBF(2); @$pb.TagNumber(3) @@ -278,53 +281,46 @@ class Expr_Select extends $pb.GeneratedMessage { void clearTestOnly() => clearField(3); } +/// A call expression, including calls to predefined functions and operators. +/// +/// For example, `value == 10`, `size(map_value)`. class Expr_Call extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.Call', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'target', - subBuilder: Expr.create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'function') - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'args', - $pb.PbFieldType.PM, - subBuilder: Expr.create) - ..hasRequiredFields = false; - - Expr_Call._() : super(); factory Expr_Call({ Expr? target, $core.String? function, $core.Iterable? args, }) { - final _result = create(); + final $result = create(); if (target != null) { - _result.target = target; + $result.target = target; } if (function != null) { - _result.function = function; + $result.function = function; } if (args != null) { - _result.args.addAll(args); + $result.args.addAll(args); } - return _result; + return $result; } + Expr_Call._() : super(); factory Expr_Call.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_Call.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.Call', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'target', subBuilder: Expr.create) + ..aOS(2, _omitFieldNames ? '' : 'function') + ..pc(3, _omitFieldNames ? '' : 'args', $pb.PbFieldType.PM, + subBuilder: Expr.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') @@ -333,9 +329,10 @@ class Expr_Call extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Expr_Call copyWith(void Function(Expr_Call) updates) => - super.copyWith((message) => updates(message as Expr_Call)) - as Expr_Call; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Expr_Call)) as Expr_Call; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_Call create() => Expr_Call._(); Expr_Call createEmptyInstance() => create(); @@ -345,6 +342,8 @@ class Expr_Call extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Expr_Call? _defaultInstance; + /// The target of an method call-style expression. For example, `x` in + /// `x.f()`. @$pb.TagNumber(1) Expr get target => $_getN(0); @$pb.TagNumber(1) @@ -359,6 +358,7 @@ class Expr_Call extends $pb.GeneratedMessage { @$pb.TagNumber(1) Expr ensureTarget() => $_ensure(0); + /// Required. The name of the function or method being called. @$pb.TagNumber(2) $core.String get function => $_getSZ(1); @$pb.TagNumber(2) @@ -371,45 +371,48 @@ class Expr_Call extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearFunction() => clearField(2); + /// The arguments. @$pb.TagNumber(3) $core.List get args => $_getList(2); } +/// A list creation expression. +/// +/// Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g. +/// `dyn([1, 'hello', 2.0])` class Expr_CreateList extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.CreateList', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'elements', - $pb.PbFieldType.PM, - subBuilder: Expr.create) - ..hasRequiredFields = false; - - Expr_CreateList._() : super(); factory Expr_CreateList({ $core.Iterable? elements, + $core.Iterable<$core.int>? optionalIndices, }) { - final _result = create(); + final $result = create(); if (elements != null) { - _result.elements.addAll(elements); + $result.elements.addAll(elements); + } + if (optionalIndices != null) { + $result.optionalIndices.addAll(optionalIndices); } - return _result; + return $result; } + Expr_CreateList._() : super(); factory Expr_CreateList.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_CreateList.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.CreateList', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'elements', $pb.PbFieldType.PM, + subBuilder: Expr.create) + ..p<$core.int>( + 2, _omitFieldNames ? '' : 'optionalIndices', $pb.PbFieldType.K3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -419,8 +422,10 @@ class Expr_CreateList extends $pb.GeneratedMessage { 'Will be removed in next major version') Expr_CreateList copyWith(void Function(Expr_CreateList) updates) => super.copyWith((message) => updates(message as Expr_CreateList)) - as Expr_CreateList; // ignore: deprecated_member_use + as Expr_CreateList; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_CreateList create() => Expr_CreateList._(); Expr_CreateList createEmptyInstance() => create(); @@ -431,75 +436,76 @@ class Expr_CreateList extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Expr_CreateList? _defaultInstance; + /// The elements part of the list. @$pb.TagNumber(1) $core.List get elements => $_getList(0); + + /// The indices within the elements list which are marked as optional + /// elements. + /// + /// When an optional-typed value is present, the value it contains + /// is included in the list. If the optional-typed value is absent, the list + /// element is omitted from the CreateList result. + @$pb.TagNumber(2) + $core.List<$core.int> get optionalIndices => $_getList(1); } enum Expr_CreateStruct_Entry_KeyKind { fieldKey, mapKey, notSet } +/// Represents an entry. class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Expr_CreateStruct_Entry_KeyKind> - _Expr_CreateStruct_Entry_KeyKindByTag = { - 2: Expr_CreateStruct_Entry_KeyKind.fieldKey, - 3: Expr_CreateStruct_Entry_KeyKind.mapKey, - 0: Expr_CreateStruct_Entry_KeyKind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.CreateStruct.Entry', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..oo(0, [2, 3]) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fieldKey') - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapKey', - subBuilder: Expr.create) - ..aOM( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', - subBuilder: Expr.create) - ..hasRequiredFields = false; - - Expr_CreateStruct_Entry._() : super(); factory Expr_CreateStruct_Entry({ $fixnum.Int64? id, $core.String? fieldKey, Expr? mapKey, Expr? value, + $core.bool? optionalEntry, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (fieldKey != null) { - _result.fieldKey = fieldKey; + $result.fieldKey = fieldKey; } if (mapKey != null) { - _result.mapKey = mapKey; + $result.mapKey = mapKey; } if (value != null) { - _result.value = value; + $result.value = value; + } + if (optionalEntry != null) { + $result.optionalEntry = optionalEntry; } - return _result; + return $result; } + Expr_CreateStruct_Entry._() : super(); factory Expr_CreateStruct_Entry.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_CreateStruct_Entry.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Expr_CreateStruct_Entry_KeyKind> + _Expr_CreateStruct_Entry_KeyKindByTag = { + 2: Expr_CreateStruct_Entry_KeyKind.fieldKey, + 3: Expr_CreateStruct_Entry_KeyKind.mapKey, + 0: Expr_CreateStruct_Entry_KeyKind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.CreateStruct.Entry', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..oo(0, [2, 3]) + ..aInt64(1, _omitFieldNames ? '' : 'id') + ..aOS(2, _omitFieldNames ? '' : 'fieldKey') + ..aOM(3, _omitFieldNames ? '' : 'mapKey', subBuilder: Expr.create) + ..aOM(4, _omitFieldNames ? '' : 'value', subBuilder: Expr.create) + ..aOB(5, _omitFieldNames ? '' : 'optionalEntry') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -511,8 +517,10 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { Expr_CreateStruct_Entry copyWith( void Function(Expr_CreateStruct_Entry) updates) => super.copyWith((message) => updates(message as Expr_CreateStruct_Entry)) - as Expr_CreateStruct_Entry; // ignore: deprecated_member_use + as Expr_CreateStruct_Entry; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_CreateStruct_Entry create() => Expr_CreateStruct_Entry._(); Expr_CreateStruct_Entry createEmptyInstance() => create(); @@ -527,6 +535,9 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { _Expr_CreateStruct_Entry_KeyKindByTag[$_whichOneof(0)]!; void clearKeyKind() => clearField($_whichOneof(0)); + /// Required. An id assigned to this node by the parser which is unique + /// in a given expression tree. This is used to associate type + /// information and other attributes to the node. @$pb.TagNumber(1) $fixnum.Int64 get id => $_getI64(0); @$pb.TagNumber(1) @@ -539,6 +550,7 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// The field key for a message creator statement. @$pb.TagNumber(2) $core.String get fieldKey => $_getSZ(1); @$pb.TagNumber(2) @@ -551,6 +563,7 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearFieldKey() => clearField(2); + /// The key expression for a map creation statement. @$pb.TagNumber(3) Expr get mapKey => $_getN(2); @$pb.TagNumber(3) @@ -565,6 +578,11 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { @$pb.TagNumber(3) Expr ensureMapKey() => $_ensure(2); + /// Required. The value assigned to the key. + /// + /// If the optional_entry field is true, the expression must resolve to an + /// optional-typed value. If the optional value is present, the key will be + /// set; however, if the optional value is absent, the key will be unset. @$pb.TagNumber(4) Expr get value => $_getN(3); @$pb.TagNumber(4) @@ -578,52 +596,59 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { void clearValue() => clearField(4); @$pb.TagNumber(4) Expr ensureValue() => $_ensure(3); + + /// Whether the key-value pair is optional. + @$pb.TagNumber(5) + $core.bool get optionalEntry => $_getBF(4); + @$pb.TagNumber(5) + set optionalEntry($core.bool v) { + $_setBool(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasOptionalEntry() => $_has(4); + @$pb.TagNumber(5) + void clearOptionalEntry() => clearField(5); } +/// A map or message creation expression. +/// +/// Maps are constructed as `{'key_name': 'value'}`. Message construction is +/// similar, but prefixed with a type name and composed of field ids: +/// `types.MyType{field_id: 'value'}`. class Expr_CreateStruct extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.CreateStruct', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'messageName') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'entries', - $pb.PbFieldType.PM, - subBuilder: Expr_CreateStruct_Entry.create) - ..hasRequiredFields = false; - - Expr_CreateStruct._() : super(); factory Expr_CreateStruct({ $core.String? messageName, $core.Iterable? entries, }) { - final _result = create(); + final $result = create(); if (messageName != null) { - _result.messageName = messageName; + $result.messageName = messageName; } if (entries != null) { - _result.entries.addAll(entries); + $result.entries.addAll(entries); } - return _result; + return $result; } + Expr_CreateStruct._() : super(); factory Expr_CreateStruct.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_CreateStruct.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.CreateStruct', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'messageName') + ..pc( + 2, _omitFieldNames ? '' : 'entries', $pb.PbFieldType.PM, + subBuilder: Expr_CreateStruct_Entry.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') @@ -633,8 +658,10 @@ class Expr_CreateStruct extends $pb.GeneratedMessage { 'Will be removed in next major version') Expr_CreateStruct copyWith(void Function(Expr_CreateStruct) updates) => super.copyWith((message) => updates(message as Expr_CreateStruct)) - as Expr_CreateStruct; // ignore: deprecated_member_use + as Expr_CreateStruct; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_CreateStruct create() => Expr_CreateStruct._(); Expr_CreateStruct createEmptyInstance() => create(); @@ -645,6 +672,8 @@ class Expr_CreateStruct extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Expr_CreateStruct? _defaultInstance; + /// The type name of the message to be created, empty when creating map + /// literals. @$pb.TagNumber(1) $core.String get messageName => $_getSZ(0); @$pb.TagNumber(1) @@ -657,39 +686,68 @@ class Expr_CreateStruct extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMessageName() => clearField(1); + /// The entries in the creation expression. @$pb.TagNumber(2) $core.List get entries => $_getList(1); } +/// A comprehension expression applied to a list or map. +/// +/// Comprehensions are not part of the core syntax, but enabled with macros. +/// A macro matches a specific call signature within a parsed AST and replaces +/// the call with an alternate AST block. Macro expansion happens at parse +/// time. +/// +/// The following macros are supported within CEL: +/// +/// Aggregate type macros may be applied to all elements in a list or all keys +/// in a map: +/// +/// * `all`, `exists`, `exists_one` - test a predicate expression against +/// the inputs and return `true` if the predicate is satisfied for all, +/// any, or only one value `list.all(x, x < 10)`. +/// * `filter` - test a predicate expression against the inputs and return +/// the subset of elements which satisfy the predicate: +/// `payments.filter(p, p > 1000)`. +/// * `map` - apply an expression to all elements in the input and return the +/// output aggregate type: `[1, 2, 3].map(i, i * i)`. +/// +/// The `has(m.x)` macro tests whether the property `x` is present in struct +/// `m`. The semantics of this macro depend on the type of `m`. For proto2 +/// messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the +/// macro tests whether the property is set to its default. For map and struct +/// types, the macro tests whether the property `x` is defined on `m`. +/// +/// Comprehensions for the standard environment macros evaluation can be best +/// visualized as the following pseudocode: +/// +/// ``` +/// let `accu_var` = `accu_init` +/// for (let `iter_var` in `iter_range`) { +/// if (!`loop_condition`) { +/// break +/// } +/// `accu_var` = `loop_step` +/// } +/// return `result` +/// ``` +/// +/// Comprehensions for the optional V2 macros which support map-to-map +/// translation differ slightly from the standard environment macros in that +/// they expose both the key or index in addition to the value for each list +/// or map entry: +/// +/// ``` +/// let `accu_var` = `accu_init` +/// for (let `iter_var`, `iter_var2` in `iter_range`) { +/// if (!`loop_condition`) { +/// break +/// } +/// `accu_var` = `loop_step` +/// } +/// return `result` +/// ``` class Expr_Comprehension extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.Comprehension', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'iterVar') - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'iterRange', - subBuilder: Expr.create) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'accuVar') - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'accuInit', - subBuilder: Expr.create) - ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'loopCondition', subBuilder: Expr.create) - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'loopStep', subBuilder: Expr.create) - ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'result', subBuilder: Expr.create) - ..hasRequiredFields = false; - - Expr_Comprehension._() : super(); factory Expr_Comprehension({ $core.String? iterVar, Expr? iterRange, @@ -698,37 +756,59 @@ class Expr_Comprehension extends $pb.GeneratedMessage { Expr? loopCondition, Expr? loopStep, Expr? result, + $core.String? iterVar2, }) { - final _result = create(); + final $result = create(); if (iterVar != null) { - _result.iterVar = iterVar; + $result.iterVar = iterVar; } if (iterRange != null) { - _result.iterRange = iterRange; + $result.iterRange = iterRange; } if (accuVar != null) { - _result.accuVar = accuVar; + $result.accuVar = accuVar; } if (accuInit != null) { - _result.accuInit = accuInit; + $result.accuInit = accuInit; } if (loopCondition != null) { - _result.loopCondition = loopCondition; + $result.loopCondition = loopCondition; } if (loopStep != null) { - _result.loopStep = loopStep; + $result.loopStep = loopStep; } if (result != null) { - _result.result = result; + $result.result = result; } - return _result; + if (iterVar2 != null) { + $result.iterVar2 = iterVar2; + } + return $result; } + Expr_Comprehension._() : super(); factory Expr_Comprehension.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_Comprehension.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.Comprehension', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'iterVar') + ..aOM(2, _omitFieldNames ? '' : 'iterRange', subBuilder: Expr.create) + ..aOS(3, _omitFieldNames ? '' : 'accuVar') + ..aOM(4, _omitFieldNames ? '' : 'accuInit', subBuilder: Expr.create) + ..aOM(5, _omitFieldNames ? '' : 'loopCondition', + subBuilder: Expr.create) + ..aOM(6, _omitFieldNames ? '' : 'loopStep', subBuilder: Expr.create) + ..aOM(7, _omitFieldNames ? '' : 'result', subBuilder: Expr.create) + ..aOS(8, _omitFieldNames ? '' : 'iterVar2') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -738,8 +818,10 @@ class Expr_Comprehension extends $pb.GeneratedMessage { 'Will be removed in next major version') Expr_Comprehension copyWith(void Function(Expr_Comprehension) updates) => super.copyWith((message) => updates(message as Expr_Comprehension)) - as Expr_Comprehension; // ignore: deprecated_member_use + as Expr_Comprehension; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_Comprehension create() => Expr_Comprehension._(); Expr_Comprehension createEmptyInstance() => create(); @@ -750,6 +832,9 @@ class Expr_Comprehension extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Expr_Comprehension? _defaultInstance; + /// The name of the first iteration variable. + /// When the iter_range is a list, this variable is the list element. + /// When the iter_range is a map, this variable is the map entry key. @$pb.TagNumber(1) $core.String get iterVar => $_getSZ(0); @$pb.TagNumber(1) @@ -762,6 +847,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearIterVar() => clearField(1); + /// The range over which the comprehension iterates. @$pb.TagNumber(2) Expr get iterRange => $_getN(1); @$pb.TagNumber(2) @@ -776,6 +862,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(2) Expr ensureIterRange() => $_ensure(1); + /// The name of the variable used for accumulation of the result. @$pb.TagNumber(3) $core.String get accuVar => $_getSZ(2); @$pb.TagNumber(3) @@ -788,6 +875,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearAccuVar() => clearField(3); + /// The initial value of the accumulator. @$pb.TagNumber(4) Expr get accuInit => $_getN(3); @$pb.TagNumber(4) @@ -802,6 +890,10 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(4) Expr ensureAccuInit() => $_ensure(3); + /// An expression which can contain iter_var, iter_var2, and accu_var. + /// + /// Returns false when the result has been computed and may be used as + /// a hint to short-circuit the remainder of the comprehension. @$pb.TagNumber(5) Expr get loopCondition => $_getN(4); @$pb.TagNumber(5) @@ -816,6 +908,9 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(5) Expr ensureLoopCondition() => $_ensure(4); + /// An expression which can contain iter_var, iter_var2, and accu_var. + /// + /// Computes the next value of accu_var. @$pb.TagNumber(6) Expr get loopStep => $_getN(5); @$pb.TagNumber(6) @@ -830,6 +925,9 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(6) Expr ensureLoopStep() => $_ensure(5); + /// An expression which can contain accu_var. + /// + /// Computes the result. @$pb.TagNumber(7) Expr get result => $_getN(6); @$pb.TagNumber(7) @@ -843,6 +941,22 @@ class Expr_Comprehension extends $pb.GeneratedMessage { void clearResult() => clearField(7); @$pb.TagNumber(7) Expr ensureResult() => $_ensure(6); + + /// The name of the second iteration variable, empty if not set. + /// When the iter_range is a list, this variable is the integer index. + /// When the iter_range is a map, this variable is the map entry value. + /// This field is only set for comprehension v2 macros. + @$pb.TagNumber(8) + $core.String get iterVar2 => $_getSZ(7); + @$pb.TagNumber(8) + set iterVar2($core.String v) { + $_setString(7, v); + } + + @$pb.TagNumber(8) + $core.bool hasIterVar2() => $_has(7); + @$pb.TagNumber(8) + void clearIterVar2() => clearField(8); } enum Expr_ExprKind { @@ -856,46 +970,24 @@ enum Expr_ExprKind { notSet } +/// An abstract representation of a common expression. +/// +/// Expressions are abstractly represented as a collection of identifiers, +/// select statements, function calls, literals, and comprehensions. All +/// operators with the exception of the '.' operator are modelled as function +/// calls. This makes it easy to represent new operators into the existing AST. +/// +/// All references within expressions must resolve to a +/// [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an +/// expression to be valid. A reference may either be a bare identifier `name` or +/// a qualified identifier `google.api.name`. References may either refer to a +/// value or a function declaration. +/// +/// For example, the expression `google.api.name.startsWith('expr')` references +/// the declaration `google.api.name` within a +/// [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the +/// function declaration `startsWith`. class Expr extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Expr_ExprKind> _Expr_ExprKindByTag = { - 3: Expr_ExprKind.constExpr, - 4: Expr_ExprKind.identExpr, - 5: Expr_ExprKind.selectExpr, - 6: Expr_ExprKind.callExpr, - 7: Expr_ExprKind.listExpr, - 8: Expr_ExprKind.structExpr, - 9: Expr_ExprKind.comprehensionExpr, - 0: Expr_ExprKind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Expr', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..oo(0, [3, 4, 5, 6, 7, 8, 9]) - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOM(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'constExpr', - subBuilder: Constant.create) - ..aOM( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'identExpr', - subBuilder: Expr_Ident.create) - ..aOM( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'selectExpr', - subBuilder: Expr_Select.create) - ..aOM( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'callExpr', - subBuilder: Expr_Call.create) - ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'listExpr', subBuilder: Expr_CreateList.create) - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'structExpr', subBuilder: Expr_CreateStruct.create) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'comprehensionExpr', subBuilder: Expr_Comprehension.create) - ..hasRequiredFields = false; - - Expr._() : super(); factory Expr({ $fixnum.Int64? id, Constant? constExpr, @@ -906,39 +998,74 @@ class Expr extends $pb.GeneratedMessage { Expr_CreateStruct? structExpr, Expr_Comprehension? comprehensionExpr, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (constExpr != null) { - _result.constExpr = constExpr; + $result.constExpr = constExpr; } if (identExpr != null) { - _result.identExpr = identExpr; + $result.identExpr = identExpr; } if (selectExpr != null) { - _result.selectExpr = selectExpr; + $result.selectExpr = selectExpr; } if (callExpr != null) { - _result.callExpr = callExpr; + $result.callExpr = callExpr; } if (listExpr != null) { - _result.listExpr = listExpr; + $result.listExpr = listExpr; } if (structExpr != null) { - _result.structExpr = structExpr; + $result.structExpr = structExpr; } if (comprehensionExpr != null) { - _result.comprehensionExpr = comprehensionExpr; + $result.comprehensionExpr = comprehensionExpr; } - return _result; + return $result; } + Expr._() : super(); factory Expr.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Expr_ExprKind> _Expr_ExprKindByTag = { + 3: Expr_ExprKind.constExpr, + 4: Expr_ExprKind.identExpr, + 5: Expr_ExprKind.selectExpr, + 6: Expr_ExprKind.callExpr, + 7: Expr_ExprKind.listExpr, + 8: Expr_ExprKind.structExpr, + 9: Expr_ExprKind.comprehensionExpr, + 0: Expr_ExprKind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..oo(0, [3, 4, 5, 6, 7, 8, 9]) + ..aInt64(2, _omitFieldNames ? '' : 'id') + ..aOM(3, _omitFieldNames ? '' : 'constExpr', + subBuilder: Constant.create) + ..aOM(4, _omitFieldNames ? '' : 'identExpr', + subBuilder: Expr_Ident.create) + ..aOM(5, _omitFieldNames ? '' : 'selectExpr', + subBuilder: Expr_Select.create) + ..aOM(6, _omitFieldNames ? '' : 'callExpr', + subBuilder: Expr_Call.create) + ..aOM(7, _omitFieldNames ? '' : 'listExpr', + subBuilder: Expr_CreateList.create) + ..aOM(8, _omitFieldNames ? '' : 'structExpr', + subBuilder: Expr_CreateStruct.create) + ..aOM(9, _omitFieldNames ? '' : 'comprehensionExpr', + subBuilder: Expr_Comprehension.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') @@ -947,9 +1074,10 @@ class Expr extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Expr copyWith(void Function(Expr) updates) => - super.copyWith((message) => updates(message as Expr)) - as Expr; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Expr)) as Expr; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr create() => Expr._(); Expr createEmptyInstance() => create(); @@ -962,6 +1090,9 @@ class Expr extends $pb.GeneratedMessage { Expr_ExprKind whichExprKind() => _Expr_ExprKindByTag[$_whichOneof(0)]!; void clearExprKind() => clearField($_whichOneof(0)); + /// Required. An id assigned to this node by the parser which is unique in a + /// given expression tree. This is used to associate type information and other + /// attributes to a node in the parse tree. @$pb.TagNumber(2) $fixnum.Int64 get id => $_getI64(0); @$pb.TagNumber(2) @@ -974,6 +1105,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// A literal expression. @$pb.TagNumber(3) Constant get constExpr => $_getN(1); @$pb.TagNumber(3) @@ -988,6 +1120,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(3) Constant ensureConstExpr() => $_ensure(1); + /// An identifier expression. @$pb.TagNumber(4) Expr_Ident get identExpr => $_getN(2); @$pb.TagNumber(4) @@ -1002,6 +1135,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(4) Expr_Ident ensureIdentExpr() => $_ensure(2); + /// A field selection expression, e.g. `request.auth`. @$pb.TagNumber(5) Expr_Select get selectExpr => $_getN(3); @$pb.TagNumber(5) @@ -1016,6 +1150,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(5) Expr_Select ensureSelectExpr() => $_ensure(3); + /// A call expression, including calls to predefined functions and operators. @$pb.TagNumber(6) Expr_Call get callExpr => $_getN(4); @$pb.TagNumber(6) @@ -1030,6 +1165,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(6) Expr_Call ensureCallExpr() => $_ensure(4); + /// A list creation expression. @$pb.TagNumber(7) Expr_CreateList get listExpr => $_getN(5); @$pb.TagNumber(7) @@ -1044,6 +1180,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(7) Expr_CreateList ensureListExpr() => $_ensure(5); + /// A map or message creation expression. @$pb.TagNumber(8) Expr_CreateStruct get structExpr => $_getN(6); @$pb.TagNumber(8) @@ -1058,6 +1195,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(8) Expr_CreateStruct ensureStructExpr() => $_ensure(6); + /// A comprehension expression. @$pb.TagNumber(9) Expr_Comprehension get comprehensionExpr => $_getN(7); @$pb.TagNumber(9) @@ -1086,100 +1224,113 @@ enum Constant_ConstantKind { notSet } +/// Represents a primitive literal. +/// +/// Named 'Constant' here for backwards compatibility. +/// +/// This is similar as the primitives supported in the well-known type +/// `google.protobuf.Value`, but richer so it can represent CEL's full range of +/// primitives. +/// +/// Lists and structs are not included as constants as these aggregate types may +/// contain [Expr][google.api.expr.v1alpha1.Expr] elements which require +/// evaluation and are thus not constant. +/// +/// Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`, +/// `true`, `null`. class Constant extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Constant_ConstantKind> - _Constant_ConstantKindByTag = { - 1: Constant_ConstantKind.nullValue, - 2: Constant_ConstantKind.boolValue, - 3: Constant_ConstantKind.int64Value, - 4: Constant_ConstantKind.uint64Value, - 5: Constant_ConstantKind.doubleValue, - 6: Constant_ConstantKind.stringValue, - 7: Constant_ConstantKind.bytesValue, - 8: Constant_ConstantKind.durationValue, - 9: Constant_ConstantKind.timestampValue, - 0: Constant_ConstantKind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Constant', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 9]) - ..e<$2.NullValue>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nullValue', - $pb.PbFieldType.OE, - defaultOrMaker: $2.NullValue.NULL_VALUE, - valueOf: $2.NullValue.valueOf, - enumValues: $2.NullValue.values) - ..aOB(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'boolValue') - ..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'int64Value') - ..a<$fixnum.Int64>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uint64Value', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'doubleValue', $pb.PbFieldType.OD) - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stringValue') - ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bytesValue', $pb.PbFieldType.OY) - ..aOM<$0.Duration>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'durationValue', subBuilder: $0.Duration.create) - ..aOM<$1.Timestamp>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timestampValue', subBuilder: $1.Timestamp.create) - ..hasRequiredFields = false; - - Constant._() : super(); factory Constant({ - $2.NullValue? nullValue, + $48.NullValue? nullValue, $core.bool? boolValue, $fixnum.Int64? int64Value, $fixnum.Int64? uint64Value, $core.double? doubleValue, $core.String? stringValue, $core.List<$core.int>? bytesValue, - @$core.Deprecated('This field is deprecated.') $0.Duration? durationValue, - @$core.Deprecated('This field is deprecated.') $1.Timestamp? timestampValue, + @$core.Deprecated('This field is deprecated.') $51.Duration? durationValue, + @$core.Deprecated('This field is deprecated.') + $50.Timestamp? timestampValue, }) { - final _result = create(); + final $result = create(); if (nullValue != null) { - _result.nullValue = nullValue; + $result.nullValue = nullValue; } if (boolValue != null) { - _result.boolValue = boolValue; + $result.boolValue = boolValue; } if (int64Value != null) { - _result.int64Value = int64Value; + $result.int64Value = int64Value; } if (uint64Value != null) { - _result.uint64Value = uint64Value; + $result.uint64Value = uint64Value; } if (doubleValue != null) { - _result.doubleValue = doubleValue; + $result.doubleValue = doubleValue; } if (stringValue != null) { - _result.stringValue = stringValue; + $result.stringValue = stringValue; } if (bytesValue != null) { - _result.bytesValue = bytesValue; + $result.bytesValue = bytesValue; } if (durationValue != null) { // ignore: deprecated_member_use_from_same_package - _result.durationValue = durationValue; + $result.durationValue = durationValue; } if (timestampValue != null) { // ignore: deprecated_member_use_from_same_package - _result.timestampValue = timestampValue; + $result.timestampValue = timestampValue; } - return _result; + return $result; } + Constant._() : super(); factory Constant.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Constant.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Constant_ConstantKind> + _Constant_ConstantKindByTag = { + 1: Constant_ConstantKind.nullValue, + 2: Constant_ConstantKind.boolValue, + 3: Constant_ConstantKind.int64Value, + 4: Constant_ConstantKind.uint64Value, + 5: Constant_ConstantKind.doubleValue, + 6: Constant_ConstantKind.stringValue, + 7: Constant_ConstantKind.bytesValue, + 8: Constant_ConstantKind.durationValue, + 9: Constant_ConstantKind.timestampValue, + 0: Constant_ConstantKind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Constant', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 9]) + ..e<$48.NullValue>( + 1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, + defaultOrMaker: $48.NullValue.NULL_VALUE, + valueOf: $48.NullValue.valueOf, + enumValues: $48.NullValue.values) + ..aOB(2, _omitFieldNames ? '' : 'boolValue') + ..aInt64(3, _omitFieldNames ? '' : 'int64Value') + ..a<$fixnum.Int64>( + 4, _omitFieldNames ? '' : 'uint64Value', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 5, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD) + ..aOS(6, _omitFieldNames ? '' : 'stringValue') + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'bytesValue', $pb.PbFieldType.OY) + ..aOM<$51.Duration>(8, _omitFieldNames ? '' : 'durationValue', + subBuilder: $51.Duration.create) + ..aOM<$50.Timestamp>(9, _omitFieldNames ? '' : 'timestampValue', + subBuilder: $50.Timestamp.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') @@ -1188,9 +1339,10 @@ class Constant extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Constant copyWith(void Function(Constant) updates) => - super.copyWith((message) => updates(message as Constant)) - as Constant; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Constant)) as Constant; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Constant create() => Constant._(); Constant createEmptyInstance() => create(); @@ -1204,10 +1356,11 @@ class Constant extends $pb.GeneratedMessage { _Constant_ConstantKindByTag[$_whichOneof(0)]!; void clearConstantKind() => clearField($_whichOneof(0)); + /// null value. @$pb.TagNumber(1) - $2.NullValue get nullValue => $_getN(0); + $48.NullValue get nullValue => $_getN(0); @$pb.TagNumber(1) - set nullValue($2.NullValue v) { + set nullValue($48.NullValue v) { setField(1, v); } @@ -1216,6 +1369,7 @@ class Constant extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearNullValue() => clearField(1); + /// boolean value. @$pb.TagNumber(2) $core.bool get boolValue => $_getBF(1); @$pb.TagNumber(2) @@ -1228,6 +1382,7 @@ class Constant extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearBoolValue() => clearField(2); + /// int64 value. @$pb.TagNumber(3) $fixnum.Int64 get int64Value => $_getI64(2); @$pb.TagNumber(3) @@ -1240,6 +1395,7 @@ class Constant extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearInt64Value() => clearField(3); + /// uint64 value. @$pb.TagNumber(4) $fixnum.Int64 get uint64Value => $_getI64(3); @$pb.TagNumber(4) @@ -1252,6 +1408,7 @@ class Constant extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUint64Value() => clearField(4); + /// double value. @$pb.TagNumber(5) $core.double get doubleValue => $_getN(4); @$pb.TagNumber(5) @@ -1264,6 +1421,7 @@ class Constant extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearDoubleValue() => clearField(5); + /// string value. @$pb.TagNumber(6) $core.String get stringValue => $_getSZ(5); @$pb.TagNumber(6) @@ -1276,6 +1434,7 @@ class Constant extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearStringValue() => clearField(6); + /// bytes value. @$pb.TagNumber(7) $core.List<$core.int> get bytesValue => $_getN(6); @$pb.TagNumber(7) @@ -1288,12 +1447,15 @@ class Constant extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearBytesValue() => clearField(7); + /// protobuf.Duration value. + /// + /// Deprecated: duration is no longer considered a builtin cel type. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(8) - $0.Duration get durationValue => $_getN(7); + $51.Duration get durationValue => $_getN(7); @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(8) - set durationValue($0.Duration v) { + set durationValue($51.Duration v) { setField(8, v); } @@ -1305,14 +1467,17 @@ class Constant extends $pb.GeneratedMessage { void clearDurationValue() => clearField(8); @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(8) - $0.Duration ensureDurationValue() => $_ensure(7); + $51.Duration ensureDurationValue() => $_ensure(7); + /// protobuf.Timestamp value. + /// + /// Deprecated: timestamp is no longer considered a builtin cel type. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(9) - $1.Timestamp get timestampValue => $_getN(8); + $50.Timestamp get timestampValue => $_getN(8); @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(9) - set timestampValue($1.Timestamp v) { + set timestampValue($50.Timestamp v) { setField(9, v); } @@ -1324,79 +1489,265 @@ class Constant extends $pb.GeneratedMessage { void clearTimestampValue() => clearField(9); @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(9) - $1.Timestamp ensureTimestampValue() => $_ensure(8); + $50.Timestamp ensureTimestampValue() => $_ensure(8); } -class SourceInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = - $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SourceInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'syntaxVersion') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'location') - ..p<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'lineOffsets', - $pb.PbFieldType.P3) - ..m<$fixnum.Int64, $core.int>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'positions', - entryClassName: 'SourceInfo.PositionsEntry', - keyFieldType: $pb.PbFieldType.O6, - valueFieldType: $pb.PbFieldType.O3, - packageName: const $pb.PackageName('google.api.expr.v1alpha1')) - ..m<$fixnum.Int64, Expr>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'macroCalls', - entryClassName: 'SourceInfo.MacroCallsEntry', - keyFieldType: $pb.PbFieldType.O6, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: Expr.create, - packageName: const $pb.PackageName('google.api.expr.v1alpha1')) - ..hasRequiredFields = false; +/// Version +class SourceInfo_Extension_Version extends $pb.GeneratedMessage { + factory SourceInfo_Extension_Version({ + $fixnum.Int64? major, + $fixnum.Int64? minor, + }) { + final $result = create(); + if (major != null) { + $result.major = major; + } + if (minor != null) { + $result.minor = minor; + } + return $result; + } + SourceInfo_Extension_Version._() : super(); + factory SourceInfo_Extension_Version.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SourceInfo_Extension_Version.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); - SourceInfo._() : super(); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceInfo.Extension.Version', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'major') + ..aInt64(2, _omitFieldNames ? '' : 'minor') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SourceInfo_Extension_Version clone() => + SourceInfo_Extension_Version()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SourceInfo_Extension_Version copyWith( + void Function(SourceInfo_Extension_Version) updates) => + super.copyWith( + (message) => updates(message as SourceInfo_Extension_Version)) + as SourceInfo_Extension_Version; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SourceInfo_Extension_Version create() => + SourceInfo_Extension_Version._(); + SourceInfo_Extension_Version createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SourceInfo_Extension_Version getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static SourceInfo_Extension_Version? _defaultInstance; + + /// Major version changes indicate different required support level from + /// the required components. + @$pb.TagNumber(1) + $fixnum.Int64 get major => $_getI64(0); + @$pb.TagNumber(1) + set major($fixnum.Int64 v) { + $_setInt64(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasMajor() => $_has(0); + @$pb.TagNumber(1) + void clearMajor() => clearField(1); + + /// Minor version changes must not change the observed behavior from + /// existing implementations, but may be provided informationally. + @$pb.TagNumber(2) + $fixnum.Int64 get minor => $_getI64(1); + @$pb.TagNumber(2) + set minor($fixnum.Int64 v) { + $_setInt64(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasMinor() => $_has(1); + @$pb.TagNumber(2) + void clearMinor() => clearField(2); +} + +/// An extension that was requested for the source expression. +class SourceInfo_Extension extends $pb.GeneratedMessage { + factory SourceInfo_Extension({ + $core.String? id, + $core.Iterable? affectedComponents, + SourceInfo_Extension_Version? version, + }) { + final $result = create(); + if (id != null) { + $result.id = id; + } + if (affectedComponents != null) { + $result.affectedComponents.addAll(affectedComponents); + } + if (version != null) { + $result.version = version; + } + return $result; + } + SourceInfo_Extension._() : super(); + factory SourceInfo_Extension.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory SourceInfo_Extension.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceInfo.Extension', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'id') + ..pc( + 2, _omitFieldNames ? '' : 'affectedComponents', $pb.PbFieldType.KE, + valueOf: SourceInfo_Extension_Component.valueOf, + enumValues: SourceInfo_Extension_Component.values, + defaultEnumValue: SourceInfo_Extension_Component.COMPONENT_UNSPECIFIED) + ..aOM(3, _omitFieldNames ? '' : 'version', + subBuilder: SourceInfo_Extension_Version.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') + SourceInfo_Extension clone() => + SourceInfo_Extension()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SourceInfo_Extension copyWith(void Function(SourceInfo_Extension) updates) => + super.copyWith((message) => updates(message as SourceInfo_Extension)) + as SourceInfo_Extension; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static SourceInfo_Extension create() => SourceInfo_Extension._(); + SourceInfo_Extension createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static SourceInfo_Extension getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static SourceInfo_Extension? _defaultInstance; + + /// Identifier for the extension. Example: constant_folding + @$pb.TagNumber(1) + $core.String get id => $_getSZ(0); + @$pb.TagNumber(1) + set id($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasId() => $_has(0); + @$pb.TagNumber(1) + void clearId() => clearField(1); + + /// If set, the listed components must understand the extension for the + /// expression to evaluate correctly. + /// + /// This field has set semantics, repeated values should be deduplicated. + @$pb.TagNumber(2) + $core.List get affectedComponents => + $_getList(1); + + /// Version info. May be skipped if it isn't meaningful for the extension. + /// (for example constant_folding might always be v0.0). + @$pb.TagNumber(3) + SourceInfo_Extension_Version get version => $_getN(2); + @$pb.TagNumber(3) + set version(SourceInfo_Extension_Version v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasVersion() => $_has(2); + @$pb.TagNumber(3) + void clearVersion() => clearField(3); + @$pb.TagNumber(3) + SourceInfo_Extension_Version ensureVersion() => $_ensure(2); +} + +/// Source information collected at parse time. +class SourceInfo extends $pb.GeneratedMessage { factory SourceInfo({ $core.String? syntaxVersion, $core.String? location, $core.Iterable<$core.int>? lineOffsets, $core.Map<$fixnum.Int64, $core.int>? positions, $core.Map<$fixnum.Int64, Expr>? macroCalls, + $core.Iterable? extensions, }) { - final _result = create(); + final $result = create(); if (syntaxVersion != null) { - _result.syntaxVersion = syntaxVersion; + $result.syntaxVersion = syntaxVersion; } if (location != null) { - _result.location = location; + $result.location = location; } if (lineOffsets != null) { - _result.lineOffsets.addAll(lineOffsets); + $result.lineOffsets.addAll(lineOffsets); } if (positions != null) { - _result.positions.addAll(positions); + $result.positions.addAll(positions); } if (macroCalls != null) { - _result.macroCalls.addAll(macroCalls); + $result.macroCalls.addAll(macroCalls); } - return _result; + if (extensions != null) { + $result.extensions.addAll(extensions); + } + return $result; } + SourceInfo._() : super(); factory SourceInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SourceInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'syntaxVersion') + ..aOS(2, _omitFieldNames ? '' : 'location') + ..p<$core.int>(3, _omitFieldNames ? '' : 'lineOffsets', $pb.PbFieldType.K3) + ..m<$fixnum.Int64, $core.int>(4, _omitFieldNames ? '' : 'positions', + entryClassName: 'SourceInfo.PositionsEntry', + keyFieldType: $pb.PbFieldType.O6, + valueFieldType: $pb.PbFieldType.O3, + packageName: const $pb.PackageName('google.api.expr.v1alpha1')) + ..m<$fixnum.Int64, Expr>(5, _omitFieldNames ? '' : 'macroCalls', + entryClassName: 'SourceInfo.MacroCallsEntry', + keyFieldType: $pb.PbFieldType.O6, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: Expr.create, + valueDefaultOrMaker: Expr.getDefault, + packageName: const $pb.PackageName('google.api.expr.v1alpha1')) + ..pc( + 6, _omitFieldNames ? '' : 'extensions', $pb.PbFieldType.PM, + subBuilder: SourceInfo_Extension.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') @@ -1405,9 +1756,10 @@ class SourceInfo extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') SourceInfo copyWith(void Function(SourceInfo) updates) => - super.copyWith((message) => updates(message as SourceInfo)) - as SourceInfo; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as SourceInfo)) as SourceInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SourceInfo create() => SourceInfo._(); SourceInfo createEmptyInstance() => create(); @@ -1417,6 +1769,7 @@ class SourceInfo extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SourceInfo? _defaultInstance; + /// The syntax version of the source, e.g. `cel1`. @$pb.TagNumber(1) $core.String get syntaxVersion => $_getSZ(0); @$pb.TagNumber(1) @@ -1429,6 +1782,11 @@ class SourceInfo extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSyntaxVersion() => clearField(1); + /// The location name. All position information attached to an expression is + /// relative to this location. + /// + /// The location could be a file, UI element, or similar. For example, + /// `acme/app/AnvilPolicy.cel`. @$pb.TagNumber(2) $core.String get location => $_getSZ(1); @$pb.TagNumber(2) @@ -1441,74 +1799,84 @@ class SourceInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearLocation() => clearField(2); + /// Monotonically increasing list of code point offsets where newlines + /// `\n` appear. + /// + /// The line number of a given position is the index `i` where for a given + /// `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The + /// column may be derivd from `id_positions[id] - line_offsets[i]`. @$pb.TagNumber(3) $core.List<$core.int> get lineOffsets => $_getList(2); + /// A map from the parse node id (e.g. `Expr.id`) to the code point offset + /// within the source. @$pb.TagNumber(4) $core.Map<$fixnum.Int64, $core.int> get positions => $_getMap(3); + /// A map from the parse node id where a macro replacement was made to the + /// call `Expr` that resulted in a macro expansion. + /// + /// For example, `has(value.field)` is a function call that is replaced by a + /// `test_only` field selection in the AST. Likewise, the call + /// `list.exists(e, e > 10)` translates to a comprehension expression. The key + /// in the map corresponds to the expression id of the expanded macro, and the + /// value is the call `Expr` that was replaced. @$pb.TagNumber(5) $core.Map<$fixnum.Int64, Expr> get macroCalls => $_getMap(4); + + /// A list of tags for extensions that were used while parsing or type checking + /// the source expression. For example, optimizations that require special + /// runtime support may be specified. + /// + /// These are used to check feature support between components in separate + /// implementations. This can be used to either skip redundant work or + /// report an error if the extension is unsupported. + @$pb.TagNumber(6) + $core.List get extensions => $_getList(5); } +/// A specific position in source. class SourcePosition extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SourcePosition', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'location') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'offset', - $pb.PbFieldType.O3) - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'line', - $pb.PbFieldType.O3) - ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'column', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - SourcePosition._() : super(); factory SourcePosition({ $core.String? location, $core.int? offset, $core.int? line, $core.int? column, }) { - final _result = create(); + final $result = create(); if (location != null) { - _result.location = location; + $result.location = location; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } if (line != null) { - _result.line = line; + $result.line = line; } if (column != null) { - _result.column = column; + $result.column = column; } - return _result; + return $result; } + SourcePosition._() : super(); factory SourcePosition.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SourcePosition.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourcePosition', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'location') + ..a<$core.int>(2, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'line', $pb.PbFieldType.O3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'column', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1518,8 +1886,10 @@ class SourcePosition extends $pb.GeneratedMessage { 'Will be removed in next major version') SourcePosition copyWith(void Function(SourcePosition) updates) => super.copyWith((message) => updates(message as SourcePosition)) - as SourcePosition; // ignore: deprecated_member_use + as SourcePosition; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SourcePosition create() => SourcePosition._(); SourcePosition createEmptyInstance() => create(); @@ -1530,6 +1900,7 @@ class SourcePosition extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SourcePosition? _defaultInstance; + /// The soucre location name (e.g. file name). @$pb.TagNumber(1) $core.String get location => $_getSZ(0); @$pb.TagNumber(1) @@ -1542,6 +1913,7 @@ class SourcePosition extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearLocation() => clearField(1); + /// The UTF-8 code unit offset. @$pb.TagNumber(2) $core.int get offset => $_getIZ(1); @$pb.TagNumber(2) @@ -1554,6 +1926,8 @@ class SourcePosition extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOffset() => clearField(2); + /// The 1-based index of the starting line in the source text + /// where the issue occurs, or 0 if unknown. @$pb.TagNumber(3) $core.int get line => $_getIZ(2); @$pb.TagNumber(3) @@ -1566,6 +1940,8 @@ class SourcePosition extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearLine() => clearField(3); + /// The 0-based index of the starting position within the line of source text + /// where the issue occurs. Only meaningful if line is nonzero. @$pb.TagNumber(4) $core.int get column => $_getIZ(3); @$pb.TagNumber(4) @@ -1578,3 +1954,7 @@ class SourcePosition extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearColumn() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pbenum.dart index 976e4633..f01b4daa 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pbenum.dart @@ -1,6 +1,48 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/syntax.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; + +/// CEL component specifier. +class SourceInfo_Extension_Component extends $pb.ProtobufEnum { + static const SourceInfo_Extension_Component COMPONENT_UNSPECIFIED = + SourceInfo_Extension_Component._( + 0, _omitEnumNames ? '' : 'COMPONENT_UNSPECIFIED'); + static const SourceInfo_Extension_Component COMPONENT_PARSER = + SourceInfo_Extension_Component._( + 1, _omitEnumNames ? '' : 'COMPONENT_PARSER'); + static const SourceInfo_Extension_Component COMPONENT_TYPE_CHECKER = + SourceInfo_Extension_Component._( + 2, _omitEnumNames ? '' : 'COMPONENT_TYPE_CHECKER'); + static const SourceInfo_Extension_Component COMPONENT_RUNTIME = + SourceInfo_Extension_Component._( + 3, _omitEnumNames ? '' : 'COMPONENT_RUNTIME'); + + static const $core.List values = + [ + COMPONENT_UNSPECIFIED, + COMPONENT_PARSER, + COMPONENT_TYPE_CHECKER, + COMPONENT_RUNTIME, + ]; + + static final $core.Map<$core.int, SourceInfo_Extension_Component> _byValue = + $pb.ProtobufEnum.initByValue(values); + static SourceInfo_Extension_Component? valueOf($core.int value) => + _byValue[value]; + + const SourceInfo_Extension_Component._($core.int v, $core.String n) + : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pbjson.dart index 2bc4eacb..f55dbc56 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/syntax.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/syntax.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 parsedExprDescriptor instead') @@ -34,7 +38,10 @@ const ParsedExpr$json = { /// Descriptor for `ParsedExpr`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List parsedExprDescriptor = $convert.base64Decode( - 'CgpQYXJzZWRFeHByEjIKBGV4cHIYAiABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIEZXhwchJFCgtzb3VyY2VfaW5mbxgDIAEoCzIkLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5Tb3VyY2VJbmZvUgpzb3VyY2VJbmZv'); + 'CgpQYXJzZWRFeHByEjIKBGV4cHIYAiABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRX' + 'hwclIEZXhwchJFCgtzb3VyY2VfaW5mbxgDIAEoCzIkLmdvb2dsZS5hcGkuZXhwci52MWFscGhh' + 'MS5Tb3VyY2VJbmZvUgpzb3VyY2VJbmZv'); + @$core.Deprecated('Use exprDescriptor instead') const Expr$json = { '1': 'Expr', @@ -178,6 +185,7 @@ const Expr_CreateList$json = { '6': '.google.api.expr.v1alpha1.Expr', '10': 'elements' }, + {'1': 'optional_indices', '3': 2, '4': 3, '5': 5, '10': 'optionalIndices'}, ], }; @@ -221,6 +229,7 @@ const Expr_CreateStruct_Entry$json = { '6': '.google.api.expr.v1alpha1.Expr', '10': 'value' }, + {'1': 'optional_entry', '3': 5, '4': 1, '5': 8, '10': 'optionalEntry'}, ], '8': [ {'1': 'key_kind'}, @@ -232,6 +241,7 @@ const Expr_Comprehension$json = { '1': 'Comprehension', '2': [ {'1': 'iter_var', '3': 1, '4': 1, '5': 9, '10': 'iterVar'}, + {'1': 'iter_var2', '3': 8, '4': 1, '5': 9, '10': 'iterVar2'}, { '1': 'iter_range', '3': 2, @@ -278,7 +288,39 @@ const Expr_Comprehension$json = { /// Descriptor for `Expr`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List exprDescriptor = $convert.base64Decode( - 'CgRFeHByEg4KAmlkGAIgASgDUgJpZBJDCgpjb25zdF9leHByGAMgASgLMiIuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkNvbnN0YW50SABSCWNvbnN0RXhwchJFCgppZGVudF9leHByGAQgASgLMiQuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHIuSWRlbnRIAFIJaWRlbnRFeHByEkgKC3NlbGVjdF9leHByGAUgASgLMiUuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHIuU2VsZWN0SABSCnNlbGVjdEV4cHISQgoJY2FsbF9leHByGAYgASgLMiMuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHIuQ2FsbEgAUghjYWxsRXhwchJICglsaXN0X2V4cHIYByABKAsyKS5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwci5DcmVhdGVMaXN0SABSCGxpc3RFeHByEk4KC3N0cnVjdF9leHByGAggASgLMisuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHIuQ3JlYXRlU3RydWN0SABSCnN0cnVjdEV4cHISXQoSY29tcHJlaGVuc2lvbl9leHByGAkgASgLMiwuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHIuQ29tcHJlaGVuc2lvbkgAUhFjb21wcmVoZW5zaW9uRXhwchobCgVJZGVudBISCgRuYW1lGAEgASgJUgRuYW1lGnUKBlNlbGVjdBI4CgdvcGVyYW5kGAEgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSB29wZXJhbmQSFAoFZmllbGQYAiABKAlSBWZpZWxkEhsKCXRlc3Rfb25seRgDIAEoCFIIdGVzdE9ubHkajgEKBENhbGwSNgoGdGFyZ2V0GAEgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSBnRhcmdldBIaCghmdW5jdGlvbhgCIAEoCVIIZnVuY3Rpb24SMgoEYXJncxgDIAMoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5FeHByUgRhcmdzGkgKCkNyZWF0ZUxpc3QSOgoIZWxlbWVudHMYASADKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIIZWxlbWVudHMatAIKDENyZWF0ZVN0cnVjdBIhCgxtZXNzYWdlX25hbWUYASABKAlSC21lc3NhZ2VOYW1lEksKB2VudHJpZXMYAiADKAsyMS5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwci5DcmVhdGVTdHJ1Y3QuRW50cnlSB2VudHJpZXMaswEKBUVudHJ5Eg4KAmlkGAEgASgDUgJpZBIdCglmaWVsZF9rZXkYAiABKAlIAFIIZmllbGRLZXkSOQoHbWFwX2tleRgDIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5FeHBySABSBm1hcEtleRI0CgV2YWx1ZRgEIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5FeHByUgV2YWx1ZUIKCghrZXlfa2luZBr9AgoNQ29tcHJlaGVuc2lvbhIZCghpdGVyX3ZhchgBIAEoCVIHaXRlclZhchI9CgppdGVyX3JhbmdlGAIgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSCWl0ZXJSYW5nZRIZCghhY2N1X3ZhchgDIAEoCVIHYWNjdVZhchI7CglhY2N1X2luaXQYBCABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIIYWNjdUluaXQSRQoObG9vcF9jb25kaXRpb24YBSABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclINbG9vcENvbmRpdGlvbhI7Cglsb29wX3N0ZXAYBiABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIIbG9vcFN0ZXASNgoGcmVzdWx0GAcgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSBnJlc3VsdEILCglleHByX2tpbmQ='); + 'CgRFeHByEg4KAmlkGAIgASgDUgJpZBJDCgpjb25zdF9leHByGAMgASgLMiIuZ29vZ2xlLmFwaS' + '5leHByLnYxYWxwaGExLkNvbnN0YW50SABSCWNvbnN0RXhwchJFCgppZGVudF9leHByGAQgASgL' + 'MiQuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHIuSWRlbnRIAFIJaWRlbnRFeHByEkgKC3' + 'NlbGVjdF9leHByGAUgASgLMiUuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHIuU2VsZWN0' + 'SABSCnNlbGVjdEV4cHISQgoJY2FsbF9leHByGAYgASgLMiMuZ29vZ2xlLmFwaS5leHByLnYxYW' + 'xwaGExLkV4cHIuQ2FsbEgAUghjYWxsRXhwchJICglsaXN0X2V4cHIYByABKAsyKS5nb29nbGUu' + 'YXBpLmV4cHIudjFhbHBoYTEuRXhwci5DcmVhdGVMaXN0SABSCGxpc3RFeHByEk4KC3N0cnVjdF' + '9leHByGAggASgLMisuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHIuQ3JlYXRlU3RydWN0' + 'SABSCnN0cnVjdEV4cHISXQoSY29tcHJlaGVuc2lvbl9leHByGAkgASgLMiwuZ29vZ2xlLmFwaS' + '5leHByLnYxYWxwaGExLkV4cHIuQ29tcHJlaGVuc2lvbkgAUhFjb21wcmVoZW5zaW9uRXhwchob' + 'CgVJZGVudBISCgRuYW1lGAEgASgJUgRuYW1lGnUKBlNlbGVjdBI4CgdvcGVyYW5kGAEgASgLMh' + '4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSB29wZXJhbmQSFAoFZmllbGQYAiABKAlS' + 'BWZpZWxkEhsKCXRlc3Rfb25seRgDIAEoCFIIdGVzdE9ubHkajgEKBENhbGwSNgoGdGFyZ2V0GA' + 'EgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSBnRhcmdldBIaCghmdW5jdGlv' + 'bhgCIAEoCVIIZnVuY3Rpb24SMgoEYXJncxgDIAMoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFscG' + 'hhMS5FeHByUgRhcmdzGnMKCkNyZWF0ZUxpc3QSOgoIZWxlbWVudHMYASADKAsyHi5nb29nbGUu' + 'YXBpLmV4cHIudjFhbHBoYTEuRXhwclIIZWxlbWVudHMSKQoQb3B0aW9uYWxfaW5kaWNlcxgCIA' + 'MoBVIPb3B0aW9uYWxJbmRpY2VzGtsCCgxDcmVhdGVTdHJ1Y3QSIQoMbWVzc2FnZV9uYW1lGAEg' + 'ASgJUgttZXNzYWdlTmFtZRJLCgdlbnRyaWVzGAIgAygLMjEuZ29vZ2xlLmFwaS5leHByLnYxYW' + 'xwaGExLkV4cHIuQ3JlYXRlU3RydWN0LkVudHJ5UgdlbnRyaWVzGtoBCgVFbnRyeRIOCgJpZBgB' + 'IAEoA1ICaWQSHQoJZmllbGRfa2V5GAIgASgJSABSCGZpZWxkS2V5EjkKB21hcF9rZXkYAyABKA' + 'syHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwckgAUgZtYXBLZXkSNAoFdmFsdWUYBCAB' + 'KAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIFdmFsdWUSJQoOb3B0aW9uYWxfZW' + '50cnkYBSABKAhSDW9wdGlvbmFsRW50cnlCCgoIa2V5X2tpbmQamgMKDUNvbXByZWhlbnNpb24S' + 'GQoIaXRlcl92YXIYASABKAlSB2l0ZXJWYXISGwoJaXRlcl92YXIyGAggASgJUghpdGVyVmFyMh' + 'I9CgppdGVyX3JhbmdlGAIgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSCWl0' + 'ZXJSYW5nZRIZCghhY2N1X3ZhchgDIAEoCVIHYWNjdVZhchI7CglhY2N1X2luaXQYBCABKAsyHi' + '5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIIYWNjdUluaXQSRQoObG9vcF9jb25kaXRp' + 'b24YBSABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclINbG9vcENvbmRpdGlvbh' + 'I7Cglsb29wX3N0ZXAYBiABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIIbG9v' + 'cFN0ZXASNgoGcmVzdWx0GAcgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSBn' + 'Jlc3VsdEILCglleHByX2tpbmQ='); + @$core.Deprecated('Use constantDescriptor instead') const Constant$json = { '1': 'Constant', @@ -326,7 +368,16 @@ const Constant$json = { /// Descriptor for `Constant`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List constantDescriptor = $convert.base64Decode( - 'CghDb25zdGFudBI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZUgAUgludWxsVmFsdWUSHwoKYm9vbF92YWx1ZRgCIAEoCEgAUglib29sVmFsdWUSIQoLaW50NjRfdmFsdWUYAyABKANIAFIKaW50NjRWYWx1ZRIjCgx1aW50NjRfdmFsdWUYBCABKARIAFILdWludDY0VmFsdWUSIwoMZG91YmxlX3ZhbHVlGAUgASgBSABSC2RvdWJsZVZhbHVlEiMKDHN0cmluZ192YWx1ZRgGIAEoCUgAUgtzdHJpbmdWYWx1ZRIhCgtieXRlc192YWx1ZRgHIAEoDEgAUgpieXRlc1ZhbHVlEkYKDmR1cmF0aW9uX3ZhbHVlGAggASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uQgIYAUgAUg1kdXJhdGlvblZhbHVlEkkKD3RpbWVzdGFtcF92YWx1ZRgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCAhgBSABSDnRpbWVzdGFtcFZhbHVlQg8KDWNvbnN0YW50X2tpbmQ='); + 'CghDb25zdGFudBI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYW' + 'x1ZUgAUgludWxsVmFsdWUSHwoKYm9vbF92YWx1ZRgCIAEoCEgAUglib29sVmFsdWUSIQoLaW50' + 'NjRfdmFsdWUYAyABKANIAFIKaW50NjRWYWx1ZRIjCgx1aW50NjRfdmFsdWUYBCABKARIAFILdW' + 'ludDY0VmFsdWUSIwoMZG91YmxlX3ZhbHVlGAUgASgBSABSC2RvdWJsZVZhbHVlEiMKDHN0cmlu' + 'Z192YWx1ZRgGIAEoCUgAUgtzdHJpbmdWYWx1ZRIhCgtieXRlc192YWx1ZRgHIAEoDEgAUgpieX' + 'Rlc1ZhbHVlEkYKDmR1cmF0aW9uX3ZhbHVlGAggASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0' + 'aW9uQgIYAUgAUg1kdXJhdGlvblZhbHVlEkkKD3RpbWVzdGFtcF92YWx1ZRgJIAEoCzIaLmdvb2' + 'dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCAhgBSABSDnRpbWVzdGFtcFZhbHVlQg8KDWNvbnN0YW50' + 'X2tpbmQ='); + @$core.Deprecated('Use sourceInfoDescriptor instead') const SourceInfo$json = { '1': 'SourceInfo', @@ -350,8 +401,66 @@ const SourceInfo$json = { '6': '.google.api.expr.v1alpha1.SourceInfo.MacroCallsEntry', '10': 'macroCalls' }, + { + '1': 'extensions', + '3': 6, + '4': 3, + '5': 11, + '6': '.google.api.expr.v1alpha1.SourceInfo.Extension', + '10': 'extensions' + }, + ], + '3': [ + SourceInfo_Extension$json, + SourceInfo_PositionsEntry$json, + SourceInfo_MacroCallsEntry$json + ], +}; + +@$core.Deprecated('Use sourceInfoDescriptor instead') +const SourceInfo_Extension$json = { + '1': 'Extension', + '2': [ + {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, + { + '1': 'affected_components', + '3': 2, + '4': 3, + '5': 14, + '6': '.google.api.expr.v1alpha1.SourceInfo.Extension.Component', + '10': 'affectedComponents' + }, + { + '1': 'version', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.api.expr.v1alpha1.SourceInfo.Extension.Version', + '10': 'version' + }, + ], + '3': [SourceInfo_Extension_Version$json], + '4': [SourceInfo_Extension_Component$json], +}; + +@$core.Deprecated('Use sourceInfoDescriptor instead') +const SourceInfo_Extension_Version$json = { + '1': 'Version', + '2': [ + {'1': 'major', '3': 1, '4': 1, '5': 3, '10': 'major'}, + {'1': 'minor', '3': 2, '4': 1, '5': 3, '10': 'minor'}, + ], +}; + +@$core.Deprecated('Use sourceInfoDescriptor instead') +const SourceInfo_Extension_Component$json = { + '1': 'Component', + '2': [ + {'1': 'COMPONENT_UNSPECIFIED', '2': 0}, + {'1': 'COMPONENT_PARSER', '2': 1}, + {'1': 'COMPONENT_TYPE_CHECKER', '2': 2}, + {'1': 'COMPONENT_RUNTIME', '2': 3}, ], - '3': [SourceInfo_PositionsEntry$json, SourceInfo_MacroCallsEntry$json], }; @$core.Deprecated('Use sourceInfoDescriptor instead') @@ -383,7 +492,24 @@ const SourceInfo_MacroCallsEntry$json = { /// Descriptor for `SourceInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sourceInfoDescriptor = $convert.base64Decode( - 'CgpTb3VyY2VJbmZvEiUKDnN5bnRheF92ZXJzaW9uGAEgASgJUg1zeW50YXhWZXJzaW9uEhoKCGxvY2F0aW9uGAIgASgJUghsb2NhdGlvbhIhCgxsaW5lX29mZnNldHMYAyADKAVSC2xpbmVPZmZzZXRzElEKCXBvc2l0aW9ucxgEIAMoCzIzLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5Tb3VyY2VJbmZvLlBvc2l0aW9uc0VudHJ5Uglwb3NpdGlvbnMSVQoLbWFjcm9fY2FsbHMYBSADKAsyNC5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuU291cmNlSW5mby5NYWNyb0NhbGxzRW50cnlSCm1hY3JvQ2FsbHMaPAoOUG9zaXRpb25zRW50cnkSEAoDa2V5GAEgASgDUgNrZXkSFAoFdmFsdWUYAiABKAVSBXZhbHVlOgI4ARpdCg9NYWNyb0NhbGxzRW50cnkSEAoDa2V5GAEgASgDUgNrZXkSNAoFdmFsdWUYAiABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIFdmFsdWU6AjgB'); + 'CgpTb3VyY2VJbmZvEiUKDnN5bnRheF92ZXJzaW9uGAEgASgJUg1zeW50YXhWZXJzaW9uEhoKCG' + 'xvY2F0aW9uGAIgASgJUghsb2NhdGlvbhIhCgxsaW5lX29mZnNldHMYAyADKAVSC2xpbmVPZmZz' + 'ZXRzElEKCXBvc2l0aW9ucxgEIAMoCzIzLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5Tb3VyY2' + 'VJbmZvLlBvc2l0aW9uc0VudHJ5Uglwb3NpdGlvbnMSVQoLbWFjcm9fY2FsbHMYBSADKAsyNC5n' + 'b29nbGUuYXBpLmV4cHIudjFhbHBoYTEuU291cmNlSW5mby5NYWNyb0NhbGxzRW50cnlSCm1hY3' + 'JvQ2FsbHMSTgoKZXh0ZW5zaW9ucxgGIAMoCzIuLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5T' + 'b3VyY2VJbmZvLkV4dGVuc2lvblIKZXh0ZW5zaW9ucxqAAwoJRXh0ZW5zaW9uEg4KAmlkGAEgAS' + 'gJUgJpZBJpChNhZmZlY3RlZF9jb21wb25lbnRzGAIgAygOMjguZ29vZ2xlLmFwaS5leHByLnYx' + 'YWxwaGExLlNvdXJjZUluZm8uRXh0ZW5zaW9uLkNvbXBvbmVudFISYWZmZWN0ZWRDb21wb25lbn' + 'RzElAKB3ZlcnNpb24YAyABKAsyNi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuU291cmNlSW5m' + 'by5FeHRlbnNpb24uVmVyc2lvblIHdmVyc2lvbho1CgdWZXJzaW9uEhQKBW1ham9yGAEgASgDUg' + 'VtYWpvchIUCgVtaW5vchgCIAEoA1IFbWlub3IibwoJQ29tcG9uZW50EhkKFUNPTVBPTkVOVF9V' + 'TlNQRUNJRklFRBAAEhQKEENPTVBPTkVOVF9QQVJTRVIQARIaChZDT01QT05FTlRfVFlQRV9DSE' + 'VDS0VSEAISFQoRQ09NUE9ORU5UX1JVTlRJTUUQAxo8Cg5Qb3NpdGlvbnNFbnRyeRIQCgNrZXkY' + 'ASABKANSA2tleRIUCgV2YWx1ZRgCIAEoBVIFdmFsdWU6AjgBGl0KD01hY3JvQ2FsbHNFbnRyeR' + 'IQCgNrZXkYASABKANSA2tleRI0CgV2YWx1ZRgCIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWFs' + 'cGhhMS5FeHByUgV2YWx1ZToCOAE='); + @$core.Deprecated('Use sourcePositionDescriptor instead') const SourcePosition$json = { '1': 'SourcePosition', @@ -397,4 +523,6 @@ const SourcePosition$json = { /// Descriptor for `SourcePosition`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sourcePositionDescriptor = $convert.base64Decode( - 'Cg5Tb3VyY2VQb3NpdGlvbhIaCghsb2NhdGlvbhgBIAEoCVIIbG9jYXRpb24SFgoGb2Zmc2V0GAIgASgFUgZvZmZzZXQSEgoEbGluZRgDIAEoBVIEbGluZRIWCgZjb2x1bW4YBCABKAVSBmNvbHVtbg=='); + 'Cg5Tb3VyY2VQb3NpdGlvbhIaCghsb2NhdGlvbhgBIAEoCVIIbG9jYXRpb24SFgoGb2Zmc2V0GA' + 'IgASgFUgZvZmZzZXQSEgoEbGluZRgDIAEoBVIEbGluZRIWCgZjb2x1bW4YBCABKAVSBmNvbHVt' + 'bg=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pb.dart index bca149ed..ae040ff6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pb.dart @@ -1,18 +1,21 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/value.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../protobuf/any.pb.dart' as $0; - -import '../../../protobuf/struct.pbenum.dart' as $1; +import '../../../protobuf/any.pb.dart' as $49; +import '../../../protobuf/struct.pbenum.dart' as $48; enum Value_Kind { nullValue, @@ -30,58 +33,13 @@ enum Value_Kind { notSet } +/// Represents a CEL value. +/// +/// This is similar to `google.protobuf.Value`, but can represent CEL's full +/// range of values. class Value extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { - 1: Value_Kind.nullValue, - 2: Value_Kind.boolValue, - 3: Value_Kind.int64Value, - 4: Value_Kind.uint64Value, - 5: Value_Kind.doubleValue, - 6: Value_Kind.stringValue, - 7: Value_Kind.bytesValue, - 9: Value_Kind.enumValue, - 10: Value_Kind.objectValue, - 11: Value_Kind.mapValue, - 12: Value_Kind.listValue, - 15: Value_Kind.typeValue, - 0: Value_Kind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Value', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 15]) - ..e<$1.NullValue>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nullValue', - $pb.PbFieldType.OE, - defaultOrMaker: $1.NullValue.NULL_VALUE, - valueOf: $1.NullValue.valueOf, - enumValues: $1.NullValue.values) - ..aOB(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'boolValue') - ..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'int64Value') - ..a<$fixnum.Int64>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uint64Value', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'doubleValue', $pb.PbFieldType.OD) - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stringValue') - ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bytesValue', $pb.PbFieldType.OY) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enumValue', subBuilder: EnumValue.create) - ..aOM<$0.Any>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'objectValue', subBuilder: $0.Any.create) - ..aOM(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapValue', subBuilder: MapValue.create) - ..aOM(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'listValue', subBuilder: ListValue.create) - ..aOS(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'typeValue') - ..hasRequiredFields = false; - - Value._() : super(); factory Value({ - $1.NullValue? nullValue, + $48.NullValue? nullValue, $core.bool? boolValue, $fixnum.Int64? int64Value, $fixnum.Int64? uint64Value, @@ -89,56 +47,105 @@ class Value extends $pb.GeneratedMessage { $core.String? stringValue, $core.List<$core.int>? bytesValue, EnumValue? enumValue, - $0.Any? objectValue, + $49.Any? objectValue, MapValue? mapValue, ListValue? listValue, $core.String? typeValue, }) { - final _result = create(); + final $result = create(); if (nullValue != null) { - _result.nullValue = nullValue; + $result.nullValue = nullValue; } if (boolValue != null) { - _result.boolValue = boolValue; + $result.boolValue = boolValue; } if (int64Value != null) { - _result.int64Value = int64Value; + $result.int64Value = int64Value; } if (uint64Value != null) { - _result.uint64Value = uint64Value; + $result.uint64Value = uint64Value; } if (doubleValue != null) { - _result.doubleValue = doubleValue; + $result.doubleValue = doubleValue; } if (stringValue != null) { - _result.stringValue = stringValue; + $result.stringValue = stringValue; } if (bytesValue != null) { - _result.bytesValue = bytesValue; + $result.bytesValue = bytesValue; } if (enumValue != null) { - _result.enumValue = enumValue; + $result.enumValue = enumValue; } if (objectValue != null) { - _result.objectValue = objectValue; + $result.objectValue = objectValue; } if (mapValue != null) { - _result.mapValue = mapValue; + $result.mapValue = mapValue; } if (listValue != null) { - _result.listValue = listValue; + $result.listValue = listValue; } if (typeValue != null) { - _result.typeValue = typeValue; + $result.typeValue = typeValue; } - return _result; + return $result; } + Value._() : super(); factory Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { + 1: Value_Kind.nullValue, + 2: Value_Kind.boolValue, + 3: Value_Kind.int64Value, + 4: Value_Kind.uint64Value, + 5: Value_Kind.doubleValue, + 6: Value_Kind.stringValue, + 7: Value_Kind.bytesValue, + 9: Value_Kind.enumValue, + 10: Value_Kind.objectValue, + 11: Value_Kind.mapValue, + 12: Value_Kind.listValue, + 15: Value_Kind.typeValue, + 0: Value_Kind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Value', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 15]) + ..e<$48.NullValue>( + 1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, + defaultOrMaker: $48.NullValue.NULL_VALUE, + valueOf: $48.NullValue.valueOf, + enumValues: $48.NullValue.values) + ..aOB(2, _omitFieldNames ? '' : 'boolValue') + ..aInt64(3, _omitFieldNames ? '' : 'int64Value') + ..a<$fixnum.Int64>( + 4, _omitFieldNames ? '' : 'uint64Value', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 5, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD) + ..aOS(6, _omitFieldNames ? '' : 'stringValue') + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'bytesValue', $pb.PbFieldType.OY) + ..aOM(9, _omitFieldNames ? '' : 'enumValue', + subBuilder: EnumValue.create) + ..aOM<$49.Any>(10, _omitFieldNames ? '' : 'objectValue', + subBuilder: $49.Any.create) + ..aOM(11, _omitFieldNames ? '' : 'mapValue', + subBuilder: MapValue.create) + ..aOM(12, _omitFieldNames ? '' : 'listValue', + subBuilder: ListValue.create) + ..aOS(15, _omitFieldNames ? '' : 'typeValue') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -147,9 +154,10 @@ class Value extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Value copyWith(void Function(Value) updates) => - super.copyWith((message) => updates(message as Value)) - as Value; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Value)) as Value; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Value create() => Value._(); Value createEmptyInstance() => create(); @@ -162,10 +170,11 @@ class Value extends $pb.GeneratedMessage { Value_Kind whichKind() => _Value_KindByTag[$_whichOneof(0)]!; void clearKind() => clearField($_whichOneof(0)); + /// Null value. @$pb.TagNumber(1) - $1.NullValue get nullValue => $_getN(0); + $48.NullValue get nullValue => $_getN(0); @$pb.TagNumber(1) - set nullValue($1.NullValue v) { + set nullValue($48.NullValue v) { setField(1, v); } @@ -174,6 +183,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearNullValue() => clearField(1); + /// Boolean value. @$pb.TagNumber(2) $core.bool get boolValue => $_getBF(1); @$pb.TagNumber(2) @@ -186,6 +196,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearBoolValue() => clearField(2); + /// Signed integer value. @$pb.TagNumber(3) $fixnum.Int64 get int64Value => $_getI64(2); @$pb.TagNumber(3) @@ -198,6 +209,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearInt64Value() => clearField(3); + /// Unsigned integer value. @$pb.TagNumber(4) $fixnum.Int64 get uint64Value => $_getI64(3); @$pb.TagNumber(4) @@ -210,6 +222,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUint64Value() => clearField(4); + /// Floating point value. @$pb.TagNumber(5) $core.double get doubleValue => $_getN(4); @$pb.TagNumber(5) @@ -222,6 +235,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearDoubleValue() => clearField(5); + /// UTF-8 string value. @$pb.TagNumber(6) $core.String get stringValue => $_getSZ(5); @$pb.TagNumber(6) @@ -234,6 +248,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearStringValue() => clearField(6); + /// Byte string value. @$pb.TagNumber(7) $core.List<$core.int> get bytesValue => $_getN(6); @$pb.TagNumber(7) @@ -246,6 +261,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearBytesValue() => clearField(7); + /// An enum value. @$pb.TagNumber(9) EnumValue get enumValue => $_getN(7); @$pb.TagNumber(9) @@ -260,10 +276,11 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(9) EnumValue ensureEnumValue() => $_ensure(7); + /// The proto message backing an object value. @$pb.TagNumber(10) - $0.Any get objectValue => $_getN(8); + $49.Any get objectValue => $_getN(8); @$pb.TagNumber(10) - set objectValue($0.Any v) { + set objectValue($49.Any v) { setField(10, v); } @@ -272,8 +289,9 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearObjectValue() => clearField(10); @$pb.TagNumber(10) - $0.Any ensureObjectValue() => $_ensure(8); + $49.Any ensureObjectValue() => $_ensure(8); + /// Map value. @$pb.TagNumber(11) MapValue get mapValue => $_getN(9); @$pb.TagNumber(11) @@ -288,6 +306,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(11) MapValue ensureMapValue() => $_ensure(9); + /// List value. @$pb.TagNumber(12) ListValue get listValue => $_getN(10); @$pb.TagNumber(12) @@ -302,6 +321,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(12) ListValue ensureListValue() => $_ensure(10); + /// Type value. @$pb.TagNumber(15) $core.String get typeValue => $_getSZ(11); @$pb.TagNumber(15) @@ -315,49 +335,38 @@ class Value extends $pb.GeneratedMessage { void clearTypeValue() => clearField(15); } +/// An enum value. class EnumValue extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnumValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - EnumValue._() : super(); factory EnumValue({ $core.String? type, $core.int? value, }) { - final _result = create(); + final $result = create(); if (type != null) { - _result.type = type; + $result.type = type; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + EnumValue._() : super(); factory EnumValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EnumValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnumValue', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'type') + ..a<$core.int>(2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -366,9 +375,10 @@ class EnumValue extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') EnumValue copyWith(void Function(EnumValue) updates) => - super.copyWith((message) => updates(message as EnumValue)) - as EnumValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as EnumValue)) as EnumValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnumValue create() => EnumValue._(); EnumValue createEmptyInstance() => create(); @@ -378,6 +388,7 @@ class EnumValue extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static EnumValue? _defaultInstance; + /// The fully qualified name of the enum type. @$pb.TagNumber(1) $core.String get type => $_getSZ(0); @$pb.TagNumber(1) @@ -390,6 +401,7 @@ class EnumValue extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearType() => clearField(1); + /// The value of the enum. @$pb.TagNumber(2) $core.int get value => $_getIZ(1); @$pb.TagNumber(2) @@ -403,41 +415,37 @@ class EnumValue extends $pb.GeneratedMessage { void clearValue() => clearField(2); } +/// A list. +/// +/// Wrapped in a message so 'not set' and empty can be differentiated, which is +/// required for use in a 'oneof'. class ListValue extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'values', - $pb.PbFieldType.PM, - subBuilder: Value.create) - ..hasRequiredFields = false; - - ListValue._() : super(); factory ListValue({ $core.Iterable? values, }) { - final _result = create(); + final $result = create(); if (values != null) { - _result.values.addAll(values); + $result.values.addAll(values); } - return _result; + return $result; } + ListValue._() : super(); factory ListValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListValue', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: Value.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') @@ -446,9 +454,10 @@ class ListValue extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ListValue copyWith(void Function(ListValue) updates) => - super.copyWith((message) => updates(message as ListValue)) - as ListValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ListValue)) as ListValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListValue create() => ListValue._(); ListValue createEmptyInstance() => create(); @@ -458,51 +467,43 @@ class ListValue extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListValue? _defaultInstance; + /// The ordered values in the list. @$pb.TagNumber(1) $core.List get values => $_getList(0); } +/// An entry in the map. class MapValue_Entry extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MapValue.Entry', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'key', - subBuilder: Value.create) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value', - subBuilder: Value.create) - ..hasRequiredFields = false; - - MapValue_Entry._() : super(); factory MapValue_Entry({ Value? key, Value? value, }) { - final _result = create(); + final $result = create(); if (key != null) { - _result.key = key; + $result.key = key; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + MapValue_Entry._() : super(); factory MapValue_Entry.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MapValue_Entry.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MapValue.Entry', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'key', subBuilder: Value.create) + ..aOM(2, _omitFieldNames ? '' : 'value', subBuilder: Value.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') @@ -512,8 +513,10 @@ class MapValue_Entry extends $pb.GeneratedMessage { 'Will be removed in next major version') MapValue_Entry copyWith(void Function(MapValue_Entry) updates) => super.copyWith((message) => updates(message as MapValue_Entry)) - as MapValue_Entry; // ignore: deprecated_member_use + as MapValue_Entry; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MapValue_Entry create() => MapValue_Entry._(); MapValue_Entry createEmptyInstance() => create(); @@ -524,6 +527,10 @@ class MapValue_Entry extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MapValue_Entry? _defaultInstance; + /// The key. + /// + /// Must be unique with in the map. + /// Currently only boolean, int, uint, and string values can be keys. @$pb.TagNumber(1) Value get key => $_getN(0); @$pb.TagNumber(1) @@ -538,6 +545,7 @@ class MapValue_Entry extends $pb.GeneratedMessage { @$pb.TagNumber(1) Value ensureKey() => $_ensure(0); + /// The value. @$pb.TagNumber(2) Value get value => $_getN(1); @$pb.TagNumber(2) @@ -553,41 +561,38 @@ class MapValue_Entry extends $pb.GeneratedMessage { Value ensureValue() => $_ensure(1); } +/// A map. +/// +/// Wrapped in a message so 'not set' and empty can be differentiated, which is +/// required for use in a 'oneof'. class MapValue extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MapValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1alpha1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'entries', - $pb.PbFieldType.PM, - subBuilder: MapValue_Entry.create) - ..hasRequiredFields = false; - - MapValue._() : super(); factory MapValue({ $core.Iterable? entries, }) { - final _result = create(); + final $result = create(); if (entries != null) { - _result.entries.addAll(entries); + $result.entries.addAll(entries); } - return _result; + return $result; } + MapValue._() : super(); factory MapValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MapValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MapValue', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1alpha1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'entries', $pb.PbFieldType.PM, + subBuilder: MapValue_Entry.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') @@ -596,9 +601,10 @@ class MapValue extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') MapValue copyWith(void Function(MapValue) updates) => - super.copyWith((message) => updates(message as MapValue)) - as MapValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as MapValue)) as MapValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MapValue create() => MapValue._(); MapValue createEmptyInstance() => create(); @@ -608,6 +614,14 @@ class MapValue extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static MapValue? _defaultInstance; + /// The set of map entries. + /// + /// CEL has fewer restrictions on keys, so a protobuf map represenation + /// cannot be used. @$pb.TagNumber(1) $core.List get entries => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pbenum.dart index 268f6e7a..13b4c72a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/value.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pbjson.dart index a830753f..8110535b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1alpha1/value.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1alpha1/value.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 valueDescriptor instead') @@ -73,7 +77,18 @@ const Value$json = { /// Descriptor for `Value`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List valueDescriptor = $convert.base64Decode( - 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZUgAUgludWxsVmFsdWUSHwoKYm9vbF92YWx1ZRgCIAEoCEgAUglib29sVmFsdWUSIQoLaW50NjRfdmFsdWUYAyABKANIAFIKaW50NjRWYWx1ZRIjCgx1aW50NjRfdmFsdWUYBCABKARIAFILdWludDY0VmFsdWUSIwoMZG91YmxlX3ZhbHVlGAUgASgBSABSC2RvdWJsZVZhbHVlEiMKDHN0cmluZ192YWx1ZRgGIAEoCUgAUgtzdHJpbmdWYWx1ZRIhCgtieXRlc192YWx1ZRgHIAEoDEgAUgpieXRlc1ZhbHVlEkQKCmVudW1fdmFsdWUYCSABKAsyIy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRW51bVZhbHVlSABSCWVudW1WYWx1ZRI5CgxvYmplY3RfdmFsdWUYCiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55SABSC29iamVjdFZhbHVlEkEKCW1hcF92YWx1ZRgLIAEoCzIiLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5NYXBWYWx1ZUgAUghtYXBWYWx1ZRJECgpsaXN0X3ZhbHVlGAwgASgLMiMuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkxpc3RWYWx1ZUgAUglsaXN0VmFsdWUSHwoKdHlwZV92YWx1ZRgPIAEoCUgAUgl0eXBlVmFsdWVCBgoEa2luZA=='); + 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZU' + 'gAUgludWxsVmFsdWUSHwoKYm9vbF92YWx1ZRgCIAEoCEgAUglib29sVmFsdWUSIQoLaW50NjRf' + 'dmFsdWUYAyABKANIAFIKaW50NjRWYWx1ZRIjCgx1aW50NjRfdmFsdWUYBCABKARIAFILdWludD' + 'Y0VmFsdWUSIwoMZG91YmxlX3ZhbHVlGAUgASgBSABSC2RvdWJsZVZhbHVlEiMKDHN0cmluZ192' + 'YWx1ZRgGIAEoCUgAUgtzdHJpbmdWYWx1ZRIhCgtieXRlc192YWx1ZRgHIAEoDEgAUgpieXRlc1' + 'ZhbHVlEkQKCmVudW1fdmFsdWUYCSABKAsyIy5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRW51' + 'bVZhbHVlSABSCWVudW1WYWx1ZRI5CgxvYmplY3RfdmFsdWUYCiABKAsyFC5nb29nbGUucHJvdG' + '9idWYuQW55SABSC29iamVjdFZhbHVlEkEKCW1hcF92YWx1ZRgLIAEoCzIiLmdvb2dsZS5hcGku' + 'ZXhwci52MWFscGhhMS5NYXBWYWx1ZUgAUghtYXBWYWx1ZRJECgpsaXN0X3ZhbHVlGAwgASgLMi' + 'MuZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkxpc3RWYWx1ZUgAUglsaXN0VmFsdWUSHwoKdHlw' + 'ZV92YWx1ZRgPIAEoCUgAUgl0eXBlVmFsdWVCBgoEa2luZA=='); + @$core.Deprecated('Use enumValueDescriptor instead') const EnumValue$json = { '1': 'EnumValue', @@ -86,6 +101,7 @@ const EnumValue$json = { /// Descriptor for `EnumValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List enumValueDescriptor = $convert.base64Decode( 'CglFbnVtVmFsdWUSEgoEdHlwZRgBIAEoCVIEdHlwZRIUCgV2YWx1ZRgCIAEoBVIFdmFsdWU='); + @$core.Deprecated('Use listValueDescriptor instead') const ListValue$json = { '1': 'ListValue', @@ -103,7 +119,9 @@ const ListValue$json = { /// Descriptor for `ListValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listValueDescriptor = $convert.base64Decode( - 'CglMaXN0VmFsdWUSNwoGdmFsdWVzGAEgAygLMh8uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlZhbHVlUgZ2YWx1ZXM='); + 'CglMaXN0VmFsdWUSNwoGdmFsdWVzGAEgAygLMh8uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLl' + 'ZhbHVlUgZ2YWx1ZXM='); + @$core.Deprecated('Use mapValueDescriptor instead') const MapValue$json = { '1': 'MapValue', @@ -145,4 +163,7 @@ const MapValue_Entry$json = { /// Descriptor for `MapValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List mapValueDescriptor = $convert.base64Decode( - 'CghNYXBWYWx1ZRJCCgdlbnRyaWVzGAEgAygLMiguZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLk1hcFZhbHVlLkVudHJ5UgdlbnRyaWVzGnEKBUVudHJ5EjEKA2tleRgBIAEoCzIfLmdvb2dsZS5hcGkuZXhwci52MWFscGhhMS5WYWx1ZVIDa2V5EjUKBXZhbHVlGAIgASgLMh8uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLlZhbHVlUgV2YWx1ZQ=='); + 'CghNYXBWYWx1ZRJCCgdlbnRyaWVzGAEgAygLMiguZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLk' + '1hcFZhbHVlLkVudHJ5UgdlbnRyaWVzGnEKBUVudHJ5EjEKA2tleRgBIAEoCzIfLmdvb2dsZS5h' + 'cGkuZXhwci52MWFscGhhMS5WYWx1ZVIDa2V5EjUKBXZhbHVlGAIgASgLMh8uZ29vZ2xlLmFwaS' + '5leHByLnYxYWxwaGExLlZhbHVlUgV2YWx1ZQ=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pb.dart index c60514d9..95c31e95 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pb.dart @@ -1,54 +1,24 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/decl.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'expr.pb.dart' as $0; +import 'expr.pb.dart' as $105; enum Decl_Kind { ident, function, notSet } +/// A declaration. class Decl extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Decl_Kind> _Decl_KindByTag = { - 4: Decl_Kind.ident, - 5: Decl_Kind.function, - 0: Decl_Kind.notSet - }; - static final $pb.BuilderInfo _i = - $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Decl', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..oo(0, [4, 5]) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id', - $pb.PbFieldType.O3) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'doc') - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ident', - subBuilder: IdentDecl.create) - ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'function', subBuilder: FunctionDecl.create) - ..hasRequiredFields = false; - - Decl._() : super(); factory Decl({ $core.int? id, $core.String? name, @@ -56,30 +26,52 @@ class Decl extends $pb.GeneratedMessage { IdentDecl? ident, FunctionDecl? function, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (name != null) { - _result.name = name; + $result.name = name; } if (doc != null) { - _result.doc = doc; + $result.doc = doc; } if (ident != null) { - _result.ident = ident; + $result.ident = ident; } if (function != null) { - _result.function = function; + $result.function = function; } - return _result; + return $result; } + Decl._() : super(); factory Decl.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Decl.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Decl_Kind> _Decl_KindByTag = { + 4: Decl_Kind.ident, + 5: Decl_Kind.function, + 0: Decl_Kind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Decl', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..oo(0, [4, 5]) + ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'name') + ..aOS(3, _omitFieldNames ? '' : 'doc') + ..aOM(4, _omitFieldNames ? '' : 'ident', + subBuilder: IdentDecl.create) + ..aOM(5, _omitFieldNames ? '' : 'function', + subBuilder: FunctionDecl.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') @@ -88,9 +80,10 @@ class Decl extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Decl copyWith(void Function(Decl) updates) => - super.copyWith((message) => updates(message as Decl)) - as Decl; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Decl)) as Decl; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Decl create() => Decl._(); Decl createEmptyInstance() => create(); @@ -103,6 +96,7 @@ class Decl extends $pb.GeneratedMessage { Decl_Kind whichKind() => _Decl_KindByTag[$_whichOneof(0)]!; void clearKind() => clearField($_whichOneof(0)); + /// The id of the declaration. @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) @@ -115,6 +109,7 @@ class Decl extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// The name of the declaration. @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) @@ -127,6 +122,7 @@ class Decl extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearName() => clearField(2); + /// The documentation string for the declaration. @$pb.TagNumber(3) $core.String get doc => $_getSZ(2); @$pb.TagNumber(3) @@ -139,6 +135,7 @@ class Decl extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDoc() => clearField(3); + /// An identifier declaration. @$pb.TagNumber(4) IdentDecl get ident => $_getN(3); @$pb.TagNumber(4) @@ -153,6 +150,7 @@ class Decl extends $pb.GeneratedMessage { @$pb.TagNumber(4) IdentDecl ensureIdent() => $_ensure(3); + /// A function declaration. @$pb.TagNumber(5) FunctionDecl get function => $_getN(4); @$pb.TagNumber(5) @@ -168,58 +166,47 @@ class Decl extends $pb.GeneratedMessage { FunctionDecl ensureFunction() => $_ensure(4); } +/// The declared type of a variable. +/// +/// Extends runtime type values with extra information used for type checking +/// and dispatching. class DeclType extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeclType', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id', - $pb.PbFieldType.O3) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type') - ..pc( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'typeParams', - $pb.PbFieldType.PM, - subBuilder: DeclType.create) - ..hasRequiredFields = false; - - DeclType._() : super(); factory DeclType({ $core.int? id, $core.String? type, $core.Iterable? typeParams, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (type != null) { - _result.type = type; + $result.type = type; } if (typeParams != null) { - _result.typeParams.addAll(typeParams); + $result.typeParams.addAll(typeParams); } - return _result; + return $result; } + DeclType._() : super(); factory DeclType.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeclType.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeclType', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'type') + ..pc(4, _omitFieldNames ? '' : 'typeParams', $pb.PbFieldType.PM, + subBuilder: DeclType.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') @@ -228,9 +215,10 @@ class DeclType extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DeclType copyWith(void Function(DeclType) updates) => - super.copyWith((message) => updates(message as DeclType)) - as DeclType; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as DeclType)) as DeclType; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeclType create() => DeclType._(); DeclType createEmptyInstance() => create(); @@ -240,6 +228,7 @@ class DeclType extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DeclType? _defaultInstance; + /// The expression id of the declared type, if applicable. @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) @@ -252,6 +241,7 @@ class DeclType extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// The type name, e.g. 'int', 'my.type.Type' or 'T' @$pb.TagNumber(2) $core.String get type => $_getSZ(1); @$pb.TagNumber(2) @@ -264,51 +254,46 @@ class DeclType extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearType() => clearField(2); + /// An ordered list of type parameters, e.g. ``. + /// Only applies to a subset of types, e.g. `map`, `list`. @$pb.TagNumber(4) $core.List get typeParams => $_getList(2); } +/// An identifier declaration. class IdentDecl extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'IdentDecl', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'type', - subBuilder: DeclType.create) - ..aOM<$0.Expr>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value', - subBuilder: $0.Expr.create) - ..hasRequiredFields = false; - - IdentDecl._() : super(); factory IdentDecl({ DeclType? type, - $0.Expr? value, + $105.Expr? value, }) { - final _result = create(); + final $result = create(); if (type != null) { - _result.type = type; + $result.type = type; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + IdentDecl._() : super(); factory IdentDecl.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory IdentDecl.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'IdentDecl', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOM(3, _omitFieldNames ? '' : 'type', + subBuilder: DeclType.create) + ..aOM<$105.Expr>(4, _omitFieldNames ? '' : 'value', + subBuilder: $105.Expr.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') @@ -317,9 +302,10 @@ class IdentDecl extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') IdentDecl copyWith(void Function(IdentDecl) updates) => - super.copyWith((message) => updates(message as IdentDecl)) - as IdentDecl; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as IdentDecl)) as IdentDecl; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static IdentDecl create() => IdentDecl._(); IdentDecl createEmptyInstance() => create(); @@ -329,6 +315,7 @@ class IdentDecl extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static IdentDecl? _defaultInstance; + /// Optional type of the identifier. @$pb.TagNumber(3) DeclType get type => $_getN(0); @$pb.TagNumber(3) @@ -343,10 +330,11 @@ class IdentDecl extends $pb.GeneratedMessage { @$pb.TagNumber(3) DeclType ensureType() => $_ensure(0); + /// Optional value of the identifier. @$pb.TagNumber(4) - $0.Expr get value => $_getN(1); + $105.Expr get value => $_getN(1); @$pb.TagNumber(4) - set value($0.Expr v) { + set value($105.Expr v) { setField(4, v); } @@ -355,56 +343,48 @@ class IdentDecl extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearValue() => clearField(4); @$pb.TagNumber(4) - $0.Expr ensureValue() => $_ensure(1); + $105.Expr ensureValue() => $_ensure(1); } +/// A function declaration. class FunctionDecl extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'FunctionDecl', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'args', - $pb.PbFieldType.PM, - subBuilder: IdentDecl.create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'returnType', - subBuilder: DeclType.create) - ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'receiverFunction') - ..hasRequiredFields = false; - - FunctionDecl._() : super(); factory FunctionDecl({ $core.Iterable? args, DeclType? returnType, $core.bool? receiverFunction, }) { - final _result = create(); + final $result = create(); if (args != null) { - _result.args.addAll(args); + $result.args.addAll(args); } if (returnType != null) { - _result.returnType = returnType; + $result.returnType = returnType; } if (receiverFunction != null) { - _result.receiverFunction = receiverFunction; + $result.receiverFunction = receiverFunction; } - return _result; + return $result; } + FunctionDecl._() : super(); factory FunctionDecl.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory FunctionDecl.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FunctionDecl', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'args', $pb.PbFieldType.PM, + subBuilder: IdentDecl.create) + ..aOM(2, _omitFieldNames ? '' : 'returnType', + subBuilder: DeclType.create) + ..aOB(3, _omitFieldNames ? '' : 'receiverFunction') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -414,8 +394,10 @@ class FunctionDecl extends $pb.GeneratedMessage { 'Will be removed in next major version') FunctionDecl copyWith(void Function(FunctionDecl) updates) => super.copyWith((message) => updates(message as FunctionDecl)) - as FunctionDecl; // ignore: deprecated_member_use + as FunctionDecl; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static FunctionDecl create() => FunctionDecl._(); FunctionDecl createEmptyInstance() => create(); @@ -426,9 +408,11 @@ class FunctionDecl extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static FunctionDecl? _defaultInstance; + /// The function arguments. @$pb.TagNumber(1) $core.List get args => $_getList(0); + /// Optional declared return type. @$pb.TagNumber(2) DeclType get returnType => $_getN(1); @$pb.TagNumber(2) @@ -443,6 +427,7 @@ class FunctionDecl extends $pb.GeneratedMessage { @$pb.TagNumber(2) DeclType ensureReturnType() => $_ensure(1); + /// If the first argument of the function is the receiver. @$pb.TagNumber(3) $core.bool get receiverFunction => $_getBF(2); @$pb.TagNumber(3) @@ -455,3 +440,7 @@ class FunctionDecl extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearReceiverFunction() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pbenum.dart index e62a7b57..29a6b1eb 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/decl.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pbjson.dart index 1ba4b052..8b8098b7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/decl.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/decl.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 declDescriptor instead') @@ -42,7 +46,11 @@ const Decl$json = { /// Descriptor for `Decl`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List declDescriptor = $convert.base64Decode( - 'CgREZWNsEg4KAmlkGAEgASgFUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhAKA2RvYxgDIAEoCVIDZG9jEjoKBWlkZW50GAQgASgLMiIuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuSWRlbnREZWNsSABSBWlkZW50EkMKCGZ1bmN0aW9uGAUgASgLMiUuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRnVuY3Rpb25EZWNsSABSCGZ1bmN0aW9uQgYKBGtpbmQ='); + 'CgREZWNsEg4KAmlkGAEgASgFUgJpZBISCgRuYW1lGAIgASgJUgRuYW1lEhAKA2RvYxgDIAEoCV' + 'IDZG9jEjoKBWlkZW50GAQgASgLMiIuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuSWRlbnREZWNs' + 'SABSBWlkZW50EkMKCGZ1bmN0aW9uGAUgASgLMiUuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRn' + 'VuY3Rpb25EZWNsSABSCGZ1bmN0aW9uQgYKBGtpbmQ='); + @$core.Deprecated('Use declTypeDescriptor instead') const DeclType$json = { '1': 'DeclType', @@ -62,7 +70,10 @@ const DeclType$json = { /// Descriptor for `DeclType`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List declTypeDescriptor = $convert.base64Decode( - 'CghEZWNsVHlwZRIOCgJpZBgBIAEoBVICaWQSEgoEdHlwZRgCIAEoCVIEdHlwZRJCCgt0eXBlX3BhcmFtcxgEIAMoCzIhLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkRlY2xUeXBlUgp0eXBlUGFyYW1z'); + 'CghEZWNsVHlwZRIOCgJpZBgBIAEoBVICaWQSEgoEdHlwZRgCIAEoCVIEdHlwZRJCCgt0eXBlX3' + 'BhcmFtcxgEIAMoCzIhLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkRlY2xUeXBlUgp0eXBlUGFy' + 'YW1z'); + @$core.Deprecated('Use identDeclDescriptor instead') const IdentDecl$json = { '1': 'IdentDecl', @@ -88,7 +99,10 @@ const IdentDecl$json = { /// Descriptor for `IdentDecl`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List identDeclDescriptor = $convert.base64Decode( - 'CglJZGVudERlY2wSNQoEdHlwZRgDIAEoCzIhLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkRlY2xUeXBlUgR0eXBlEjMKBXZhbHVlGAQgASgLMh0uZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRXhwclIFdmFsdWU='); + 'CglJZGVudERlY2wSNQoEdHlwZRgDIAEoCzIhLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkRlY2' + 'xUeXBlUgR0eXBlEjMKBXZhbHVlGAQgASgLMh0uZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRXhw' + 'clIFdmFsdWU='); + @$core.Deprecated('Use functionDeclDescriptor instead') const FunctionDecl$json = { '1': 'FunctionDecl', @@ -121,4 +135,7 @@ const FunctionDecl$json = { /// Descriptor for `FunctionDecl`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List functionDeclDescriptor = $convert.base64Decode( - 'CgxGdW5jdGlvbkRlY2wSNgoEYXJncxgBIAMoCzIiLmdvb2dsZS5hcGkuZXhwci52MWJldGExLklkZW50RGVjbFIEYXJncxJCCgtyZXR1cm5fdHlwZRgCIAEoCzIhLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkRlY2xUeXBlUgpyZXR1cm5UeXBlEisKEXJlY2VpdmVyX2Z1bmN0aW9uGAMgASgIUhByZWNlaXZlckZ1bmN0aW9u'); + 'CgxGdW5jdGlvbkRlY2wSNgoEYXJncxgBIAMoCzIiLmdvb2dsZS5hcGkuZXhwci52MWJldGExLk' + 'lkZW50RGVjbFIEYXJncxJCCgtyZXR1cm5fdHlwZRgCIAEoCzIhLmdvb2dsZS5hcGkuZXhwci52' + 'MWJldGExLkRlY2xUeXBlUgpyZXR1cm5UeXBlEisKEXJlY2VpdmVyX2Z1bmN0aW9uGAMgASgIUh' + 'ByZWNlaXZlckZ1bmN0aW9u'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pb.dart index 0b32f3a4..e5d85a02 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pb.dart @@ -1,58 +1,53 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/eval.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'value.pb.dart' as $0; -import '../../../rpc/status.pb.dart' as $1; +import '../../../rpc/status.pb.dart' as $57; +import 'value.pb.dart' as $106; +/// A single evaluation result. class EvalState_Result extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EvalState.Result', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOM(1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expr', - subBuilder: IdRef.create) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - EvalState_Result._() : super(); factory EvalState_Result({ IdRef? expr, $core.int? value, }) { - final _result = create(); + final $result = create(); if (expr != null) { - _result.expr = expr; + $result.expr = expr; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + EvalState_Result._() : super(); factory EvalState_Result.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EvalState_Result.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EvalState.Result', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'expr', subBuilder: IdRef.create) + ..a<$core.int>(2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -62,8 +57,10 @@ class EvalState_Result extends $pb.GeneratedMessage { 'Will be removed in next major version') EvalState_Result copyWith(void Function(EvalState_Result) updates) => super.copyWith((message) => updates(message as EvalState_Result)) - as EvalState_Result; // ignore: deprecated_member_use + as EvalState_Result; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EvalState_Result create() => EvalState_Result._(); EvalState_Result createEmptyInstance() => create(); @@ -74,6 +71,7 @@ class EvalState_Result extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EvalState_Result? _defaultInstance; + /// The expression this result is for. @$pb.TagNumber(1) IdRef get expr => $_getN(0); @$pb.TagNumber(1) @@ -88,6 +86,7 @@ class EvalState_Result extends $pb.GeneratedMessage { @$pb.TagNumber(1) IdRef ensureExpr() => $_ensure(0); + /// The index in `values` of the resulting value. @$pb.TagNumber(2) $core.int get value => $_getIZ(1); @$pb.TagNumber(2) @@ -101,46 +100,43 @@ class EvalState_Result extends $pb.GeneratedMessage { void clearValue() => clearField(2); } +/// The state of an evaluation. +/// +/// Can represent an initial, partial, or completed state of evaluation. class EvalState extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EvalState', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..pc( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'values', $pb.PbFieldType.PM, - subBuilder: ExprValue.create) - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'results', - $pb.PbFieldType.PM, - subBuilder: EvalState_Result.create) - ..hasRequiredFields = false; - - EvalState._() : super(); factory EvalState({ $core.Iterable? values, $core.Iterable? results, }) { - final _result = create(); + final $result = create(); if (values != null) { - _result.values.addAll(values); + $result.values.addAll(values); } if (results != null) { - _result.results.addAll(results); + $result.results.addAll(results); } - return _result; + return $result; } + EvalState._() : super(); factory EvalState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EvalState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EvalState', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: ExprValue.create) + ..pc( + 3, _omitFieldNames ? '' : 'results', $pb.PbFieldType.PM, + subBuilder: EvalState_Result.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') @@ -149,9 +145,10 @@ class EvalState extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') EvalState copyWith(void Function(EvalState) updates) => - super.copyWith((message) => updates(message as EvalState)) - as EvalState; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as EvalState)) as EvalState; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EvalState create() => EvalState._(); EvalState createEmptyInstance() => create(); @@ -161,67 +158,67 @@ class EvalState extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static EvalState? _defaultInstance; + /// The unique values referenced in this message. @$pb.TagNumber(1) $core.List get values => $_getList(0); + /// An ordered list of results. + /// + /// Tracks the flow of evaluation through the expression. + /// May be sparse. @$pb.TagNumber(3) $core.List get results => $_getList(1); } enum ExprValue_Kind { value, error, unknown, notSet } +/// The value of an evaluated expression. class ExprValue extends $pb.GeneratedMessage { - static const $core.Map<$core.int, ExprValue_Kind> _ExprValue_KindByTag = { - 1: ExprValue_Kind.value, - 2: ExprValue_Kind.error, - 3: ExprValue_Kind.unknown, - 0: ExprValue_Kind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ExprValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3]) - ..aOM<$0.Value>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', - subBuilder: $0.Value.create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'error', - subBuilder: ErrorSet.create) - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unknown', - subBuilder: UnknownSet.create) - ..hasRequiredFields = false; - - ExprValue._() : super(); factory ExprValue({ - $0.Value? value, + $106.Value? value, ErrorSet? error, UnknownSet? unknown, }) { - final _result = create(); + final $result = create(); if (value != null) { - _result.value = value; + $result.value = value; } if (error != null) { - _result.error = error; + $result.error = error; } if (unknown != null) { - _result.unknown = unknown; + $result.unknown = unknown; } - return _result; + return $result; } + ExprValue._() : super(); factory ExprValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ExprValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, ExprValue_Kind> _ExprValue_KindByTag = { + 1: ExprValue_Kind.value, + 2: ExprValue_Kind.error, + 3: ExprValue_Kind.unknown, + 0: ExprValue_Kind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExprValue', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3]) + ..aOM<$106.Value>(1, _omitFieldNames ? '' : 'value', + subBuilder: $106.Value.create) + ..aOM(2, _omitFieldNames ? '' : 'error', + subBuilder: ErrorSet.create) + ..aOM(3, _omitFieldNames ? '' : 'unknown', + subBuilder: UnknownSet.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') @@ -230,9 +227,10 @@ class ExprValue extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ExprValue copyWith(void Function(ExprValue) updates) => - super.copyWith((message) => updates(message as ExprValue)) - as ExprValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ExprValue)) as ExprValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ExprValue create() => ExprValue._(); ExprValue createEmptyInstance() => create(); @@ -245,10 +243,11 @@ class ExprValue extends $pb.GeneratedMessage { ExprValue_Kind whichKind() => _ExprValue_KindByTag[$_whichOneof(0)]!; void clearKind() => clearField($_whichOneof(0)); + /// A concrete value. @$pb.TagNumber(1) - $0.Value get value => $_getN(0); + $106.Value get value => $_getN(0); @$pb.TagNumber(1) - set value($0.Value v) { + set value($106.Value v) { setField(1, v); } @@ -257,8 +256,24 @@ class ExprValue extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearValue() => clearField(1); @$pb.TagNumber(1) - $0.Value ensureValue() => $_ensure(0); - + $106.Value ensureValue() => $_ensure(0); + + /// The set of errors in the critical path of evalution. + /// + /// Only errors in the critical path are included. For example, + /// `( || true) && ` will only result in ``, + /// while ` || ` will result in both `` and + /// ``. + /// + /// Errors cause by the presence of other errors are not included in the + /// set. For example `.foo`, `foo()`, and ` + 1` will + /// only result in ``. + /// + /// Multiple errors *might* be included when evaluation could result + /// in different errors. For example ` + ` and + /// `foo(, )` may result in ``, `` or both. + /// The exact subset of errors included for this case is unspecified and + /// depends on the implementation details of the evaluator. @$pb.TagNumber(2) ErrorSet get error => $_getN(1); @$pb.TagNumber(2) @@ -273,6 +288,30 @@ class ExprValue extends $pb.GeneratedMessage { @$pb.TagNumber(2) ErrorSet ensureError() => $_ensure(1); + /// The set of unknowns in the critical path of evaluation. + /// + /// Unknown behaves identically to Error with regards to propagation. + /// Specifically, only unknowns in the critical path are included, unknowns + /// caused by the presence of other unknowns are not included, and multiple + /// unknowns *might* be included included when evaluation could result in + /// different unknowns. For example: + /// + /// ( || true) && -> + /// || -> + /// .foo -> + /// foo() -> + /// + -> or + /// + /// Unknown takes precidence over Error in cases where a `Value` can short + /// circuit the result: + /// + /// || -> + /// && -> + /// + /// Errors take precidence in all other cases: + /// + /// + -> + /// foo(, ) -> @$pb.TagNumber(3) UnknownSet get unknown => $_getN(2); @$pb.TagNumber(3) @@ -288,41 +327,36 @@ class ExprValue extends $pb.GeneratedMessage { UnknownSet ensureUnknown() => $_ensure(2); } +/// A set of errors. +/// +/// The errors included depend on the context. See `ExprValue.error`. class ErrorSet extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ErrorSet', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..pc<$1.Status>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'errors', - $pb.PbFieldType.PM, - subBuilder: $1.Status.create) - ..hasRequiredFields = false; - - ErrorSet._() : super(); factory ErrorSet({ - $core.Iterable<$1.Status>? errors, + $core.Iterable<$57.Status>? errors, }) { - final _result = create(); + final $result = create(); if (errors != null) { - _result.errors.addAll(errors); + $result.errors.addAll(errors); } - return _result; + return $result; } + ErrorSet._() : super(); factory ErrorSet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ErrorSet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ErrorSet', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..pc<$57.Status>(1, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.PM, + subBuilder: $57.Status.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') @@ -331,9 +365,10 @@ class ErrorSet extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ErrorSet copyWith(void Function(ErrorSet) updates) => - super.copyWith((message) => updates(message as ErrorSet)) - as ErrorSet; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ErrorSet)) as ErrorSet; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ErrorSet create() => ErrorSet._(); ErrorSet createEmptyInstance() => create(); @@ -343,45 +378,41 @@ class ErrorSet extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ErrorSet? _defaultInstance; + /// The errors in the set. @$pb.TagNumber(1) - $core.List<$1.Status> get errors => $_getList(0); + $core.List<$57.Status> get errors => $_getList(0); } +/// A set of expressions for which the value is unknown. +/// +/// The unknowns included depend on the context. See `ExprValue.unknown`. class UnknownSet extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UnknownSet', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'exprs', - $pb.PbFieldType.PM, - subBuilder: IdRef.create) - ..hasRequiredFields = false; - - UnknownSet._() : super(); factory UnknownSet({ $core.Iterable? exprs, }) { - final _result = create(); + final $result = create(); if (exprs != null) { - _result.exprs.addAll(exprs); + $result.exprs.addAll(exprs); } - return _result; + return $result; } + UnknownSet._() : super(); factory UnknownSet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UnknownSet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UnknownSet', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'exprs', $pb.PbFieldType.PM, + subBuilder: IdRef.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') @@ -390,9 +421,10 @@ class UnknownSet extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') UnknownSet copyWith(void Function(UnknownSet) updates) => - super.copyWith((message) => updates(message as UnknownSet)) - as UnknownSet; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as UnknownSet)) as UnknownSet; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UnknownSet create() => UnknownSet._(); UnknownSet createEmptyInstance() => create(); @@ -402,44 +434,38 @@ class UnknownSet extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UnknownSet? _defaultInstance; + /// The ids of the expressions with unknown values. @$pb.TagNumber(1) $core.List get exprs => $_getList(0); } +/// A reference to an expression id. class IdRef extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'IdRef', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - IdRef._() : super(); factory IdRef({ $core.int? id, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } - return _result; + return $result; } + IdRef._() : super(); factory IdRef.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory IdRef.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'IdRef', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -448,9 +474,10 @@ class IdRef extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') IdRef copyWith(void Function(IdRef) updates) => - super.copyWith((message) => updates(message as IdRef)) - as IdRef; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as IdRef)) as IdRef; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static IdRef create() => IdRef._(); IdRef createEmptyInstance() => create(); @@ -460,6 +487,7 @@ class IdRef extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static IdRef? _defaultInstance; + /// The expression id. @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) @@ -472,3 +500,7 @@ class IdRef extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pbenum.dart index 07bdd06b..44de28ae 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/eval.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pbjson.dart index 7b761163..ba2b2d8d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/eval.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/eval.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 evalStateDescriptor instead') @@ -51,7 +55,12 @@ const EvalState_Result$json = { /// Descriptor for `EvalState`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List evalStateDescriptor = $convert.base64Decode( - 'CglFdmFsU3RhdGUSOgoGdmFsdWVzGAEgAygLMiIuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRXhwclZhbHVlUgZ2YWx1ZXMSQwoHcmVzdWx0cxgDIAMoCzIpLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV2YWxTdGF0ZS5SZXN1bHRSB3Jlc3VsdHMaUgoGUmVzdWx0EjIKBGV4cHIYASABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5JZFJlZlIEZXhwchIUCgV2YWx1ZRgCIAEoBVIFdmFsdWU='); + 'CglFdmFsU3RhdGUSOgoGdmFsdWVzGAEgAygLMiIuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRX' + 'hwclZhbHVlUgZ2YWx1ZXMSQwoHcmVzdWx0cxgDIAMoCzIpLmdvb2dsZS5hcGkuZXhwci52MWJl' + 'dGExLkV2YWxTdGF0ZS5SZXN1bHRSB3Jlc3VsdHMaUgoGUmVzdWx0EjIKBGV4cHIYASABKAsyHi' + '5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5JZFJlZlIEZXhwchIUCgV2YWx1ZRgCIAEoBVIFdmFs' + 'dWU='); + @$core.Deprecated('Use exprValueDescriptor instead') const ExprValue$json = { '1': 'ExprValue', @@ -91,7 +100,11 @@ const ExprValue$json = { /// Descriptor for `ExprValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List exprValueDescriptor = $convert.base64Decode( - 'CglFeHByVmFsdWUSNgoFdmFsdWUYASABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5WYWx1ZUgAUgV2YWx1ZRI5CgVlcnJvchgCIAEoCzIhLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkVycm9yU2V0SABSBWVycm9yEj8KB3Vua25vd24YAyABKAsyIy5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5Vbmtub3duU2V0SABSB3Vua25vd25CBgoEa2luZA=='); + 'CglFeHByVmFsdWUSNgoFdmFsdWUYASABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5WYW' + 'x1ZUgAUgV2YWx1ZRI5CgVlcnJvchgCIAEoCzIhLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkVy' + 'cm9yU2V0SABSBWVycm9yEj8KB3Vua25vd24YAyABKAsyIy5nb29nbGUuYXBpLmV4cHIudjFiZX' + 'RhMS5Vbmtub3duU2V0SABSB3Vua25vd25CBgoEa2luZA=='); + @$core.Deprecated('Use errorSetDescriptor instead') const ErrorSet$json = { '1': 'ErrorSet', @@ -110,6 +123,7 @@ const ErrorSet$json = { /// Descriptor for `ErrorSet`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List errorSetDescriptor = $convert.base64Decode( 'CghFcnJvclNldBIqCgZlcnJvcnMYASADKAsyEi5nb29nbGUucnBjLlN0YXR1c1IGZXJyb3Jz'); + @$core.Deprecated('Use unknownSetDescriptor instead') const UnknownSet$json = { '1': 'UnknownSet', @@ -127,7 +141,9 @@ const UnknownSet$json = { /// Descriptor for `UnknownSet`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List unknownSetDescriptor = $convert.base64Decode( - 'CgpVbmtub3duU2V0EjQKBWV4cHJzGAEgAygLMh4uZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuSWRSZWZSBWV4cHJz'); + 'CgpVbmtub3duU2V0EjQKBWV4cHJzGAEgAygLMh4uZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuSW' + 'RSZWZSBWV4cHJz'); + @$core.Deprecated('Use idRefDescriptor instead') const IdRef$json = { '1': 'IdRef', diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pb.dart index b85038ba..7ad4e64d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pb.dart @@ -1,65 +1,60 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/expr.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'source.pb.dart' as $0; - -import '../../../protobuf/struct.pbenum.dart' as $1; +import '../../../protobuf/struct.pbenum.dart' as $48; +import 'source.pb.dart' as $104; +/// An expression together with source information as returned by the parser. class ParsedExpr extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ParsedExpr', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expr', - subBuilder: Expr.create) - ..aOM<$0.SourceInfo>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sourceInfo', - subBuilder: $0.SourceInfo.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'syntaxVersion') - ..hasRequiredFields = false; - - ParsedExpr._() : super(); factory ParsedExpr({ Expr? expr, - $0.SourceInfo? sourceInfo, + $104.SourceInfo? sourceInfo, $core.String? syntaxVersion, }) { - final _result = create(); + final $result = create(); if (expr != null) { - _result.expr = expr; + $result.expr = expr; } if (sourceInfo != null) { - _result.sourceInfo = sourceInfo; + $result.sourceInfo = sourceInfo; } if (syntaxVersion != null) { - _result.syntaxVersion = syntaxVersion; + $result.syntaxVersion = syntaxVersion; } - return _result; + return $result; } + ParsedExpr._() : super(); factory ParsedExpr.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ParsedExpr.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ParsedExpr', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOM(2, _omitFieldNames ? '' : 'expr', subBuilder: Expr.create) + ..aOM<$104.SourceInfo>(3, _omitFieldNames ? '' : 'sourceInfo', + subBuilder: $104.SourceInfo.create) + ..aOS(4, _omitFieldNames ? '' : 'syntaxVersion') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -68,9 +63,10 @@ class ParsedExpr extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ParsedExpr copyWith(void Function(ParsedExpr) updates) => - super.copyWith((message) => updates(message as ParsedExpr)) - as ParsedExpr; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ParsedExpr)) as ParsedExpr; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ParsedExpr create() => ParsedExpr._(); ParsedExpr createEmptyInstance() => create(); @@ -80,6 +76,7 @@ class ParsedExpr extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ParsedExpr? _defaultInstance; + /// The parsed expression. @$pb.TagNumber(2) Expr get expr => $_getN(0); @$pb.TagNumber(2) @@ -94,10 +91,11 @@ class ParsedExpr extends $pb.GeneratedMessage { @$pb.TagNumber(2) Expr ensureExpr() => $_ensure(0); + /// The source info derived from input that generated the parsed `expr`. @$pb.TagNumber(3) - $0.SourceInfo get sourceInfo => $_getN(1); + $104.SourceInfo get sourceInfo => $_getN(1); @$pb.TagNumber(3) - set sourceInfo($0.SourceInfo v) { + set sourceInfo($104.SourceInfo v) { setField(3, v); } @@ -106,8 +104,9 @@ class ParsedExpr extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSourceInfo() => clearField(3); @$pb.TagNumber(3) - $0.SourceInfo ensureSourceInfo() => $_ensure(1); + $104.SourceInfo ensureSourceInfo() => $_ensure(1); + /// The syntax version of the source, e.g. `cel1`. @$pb.TagNumber(4) $core.String get syntaxVersion => $_getSZ(2); @$pb.TagNumber(4) @@ -121,39 +120,33 @@ class ParsedExpr extends $pb.GeneratedMessage { void clearSyntaxVersion() => clearField(4); } +/// An identifier expression. e.g. `request`. class Expr_Ident extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.Ident', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - Expr_Ident._() : super(); factory Expr_Ident({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + Expr_Ident._() : super(); factory Expr_Ident.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_Ident.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.Ident', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -162,9 +155,10 @@ class Expr_Ident extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Expr_Ident copyWith(void Function(Expr_Ident) updates) => - super.copyWith((message) => updates(message as Expr_Ident)) - as Expr_Ident; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Expr_Ident)) as Expr_Ident; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_Ident create() => Expr_Ident._(); Expr_Ident createEmptyInstance() => create(); @@ -174,6 +168,10 @@ class Expr_Ident extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Expr_Ident? _defaultInstance; + /// Required. Holds a single, unqualified identifier, possibly preceded by a + /// '.'. + /// + /// Qualified names are represented by the [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -187,54 +185,43 @@ class Expr_Ident extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// A field selection expression. e.g. `request.auth`. class Expr_Select extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.Select', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operand', - subBuilder: Expr.create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'field') - ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'testOnly') - ..hasRequiredFields = false; - - Expr_Select._() : super(); factory Expr_Select({ Expr? operand, $core.String? field_2, $core.bool? testOnly, }) { - final _result = create(); + final $result = create(); if (operand != null) { - _result.operand = operand; + $result.operand = operand; } if (field_2 != null) { - _result.field_2 = field_2; + $result.field_2 = field_2; } if (testOnly != null) { - _result.testOnly = testOnly; + $result.testOnly = testOnly; } - return _result; + return $result; } + Expr_Select._() : super(); factory Expr_Select.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_Select.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.Select', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'operand', subBuilder: Expr.create) + ..aOS(2, _omitFieldNames ? '' : 'field') + ..aOB(3, _omitFieldNames ? '' : 'testOnly') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -244,8 +231,10 @@ class Expr_Select extends $pb.GeneratedMessage { 'Will be removed in next major version') Expr_Select copyWith(void Function(Expr_Select) updates) => super.copyWith((message) => updates(message as Expr_Select)) - as Expr_Select; // ignore: deprecated_member_use + as Expr_Select; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_Select create() => Expr_Select._(); Expr_Select createEmptyInstance() => create(); @@ -255,6 +244,10 @@ class Expr_Select extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Expr_Select? _defaultInstance; + /// Required. The target of the selection expression. + /// + /// For example, in the select expression `request.auth`, the `request` + /// portion of the expression is the `operand`. @$pb.TagNumber(1) Expr get operand => $_getN(0); @$pb.TagNumber(1) @@ -269,6 +262,10 @@ class Expr_Select extends $pb.GeneratedMessage { @$pb.TagNumber(1) Expr ensureOperand() => $_ensure(0); + /// Required. The name of the field to select. + /// + /// For example, in the select expression `request.auth`, the `auth` portion + /// of the expression would be the `field`. @$pb.TagNumber(2) $core.String get field_2 => $_getSZ(1); @$pb.TagNumber(2) @@ -281,6 +278,9 @@ class Expr_Select extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearField_2() => clearField(2); + /// Whether the select is to be interpreted as a field presence test. + /// + /// This results from the macro `has(request.auth)`. @$pb.TagNumber(3) $core.bool get testOnly => $_getBF(2); @$pb.TagNumber(3) @@ -294,53 +294,46 @@ class Expr_Select extends $pb.GeneratedMessage { void clearTestOnly() => clearField(3); } +/// A call expression, including calls to predefined functions and operators. +/// +/// For example, `value == 10`, `size(map_value)`. class Expr_Call extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.Call', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'target', - subBuilder: Expr.create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'function') - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'args', - $pb.PbFieldType.PM, - subBuilder: Expr.create) - ..hasRequiredFields = false; - - Expr_Call._() : super(); factory Expr_Call({ Expr? target, $core.String? function, $core.Iterable? args, }) { - final _result = create(); + final $result = create(); if (target != null) { - _result.target = target; + $result.target = target; } if (function != null) { - _result.function = function; + $result.function = function; } if (args != null) { - _result.args.addAll(args); + $result.args.addAll(args); } - return _result; + return $result; } + Expr_Call._() : super(); factory Expr_Call.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_Call.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.Call', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'target', subBuilder: Expr.create) + ..aOS(2, _omitFieldNames ? '' : 'function') + ..pc(3, _omitFieldNames ? '' : 'args', $pb.PbFieldType.PM, + subBuilder: Expr.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') @@ -349,9 +342,10 @@ class Expr_Call extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Expr_Call copyWith(void Function(Expr_Call) updates) => - super.copyWith((message) => updates(message as Expr_Call)) - as Expr_Call; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Expr_Call)) as Expr_Call; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_Call create() => Expr_Call._(); Expr_Call createEmptyInstance() => create(); @@ -361,6 +355,8 @@ class Expr_Call extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Expr_Call? _defaultInstance; + /// The target of an method call-style expression. For example, `x` in + /// `x.f()`. @$pb.TagNumber(1) Expr get target => $_getN(0); @$pb.TagNumber(1) @@ -375,6 +371,7 @@ class Expr_Call extends $pb.GeneratedMessage { @$pb.TagNumber(1) Expr ensureTarget() => $_ensure(0); + /// Required. The name of the function or method being called. @$pb.TagNumber(2) $core.String get function => $_getSZ(1); @$pb.TagNumber(2) @@ -387,45 +384,42 @@ class Expr_Call extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearFunction() => clearField(2); + /// The arguments. @$pb.TagNumber(3) $core.List get args => $_getList(2); } +/// A list creation expression. +/// +/// Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogenous, e.g. +/// `dyn([1, 'hello', 2.0])` class Expr_CreateList extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.CreateList', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'elements', - $pb.PbFieldType.PM, - subBuilder: Expr.create) - ..hasRequiredFields = false; - - Expr_CreateList._() : super(); factory Expr_CreateList({ $core.Iterable? elements, }) { - final _result = create(); + final $result = create(); if (elements != null) { - _result.elements.addAll(elements); + $result.elements.addAll(elements); } - return _result; + return $result; } + Expr_CreateList._() : super(); factory Expr_CreateList.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_CreateList.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.CreateList', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'elements', $pb.PbFieldType.PM, + subBuilder: Expr.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') @@ -435,8 +429,10 @@ class Expr_CreateList extends $pb.GeneratedMessage { 'Will be removed in next major version') Expr_CreateList copyWith(void Function(Expr_CreateList) updates) => super.copyWith((message) => updates(message as Expr_CreateList)) - as Expr_CreateList; // ignore: deprecated_member_use + as Expr_CreateList; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_CreateList create() => Expr_CreateList._(); Expr_CreateList createEmptyInstance() => create(); @@ -447,74 +443,62 @@ class Expr_CreateList extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Expr_CreateList? _defaultInstance; + /// The elements part of the list. @$pb.TagNumber(1) $core.List get elements => $_getList(0); } enum Expr_CreateStruct_Entry_KeyKind { fieldKey, mapKey, notSet } +/// Represents an entry. class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Expr_CreateStruct_Entry_KeyKind> - _Expr_CreateStruct_Entry_KeyKindByTag = { - 2: Expr_CreateStruct_Entry_KeyKind.fieldKey, - 3: Expr_CreateStruct_Entry_KeyKind.mapKey, - 0: Expr_CreateStruct_Entry_KeyKind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.CreateStruct.Entry', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..oo(0, [2, 3]) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id', - $pb.PbFieldType.O3) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fieldKey') - ..aOM(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapKey', - subBuilder: Expr.create) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', - subBuilder: Expr.create) - ..hasRequiredFields = false; - - Expr_CreateStruct_Entry._() : super(); factory Expr_CreateStruct_Entry({ $core.int? id, $core.String? fieldKey, Expr? mapKey, Expr? value, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (fieldKey != null) { - _result.fieldKey = fieldKey; + $result.fieldKey = fieldKey; } if (mapKey != null) { - _result.mapKey = mapKey; + $result.mapKey = mapKey; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + Expr_CreateStruct_Entry._() : super(); factory Expr_CreateStruct_Entry.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_CreateStruct_Entry.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Expr_CreateStruct_Entry_KeyKind> + _Expr_CreateStruct_Entry_KeyKindByTag = { + 2: Expr_CreateStruct_Entry_KeyKind.fieldKey, + 3: Expr_CreateStruct_Entry_KeyKind.mapKey, + 0: Expr_CreateStruct_Entry_KeyKind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.CreateStruct.Entry', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..oo(0, [2, 3]) + ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'fieldKey') + ..aOM(3, _omitFieldNames ? '' : 'mapKey', subBuilder: Expr.create) + ..aOM(4, _omitFieldNames ? '' : 'value', subBuilder: Expr.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') @@ -526,8 +510,10 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { Expr_CreateStruct_Entry copyWith( void Function(Expr_CreateStruct_Entry) updates) => super.copyWith((message) => updates(message as Expr_CreateStruct_Entry)) - as Expr_CreateStruct_Entry; // ignore: deprecated_member_use + as Expr_CreateStruct_Entry; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_CreateStruct_Entry create() => Expr_CreateStruct_Entry._(); Expr_CreateStruct_Entry createEmptyInstance() => create(); @@ -542,6 +528,9 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { _Expr_CreateStruct_Entry_KeyKindByTag[$_whichOneof(0)]!; void clearKeyKind() => clearField($_whichOneof(0)); + /// Required. An id assigned to this node by the parser which is unique + /// in a given expression tree. This is used to associate type + /// information and other attributes to the node. @$pb.TagNumber(1) $core.int get id => $_getIZ(0); @$pb.TagNumber(1) @@ -554,6 +543,7 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// The field key for a message creator statement. @$pb.TagNumber(2) $core.String get fieldKey => $_getSZ(1); @$pb.TagNumber(2) @@ -566,6 +556,7 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearFieldKey() => clearField(2); + /// The key expression for a map creation statement. @$pb.TagNumber(3) Expr get mapKey => $_getN(2); @$pb.TagNumber(3) @@ -580,6 +571,7 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { @$pb.TagNumber(3) Expr ensureMapKey() => $_ensure(2); + /// Required. The value assigned to the key. @$pb.TagNumber(4) Expr get value => $_getN(3); @$pb.TagNumber(4) @@ -595,50 +587,44 @@ class Expr_CreateStruct_Entry extends $pb.GeneratedMessage { Expr ensureValue() => $_ensure(3); } +/// A map or message creation expression. +/// +/// Maps are constructed as `{'key_name': 'value'}`. Message construction is +/// similar, but prefixed with a type name and composed of field ids: +/// `types.MyType{field_id: 'value'}`. class Expr_CreateStruct extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.CreateStruct', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'entries', - $pb.PbFieldType.PM, - subBuilder: Expr_CreateStruct_Entry.create) - ..hasRequiredFields = false; - - Expr_CreateStruct._() : super(); factory Expr_CreateStruct({ $core.String? type, $core.Iterable? entries, }) { - final _result = create(); + final $result = create(); if (type != null) { - _result.type = type; + $result.type = type; } if (entries != null) { - _result.entries.addAll(entries); + $result.entries.addAll(entries); } - return _result; + return $result; } + Expr_CreateStruct._() : super(); factory Expr_CreateStruct.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_CreateStruct.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.CreateStruct', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'type') + ..pc( + 2, _omitFieldNames ? '' : 'entries', $pb.PbFieldType.PM, + subBuilder: Expr_CreateStruct_Entry.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') @@ -648,8 +634,10 @@ class Expr_CreateStruct extends $pb.GeneratedMessage { 'Will be removed in next major version') Expr_CreateStruct copyWith(void Function(Expr_CreateStruct) updates) => super.copyWith((message) => updates(message as Expr_CreateStruct)) - as Expr_CreateStruct; // ignore: deprecated_member_use + as Expr_CreateStruct; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_CreateStruct create() => Expr_CreateStruct._(); Expr_CreateStruct createEmptyInstance() => create(); @@ -660,6 +648,8 @@ class Expr_CreateStruct extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Expr_CreateStruct? _defaultInstance; + /// The type name of the message to be created, empty when creating map + /// literals. @$pb.TagNumber(1) $core.String get type => $_getSZ(0); @$pb.TagNumber(1) @@ -672,39 +662,38 @@ class Expr_CreateStruct extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearType() => clearField(1); + /// The entries in the creation expression. @$pb.TagNumber(2) $core.List get entries => $_getList(1); } +/// A comprehension expression applied to a list or map. +/// +/// Comprehensions are not part of the core syntax, but enabled with macros. +/// A macro matches a specific call signature within a parsed AST and replaces +/// the call with an alternate AST block. Macro expansion happens at parse +/// time. +/// +/// The following macros are supported within CEL: +/// +/// Aggregate type macros may be applied to all elements in a list or all keys +/// in a map: +/// +/// * `all`, `exists`, `exists_one` - test a predicate expression against +/// the inputs and return `true` if the predicate is satisfied for all, +/// any, or only one value `list.all(x, x < 10)`. +/// * `filter` - test a predicate expression against the inputs and return +/// the subset of elements which satisfy the predicate: +/// `payments.filter(p, p > 1000)`. +/// * `map` - apply an expression to all elements in the input and return the +/// output aggregate type: `[1, 2, 3].map(i, i * i)`. +/// +/// The `has(m.x)` macro tests whether the property `x` is present in struct +/// `m`. The semantics of this macro depend on the type of `m`. For proto2 +/// messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the +/// macro tests whether the property is set to its default. For map and struct +/// types, the macro tests whether the property `x` is defined on `m`. class Expr_Comprehension extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Expr.Comprehension', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'iterVar') - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'iterRange', - subBuilder: Expr.create) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'accuVar') - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'accuInit', - subBuilder: Expr.create) - ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'loopCondition', subBuilder: Expr.create) - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'loopStep', subBuilder: Expr.create) - ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'result', subBuilder: Expr.create) - ..hasRequiredFields = false; - - Expr_Comprehension._() : super(); factory Expr_Comprehension({ $core.String? iterVar, Expr? iterRange, @@ -714,36 +703,53 @@ class Expr_Comprehension extends $pb.GeneratedMessage { Expr? loopStep, Expr? result, }) { - final _result = create(); + final $result = create(); if (iterVar != null) { - _result.iterVar = iterVar; + $result.iterVar = iterVar; } if (iterRange != null) { - _result.iterRange = iterRange; + $result.iterRange = iterRange; } if (accuVar != null) { - _result.accuVar = accuVar; + $result.accuVar = accuVar; } if (accuInit != null) { - _result.accuInit = accuInit; + $result.accuInit = accuInit; } if (loopCondition != null) { - _result.loopCondition = loopCondition; + $result.loopCondition = loopCondition; } if (loopStep != null) { - _result.loopStep = loopStep; + $result.loopStep = loopStep; } if (result != null) { - _result.result = result; + $result.result = result; } - return _result; + return $result; } + Expr_Comprehension._() : super(); factory Expr_Comprehension.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr_Comprehension.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr.Comprehension', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'iterVar') + ..aOM(2, _omitFieldNames ? '' : 'iterRange', subBuilder: Expr.create) + ..aOS(3, _omitFieldNames ? '' : 'accuVar') + ..aOM(4, _omitFieldNames ? '' : 'accuInit', subBuilder: Expr.create) + ..aOM(5, _omitFieldNames ? '' : 'loopCondition', + subBuilder: Expr.create) + ..aOM(6, _omitFieldNames ? '' : 'loopStep', subBuilder: Expr.create) + ..aOM(7, _omitFieldNames ? '' : 'result', subBuilder: Expr.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') @@ -753,8 +759,10 @@ class Expr_Comprehension extends $pb.GeneratedMessage { 'Will be removed in next major version') Expr_Comprehension copyWith(void Function(Expr_Comprehension) updates) => super.copyWith((message) => updates(message as Expr_Comprehension)) - as Expr_Comprehension; // ignore: deprecated_member_use + as Expr_Comprehension; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr_Comprehension create() => Expr_Comprehension._(); Expr_Comprehension createEmptyInstance() => create(); @@ -765,6 +773,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Expr_Comprehension? _defaultInstance; + /// The name of the iteration variable. @$pb.TagNumber(1) $core.String get iterVar => $_getSZ(0); @$pb.TagNumber(1) @@ -777,6 +786,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearIterVar() => clearField(1); + /// The range over which var iterates. @$pb.TagNumber(2) Expr get iterRange => $_getN(1); @$pb.TagNumber(2) @@ -791,6 +801,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(2) Expr ensureIterRange() => $_ensure(1); + /// The name of the variable used for accumulation of the result. @$pb.TagNumber(3) $core.String get accuVar => $_getSZ(2); @$pb.TagNumber(3) @@ -803,6 +814,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearAccuVar() => clearField(3); + /// The initial value of the accumulator. @$pb.TagNumber(4) Expr get accuInit => $_getN(3); @$pb.TagNumber(4) @@ -817,6 +829,10 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(4) Expr ensureAccuInit() => $_ensure(3); + /// An expression which can contain iter_var and accu_var. + /// + /// Returns false when the result has been computed and may be used as + /// a hint to short-circuit the remainder of the comprehension. @$pb.TagNumber(5) Expr get loopCondition => $_getN(4); @$pb.TagNumber(5) @@ -831,6 +847,9 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(5) Expr ensureLoopCondition() => $_ensure(4); + /// An expression which can contain iter_var and accu_var. + /// + /// Computes the next value of accu_var. @$pb.TagNumber(6) Expr get loopStep => $_getN(5); @$pb.TagNumber(6) @@ -845,6 +864,9 @@ class Expr_Comprehension extends $pb.GeneratedMessage { @$pb.TagNumber(6) Expr ensureLoopStep() => $_ensure(5); + /// An expression which can contain accu_var. + /// + /// Computes the result. @$pb.TagNumber(7) Expr get result => $_getN(6); @$pb.TagNumber(7) @@ -871,46 +893,22 @@ enum Expr_ExprKind { notSet } +/// An abstract representation of a common expression. +/// +/// Expressions are abstractly represented as a collection of identifiers, +/// select statements, function calls, literals, and comprehensions. All +/// operators with the exception of the '.' operator are modelled as function +/// calls. This makes it easy to represent new operators into the existing AST. +/// +/// All references within expressions must resolve to a [Decl][google.api.expr.v1beta1.Decl] provided at +/// type-check for an expression to be valid. A reference may either be a bare +/// identifier `name` or a qualified identifier `google.api.name`. References +/// may either refer to a value or a function declaration. +/// +/// For example, the expression `google.api.name.startsWith('expr')` references +/// the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression, and +/// the function declaration `startsWith`. class Expr extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Expr_ExprKind> _Expr_ExprKindByTag = { - 3: Expr_ExprKind.literalExpr, - 4: Expr_ExprKind.identExpr, - 5: Expr_ExprKind.selectExpr, - 6: Expr_ExprKind.callExpr, - 7: Expr_ExprKind.listExpr, - 8: Expr_ExprKind.structExpr, - 9: Expr_ExprKind.comprehensionExpr, - 0: Expr_ExprKind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Expr', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..oo(0, [3, 4, 5, 6, 7, 8, 9]) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id', - $pb.PbFieldType.O3) - ..aOM(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'literalExpr', - subBuilder: Literal.create) - ..aOM( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'identExpr', - subBuilder: Expr_Ident.create) - ..aOM( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'selectExpr', - subBuilder: Expr_Select.create) - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'callExpr', - subBuilder: Expr_Call.create) - ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'listExpr', subBuilder: Expr_CreateList.create) - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'structExpr', subBuilder: Expr_CreateStruct.create) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'comprehensionExpr', subBuilder: Expr_Comprehension.create) - ..hasRequiredFields = false; - - Expr._() : super(); factory Expr({ $core.int? id, Literal? literalExpr, @@ -921,39 +919,74 @@ class Expr extends $pb.GeneratedMessage { Expr_CreateStruct? structExpr, Expr_Comprehension? comprehensionExpr, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (literalExpr != null) { - _result.literalExpr = literalExpr; + $result.literalExpr = literalExpr; } if (identExpr != null) { - _result.identExpr = identExpr; + $result.identExpr = identExpr; } if (selectExpr != null) { - _result.selectExpr = selectExpr; + $result.selectExpr = selectExpr; } if (callExpr != null) { - _result.callExpr = callExpr; + $result.callExpr = callExpr; } if (listExpr != null) { - _result.listExpr = listExpr; + $result.listExpr = listExpr; } if (structExpr != null) { - _result.structExpr = structExpr; + $result.structExpr = structExpr; } if (comprehensionExpr != null) { - _result.comprehensionExpr = comprehensionExpr; + $result.comprehensionExpr = comprehensionExpr; } - return _result; + return $result; } + Expr._() : super(); factory Expr.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Expr.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Expr_ExprKind> _Expr_ExprKindByTag = { + 3: Expr_ExprKind.literalExpr, + 4: Expr_ExprKind.identExpr, + 5: Expr_ExprKind.selectExpr, + 6: Expr_ExprKind.callExpr, + 7: Expr_ExprKind.listExpr, + 8: Expr_ExprKind.structExpr, + 9: Expr_ExprKind.comprehensionExpr, + 0: Expr_ExprKind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Expr', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..oo(0, [3, 4, 5, 6, 7, 8, 9]) + ..a<$core.int>(2, _omitFieldNames ? '' : 'id', $pb.PbFieldType.O3) + ..aOM(3, _omitFieldNames ? '' : 'literalExpr', + subBuilder: Literal.create) + ..aOM(4, _omitFieldNames ? '' : 'identExpr', + subBuilder: Expr_Ident.create) + ..aOM(5, _omitFieldNames ? '' : 'selectExpr', + subBuilder: Expr_Select.create) + ..aOM(6, _omitFieldNames ? '' : 'callExpr', + subBuilder: Expr_Call.create) + ..aOM(7, _omitFieldNames ? '' : 'listExpr', + subBuilder: Expr_CreateList.create) + ..aOM(8, _omitFieldNames ? '' : 'structExpr', + subBuilder: Expr_CreateStruct.create) + ..aOM(9, _omitFieldNames ? '' : 'comprehensionExpr', + subBuilder: Expr_Comprehension.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') @@ -962,9 +995,10 @@ class Expr extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Expr copyWith(void Function(Expr) updates) => - super.copyWith((message) => updates(message as Expr)) - as Expr; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Expr)) as Expr; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Expr create() => Expr._(); Expr createEmptyInstance() => create(); @@ -977,6 +1011,9 @@ class Expr extends $pb.GeneratedMessage { Expr_ExprKind whichExprKind() => _Expr_ExprKindByTag[$_whichOneof(0)]!; void clearExprKind() => clearField($_whichOneof(0)); + /// Required. An id assigned to this node by the parser which is unique in a + /// given expression tree. This is used to associate type information and other + /// attributes to a node in the parse tree. @$pb.TagNumber(2) $core.int get id => $_getIZ(0); @$pb.TagNumber(2) @@ -989,6 +1026,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// A literal expression. @$pb.TagNumber(3) Literal get literalExpr => $_getN(1); @$pb.TagNumber(3) @@ -1003,6 +1041,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(3) Literal ensureLiteralExpr() => $_ensure(1); + /// An identifier expression. @$pb.TagNumber(4) Expr_Ident get identExpr => $_getN(2); @$pb.TagNumber(4) @@ -1017,6 +1056,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(4) Expr_Ident ensureIdentExpr() => $_ensure(2); + /// A field selection expression, e.g. `request.auth`. @$pb.TagNumber(5) Expr_Select get selectExpr => $_getN(3); @$pb.TagNumber(5) @@ -1031,6 +1071,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(5) Expr_Select ensureSelectExpr() => $_ensure(3); + /// A call expression, including calls to predefined functions and operators. @$pb.TagNumber(6) Expr_Call get callExpr => $_getN(4); @$pb.TagNumber(6) @@ -1045,6 +1086,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(6) Expr_Call ensureCallExpr() => $_ensure(4); + /// A list creation expression. @$pb.TagNumber(7) Expr_CreateList get listExpr => $_getN(5); @$pb.TagNumber(7) @@ -1059,6 +1101,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(7) Expr_CreateList ensureListExpr() => $_ensure(5); + /// A map or object creation expression. @$pb.TagNumber(8) Expr_CreateStruct get structExpr => $_getN(6); @$pb.TagNumber(8) @@ -1073,6 +1116,7 @@ class Expr extends $pb.GeneratedMessage { @$pb.TagNumber(8) Expr_CreateStruct ensureStructExpr() => $_ensure(6); + /// A comprehension expression. @$pb.TagNumber(9) Expr_Comprehension get comprehensionExpr => $_getN(7); @$pb.TagNumber(9) @@ -1099,49 +1143,20 @@ enum Literal_ConstantKind { notSet } +/// Represents a primitive literal. +/// +/// This is similar to the primitives supported in the well-known type +/// `google.protobuf.Value`, but richer so it can represent CEL's full range of +/// primitives. +/// +/// Lists and structs are not included as constants as these aggregate types may +/// contain [Expr][google.api.expr.v1beta1.Expr] elements which require evaluation and are thus not constant. +/// +/// Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`, +/// `true`, `null`. class Literal extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Literal_ConstantKind> - _Literal_ConstantKindByTag = { - 1: Literal_ConstantKind.nullValue, - 2: Literal_ConstantKind.boolValue, - 3: Literal_ConstantKind.int64Value, - 4: Literal_ConstantKind.uint64Value, - 5: Literal_ConstantKind.doubleValue, - 6: Literal_ConstantKind.stringValue, - 7: Literal_ConstantKind.bytesValue, - 0: Literal_ConstantKind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Literal', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5, 6, 7]) - ..e<$1.NullValue>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nullValue', - $pb.PbFieldType.OE, - defaultOrMaker: $1.NullValue.NULL_VALUE, - valueOf: $1.NullValue.valueOf, - enumValues: $1.NullValue.values) - ..aOB(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'boolValue') - ..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'int64Value') - ..a<$fixnum.Int64>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uint64Value', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'doubleValue', $pb.PbFieldType.OD) - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stringValue') - ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bytesValue', $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - Literal._() : super(); factory Literal({ - $1.NullValue? nullValue, + $48.NullValue? nullValue, $core.bool? boolValue, $fixnum.Int64? int64Value, $fixnum.Int64? uint64Value, @@ -1149,36 +1164,72 @@ class Literal extends $pb.GeneratedMessage { $core.String? stringValue, $core.List<$core.int>? bytesValue, }) { - final _result = create(); + final $result = create(); if (nullValue != null) { - _result.nullValue = nullValue; + $result.nullValue = nullValue; } if (boolValue != null) { - _result.boolValue = boolValue; + $result.boolValue = boolValue; } if (int64Value != null) { - _result.int64Value = int64Value; + $result.int64Value = int64Value; } if (uint64Value != null) { - _result.uint64Value = uint64Value; + $result.uint64Value = uint64Value; } if (doubleValue != null) { - _result.doubleValue = doubleValue; + $result.doubleValue = doubleValue; } if (stringValue != null) { - _result.stringValue = stringValue; + $result.stringValue = stringValue; } if (bytesValue != null) { - _result.bytesValue = bytesValue; + $result.bytesValue = bytesValue; } - return _result; + return $result; } + Literal._() : super(); factory Literal.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Literal.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Literal_ConstantKind> + _Literal_ConstantKindByTag = { + 1: Literal_ConstantKind.nullValue, + 2: Literal_ConstantKind.boolValue, + 3: Literal_ConstantKind.int64Value, + 4: Literal_ConstantKind.uint64Value, + 5: Literal_ConstantKind.doubleValue, + 6: Literal_ConstantKind.stringValue, + 7: Literal_ConstantKind.bytesValue, + 0: Literal_ConstantKind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Literal', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3, 4, 5, 6, 7]) + ..e<$48.NullValue>( + 1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, + defaultOrMaker: $48.NullValue.NULL_VALUE, + valueOf: $48.NullValue.valueOf, + enumValues: $48.NullValue.values) + ..aOB(2, _omitFieldNames ? '' : 'boolValue') + ..aInt64(3, _omitFieldNames ? '' : 'int64Value') + ..a<$fixnum.Int64>( + 4, _omitFieldNames ? '' : 'uint64Value', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 5, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD) + ..aOS(6, _omitFieldNames ? '' : 'stringValue') + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'bytesValue', $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') @@ -1187,9 +1238,10 @@ class Literal extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Literal copyWith(void Function(Literal) updates) => - super.copyWith((message) => updates(message as Literal)) - as Literal; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Literal)) as Literal; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Literal create() => Literal._(); Literal createEmptyInstance() => create(); @@ -1203,10 +1255,11 @@ class Literal extends $pb.GeneratedMessage { _Literal_ConstantKindByTag[$_whichOneof(0)]!; void clearConstantKind() => clearField($_whichOneof(0)); + /// null value. @$pb.TagNumber(1) - $1.NullValue get nullValue => $_getN(0); + $48.NullValue get nullValue => $_getN(0); @$pb.TagNumber(1) - set nullValue($1.NullValue v) { + set nullValue($48.NullValue v) { setField(1, v); } @@ -1215,6 +1268,7 @@ class Literal extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearNullValue() => clearField(1); + /// boolean value. @$pb.TagNumber(2) $core.bool get boolValue => $_getBF(1); @$pb.TagNumber(2) @@ -1227,6 +1281,7 @@ class Literal extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearBoolValue() => clearField(2); + /// int64 value. @$pb.TagNumber(3) $fixnum.Int64 get int64Value => $_getI64(2); @$pb.TagNumber(3) @@ -1239,6 +1294,7 @@ class Literal extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearInt64Value() => clearField(3); + /// uint64 value. @$pb.TagNumber(4) $fixnum.Int64 get uint64Value => $_getI64(3); @$pb.TagNumber(4) @@ -1251,6 +1307,7 @@ class Literal extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUint64Value() => clearField(4); + /// double value. @$pb.TagNumber(5) $core.double get doubleValue => $_getN(4); @$pb.TagNumber(5) @@ -1263,6 +1320,7 @@ class Literal extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearDoubleValue() => clearField(5); + /// string value. @$pb.TagNumber(6) $core.String get stringValue => $_getSZ(5); @$pb.TagNumber(6) @@ -1275,6 +1333,7 @@ class Literal extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearStringValue() => clearField(6); + /// bytes value. @$pb.TagNumber(7) $core.List<$core.int> get bytesValue => $_getN(6); @$pb.TagNumber(7) @@ -1287,3 +1346,7 @@ class Literal extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearBytesValue() => clearField(7); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pbenum.dart index 2480c65a..c6d5a28b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/expr.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pbjson.dart index 3e095357..26ff5c59 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/expr.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/expr.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 parsedExprDescriptor instead') @@ -35,7 +39,11 @@ const ParsedExpr$json = { /// Descriptor for `ParsedExpr`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List parsedExprDescriptor = $convert.base64Decode( - 'CgpQYXJzZWRFeHByEjEKBGV4cHIYAiABKAsyHS5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5FeHByUgRleHByEkQKC3NvdXJjZV9pbmZvGAMgASgLMiMuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuU291cmNlSW5mb1IKc291cmNlSW5mbxIlCg5zeW50YXhfdmVyc2lvbhgEIAEoCVINc3ludGF4VmVyc2lvbg=='); + 'CgpQYXJzZWRFeHByEjEKBGV4cHIYAiABKAsyHS5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5FeH' + 'ByUgRleHByEkQKC3NvdXJjZV9pbmZvGAMgASgLMiMuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEu' + 'U291cmNlSW5mb1IKc291cmNlSW5mbxIlCg5zeW50YXhfdmVyc2lvbhgEIAEoCVINc3ludGF4Vm' + 'Vyc2lvbg=='); + @$core.Deprecated('Use exprDescriptor instead') const Expr$json = { '1': 'Expr', @@ -279,7 +287,36 @@ const Expr_Comprehension$json = { /// Descriptor for `Expr`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List exprDescriptor = $convert.base64Decode( - 'CgRFeHByEg4KAmlkGAIgASgFUgJpZBJFCgxsaXRlcmFsX2V4cHIYAyABKAsyIC5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5MaXRlcmFsSABSC2xpdGVyYWxFeHByEkQKCmlkZW50X2V4cHIYBCABKAsyIy5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5FeHByLklkZW50SABSCWlkZW50RXhwchJHCgtzZWxlY3RfZXhwchgFIAEoCzIkLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHIuU2VsZWN0SABSCnNlbGVjdEV4cHISQQoJY2FsbF9leHByGAYgASgLMiIuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRXhwci5DYWxsSABSCGNhbGxFeHByEkcKCWxpc3RfZXhwchgHIAEoCzIoLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHIuQ3JlYXRlTGlzdEgAUghsaXN0RXhwchJNCgtzdHJ1Y3RfZXhwchgIIAEoCzIqLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHIuQ3JlYXRlU3RydWN0SABSCnN0cnVjdEV4cHISXAoSY29tcHJlaGVuc2lvbl9leHByGAkgASgLMisuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRXhwci5Db21wcmVoZW5zaW9uSABSEWNvbXByZWhlbnNpb25FeHByGhsKBUlkZW50EhIKBG5hbWUYASABKAlSBG5hbWUadAoGU2VsZWN0EjcKB29wZXJhbmQYASABKAsyHS5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5FeHByUgdvcGVyYW5kEhQKBWZpZWxkGAIgASgJUgVmaWVsZBIbCgl0ZXN0X29ubHkYAyABKAhSCHRlc3RPbmx5GowBCgRDYWxsEjUKBnRhcmdldBgBIAEoCzIdLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHJSBnRhcmdldBIaCghmdW5jdGlvbhgCIAEoCVIIZnVuY3Rpb24SMQoEYXJncxgDIAMoCzIdLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHJSBGFyZ3MaRwoKQ3JlYXRlTGlzdBI5CghlbGVtZW50cxgBIAMoCzIdLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHJSCGVsZW1lbnRzGqICCgxDcmVhdGVTdHJ1Y3QSEgoEdHlwZRgBIAEoCVIEdHlwZRJKCgdlbnRyaWVzGAIgAygLMjAuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRXhwci5DcmVhdGVTdHJ1Y3QuRW50cnlSB2VudHJpZXMasQEKBUVudHJ5Eg4KAmlkGAEgASgFUgJpZBIdCglmaWVsZF9rZXkYAiABKAlIAFIIZmllbGRLZXkSOAoHbWFwX2tleRgDIAEoCzIdLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHJIAFIGbWFwS2V5EjMKBXZhbHVlGAQgASgLMh0uZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRXhwclIFdmFsdWVCCgoIa2V5X2tpbmQa+AIKDUNvbXByZWhlbnNpb24SGQoIaXRlcl92YXIYASABKAlSB2l0ZXJWYXISPAoKaXRlcl9yYW5nZRgCIAEoCzIdLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHJSCWl0ZXJSYW5nZRIZCghhY2N1X3ZhchgDIAEoCVIHYWNjdVZhchI6CglhY2N1X2luaXQYBCABKAsyHS5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5FeHByUghhY2N1SW5pdBJECg5sb29wX2NvbmRpdGlvbhgFIAEoCzIdLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHJSDWxvb3BDb25kaXRpb24SOgoJbG9vcF9zdGVwGAYgASgLMh0uZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRXhwclIIbG9vcFN0ZXASNQoGcmVzdWx0GAcgASgLMh0uZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRXhwclIGcmVzdWx0QgsKCWV4cHJfa2luZA=='); + 'CgRFeHByEg4KAmlkGAIgASgFUgJpZBJFCgxsaXRlcmFsX2V4cHIYAyABKAsyIC5nb29nbGUuYX' + 'BpLmV4cHIudjFiZXRhMS5MaXRlcmFsSABSC2xpdGVyYWxFeHByEkQKCmlkZW50X2V4cHIYBCAB' + 'KAsyIy5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5FeHByLklkZW50SABSCWlkZW50RXhwchJHCg' + 'tzZWxlY3RfZXhwchgFIAEoCzIkLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHIuU2VsZWN0' + 'SABSCnNlbGVjdEV4cHISQQoJY2FsbF9leHByGAYgASgLMiIuZ29vZ2xlLmFwaS5leHByLnYxYm' + 'V0YTEuRXhwci5DYWxsSABSCGNhbGxFeHByEkcKCWxpc3RfZXhwchgHIAEoCzIoLmdvb2dsZS5h' + 'cGkuZXhwci52MWJldGExLkV4cHIuQ3JlYXRlTGlzdEgAUghsaXN0RXhwchJNCgtzdHJ1Y3RfZX' + 'hwchgIIAEoCzIqLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHIuQ3JlYXRlU3RydWN0SABS' + 'CnN0cnVjdEV4cHISXAoSY29tcHJlaGVuc2lvbl9leHByGAkgASgLMisuZ29vZ2xlLmFwaS5leH' + 'ByLnYxYmV0YTEuRXhwci5Db21wcmVoZW5zaW9uSABSEWNvbXByZWhlbnNpb25FeHByGhsKBUlk' + 'ZW50EhIKBG5hbWUYASABKAlSBG5hbWUadAoGU2VsZWN0EjcKB29wZXJhbmQYASABKAsyHS5nb2' + '9nbGUuYXBpLmV4cHIudjFiZXRhMS5FeHByUgdvcGVyYW5kEhQKBWZpZWxkGAIgASgJUgVmaWVs' + 'ZBIbCgl0ZXN0X29ubHkYAyABKAhSCHRlc3RPbmx5GowBCgRDYWxsEjUKBnRhcmdldBgBIAEoCz' + 'IdLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cHJSBnRhcmdldBIaCghmdW5jdGlvbhgCIAEo' + 'CVIIZnVuY3Rpb24SMQoEYXJncxgDIAMoCzIdLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkV4cH' + 'JSBGFyZ3MaRwoKQ3JlYXRlTGlzdBI5CghlbGVtZW50cxgBIAMoCzIdLmdvb2dsZS5hcGkuZXhw' + 'ci52MWJldGExLkV4cHJSCGVsZW1lbnRzGqICCgxDcmVhdGVTdHJ1Y3QSEgoEdHlwZRgBIAEoCV' + 'IEdHlwZRJKCgdlbnRyaWVzGAIgAygLMjAuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuRXhwci5D' + 'cmVhdGVTdHJ1Y3QuRW50cnlSB2VudHJpZXMasQEKBUVudHJ5Eg4KAmlkGAEgASgFUgJpZBIdCg' + 'lmaWVsZF9rZXkYAiABKAlIAFIIZmllbGRLZXkSOAoHbWFwX2tleRgDIAEoCzIdLmdvb2dsZS5h' + 'cGkuZXhwci52MWJldGExLkV4cHJIAFIGbWFwS2V5EjMKBXZhbHVlGAQgASgLMh0uZ29vZ2xlLm' + 'FwaS5leHByLnYxYmV0YTEuRXhwclIFdmFsdWVCCgoIa2V5X2tpbmQa+AIKDUNvbXByZWhlbnNp' + 'b24SGQoIaXRlcl92YXIYASABKAlSB2l0ZXJWYXISPAoKaXRlcl9yYW5nZRgCIAEoCzIdLmdvb2' + 'dsZS5hcGkuZXhwci52MWJldGExLkV4cHJSCWl0ZXJSYW5nZRIZCghhY2N1X3ZhchgDIAEoCVIH' + 'YWNjdVZhchI6CglhY2N1X2luaXQYBCABKAsyHS5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5FeH' + 'ByUghhY2N1SW5pdBJECg5sb29wX2NvbmRpdGlvbhgFIAEoCzIdLmdvb2dsZS5hcGkuZXhwci52' + 'MWJldGExLkV4cHJSDWxvb3BDb25kaXRpb24SOgoJbG9vcF9zdGVwGAYgASgLMh0uZ29vZ2xlLm' + 'FwaS5leHByLnYxYmV0YTEuRXhwclIIbG9vcFN0ZXASNQoGcmVzdWx0GAcgASgLMh0uZ29vZ2xl' + 'LmFwaS5leHByLnYxYmV0YTEuRXhwclIGcmVzdWx0QgsKCWV4cHJfa2luZA=='); + @$core.Deprecated('Use literalDescriptor instead') const Literal$json = { '1': 'Literal', @@ -307,4 +344,9 @@ const Literal$json = { /// Descriptor for `Literal`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List literalDescriptor = $convert.base64Decode( - 'CgdMaXRlcmFsEjsKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSABSCW51bGxWYWx1ZRIfCgpib29sX3ZhbHVlGAIgASgISABSCWJvb2xWYWx1ZRIhCgtpbnQ2NF92YWx1ZRgDIAEoA0gAUgppbnQ2NFZhbHVlEiMKDHVpbnQ2NF92YWx1ZRgEIAEoBEgAUgt1aW50NjRWYWx1ZRIjCgxkb3VibGVfdmFsdWUYBSABKAFIAFILZG91YmxlVmFsdWUSIwoMc3RyaW5nX3ZhbHVlGAYgASgJSABSC3N0cmluZ1ZhbHVlEiEKC2J5dGVzX3ZhbHVlGAcgASgMSABSCmJ5dGVzVmFsdWVCDwoNY29uc3RhbnRfa2luZA=='); + 'CgdMaXRlcmFsEjsKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbH' + 'VlSABSCW51bGxWYWx1ZRIfCgpib29sX3ZhbHVlGAIgASgISABSCWJvb2xWYWx1ZRIhCgtpbnQ2' + 'NF92YWx1ZRgDIAEoA0gAUgppbnQ2NFZhbHVlEiMKDHVpbnQ2NF92YWx1ZRgEIAEoBEgAUgt1aW' + '50NjRWYWx1ZRIjCgxkb3VibGVfdmFsdWUYBSABKAFIAFILZG91YmxlVmFsdWUSIwoMc3RyaW5n' + 'X3ZhbHVlGAYgASgJSABSC3N0cmluZ1ZhbHVlEiEKC2J5dGVzX3ZhbHVlGAcgASgMSABSCmJ5dG' + 'VzVmFsdWVCDwoNY29uc3RhbnRfa2luZA=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pb.dart index a04ba131..58f85f24 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pb.dart @@ -1,70 +1,59 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/source.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Source information collected at parse time. class SourceInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SourceInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'location') - ..p<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'lineOffsets', - $pb.PbFieldType.P3) - ..m<$core.int, $core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'positions', - entryClassName: 'SourceInfo.PositionsEntry', - keyFieldType: $pb.PbFieldType.O3, - valueFieldType: $pb.PbFieldType.O3, - packageName: const $pb.PackageName('google.api.expr.v1beta1')) - ..hasRequiredFields = false; - - SourceInfo._() : super(); factory SourceInfo({ $core.String? location, $core.Iterable<$core.int>? lineOffsets, $core.Map<$core.int, $core.int>? positions, }) { - final _result = create(); + final $result = create(); if (location != null) { - _result.location = location; + $result.location = location; } if (lineOffsets != null) { - _result.lineOffsets.addAll(lineOffsets); + $result.lineOffsets.addAll(lineOffsets); } if (positions != null) { - _result.positions.addAll(positions); + $result.positions.addAll(positions); } - return _result; + return $result; } + SourceInfo._() : super(); factory SourceInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SourceInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'location') + ..p<$core.int>(3, _omitFieldNames ? '' : 'lineOffsets', $pb.PbFieldType.K3) + ..m<$core.int, $core.int>(4, _omitFieldNames ? '' : 'positions', + entryClassName: 'SourceInfo.PositionsEntry', + keyFieldType: $pb.PbFieldType.O3, + valueFieldType: $pb.PbFieldType.O3, + packageName: const $pb.PackageName('google.api.expr.v1beta1')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -73,9 +62,10 @@ class SourceInfo extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') SourceInfo copyWith(void Function(SourceInfo) updates) => - super.copyWith((message) => updates(message as SourceInfo)) - as SourceInfo; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as SourceInfo)) as SourceInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SourceInfo create() => SourceInfo._(); SourceInfo createEmptyInstance() => create(); @@ -85,6 +75,11 @@ class SourceInfo extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SourceInfo? _defaultInstance; + /// The location name. All position information attached to an expression is + /// relative to this location. + /// + /// The location could be a file, UI element, or similar. For example, + /// `acme/app/AnvilPolicy.cel`. @$pb.TagNumber(2) $core.String get location => $_getSZ(0); @$pb.TagNumber(2) @@ -97,71 +92,62 @@ class SourceInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearLocation() => clearField(2); + /// Monotonically increasing list of character offsets where newlines appear. + /// + /// The line number of a given position is the index `i` where for a given + /// `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The + /// column may be derivd from `id_positions[id] - line_offsets[i]`. @$pb.TagNumber(3) $core.List<$core.int> get lineOffsets => $_getList(1); + /// A map from the parse node id (e.g. `Expr.id`) to the character offset + /// within source. @$pb.TagNumber(4) $core.Map<$core.int, $core.int> get positions => $_getMap(2); } +/// A specific position in source. class SourcePosition extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SourcePosition', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'location') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'offset', - $pb.PbFieldType.O3) - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'line', - $pb.PbFieldType.O3) - ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'column', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - SourcePosition._() : super(); factory SourcePosition({ $core.String? location, $core.int? offset, $core.int? line, $core.int? column, }) { - final _result = create(); + final $result = create(); if (location != null) { - _result.location = location; + $result.location = location; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } if (line != null) { - _result.line = line; + $result.line = line; } if (column != null) { - _result.column = column; + $result.column = column; } - return _result; + return $result; } + SourcePosition._() : super(); factory SourcePosition.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SourcePosition.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourcePosition', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'location') + ..a<$core.int>(2, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'line', $pb.PbFieldType.O3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'column', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -171,8 +157,10 @@ class SourcePosition extends $pb.GeneratedMessage { 'Will be removed in next major version') SourcePosition copyWith(void Function(SourcePosition) updates) => super.copyWith((message) => updates(message as SourcePosition)) - as SourcePosition; // ignore: deprecated_member_use + as SourcePosition; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SourcePosition create() => SourcePosition._(); SourcePosition createEmptyInstance() => create(); @@ -183,6 +171,7 @@ class SourcePosition extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SourcePosition? _defaultInstance; + /// The soucre location name (e.g. file name). @$pb.TagNumber(1) $core.String get location => $_getSZ(0); @$pb.TagNumber(1) @@ -195,6 +184,7 @@ class SourcePosition extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearLocation() => clearField(1); + /// The character offset. @$pb.TagNumber(2) $core.int get offset => $_getIZ(1); @$pb.TagNumber(2) @@ -207,6 +197,8 @@ class SourcePosition extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOffset() => clearField(2); + /// The 1-based index of the starting line in the source text + /// where the issue occurs, or 0 if unknown. @$pb.TagNumber(3) $core.int get line => $_getIZ(2); @$pb.TagNumber(3) @@ -219,6 +211,8 @@ class SourcePosition extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearLine() => clearField(3); + /// The 0-based index of the starting position within the line of source text + /// where the issue occurs. Only meaningful if line is nonzer.. @$pb.TagNumber(4) $core.int get column => $_getIZ(3); @$pb.TagNumber(4) @@ -231,3 +225,7 @@ class SourcePosition extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearColumn() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pbenum.dart index 0931a7c6..886db2e3 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/source.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pbjson.dart index 1dcba88d..a27f07f9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/source.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/source.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 sourceInfoDescriptor instead') @@ -39,7 +43,11 @@ const SourceInfo_PositionsEntry$json = { /// Descriptor for `SourceInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sourceInfoDescriptor = $convert.base64Decode( - 'CgpTb3VyY2VJbmZvEhoKCGxvY2F0aW9uGAIgASgJUghsb2NhdGlvbhIhCgxsaW5lX29mZnNldHMYAyADKAVSC2xpbmVPZmZzZXRzElAKCXBvc2l0aW9ucxgEIAMoCzIyLmdvb2dsZS5hcGkuZXhwci52MWJldGExLlNvdXJjZUluZm8uUG9zaXRpb25zRW50cnlSCXBvc2l0aW9ucxo8Cg5Qb3NpdGlvbnNFbnRyeRIQCgNrZXkYASABKAVSA2tleRIUCgV2YWx1ZRgCIAEoBVIFdmFsdWU6AjgB'); + 'CgpTb3VyY2VJbmZvEhoKCGxvY2F0aW9uGAIgASgJUghsb2NhdGlvbhIhCgxsaW5lX29mZnNldH' + 'MYAyADKAVSC2xpbmVPZmZzZXRzElAKCXBvc2l0aW9ucxgEIAMoCzIyLmdvb2dsZS5hcGkuZXhw' + 'ci52MWJldGExLlNvdXJjZUluZm8uUG9zaXRpb25zRW50cnlSCXBvc2l0aW9ucxo8Cg5Qb3NpdG' + 'lvbnNFbnRyeRIQCgNrZXkYASABKAVSA2tleRIUCgV2YWx1ZRgCIAEoBVIFdmFsdWU6AjgB'); + @$core.Deprecated('Use sourcePositionDescriptor instead') const SourcePosition$json = { '1': 'SourcePosition', @@ -53,4 +61,6 @@ const SourcePosition$json = { /// Descriptor for `SourcePosition`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sourcePositionDescriptor = $convert.base64Decode( - 'Cg5Tb3VyY2VQb3NpdGlvbhIaCghsb2NhdGlvbhgBIAEoCVIIbG9jYXRpb24SFgoGb2Zmc2V0GAIgASgFUgZvZmZzZXQSEgoEbGluZRgDIAEoBVIEbGluZRIWCgZjb2x1bW4YBCABKAVSBmNvbHVtbg=='); + 'Cg5Tb3VyY2VQb3NpdGlvbhIaCghsb2NhdGlvbhgBIAEoCVIIbG9jYXRpb24SFgoGb2Zmc2V0GA' + 'IgASgFUgZvZmZzZXQSEgoEbGluZRgDIAEoBVIEbGluZRIWCgZjb2x1bW4YBCABKAVSBmNvbHVt' + 'bg=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pb.dart index 0a81701a..bdca4015 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pb.dart @@ -1,18 +1,21 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/value.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../protobuf/any.pb.dart' as $0; - -import '../../../protobuf/struct.pbenum.dart' as $1; +import '../../../protobuf/any.pb.dart' as $49; +import '../../../protobuf/struct.pbenum.dart' as $48; enum Value_Kind { nullValue, @@ -30,58 +33,13 @@ enum Value_Kind { notSet } +/// Represents a CEL value. +/// +/// This is similar to `google.protobuf.Value`, but can represent CEL's full +/// range of values. class Value extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { - 1: Value_Kind.nullValue, - 2: Value_Kind.boolValue, - 3: Value_Kind.int64Value, - 4: Value_Kind.uint64Value, - 5: Value_Kind.doubleValue, - 6: Value_Kind.stringValue, - 7: Value_Kind.bytesValue, - 9: Value_Kind.enumValue, - 10: Value_Kind.objectValue, - 11: Value_Kind.mapValue, - 12: Value_Kind.listValue, - 15: Value_Kind.typeValue, - 0: Value_Kind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Value', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 15]) - ..e<$1.NullValue>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nullValue', - $pb.PbFieldType.OE, - defaultOrMaker: $1.NullValue.NULL_VALUE, - valueOf: $1.NullValue.valueOf, - enumValues: $1.NullValue.values) - ..aOB(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'boolValue') - ..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'int64Value') - ..a<$fixnum.Int64>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uint64Value', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'doubleValue', $pb.PbFieldType.OD) - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stringValue') - ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bytesValue', $pb.PbFieldType.OY) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enumValue', subBuilder: EnumValue.create) - ..aOM<$0.Any>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'objectValue', subBuilder: $0.Any.create) - ..aOM(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapValue', subBuilder: MapValue.create) - ..aOM(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'listValue', subBuilder: ListValue.create) - ..aOS(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'typeValue') - ..hasRequiredFields = false; - - Value._() : super(); factory Value({ - $1.NullValue? nullValue, + $48.NullValue? nullValue, $core.bool? boolValue, $fixnum.Int64? int64Value, $fixnum.Int64? uint64Value, @@ -89,56 +47,105 @@ class Value extends $pb.GeneratedMessage { $core.String? stringValue, $core.List<$core.int>? bytesValue, EnumValue? enumValue, - $0.Any? objectValue, + $49.Any? objectValue, MapValue? mapValue, ListValue? listValue, $core.String? typeValue, }) { - final _result = create(); + final $result = create(); if (nullValue != null) { - _result.nullValue = nullValue; + $result.nullValue = nullValue; } if (boolValue != null) { - _result.boolValue = boolValue; + $result.boolValue = boolValue; } if (int64Value != null) { - _result.int64Value = int64Value; + $result.int64Value = int64Value; } if (uint64Value != null) { - _result.uint64Value = uint64Value; + $result.uint64Value = uint64Value; } if (doubleValue != null) { - _result.doubleValue = doubleValue; + $result.doubleValue = doubleValue; } if (stringValue != null) { - _result.stringValue = stringValue; + $result.stringValue = stringValue; } if (bytesValue != null) { - _result.bytesValue = bytesValue; + $result.bytesValue = bytesValue; } if (enumValue != null) { - _result.enumValue = enumValue; + $result.enumValue = enumValue; } if (objectValue != null) { - _result.objectValue = objectValue; + $result.objectValue = objectValue; } if (mapValue != null) { - _result.mapValue = mapValue; + $result.mapValue = mapValue; } if (listValue != null) { - _result.listValue = listValue; + $result.listValue = listValue; } if (typeValue != null) { - _result.typeValue = typeValue; + $result.typeValue = typeValue; } - return _result; + return $result; } + Value._() : super(); factory Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { + 1: Value_Kind.nullValue, + 2: Value_Kind.boolValue, + 3: Value_Kind.int64Value, + 4: Value_Kind.uint64Value, + 5: Value_Kind.doubleValue, + 6: Value_Kind.stringValue, + 7: Value_Kind.bytesValue, + 9: Value_Kind.enumValue, + 10: Value_Kind.objectValue, + 11: Value_Kind.mapValue, + 12: Value_Kind.listValue, + 15: Value_Kind.typeValue, + 0: Value_Kind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Value', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 15]) + ..e<$48.NullValue>( + 1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, + defaultOrMaker: $48.NullValue.NULL_VALUE, + valueOf: $48.NullValue.valueOf, + enumValues: $48.NullValue.values) + ..aOB(2, _omitFieldNames ? '' : 'boolValue') + ..aInt64(3, _omitFieldNames ? '' : 'int64Value') + ..a<$fixnum.Int64>( + 4, _omitFieldNames ? '' : 'uint64Value', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 5, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD) + ..aOS(6, _omitFieldNames ? '' : 'stringValue') + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'bytesValue', $pb.PbFieldType.OY) + ..aOM(9, _omitFieldNames ? '' : 'enumValue', + subBuilder: EnumValue.create) + ..aOM<$49.Any>(10, _omitFieldNames ? '' : 'objectValue', + subBuilder: $49.Any.create) + ..aOM(11, _omitFieldNames ? '' : 'mapValue', + subBuilder: MapValue.create) + ..aOM(12, _omitFieldNames ? '' : 'listValue', + subBuilder: ListValue.create) + ..aOS(15, _omitFieldNames ? '' : 'typeValue') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -147,9 +154,10 @@ class Value extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Value copyWith(void Function(Value) updates) => - super.copyWith((message) => updates(message as Value)) - as Value; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Value)) as Value; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Value create() => Value._(); Value createEmptyInstance() => create(); @@ -162,10 +170,11 @@ class Value extends $pb.GeneratedMessage { Value_Kind whichKind() => _Value_KindByTag[$_whichOneof(0)]!; void clearKind() => clearField($_whichOneof(0)); + /// Null value. @$pb.TagNumber(1) - $1.NullValue get nullValue => $_getN(0); + $48.NullValue get nullValue => $_getN(0); @$pb.TagNumber(1) - set nullValue($1.NullValue v) { + set nullValue($48.NullValue v) { setField(1, v); } @@ -174,6 +183,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearNullValue() => clearField(1); + /// Boolean value. @$pb.TagNumber(2) $core.bool get boolValue => $_getBF(1); @$pb.TagNumber(2) @@ -186,6 +196,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearBoolValue() => clearField(2); + /// Signed integer value. @$pb.TagNumber(3) $fixnum.Int64 get int64Value => $_getI64(2); @$pb.TagNumber(3) @@ -198,6 +209,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearInt64Value() => clearField(3); + /// Unsigned integer value. @$pb.TagNumber(4) $fixnum.Int64 get uint64Value => $_getI64(3); @$pb.TagNumber(4) @@ -210,6 +222,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUint64Value() => clearField(4); + /// Floating point value. @$pb.TagNumber(5) $core.double get doubleValue => $_getN(4); @$pb.TagNumber(5) @@ -222,6 +235,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearDoubleValue() => clearField(5); + /// UTF-8 string value. @$pb.TagNumber(6) $core.String get stringValue => $_getSZ(5); @$pb.TagNumber(6) @@ -234,6 +248,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearStringValue() => clearField(6); + /// Byte string value. @$pb.TagNumber(7) $core.List<$core.int> get bytesValue => $_getN(6); @$pb.TagNumber(7) @@ -246,6 +261,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearBytesValue() => clearField(7); + /// An enum value. @$pb.TagNumber(9) EnumValue get enumValue => $_getN(7); @$pb.TagNumber(9) @@ -260,10 +276,11 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(9) EnumValue ensureEnumValue() => $_ensure(7); + /// The proto message backing an object value. @$pb.TagNumber(10) - $0.Any get objectValue => $_getN(8); + $49.Any get objectValue => $_getN(8); @$pb.TagNumber(10) - set objectValue($0.Any v) { + set objectValue($49.Any v) { setField(10, v); } @@ -272,8 +289,9 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearObjectValue() => clearField(10); @$pb.TagNumber(10) - $0.Any ensureObjectValue() => $_ensure(8); + $49.Any ensureObjectValue() => $_ensure(8); + /// Map value. @$pb.TagNumber(11) MapValue get mapValue => $_getN(9); @$pb.TagNumber(11) @@ -288,6 +306,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(11) MapValue ensureMapValue() => $_ensure(9); + /// List value. @$pb.TagNumber(12) ListValue get listValue => $_getN(10); @$pb.TagNumber(12) @@ -302,6 +321,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(12) ListValue ensureListValue() => $_ensure(10); + /// A Type value represented by the fully qualified name of the type. @$pb.TagNumber(15) $core.String get typeValue => $_getSZ(11); @$pb.TagNumber(15) @@ -315,49 +335,38 @@ class Value extends $pb.GeneratedMessage { void clearTypeValue() => clearField(15); } +/// An enum value. class EnumValue extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnumValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - EnumValue._() : super(); factory EnumValue({ $core.String? type, $core.int? value, }) { - final _result = create(); + final $result = create(); if (type != null) { - _result.type = type; + $result.type = type; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + EnumValue._() : super(); factory EnumValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EnumValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnumValue', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'type') + ..a<$core.int>(2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -366,9 +375,10 @@ class EnumValue extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') EnumValue copyWith(void Function(EnumValue) updates) => - super.copyWith((message) => updates(message as EnumValue)) - as EnumValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as EnumValue)) as EnumValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnumValue create() => EnumValue._(); EnumValue createEmptyInstance() => create(); @@ -378,6 +388,7 @@ class EnumValue extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static EnumValue? _defaultInstance; + /// The fully qualified name of the enum type. @$pb.TagNumber(1) $core.String get type => $_getSZ(0); @$pb.TagNumber(1) @@ -390,6 +401,7 @@ class EnumValue extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearType() => clearField(1); + /// The value of the enum. @$pb.TagNumber(2) $core.int get value => $_getIZ(1); @$pb.TagNumber(2) @@ -403,41 +415,37 @@ class EnumValue extends $pb.GeneratedMessage { void clearValue() => clearField(2); } +/// A list. +/// +/// Wrapped in a message so 'not set' and empty can be differentiated, which is +/// required for use in a 'oneof'. class ListValue extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'values', - $pb.PbFieldType.PM, - subBuilder: Value.create) - ..hasRequiredFields = false; - - ListValue._() : super(); factory ListValue({ $core.Iterable? values, }) { - final _result = create(); + final $result = create(); if (values != null) { - _result.values.addAll(values); + $result.values.addAll(values); } - return _result; + return $result; } + ListValue._() : super(); factory ListValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListValue', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: Value.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') @@ -446,9 +454,10 @@ class ListValue extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ListValue copyWith(void Function(ListValue) updates) => - super.copyWith((message) => updates(message as ListValue)) - as ListValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ListValue)) as ListValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListValue create() => ListValue._(); ListValue createEmptyInstance() => create(); @@ -458,51 +467,43 @@ class ListValue extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListValue? _defaultInstance; + /// The ordered values in the list. @$pb.TagNumber(1) $core.List get values => $_getList(0); } +/// An entry in the map. class MapValue_Entry extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MapValue.Entry', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'key', - subBuilder: Value.create) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value', - subBuilder: Value.create) - ..hasRequiredFields = false; - - MapValue_Entry._() : super(); factory MapValue_Entry({ Value? key, Value? value, }) { - final _result = create(); + final $result = create(); if (key != null) { - _result.key = key; + $result.key = key; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + MapValue_Entry._() : super(); factory MapValue_Entry.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MapValue_Entry.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MapValue.Entry', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'key', subBuilder: Value.create) + ..aOM(2, _omitFieldNames ? '' : 'value', subBuilder: Value.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') @@ -512,8 +513,10 @@ class MapValue_Entry extends $pb.GeneratedMessage { 'Will be removed in next major version') MapValue_Entry copyWith(void Function(MapValue_Entry) updates) => super.copyWith((message) => updates(message as MapValue_Entry)) - as MapValue_Entry; // ignore: deprecated_member_use + as MapValue_Entry; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MapValue_Entry create() => MapValue_Entry._(); MapValue_Entry createEmptyInstance() => create(); @@ -524,6 +527,10 @@ class MapValue_Entry extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MapValue_Entry? _defaultInstance; + /// The key. + /// + /// Must be unique with in the map. + /// Currently only boolean, int, uint, and string values can be keys. @$pb.TagNumber(1) Value get key => $_getN(0); @$pb.TagNumber(1) @@ -538,6 +545,7 @@ class MapValue_Entry extends $pb.GeneratedMessage { @$pb.TagNumber(1) Value ensureKey() => $_ensure(0); + /// The value. @$pb.TagNumber(2) Value get value => $_getN(1); @$pb.TagNumber(2) @@ -553,41 +561,38 @@ class MapValue_Entry extends $pb.GeneratedMessage { Value ensureValue() => $_ensure(1); } +/// A map. +/// +/// Wrapped in a message so 'not set' and empty can be differentiated, which is +/// required for use in a 'oneof'. class MapValue extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MapValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.expr.v1beta1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'entries', - $pb.PbFieldType.PM, - subBuilder: MapValue_Entry.create) - ..hasRequiredFields = false; - - MapValue._() : super(); factory MapValue({ $core.Iterable? entries, }) { - final _result = create(); + final $result = create(); if (entries != null) { - _result.entries.addAll(entries); + $result.entries.addAll(entries); } - return _result; + return $result; } + MapValue._() : super(); factory MapValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MapValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MapValue', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.expr.v1beta1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'entries', $pb.PbFieldType.PM, + subBuilder: MapValue_Entry.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') @@ -596,9 +601,10 @@ class MapValue extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') MapValue copyWith(void Function(MapValue) updates) => - super.copyWith((message) => updates(message as MapValue)) - as MapValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as MapValue)) as MapValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MapValue create() => MapValue._(); MapValue createEmptyInstance() => create(); @@ -608,6 +614,14 @@ class MapValue extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static MapValue? _defaultInstance; + /// The set of map entries. + /// + /// CEL has fewer restrictions on keys, so a protobuf map represenation + /// cannot be used. @$pb.TagNumber(1) $core.List get entries => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pbenum.dart index 2e09808c..dd116de4 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/value.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pbjson.dart index f8e1d26a..2a71643e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/expr/v1beta1/value.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/expr/v1beta1/value.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 valueDescriptor instead') @@ -73,7 +77,18 @@ const Value$json = { /// Descriptor for `Value`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List valueDescriptor = $convert.base64Decode( - 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZUgAUgludWxsVmFsdWUSHwoKYm9vbF92YWx1ZRgCIAEoCEgAUglib29sVmFsdWUSIQoLaW50NjRfdmFsdWUYAyABKANIAFIKaW50NjRWYWx1ZRIjCgx1aW50NjRfdmFsdWUYBCABKARIAFILdWludDY0VmFsdWUSIwoMZG91YmxlX3ZhbHVlGAUgASgBSABSC2RvdWJsZVZhbHVlEiMKDHN0cmluZ192YWx1ZRgGIAEoCUgAUgtzdHJpbmdWYWx1ZRIhCgtieXRlc192YWx1ZRgHIAEoDEgAUgpieXRlc1ZhbHVlEkMKCmVudW1fdmFsdWUYCSABKAsyIi5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5FbnVtVmFsdWVIAFIJZW51bVZhbHVlEjkKDG9iamVjdF92YWx1ZRgKIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlIAFILb2JqZWN0VmFsdWUSQAoJbWFwX3ZhbHVlGAsgASgLMiEuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuTWFwVmFsdWVIAFIIbWFwVmFsdWUSQwoKbGlzdF92YWx1ZRgMIAEoCzIiLmdvb2dsZS5hcGkuZXhwci52MWJldGExLkxpc3RWYWx1ZUgAUglsaXN0VmFsdWUSHwoKdHlwZV92YWx1ZRgPIAEoCUgAUgl0eXBlVmFsdWVCBgoEa2luZA=='); + 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZU' + 'gAUgludWxsVmFsdWUSHwoKYm9vbF92YWx1ZRgCIAEoCEgAUglib29sVmFsdWUSIQoLaW50NjRf' + 'dmFsdWUYAyABKANIAFIKaW50NjRWYWx1ZRIjCgx1aW50NjRfdmFsdWUYBCABKARIAFILdWludD' + 'Y0VmFsdWUSIwoMZG91YmxlX3ZhbHVlGAUgASgBSABSC2RvdWJsZVZhbHVlEiMKDHN0cmluZ192' + 'YWx1ZRgGIAEoCUgAUgtzdHJpbmdWYWx1ZRIhCgtieXRlc192YWx1ZRgHIAEoDEgAUgpieXRlc1' + 'ZhbHVlEkMKCmVudW1fdmFsdWUYCSABKAsyIi5nb29nbGUuYXBpLmV4cHIudjFiZXRhMS5FbnVt' + 'VmFsdWVIAFIJZW51bVZhbHVlEjkKDG9iamVjdF92YWx1ZRgKIAEoCzIULmdvb2dsZS5wcm90b2' + 'J1Zi5BbnlIAFILb2JqZWN0VmFsdWUSQAoJbWFwX3ZhbHVlGAsgASgLMiEuZ29vZ2xlLmFwaS5l' + 'eHByLnYxYmV0YTEuTWFwVmFsdWVIAFIIbWFwVmFsdWUSQwoKbGlzdF92YWx1ZRgMIAEoCzIiLm' + 'dvb2dsZS5hcGkuZXhwci52MWJldGExLkxpc3RWYWx1ZUgAUglsaXN0VmFsdWUSHwoKdHlwZV92' + 'YWx1ZRgPIAEoCUgAUgl0eXBlVmFsdWVCBgoEa2luZA=='); + @$core.Deprecated('Use enumValueDescriptor instead') const EnumValue$json = { '1': 'EnumValue', @@ -86,6 +101,7 @@ const EnumValue$json = { /// Descriptor for `EnumValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List enumValueDescriptor = $convert.base64Decode( 'CglFbnVtVmFsdWUSEgoEdHlwZRgBIAEoCVIEdHlwZRIUCgV2YWx1ZRgCIAEoBVIFdmFsdWU='); + @$core.Deprecated('Use listValueDescriptor instead') const ListValue$json = { '1': 'ListValue', @@ -103,7 +119,9 @@ const ListValue$json = { /// Descriptor for `ListValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listValueDescriptor = $convert.base64Decode( - 'CglMaXN0VmFsdWUSNgoGdmFsdWVzGAEgAygLMh4uZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuVmFsdWVSBnZhbHVlcw=='); + 'CglMaXN0VmFsdWUSNgoGdmFsdWVzGAEgAygLMh4uZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuVm' + 'FsdWVSBnZhbHVlcw=='); + @$core.Deprecated('Use mapValueDescriptor instead') const MapValue$json = { '1': 'MapValue', @@ -145,4 +163,7 @@ const MapValue_Entry$json = { /// Descriptor for `MapValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List mapValueDescriptor = $convert.base64Decode( - 'CghNYXBWYWx1ZRJBCgdlbnRyaWVzGAEgAygLMicuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuTWFwVmFsdWUuRW50cnlSB2VudHJpZXMabwoFRW50cnkSMAoDa2V5GAEgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuVmFsdWVSA2tleRI0CgV2YWx1ZRgCIAEoCzIeLmdvb2dsZS5hcGkuZXhwci52MWJldGExLlZhbHVlUgV2YWx1ZQ=='); + 'CghNYXBWYWx1ZRJBCgdlbnRyaWVzGAEgAygLMicuZ29vZ2xlLmFwaS5leHByLnYxYmV0YTEuTW' + 'FwVmFsdWUuRW50cnlSB2VudHJpZXMabwoFRW50cnkSMAoDa2V5GAEgASgLMh4uZ29vZ2xlLmFw' + 'aS5leHByLnYxYmV0YTEuVmFsdWVSA2tleRI0CgV2YWx1ZRgCIAEoCzIeLmdvb2dsZS5hcGkuZX' + 'hwci52MWJldGExLlZhbHVlUgV2YWx1ZQ=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pb.dart index 85baa2cb..eaa35fa6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/api/field_behavior.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -15,12 +19,8 @@ export 'field_behavior.pbenum.dart'; class Field_behavior { static final fieldBehavior = $pb.Extension.repeated( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.FieldOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fieldBehavior', + _omitMessageNames ? '' : 'google.protobuf.FieldOptions', + _omitFieldNames ? '' : 'fieldBehavior', 1052, $pb.PbFieldType.PE, check: $pb.getCheckFunction($pb.PbFieldType.PE), @@ -30,3 +30,7 @@ class Field_behavior { registry.add(fieldBehavior); } } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pbenum.dart index 0d1c8ca5..8fa90203 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pbenum.dart @@ -1,44 +1,43 @@ -/// +// // Generated code. Do not modify. // source: google/api/field_behavior.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// An indicator of the behavior of a given field (for example, that a field +/// is required in requests, or given as output but ignored as input). +/// This **does not** change the behavior in protocol buffers itself; it only +/// denotes the behavior and may affect how API tooling handles the field. +/// +/// Note: This enum **may** receive new values in the future. class FieldBehavior extends $pb.ProtobufEnum { - static const FieldBehavior FIELD_BEHAVIOR_UNSPECIFIED = FieldBehavior._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FIELD_BEHAVIOR_UNSPECIFIED'); - static const FieldBehavior OPTIONAL = FieldBehavior._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'OPTIONAL'); - static const FieldBehavior REQUIRED = FieldBehavior._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'REQUIRED'); - static const FieldBehavior OUTPUT_ONLY = FieldBehavior._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OUTPUT_ONLY'); - static const FieldBehavior INPUT_ONLY = FieldBehavior._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INPUT_ONLY'); - static const FieldBehavior IMMUTABLE = FieldBehavior._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'IMMUTABLE'); - static const FieldBehavior UNORDERED_LIST = FieldBehavior._( - 6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNORDERED_LIST'); + static const FieldBehavior FIELD_BEHAVIOR_UNSPECIFIED = + FieldBehavior._(0, _omitEnumNames ? '' : 'FIELD_BEHAVIOR_UNSPECIFIED'); + static const FieldBehavior OPTIONAL = + FieldBehavior._(1, _omitEnumNames ? '' : 'OPTIONAL'); + static const FieldBehavior REQUIRED = + FieldBehavior._(2, _omitEnumNames ? '' : 'REQUIRED'); + static const FieldBehavior OUTPUT_ONLY = + FieldBehavior._(3, _omitEnumNames ? '' : 'OUTPUT_ONLY'); + static const FieldBehavior INPUT_ONLY = + FieldBehavior._(4, _omitEnumNames ? '' : 'INPUT_ONLY'); + static const FieldBehavior IMMUTABLE = + FieldBehavior._(5, _omitEnumNames ? '' : 'IMMUTABLE'); + static const FieldBehavior UNORDERED_LIST = + FieldBehavior._(6, _omitEnumNames ? '' : 'UNORDERED_LIST'); + static const FieldBehavior NON_EMPTY_DEFAULT = + FieldBehavior._(7, _omitEnumNames ? '' : 'NON_EMPTY_DEFAULT'); + static const FieldBehavior IDENTIFIER = + FieldBehavior._(8, _omitEnumNames ? '' : 'IDENTIFIER'); static const $core.List values = [ FIELD_BEHAVIOR_UNSPECIFIED, @@ -48,6 +47,8 @@ class FieldBehavior extends $pb.ProtobufEnum { INPUT_ONLY, IMMUTABLE, UNORDERED_LIST, + NON_EMPTY_DEFAULT, + IDENTIFIER, ]; static final $core.Map<$core.int, FieldBehavior> _byValue = @@ -56,3 +57,5 @@ class FieldBehavior extends $pb.ProtobufEnum { const FieldBehavior._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pbjson.dart index 3d499f05..f1d8cfc3 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_behavior.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/field_behavior.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 fieldBehaviorDescriptor instead') @@ -20,9 +24,14 @@ const FieldBehavior$json = { {'1': 'INPUT_ONLY', '2': 4}, {'1': 'IMMUTABLE', '2': 5}, {'1': 'UNORDERED_LIST', '2': 6}, + {'1': 'NON_EMPTY_DEFAULT', '2': 7}, + {'1': 'IDENTIFIER', '2': 8}, ], }; /// Descriptor for `FieldBehavior`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List fieldBehaviorDescriptor = $convert.base64Decode( - 'Cg1GaWVsZEJlaGF2aW9yEh4KGkZJRUxEX0JFSEFWSU9SX1VOU1BFQ0lGSUVEEAASDAoIT1BUSU9OQUwQARIMCghSRVFVSVJFRBACEg8KC09VVFBVVF9PTkxZEAMSDgoKSU5QVVRfT05MWRAEEg0KCUlNTVVUQUJMRRAFEhIKDlVOT1JERVJFRF9MSVNUEAY='); + 'Cg1GaWVsZEJlaGF2aW9yEh4KGkZJRUxEX0JFSEFWSU9SX1VOU1BFQ0lGSUVEEAASDAoIT1BUSU' + '9OQUwQARIMCghSRVFVSVJFRBACEg8KC09VVFBVVF9PTkxZEAMSDgoKSU5QVVRfT05MWRAEEg0K' + 'CUlNTVVUQUJMRRAFEhIKDlVOT1JERVJFRF9MSVNUEAYSFQoRTk9OX0VNUFRZX0RFRkFVTFQQBx' + 'IOCgpJREVOVElGSUVSEAg='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_info.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_info.pb.dart new file mode 100644 index 00000000..9f3f0529 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_info.pb.dart @@ -0,0 +1,187 @@ +// +// Generated code. Do not modify. +// source: google/api/field_info.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'field_info.pbenum.dart'; + +export 'field_info.pbenum.dart'; + +/// Rich semantic information of an API field beyond basic typing. +class FieldInfo extends $pb.GeneratedMessage { + factory FieldInfo({ + FieldInfo_Format? format, + $core.Iterable? referencedTypes, + }) { + final $result = create(); + if (format != null) { + $result.format = format; + } + if (referencedTypes != null) { + $result.referencedTypes.addAll(referencedTypes); + } + return $result; + } + FieldInfo._() : super(); + factory FieldInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory FieldInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FieldInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'format', $pb.PbFieldType.OE, + defaultOrMaker: FieldInfo_Format.FORMAT_UNSPECIFIED, + valueOf: FieldInfo_Format.valueOf, + enumValues: FieldInfo_Format.values) + ..pc( + 2, _omitFieldNames ? '' : 'referencedTypes', $pb.PbFieldType.PM, + subBuilder: TypeReference.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') + FieldInfo clone() => FieldInfo()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FieldInfo copyWith(void Function(FieldInfo) updates) => + super.copyWith((message) => updates(message as FieldInfo)) as FieldInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static FieldInfo create() => FieldInfo._(); + FieldInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FieldInfo getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static FieldInfo? _defaultInstance; + + /// The standard format of a field value. This does not explicitly configure + /// any API consumer, just documents the API's format for the field it is + /// applied to. + @$pb.TagNumber(1) + FieldInfo_Format get format => $_getN(0); + @$pb.TagNumber(1) + set format(FieldInfo_Format v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasFormat() => $_has(0); + @$pb.TagNumber(1) + void clearFormat() => clearField(1); + + /// The type(s) that the annotated, generic field may represent. + /// + /// Currently, this must only be used on fields of type `google.protobuf.Any`. + /// Supporting other generic types may be considered in the future. + @$pb.TagNumber(2) + $core.List get referencedTypes => $_getList(1); +} + +/// A reference to a message type, for use in [FieldInfo][google.api.FieldInfo]. +class TypeReference extends $pb.GeneratedMessage { + factory TypeReference({ + $core.String? typeName, + }) { + final $result = create(); + if (typeName != null) { + $result.typeName = typeName; + } + return $result; + } + TypeReference._() : super(); + factory TypeReference.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TypeReference.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TypeReference', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'typeName') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TypeReference clone() => TypeReference()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TypeReference copyWith(void Function(TypeReference) updates) => + super.copyWith((message) => updates(message as TypeReference)) + as TypeReference; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static TypeReference create() => TypeReference._(); + TypeReference createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static TypeReference getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static TypeReference? _defaultInstance; + + /// The name of the type that the annotated, generic field may represent. + /// If the type is in the same protobuf package, the value can be the simple + /// message name e.g., `"MyMessage"`. Otherwise, the value must be the + /// fully-qualified message name e.g., `"google.library.v1.Book"`. + /// + /// If the type(s) are unknown to the service (e.g. the field accepts generic + /// user input), use the wildcard `"*"` to denote this behavior. + /// + /// See [AIP-202](https://google.aip.dev/202#type-references) for more details. + @$pb.TagNumber(1) + $core.String get typeName => $_getSZ(0); + @$pb.TagNumber(1) + set typeName($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasTypeName() => $_has(0); + @$pb.TagNumber(1) + void clearTypeName() => clearField(1); +} + +class Field_info { + static final fieldInfo = $pb.Extension( + _omitMessageNames ? '' : 'google.protobuf.FieldOptions', + _omitFieldNames ? '' : 'fieldInfo', + 291403980, + $pb.PbFieldType.OM, + defaultOrMaker: FieldInfo.getDefault, + subBuilder: FieldInfo.create); + static void registerAllExtensions($pb.ExtensionRegistry registry) { + registry.add(fieldInfo); + } +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_info.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_info.pbenum.dart new file mode 100644 index 00000000..be40b4ab --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_info.pbenum.dart @@ -0,0 +1,45 @@ +// +// Generated code. Do not modify. +// source: google/api/field_info.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; + +/// The standard format of a field value. The supported formats are all backed +/// by either an RFC defined by the IETF or a Google-defined AIP. +class FieldInfo_Format extends $pb.ProtobufEnum { + static const FieldInfo_Format FORMAT_UNSPECIFIED = + FieldInfo_Format._(0, _omitEnumNames ? '' : 'FORMAT_UNSPECIFIED'); + static const FieldInfo_Format UUID4 = + FieldInfo_Format._(1, _omitEnumNames ? '' : 'UUID4'); + static const FieldInfo_Format IPV4 = + FieldInfo_Format._(2, _omitEnumNames ? '' : 'IPV4'); + static const FieldInfo_Format IPV6 = + FieldInfo_Format._(3, _omitEnumNames ? '' : 'IPV6'); + static const FieldInfo_Format IPV4_OR_IPV6 = + FieldInfo_Format._(4, _omitEnumNames ? '' : 'IPV4_OR_IPV6'); + + static const $core.List values = [ + FORMAT_UNSPECIFIED, + UUID4, + IPV4, + IPV6, + IPV4_OR_IPV6, + ]; + + static final $core.Map<$core.int, FieldInfo_Format> _byValue = + $pb.ProtobufEnum.initByValue(values); + static FieldInfo_Format? valueOf($core.int value) => _byValue[value]; + + const FieldInfo_Format._($core.int v, $core.String n) : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_info.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_info.pbjson.dart new file mode 100644 index 00000000..97fb9fd1 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/field_info.pbjson.dart @@ -0,0 +1,69 @@ +// +// Generated code. Do not modify. +// source: google/api/field_info.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 fieldInfoDescriptor instead') +const FieldInfo$json = { + '1': 'FieldInfo', + '2': [ + { + '1': 'format', + '3': 1, + '4': 1, + '5': 14, + '6': '.google.api.FieldInfo.Format', + '10': 'format' + }, + { + '1': 'referenced_types', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.api.TypeReference', + '10': 'referencedTypes' + }, + ], + '4': [FieldInfo_Format$json], +}; + +@$core.Deprecated('Use fieldInfoDescriptor instead') +const FieldInfo_Format$json = { + '1': 'Format', + '2': [ + {'1': 'FORMAT_UNSPECIFIED', '2': 0}, + {'1': 'UUID4', '2': 1}, + {'1': 'IPV4', '2': 2}, + {'1': 'IPV6', '2': 3}, + {'1': 'IPV4_OR_IPV6', '2': 4}, + ], +}; + +/// Descriptor for `FieldInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List fieldInfoDescriptor = $convert.base64Decode( + 'CglGaWVsZEluZm8SNAoGZm9ybWF0GAEgASgOMhwuZ29vZ2xlLmFwaS5GaWVsZEluZm8uRm9ybW' + 'F0UgZmb3JtYXQSRAoQcmVmZXJlbmNlZF90eXBlcxgCIAMoCzIZLmdvb2dsZS5hcGkuVHlwZVJl' + 'ZmVyZW5jZVIPcmVmZXJlbmNlZFR5cGVzIlEKBkZvcm1hdBIWChJGT1JNQVRfVU5TUEVDSUZJRU' + 'QQABIJCgVVVUlENBABEggKBElQVjQQAhIICgRJUFY2EAMSEAoMSVBWNF9PUl9JUFY2EAQ='); + +@$core.Deprecated('Use typeReferenceDescriptor instead') +const TypeReference$json = { + '1': 'TypeReference', + '2': [ + {'1': 'type_name', '3': 1, '4': 1, '5': 9, '10': 'typeName'}, + ], +}; + +/// Descriptor for `TypeReference`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List typeReferenceDescriptor = $convert.base64Decode( + 'Cg1UeXBlUmVmZXJlbmNlEhsKCXR5cGVfbmFtZRgBIAEoCVIIdHlwZU5hbWU='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pb.dart index 02a92e2f..a5285baf 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pb.dart @@ -1,57 +1,52 @@ -/// +// // Generated code. Do not modify. // source: google/api/http.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Defines the HTTP configuration for an API service. It contains a list of +/// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method +/// to one or more HTTP REST API methods. class Http extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Http', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rules', - $pb.PbFieldType.PM, - subBuilder: HttpRule.create) - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fullyDecodeReservedExpansion') - ..hasRequiredFields = false; - - Http._() : super(); factory Http({ $core.Iterable? rules, $core.bool? fullyDecodeReservedExpansion, }) { - final _result = create(); + final $result = create(); if (rules != null) { - _result.rules.addAll(rules); + $result.rules.addAll(rules); } if (fullyDecodeReservedExpansion != null) { - _result.fullyDecodeReservedExpansion = fullyDecodeReservedExpansion; + $result.fullyDecodeReservedExpansion = fullyDecodeReservedExpansion; } - return _result; + return $result; } + Http._() : super(); factory Http.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Http.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Http', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: HttpRule.create) + ..aOB(2, _omitFieldNames ? '' : 'fullyDecodeReservedExpansion') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -60,9 +55,10 @@ class Http extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Http copyWith(void Function(Http) updates) => - super.copyWith((message) => updates(message as Http)) - as Http; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Http)) as Http; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Http create() => Http._(); Http createEmptyInstance() => create(); @@ -72,9 +68,18 @@ class Http extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Http? _defaultInstance; + /// A list of HTTP configuration rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. @$pb.TagNumber(1) $core.List get rules => $_getList(0); + /// When set to true, URL path parameters will be fully URI-decoded except in + /// cases of single segment matches in reserved expansion, where "%2F" will be + /// left encoded. + /// + /// The default behavior is to not decode RFC 6570 reserved characters in multi + /// segment matches. @$pb.TagNumber(2) $core.bool get fullyDecodeReservedExpansion => $_getBF(1); @$pb.TagNumber(2) @@ -90,52 +95,271 @@ class Http extends $pb.GeneratedMessage { enum HttpRule_Pattern { get, put, post, delete, patch, custom, notSet } +/// gRPC Transcoding +/// +/// gRPC Transcoding is a feature for mapping between a gRPC method and one or +/// more HTTP REST endpoints. It allows developers to build a single API service +/// that supports both gRPC APIs and REST APIs. Many systems, including [Google +/// APIs](https://github.com/googleapis/googleapis), +/// [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC +/// Gateway](https://github.com/grpc-ecosystem/grpc-gateway), +/// and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature +/// and use it for large scale production services. +/// +/// `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies +/// how different portions of the gRPC request message are mapped to the URL +/// path, URL query parameters, and HTTP request body. It also controls how the +/// gRPC response message is mapped to the HTTP response body. `HttpRule` is +/// typically specified as an `google.api.http` annotation on the gRPC method. +/// +/// Each mapping specifies a URL path template and an HTTP method. The path +/// template may refer to one or more fields in the gRPC request message, as long +/// as each field is a non-repeated field with a primitive (non-message) type. +/// The path template controls how fields of the request message are mapped to +/// the URL path. +/// +/// Example: +/// +/// service Messaging { +/// rpc GetMessage(GetMessageRequest) returns (Message) { +/// option (google.api.http) = { +/// get: "/v1/{name=messages/*}" +/// }; +/// } +/// } +/// message GetMessageRequest { +/// string name = 1; // Mapped to URL path. +/// } +/// message Message { +/// string text = 1; // The resource content. +/// } +/// +/// This enables an HTTP REST to gRPC mapping as below: +/// +/// - HTTP: `GET /v1/messages/123456` +/// - gRPC: `GetMessage(name: "messages/123456")` +/// +/// Any fields in the request message which are not bound by the path template +/// automatically become HTTP query parameters if there is no HTTP request body. +/// For example: +/// +/// service Messaging { +/// rpc GetMessage(GetMessageRequest) returns (Message) { +/// option (google.api.http) = { +/// get:"/v1/messages/{message_id}" +/// }; +/// } +/// } +/// message GetMessageRequest { +/// message SubMessage { +/// string subfield = 1; +/// } +/// string message_id = 1; // Mapped to URL path. +/// int64 revision = 2; // Mapped to URL query parameter `revision`. +/// SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. +/// } +/// +/// This enables a HTTP JSON to RPC mapping as below: +/// +/// - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo` +/// - gRPC: `GetMessage(message_id: "123456" revision: 2 sub: +/// SubMessage(subfield: "foo"))` +/// +/// Note that fields which are mapped to URL query parameters must have a +/// primitive type or a repeated primitive type or a non-repeated message type. +/// In the case of a repeated type, the parameter can be repeated in the URL +/// as `...?param=A¶m=B`. In the case of a message type, each field of the +/// message is mapped to a separate parameter, such as +/// `...?foo.a=A&foo.b=B&foo.c=C`. +/// +/// For HTTP methods that allow a request body, the `body` field +/// specifies the mapping. Consider a REST update method on the +/// message resource collection: +/// +/// service Messaging { +/// rpc UpdateMessage(UpdateMessageRequest) returns (Message) { +/// option (google.api.http) = { +/// patch: "/v1/messages/{message_id}" +/// body: "message" +/// }; +/// } +/// } +/// message UpdateMessageRequest { +/// string message_id = 1; // mapped to the URL +/// Message message = 2; // mapped to the body +/// } +/// +/// The following HTTP JSON to RPC mapping is enabled, where the +/// representation of the JSON in the request body is determined by +/// protos JSON encoding: +/// +/// - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }` +/// - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })` +/// +/// The special name `*` can be used in the body mapping to define that +/// every field not bound by the path template should be mapped to the +/// request body. This enables the following alternative definition of +/// the update method: +/// +/// service Messaging { +/// rpc UpdateMessage(Message) returns (Message) { +/// option (google.api.http) = { +/// patch: "/v1/messages/{message_id}" +/// body: "*" +/// }; +/// } +/// } +/// message Message { +/// string message_id = 1; +/// string text = 2; +/// } +/// +/// +/// The following HTTP JSON to RPC mapping is enabled: +/// +/// - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }` +/// - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")` +/// +/// Note that when using `*` in the body mapping, it is not possible to +/// have HTTP parameters, as all fields not bound by the path end in +/// the body. This makes this option more rarely used in practice when +/// defining REST APIs. The common usage of `*` is in custom methods +/// which don't use the URL at all for transferring data. +/// +/// It is possible to define multiple HTTP methods for one RPC by using +/// the `additional_bindings` option. Example: +/// +/// service Messaging { +/// rpc GetMessage(GetMessageRequest) returns (Message) { +/// option (google.api.http) = { +/// get: "/v1/messages/{message_id}" +/// additional_bindings { +/// get: "/v1/users/{user_id}/messages/{message_id}" +/// } +/// }; +/// } +/// } +/// message GetMessageRequest { +/// string message_id = 1; +/// string user_id = 2; +/// } +/// +/// This enables the following two alternative HTTP JSON to RPC mappings: +/// +/// - HTTP: `GET /v1/messages/123456` +/// - gRPC: `GetMessage(message_id: "123456")` +/// +/// - HTTP: `GET /v1/users/me/messages/123456` +/// - gRPC: `GetMessage(user_id: "me" message_id: "123456")` +/// +/// Rules for HTTP mapping +/// +/// 1. Leaf request fields (recursive expansion nested messages in the request +/// message) are classified into three categories: +/// - Fields referred by the path template. They are passed via the URL path. +/// - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They +/// are passed via the HTTP +/// request body. +/// - All other fields are passed via the URL query parameters, and the +/// parameter name is the field path in the request message. A repeated +/// field can be represented as multiple query parameters under the same +/// name. +/// 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL +/// query parameter, all fields +/// are passed via URL path and HTTP request body. +/// 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP +/// request body, all +/// fields are passed via URL path and URL query parameters. +/// +/// Path template syntax +/// +/// Template = "/" Segments [ Verb ] ; +/// Segments = Segment { "/" Segment } ; +/// Segment = "*" | "**" | LITERAL | Variable ; +/// Variable = "{" FieldPath [ "=" Segments ] "}" ; +/// FieldPath = IDENT { "." IDENT } ; +/// Verb = ":" LITERAL ; +/// +/// The syntax `*` matches a single URL path segment. The syntax `**` matches +/// zero or more URL path segments, which must be the last part of the URL path +/// except the `Verb`. +/// +/// The syntax `Variable` matches part of the URL path as specified by its +/// template. A variable template must not contain other variables. If a variable +/// matches a single path segment, its template may be omitted, e.g. `{var}` +/// is equivalent to `{var=*}`. +/// +/// The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` +/// contains any reserved character, such characters should be percent-encoded +/// before the matching. +/// +/// If a variable contains exactly one path segment, such as `"{var}"` or +/// `"{var=*}"`, when such a variable is expanded into a URL path on the client +/// side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The +/// server side does the reverse decoding. Such variables show up in the +/// [Discovery +/// Document](https://developers.google.com/discovery/v1/reference/apis) as +/// `{var}`. +/// +/// If a variable contains multiple path segments, such as `"{var=foo/*}"` +/// or `"{var=**}"`, when such a variable is expanded into a URL path on the +/// client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. +/// The server side does the reverse decoding, except "%2F" and "%2f" are left +/// unchanged. Such variables show up in the +/// [Discovery +/// Document](https://developers.google.com/discovery/v1/reference/apis) as +/// `{+var}`. +/// +/// Using gRPC API Service Configuration +/// +/// gRPC API Service Configuration (service config) is a configuration language +/// for configuring a gRPC service to become a user-facing product. The +/// service config is simply the YAML representation of the `google.api.Service` +/// proto message. +/// +/// As an alternative to annotating your proto file, you can configure gRPC +/// transcoding in your service config YAML files. You do this by specifying a +/// `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same +/// effect as the proto annotation. This can be particularly useful if you +/// have a proto that is reused in multiple services. Note that any transcoding +/// specified in the service config will override any matching transcoding +/// configuration in the proto. +/// +/// The following example selects a gRPC method and applies an `HttpRule` to it: +/// +/// http: +/// rules: +/// - selector: example.v1.Messaging.GetMessage +/// get: /v1/messages/{message_id}/{sub.subfield} +/// +/// Special notes +/// +/// When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the +/// proto to JSON conversion must follow the [proto3 +/// specification](https://developers.google.com/protocol-buffers/docs/proto3#json). +/// +/// While the single segment variable follows the semantics of +/// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String +/// Expansion, the multi segment variable **does not** follow RFC 6570 Section +/// 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion +/// does not expand special characters like `?` and `#`, which would lead +/// to invalid URLs. As the result, gRPC Transcoding uses a custom encoding +/// for multi segment variables. +/// +/// The path variables **must not** refer to any repeated or mapped field, +/// because client libraries are not capable of handling such variable expansion. +/// +/// The path variables **must not** capture the leading "/" character. The reason +/// is that the most common use case "{var}" does not capture the leading "/" +/// character. For consistency, all path variables must share the same behavior. +/// +/// Repeated message fields must not be mapped to URL query parameters, because +/// no client library can support such complicated mapping. +/// +/// If an API needs to use a JSON array for request or response body, it can map +/// the request or response body to a repeated field. However, some gRPC +/// Transcoding implementations may not support this feature. class HttpRule extends $pb.GeneratedMessage { - static const $core.Map<$core.int, HttpRule_Pattern> _HttpRule_PatternByTag = { - 2: HttpRule_Pattern.get, - 3: HttpRule_Pattern.put, - 4: HttpRule_Pattern.post, - 5: HttpRule_Pattern.delete, - 6: HttpRule_Pattern.patch, - 8: HttpRule_Pattern.custom, - 0: HttpRule_Pattern.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'HttpRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..oo(0, [2, 3, 4, 5, 6, 8]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'selector') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'get') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'put') - ..aOS(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'post') - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'delete') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'patch') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'body') - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'custom', subBuilder: CustomHttpPattern.create) - ..pc(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'additionalBindings', $pb.PbFieldType.PM, subBuilder: HttpRule.create) - ..aOS(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'responseBody') - ..hasRequiredFields = false; - - HttpRule._() : super(); factory HttpRule({ $core.String? selector, $core.String? get, @@ -148,45 +372,76 @@ class HttpRule extends $pb.GeneratedMessage { $core.Iterable? additionalBindings, $core.String? responseBody, }) { - final _result = create(); + final $result = create(); if (selector != null) { - _result.selector = selector; + $result.selector = selector; } if (get != null) { - _result.get = get; + $result.get = get; } if (put != null) { - _result.put = put; + $result.put = put; } if (post != null) { - _result.post = post; + $result.post = post; } if (delete != null) { - _result.delete = delete; + $result.delete = delete; } if (patch != null) { - _result.patch = patch; + $result.patch = patch; } if (body != null) { - _result.body = body; + $result.body = body; } if (custom != null) { - _result.custom = custom; + $result.custom = custom; } if (additionalBindings != null) { - _result.additionalBindings.addAll(additionalBindings); + $result.additionalBindings.addAll(additionalBindings); } if (responseBody != null) { - _result.responseBody = responseBody; + $result.responseBody = responseBody; } - return _result; + return $result; } + HttpRule._() : super(); factory HttpRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory HttpRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, HttpRule_Pattern> _HttpRule_PatternByTag = { + 2: HttpRule_Pattern.get, + 3: HttpRule_Pattern.put, + 4: HttpRule_Pattern.post, + 5: HttpRule_Pattern.delete, + 6: HttpRule_Pattern.patch, + 8: HttpRule_Pattern.custom, + 0: HttpRule_Pattern.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'HttpRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..oo(0, [2, 3, 4, 5, 6, 8]) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..aOS(2, _omitFieldNames ? '' : 'get') + ..aOS(3, _omitFieldNames ? '' : 'put') + ..aOS(4, _omitFieldNames ? '' : 'post') + ..aOS(5, _omitFieldNames ? '' : 'delete') + ..aOS(6, _omitFieldNames ? '' : 'patch') + ..aOS(7, _omitFieldNames ? '' : 'body') + ..aOM(8, _omitFieldNames ? '' : 'custom', + subBuilder: CustomHttpPattern.create) + ..pc( + 11, _omitFieldNames ? '' : 'additionalBindings', $pb.PbFieldType.PM, + subBuilder: HttpRule.create) + ..aOS(12, _omitFieldNames ? '' : 'responseBody') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -195,9 +450,10 @@ class HttpRule extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') HttpRule copyWith(void Function(HttpRule) updates) => - super.copyWith((message) => updates(message as HttpRule)) - as HttpRule; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as HttpRule)) as HttpRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static HttpRule create() => HttpRule._(); HttpRule createEmptyInstance() => create(); @@ -210,6 +466,10 @@ class HttpRule extends $pb.GeneratedMessage { HttpRule_Pattern whichPattern() => _HttpRule_PatternByTag[$_whichOneof(0)]!; void clearPattern() => clearField($_whichOneof(0)); + /// Selects a method to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. @$pb.TagNumber(1) $core.String get selector => $_getSZ(0); @$pb.TagNumber(1) @@ -222,6 +482,8 @@ class HttpRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSelector() => clearField(1); + /// Maps to HTTP GET. Used for listing and getting information about + /// resources. @$pb.TagNumber(2) $core.String get get => $_getSZ(1); @$pb.TagNumber(2) @@ -234,6 +496,7 @@ class HttpRule extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearGet() => clearField(2); + /// Maps to HTTP PUT. Used for replacing a resource. @$pb.TagNumber(3) $core.String get put => $_getSZ(2); @$pb.TagNumber(3) @@ -246,6 +509,7 @@ class HttpRule extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPut() => clearField(3); + /// Maps to HTTP POST. Used for creating a resource or performing an action. @$pb.TagNumber(4) $core.String get post => $_getSZ(3); @$pb.TagNumber(4) @@ -258,6 +522,7 @@ class HttpRule extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearPost() => clearField(4); + /// Maps to HTTP DELETE. Used for deleting a resource. @$pb.TagNumber(5) $core.String get delete => $_getSZ(4); @$pb.TagNumber(5) @@ -270,6 +535,7 @@ class HttpRule extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearDelete() => clearField(5); + /// Maps to HTTP PATCH. Used for updating a resource. @$pb.TagNumber(6) $core.String get patch => $_getSZ(5); @$pb.TagNumber(6) @@ -282,6 +548,12 @@ class HttpRule extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearPatch() => clearField(6); + /// The name of the request field whose value is mapped to the HTTP request + /// body, or `*` for mapping all request fields not captured by the path + /// pattern to the HTTP body, or omitted for not having any HTTP request body. + /// + /// NOTE: the referred field must be present at the top-level of the request + /// message type. @$pb.TagNumber(7) $core.String get body => $_getSZ(6); @$pb.TagNumber(7) @@ -294,6 +566,10 @@ class HttpRule extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearBody() => clearField(7); + /// The custom pattern is used for specifying an HTTP method that is not + /// included in the `pattern` field, such as HEAD, or "*" to leave the + /// HTTP method unspecified for this rule. The wild-card rule is useful + /// for services that provide content to Web (HTML) clients. @$pb.TagNumber(8) CustomHttpPattern get custom => $_getN(7); @$pb.TagNumber(8) @@ -308,9 +584,18 @@ class HttpRule extends $pb.GeneratedMessage { @$pb.TagNumber(8) CustomHttpPattern ensureCustom() => $_ensure(7); + /// Additional HTTP bindings for the selector. Nested bindings must + /// not contain an `additional_bindings` field themselves (that is, + /// the nesting may only be one level deep). @$pb.TagNumber(11) $core.List get additionalBindings => $_getList(8); + /// Optional. The name of the response field whose value is mapped to the HTTP + /// response body. When omitted, the entire response message will be used + /// as the HTTP response body. + /// + /// NOTE: The referred field must be present at the top-level of the response + /// message type. @$pb.TagNumber(12) $core.String get responseBody => $_getSZ(9); @$pb.TagNumber(12) @@ -324,48 +609,37 @@ class HttpRule extends $pb.GeneratedMessage { void clearResponseBody() => clearField(12); } +/// A custom pattern is used for defining custom HTTP verb. class CustomHttpPattern extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CustomHttpPattern', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'kind') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path') - ..hasRequiredFields = false; - - CustomHttpPattern._() : super(); factory CustomHttpPattern({ $core.String? kind, $core.String? path, }) { - final _result = create(); + final $result = create(); if (kind != null) { - _result.kind = kind; + $result.kind = kind; } if (path != null) { - _result.path = path; + $result.path = path; } - return _result; + return $result; } + CustomHttpPattern._() : super(); factory CustomHttpPattern.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CustomHttpPattern.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CustomHttpPattern', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'kind') + ..aOS(2, _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') @@ -375,8 +649,10 @@ class CustomHttpPattern extends $pb.GeneratedMessage { 'Will be removed in next major version') CustomHttpPattern copyWith(void Function(CustomHttpPattern) updates) => super.copyWith((message) => updates(message as CustomHttpPattern)) - as CustomHttpPattern; // ignore: deprecated_member_use + as CustomHttpPattern; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CustomHttpPattern create() => CustomHttpPattern._(); CustomHttpPattern createEmptyInstance() => create(); @@ -387,6 +663,7 @@ class CustomHttpPattern extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CustomHttpPattern? _defaultInstance; + /// The name of this custom HTTP verb. @$pb.TagNumber(1) $core.String get kind => $_getSZ(0); @$pb.TagNumber(1) @@ -399,6 +676,7 @@ class CustomHttpPattern extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearKind() => clearField(1); + /// The path matched by this custom verb. @$pb.TagNumber(2) $core.String get path => $_getSZ(1); @$pb.TagNumber(2) @@ -411,3 +689,7 @@ class CustomHttpPattern extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPath() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pbenum.dart index 5ddebe90..3a78e233 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/http.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pbjson.dart index bd2ca5fb..90b5054c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/http.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/http.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 httpDescriptor instead') @@ -33,7 +37,10 @@ const Http$json = { /// Descriptor for `Http`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List httpDescriptor = $convert.base64Decode( - 'CgRIdHRwEioKBXJ1bGVzGAEgAygLMhQuZ29vZ2xlLmFwaS5IdHRwUnVsZVIFcnVsZXMSRQofZnVsbHlfZGVjb2RlX3Jlc2VydmVkX2V4cGFuc2lvbhgCIAEoCFIcZnVsbHlEZWNvZGVSZXNlcnZlZEV4cGFuc2lvbg=='); + 'CgRIdHRwEioKBXJ1bGVzGAEgAygLMhQuZ29vZ2xlLmFwaS5IdHRwUnVsZVIFcnVsZXMSRQofZn' + 'VsbHlfZGVjb2RlX3Jlc2VydmVkX2V4cGFuc2lvbhgCIAEoCFIcZnVsbHlEZWNvZGVSZXNlcnZl' + 'ZEV4cGFuc2lvbg=='); + @$core.Deprecated('Use httpRuleDescriptor instead') const HttpRule$json = { '1': 'HttpRule', @@ -71,7 +78,14 @@ const HttpRule$json = { /// Descriptor for `HttpRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List httpRuleDescriptor = $convert.base64Decode( - 'CghIdHRwUnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISEgoDZ2V0GAIgASgJSABSA2dldBISCgNwdXQYAyABKAlIAFIDcHV0EhQKBHBvc3QYBCABKAlIAFIEcG9zdBIYCgZkZWxldGUYBSABKAlIAFIGZGVsZXRlEhYKBXBhdGNoGAYgASgJSABSBXBhdGNoEjcKBmN1c3RvbRgIIAEoCzIdLmdvb2dsZS5hcGkuQ3VzdG9tSHR0cFBhdHRlcm5IAFIGY3VzdG9tEhIKBGJvZHkYByABKAlSBGJvZHkSIwoNcmVzcG9uc2VfYm9keRgMIAEoCVIMcmVzcG9uc2VCb2R5EkUKE2FkZGl0aW9uYWxfYmluZGluZ3MYCyADKAsyFC5nb29nbGUuYXBpLkh0dHBSdWxlUhJhZGRpdGlvbmFsQmluZGluZ3NCCQoHcGF0dGVybg=='); + 'CghIdHRwUnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISEgoDZ2V0GAIgASgJSABSA2' + 'dldBISCgNwdXQYAyABKAlIAFIDcHV0EhQKBHBvc3QYBCABKAlIAFIEcG9zdBIYCgZkZWxldGUY' + 'BSABKAlIAFIGZGVsZXRlEhYKBXBhdGNoGAYgASgJSABSBXBhdGNoEjcKBmN1c3RvbRgIIAEoCz' + 'IdLmdvb2dsZS5hcGkuQ3VzdG9tSHR0cFBhdHRlcm5IAFIGY3VzdG9tEhIKBGJvZHkYByABKAlS' + 'BGJvZHkSIwoNcmVzcG9uc2VfYm9keRgMIAEoCVIMcmVzcG9uc2VCb2R5EkUKE2FkZGl0aW9uYW' + 'xfYmluZGluZ3MYCyADKAsyFC5nb29nbGUuYXBpLkh0dHBSdWxlUhJhZGRpdGlvbmFsQmluZGlu' + 'Z3NCCQoHcGF0dGVybg=='); + @$core.Deprecated('Use customHttpPatternDescriptor instead') const CustomHttpPattern$json = { '1': 'CustomHttpPattern', @@ -83,4 +97,5 @@ const CustomHttpPattern$json = { /// Descriptor for `CustomHttpPattern`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List customHttpPatternDescriptor = $convert.base64Decode( - 'ChFDdXN0b21IdHRwUGF0dGVybhISCgRraW5kGAEgASgJUgRraW5kEhIKBHBhdGgYAiABKAlSBHBhdGg='); + 'ChFDdXN0b21IdHRwUGF0dGVybhISCgRraW5kGAEgASgJUgRraW5kEhIKBHBhdGgYAiABKAlSBH' + 'BhdGg='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pb.dart index f7ff5fcf..efc962f7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pb.dart @@ -1,68 +1,100 @@ -/// +// // Generated code. Do not modify. // source: google/api/httpbody.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +import '../protobuf/any.pb.dart' as $49; +/// Message that represents an arbitrary HTTP body. It should only be used for +/// payload formats that can't be represented as JSON, such as raw binary or +/// an HTML page. +/// +/// +/// This message can be used both in streaming and non-streaming API methods in +/// the request as well as the response. +/// +/// It can be used as a top-level request field, which is convenient if one +/// wants to extract parameters from either the URL or HTTP template into the +/// request fields and also want access to the raw HTTP body. +/// +/// Example: +/// +/// message GetResourceRequest { +/// // A unique request id. +/// string request_id = 1; +/// +/// // The raw HTTP body is bound to this field. +/// google.api.HttpBody http_body = 2; +/// +/// } +/// +/// service ResourceService { +/// rpc GetResource(GetResourceRequest) +/// returns (google.api.HttpBody); +/// rpc UpdateResource(google.api.HttpBody) +/// returns (google.protobuf.Empty); +/// +/// } +/// +/// Example with streaming methods: +/// +/// service CaldavService { +/// rpc GetCalendar(stream google.api.HttpBody) +/// returns (stream google.api.HttpBody); +/// rpc UpdateCalendar(stream google.api.HttpBody) +/// returns (stream google.api.HttpBody); +/// +/// } +/// +/// Use of this type only changes how the request and response bodies are +/// handled, all other features will continue to work unchanged. class HttpBody extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'HttpBody', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'contentType') - ..a<$core.List<$core.int>>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'data', - $pb.PbFieldType.OY) - ..pc<$0.Any>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'extensions', - $pb.PbFieldType.PM, - subBuilder: $0.Any.create) - ..hasRequiredFields = false; - - HttpBody._() : super(); factory HttpBody({ $core.String? contentType, $core.List<$core.int>? data, - $core.Iterable<$0.Any>? extensions, + $core.Iterable<$49.Any>? extensions, }) { - final _result = create(); + final $result = create(); if (contentType != null) { - _result.contentType = contentType; + $result.contentType = contentType; } if (data != null) { - _result.data = data; + $result.data = data; } if (extensions != null) { - _result.extensions.addAll(extensions); + $result.extensions.addAll(extensions); } - return _result; + return $result; } + HttpBody._() : super(); factory HttpBody.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory HttpBody.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'HttpBody', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'contentType') + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY) + ..pc<$49.Any>(3, _omitFieldNames ? '' : 'extensions', $pb.PbFieldType.PM, + subBuilder: $49.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') @@ -71,9 +103,10 @@ class HttpBody extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') HttpBody copyWith(void Function(HttpBody) updates) => - super.copyWith((message) => updates(message as HttpBody)) - as HttpBody; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as HttpBody)) as HttpBody; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static HttpBody create() => HttpBody._(); HttpBody createEmptyInstance() => create(); @@ -83,6 +116,7 @@ class HttpBody extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static HttpBody? _defaultInstance; + /// The HTTP Content-Type header value specifying the content type of the body. @$pb.TagNumber(1) $core.String get contentType => $_getSZ(0); @$pb.TagNumber(1) @@ -95,6 +129,7 @@ class HttpBody extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearContentType() => clearField(1); + /// The HTTP request/response body as raw binary. @$pb.TagNumber(2) $core.List<$core.int> get data => $_getN(1); @$pb.TagNumber(2) @@ -107,6 +142,12 @@ class HttpBody extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearData() => clearField(2); + /// Application specific response metadata. Must be set in the first response + /// for streaming APIs. @$pb.TagNumber(3) - $core.List<$0.Any> get extensions => $_getList(2); + $core.List<$49.Any> get extensions => $_getList(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pbenum.dart index 85db80cf..72f6d331 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/httpbody.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pbjson.dart index b635e423..5d72b06a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/httpbody.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/httpbody.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 httpBodyDescriptor instead') @@ -28,4 +32,6 @@ const HttpBody$json = { /// Descriptor for `HttpBody`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List httpBodyDescriptor = $convert.base64Decode( - 'CghIdHRwQm9keRIhCgxjb250ZW50X3R5cGUYASABKAlSC2NvbnRlbnRUeXBlEhIKBGRhdGEYAiABKAxSBGRhdGESNAoKZXh0ZW5zaW9ucxgDIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlSCmV4dGVuc2lvbnM='); + 'CghIdHRwQm9keRIhCgxjb250ZW50X3R5cGUYASABKAlSC2NvbnRlbnRUeXBlEhIKBGRhdGEYAi' + 'ABKAxSBGRhdGESNAoKZXh0ZW5zaW9ucxgDIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlSCmV4' + 'dGVuc2lvbnM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pb.dart index a9945baf..8a0deb14 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/api/label.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,58 +17,46 @@ import 'label.pbenum.dart'; export 'label.pbenum.dart'; +/// A description of a label. class LabelDescriptor extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LabelDescriptor', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'key') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'valueType', - $pb.PbFieldType.OE, - defaultOrMaker: LabelDescriptor_ValueType.STRING, - valueOf: LabelDescriptor_ValueType.valueOf, - enumValues: LabelDescriptor_ValueType.values) - ..aOS( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'description') - ..hasRequiredFields = false; - - LabelDescriptor._() : super(); factory LabelDescriptor({ $core.String? key, LabelDescriptor_ValueType? valueType, $core.String? description, }) { - final _result = create(); + final $result = create(); if (key != null) { - _result.key = key; + $result.key = key; } if (valueType != null) { - _result.valueType = valueType; + $result.valueType = valueType; } if (description != null) { - _result.description = description; + $result.description = description; } - return _result; + return $result; } + LabelDescriptor._() : super(); factory LabelDescriptor.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LabelDescriptor.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LabelDescriptor', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'key') + ..e( + 2, _omitFieldNames ? '' : 'valueType', $pb.PbFieldType.OE, + defaultOrMaker: LabelDescriptor_ValueType.STRING, + valueOf: LabelDescriptor_ValueType.valueOf, + enumValues: LabelDescriptor_ValueType.values) + ..aOS(3, _omitFieldNames ? '' : 'description') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -74,8 +66,10 @@ class LabelDescriptor extends $pb.GeneratedMessage { 'Will be removed in next major version') LabelDescriptor copyWith(void Function(LabelDescriptor) updates) => super.copyWith((message) => updates(message as LabelDescriptor)) - as LabelDescriptor; // ignore: deprecated_member_use + as LabelDescriptor; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LabelDescriptor create() => LabelDescriptor._(); LabelDescriptor createEmptyInstance() => create(); @@ -86,6 +80,7 @@ class LabelDescriptor extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LabelDescriptor? _defaultInstance; + /// The label key. @$pb.TagNumber(1) $core.String get key => $_getSZ(0); @$pb.TagNumber(1) @@ -98,6 +93,7 @@ class LabelDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearKey() => clearField(1); + /// The type of data that can be assigned to the label. @$pb.TagNumber(2) LabelDescriptor_ValueType get valueType => $_getN(1); @$pb.TagNumber(2) @@ -110,6 +106,7 @@ class LabelDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearValueType() => clearField(2); + /// A human-readable description for the label. @$pb.TagNumber(3) $core.String get description => $_getSZ(2); @$pb.TagNumber(3) @@ -122,3 +119,7 @@ class LabelDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDescription() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pbenum.dart index 6e1bff6b..1dabf309 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pbenum.dart @@ -1,21 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/api/label.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Value types that can be used as label values. class LabelDescriptor_ValueType extends $pb.ProtobufEnum { - static const LabelDescriptor_ValueType STRING = LabelDescriptor_ValueType._(0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'STRING'); - static const LabelDescriptor_ValueType BOOL = LabelDescriptor_ValueType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BOOL'); - static const LabelDescriptor_ValueType INT64 = LabelDescriptor_ValueType._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'INT64'); + static const LabelDescriptor_ValueType STRING = + LabelDescriptor_ValueType._(0, _omitEnumNames ? '' : 'STRING'); + static const LabelDescriptor_ValueType BOOL = + LabelDescriptor_ValueType._(1, _omitEnumNames ? '' : 'BOOL'); + static const LabelDescriptor_ValueType INT64 = + LabelDescriptor_ValueType._(2, _omitEnumNames ? '' : 'INT64'); static const $core.List values = [ @@ -30,3 +35,5 @@ class LabelDescriptor_ValueType extends $pb.ProtobufEnum { const LabelDescriptor_ValueType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pbjson.dart index 7de9247a..0c103ad6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/label.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/label.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 labelDescriptorDescriptor instead') @@ -39,4 +43,7 @@ const LabelDescriptor_ValueType$json = { /// Descriptor for `LabelDescriptor`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List labelDescriptorDescriptor = $convert.base64Decode( - 'Cg9MYWJlbERlc2NyaXB0b3ISEAoDa2V5GAEgASgJUgNrZXkSRAoKdmFsdWVfdHlwZRgCIAEoDjIlLmdvb2dsZS5hcGkuTGFiZWxEZXNjcmlwdG9yLlZhbHVlVHlwZVIJdmFsdWVUeXBlEiAKC2Rlc2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbiIsCglWYWx1ZVR5cGUSCgoGU1RSSU5HEAASCAoEQk9PTBABEgkKBUlOVDY0EAI='); + 'Cg9MYWJlbERlc2NyaXB0b3ISEAoDa2V5GAEgASgJUgNrZXkSRAoKdmFsdWVfdHlwZRgCIAEoDj' + 'IlLmdvb2dsZS5hcGkuTGFiZWxEZXNjcmlwdG9yLlZhbHVlVHlwZVIJdmFsdWVUeXBlEiAKC2Rl' + 'c2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbiIsCglWYWx1ZVR5cGUSCgoGU1RSSU5HEAASCA' + 'oEQk9PTBABEgkKBUlOVDY0EAI='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pb.dart index 9b8b442d..fe464387 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/api/launch_stage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pbenum.dart index 0cf8c6f2..3077f267 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pbenum.dart @@ -1,46 +1,36 @@ -/// +// // Generated code. Do not modify. // source: google/api/launch_stage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The launch stage as defined by [Google Cloud Platform +/// Launch Stages](https://cloud.google.com/terms/launch-stages). class LaunchStage extends $pb.ProtobufEnum { - static const LaunchStage LAUNCH_STAGE_UNSPECIFIED = LaunchStage._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LAUNCH_STAGE_UNSPECIFIED'); - static const LaunchStage UNIMPLEMENTED = LaunchStage._( - 6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNIMPLEMENTED'); - static const LaunchStage PRELAUNCH = LaunchStage._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PRELAUNCH'); - static const LaunchStage EARLY_ACCESS = LaunchStage._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'EARLY_ACCESS'); - static const LaunchStage ALPHA = LaunchStage._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ALPHA'); - static const LaunchStage BETA = LaunchStage._( - 3, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BETA'); - static const LaunchStage GA = LaunchStage._( - 4, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'GA'); - static const LaunchStage DEPRECATED = LaunchStage._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DEPRECATED'); + static const LaunchStage LAUNCH_STAGE_UNSPECIFIED = + LaunchStage._(0, _omitEnumNames ? '' : 'LAUNCH_STAGE_UNSPECIFIED'); + static const LaunchStage UNIMPLEMENTED = + LaunchStage._(6, _omitEnumNames ? '' : 'UNIMPLEMENTED'); + static const LaunchStage PRELAUNCH = + LaunchStage._(7, _omitEnumNames ? '' : 'PRELAUNCH'); + static const LaunchStage EARLY_ACCESS = + LaunchStage._(1, _omitEnumNames ? '' : 'EARLY_ACCESS'); + static const LaunchStage ALPHA = + LaunchStage._(2, _omitEnumNames ? '' : 'ALPHA'); + static const LaunchStage BETA = + LaunchStage._(3, _omitEnumNames ? '' : 'BETA'); + static const LaunchStage GA = LaunchStage._(4, _omitEnumNames ? '' : 'GA'); + static const LaunchStage DEPRECATED = + LaunchStage._(5, _omitEnumNames ? '' : 'DEPRECATED'); static const $core.List values = [ LAUNCH_STAGE_UNSPECIFIED, @@ -59,3 +49,5 @@ class LaunchStage extends $pb.ProtobufEnum { const LaunchStage._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pbjson.dart index 871d0cb1..d488a117 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/launch_stage.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/launch_stage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 launchStageDescriptor instead') @@ -26,4 +30,6 @@ const LaunchStage$json = { /// Descriptor for `LaunchStage`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List launchStageDescriptor = $convert.base64Decode( - 'CgtMYXVuY2hTdGFnZRIcChhMQVVOQ0hfU1RBR0VfVU5TUEVDSUZJRUQQABIRCg1VTklNUExFTUVOVEVEEAYSDQoJUFJFTEFVTkNIEAcSEAoMRUFSTFlfQUNDRVNTEAESCQoFQUxQSEEQAhIICgRCRVRBEAMSBgoCR0EQBBIOCgpERVBSRUNBVEVEEAU='); + 'CgtMYXVuY2hTdGFnZRIcChhMQVVOQ0hfU1RBR0VfVU5TUEVDSUZJRUQQABIRCg1VTklNUExFTU' + 'VOVEVEEAYSDQoJUFJFTEFVTkNIEAcSEAoMRUFSTFlfQUNDRVNTEAESCQoFQUxQSEEQAhIICgRC' + 'RVRBEAMSBgoCR0EQBBIOCgpERVBSRUNBVEVEEAU='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pb.dart index bb7715a8..cef5cfa6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pb.dart @@ -1,71 +1,70 @@ -/// +// // Generated code. Do not modify. // source: google/api/log.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'label.pb.dart' as $0; +import 'label.pb.dart' as $65; +/// A description of a log type. Example in YAML format: +/// +/// - name: library.googleapis.com/activity_history +/// description: The history of borrowing and returning library items. +/// display_name: Activity +/// labels: +/// - key: /customer_id +/// description: Identifier of a library customer class LogDescriptor extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogDescriptor', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc<$0.LabelDescriptor>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'labels', - $pb.PbFieldType.PM, - subBuilder: $0.LabelDescriptor.create) - ..aOS( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'description') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'displayName') - ..hasRequiredFields = false; - - LogDescriptor._() : super(); factory LogDescriptor({ $core.String? name, - $core.Iterable<$0.LabelDescriptor>? labels, + $core.Iterable<$65.LabelDescriptor>? labels, $core.String? description, $core.String? displayName, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (description != null) { - _result.description = description; + $result.description = description; } if (displayName != null) { - _result.displayName = displayName; + $result.displayName = displayName; } - return _result; + return $result; } + LogDescriptor._() : super(); factory LogDescriptor.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogDescriptor.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogDescriptor', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pc<$65.LabelDescriptor>( + 2, _omitFieldNames ? '' : 'labels', $pb.PbFieldType.PM, + subBuilder: $65.LabelDescriptor.create) + ..aOS(3, _omitFieldNames ? '' : 'description') + ..aOS(4, _omitFieldNames ? '' : 'displayName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -75,8 +74,10 @@ class LogDescriptor extends $pb.GeneratedMessage { 'Will be removed in next major version') LogDescriptor copyWith(void Function(LogDescriptor) updates) => super.copyWith((message) => updates(message as LogDescriptor)) - as LogDescriptor; // ignore: deprecated_member_use + as LogDescriptor; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogDescriptor create() => LogDescriptor._(); LogDescriptor createEmptyInstance() => create(); @@ -87,6 +88,10 @@ class LogDescriptor extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LogDescriptor? _defaultInstance; + /// The name of the log. It must be less than 512 characters long and can + /// include the following characters: upper- and lower-case alphanumeric + /// characters [A-Za-z0-9], and punctuation characters including + /// slash, underscore, hyphen, period [/_-.]. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -99,9 +104,14 @@ class LogDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The set of labels that are available to describe a specific log entry. + /// Runtime requests that contain labels not specified here are + /// considered invalid. @$pb.TagNumber(2) - $core.List<$0.LabelDescriptor> get labels => $_getList(1); + $core.List<$65.LabelDescriptor> get labels => $_getList(1); + /// A human-readable description of this log. This information appears in + /// the documentation and can contain details. @$pb.TagNumber(3) $core.String get description => $_getSZ(2); @$pb.TagNumber(3) @@ -114,6 +124,8 @@ class LogDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDescription() => clearField(3); + /// The human-readable name for this log. This information appears on + /// the user interface and should be concise. @$pb.TagNumber(4) $core.String get displayName => $_getSZ(3); @$pb.TagNumber(4) @@ -126,3 +138,7 @@ class LogDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearDisplayName() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pbenum.dart index b354632d..6fe44b1c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/log.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pbjson.dart index 4867b18e..dc993f25 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/log.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/log.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 logDescriptorDescriptor instead') @@ -29,4 +33,6 @@ const LogDescriptor$json = { /// Descriptor for `LogDescriptor`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logDescriptorDescriptor = $convert.base64Decode( - 'Cg1Mb2dEZXNjcmlwdG9yEhIKBG5hbWUYASABKAlSBG5hbWUSMwoGbGFiZWxzGAIgAygLMhsuZ29vZ2xlLmFwaS5MYWJlbERlc2NyaXB0b3JSBmxhYmVscxIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRpb24SIQoMZGlzcGxheV9uYW1lGAQgASgJUgtkaXNwbGF5TmFtZQ=='); + 'Cg1Mb2dEZXNjcmlwdG9yEhIKBG5hbWUYASABKAlSBG5hbWUSMwoGbGFiZWxzGAIgAygLMhsuZ2' + '9vZ2xlLmFwaS5MYWJlbERlc2NyaXB0b3JSBmxhYmVscxIgCgtkZXNjcmlwdGlvbhgDIAEoCVIL' + 'ZGVzY3JpcHRpb24SIQoMZGlzcGxheV9uYW1lGAQgASgJUgtkaXNwbGF5TmFtZQ=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pb.dart index addc412c..6722d742 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pb.dart @@ -1,56 +1,50 @@ -/// +// // Generated code. Do not modify. // source: google/api/logging.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Configuration of a specific logging destination (the producer project +/// or the consumer project). class Logging_LoggingDestination extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Logging.LoggingDestination', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'logs') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'monitoredResource') - ..hasRequiredFields = false; - - Logging_LoggingDestination._() : super(); factory Logging_LoggingDestination({ $core.Iterable<$core.String>? logs, $core.String? monitoredResource, }) { - final _result = create(); + final $result = create(); if (logs != null) { - _result.logs.addAll(logs); + $result.logs.addAll(logs); } if (monitoredResource != null) { - _result.monitoredResource = monitoredResource; + $result.monitoredResource = monitoredResource; } - return _result; + return $result; } + Logging_LoggingDestination._() : super(); factory Logging_LoggingDestination.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Logging_LoggingDestination.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Logging.LoggingDestination', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'logs') + ..aOS(3, _omitFieldNames ? '' : 'monitoredResource') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -63,8 +57,10 @@ class Logging_LoggingDestination extends $pb.GeneratedMessage { void Function(Logging_LoggingDestination) updates) => super.copyWith( (message) => updates(message as Logging_LoggingDestination)) - as Logging_LoggingDestination; // ignore: deprecated_member_use + as Logging_LoggingDestination; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Logging_LoggingDestination create() => Logging_LoggingDestination._(); Logging_LoggingDestination createEmptyInstance() => create(); @@ -75,9 +71,16 @@ class Logging_LoggingDestination extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Logging_LoggingDestination? _defaultInstance; + /// Names of the logs to be sent to this destination. Each name must + /// be defined in the [Service.logs][google.api.Service.logs] section. If the + /// log name is not a domain scoped name, it will be automatically prefixed + /// with the service name followed by "/". @$pb.TagNumber(1) $core.List<$core.String> get logs => $_getList(0); + /// The monitored resource type. The type must be defined in the + /// [Service.monitored_resources][google.api.Service.monitored_resources] + /// section. @$pb.TagNumber(3) $core.String get monitoredResource => $_getSZ(1); @$pb.TagNumber(3) @@ -91,48 +94,69 @@ class Logging_LoggingDestination extends $pb.GeneratedMessage { void clearMonitoredResource() => clearField(3); } +/// Logging configuration of the service. +/// +/// The following example shows how to configure logs to be sent to the +/// producer and consumer projects. In the example, the `activity_history` +/// log is sent to both the producer and consumer projects, whereas the +/// `purchase_history` log is only sent to the producer project. +/// +/// monitored_resources: +/// - type: library.googleapis.com/branch +/// labels: +/// - key: /city +/// description: The city where the library branch is located in. +/// - key: /name +/// description: The name of the branch. +/// logs: +/// - name: activity_history +/// labels: +/// - key: /customer_id +/// - name: purchase_history +/// logging: +/// producer_destinations: +/// - monitored_resource: library.googleapis.com/branch +/// logs: +/// - activity_history +/// - purchase_history +/// consumer_destinations: +/// - monitored_resource: library.googleapis.com/branch +/// logs: +/// - activity_history class Logging extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = - $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Logging', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'producerDestinations', - $pb.PbFieldType.PM, - subBuilder: Logging_LoggingDestination.create) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'consumerDestinations', - $pb.PbFieldType.PM, - subBuilder: Logging_LoggingDestination.create) - ..hasRequiredFields = false; - - Logging._() : super(); factory Logging({ $core.Iterable? producerDestinations, $core.Iterable? consumerDestinations, }) { - final _result = create(); + final $result = create(); if (producerDestinations != null) { - _result.producerDestinations.addAll(producerDestinations); + $result.producerDestinations.addAll(producerDestinations); } if (consumerDestinations != null) { - _result.consumerDestinations.addAll(consumerDestinations); + $result.consumerDestinations.addAll(consumerDestinations); } - return _result; + return $result; } + Logging._() : super(); factory Logging.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Logging.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Logging', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'producerDestinations', $pb.PbFieldType.PM, + subBuilder: Logging_LoggingDestination.create) + ..pc( + 2, _omitFieldNames ? '' : 'consumerDestinations', $pb.PbFieldType.PM, + subBuilder: Logging_LoggingDestination.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') @@ -141,9 +165,10 @@ class Logging extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Logging copyWith(void Function(Logging) updates) => - super.copyWith((message) => updates(message as Logging)) - as Logging; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Logging)) as Logging; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Logging create() => Logging._(); Logging createEmptyInstance() => create(); @@ -153,11 +178,23 @@ class Logging extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Logging? _defaultInstance; + /// Logging configurations for sending logs to the producer project. + /// There can be multiple producer destinations, each one must have a + /// different monitored resource type. A log can be used in at most + /// one producer destination. @$pb.TagNumber(1) $core.List get producerDestinations => $_getList(0); + /// Logging configurations for sending logs to the consumer project. + /// There can be multiple consumer destinations, each one must have a + /// different monitored resource type. A log can be used in at most + /// one consumer destination. @$pb.TagNumber(2) $core.List get consumerDestinations => $_getList(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pbenum.dart index 517d7560..94339011 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/logging.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pbjson.dart index 5c11f757..b1d0896c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/logging.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/logging.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 loggingDescriptor instead') @@ -50,4 +54,9 @@ const Logging_LoggingDestination$json = { /// Descriptor for `Logging`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List loggingDescriptor = $convert.base64Decode( - 'CgdMb2dnaW5nElsKFXByb2R1Y2VyX2Rlc3RpbmF0aW9ucxgBIAMoCzImLmdvb2dsZS5hcGkuTG9nZ2luZy5Mb2dnaW5nRGVzdGluYXRpb25SFHByb2R1Y2VyRGVzdGluYXRpb25zElsKFWNvbnN1bWVyX2Rlc3RpbmF0aW9ucxgCIAMoCzImLmdvb2dsZS5hcGkuTG9nZ2luZy5Mb2dnaW5nRGVzdGluYXRpb25SFGNvbnN1bWVyRGVzdGluYXRpb25zGlcKEkxvZ2dpbmdEZXN0aW5hdGlvbhItChJtb25pdG9yZWRfcmVzb3VyY2UYAyABKAlSEW1vbml0b3JlZFJlc291cmNlEhIKBGxvZ3MYASADKAlSBGxvZ3M='); + 'CgdMb2dnaW5nElsKFXByb2R1Y2VyX2Rlc3RpbmF0aW9ucxgBIAMoCzImLmdvb2dsZS5hcGkuTG' + '9nZ2luZy5Mb2dnaW5nRGVzdGluYXRpb25SFHByb2R1Y2VyRGVzdGluYXRpb25zElsKFWNvbnN1' + 'bWVyX2Rlc3RpbmF0aW9ucxgCIAMoCzImLmdvb2dsZS5hcGkuTG9nZ2luZy5Mb2dnaW5nRGVzdG' + 'luYXRpb25SFGNvbnN1bWVyRGVzdGluYXRpb25zGlcKEkxvZ2dpbmdEZXN0aW5hdGlvbhItChJt' + 'b25pdG9yZWRfcmVzb3VyY2UYAyABKAlSEW1vbml0b3JlZFJlc291cmNlEhIKBGxvZ3MYASADKA' + 'lSBGxvZ3M='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pb.dart index d8181d04..88d6cf29 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pb.dart @@ -1,63 +1,46 @@ -/// +// // Generated code. Do not modify. // source: google/api/metric.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'label.pb.dart' as $0; -import '../protobuf/duration.pb.dart' as $1; - +import '../protobuf/duration.pb.dart' as $51; +import 'label.pb.dart' as $65; +import 'launch_stage.pbenum.dart' as $56; import 'metric.pbenum.dart'; -import 'launch_stage.pbenum.dart' as $2; export 'metric.pbenum.dart'; +/// Additional annotations that can be used to guide the usage of a metric. class MetricDescriptor_MetricDescriptorMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MetricDescriptor.MetricDescriptorMetadata', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..e<$2.LaunchStage>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'launchStage', $pb.PbFieldType.OE, - defaultOrMaker: $2.LaunchStage.LAUNCH_STAGE_UNSPECIFIED, - valueOf: $2.LaunchStage.valueOf, - enumValues: $2.LaunchStage.values) - ..aOM<$1.Duration>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'samplePeriod', - subBuilder: $1.Duration.create) - ..aOM<$1.Duration>( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ingestDelay', - subBuilder: $1.Duration.create) - ..hasRequiredFields = false; - - MetricDescriptor_MetricDescriptorMetadata._() : super(); factory MetricDescriptor_MetricDescriptorMetadata({ - @$core.Deprecated('This field is deprecated.') $2.LaunchStage? launchStage, - $1.Duration? samplePeriod, - $1.Duration? ingestDelay, + @$core.Deprecated('This field is deprecated.') $56.LaunchStage? launchStage, + $51.Duration? samplePeriod, + $51.Duration? ingestDelay, }) { - final _result = create(); + final $result = create(); if (launchStage != null) { // ignore: deprecated_member_use_from_same_package - _result.launchStage = launchStage; + $result.launchStage = launchStage; } if (samplePeriod != null) { - _result.samplePeriod = samplePeriod; + $result.samplePeriod = samplePeriod; } if (ingestDelay != null) { - _result.ingestDelay = ingestDelay; + $result.ingestDelay = ingestDelay; } - return _result; + return $result; } + MetricDescriptor_MetricDescriptorMetadata._() : super(); factory MetricDescriptor_MetricDescriptorMetadata.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -65,6 +48,22 @@ class MetricDescriptor_MetricDescriptorMetadata extends $pb.GeneratedMessage { factory MetricDescriptor_MetricDescriptorMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MetricDescriptor.MetricDescriptorMetadata', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..e<$56.LaunchStage>( + 1, _omitFieldNames ? '' : 'launchStage', $pb.PbFieldType.OE, + defaultOrMaker: $56.LaunchStage.LAUNCH_STAGE_UNSPECIFIED, + valueOf: $56.LaunchStage.valueOf, + enumValues: $56.LaunchStage.values) + ..aOM<$51.Duration>(2, _omitFieldNames ? '' : 'samplePeriod', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(3, _omitFieldNames ? '' : 'ingestDelay', + subBuilder: $51.Duration.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') @@ -77,8 +76,10 @@ class MetricDescriptor_MetricDescriptorMetadata extends $pb.GeneratedMessage { void Function(MetricDescriptor_MetricDescriptorMetadata) updates) => super.copyWith((message) => updates(message as MetricDescriptor_MetricDescriptorMetadata)) - as MetricDescriptor_MetricDescriptorMetadata; // ignore: deprecated_member_use + as MetricDescriptor_MetricDescriptorMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MetricDescriptor_MetricDescriptorMetadata create() => MetricDescriptor_MetricDescriptorMetadata._(); @@ -92,12 +93,15 @@ class MetricDescriptor_MetricDescriptorMetadata extends $pb.GeneratedMessage { MetricDescriptor_MetricDescriptorMetadata>(create); static MetricDescriptor_MetricDescriptorMetadata? _defaultInstance; + /// Deprecated. Must use the + /// [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] + /// instead. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(1) - $2.LaunchStage get launchStage => $_getN(0); + $56.LaunchStage get launchStage => $_getN(0); @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(1) - set launchStage($2.LaunchStage v) { + set launchStage($56.LaunchStage v) { setField(1, v); } @@ -108,10 +112,14 @@ class MetricDescriptor_MetricDescriptorMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearLaunchStage() => clearField(1); + /// The sampling period of metric data points. For metrics which are written + /// periodically, consecutive data points are stored at this time interval, + /// excluding data loss due to errors. Metrics with a higher granularity have + /// a smaller sampling period. @$pb.TagNumber(2) - $1.Duration get samplePeriod => $_getN(1); + $51.Duration get samplePeriod => $_getN(1); @$pb.TagNumber(2) - set samplePeriod($1.Duration v) { + set samplePeriod($51.Duration v) { setField(2, v); } @@ -120,12 +128,15 @@ class MetricDescriptor_MetricDescriptorMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearSamplePeriod() => clearField(2); @$pb.TagNumber(2) - $1.Duration ensureSamplePeriod() => $_ensure(1); + $51.Duration ensureSamplePeriod() => $_ensure(1); + /// The delay of data points caused by ingestion. Data points older than this + /// age are guaranteed to be ingested and available to be read, excluding + /// data loss due to errors. @$pb.TagNumber(3) - $1.Duration get ingestDelay => $_getN(2); + $51.Duration get ingestDelay => $_getN(2); @$pb.TagNumber(3) - set ingestDelay($1.Duration v) { + set ingestDelay($51.Duration v) { setField(3, v); } @@ -134,49 +145,16 @@ class MetricDescriptor_MetricDescriptorMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearIngestDelay() => clearField(3); @$pb.TagNumber(3) - $1.Duration ensureIngestDelay() => $_ensure(2); + $51.Duration ensureIngestDelay() => $_ensure(2); } +/// Defines a metric type and its schema. Once a metric descriptor is created, +/// deleting or altering it stops data collection and makes the metric type's +/// existing data unusable. class MetricDescriptor extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'MetricDescriptor', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc<$0.LabelDescriptor>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', $pb.PbFieldType.PM, - subBuilder: $0.LabelDescriptor.create) - ..e( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metricKind', $pb.PbFieldType.OE, - defaultOrMaker: MetricDescriptor_MetricKind.METRIC_KIND_UNSPECIFIED, - valueOf: MetricDescriptor_MetricKind.valueOf, - enumValues: MetricDescriptor_MetricKind.values) - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'valueType', - $pb.PbFieldType.OE, - defaultOrMaker: MetricDescriptor_ValueType.VALUE_TYPE_UNSPECIFIED, - valueOf: MetricDescriptor_ValueType.valueOf, - enumValues: MetricDescriptor_ValueType.values) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unit') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'description') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'displayName') - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'type') - ..aOM(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metadata', subBuilder: MetricDescriptor_MetricDescriptorMetadata.create) - ..e<$2.LaunchStage>(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'launchStage', $pb.PbFieldType.OE, defaultOrMaker: $2.LaunchStage.LAUNCH_STAGE_UNSPECIFIED, valueOf: $2.LaunchStage.valueOf, enumValues: $2.LaunchStage.values) - ..pPS(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'monitoredResourceTypes') - ..hasRequiredFields = false; - - MetricDescriptor._() : super(); factory MetricDescriptor({ $core.String? name, - $core.Iterable<$0.LabelDescriptor>? labels, + $core.Iterable<$65.LabelDescriptor>? labels, MetricDescriptor_MetricKind? metricKind, MetricDescriptor_ValueType? valueType, $core.String? unit, @@ -184,51 +162,86 @@ class MetricDescriptor extends $pb.GeneratedMessage { $core.String? displayName, $core.String? type, MetricDescriptor_MetricDescriptorMetadata? metadata, - $2.LaunchStage? launchStage, + $56.LaunchStage? launchStage, $core.Iterable<$core.String>? monitoredResourceTypes, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (metricKind != null) { - _result.metricKind = metricKind; + $result.metricKind = metricKind; } if (valueType != null) { - _result.valueType = valueType; + $result.valueType = valueType; } if (unit != null) { - _result.unit = unit; + $result.unit = unit; } if (description != null) { - _result.description = description; + $result.description = description; } if (displayName != null) { - _result.displayName = displayName; + $result.displayName = displayName; } if (type != null) { - _result.type = type; + $result.type = type; } if (metadata != null) { - _result.metadata = metadata; + $result.metadata = metadata; } if (launchStage != null) { - _result.launchStage = launchStage; + $result.launchStage = launchStage; } if (monitoredResourceTypes != null) { - _result.monitoredResourceTypes.addAll(monitoredResourceTypes); + $result.monitoredResourceTypes.addAll(monitoredResourceTypes); } - return _result; + return $result; } + MetricDescriptor._() : super(); factory MetricDescriptor.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MetricDescriptor.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MetricDescriptor', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pc<$65.LabelDescriptor>( + 2, _omitFieldNames ? '' : 'labels', $pb.PbFieldType.PM, + subBuilder: $65.LabelDescriptor.create) + ..e( + 3, _omitFieldNames ? '' : 'metricKind', $pb.PbFieldType.OE, + defaultOrMaker: MetricDescriptor_MetricKind.METRIC_KIND_UNSPECIFIED, + valueOf: MetricDescriptor_MetricKind.valueOf, + enumValues: MetricDescriptor_MetricKind.values) + ..e( + 4, _omitFieldNames ? '' : 'valueType', $pb.PbFieldType.OE, + defaultOrMaker: MetricDescriptor_ValueType.VALUE_TYPE_UNSPECIFIED, + valueOf: MetricDescriptor_ValueType.valueOf, + enumValues: MetricDescriptor_ValueType.values) + ..aOS(5, _omitFieldNames ? '' : 'unit') + ..aOS(6, _omitFieldNames ? '' : 'description') + ..aOS(7, _omitFieldNames ? '' : 'displayName') + ..aOS(8, _omitFieldNames ? '' : 'type') + ..aOM( + 10, _omitFieldNames ? '' : 'metadata', + subBuilder: MetricDescriptor_MetricDescriptorMetadata.create) + ..e<$56.LaunchStage>( + 12, _omitFieldNames ? '' : 'launchStage', $pb.PbFieldType.OE, + defaultOrMaker: $56.LaunchStage.LAUNCH_STAGE_UNSPECIFIED, + valueOf: $56.LaunchStage.valueOf, + enumValues: $56.LaunchStage.values) + ..pPS(13, _omitFieldNames ? '' : 'monitoredResourceTypes') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -238,8 +251,10 @@ class MetricDescriptor extends $pb.GeneratedMessage { 'Will be removed in next major version') MetricDescriptor copyWith(void Function(MetricDescriptor) updates) => super.copyWith((message) => updates(message as MetricDescriptor)) - as MetricDescriptor; // ignore: deprecated_member_use + as MetricDescriptor; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MetricDescriptor create() => MetricDescriptor._(); MetricDescriptor createEmptyInstance() => create(); @@ -250,6 +265,7 @@ class MetricDescriptor extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MetricDescriptor? _defaultInstance; + /// The resource name of the metric descriptor. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -262,9 +278,17 @@ class MetricDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The set of labels that can be used to describe a specific + /// instance of this metric type. For example, the + /// `appengine.googleapis.com/http/server/response_latencies` metric + /// type has a label for the HTTP response code, `response_code`, so + /// you can look at latencies for successful responses or just + /// for responses that failed. @$pb.TagNumber(2) - $core.List<$0.LabelDescriptor> get labels => $_getList(1); + $core.List<$65.LabelDescriptor> get labels => $_getList(1); + /// Whether the metric records instantaneous values, changes to a value, etc. + /// Some combinations of `metric_kind` and `value_type` might not be supported. @$pb.TagNumber(3) MetricDescriptor_MetricKind get metricKind => $_getN(2); @$pb.TagNumber(3) @@ -277,6 +301,8 @@ class MetricDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearMetricKind() => clearField(3); + /// Whether the measurement is an integer, a floating-point number, etc. + /// Some combinations of `metric_kind` and `value_type` might not be supported. @$pb.TagNumber(4) MetricDescriptor_ValueType get valueType => $_getN(3); @$pb.TagNumber(4) @@ -289,6 +315,108 @@ class MetricDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearValueType() => clearField(4); + /// The units in which the metric value is reported. It is only applicable + /// if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` + /// defines the representation of the stored metric values. + /// + /// Different systems might scale the values to be more easily displayed (so a + /// value of `0.02kBy` _might_ be displayed as `20By`, and a value of + /// `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + /// `kBy`, then the value of the metric is always in thousands of bytes, no + /// matter how it might be displayed. + /// + /// If you want a custom metric to record the exact number of CPU-seconds used + /// by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is + /// `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 + /// CPU-seconds, then the value is written as `12005`. + /// + /// Alternatively, if you want a custom metric to record data in a more + /// granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + /// `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), + /// or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). + /// + /// The supported units are a subset of [The Unified Code for Units of + /// Measure](https://unitsofmeasure.org/ucum.html) standard: + /// + /// **Basic units (UNIT)** + /// + /// * `bit` bit + /// * `By` byte + /// * `s` second + /// * `min` minute + /// * `h` hour + /// * `d` day + /// * `1` dimensionless + /// + /// **Prefixes (PREFIX)** + /// + /// * `k` kilo (10^3) + /// * `M` mega (10^6) + /// * `G` giga (10^9) + /// * `T` tera (10^12) + /// * `P` peta (10^15) + /// * `E` exa (10^18) + /// * `Z` zetta (10^21) + /// * `Y` yotta (10^24) + /// + /// * `m` milli (10^-3) + /// * `u` micro (10^-6) + /// * `n` nano (10^-9) + /// * `p` pico (10^-12) + /// * `f` femto (10^-15) + /// * `a` atto (10^-18) + /// * `z` zepto (10^-21) + /// * `y` yocto (10^-24) + /// + /// * `Ki` kibi (2^10) + /// * `Mi` mebi (2^20) + /// * `Gi` gibi (2^30) + /// * `Ti` tebi (2^40) + /// * `Pi` pebi (2^50) + /// + /// **Grammar** + /// + /// The grammar also includes these connectors: + /// + /// * `/` division or ratio (as an infix operator). For examples, + /// `kBy/{email}` or `MiBy/10ms` (although you should almost never + /// have `/s` in a metric `unit`; rates should always be computed at + /// query time from the underlying cumulative or delta value). + /// * `.` multiplication or composition (as an infix operator). For + /// examples, `GBy.d` or `k{watt}.h`. + /// + /// The grammar for a unit is as follows: + /// + /// Expression = Component { "." Component } { "/" Component } ; + /// + /// Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] + /// | Annotation + /// | "1" + /// ; + /// + /// Annotation = "{" NAME "}" ; + /// + /// Notes: + /// + /// * `Annotation` is just a comment if it follows a `UNIT`. If the annotation + /// is used alone, then the unit is equivalent to `1`. For examples, + /// `{request}/s == 1/s`, `By{transmitted}/s == By/s`. + /// * `NAME` is a sequence of non-blank printable ASCII characters not + /// containing `{` or `}`. + /// * `1` represents a unitary [dimensionless + /// unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such + /// as in `1/s`. It is typically used when none of the basic units are + /// appropriate. For example, "new users per day" can be represented as + /// `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new + /// users). Alternatively, "thousands of page views per day" would be + /// represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric + /// value of `5.3` would mean "5300 page views per day"). + /// * `%` represents dimensionless value of 1/100, and annotates values giving + /// a percentage (so the metric values are typically in the range of 0..100, + /// and a metric value `3` means "3 percent"). + /// * `10^2.%` indicates a metric contains a ratio, typically in the range + /// 0..1, that will be multiplied by 100 and displayed as a percentage + /// (so a metric value `0.03` means "3 percent"). @$pb.TagNumber(5) $core.String get unit => $_getSZ(4); @$pb.TagNumber(5) @@ -301,6 +429,7 @@ class MetricDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearUnit() => clearField(5); + /// A detailed description of the metric, which can be used in documentation. @$pb.TagNumber(6) $core.String get description => $_getSZ(5); @$pb.TagNumber(6) @@ -313,6 +442,10 @@ class MetricDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearDescription() => clearField(6); + /// A concise name for the metric, which can be displayed in user interfaces. + /// Use sentence case without an ending period, for example "Request count". + /// This field is optional but it is recommended to be set for any metrics + /// associated with user-visible concepts, such as Quota. @$pb.TagNumber(7) $core.String get displayName => $_getSZ(6); @$pb.TagNumber(7) @@ -325,6 +458,14 @@ class MetricDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearDisplayName() => clearField(7); + /// The metric type, including its DNS name prefix. The type is not + /// URL-encoded. All user-defined metric types have the DNS name + /// `custom.googleapis.com` or `external.googleapis.com`. Metric types should + /// use a natural hierarchical grouping. For example: + /// + /// "custom.googleapis.com/invoice/paid/amount" + /// "external.googleapis.com/prometheus/up" + /// "appengine.googleapis.com/http/server/response_latencies" @$pb.TagNumber(8) $core.String get type => $_getSZ(7); @$pb.TagNumber(8) @@ -337,6 +478,7 @@ class MetricDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearType() => clearField(8); + /// Optional. Metadata which can be used to guide usage of the metric. @$pb.TagNumber(10) MetricDescriptor_MetricDescriptorMetadata get metadata => $_getN(8); @$pb.TagNumber(10) @@ -351,10 +493,11 @@ class MetricDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(10) MetricDescriptor_MetricDescriptorMetadata ensureMetadata() => $_ensure(8); + /// Optional. The launch stage of the metric definition. @$pb.TagNumber(12) - $2.LaunchStage get launchStage => $_getN(9); + $56.LaunchStage get launchStage => $_getN(9); @$pb.TagNumber(12) - set launchStage($2.LaunchStage v) { + set launchStage($56.LaunchStage v) { setField(12, v); } @@ -363,53 +506,52 @@ class MetricDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearLaunchStage() => clearField(12); + /// Read-only. If present, then a [time + /// series][google.monitoring.v3.TimeSeries], which is identified partially by + /// a metric type and a + /// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that + /// is associated with this metric type can only be associated with one of the + /// monitored resource types listed here. @$pb.TagNumber(13) $core.List<$core.String> get monitoredResourceTypes => $_getList(10); } +/// A specific metric, identified by specifying values for all of the +/// labels of a [`MetricDescriptor`][google.api.MetricDescriptor]. class Metric extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Metric', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..m<$core.String, $core.String>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'labels', - entryClassName: 'Metric.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.api')) - ..aOS(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'type') - ..hasRequiredFields = false; - - Metric._() : super(); factory Metric({ $core.Map<$core.String, $core.String>? labels, $core.String? type, }) { - final _result = create(); + final $result = create(); if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (type != null) { - _result.type = type; + $result.type = type; } - return _result; + return $result; } + Metric._() : super(); factory Metric.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Metric.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Metric', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'labels', + entryClassName: 'Metric.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api')) + ..aOS(3, _omitFieldNames ? '' : 'type') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -418,9 +560,10 @@ class Metric extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Metric copyWith(void Function(Metric) updates) => - super.copyWith((message) => updates(message as Metric)) - as Metric; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Metric)) as Metric; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Metric create() => Metric._(); Metric createEmptyInstance() => create(); @@ -430,9 +573,14 @@ class Metric extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Metric? _defaultInstance; + /// The set of label values that uniquely identify this metric. All + /// labels listed in the `MetricDescriptor` must be assigned values. @$pb.TagNumber(2) $core.Map<$core.String, $core.String> get labels => $_getMap(0); + /// An existing metric type, see + /// [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, + /// `custom.googleapis.com/invoice/paid/amount`. @$pb.TagNumber(3) $core.String get type => $_getSZ(1); @$pb.TagNumber(3) @@ -445,3 +593,7 @@ class Metric extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearType() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pbenum.dart index 048dff5e..932e97f8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pbenum.dart @@ -1,39 +1,31 @@ -/// +// // Generated code. Do not modify. // source: google/api/metric.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The kind of measurement. It describes how the data is reported. +/// For information on setting the start time and end time based on +/// the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval]. class MetricDescriptor_MetricKind extends $pb.ProtobufEnum { static const MetricDescriptor_MetricKind METRIC_KIND_UNSPECIFIED = MetricDescriptor_MetricKind._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'METRIC_KIND_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'METRIC_KIND_UNSPECIFIED'); static const MetricDescriptor_MetricKind GAUGE = - MetricDescriptor_MetricKind._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'GAUGE'); + MetricDescriptor_MetricKind._(1, _omitEnumNames ? '' : 'GAUGE'); static const MetricDescriptor_MetricKind DELTA = - MetricDescriptor_MetricKind._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DELTA'); + MetricDescriptor_MetricKind._(2, _omitEnumNames ? '' : 'DELTA'); static const MetricDescriptor_MetricKind CUMULATIVE = - MetricDescriptor_MetricKind._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CUMULATIVE'); + MetricDescriptor_MetricKind._(3, _omitEnumNames ? '' : 'CUMULATIVE'); static const $core.List values = [ @@ -52,31 +44,23 @@ class MetricDescriptor_MetricKind extends $pb.ProtobufEnum { : super(v, n); } +/// The value type of a metric. class MetricDescriptor_ValueType extends $pb.ProtobufEnum { static const MetricDescriptor_ValueType VALUE_TYPE_UNSPECIFIED = MetricDescriptor_ValueType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'VALUE_TYPE_UNSPECIFIED'); - static const MetricDescriptor_ValueType BOOL = MetricDescriptor_ValueType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BOOL'); - static const MetricDescriptor_ValueType INT64 = MetricDescriptor_ValueType._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'INT64'); - static const MetricDescriptor_ValueType DOUBLE = MetricDescriptor_ValueType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DOUBLE'); - static const MetricDescriptor_ValueType STRING = MetricDescriptor_ValueType._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'STRING'); + 0, _omitEnumNames ? '' : 'VALUE_TYPE_UNSPECIFIED'); + static const MetricDescriptor_ValueType BOOL = + MetricDescriptor_ValueType._(1, _omitEnumNames ? '' : 'BOOL'); + static const MetricDescriptor_ValueType INT64 = + MetricDescriptor_ValueType._(2, _omitEnumNames ? '' : 'INT64'); + static const MetricDescriptor_ValueType DOUBLE = + MetricDescriptor_ValueType._(3, _omitEnumNames ? '' : 'DOUBLE'); + static const MetricDescriptor_ValueType STRING = + MetricDescriptor_ValueType._(4, _omitEnumNames ? '' : 'STRING'); static const MetricDescriptor_ValueType DISTRIBUTION = - MetricDescriptor_ValueType._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DISTRIBUTION'); - static const MetricDescriptor_ValueType MONEY = MetricDescriptor_ValueType._( - 6, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'MONEY'); + MetricDescriptor_ValueType._(5, _omitEnumNames ? '' : 'DISTRIBUTION'); + static const MetricDescriptor_ValueType MONEY = + MetricDescriptor_ValueType._(6, _omitEnumNames ? '' : 'MONEY'); static const $core.List values = [ @@ -96,3 +80,5 @@ class MetricDescriptor_ValueType extends $pb.ProtobufEnum { const MetricDescriptor_ValueType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pbjson.dart index d0372b5f..cb4ab9f9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/metric.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/metric.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 metricDescriptorDescriptor instead') @@ -129,7 +133,25 @@ const MetricDescriptor_ValueType$json = { /// Descriptor for `MetricDescriptor`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List metricDescriptorDescriptor = $convert.base64Decode( - 'ChBNZXRyaWNEZXNjcmlwdG9yEhIKBG5hbWUYASABKAlSBG5hbWUSEgoEdHlwZRgIIAEoCVIEdHlwZRIzCgZsYWJlbHMYAiADKAsyGy5nb29nbGUuYXBpLkxhYmVsRGVzY3JpcHRvclIGbGFiZWxzEkgKC21ldHJpY19raW5kGAMgASgOMicuZ29vZ2xlLmFwaS5NZXRyaWNEZXNjcmlwdG9yLk1ldHJpY0tpbmRSCm1ldHJpY0tpbmQSRQoKdmFsdWVfdHlwZRgEIAEoDjImLmdvb2dsZS5hcGkuTWV0cmljRGVzY3JpcHRvci5WYWx1ZVR5cGVSCXZhbHVlVHlwZRISCgR1bml0GAUgASgJUgR1bml0EiAKC2Rlc2NyaXB0aW9uGAYgASgJUgtkZXNjcmlwdGlvbhIhCgxkaXNwbGF5X25hbWUYByABKAlSC2Rpc3BsYXlOYW1lElEKCG1ldGFkYXRhGAogASgLMjUuZ29vZ2xlLmFwaS5NZXRyaWNEZXNjcmlwdG9yLk1ldHJpY0Rlc2NyaXB0b3JNZXRhZGF0YVIIbWV0YWRhdGESOgoMbGF1bmNoX3N0YWdlGAwgASgOMhcuZ29vZ2xlLmFwaS5MYXVuY2hTdGFnZVILbGF1bmNoU3RhZ2USOAoYbW9uaXRvcmVkX3Jlc291cmNlX3R5cGVzGA0gAygJUhZtb25pdG9yZWRSZXNvdXJjZVR5cGVzGtgBChhNZXRyaWNEZXNjcmlwdG9yTWV0YWRhdGESPgoMbGF1bmNoX3N0YWdlGAEgASgOMhcuZ29vZ2xlLmFwaS5MYXVuY2hTdGFnZUICGAFSC2xhdW5jaFN0YWdlEj4KDXNhbXBsZV9wZXJpb2QYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDHNhbXBsZVBlcmlvZBI8Cgxpbmdlc3RfZGVsYXkYAyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SC2luZ2VzdERlbGF5Ik8KCk1ldHJpY0tpbmQSGwoXTUVUUklDX0tJTkRfVU5TUEVDSUZJRUQQABIJCgVHQVVHRRABEgkKBURFTFRBEAISDgoKQ1VNVUxBVElWRRADInEKCVZhbHVlVHlwZRIaChZWQUxVRV9UWVBFX1VOU1BFQ0lGSUVEEAASCAoEQk9PTBABEgkKBUlOVDY0EAISCgoGRE9VQkxFEAMSCgoGU1RSSU5HEAQSEAoMRElTVFJJQlVUSU9OEAUSCQoFTU9ORVkQBg=='); + 'ChBNZXRyaWNEZXNjcmlwdG9yEhIKBG5hbWUYASABKAlSBG5hbWUSEgoEdHlwZRgIIAEoCVIEdH' + 'lwZRIzCgZsYWJlbHMYAiADKAsyGy5nb29nbGUuYXBpLkxhYmVsRGVzY3JpcHRvclIGbGFiZWxz' + 'EkgKC21ldHJpY19raW5kGAMgASgOMicuZ29vZ2xlLmFwaS5NZXRyaWNEZXNjcmlwdG9yLk1ldH' + 'JpY0tpbmRSCm1ldHJpY0tpbmQSRQoKdmFsdWVfdHlwZRgEIAEoDjImLmdvb2dsZS5hcGkuTWV0' + 'cmljRGVzY3JpcHRvci5WYWx1ZVR5cGVSCXZhbHVlVHlwZRISCgR1bml0GAUgASgJUgR1bml0Ei' + 'AKC2Rlc2NyaXB0aW9uGAYgASgJUgtkZXNjcmlwdGlvbhIhCgxkaXNwbGF5X25hbWUYByABKAlS' + 'C2Rpc3BsYXlOYW1lElEKCG1ldGFkYXRhGAogASgLMjUuZ29vZ2xlLmFwaS5NZXRyaWNEZXNjcm' + 'lwdG9yLk1ldHJpY0Rlc2NyaXB0b3JNZXRhZGF0YVIIbWV0YWRhdGESOgoMbGF1bmNoX3N0YWdl' + 'GAwgASgOMhcuZ29vZ2xlLmFwaS5MYXVuY2hTdGFnZVILbGF1bmNoU3RhZ2USOAoYbW9uaXRvcm' + 'VkX3Jlc291cmNlX3R5cGVzGA0gAygJUhZtb25pdG9yZWRSZXNvdXJjZVR5cGVzGtgBChhNZXRy' + 'aWNEZXNjcmlwdG9yTWV0YWRhdGESPgoMbGF1bmNoX3N0YWdlGAEgASgOMhcuZ29vZ2xlLmFwaS' + '5MYXVuY2hTdGFnZUICGAFSC2xhdW5jaFN0YWdlEj4KDXNhbXBsZV9wZXJpb2QYAiABKAsyGS5n' + 'b29nbGUucHJvdG9idWYuRHVyYXRpb25SDHNhbXBsZVBlcmlvZBI8Cgxpbmdlc3RfZGVsYXkYAy' + 'ABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SC2luZ2VzdERlbGF5Ik8KCk1ldHJpY0tp' + 'bmQSGwoXTUVUUklDX0tJTkRfVU5TUEVDSUZJRUQQABIJCgVHQVVHRRABEgkKBURFTFRBEAISDg' + 'oKQ1VNVUxBVElWRRADInEKCVZhbHVlVHlwZRIaChZWQUxVRV9UWVBFX1VOU1BFQ0lGSUVEEAAS' + 'CAoEQk9PTBABEgkKBUlOVDY0EAISCgoGRE9VQkxFEAMSCgoGU1RSSU5HEAQSEAoMRElTVFJJQl' + 'VUSU9OEAUSCQoFTU9ORVkQBg=='); + @$core.Deprecated('Use metricDescriptor instead') const Metric$json = { '1': 'Metric', @@ -159,4 +181,6 @@ const Metric_LabelsEntry$json = { /// Descriptor for `Metric`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List metricDescriptor = $convert.base64Decode( - 'CgZNZXRyaWMSEgoEdHlwZRgDIAEoCVIEdHlwZRI2CgZsYWJlbHMYAiADKAsyHi5nb29nbGUuYXBpLk1ldHJpYy5MYWJlbHNFbnRyeVIGbGFiZWxzGjkKC0xhYmVsc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE='); + 'CgZNZXRyaWMSEgoEdHlwZRgDIAEoCVIEdHlwZRI2CgZsYWJlbHMYAiADKAsyHi5nb29nbGUuYX' + 'BpLk1ldHJpYy5MYWJlbHNFbnRyeVIGbGFiZWxzGjkKC0xhYmVsc0VudHJ5EhAKA2tleRgBIAEo' + 'CVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pb.dart index d882cfa2..a0014c22 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pb.dart @@ -1,88 +1,88 @@ -/// +// // Generated code. Do not modify. // source: google/api/monitored_resource.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'label.pb.dart' as $0; -import '../protobuf/struct.pb.dart' as $1; - -import 'launch_stage.pbenum.dart' as $2; +import '../protobuf/struct.pb.dart' as $48; +import 'label.pb.dart' as $65; +import 'launch_stage.pbenum.dart' as $56; +/// An object that describes the schema of a +/// [MonitoredResource][google.api.MonitoredResource] object using a type name +/// and a set of labels. For example, the monitored resource descriptor for +/// Google Compute Engine VM instances has a type of +/// `"gce_instance"` and specifies the use of the labels `"instance_id"` and +/// `"zone"` to identify particular VM instances. +/// +/// Different APIs can support different monitored resource types. APIs generally +/// provide a `list` method that returns the monitored resource descriptors used +/// by the API. class MonitoredResourceDescriptor extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MonitoredResourceDescriptor', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'displayName') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..pc<$0.LabelDescriptor>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - $pb.PbFieldType.PM, - subBuilder: $0.LabelDescriptor.create) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') - ..e<$2.LaunchStage>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'launchStage', $pb.PbFieldType.OE, defaultOrMaker: $2.LaunchStage.LAUNCH_STAGE_UNSPECIFIED, valueOf: $2.LaunchStage.valueOf, enumValues: $2.LaunchStage.values) - ..hasRequiredFields = false; - - MonitoredResourceDescriptor._() : super(); factory MonitoredResourceDescriptor({ $core.String? type, $core.String? displayName, $core.String? description, - $core.Iterable<$0.LabelDescriptor>? labels, + $core.Iterable<$65.LabelDescriptor>? labels, $core.String? name, - $2.LaunchStage? launchStage, + $56.LaunchStage? launchStage, }) { - final _result = create(); + final $result = create(); if (type != null) { - _result.type = type; + $result.type = type; } if (displayName != null) { - _result.displayName = displayName; + $result.displayName = displayName; } if (description != null) { - _result.description = description; + $result.description = description; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (name != null) { - _result.name = name; + $result.name = name; } if (launchStage != null) { - _result.launchStage = launchStage; + $result.launchStage = launchStage; } - return _result; + return $result; } + MonitoredResourceDescriptor._() : super(); factory MonitoredResourceDescriptor.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MonitoredResourceDescriptor.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MonitoredResourceDescriptor', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'type') + ..aOS(2, _omitFieldNames ? '' : 'displayName') + ..aOS(3, _omitFieldNames ? '' : 'description') + ..pc<$65.LabelDescriptor>( + 4, _omitFieldNames ? '' : 'labels', $pb.PbFieldType.PM, + subBuilder: $65.LabelDescriptor.create) + ..aOS(5, _omitFieldNames ? '' : 'name') + ..e<$56.LaunchStage>( + 7, _omitFieldNames ? '' : 'launchStage', $pb.PbFieldType.OE, + defaultOrMaker: $56.LaunchStage.LAUNCH_STAGE_UNSPECIFIED, + valueOf: $56.LaunchStage.valueOf, + enumValues: $56.LaunchStage.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -95,8 +95,10 @@ class MonitoredResourceDescriptor extends $pb.GeneratedMessage { void Function(MonitoredResourceDescriptor) updates) => super.copyWith( (message) => updates(message as MonitoredResourceDescriptor)) - as MonitoredResourceDescriptor; // ignore: deprecated_member_use + as MonitoredResourceDescriptor; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MonitoredResourceDescriptor create() => MonitoredResourceDescriptor._(); @@ -108,6 +110,12 @@ class MonitoredResourceDescriptor extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MonitoredResourceDescriptor? _defaultInstance; + /// Required. The monitored resource type. For example, the type + /// `"cloudsql_database"` represents databases in Google Cloud SQL. + /// For a list of types, see [Monitored resource + /// types](https://cloud.google.com/monitoring/api/resources) + /// and [Logging resource + /// types](https://cloud.google.com/logging/docs/api/v2/resource-list). @$pb.TagNumber(1) $core.String get type => $_getSZ(0); @$pb.TagNumber(1) @@ -120,6 +128,10 @@ class MonitoredResourceDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearType() => clearField(1); + /// Optional. A concise name for the monitored resource type that might be + /// displayed in user interfaces. It should be a Title Cased Noun Phrase, + /// without any article or other determiners. For example, + /// `"Google Cloud SQL Database"`. @$pb.TagNumber(2) $core.String get displayName => $_getSZ(1); @$pb.TagNumber(2) @@ -132,6 +144,8 @@ class MonitoredResourceDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDisplayName() => clearField(2); + /// Optional. A detailed description of the monitored resource type that might + /// be used in documentation. @$pb.TagNumber(3) $core.String get description => $_getSZ(2); @$pb.TagNumber(3) @@ -144,9 +158,18 @@ class MonitoredResourceDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDescription() => clearField(3); + /// Required. A set of labels used to describe instances of this monitored + /// resource type. For example, an individual Google Cloud SQL database is + /// identified by values for the labels `"database_id"` and `"zone"`. @$pb.TagNumber(4) - $core.List<$0.LabelDescriptor> get labels => $_getList(3); + $core.List<$65.LabelDescriptor> get labels => $_getList(3); + /// Optional. The resource name of the monitored resource descriptor: + /// `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + /// {type} is the value of the `type` field in this object and + /// {project_id} is a project ID that provides API-specific context for + /// accessing the type. APIs that do not use project information can use the + /// resource name format `"monitoredResourceDescriptors/{type}"`. @$pb.TagNumber(5) $core.String get name => $_getSZ(4); @$pb.TagNumber(5) @@ -159,10 +182,11 @@ class MonitoredResourceDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearName() => clearField(5); + /// Optional. The launch stage of the monitored resource definition. @$pb.TagNumber(7) - $2.LaunchStage get launchStage => $_getN(5); + $56.LaunchStage get launchStage => $_getN(5); @$pb.TagNumber(7) - set launchStage($2.LaunchStage v) { + set launchStage($56.LaunchStage v) { setField(7, v); } @@ -172,52 +196,56 @@ class MonitoredResourceDescriptor extends $pb.GeneratedMessage { void clearLaunchStage() => clearField(7); } +/// An object representing a resource that can be used for monitoring, logging, +/// billing, or other purposes. Examples include virtual machine instances, +/// databases, and storage devices such as disks. The `type` field identifies a +/// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object +/// that describes the resource's schema. Information in the `labels` field +/// identifies the actual resource and its attributes according to the schema. +/// For example, a particular Compute Engine VM instance could be represented by +/// the following object, because the +/// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for +/// `"gce_instance"` has labels +/// `"project_id"`, `"instance_id"` and `"zone"`: +/// +/// { "type": "gce_instance", +/// "labels": { "project_id": "my-project", +/// "instance_id": "12345678901234", +/// "zone": "us-central1-a" }} class MonitoredResource extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MonitoredResource', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type') - ..m<$core.String, $core.String>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'labels', - entryClassName: 'MonitoredResource.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.api')) - ..hasRequiredFields = false; - - MonitoredResource._() : super(); factory MonitoredResource({ $core.String? type, $core.Map<$core.String, $core.String>? labels, }) { - final _result = create(); + final $result = create(); if (type != null) { - _result.type = type; + $result.type = type; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } - return _result; + return $result; } + MonitoredResource._() : super(); factory MonitoredResource.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MonitoredResource.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MonitoredResource', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'type') + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'labels', + entryClassName: 'MonitoredResource.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -227,8 +255,10 @@ class MonitoredResource extends $pb.GeneratedMessage { 'Will be removed in next major version') MonitoredResource copyWith(void Function(MonitoredResource) updates) => super.copyWith((message) => updates(message as MonitoredResource)) - as MonitoredResource; // ignore: deprecated_member_use + as MonitoredResource; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MonitoredResource create() => MonitoredResource._(); MonitoredResource createEmptyInstance() => create(); @@ -239,6 +269,13 @@ class MonitoredResource extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MonitoredResource? _defaultInstance; + /// Required. The monitored resource type. This field must match + /// the `type` field of a + /// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] + /// object. For example, the type of a Compute Engine VM instance is + /// `gce_instance`. Some descriptors include the service name in the type; for + /// example, the type of a Datastream stream is + /// `datastream.googleapis.com/Stream`. @$pb.TagNumber(1) $core.String get type => $_getSZ(0); @$pb.TagNumber(1) @@ -251,54 +288,54 @@ class MonitoredResource extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearType() => clearField(1); + /// Required. Values for all of the labels listed in the associated monitored + /// resource descriptor. For example, Compute Engine VM instances use the + /// labels `"project_id"`, `"instance_id"`, and `"zone"`. @$pb.TagNumber(2) $core.Map<$core.String, $core.String> get labels => $_getMap(1); } +/// Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] +/// object. [MonitoredResource][google.api.MonitoredResource] objects contain the +/// minimum set of information to uniquely identify a monitored resource +/// instance. There is some other useful auxiliary metadata. Monitoring and +/// Logging use an ingestion pipeline to extract metadata for cloud resources of +/// all types, and store the metadata in this message. class MonitoredResourceMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MonitoredResourceMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOM<$1.Struct>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'systemLabels', - subBuilder: $1.Struct.create) - ..m<$core.String, $core.String>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'userLabels', - entryClassName: 'MonitoredResourceMetadata.UserLabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.api')) - ..hasRequiredFields = false; - - MonitoredResourceMetadata._() : super(); factory MonitoredResourceMetadata({ - $1.Struct? systemLabels, + $48.Struct? systemLabels, $core.Map<$core.String, $core.String>? userLabels, }) { - final _result = create(); + final $result = create(); if (systemLabels != null) { - _result.systemLabels = systemLabels; + $result.systemLabels = systemLabels; } if (userLabels != null) { - _result.userLabels.addAll(userLabels); + $result.userLabels.addAll(userLabels); } - return _result; + return $result; } + MonitoredResourceMetadata._() : super(); factory MonitoredResourceMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MonitoredResourceMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MonitoredResourceMetadata', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOM<$48.Struct>(1, _omitFieldNames ? '' : 'systemLabels', + subBuilder: $48.Struct.create) + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'userLabels', + entryClassName: 'MonitoredResourceMetadata.UserLabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -310,8 +347,10 @@ class MonitoredResourceMetadata extends $pb.GeneratedMessage { MonitoredResourceMetadata copyWith( void Function(MonitoredResourceMetadata) updates) => super.copyWith((message) => updates(message as MonitoredResourceMetadata)) - as MonitoredResourceMetadata; // ignore: deprecated_member_use + as MonitoredResourceMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MonitoredResourceMetadata create() => MonitoredResourceMetadata._(); MonitoredResourceMetadata createEmptyInstance() => create(); @@ -322,10 +361,20 @@ class MonitoredResourceMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MonitoredResourceMetadata? _defaultInstance; + /// Output only. Values for predefined system metadata labels. + /// System labels are a kind of metadata extracted by Google, including + /// "machine_image", "vpc", "subnet_id", + /// "security_group", "name", etc. + /// System label values can be only strings, Boolean values, or a list of + /// strings. For example: + /// + /// { "name": "my-test-instance", + /// "security_group": ["a", "b", "c"], + /// "spot_instance": false } @$pb.TagNumber(1) - $1.Struct get systemLabels => $_getN(0); + $48.Struct get systemLabels => $_getN(0); @$pb.TagNumber(1) - set systemLabels($1.Struct v) { + set systemLabels($48.Struct v) { setField(1, v); } @@ -334,8 +383,13 @@ class MonitoredResourceMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSystemLabels() => clearField(1); @$pb.TagNumber(1) - $1.Struct ensureSystemLabels() => $_ensure(0); + $48.Struct ensureSystemLabels() => $_ensure(0); + /// Output only. A map of user-defined metadata labels. @$pb.TagNumber(2) $core.Map<$core.String, $core.String> get userLabels => $_getMap(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pbenum.dart index d504b540..c036a326 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/monitored_resource.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pbjson.dart index 678562a2..f51942b4 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitored_resource.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/monitored_resource.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 monitoredResourceDescriptorDescriptor instead') @@ -37,9 +41,13 @@ const MonitoredResourceDescriptor$json = { }; /// Descriptor for `MonitoredResourceDescriptor`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List monitoredResourceDescriptorDescriptor = - $convert.base64Decode( - 'ChtNb25pdG9yZWRSZXNvdXJjZURlc2NyaXB0b3ISEgoEbmFtZRgFIAEoCVIEbmFtZRISCgR0eXBlGAEgASgJUgR0eXBlEiEKDGRpc3BsYXlfbmFtZRgCIAEoCVILZGlzcGxheU5hbWUSIAoLZGVzY3JpcHRpb24YAyABKAlSC2Rlc2NyaXB0aW9uEjMKBmxhYmVscxgEIAMoCzIbLmdvb2dsZS5hcGkuTGFiZWxEZXNjcmlwdG9yUgZsYWJlbHMSOgoMbGF1bmNoX3N0YWdlGAcgASgOMhcuZ29vZ2xlLmFwaS5MYXVuY2hTdGFnZVILbGF1bmNoU3RhZ2U='); +final $typed_data.Uint8List monitoredResourceDescriptorDescriptor = $convert.base64Decode( + 'ChtNb25pdG9yZWRSZXNvdXJjZURlc2NyaXB0b3ISEgoEbmFtZRgFIAEoCVIEbmFtZRISCgR0eX' + 'BlGAEgASgJUgR0eXBlEiEKDGRpc3BsYXlfbmFtZRgCIAEoCVILZGlzcGxheU5hbWUSIAoLZGVz' + 'Y3JpcHRpb24YAyABKAlSC2Rlc2NyaXB0aW9uEjMKBmxhYmVscxgEIAMoCzIbLmdvb2dsZS5hcG' + 'kuTGFiZWxEZXNjcmlwdG9yUgZsYWJlbHMSOgoMbGF1bmNoX3N0YWdlGAcgASgOMhcuZ29vZ2xl' + 'LmFwaS5MYXVuY2hTdGFnZVILbGF1bmNoU3RhZ2U='); + @$core.Deprecated('Use monitoredResourceDescriptor instead') const MonitoredResource$json = { '1': 'MonitoredResource', @@ -69,7 +77,10 @@ const MonitoredResource_LabelsEntry$json = { /// Descriptor for `MonitoredResource`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List monitoredResourceDescriptor = $convert.base64Decode( - 'ChFNb25pdG9yZWRSZXNvdXJjZRISCgR0eXBlGAEgASgJUgR0eXBlEkEKBmxhYmVscxgCIAMoCzIpLmdvb2dsZS5hcGkuTW9uaXRvcmVkUmVzb3VyY2UuTGFiZWxzRW50cnlSBmxhYmVscxo5CgtMYWJlbHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); + 'ChFNb25pdG9yZWRSZXNvdXJjZRISCgR0eXBlGAEgASgJUgR0eXBlEkEKBmxhYmVscxgCIAMoCz' + 'IpLmdvb2dsZS5hcGkuTW9uaXRvcmVkUmVzb3VyY2UuTGFiZWxzRW50cnlSBmxhYmVscxo5CgtM' + 'YWJlbHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); + @$core.Deprecated('Use monitoredResourceMetadataDescriptor instead') const MonitoredResourceMetadata$json = { '1': 'MonitoredResourceMetadata', @@ -105,6 +116,9 @@ const MonitoredResourceMetadata_UserLabelsEntry$json = { }; /// Descriptor for `MonitoredResourceMetadata`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List monitoredResourceMetadataDescriptor = - $convert.base64Decode( - 'ChlNb25pdG9yZWRSZXNvdXJjZU1ldGFkYXRhEjwKDXN5c3RlbV9sYWJlbHMYASABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0UgxzeXN0ZW1MYWJlbHMSVgoLdXNlcl9sYWJlbHMYAiADKAsyNS5nb29nbGUuYXBpLk1vbml0b3JlZFJlc291cmNlTWV0YWRhdGEuVXNlckxhYmVsc0VudHJ5Ugp1c2VyTGFiZWxzGj0KD1VzZXJMYWJlbHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); +final $typed_data.Uint8List monitoredResourceMetadataDescriptor = $convert.base64Decode( + 'ChlNb25pdG9yZWRSZXNvdXJjZU1ldGFkYXRhEjwKDXN5c3RlbV9sYWJlbHMYASABKAsyFy5nb2' + '9nbGUucHJvdG9idWYuU3RydWN0UgxzeXN0ZW1MYWJlbHMSVgoLdXNlcl9sYWJlbHMYAiADKAsy' + 'NS5nb29nbGUuYXBpLk1vbml0b3JlZFJlc291cmNlTWV0YWRhdGEuVXNlckxhYmVsc0VudHJ5Ug' + 'p1c2VyTGFiZWxzGj0KD1VzZXJMYWJlbHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1' + 'ZRgCIAEoCVIFdmFsdWU6AjgB'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pb.dart index 1cb66dcf..60a48369 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pb.dart @@ -1,56 +1,50 @@ -/// +// // Generated code. Do not modify. // source: google/api/monitoring.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Configuration of a specific monitoring destination (the producer project +/// or the consumer project). class Monitoring_MonitoringDestination extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Monitoring.MonitoringDestination', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'monitoredResource') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metrics') - ..hasRequiredFields = false; - - Monitoring_MonitoringDestination._() : super(); factory Monitoring_MonitoringDestination({ $core.String? monitoredResource, $core.Iterable<$core.String>? metrics, }) { - final _result = create(); + final $result = create(); if (monitoredResource != null) { - _result.monitoredResource = monitoredResource; + $result.monitoredResource = monitoredResource; } if (metrics != null) { - _result.metrics.addAll(metrics); + $result.metrics.addAll(metrics); } - return _result; + return $result; } + Monitoring_MonitoringDestination._() : super(); factory Monitoring_MonitoringDestination.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Monitoring_MonitoringDestination.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Monitoring.MonitoringDestination', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'monitoredResource') + ..pPS(2, _omitFieldNames ? '' : 'metrics') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -63,8 +57,10 @@ class Monitoring_MonitoringDestination extends $pb.GeneratedMessage { void Function(Monitoring_MonitoringDestination) updates) => super.copyWith( (message) => updates(message as Monitoring_MonitoringDestination)) - as Monitoring_MonitoringDestination; // ignore: deprecated_member_use + as Monitoring_MonitoringDestination; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Monitoring_MonitoringDestination create() => Monitoring_MonitoringDestination._(); @@ -77,6 +73,9 @@ class Monitoring_MonitoringDestination extends $pb.GeneratedMessage { create); static Monitoring_MonitoringDestination? _defaultInstance; + /// The monitored resource type. The type must be defined in + /// [Service.monitored_resources][google.api.Service.monitored_resources] + /// section. @$pb.TagNumber(1) $core.String get monitoredResource => $_getSZ(0); @$pb.TagNumber(1) @@ -89,52 +88,99 @@ class Monitoring_MonitoringDestination extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMonitoredResource() => clearField(1); + /// Types of the metrics to report to this monitoring destination. + /// Each type must be defined in + /// [Service.metrics][google.api.Service.metrics] section. @$pb.TagNumber(2) $core.List<$core.String> get metrics => $_getList(1); } +/// Monitoring configuration of the service. +/// +/// The example below shows how to configure monitored resources and metrics +/// for monitoring. In the example, a monitored resource and two metrics are +/// defined. The `library.googleapis.com/book/returned_count` metric is sent +/// to both producer and consumer projects, whereas the +/// `library.googleapis.com/book/num_overdue` metric is only sent to the +/// consumer project. +/// +/// monitored_resources: +/// - type: library.googleapis.com/Branch +/// display_name: "Library Branch" +/// description: "A branch of a library." +/// launch_stage: GA +/// labels: +/// - key: resource_container +/// description: "The Cloud container (ie. project id) for the Branch." +/// - key: location +/// description: "The location of the library branch." +/// - key: branch_id +/// description: "The id of the branch." +/// metrics: +/// - name: library.googleapis.com/book/returned_count +/// display_name: "Books Returned" +/// description: "The count of books that have been returned." +/// launch_stage: GA +/// metric_kind: DELTA +/// value_type: INT64 +/// unit: "1" +/// labels: +/// - key: customer_id +/// description: "The id of the customer." +/// - name: library.googleapis.com/book/num_overdue +/// display_name: "Books Overdue" +/// description: "The current number of overdue books." +/// launch_stage: GA +/// metric_kind: GAUGE +/// value_type: INT64 +/// unit: "1" +/// labels: +/// - key: customer_id +/// description: "The id of the customer." +/// monitoring: +/// producer_destinations: +/// - monitored_resource: library.googleapis.com/Branch +/// metrics: +/// - library.googleapis.com/book/returned_count +/// consumer_destinations: +/// - monitored_resource: library.googleapis.com/Branch +/// metrics: +/// - library.googleapis.com/book/returned_count +/// - library.googleapis.com/book/num_overdue class Monitoring extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = - $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Monitoring', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'producerDestinations', - $pb.PbFieldType.PM, - subBuilder: Monitoring_MonitoringDestination.create) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'consumerDestinations', - $pb.PbFieldType.PM, - subBuilder: Monitoring_MonitoringDestination.create) - ..hasRequiredFields = false; - - Monitoring._() : super(); factory Monitoring({ $core.Iterable? producerDestinations, $core.Iterable? consumerDestinations, }) { - final _result = create(); + final $result = create(); if (producerDestinations != null) { - _result.producerDestinations.addAll(producerDestinations); + $result.producerDestinations.addAll(producerDestinations); } if (consumerDestinations != null) { - _result.consumerDestinations.addAll(consumerDestinations); + $result.consumerDestinations.addAll(consumerDestinations); } - return _result; + return $result; } + Monitoring._() : super(); factory Monitoring.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Monitoring.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Monitoring', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'producerDestinations', $pb.PbFieldType.PM, + subBuilder: Monitoring_MonitoringDestination.create) + ..pc( + 2, _omitFieldNames ? '' : 'consumerDestinations', $pb.PbFieldType.PM, + subBuilder: Monitoring_MonitoringDestination.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') @@ -143,9 +189,10 @@ class Monitoring extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Monitoring copyWith(void Function(Monitoring) updates) => - super.copyWith((message) => updates(message as Monitoring)) - as Monitoring; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Monitoring)) as Monitoring; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Monitoring create() => Monitoring._(); Monitoring createEmptyInstance() => create(); @@ -155,11 +202,27 @@ class Monitoring extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Monitoring? _defaultInstance; + /// Monitoring configurations for sending metrics to the producer project. + /// There can be multiple producer destinations. A monitored resource type may + /// appear in multiple monitoring destinations if different aggregations are + /// needed for different sets of metrics associated with that monitored + /// resource type. A monitored resource and metric pair may only be used once + /// in the Monitoring configuration. @$pb.TagNumber(1) $core.List get producerDestinations => $_getList(0); + /// Monitoring configurations for sending metrics to the consumer project. + /// There can be multiple consumer destinations. A monitored resource type may + /// appear in multiple monitoring destinations if different aggregations are + /// needed for different sets of metrics associated with that monitored + /// resource type. A monitored resource and metric pair may only be used once + /// in the Monitoring configuration. @$pb.TagNumber(2) $core.List get consumerDestinations => $_getList(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pbenum.dart index 1bf7a117..8e486418 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/monitoring.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pbjson.dart index 428efc9f..2d86650d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/monitoring.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/monitoring.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 monitoringDescriptor instead') @@ -50,4 +54,9 @@ const Monitoring_MonitoringDestination$json = { /// Descriptor for `Monitoring`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List monitoringDescriptor = $convert.base64Decode( - 'CgpNb25pdG9yaW5nEmEKFXByb2R1Y2VyX2Rlc3RpbmF0aW9ucxgBIAMoCzIsLmdvb2dsZS5hcGkuTW9uaXRvcmluZy5Nb25pdG9yaW5nRGVzdGluYXRpb25SFHByb2R1Y2VyRGVzdGluYXRpb25zEmEKFWNvbnN1bWVyX2Rlc3RpbmF0aW9ucxgCIAMoCzIsLmdvb2dsZS5hcGkuTW9uaXRvcmluZy5Nb25pdG9yaW5nRGVzdGluYXRpb25SFGNvbnN1bWVyRGVzdGluYXRpb25zGmAKFU1vbml0b3JpbmdEZXN0aW5hdGlvbhItChJtb25pdG9yZWRfcmVzb3VyY2UYASABKAlSEW1vbml0b3JlZFJlc291cmNlEhgKB21ldHJpY3MYAiADKAlSB21ldHJpY3M='); + 'CgpNb25pdG9yaW5nEmEKFXByb2R1Y2VyX2Rlc3RpbmF0aW9ucxgBIAMoCzIsLmdvb2dsZS5hcG' + 'kuTW9uaXRvcmluZy5Nb25pdG9yaW5nRGVzdGluYXRpb25SFHByb2R1Y2VyRGVzdGluYXRpb25z' + 'EmEKFWNvbnN1bWVyX2Rlc3RpbmF0aW9ucxgCIAMoCzIsLmdvb2dsZS5hcGkuTW9uaXRvcmluZy' + '5Nb25pdG9yaW5nRGVzdGluYXRpb25SFGNvbnN1bWVyRGVzdGluYXRpb25zGmAKFU1vbml0b3Jp' + 'bmdEZXN0aW5hdGlvbhItChJtb25pdG9yZWRfcmVzb3VyY2UYASABKAlSEW1vbml0b3JlZFJlc2' + '91cmNlEhgKB21ldHJpY3MYAiADKAlSB21ldHJpY3M='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/policy.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/policy.pb.dart new file mode 100644 index 00000000..fdce6fcf --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/policy.pb.dart @@ -0,0 +1,237 @@ +// +// Generated code. Do not modify. +// source: google/api/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; + +/// Google API Policy Annotation +/// +/// This message defines a simple API policy annotation that can be used to +/// annotate API request and response message fields with applicable policies. +/// One field may have multiple applicable policies that must all be satisfied +/// before a request can be processed. This policy annotation is used to +/// generate the overall policy that will be used for automatic runtime +/// policy enforcement and documentation generation. +class FieldPolicy extends $pb.GeneratedMessage { + factory FieldPolicy({ + $core.String? selector, + $core.String? resourcePermission, + $core.String? resourceType, + }) { + final $result = create(); + if (selector != null) { + $result.selector = selector; + } + if (resourcePermission != null) { + $result.resourcePermission = resourcePermission; + } + if (resourceType != null) { + $result.resourceType = resourceType; + } + return $result; + } + FieldPolicy._() : super(); + factory FieldPolicy.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory FieldPolicy.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FieldPolicy', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..aOS(2, _omitFieldNames ? '' : 'resourcePermission') + ..aOS(3, _omitFieldNames ? '' : 'resourceType') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FieldPolicy clone() => FieldPolicy()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FieldPolicy copyWith(void Function(FieldPolicy) updates) => + super.copyWith((message) => updates(message as FieldPolicy)) + as FieldPolicy; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static FieldPolicy create() => FieldPolicy._(); + FieldPolicy createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FieldPolicy getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static FieldPolicy? _defaultInstance; + + /// Selects one or more request or response message fields to apply this + /// `FieldPolicy`. + /// + /// When a `FieldPolicy` is used in proto annotation, the selector must + /// be left as empty. The service config generator will automatically fill + /// the correct value. + /// + /// When a `FieldPolicy` is used in service config, the selector must be a + /// comma-separated string with valid request or response field paths, + /// such as "foo.bar" or "foo.bar,foo.baz". + @$pb.TagNumber(1) + $core.String get selector => $_getSZ(0); + @$pb.TagNumber(1) + set selector($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasSelector() => $_has(0); + @$pb.TagNumber(1) + void clearSelector() => clearField(1); + + /// Specifies the required permission(s) for the resource referred to by the + /// field. It requires the field contains a valid resource reference, and + /// the request must pass the permission checks to proceed. For example, + /// "resourcemanager.projects.get". + @$pb.TagNumber(2) + $core.String get resourcePermission => $_getSZ(1); + @$pb.TagNumber(2) + set resourcePermission($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasResourcePermission() => $_has(1); + @$pb.TagNumber(2) + void clearResourcePermission() => clearField(2); + + /// Specifies the resource type for the resource referred to by the field. + @$pb.TagNumber(3) + $core.String get resourceType => $_getSZ(2); + @$pb.TagNumber(3) + set resourceType($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasResourceType() => $_has(2); + @$pb.TagNumber(3) + void clearResourceType() => clearField(3); +} + +/// Defines policies applying to an RPC method. +class MethodPolicy extends $pb.GeneratedMessage { + factory MethodPolicy({ + $core.Iterable? requestPolicies, + $core.String? selector, + }) { + final $result = create(); + if (requestPolicies != null) { + $result.requestPolicies.addAll(requestPolicies); + } + if (selector != null) { + $result.selector = selector; + } + return $result; + } + MethodPolicy._() : super(); + factory MethodPolicy.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory MethodPolicy.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MethodPolicy', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc( + 2, _omitFieldNames ? '' : 'requestPolicies', $pb.PbFieldType.PM, + subBuilder: FieldPolicy.create) + ..aOS(9, _omitFieldNames ? '' : 'selector') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MethodPolicy clone() => MethodPolicy()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MethodPolicy copyWith(void Function(MethodPolicy) updates) => + super.copyWith((message) => updates(message as MethodPolicy)) + as MethodPolicy; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static MethodPolicy create() => MethodPolicy._(); + MethodPolicy createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static MethodPolicy getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static MethodPolicy? _defaultInstance; + + /// Policies that are applicable to the request message. + @$pb.TagNumber(2) + $core.List get requestPolicies => $_getList(0); + + /// Selects a method to which these policies should be enforced, for example, + /// "google.pubsub.v1.Subscriber.CreateSubscription". + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. + /// + /// NOTE: This field must not be set in the proto annotation. It will be + /// automatically filled by the service config compiler . + @$pb.TagNumber(9) + $core.String get selector => $_getSZ(1); + @$pb.TagNumber(9) + set selector($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(9) + $core.bool hasSelector() => $_has(1); + @$pb.TagNumber(9) + void clearSelector() => clearField(9); +} + +class Policy { + static final fieldPolicy = $pb.Extension( + _omitMessageNames ? '' : 'google.protobuf.FieldOptions', + _omitFieldNames ? '' : 'fieldPolicy', + 158361448, + $pb.PbFieldType.OM, + defaultOrMaker: FieldPolicy.getDefault, + subBuilder: FieldPolicy.create); + static final methodPolicy = $pb.Extension( + _omitMessageNames ? '' : 'google.protobuf.MethodOptions', + _omitFieldNames ? '' : 'methodPolicy', + 161893301, + $pb.PbFieldType.OM, + defaultOrMaker: MethodPolicy.getDefault, + subBuilder: MethodPolicy.create); + static void registerAllExtensions($pb.ExtensionRegistry registry) { + registry.add(fieldPolicy); + registry.add(methodPolicy); + } +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/policy.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/policy.pbenum.dart new file mode 100644 index 00000000..93cfedb9 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/policy.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/api/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/policy.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/policy.pbjson.dart new file mode 100644 index 00000000..5860e0f1 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/policy.pbjson.dart @@ -0,0 +1,57 @@ +// +// Generated code. Do not modify. +// source: google/api/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 fieldPolicyDescriptor instead') +const FieldPolicy$json = { + '1': 'FieldPolicy', + '2': [ + {'1': 'selector', '3': 1, '4': 1, '5': 9, '10': 'selector'}, + { + '1': 'resource_permission', + '3': 2, + '4': 1, + '5': 9, + '10': 'resourcePermission' + }, + {'1': 'resource_type', '3': 3, '4': 1, '5': 9, '10': 'resourceType'}, + ], +}; + +/// Descriptor for `FieldPolicy`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List fieldPolicyDescriptor = $convert.base64Decode( + 'CgtGaWVsZFBvbGljeRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISLwoTcmVzb3VyY2VfcG' + 'VybWlzc2lvbhgCIAEoCVIScmVzb3VyY2VQZXJtaXNzaW9uEiMKDXJlc291cmNlX3R5cGUYAyAB' + 'KAlSDHJlc291cmNlVHlwZQ=='); + +@$core.Deprecated('Use methodPolicyDescriptor instead') +const MethodPolicy$json = { + '1': 'MethodPolicy', + '2': [ + {'1': 'selector', '3': 9, '4': 1, '5': 9, '10': 'selector'}, + { + '1': 'request_policies', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.api.FieldPolicy', + '10': 'requestPolicies' + }, + ], +}; + +/// Descriptor for `MethodPolicy`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List methodPolicyDescriptor = $convert.base64Decode( + 'CgxNZXRob2RQb2xpY3kSGgoIc2VsZWN0b3IYCSABKAlSCHNlbGVjdG9yEkIKEHJlcXVlc3RfcG' + '9saWNpZXMYAiADKAsyFy5nb29nbGUuYXBpLkZpZWxkUG9saWN5Ug9yZXF1ZXN0UG9saWNpZXM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pb.dart index f045ab09..14157680 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pb.dart @@ -1,57 +1,101 @@ -/// +// // Generated code. Do not modify. // source: google/api/quota.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; +/// Quota configuration helps to achieve fairness and budgeting in service +/// usage. +/// +/// The metric based quota configuration works this way: +/// - The service configuration defines a set of metrics. +/// - For API calls, the quota.metric_rules maps methods to metrics with +/// corresponding costs. +/// - The quota.limits defines limits on the metrics, which will be used for +/// quota checks at runtime. +/// +/// An example quota configuration in yaml format: +/// +/// quota: +/// limits: +/// +/// - name: apiWriteQpsPerProject +/// metric: library.googleapis.com/write_calls +/// unit: "1/min/{project}" # rate limit for consumer projects +/// values: +/// STANDARD: 10000 +/// +/// +/// (The metric rules bind all methods to the read_calls metric, +/// except for the UpdateBook and DeleteBook methods. These two methods +/// are mapped to the write_calls metric, with the UpdateBook method +/// consuming at twice rate as the DeleteBook method.) +/// metric_rules: +/// - selector: "*" +/// metric_costs: +/// library.googleapis.com/read_calls: 1 +/// - selector: google.example.library.v1.LibraryService.UpdateBook +/// metric_costs: +/// library.googleapis.com/write_calls: 2 +/// - selector: google.example.library.v1.LibraryService.DeleteBook +/// metric_costs: +/// library.googleapis.com/write_calls: 1 +/// +/// Corresponding Metric definition: +/// +/// metrics: +/// - name: library.googleapis.com/read_calls +/// display_name: Read requests +/// metric_kind: DELTA +/// value_type: INT64 +/// +/// - name: library.googleapis.com/write_calls +/// display_name: Write requests +/// metric_kind: DELTA +/// value_type: INT64 class Quota extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Quota', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'limits', $pb.PbFieldType.PM, - subBuilder: QuotaLimit.create) - ..pc( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metricRules', - $pb.PbFieldType.PM, - subBuilder: MetricRule.create) - ..hasRequiredFields = false; - - Quota._() : super(); factory Quota({ $core.Iterable? limits, $core.Iterable? metricRules, }) { - final _result = create(); + final $result = create(); if (limits != null) { - _result.limits.addAll(limits); + $result.limits.addAll(limits); } if (metricRules != null) { - _result.metricRules.addAll(metricRules); + $result.metricRules.addAll(metricRules); } - return _result; + return $result; } + Quota._() : super(); factory Quota.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Quota.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Quota', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc(3, _omitFieldNames ? '' : 'limits', $pb.PbFieldType.PM, + subBuilder: QuotaLimit.create) + ..pc( + 4, _omitFieldNames ? '' : 'metricRules', $pb.PbFieldType.PM, + subBuilder: MetricRule.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') @@ -60,9 +104,10 @@ class Quota extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Quota copyWith(void Function(Quota) updates) => - super.copyWith((message) => updates(message as Quota)) - as Quota; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Quota)) as Quota; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Quota create() => Quota._(); Quota createEmptyInstance() => create(); @@ -72,59 +117,52 @@ class Quota extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Quota? _defaultInstance; + /// List of QuotaLimit definitions for the service. @$pb.TagNumber(3) $core.List get limits => $_getList(0); + /// List of MetricRule definitions, each one mapping a selected method to one + /// or more metrics. @$pb.TagNumber(4) $core.List get metricRules => $_getList(1); } +/// Bind API methods to metrics. Binding a method to a metric causes that +/// metric's configured quota behaviors to apply to the method call. class MetricRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MetricRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'selector') - ..m<$core.String, $fixnum.Int64>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metricCosts', - entryClassName: 'MetricRule.MetricCostsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.O6, - packageName: const $pb.PackageName('google.api')) - ..hasRequiredFields = false; - - MetricRule._() : super(); factory MetricRule({ $core.String? selector, $core.Map<$core.String, $fixnum.Int64>? metricCosts, }) { - final _result = create(); + final $result = create(); if (selector != null) { - _result.selector = selector; + $result.selector = selector; } if (metricCosts != null) { - _result.metricCosts.addAll(metricCosts); + $result.metricCosts.addAll(metricCosts); } - return _result; + return $result; } + MetricRule._() : super(); factory MetricRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MetricRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MetricRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..m<$core.String, $fixnum.Int64>(2, _omitFieldNames ? '' : 'metricCosts', + entryClassName: 'MetricRule.MetricCostsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.O6, + packageName: const $pb.PackageName('google.api')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -133,9 +171,10 @@ class MetricRule extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') MetricRule copyWith(void Function(MetricRule) updates) => - super.copyWith((message) => updates(message as MetricRule)) - as MetricRule; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as MetricRule)) as MetricRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MetricRule create() => MetricRule._(); MetricRule createEmptyInstance() => create(); @@ -145,6 +184,10 @@ class MetricRule extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MetricRule? _defaultInstance; + /// Selects the methods to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. @$pb.TagNumber(1) $core.String get selector => $_getSZ(0); @$pb.TagNumber(1) @@ -157,46 +200,20 @@ class MetricRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSelector() => clearField(1); + /// Metrics to update when the selected methods are called, and the associated + /// cost applied to each metric. + /// + /// The key of the map is the metric name, and the values are the amount + /// increased for the metric against which the quota limits are defined. + /// The value must not be negative. @$pb.TagNumber(2) $core.Map<$core.String, $fixnum.Int64> get metricCosts => $_getMap(1); } +/// `QuotaLimit` defines a specific limit that applies over a specified duration +/// for a limit type. There can be at most one limit for a duration and limit +/// type combination defined within a `QuotaGroup`. class QuotaLimit extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QuotaLimit', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..aInt64( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'defaultLimit') - ..aInt64( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'maxLimit') - ..aOS(5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'duration') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') - ..aInt64(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'freeTier') - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metric') - ..aOS(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unit') - ..m<$core.String, $fixnum.Int64>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'values', entryClassName: 'QuotaLimit.ValuesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.O6, packageName: const $pb.PackageName('google.api')) - ..aOS(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'displayName') - ..hasRequiredFields = false; - - QuotaLimit._() : super(); factory QuotaLimit({ $core.String? description, $fixnum.Int64? defaultLimit, @@ -209,45 +226,67 @@ class QuotaLimit extends $pb.GeneratedMessage { $core.Map<$core.String, $fixnum.Int64>? values, $core.String? displayName, }) { - final _result = create(); + final $result = create(); if (description != null) { - _result.description = description; + $result.description = description; } if (defaultLimit != null) { - _result.defaultLimit = defaultLimit; + $result.defaultLimit = defaultLimit; } if (maxLimit != null) { - _result.maxLimit = maxLimit; + $result.maxLimit = maxLimit; } if (duration != null) { - _result.duration = duration; + $result.duration = duration; } if (name != null) { - _result.name = name; + $result.name = name; } if (freeTier != null) { - _result.freeTier = freeTier; + $result.freeTier = freeTier; } if (metric != null) { - _result.metric = metric; + $result.metric = metric; } if (unit != null) { - _result.unit = unit; + $result.unit = unit; } if (values != null) { - _result.values.addAll(values); + $result.values.addAll(values); } if (displayName != null) { - _result.displayName = displayName; + $result.displayName = displayName; } - return _result; + return $result; } + QuotaLimit._() : super(); factory QuotaLimit.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QuotaLimit.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QuotaLimit', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'description') + ..aInt64(3, _omitFieldNames ? '' : 'defaultLimit') + ..aInt64(4, _omitFieldNames ? '' : 'maxLimit') + ..aOS(5, _omitFieldNames ? '' : 'duration') + ..aOS(6, _omitFieldNames ? '' : 'name') + ..aInt64(7, _omitFieldNames ? '' : 'freeTier') + ..aOS(8, _omitFieldNames ? '' : 'metric') + ..aOS(9, _omitFieldNames ? '' : 'unit') + ..m<$core.String, $fixnum.Int64>(10, _omitFieldNames ? '' : 'values', + entryClassName: 'QuotaLimit.ValuesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.O6, + packageName: const $pb.PackageName('google.api')) + ..aOS(12, _omitFieldNames ? '' : 'displayName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -256,9 +295,10 @@ class QuotaLimit extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') QuotaLimit copyWith(void Function(QuotaLimit) updates) => - super.copyWith((message) => updates(message as QuotaLimit)) - as QuotaLimit; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as QuotaLimit)) as QuotaLimit; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QuotaLimit create() => QuotaLimit._(); QuotaLimit createEmptyInstance() => create(); @@ -268,6 +308,9 @@ class QuotaLimit extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QuotaLimit? _defaultInstance; + /// Optional. User-visible, extended description for this quota limit. + /// Should be used only when more context is needed to understand this limit + /// than provided by the limit's display name (see: `display_name`). @$pb.TagNumber(2) $core.String get description => $_getSZ(0); @$pb.TagNumber(2) @@ -280,6 +323,16 @@ class QuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDescription() => clearField(2); + /// Default number of tokens that can be consumed during the specified + /// duration. This is the number of tokens assigned when a client + /// application developer activates the service for his/her project. + /// + /// Specifying a value of 0 will block all requests. This can be used if you + /// are provisioning quota to selected consumers and blocking others. + /// Similarly, a value of -1 will indicate an unlimited quota. No other + /// negative values are allowed. + /// + /// Used by group-based quotas only. @$pb.TagNumber(3) $fixnum.Int64 get defaultLimit => $_getI64(1); @$pb.TagNumber(3) @@ -292,6 +345,15 @@ class QuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDefaultLimit() => clearField(3); + /// Maximum number of tokens that can be consumed during the specified + /// duration. Client application developers can override the default limit up + /// to this maximum. If specified, this value cannot be set to a value less + /// than the default limit. If not specified, it is set to the default limit. + /// + /// To allow clients to apply overrides with no upper bound, set this to -1, + /// indicating unlimited maximum quota. + /// + /// Used by group-based quotas only. @$pb.TagNumber(4) $fixnum.Int64 get maxLimit => $_getI64(2); @$pb.TagNumber(4) @@ -304,6 +366,9 @@ class QuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearMaxLimit() => clearField(4); + /// Duration of this limit in textual notation. Must be "100s" or "1d". + /// + /// Used by group-based quotas only. @$pb.TagNumber(5) $core.String get duration => $_getSZ(3); @$pb.TagNumber(5) @@ -316,6 +381,12 @@ class QuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearDuration() => clearField(5); + /// Name of the quota limit. + /// + /// The name must be provided, and it must be unique within the service. The + /// name can only include alphanumeric characters as well as '-'. + /// + /// The maximum length of the limit name is 64 characters. @$pb.TagNumber(6) $core.String get name => $_getSZ(4); @$pb.TagNumber(6) @@ -328,6 +399,14 @@ class QuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearName() => clearField(6); + /// Free tier value displayed in the Developers Console for this limit. + /// The free tier is the number of tokens that will be subtracted from the + /// billed amount when billing is enabled. + /// This field can only be set on a limit with duration "1d", in a billable + /// group; it is invalid on any other limit. If this field is not set, it + /// defaults to 0, indicating that there is no free tier for this service. + /// + /// Used by group-based quotas only. @$pb.TagNumber(7) $fixnum.Int64 get freeTier => $_getI64(5); @$pb.TagNumber(7) @@ -340,6 +419,9 @@ class QuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearFreeTier() => clearField(7); + /// The name of the metric this quota limit applies to. The quota limits with + /// the same metric will be checked together during runtime. The metric must be + /// defined within the service config. @$pb.TagNumber(8) $core.String get metric => $_getSZ(6); @$pb.TagNumber(8) @@ -352,6 +434,15 @@ class QuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearMetric() => clearField(8); + /// Specify the unit of the quota limit. It uses the same syntax as + /// [Metric.unit][]. The supported unit kinds are determined by the quota + /// backend system. + /// + /// Here are some examples: + /// * "1/min/{project}" for quota per minute per project. + /// + /// Note: the order of unit components is insignificant. + /// The "1" at the beginning is required to follow the metric unit syntax. @$pb.TagNumber(9) $core.String get unit => $_getSZ(7); @$pb.TagNumber(9) @@ -364,9 +455,16 @@ class QuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearUnit() => clearField(9); + /// Tiered limit values. You must specify this as a key:value pair, with an + /// integer value that is the maximum number of requests allowed for the + /// specified unit. Currently only STANDARD is supported. @$pb.TagNumber(10) $core.Map<$core.String, $fixnum.Int64> get values => $_getMap(8); + /// User-visible display name for this limit. + /// Optional. If not set, the UI will provide a default display name based on + /// the quota configuration. This field can be used to override the default + /// display name generated from the configuration. @$pb.TagNumber(12) $core.String get displayName => $_getSZ(9); @$pb.TagNumber(12) @@ -379,3 +477,7 @@ class QuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearDisplayName() => clearField(12); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pbenum.dart index ea4a5e43..571a4459 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/quota.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pbjson.dart index 07085300..985ec625 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/quota.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/quota.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 quotaDescriptor instead') @@ -34,7 +38,10 @@ const Quota$json = { /// Descriptor for `Quota`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List quotaDescriptor = $convert.base64Decode( - 'CgVRdW90YRIuCgZsaW1pdHMYAyADKAsyFi5nb29nbGUuYXBpLlF1b3RhTGltaXRSBmxpbWl0cxI5CgxtZXRyaWNfcnVsZXMYBCADKAsyFi5nb29nbGUuYXBpLk1ldHJpY1J1bGVSC21ldHJpY1J1bGVz'); + 'CgVRdW90YRIuCgZsaW1pdHMYAyADKAsyFi5nb29nbGUuYXBpLlF1b3RhTGltaXRSBmxpbWl0cx' + 'I5CgxtZXRyaWNfcnVsZXMYBCADKAsyFi5nb29nbGUuYXBpLk1ldHJpY1J1bGVSC21ldHJpY1J1' + 'bGVz'); + @$core.Deprecated('Use metricRuleDescriptor instead') const MetricRule$json = { '1': 'MetricRule', @@ -64,7 +71,11 @@ const MetricRule_MetricCostsEntry$json = { /// Descriptor for `MetricRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List metricRuleDescriptor = $convert.base64Decode( - 'CgpNZXRyaWNSdWxlEhoKCHNlbGVjdG9yGAEgASgJUghzZWxlY3RvchJKCgxtZXRyaWNfY29zdHMYAiADKAsyJy5nb29nbGUuYXBpLk1ldHJpY1J1bGUuTWV0cmljQ29zdHNFbnRyeVILbWV0cmljQ29zdHMaPgoQTWV0cmljQ29zdHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoA1IFdmFsdWU6AjgB'); + 'CgpNZXRyaWNSdWxlEhoKCHNlbGVjdG9yGAEgASgJUghzZWxlY3RvchJKCgxtZXRyaWNfY29zdH' + 'MYAiADKAsyJy5nb29nbGUuYXBpLk1ldHJpY1J1bGUuTWV0cmljQ29zdHNFbnRyeVILbWV0cmlj' + 'Q29zdHMaPgoQTWV0cmljQ29zdHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIA' + 'EoA1IFdmFsdWU6AjgB'); + @$core.Deprecated('Use quotaLimitDescriptor instead') const QuotaLimit$json = { '1': 'QuotaLimit', @@ -102,4 +113,10 @@ const QuotaLimit_ValuesEntry$json = { /// Descriptor for `QuotaLimit`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List quotaLimitDescriptor = $convert.base64Decode( - 'CgpRdW90YUxpbWl0EhIKBG5hbWUYBiABKAlSBG5hbWUSIAoLZGVzY3JpcHRpb24YAiABKAlSC2Rlc2NyaXB0aW9uEiMKDWRlZmF1bHRfbGltaXQYAyABKANSDGRlZmF1bHRMaW1pdBIbCgltYXhfbGltaXQYBCABKANSCG1heExpbWl0EhsKCWZyZWVfdGllchgHIAEoA1IIZnJlZVRpZXISGgoIZHVyYXRpb24YBSABKAlSCGR1cmF0aW9uEhYKBm1ldHJpYxgIIAEoCVIGbWV0cmljEhIKBHVuaXQYCSABKAlSBHVuaXQSOgoGdmFsdWVzGAogAygLMiIuZ29vZ2xlLmFwaS5RdW90YUxpbWl0LlZhbHVlc0VudHJ5UgZ2YWx1ZXMSIQoMZGlzcGxheV9uYW1lGAwgASgJUgtkaXNwbGF5TmFtZRo5CgtWYWx1ZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoA1IFdmFsdWU6AjgB'); + 'CgpRdW90YUxpbWl0EhIKBG5hbWUYBiABKAlSBG5hbWUSIAoLZGVzY3JpcHRpb24YAiABKAlSC2' + 'Rlc2NyaXB0aW9uEiMKDWRlZmF1bHRfbGltaXQYAyABKANSDGRlZmF1bHRMaW1pdBIbCgltYXhf' + 'bGltaXQYBCABKANSCG1heExpbWl0EhsKCWZyZWVfdGllchgHIAEoA1IIZnJlZVRpZXISGgoIZH' + 'VyYXRpb24YBSABKAlSCGR1cmF0aW9uEhYKBm1ldHJpYxgIIAEoCVIGbWV0cmljEhIKBHVuaXQY' + 'CSABKAlSBHVuaXQSOgoGdmFsdWVzGAogAygLMiIuZ29vZ2xlLmFwaS5RdW90YUxpbWl0LlZhbH' + 'Vlc0VudHJ5UgZ2YWx1ZXMSIQoMZGlzcGxheV9uYW1lGAwgASgJUgtkaXNwbGF5TmFtZRo5CgtW' + 'YWx1ZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoA1IFdmFsdWU6AjgB'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pb.dart index cd1bbea2..3292cae3 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/api/resource.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,43 +17,54 @@ import 'resource.pbenum.dart'; export 'resource.pbenum.dart'; +/// A simple descriptor of a resource type. +/// +/// ResourceDescriptor annotates a resource message (either by means of a +/// protobuf annotation or use in the service config), and associates the +/// resource's schema, the resource type, and the pattern of the resource name. +/// +/// Example: +/// +/// message Topic { +/// // Indicates this message defines a resource schema. +/// // Declares the resource type in the format of {service}/{kind}. +/// // For Kubernetes resources, the format is {api group}/{kind}. +/// option (google.api.resource) = { +/// type: "pubsub.googleapis.com/Topic" +/// pattern: "projects/{project}/topics/{topic}" +/// }; +/// } +/// +/// The ResourceDescriptor Yaml config will look like: +/// +/// resources: +/// - type: "pubsub.googleapis.com/Topic" +/// pattern: "projects/{project}/topics/{topic}" +/// +/// Sometimes, resources have multiple patterns, typically because they can +/// live under multiple parents. +/// +/// Example: +/// +/// message LogEntry { +/// option (google.api.resource) = { +/// type: "logging.googleapis.com/LogEntry" +/// pattern: "projects/{project}/logs/{log}" +/// pattern: "folders/{folder}/logs/{log}" +/// pattern: "organizations/{organization}/logs/{log}" +/// pattern: "billingAccounts/{billing_account}/logs/{log}" +/// }; +/// } +/// +/// The ResourceDescriptor Yaml config will look like: +/// +/// resources: +/// - type: 'logging.googleapis.com/LogEntry' +/// pattern: "projects/{project}/logs/{log}" +/// pattern: "folders/{folder}/logs/{log}" +/// pattern: "organizations/{organization}/logs/{log}" +/// pattern: "billingAccounts/{billing_account}/logs/{log}" class ResourceDescriptor extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ResourceDescriptor', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pattern') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nameField') - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'history', - $pb.PbFieldType.OE, - defaultOrMaker: ResourceDescriptor_History.HISTORY_UNSPECIFIED, - valueOf: ResourceDescriptor_History.valueOf, - enumValues: ResourceDescriptor_History.values) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'plural') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'singular') - ..pc(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'style', $pb.PbFieldType.PE, valueOf: ResourceDescriptor_Style.valueOf, enumValues: ResourceDescriptor_Style.values) - ..hasRequiredFields = false; - - ResourceDescriptor._() : super(); factory ResourceDescriptor({ $core.String? type, $core.Iterable<$core.String>? pattern, @@ -59,36 +74,59 @@ class ResourceDescriptor extends $pb.GeneratedMessage { $core.String? singular, $core.Iterable? style, }) { - final _result = create(); + final $result = create(); if (type != null) { - _result.type = type; + $result.type = type; } if (pattern != null) { - _result.pattern.addAll(pattern); + $result.pattern.addAll(pattern); } if (nameField != null) { - _result.nameField = nameField; + $result.nameField = nameField; } if (history != null) { - _result.history = history; + $result.history = history; } if (plural != null) { - _result.plural = plural; + $result.plural = plural; } if (singular != null) { - _result.singular = singular; + $result.singular = singular; } if (style != null) { - _result.style.addAll(style); + $result.style.addAll(style); } - return _result; + return $result; } + ResourceDescriptor._() : super(); factory ResourceDescriptor.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ResourceDescriptor.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ResourceDescriptor', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'type') + ..pPS(2, _omitFieldNames ? '' : 'pattern') + ..aOS(3, _omitFieldNames ? '' : 'nameField') + ..e( + 4, _omitFieldNames ? '' : 'history', $pb.PbFieldType.OE, + defaultOrMaker: ResourceDescriptor_History.HISTORY_UNSPECIFIED, + valueOf: ResourceDescriptor_History.valueOf, + enumValues: ResourceDescriptor_History.values) + ..aOS(5, _omitFieldNames ? '' : 'plural') + ..aOS(6, _omitFieldNames ? '' : 'singular') + ..pc( + 10, _omitFieldNames ? '' : 'style', $pb.PbFieldType.KE, + valueOf: ResourceDescriptor_Style.valueOf, + enumValues: ResourceDescriptor_Style.values, + defaultEnumValue: ResourceDescriptor_Style.STYLE_UNSPECIFIED) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -98,8 +136,10 @@ class ResourceDescriptor extends $pb.GeneratedMessage { 'Will be removed in next major version') ResourceDescriptor copyWith(void Function(ResourceDescriptor) updates) => super.copyWith((message) => updates(message as ResourceDescriptor)) - as ResourceDescriptor; // ignore: deprecated_member_use + as ResourceDescriptor; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ResourceDescriptor create() => ResourceDescriptor._(); ResourceDescriptor createEmptyInstance() => create(); @@ -110,6 +150,16 @@ class ResourceDescriptor extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ResourceDescriptor? _defaultInstance; + /// The resource type. It must be in the format of + /// {service_name}/{resource_type_kind}. The `resource_type_kind` must be + /// singular and must not include version numbers. + /// + /// Example: `storage.googleapis.com/Bucket` + /// + /// The value of the resource_type_kind must follow the regular expression + /// /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + /// should use PascalCase (UpperCamelCase). The maximum number of + /// characters allowed for the `resource_type_kind` is 100. @$pb.TagNumber(1) $core.String get type => $_getSZ(0); @$pb.TagNumber(1) @@ -122,9 +172,30 @@ class ResourceDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearType() => clearField(1); + /// Optional. The relative resource name pattern associated with this resource + /// type. The DNS prefix of the full resource name shouldn't be specified here. + /// + /// The path pattern must follow the syntax, which aligns with HTTP binding + /// syntax: + /// + /// Template = Segment { "/" Segment } ; + /// Segment = LITERAL | Variable ; + /// Variable = "{" LITERAL "}" ; + /// + /// Examples: + /// + /// - "projects/{project}/topics/{topic}" + /// - "projects/{project}/knowledgeBases/{knowledge_base}" + /// + /// The components in braces correspond to the IDs for each resource in the + /// hierarchy. It is expected that, if multiple patterns are provided, + /// the same component name (e.g. "project") refers to IDs of the same + /// type of resource. @$pb.TagNumber(2) $core.List<$core.String> get pattern => $_getList(1); + /// Optional. The field on the resource that designates the resource name + /// field. If omitted, this is assumed to be "name". @$pb.TagNumber(3) $core.String get nameField => $_getSZ(2); @$pb.TagNumber(3) @@ -137,6 +208,21 @@ class ResourceDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearNameField() => clearField(3); + /// Optional. The historical or future-looking state of the resource pattern. + /// + /// Example: + /// + /// // The InspectTemplate message originally only supported resource + /// // names with organization, and project was added later. + /// message InspectTemplate { + /// option (google.api.resource) = { + /// type: "dlp.googleapis.com/InspectTemplate" + /// pattern: + /// "organizations/{organization}/inspectTemplates/{inspect_template}" + /// pattern: "projects/{project}/inspectTemplates/{inspect_template}" + /// history: ORIGINALLY_SINGLE_PATTERN + /// }; + /// } @$pb.TagNumber(4) ResourceDescriptor_History get history => $_getN(3); @$pb.TagNumber(4) @@ -149,6 +235,19 @@ class ResourceDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearHistory() => clearField(4); + /// The plural name used in the resource name and permission names, such as + /// 'projects' for the resource name of 'projects/{project}' and the permission + /// name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + /// to this is for Nested Collections that have stuttering names, as defined + /// in [AIP-122](https://google.aip.dev/122#nested-collections), where the + /// collection ID in the resource name pattern does not necessarily directly + /// match the `plural` value. + /// + /// It is the same concept of the `plural` field in k8s CRD spec + /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + /// + /// Note: The plural form is required even for singleton resources. See + /// https://aip.dev/156 @$pb.TagNumber(5) $core.String get plural => $_getSZ(4); @$pb.TagNumber(5) @@ -161,6 +260,9 @@ class ResourceDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearPlural() => clearField(5); + /// The same concept of the `singular` field in k8s CRD spec + /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + /// Such as "project" for the `resourcemanager.googleapis.com/Project` type. @$pb.TagNumber(6) $core.String get singular => $_getSZ(5); @$pb.TagNumber(6) @@ -173,52 +275,45 @@ class ResourceDescriptor extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearSingular() => clearField(6); + /// Style flag(s) for this resource. + /// These indicate that a resource is expected to conform to a given + /// style. See the specific style flags for additional information. @$pb.TagNumber(10) $core.List get style => $_getList(6); } +/// Defines a proto annotation that describes a string field that refers to +/// an API resource. class ResourceReference extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ResourceReference', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'childType') - ..hasRequiredFields = false; - - ResourceReference._() : super(); factory ResourceReference({ $core.String? type, $core.String? childType, }) { - final _result = create(); + final $result = create(); if (type != null) { - _result.type = type; + $result.type = type; } if (childType != null) { - _result.childType = childType; + $result.childType = childType; } - return _result; + return $result; } + ResourceReference._() : super(); factory ResourceReference.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ResourceReference.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ResourceReference', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'type') + ..aOS(2, _omitFieldNames ? '' : 'childType') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -228,8 +323,10 @@ class ResourceReference extends $pb.GeneratedMessage { 'Will be removed in next major version') ResourceReference copyWith(void Function(ResourceReference) updates) => super.copyWith((message) => updates(message as ResourceReference)) - as ResourceReference; // ignore: deprecated_member_use + as ResourceReference; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ResourceReference create() => ResourceReference._(); ResourceReference createEmptyInstance() => create(); @@ -240,6 +337,26 @@ class ResourceReference extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ResourceReference? _defaultInstance; + /// The resource type that the annotated field references. + /// + /// Example: + /// + /// message Subscription { + /// string topic = 2 [(google.api.resource_reference) = { + /// type: "pubsub.googleapis.com/Topic" + /// }]; + /// } + /// + /// Occasionally, a field may reference an arbitrary resource. In this case, + /// APIs use the special value * in their resource reference. + /// + /// Example: + /// + /// message GetIamPolicyRequest { + /// string resource = 2 [(google.api.resource_reference) = { + /// type: "*" + /// }]; + /// } @$pb.TagNumber(1) $core.String get type => $_getSZ(0); @$pb.TagNumber(1) @@ -252,6 +369,17 @@ class ResourceReference extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearType() => clearField(1); + /// The resource type of a child collection that the annotated field + /// references. This is useful for annotating the `parent` field that + /// doesn't have a fixed resource type. + /// + /// Example: + /// + /// message ListLogEntriesRequest { + /// string parent = 1 [(google.api.resource_reference) = { + /// child_type: "logging.googleapis.com/LogEntry" + /// }; + /// } @$pb.TagNumber(2) $core.String get childType => $_getSZ(1); @$pb.TagNumber(2) @@ -267,34 +395,22 @@ class ResourceReference extends $pb.GeneratedMessage { class Resource { static final resourceReference = $pb.Extension( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.FieldOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resourceReference', + _omitMessageNames ? '' : 'google.protobuf.FieldOptions', + _omitFieldNames ? '' : 'resourceReference', 1055, $pb.PbFieldType.OM, defaultOrMaker: ResourceReference.getDefault, subBuilder: ResourceReference.create); static final resourceDefinition = $pb.Extension.repeated( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.FileOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resourceDefinition', + _omitMessageNames ? '' : 'google.protobuf.FileOptions', + _omitFieldNames ? '' : 'resourceDefinition', 1053, $pb.PbFieldType.PM, check: $pb.getCheckFunction($pb.PbFieldType.PM), subBuilder: ResourceDescriptor.create); static final resource = $pb.Extension( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.MessageOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resource', + _omitMessageNames ? '' : 'google.protobuf.MessageOptions', + _omitFieldNames ? '' : 'resource', 1053, $pb.PbFieldType.OM, defaultOrMaker: ResourceDescriptor.getDefault, @@ -305,3 +421,7 @@ class Resource { registry.add(resource); } } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pbenum.dart index 80bf6ecb..4230cccf 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pbenum.dart @@ -1,33 +1,30 @@ -/// +// // Generated code. Do not modify. // source: google/api/resource.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// A description of the historical or future-looking state of the +/// resource pattern. class ResourceDescriptor_History extends $pb.ProtobufEnum { static const ResourceDescriptor_History HISTORY_UNSPECIFIED = ResourceDescriptor_History._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'HISTORY_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'HISTORY_UNSPECIFIED'); static const ResourceDescriptor_History ORIGINALLY_SINGLE_PATTERN = ResourceDescriptor_History._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ORIGINALLY_SINGLE_PATTERN'); + 1, _omitEnumNames ? '' : 'ORIGINALLY_SINGLE_PATTERN'); static const ResourceDescriptor_History FUTURE_MULTI_PATTERN = ResourceDescriptor_History._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FUTURE_MULTI_PATTERN'); + 2, _omitEnumNames ? '' : 'FUTURE_MULTI_PATTERN'); static const $core.List values = [ @@ -44,19 +41,13 @@ class ResourceDescriptor_History extends $pb.ProtobufEnum { const ResourceDescriptor_History._($core.int v, $core.String n) : super(v, n); } +/// A flag representing a specific style that a resource claims to conform to. class ResourceDescriptor_Style extends $pb.ProtobufEnum { static const ResourceDescriptor_Style STYLE_UNSPECIFIED = - ResourceDescriptor_Style._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STYLE_UNSPECIFIED'); + ResourceDescriptor_Style._(0, _omitEnumNames ? '' : 'STYLE_UNSPECIFIED'); static const ResourceDescriptor_Style DECLARATIVE_FRIENDLY = ResourceDescriptor_Style._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DECLARATIVE_FRIENDLY'); + 1, _omitEnumNames ? '' : 'DECLARATIVE_FRIENDLY'); static const $core.List values = [ @@ -70,3 +61,5 @@ class ResourceDescriptor_Style extends $pb.ProtobufEnum { const ResourceDescriptor_Style._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pbjson.dart index ae0feafa..97f993d2 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/resource.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/resource.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 resourceDescriptorDescriptor instead') @@ -59,7 +63,15 @@ const ResourceDescriptor_Style$json = { /// Descriptor for `ResourceDescriptor`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List resourceDescriptorDescriptor = $convert.base64Decode( - 'ChJSZXNvdXJjZURlc2NyaXB0b3ISEgoEdHlwZRgBIAEoCVIEdHlwZRIYCgdwYXR0ZXJuGAIgAygJUgdwYXR0ZXJuEh0KCm5hbWVfZmllbGQYAyABKAlSCW5hbWVGaWVsZBJACgdoaXN0b3J5GAQgASgOMiYuZ29vZ2xlLmFwaS5SZXNvdXJjZURlc2NyaXB0b3IuSGlzdG9yeVIHaGlzdG9yeRIWCgZwbHVyYWwYBSABKAlSBnBsdXJhbBIaCghzaW5ndWxhchgGIAEoCVIIc2luZ3VsYXISOgoFc3R5bGUYCiADKA4yJC5nb29nbGUuYXBpLlJlc291cmNlRGVzY3JpcHRvci5TdHlsZVIFc3R5bGUiWwoHSGlzdG9yeRIXChNISVNUT1JZX1VOU1BFQ0lGSUVEEAASHQoZT1JJR0lOQUxMWV9TSU5HTEVfUEFUVEVSThABEhgKFEZVVFVSRV9NVUxUSV9QQVRURVJOEAIiOAoFU3R5bGUSFQoRU1RZTEVfVU5TUEVDSUZJRUQQABIYChRERUNMQVJBVElWRV9GUklFTkRMWRAB'); + 'ChJSZXNvdXJjZURlc2NyaXB0b3ISEgoEdHlwZRgBIAEoCVIEdHlwZRIYCgdwYXR0ZXJuGAIgAy' + 'gJUgdwYXR0ZXJuEh0KCm5hbWVfZmllbGQYAyABKAlSCW5hbWVGaWVsZBJACgdoaXN0b3J5GAQg' + 'ASgOMiYuZ29vZ2xlLmFwaS5SZXNvdXJjZURlc2NyaXB0b3IuSGlzdG9yeVIHaGlzdG9yeRIWCg' + 'ZwbHVyYWwYBSABKAlSBnBsdXJhbBIaCghzaW5ndWxhchgGIAEoCVIIc2luZ3VsYXISOgoFc3R5' + 'bGUYCiADKA4yJC5nb29nbGUuYXBpLlJlc291cmNlRGVzY3JpcHRvci5TdHlsZVIFc3R5bGUiWw' + 'oHSGlzdG9yeRIXChNISVNUT1JZX1VOU1BFQ0lGSUVEEAASHQoZT1JJR0lOQUxMWV9TSU5HTEVf' + 'UEFUVEVSThABEhgKFEZVVFVSRV9NVUxUSV9QQVRURVJOEAIiOAoFU3R5bGUSFQoRU1RZTEVfVU' + '5TUEVDSUZJRUQQABIYChRERUNMQVJBVElWRV9GUklFTkRMWRAB'); + @$core.Deprecated('Use resourceReferenceDescriptor instead') const ResourceReference$json = { '1': 'ResourceReference', @@ -71,4 +83,5 @@ const ResourceReference$json = { /// Descriptor for `ResourceReference`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List resourceReferenceDescriptor = $convert.base64Decode( - 'ChFSZXNvdXJjZVJlZmVyZW5jZRISCgR0eXBlGAEgASgJUgR0eXBlEh0KCmNoaWxkX3R5cGUYAiABKAlSCWNoaWxkVHlwZQ=='); + 'ChFSZXNvdXJjZVJlZmVyZW5jZRISCgR0eXBlGAEgASgJUgR0eXBlEh0KCmNoaWxkX3R5cGUYAi' + 'ABKAlSCWNoaWxkVHlwZQ=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/routing.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/routing.pb.dart new file mode 100644 index 00000000..d5683715 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/routing.pb.dart @@ -0,0 +1,583 @@ +// +// Generated code. Do not modify. +// source: google/api/routing.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; + +/// Specifies the routing information that should be sent along with the request +/// in the form of routing header. +/// **NOTE:** All service configuration rules follow the "last one wins" order. +/// +/// The examples below will apply to an RPC which has the following request type: +/// +/// Message Definition: +/// +/// message Request { +/// // The name of the Table +/// // Values can be of the following formats: +/// // - `projects//tables/` +/// // - `projects//instances//tables/
` +/// // - `region//zones//tables/
` +/// string table_name = 1; +/// +/// // This value specifies routing for replication. +/// // It can be in the following formats: +/// // - `profiles/` +/// // - a legacy `profile_id` that can be any string +/// string app_profile_id = 2; +/// } +/// +/// Example message: +/// +/// { +/// table_name: projects/proj_foo/instances/instance_bar/table/table_baz, +/// app_profile_id: profiles/prof_qux +/// } +/// +/// The routing header consists of one or multiple key-value pairs. Every key +/// and value must be percent-encoded, and joined together in the format of +/// `key1=value1&key2=value2`. +/// In the examples below I am skipping the percent-encoding for readablity. +/// +/// Example 1 +/// +/// Extracting a field from the request to put into the routing header +/// unchanged, with the key equal to the field name. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // Take the `app_profile_id`. +/// routing_parameters { +/// field: "app_profile_id" +/// } +/// }; +/// +/// result: +/// +/// x-goog-request-params: app_profile_id=profiles/prof_qux +/// +/// Example 2 +/// +/// Extracting a field from the request to put into the routing header +/// unchanged, with the key different from the field name. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // Take the `app_profile_id`, but name it `routing_id` in the header. +/// routing_parameters { +/// field: "app_profile_id" +/// path_template: "{routing_id=**}" +/// } +/// }; +/// +/// result: +/// +/// x-goog-request-params: routing_id=profiles/prof_qux +/// +/// Example 3 +/// +/// Extracting a field from the request to put into the routing +/// header, while matching a path template syntax on the field's value. +/// +/// NB: it is more useful to send nothing than to send garbage for the purpose +/// of dynamic routing, since garbage pollutes cache. Thus the matching. +/// +/// Sub-example 3a +/// +/// The field matches the template. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // Take the `table_name`, if it's well-formed (with project-based +/// // syntax). +/// routing_parameters { +/// field: "table_name" +/// path_template: "{table_name=projects/*/instances/*/**}" +/// } +/// }; +/// +/// result: +/// +/// x-goog-request-params: +/// table_name=projects/proj_foo/instances/instance_bar/table/table_baz +/// +/// Sub-example 3b +/// +/// The field does not match the template. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // Take the `table_name`, if it's well-formed (with region-based +/// // syntax). +/// routing_parameters { +/// field: "table_name" +/// path_template: "{table_name=regions/*/zones/*/**}" +/// } +/// }; +/// +/// result: +/// +/// +/// +/// Sub-example 3c +/// +/// Multiple alternative conflictingly named path templates are +/// specified. The one that matches is used to construct the header. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // Take the `table_name`, if it's well-formed, whether +/// // using the region- or projects-based syntax. +/// +/// routing_parameters { +/// field: "table_name" +/// path_template: "{table_name=regions/*/zones/*/**}" +/// } +/// routing_parameters { +/// field: "table_name" +/// path_template: "{table_name=projects/*/instances/*/**}" +/// } +/// }; +/// +/// result: +/// +/// x-goog-request-params: +/// table_name=projects/proj_foo/instances/instance_bar/table/table_baz +/// +/// Example 4 +/// +/// Extracting a single routing header key-value pair by matching a +/// template syntax on (a part of) a single request field. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // Take just the project id from the `table_name` field. +/// routing_parameters { +/// field: "table_name" +/// path_template: "{routing_id=projects/*}/**" +/// } +/// }; +/// +/// result: +/// +/// x-goog-request-params: routing_id=projects/proj_foo +/// +/// Example 5 +/// +/// Extracting a single routing header key-value pair by matching +/// several conflictingly named path templates on (parts of) a single request +/// field. The last template to match "wins" the conflict. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // If the `table_name` does not have instances information, +/// // take just the project id for routing. +/// // Otherwise take project + instance. +/// +/// routing_parameters { +/// field: "table_name" +/// path_template: "{routing_id=projects/*}/**" +/// } +/// routing_parameters { +/// field: "table_name" +/// path_template: "{routing_id=projects/*/instances/*}/**" +/// } +/// }; +/// +/// result: +/// +/// x-goog-request-params: +/// routing_id=projects/proj_foo/instances/instance_bar +/// +/// Example 6 +/// +/// Extracting multiple routing header key-value pairs by matching +/// several non-conflicting path templates on (parts of) a single request field. +/// +/// Sub-example 6a +/// +/// Make the templates strict, so that if the `table_name` does not +/// have an instance information, nothing is sent. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // The routing code needs two keys instead of one composite +/// // but works only for the tables with the "project-instance" name +/// // syntax. +/// +/// routing_parameters { +/// field: "table_name" +/// path_template: "{project_id=projects/*}/instances/*/**" +/// } +/// routing_parameters { +/// field: "table_name" +/// path_template: "projects/*/{instance_id=instances/*}/**" +/// } +/// }; +/// +/// result: +/// +/// x-goog-request-params: +/// project_id=projects/proj_foo&instance_id=instances/instance_bar +/// +/// Sub-example 6b +/// +/// Make the templates loose, so that if the `table_name` does not +/// have an instance information, just the project id part is sent. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // The routing code wants two keys instead of one composite +/// // but will work with just the `project_id` for tables without +/// // an instance in the `table_name`. +/// +/// routing_parameters { +/// field: "table_name" +/// path_template: "{project_id=projects/*}/**" +/// } +/// routing_parameters { +/// field: "table_name" +/// path_template: "projects/*/{instance_id=instances/*}/**" +/// } +/// }; +/// +/// result (is the same as 6a for our example message because it has the instance +/// information): +/// +/// x-goog-request-params: +/// project_id=projects/proj_foo&instance_id=instances/instance_bar +/// +/// Example 7 +/// +/// Extracting multiple routing header key-value pairs by matching +/// several path templates on multiple request fields. +/// +/// NB: note that here there is no way to specify sending nothing if one of the +/// fields does not match its template. E.g. if the `table_name` is in the wrong +/// format, the `project_id` will not be sent, but the `routing_id` will be. +/// The backend routing code has to be aware of that and be prepared to not +/// receive a full complement of keys if it expects multiple. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // The routing needs both `project_id` and `routing_id` +/// // (from the `app_profile_id` field) for routing. +/// +/// routing_parameters { +/// field: "table_name" +/// path_template: "{project_id=projects/*}/**" +/// } +/// routing_parameters { +/// field: "app_profile_id" +/// path_template: "{routing_id=**}" +/// } +/// }; +/// +/// result: +/// +/// x-goog-request-params: +/// project_id=projects/proj_foo&routing_id=profiles/prof_qux +/// +/// Example 8 +/// +/// Extracting a single routing header key-value pair by matching +/// several conflictingly named path templates on several request fields. The +/// last template to match "wins" the conflict. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // The `routing_id` can be a project id or a region id depending on +/// // the table name format, but only if the `app_profile_id` is not set. +/// // If `app_profile_id` is set it should be used instead. +/// +/// routing_parameters { +/// field: "table_name" +/// path_template: "{routing_id=projects/*}/**" +/// } +/// routing_parameters { +/// field: "table_name" +/// path_template: "{routing_id=regions/*}/**" +/// } +/// routing_parameters { +/// field: "app_profile_id" +/// path_template: "{routing_id=**}" +/// } +/// }; +/// +/// result: +/// +/// x-goog-request-params: routing_id=profiles/prof_qux +/// +/// Example 9 +/// +/// Bringing it all together. +/// +/// annotation: +/// +/// option (google.api.routing) = { +/// // For routing both `table_location` and a `routing_id` are needed. +/// // +/// // table_location can be either an instance id or a region+zone id. +/// // +/// // For `routing_id`, take the value of `app_profile_id` +/// // - If it's in the format `profiles/`, send +/// // just the `` part. +/// // - If it's any other literal, send it as is. +/// // If the `app_profile_id` is empty, and the `table_name` starts with +/// // the project_id, send that instead. +/// +/// routing_parameters { +/// field: "table_name" +/// path_template: "projects/*/{table_location=instances/*}/tables/*" +/// } +/// routing_parameters { +/// field: "table_name" +/// path_template: "{table_location=regions/*/zones/*}/tables/*" +/// } +/// routing_parameters { +/// field: "table_name" +/// path_template: "{routing_id=projects/*}/**" +/// } +/// routing_parameters { +/// field: "app_profile_id" +/// path_template: "{routing_id=**}" +/// } +/// routing_parameters { +/// field: "app_profile_id" +/// path_template: "profiles/{routing_id=*}" +/// } +/// }; +/// +/// result: +/// +/// x-goog-request-params: +/// table_location=instances/instance_bar&routing_id=prof_qux +class RoutingRule extends $pb.GeneratedMessage { + factory RoutingRule({ + $core.Iterable? routingParameters, + }) { + final $result = create(); + if (routingParameters != null) { + $result.routingParameters.addAll(routingParameters); + } + return $result; + } + RoutingRule._() : super(); + factory RoutingRule.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RoutingRule.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RoutingRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc( + 2, _omitFieldNames ? '' : 'routingParameters', $pb.PbFieldType.PM, + subBuilder: RoutingParameter.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') + RoutingRule clone() => RoutingRule()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RoutingRule copyWith(void Function(RoutingRule) updates) => + super.copyWith((message) => updates(message as RoutingRule)) + as RoutingRule; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RoutingRule create() => RoutingRule._(); + RoutingRule createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RoutingRule getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static RoutingRule? _defaultInstance; + + /// A collection of Routing Parameter specifications. + /// **NOTE:** If multiple Routing Parameters describe the same key + /// (via the `path_template` field or via the `field` field when + /// `path_template` is not provided), "last one wins" rule + /// determines which Parameter gets used. + /// See the examples for more details. + @$pb.TagNumber(2) + $core.List get routingParameters => $_getList(0); +} + +/// A projection from an input message to the GRPC or REST header. +class RoutingParameter extends $pb.GeneratedMessage { + factory RoutingParameter({ + $core.String? field_1, + $core.String? pathTemplate, + }) { + final $result = create(); + if (field_1 != null) { + $result.field_1 = field_1; + } + if (pathTemplate != null) { + $result.pathTemplate = pathTemplate; + } + return $result; + } + RoutingParameter._() : super(); + factory RoutingParameter.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RoutingParameter.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RoutingParameter', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'field') + ..aOS(2, _omitFieldNames ? '' : 'pathTemplate') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RoutingParameter clone() => RoutingParameter()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RoutingParameter copyWith(void Function(RoutingParameter) updates) => + super.copyWith((message) => updates(message as RoutingParameter)) + as RoutingParameter; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RoutingParameter create() => RoutingParameter._(); + RoutingParameter createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RoutingParameter getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static RoutingParameter? _defaultInstance; + + /// A request field to extract the header key-value pair from. + @$pb.TagNumber(1) + $core.String get field_1 => $_getSZ(0); + @$pb.TagNumber(1) + set field_1($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasField_1() => $_has(0); + @$pb.TagNumber(1) + void clearField_1() => clearField(1); + + /// A pattern matching the key-value field. Optional. + /// If not specified, the whole field specified in the `field` field will be + /// taken as value, and its name used as key. If specified, it MUST contain + /// exactly one named segment (along with any number of unnamed segments) The + /// pattern will be matched over the field specified in the `field` field, then + /// if the match is successful: + /// - the name of the single named segment will be used as a header name, + /// - the match value of the segment will be used as a header value; + /// if the match is NOT successful, nothing will be sent. + /// + /// Example: + /// + /// -- This is a field in the request message + /// | that the header value will be extracted from. + /// | + /// | -- This is the key name in the + /// | | routing header. + /// V | + /// field: "table_name" v + /// path_template: "projects/*/{table_location=instances/*}/tables/*" + /// ^ ^ + /// | | + /// In the {} brackets is the pattern that -- | + /// specifies what to extract from the | + /// field as a value to be sent. | + /// | + /// The string in the field must match the whole pattern -- + /// before brackets, inside brackets, after brackets. + /// + /// When looking at this specific example, we can see that: + /// - A key-value pair with the key `table_location` + /// and the value matching `instances/*` should be added + /// to the x-goog-request-params routing header. + /// - The value is extracted from the request message's `table_name` field + /// if it matches the full pattern specified: + /// `projects/*/instances/*/tables/*`. + /// + /// **NB:** If the `path_template` field is not provided, the key name is + /// equal to the field name, and the whole field should be sent as a value. + /// This makes the pattern for the field and the value functionally equivalent + /// to `**`, and the configuration + /// + /// { + /// field: "table_name" + /// } + /// + /// is a functionally equivalent shorthand to: + /// + /// { + /// field: "table_name" + /// path_template: "{table_name=**}" + /// } + /// + /// See Example 1 for more details. + @$pb.TagNumber(2) + $core.String get pathTemplate => $_getSZ(1); + @$pb.TagNumber(2) + set pathTemplate($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPathTemplate() => $_has(1); + @$pb.TagNumber(2) + void clearPathTemplate() => clearField(2); +} + +class Routing { + static final routing = $pb.Extension( + _omitMessageNames ? '' : 'google.protobuf.MethodOptions', + _omitFieldNames ? '' : 'routing', + 72295729, + $pb.PbFieldType.OM, + defaultOrMaker: RoutingRule.getDefault, + subBuilder: RoutingRule.create); + static void registerAllExtensions($pb.ExtensionRegistry registry) { + registry.add(routing); + } +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/routing.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/routing.pbenum.dart new file mode 100644 index 00000000..f85d6833 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/routing.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/api/routing.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/routing.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/routing.pbjson.dart new file mode 100644 index 00000000..a7301792 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/routing.pbjson.dart @@ -0,0 +1,48 @@ +// +// Generated code. Do not modify. +// source: google/api/routing.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 routingRuleDescriptor instead') +const RoutingRule$json = { + '1': 'RoutingRule', + '2': [ + { + '1': 'routing_parameters', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.api.RoutingParameter', + '10': 'routingParameters' + }, + ], +}; + +/// Descriptor for `RoutingRule`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List routingRuleDescriptor = $convert.base64Decode( + 'CgtSb3V0aW5nUnVsZRJLChJyb3V0aW5nX3BhcmFtZXRlcnMYAiADKAsyHC5nb29nbGUuYXBpLl' + 'JvdXRpbmdQYXJhbWV0ZXJSEXJvdXRpbmdQYXJhbWV0ZXJz'); + +@$core.Deprecated('Use routingParameterDescriptor instead') +const RoutingParameter$json = { + '1': 'RoutingParameter', + '2': [ + {'1': 'field', '3': 1, '4': 1, '5': 9, '10': 'field'}, + {'1': 'path_template', '3': 2, '4': 1, '5': 9, '10': 'pathTemplate'}, + ], +}; + +/// Descriptor for `RoutingParameter`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List routingParameterDescriptor = $convert.base64Decode( + 'ChBSb3V0aW5nUGFyYW1ldGVyEhQKBWZpZWxkGAEgASgJUgVmaWVsZBIjCg1wYXRoX3RlbXBsYX' + 'RlGAIgASgJUgxwYXRoVGVtcGxhdGU='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pb.dart index e6834eca..09b06b6f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pb.dart @@ -1,195 +1,249 @@ -/// +// // Generated code. Do not modify. // source: google/api/service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/api.pb.dart' as $0; -import '../protobuf/type.pb.dart' as $1; -import 'documentation.pb.dart' as $2; -import 'backend.pb.dart' as $3; -import 'http.pb.dart' as $4; -import 'quota.pb.dart' as $5; -import 'auth.pb.dart' as $6; -import 'context.pb.dart' as $7; -import 'usage.pb.dart' as $8; -import 'endpoint.pb.dart' as $9; -import '../protobuf/wrappers.pb.dart' as $10; -import 'control.pb.dart' as $11; -import 'log.pb.dart' as $12; -import 'metric.pb.dart' as $13; -import 'monitored_resource.pb.dart' as $14; -import 'billing.pb.dart' as $15; -import 'logging.pb.dart' as $16; -import 'monitoring.pb.dart' as $17; -import 'system_parameter.pb.dart' as $18; -import 'source_info.pb.dart' as $19; - +import '../protobuf/api.pb.dart' as $84; +import '../protobuf/type.pb.dart' as $83; +import '../protobuf/wrappers.pb.dart' as $73; +import 'auth.pb.dart' as $88; +import 'backend.pb.dart' as $86; +import 'billing.pb.dart' as $94; +import 'client.pb.dart' as $99; +import 'context.pb.dart' as $89; +import 'control.pb.dart' as $92; +import 'documentation.pb.dart' as $85; +import 'endpoint.pb.dart' as $91; +import 'http.pb.dart' as $55; +import 'log.pb.dart' as $93; +import 'logging.pb.dart' as $95; +import 'metric.pb.dart' as $69; +import 'monitored_resource.pb.dart' as $67; +import 'monitoring.pb.dart' as $96; +import 'quota.pb.dart' as $87; +import 'source_info.pb.dart' as $98; +import 'system_parameter.pb.dart' as $97; +import 'usage.pb.dart' as $90; + +/// `Service` is the root object of Google API service configuration (service +/// config). It describes the basic information about a logical service, +/// such as the service name and the user-facing title, and delegates other +/// aspects to sub-sections. Each sub-section is either a proto message or a +/// repeated proto message that configures a specific aspect, such as auth. +/// For more information, see each proto message definition. +/// +/// Example: +/// +/// type: google.api.Service +/// name: calendar.googleapis.com +/// title: Google Calendar API +/// apis: +/// - name: google.calendar.v3.Calendar +/// +/// visibility: +/// rules: +/// - selector: "google.calendar.v3.*" +/// restriction: PREVIEW +/// backend: +/// rules: +/// - selector: "google.calendar.v3.*" +/// address: calendar.example.com +/// +/// authentication: +/// providers: +/// - id: google_calendar_auth +/// jwks_uri: https://www.googleapis.com/oauth2/v1/certs +/// issuer: https://securetoken.google.com +/// rules: +/// - selector: "*" +/// requirements: +/// provider_id: google_calendar_auth class Service extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Service', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'title') - ..pc<$0.Api>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apis', $pb.PbFieldType.PM, - subBuilder: $0.Api.create) - ..pc<$1.Type>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'types', $pb.PbFieldType.PM, - subBuilder: $1.Type.create) - ..pc<$1.Enum>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enums', $pb.PbFieldType.PM, - subBuilder: $1.Enum.create) - ..aOM<$2.Documentation>( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'documentation', - subBuilder: $2.Documentation.create) - ..aOM<$3.Backend>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'backend', subBuilder: $3.Backend.create) - ..aOM<$4.Http>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'http', subBuilder: $4.Http.create) - ..aOM<$5.Quota>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'quota', subBuilder: $5.Quota.create) - ..aOM<$6.Authentication>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authentication', subBuilder: $6.Authentication.create) - ..aOM<$7.Context>(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'context', subBuilder: $7.Context.create) - ..aOM<$8.Usage>(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'usage', subBuilder: $8.Usage.create) - ..pc<$9.Endpoint>(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endpoints', $pb.PbFieldType.PM, subBuilder: $9.Endpoint.create) - ..aOM<$10.UInt32Value>(20, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'configVersion', subBuilder: $10.UInt32Value.create) - ..aOM<$11.Control>(21, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'control', subBuilder: $11.Control.create) - ..aOS(22, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'producerProjectId') - ..pc<$12.LogDescriptor>(23, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'logs', $pb.PbFieldType.PM, subBuilder: $12.LogDescriptor.create) - ..pc<$13.MetricDescriptor>(24, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metrics', $pb.PbFieldType.PM, subBuilder: $13.MetricDescriptor.create) - ..pc<$14.MonitoredResourceDescriptor>(25, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'monitoredResources', $pb.PbFieldType.PM, subBuilder: $14.MonitoredResourceDescriptor.create) - ..aOM<$15.Billing>(26, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'billing', subBuilder: $15.Billing.create) - ..aOM<$16.Logging>(27, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'logging', subBuilder: $16.Logging.create) - ..aOM<$17.Monitoring>(28, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'monitoring', subBuilder: $17.Monitoring.create) - ..aOM<$18.SystemParameters>(29, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'systemParameters', subBuilder: $18.SystemParameters.create) - ..aOS(33, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id') - ..aOM<$19.SourceInfo>(37, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sourceInfo', subBuilder: $19.SourceInfo.create) - ..hasRequiredFields = false; - - Service._() : super(); factory Service({ $core.String? name, $core.String? title, - $core.Iterable<$0.Api>? apis, - $core.Iterable<$1.Type>? types, - $core.Iterable<$1.Enum>? enums, - $2.Documentation? documentation, - $3.Backend? backend, - $4.Http? http, - $5.Quota? quota, - $6.Authentication? authentication, - $7.Context? context, - $8.Usage? usage, - $core.Iterable<$9.Endpoint>? endpoints, - @$core.Deprecated('This field is deprecated.') - $10.UInt32Value? configVersion, - $11.Control? control, + $core.Iterable<$84.Api>? apis, + $core.Iterable<$83.Type>? types, + $core.Iterable<$83.Enum>? enums, + $85.Documentation? documentation, + $86.Backend? backend, + $55.Http? http, + $87.Quota? quota, + $88.Authentication? authentication, + $89.Context? context, + $90.Usage? usage, + $core.Iterable<$91.Endpoint>? endpoints, + $73.UInt32Value? configVersion, + $92.Control? control, $core.String? producerProjectId, - $core.Iterable<$12.LogDescriptor>? logs, - $core.Iterable<$13.MetricDescriptor>? metrics, - $core.Iterable<$14.MonitoredResourceDescriptor>? monitoredResources, - $15.Billing? billing, - $16.Logging? logging, - $17.Monitoring? monitoring, - $18.SystemParameters? systemParameters, + $core.Iterable<$93.LogDescriptor>? logs, + $core.Iterable<$69.MetricDescriptor>? metrics, + $core.Iterable<$67.MonitoredResourceDescriptor>? monitoredResources, + $94.Billing? billing, + $95.Logging? logging, + $96.Monitoring? monitoring, + $97.SystemParameters? systemParameters, $core.String? id, - $19.SourceInfo? sourceInfo, + $98.SourceInfo? sourceInfo, + $99.Publishing? publishing, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (title != null) { - _result.title = title; + $result.title = title; } if (apis != null) { - _result.apis.addAll(apis); + $result.apis.addAll(apis); } if (types != null) { - _result.types.addAll(types); + $result.types.addAll(types); } if (enums != null) { - _result.enums.addAll(enums); + $result.enums.addAll(enums); } if (documentation != null) { - _result.documentation = documentation; + $result.documentation = documentation; } if (backend != null) { - _result.backend = backend; + $result.backend = backend; } if (http != null) { - _result.http = http; + $result.http = http; } if (quota != null) { - _result.quota = quota; + $result.quota = quota; } if (authentication != null) { - _result.authentication = authentication; + $result.authentication = authentication; } if (context != null) { - _result.context = context; + $result.context = context; } if (usage != null) { - _result.usage = usage; + $result.usage = usage; } if (endpoints != null) { - _result.endpoints.addAll(endpoints); + $result.endpoints.addAll(endpoints); } if (configVersion != null) { - // ignore: deprecated_member_use_from_same_package - _result.configVersion = configVersion; + $result.configVersion = configVersion; } if (control != null) { - _result.control = control; + $result.control = control; } if (producerProjectId != null) { - _result.producerProjectId = producerProjectId; + $result.producerProjectId = producerProjectId; } if (logs != null) { - _result.logs.addAll(logs); + $result.logs.addAll(logs); } if (metrics != null) { - _result.metrics.addAll(metrics); + $result.metrics.addAll(metrics); } if (monitoredResources != null) { - _result.monitoredResources.addAll(monitoredResources); + $result.monitoredResources.addAll(monitoredResources); } if (billing != null) { - _result.billing = billing; + $result.billing = billing; } if (logging != null) { - _result.logging = logging; + $result.logging = logging; } if (monitoring != null) { - _result.monitoring = monitoring; + $result.monitoring = monitoring; } if (systemParameters != null) { - _result.systemParameters = systemParameters; + $result.systemParameters = systemParameters; } if (id != null) { - _result.id = id; + $result.id = id; } if (sourceInfo != null) { - _result.sourceInfo = sourceInfo; + $result.sourceInfo = sourceInfo; + } + if (publishing != null) { + $result.publishing = publishing; } - return _result; + return $result; } + Service._() : super(); factory Service.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Service.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Service', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'title') + ..pc<$84.Api>(3, _omitFieldNames ? '' : 'apis', $pb.PbFieldType.PM, + subBuilder: $84.Api.create) + ..pc<$83.Type>(4, _omitFieldNames ? '' : 'types', $pb.PbFieldType.PM, + subBuilder: $83.Type.create) + ..pc<$83.Enum>(5, _omitFieldNames ? '' : 'enums', $pb.PbFieldType.PM, + subBuilder: $83.Enum.create) + ..aOM<$85.Documentation>(6, _omitFieldNames ? '' : 'documentation', + subBuilder: $85.Documentation.create) + ..aOM<$86.Backend>(8, _omitFieldNames ? '' : 'backend', + subBuilder: $86.Backend.create) + ..aOM<$55.Http>(9, _omitFieldNames ? '' : 'http', + subBuilder: $55.Http.create) + ..aOM<$87.Quota>(10, _omitFieldNames ? '' : 'quota', + subBuilder: $87.Quota.create) + ..aOM<$88.Authentication>(11, _omitFieldNames ? '' : 'authentication', + subBuilder: $88.Authentication.create) + ..aOM<$89.Context>(12, _omitFieldNames ? '' : 'context', + subBuilder: $89.Context.create) + ..aOM<$90.Usage>(15, _omitFieldNames ? '' : 'usage', + subBuilder: $90.Usage.create) + ..pc<$91.Endpoint>( + 18, _omitFieldNames ? '' : 'endpoints', $pb.PbFieldType.PM, + subBuilder: $91.Endpoint.create) + ..aOM<$73.UInt32Value>(20, _omitFieldNames ? '' : 'configVersion', + subBuilder: $73.UInt32Value.create) + ..aOM<$92.Control>(21, _omitFieldNames ? '' : 'control', + subBuilder: $92.Control.create) + ..aOS(22, _omitFieldNames ? '' : 'producerProjectId') + ..pc<$93.LogDescriptor>( + 23, _omitFieldNames ? '' : 'logs', $pb.PbFieldType.PM, + subBuilder: $93.LogDescriptor.create) + ..pc<$69.MetricDescriptor>( + 24, _omitFieldNames ? '' : 'metrics', $pb.PbFieldType.PM, + subBuilder: $69.MetricDescriptor.create) + ..pc<$67.MonitoredResourceDescriptor>( + 25, _omitFieldNames ? '' : 'monitoredResources', $pb.PbFieldType.PM, + subBuilder: $67.MonitoredResourceDescriptor.create) + ..aOM<$94.Billing>(26, _omitFieldNames ? '' : 'billing', + subBuilder: $94.Billing.create) + ..aOM<$95.Logging>(27, _omitFieldNames ? '' : 'logging', + subBuilder: $95.Logging.create) + ..aOM<$96.Monitoring>(28, _omitFieldNames ? '' : 'monitoring', + subBuilder: $96.Monitoring.create) + ..aOM<$97.SystemParameters>(29, _omitFieldNames ? '' : 'systemParameters', + subBuilder: $97.SystemParameters.create) + ..aOS(33, _omitFieldNames ? '' : 'id') + ..aOM<$98.SourceInfo>(37, _omitFieldNames ? '' : 'sourceInfo', + subBuilder: $98.SourceInfo.create) + ..aOM<$99.Publishing>(45, _omitFieldNames ? '' : 'publishing', + subBuilder: $99.Publishing.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') @@ -198,9 +252,10 @@ class Service extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Service copyWith(void Function(Service) updates) => - super.copyWith((message) => updates(message as Service)) - as Service; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Service)) as Service; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Service create() => Service._(); Service createEmptyInstance() => create(); @@ -210,6 +265,10 @@ class Service extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Service? _defaultInstance; + /// The service name, which is a DNS-like logical identifier for the + /// service, such as `calendar.googleapis.com`. The service name + /// typically goes through DNS verification to make sure the owner + /// of the service also owns the DNS name. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -222,6 +281,8 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The product title for this service, it is the name displayed in Google + /// Cloud Console. @$pb.TagNumber(2) $core.String get title => $_getSZ(1); @$pb.TagNumber(2) @@ -234,19 +295,40 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearTitle() => clearField(2); + /// A list of API interfaces exported by this service. Only the `name` field + /// of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by + /// the configuration author, as the remaining fields will be derived from the + /// IDL during the normalization process. It is an error to specify an API + /// interface here which cannot be resolved against the associated IDL files. @$pb.TagNumber(3) - $core.List<$0.Api> get apis => $_getList(2); - + $core.List<$84.Api> get apis => $_getList(2); + + /// A list of all proto message types included in this API service. + /// Types referenced directly or indirectly by the `apis` are automatically + /// included. Messages which are not referenced but shall be included, such as + /// types used by the `google.protobuf.Any` type, should be listed here by + /// name by the configuration author. Example: + /// + /// types: + /// - name: google.protobuf.Int32 @$pb.TagNumber(4) - $core.List<$1.Type> get types => $_getList(3); - + $core.List<$83.Type> get types => $_getList(3); + + /// A list of all enum types included in this API service. Enums referenced + /// directly or indirectly by the `apis` are automatically included. Enums + /// which are not referenced but shall be included should be listed here by + /// name by the configuration author. Example: + /// + /// enums: + /// - name: google.someapi.v1.SomeEnum @$pb.TagNumber(5) - $core.List<$1.Enum> get enums => $_getList(4); + $core.List<$83.Enum> get enums => $_getList(4); + /// Additional API documentation. @$pb.TagNumber(6) - $2.Documentation get documentation => $_getN(5); + $85.Documentation get documentation => $_getN(5); @$pb.TagNumber(6) - set documentation($2.Documentation v) { + set documentation($85.Documentation v) { setField(6, v); } @@ -255,12 +337,13 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearDocumentation() => clearField(6); @$pb.TagNumber(6) - $2.Documentation ensureDocumentation() => $_ensure(5); + $85.Documentation ensureDocumentation() => $_ensure(5); + /// API backend configuration. @$pb.TagNumber(8) - $3.Backend get backend => $_getN(6); + $86.Backend get backend => $_getN(6); @$pb.TagNumber(8) - set backend($3.Backend v) { + set backend($86.Backend v) { setField(8, v); } @@ -269,12 +352,13 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearBackend() => clearField(8); @$pb.TagNumber(8) - $3.Backend ensureBackend() => $_ensure(6); + $86.Backend ensureBackend() => $_ensure(6); + /// HTTP configuration. @$pb.TagNumber(9) - $4.Http get http => $_getN(7); + $55.Http get http => $_getN(7); @$pb.TagNumber(9) - set http($4.Http v) { + set http($55.Http v) { setField(9, v); } @@ -283,12 +367,13 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearHttp() => clearField(9); @$pb.TagNumber(9) - $4.Http ensureHttp() => $_ensure(7); + $55.Http ensureHttp() => $_ensure(7); + /// Quota configuration. @$pb.TagNumber(10) - $5.Quota get quota => $_getN(8); + $87.Quota get quota => $_getN(8); @$pb.TagNumber(10) - set quota($5.Quota v) { + set quota($87.Quota v) { setField(10, v); } @@ -297,12 +382,13 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearQuota() => clearField(10); @$pb.TagNumber(10) - $5.Quota ensureQuota() => $_ensure(8); + $87.Quota ensureQuota() => $_ensure(8); + /// Auth configuration. @$pb.TagNumber(11) - $6.Authentication get authentication => $_getN(9); + $88.Authentication get authentication => $_getN(9); @$pb.TagNumber(11) - set authentication($6.Authentication v) { + set authentication($88.Authentication v) { setField(11, v); } @@ -311,12 +397,13 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearAuthentication() => clearField(11); @$pb.TagNumber(11) - $6.Authentication ensureAuthentication() => $_ensure(9); + $88.Authentication ensureAuthentication() => $_ensure(9); + /// Context configuration. @$pb.TagNumber(12) - $7.Context get context => $_getN(10); + $89.Context get context => $_getN(10); @$pb.TagNumber(12) - set context($7.Context v) { + set context($89.Context v) { setField(12, v); } @@ -325,12 +412,13 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearContext() => clearField(12); @$pb.TagNumber(12) - $7.Context ensureContext() => $_ensure(10); + $89.Context ensureContext() => $_ensure(10); + /// Configuration controlling usage of this service. @$pb.TagNumber(15) - $8.Usage get usage => $_getN(11); + $90.Usage get usage => $_getN(11); @$pb.TagNumber(15) - set usage($8.Usage v) { + set usage($90.Usage v) { setField(15, v); } @@ -339,34 +427,37 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearUsage() => clearField(15); @$pb.TagNumber(15) - $8.Usage ensureUsage() => $_ensure(11); + $90.Usage ensureUsage() => $_ensure(11); + /// Configuration for network endpoints. If this is empty, then an endpoint + /// with the same name as the service is automatically generated to service all + /// defined APIs. @$pb.TagNumber(18) - $core.List<$9.Endpoint> get endpoints => $_getList(12); + $core.List<$91.Endpoint> get endpoints => $_getList(12); - @$core.Deprecated('This field is deprecated.') + /// Obsolete. Do not use. + /// + /// This field has no semantic meaning. The service config compiler always + /// sets this field to `3`. @$pb.TagNumber(20) - $10.UInt32Value get configVersion => $_getN(13); - @$core.Deprecated('This field is deprecated.') + $73.UInt32Value get configVersion => $_getN(13); @$pb.TagNumber(20) - set configVersion($10.UInt32Value v) { + set configVersion($73.UInt32Value v) { setField(20, v); } - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(20) $core.bool hasConfigVersion() => $_has(13); - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(20) void clearConfigVersion() => clearField(20); - @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(20) - $10.UInt32Value ensureConfigVersion() => $_ensure(13); + $73.UInt32Value ensureConfigVersion() => $_ensure(13); + /// Configuration for the service control plane. @$pb.TagNumber(21) - $11.Control get control => $_getN(14); + $92.Control get control => $_getN(14); @$pb.TagNumber(21) - set control($11.Control v) { + set control($92.Control v) { setField(21, v); } @@ -375,8 +466,9 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(21) void clearControl() => clearField(21); @$pb.TagNumber(21) - $11.Control ensureControl() => $_ensure(14); + $92.Control ensureControl() => $_ensure(14); + /// The Google project that owns this service. @$pb.TagNumber(22) $core.String get producerProjectId => $_getSZ(15); @$pb.TagNumber(22) @@ -389,20 +481,26 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(22) void clearProducerProjectId() => clearField(22); + /// Defines the logs used by this service. @$pb.TagNumber(23) - $core.List<$12.LogDescriptor> get logs => $_getList(16); + $core.List<$93.LogDescriptor> get logs => $_getList(16); + /// Defines the metrics used by this service. @$pb.TagNumber(24) - $core.List<$13.MetricDescriptor> get metrics => $_getList(17); + $core.List<$69.MetricDescriptor> get metrics => $_getList(17); + /// Defines the monitored resources used by this service. This is required + /// by the [Service.monitoring][google.api.Service.monitoring] and + /// [Service.logging][google.api.Service.logging] configurations. @$pb.TagNumber(25) - $core.List<$14.MonitoredResourceDescriptor> get monitoredResources => + $core.List<$67.MonitoredResourceDescriptor> get monitoredResources => $_getList(18); + /// Billing configuration. @$pb.TagNumber(26) - $15.Billing get billing => $_getN(19); + $94.Billing get billing => $_getN(19); @$pb.TagNumber(26) - set billing($15.Billing v) { + set billing($94.Billing v) { setField(26, v); } @@ -411,12 +509,13 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(26) void clearBilling() => clearField(26); @$pb.TagNumber(26) - $15.Billing ensureBilling() => $_ensure(19); + $94.Billing ensureBilling() => $_ensure(19); + /// Logging configuration. @$pb.TagNumber(27) - $16.Logging get logging => $_getN(20); + $95.Logging get logging => $_getN(20); @$pb.TagNumber(27) - set logging($16.Logging v) { + set logging($95.Logging v) { setField(27, v); } @@ -425,12 +524,13 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(27) void clearLogging() => clearField(27); @$pb.TagNumber(27) - $16.Logging ensureLogging() => $_ensure(20); + $95.Logging ensureLogging() => $_ensure(20); + /// Monitoring configuration. @$pb.TagNumber(28) - $17.Monitoring get monitoring => $_getN(21); + $96.Monitoring get monitoring => $_getN(21); @$pb.TagNumber(28) - set monitoring($17.Monitoring v) { + set monitoring($96.Monitoring v) { setField(28, v); } @@ -439,12 +539,13 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(28) void clearMonitoring() => clearField(28); @$pb.TagNumber(28) - $17.Monitoring ensureMonitoring() => $_ensure(21); + $96.Monitoring ensureMonitoring() => $_ensure(21); + /// System parameter configuration. @$pb.TagNumber(29) - $18.SystemParameters get systemParameters => $_getN(22); + $97.SystemParameters get systemParameters => $_getN(22); @$pb.TagNumber(29) - set systemParameters($18.SystemParameters v) { + set systemParameters($97.SystemParameters v) { setField(29, v); } @@ -453,8 +554,12 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(29) void clearSystemParameters() => clearField(29); @$pb.TagNumber(29) - $18.SystemParameters ensureSystemParameters() => $_ensure(22); + $97.SystemParameters ensureSystemParameters() => $_ensure(22); + /// A unique ID for a specific instance of this message, typically assigned + /// by the client for tracking purpose. Must be no longer than 63 characters + /// and only lower case letters, digits, '.', '_' and '-' are allowed. If + /// empty, the server may choose to generate one instead. @$pb.TagNumber(33) $core.String get id => $_getSZ(23); @$pb.TagNumber(33) @@ -467,10 +572,11 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(33) void clearId() => clearField(33); + /// Output only. The source information for this configuration if available. @$pb.TagNumber(37) - $19.SourceInfo get sourceInfo => $_getN(24); + $98.SourceInfo get sourceInfo => $_getN(24); @$pb.TagNumber(37) - set sourceInfo($19.SourceInfo v) { + set sourceInfo($98.SourceInfo v) { setField(37, v); } @@ -479,5 +585,26 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(37) void clearSourceInfo() => clearField(37); @$pb.TagNumber(37) - $19.SourceInfo ensureSourceInfo() => $_ensure(24); + $98.SourceInfo ensureSourceInfo() => $_ensure(24); + + /// Settings for [Google Cloud Client + /// libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + /// generated from APIs defined as protocol buffers. + @$pb.TagNumber(45) + $99.Publishing get publishing => $_getN(25); + @$pb.TagNumber(45) + set publishing($99.Publishing v) { + setField(45, v); + } + + @$pb.TagNumber(45) + $core.bool hasPublishing() => $_has(25); + @$pb.TagNumber(45) + void clearPublishing() => clearField(45); + @$pb.TagNumber(45) + $99.Publishing ensurePublishing() => $_ensure(25); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pbenum.dart index 1c69dd08..79d482cd 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pbjson.dart index 8a6dd9ea..4d5c58e6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/service.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 serviceDescriptor instead') @@ -183,18 +187,48 @@ const Service$json = { '6': '.google.api.SourceInfo', '10': 'sourceInfo' }, + { + '1': 'publishing', + '3': 45, + '4': 1, + '5': 11, + '6': '.google.api.Publishing', + '10': 'publishing' + }, { '1': 'config_version', '3': 20, '4': 1, '5': 11, '6': '.google.protobuf.UInt32Value', - '8': {'3': true}, - '10': 'configVersion', + '10': 'configVersion' }, ], }; /// Descriptor for `Service`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceDescriptor = $convert.base64Decode( - 'CgdTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSFAoFdGl0bGUYAiABKAlSBXRpdGxlEi4KE3Byb2R1Y2VyX3Byb2plY3RfaWQYFiABKAlSEXByb2R1Y2VyUHJvamVjdElkEg4KAmlkGCEgASgJUgJpZBIoCgRhcGlzGAMgAygLMhQuZ29vZ2xlLnByb3RvYnVmLkFwaVIEYXBpcxIrCgV0eXBlcxgEIAMoCzIVLmdvb2dsZS5wcm90b2J1Zi5UeXBlUgV0eXBlcxIrCgVlbnVtcxgFIAMoCzIVLmdvb2dsZS5wcm90b2J1Zi5FbnVtUgVlbnVtcxI/Cg1kb2N1bWVudGF0aW9uGAYgASgLMhkuZ29vZ2xlLmFwaS5Eb2N1bWVudGF0aW9uUg1kb2N1bWVudGF0aW9uEi0KB2JhY2tlbmQYCCABKAsyEy5nb29nbGUuYXBpLkJhY2tlbmRSB2JhY2tlbmQSJAoEaHR0cBgJIAEoCzIQLmdvb2dsZS5hcGkuSHR0cFIEaHR0cBInCgVxdW90YRgKIAEoCzIRLmdvb2dsZS5hcGkuUXVvdGFSBXF1b3RhEkIKDmF1dGhlbnRpY2F0aW9uGAsgASgLMhouZ29vZ2xlLmFwaS5BdXRoZW50aWNhdGlvblIOYXV0aGVudGljYXRpb24SLQoHY29udGV4dBgMIAEoCzITLmdvb2dsZS5hcGkuQ29udGV4dFIHY29udGV4dBInCgV1c2FnZRgPIAEoCzIRLmdvb2dsZS5hcGkuVXNhZ2VSBXVzYWdlEjIKCWVuZHBvaW50cxgSIAMoCzIULmdvb2dsZS5hcGkuRW5kcG9pbnRSCWVuZHBvaW50cxItCgdjb250cm9sGBUgASgLMhMuZ29vZ2xlLmFwaS5Db250cm9sUgdjb250cm9sEi0KBGxvZ3MYFyADKAsyGS5nb29nbGUuYXBpLkxvZ0Rlc2NyaXB0b3JSBGxvZ3MSNgoHbWV0cmljcxgYIAMoCzIcLmdvb2dsZS5hcGkuTWV0cmljRGVzY3JpcHRvclIHbWV0cmljcxJYChNtb25pdG9yZWRfcmVzb3VyY2VzGBkgAygLMicuZ29vZ2xlLmFwaS5Nb25pdG9yZWRSZXNvdXJjZURlc2NyaXB0b3JSEm1vbml0b3JlZFJlc291cmNlcxItCgdiaWxsaW5nGBogASgLMhMuZ29vZ2xlLmFwaS5CaWxsaW5nUgdiaWxsaW5nEi0KB2xvZ2dpbmcYGyABKAsyEy5nb29nbGUuYXBpLkxvZ2dpbmdSB2xvZ2dpbmcSNgoKbW9uaXRvcmluZxgcIAEoCzIWLmdvb2dsZS5hcGkuTW9uaXRvcmluZ1IKbW9uaXRvcmluZxJJChFzeXN0ZW1fcGFyYW1ldGVycxgdIAEoCzIcLmdvb2dsZS5hcGkuU3lzdGVtUGFyYW1ldGVyc1IQc3lzdGVtUGFyYW1ldGVycxI3Cgtzb3VyY2VfaW5mbxglIAEoCzIWLmdvb2dsZS5hcGkuU291cmNlSW5mb1IKc291cmNlSW5mbxJHCg5jb25maWdfdmVyc2lvbhgUIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50MzJWYWx1ZUICGAFSDWNvbmZpZ1ZlcnNpb24='); + 'CgdTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSFAoFdGl0bGUYAiABKAlSBXRpdGxlEi4KE3' + 'Byb2R1Y2VyX3Byb2plY3RfaWQYFiABKAlSEXByb2R1Y2VyUHJvamVjdElkEg4KAmlkGCEgASgJ' + 'UgJpZBIoCgRhcGlzGAMgAygLMhQuZ29vZ2xlLnByb3RvYnVmLkFwaVIEYXBpcxIrCgV0eXBlcx' + 'gEIAMoCzIVLmdvb2dsZS5wcm90b2J1Zi5UeXBlUgV0eXBlcxIrCgVlbnVtcxgFIAMoCzIVLmdv' + 'b2dsZS5wcm90b2J1Zi5FbnVtUgVlbnVtcxI/Cg1kb2N1bWVudGF0aW9uGAYgASgLMhkuZ29vZ2' + 'xlLmFwaS5Eb2N1bWVudGF0aW9uUg1kb2N1bWVudGF0aW9uEi0KB2JhY2tlbmQYCCABKAsyEy5n' + 'b29nbGUuYXBpLkJhY2tlbmRSB2JhY2tlbmQSJAoEaHR0cBgJIAEoCzIQLmdvb2dsZS5hcGkuSH' + 'R0cFIEaHR0cBInCgVxdW90YRgKIAEoCzIRLmdvb2dsZS5hcGkuUXVvdGFSBXF1b3RhEkIKDmF1' + 'dGhlbnRpY2F0aW9uGAsgASgLMhouZ29vZ2xlLmFwaS5BdXRoZW50aWNhdGlvblIOYXV0aGVudG' + 'ljYXRpb24SLQoHY29udGV4dBgMIAEoCzITLmdvb2dsZS5hcGkuQ29udGV4dFIHY29udGV4dBIn' + 'CgV1c2FnZRgPIAEoCzIRLmdvb2dsZS5hcGkuVXNhZ2VSBXVzYWdlEjIKCWVuZHBvaW50cxgSIA' + 'MoCzIULmdvb2dsZS5hcGkuRW5kcG9pbnRSCWVuZHBvaW50cxItCgdjb250cm9sGBUgASgLMhMu' + 'Z29vZ2xlLmFwaS5Db250cm9sUgdjb250cm9sEi0KBGxvZ3MYFyADKAsyGS5nb29nbGUuYXBpLk' + 'xvZ0Rlc2NyaXB0b3JSBGxvZ3MSNgoHbWV0cmljcxgYIAMoCzIcLmdvb2dsZS5hcGkuTWV0cmlj' + 'RGVzY3JpcHRvclIHbWV0cmljcxJYChNtb25pdG9yZWRfcmVzb3VyY2VzGBkgAygLMicuZ29vZ2' + 'xlLmFwaS5Nb25pdG9yZWRSZXNvdXJjZURlc2NyaXB0b3JSEm1vbml0b3JlZFJlc291cmNlcxIt' + 'CgdiaWxsaW5nGBogASgLMhMuZ29vZ2xlLmFwaS5CaWxsaW5nUgdiaWxsaW5nEi0KB2xvZ2dpbm' + 'cYGyABKAsyEy5nb29nbGUuYXBpLkxvZ2dpbmdSB2xvZ2dpbmcSNgoKbW9uaXRvcmluZxgcIAEo' + 'CzIWLmdvb2dsZS5hcGkuTW9uaXRvcmluZ1IKbW9uaXRvcmluZxJJChFzeXN0ZW1fcGFyYW1ldG' + 'VycxgdIAEoCzIcLmdvb2dsZS5hcGkuU3lzdGVtUGFyYW1ldGVyc1IQc3lzdGVtUGFyYW1ldGVy' + 'cxI3Cgtzb3VyY2VfaW5mbxglIAEoCzIWLmdvb2dsZS5hcGkuU291cmNlSW5mb1IKc291cmNlSW' + '5mbxI2CgpwdWJsaXNoaW5nGC0gASgLMhYuZ29vZ2xlLmFwaS5QdWJsaXNoaW5nUgpwdWJsaXNo' + 'aW5nEkMKDmNvbmZpZ192ZXJzaW9uGBQgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbH' + 'VlUg1jb25maWdWZXJzaW9u'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pb.dart index c39d31f9..36d80c15 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pb.dart @@ -1,73 +1,70 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/check_error.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 '../../../rpc/status.pb.dart' as $0; - +import '../../../rpc/status.pb.dart' as $57; import 'check_error.pbenum.dart'; export 'check_error.pbenum.dart'; +/// Defines the errors to be returned in +/// [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors]. class CheckError extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CheckError', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..e( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'code', $pb.PbFieldType.OE, - defaultOrMaker: CheckError_Code.ERROR_CODE_UNSPECIFIED, - valueOf: CheckError_Code.valueOf, - enumValues: CheckError_Code.values) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'detail') - ..aOM<$0.Status>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'status', - subBuilder: $0.Status.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subject') - ..hasRequiredFields = false; - - CheckError._() : super(); factory CheckError({ CheckError_Code? code, $core.String? detail, - $0.Status? status, + $57.Status? status, $core.String? subject, }) { - final _result = create(); + final $result = create(); if (code != null) { - _result.code = code; + $result.code = code; } if (detail != null) { - _result.detail = detail; + $result.detail = detail; } if (status != null) { - _result.status = status; + $result.status = status; } if (subject != null) { - _result.subject = subject; + $result.subject = subject; } - return _result; + return $result; } + CheckError._() : super(); factory CheckError.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CheckError.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CheckError', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.OE, + defaultOrMaker: CheckError_Code.ERROR_CODE_UNSPECIFIED, + valueOf: CheckError_Code.valueOf, + enumValues: CheckError_Code.values) + ..aOS(2, _omitFieldNames ? '' : 'detail') + ..aOM<$57.Status>(3, _omitFieldNames ? '' : 'status', + subBuilder: $57.Status.create) + ..aOS(4, _omitFieldNames ? '' : 'subject') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -76,9 +73,10 @@ class CheckError extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') CheckError copyWith(void Function(CheckError) updates) => - super.copyWith((message) => updates(message as CheckError)) - as CheckError; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as CheckError)) as CheckError; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CheckError create() => CheckError._(); CheckError createEmptyInstance() => create(); @@ -88,6 +86,7 @@ class CheckError extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CheckError? _defaultInstance; + /// The error code. @$pb.TagNumber(1) CheckError_Code get code => $_getN(0); @$pb.TagNumber(1) @@ -100,6 +99,7 @@ class CheckError extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCode() => clearField(1); + /// Free-form text providing details on the error cause of the error. @$pb.TagNumber(2) $core.String get detail => $_getSZ(1); @$pb.TagNumber(2) @@ -112,10 +112,13 @@ class CheckError extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDetail() => clearField(2); + /// Contains public information about the check error. If available, + /// `status.code` will be non zero and client can propagate it out as public + /// error. @$pb.TagNumber(3) - $0.Status get status => $_getN(2); + $57.Status get status => $_getN(2); @$pb.TagNumber(3) - set status($0.Status v) { + set status($57.Status v) { setField(3, v); } @@ -124,8 +127,14 @@ class CheckError extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearStatus() => clearField(3); @$pb.TagNumber(3) - $0.Status ensureStatus() => $_ensure(2); + $57.Status ensureStatus() => $_ensure(2); + /// Subject to whom this error applies. See the specific code enum for more + /// details on this field. For example: + /// + /// - "project:" + /// - "folder:" + /// - "organization:" @$pb.TagNumber(4) $core.String get subject => $_getSZ(3); @$pb.TagNumber(4) @@ -138,3 +147,7 @@ class CheckError extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearSubject() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pbenum.dart index fd7db7e1..c546542e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pbenum.dart @@ -1,121 +1,63 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/check_error.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Error codes for Check responses. class CheckError_Code extends $pb.ProtobufEnum { - static const CheckError_Code ERROR_CODE_UNSPECIFIED = CheckError_Code._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ERROR_CODE_UNSPECIFIED'); - static const CheckError_Code NOT_FOUND = CheckError_Code._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NOT_FOUND'); - static const CheckError_Code PERMISSION_DENIED = CheckError_Code._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PERMISSION_DENIED'); - static const CheckError_Code RESOURCE_EXHAUSTED = CheckError_Code._( - 8, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RESOURCE_EXHAUSTED'); - static const CheckError_Code SERVICE_NOT_ACTIVATED = CheckError_Code._( - 104, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SERVICE_NOT_ACTIVATED'); - static const CheckError_Code BILLING_DISABLED = CheckError_Code._( - 107, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'BILLING_DISABLED'); - static const CheckError_Code PROJECT_DELETED = CheckError_Code._( - 108, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PROJECT_DELETED'); - static const CheckError_Code PROJECT_INVALID = CheckError_Code._( - 114, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PROJECT_INVALID'); - static const CheckError_Code CONSUMER_INVALID = CheckError_Code._( - 125, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CONSUMER_INVALID'); - static const CheckError_Code IP_ADDRESS_BLOCKED = CheckError_Code._( - 109, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'IP_ADDRESS_BLOCKED'); - static const CheckError_Code REFERER_BLOCKED = CheckError_Code._( - 110, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REFERER_BLOCKED'); - static const CheckError_Code CLIENT_APP_BLOCKED = CheckError_Code._( - 111, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CLIENT_APP_BLOCKED'); - static const CheckError_Code API_TARGET_BLOCKED = CheckError_Code._( - 122, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_TARGET_BLOCKED'); - static const CheckError_Code API_KEY_INVALID = CheckError_Code._( - 105, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_INVALID'); - static const CheckError_Code API_KEY_EXPIRED = CheckError_Code._( - 112, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_EXPIRED'); - static const CheckError_Code API_KEY_NOT_FOUND = CheckError_Code._( - 113, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_NOT_FOUND'); - static const CheckError_Code INVALID_CREDENTIAL = CheckError_Code._( - 123, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INVALID_CREDENTIAL'); + static const CheckError_Code ERROR_CODE_UNSPECIFIED = + CheckError_Code._(0, _omitEnumNames ? '' : 'ERROR_CODE_UNSPECIFIED'); + static const CheckError_Code NOT_FOUND = + CheckError_Code._(5, _omitEnumNames ? '' : 'NOT_FOUND'); + static const CheckError_Code PERMISSION_DENIED = + CheckError_Code._(7, _omitEnumNames ? '' : 'PERMISSION_DENIED'); + static const CheckError_Code RESOURCE_EXHAUSTED = + CheckError_Code._(8, _omitEnumNames ? '' : 'RESOURCE_EXHAUSTED'); + static const CheckError_Code SERVICE_NOT_ACTIVATED = + CheckError_Code._(104, _omitEnumNames ? '' : 'SERVICE_NOT_ACTIVATED'); + static const CheckError_Code BILLING_DISABLED = + CheckError_Code._(107, _omitEnumNames ? '' : 'BILLING_DISABLED'); + static const CheckError_Code PROJECT_DELETED = + CheckError_Code._(108, _omitEnumNames ? '' : 'PROJECT_DELETED'); + static const CheckError_Code PROJECT_INVALID = + CheckError_Code._(114, _omitEnumNames ? '' : 'PROJECT_INVALID'); + static const CheckError_Code CONSUMER_INVALID = + CheckError_Code._(125, _omitEnumNames ? '' : 'CONSUMER_INVALID'); + static const CheckError_Code IP_ADDRESS_BLOCKED = + CheckError_Code._(109, _omitEnumNames ? '' : 'IP_ADDRESS_BLOCKED'); + static const CheckError_Code REFERER_BLOCKED = + CheckError_Code._(110, _omitEnumNames ? '' : 'REFERER_BLOCKED'); + static const CheckError_Code CLIENT_APP_BLOCKED = + CheckError_Code._(111, _omitEnumNames ? '' : 'CLIENT_APP_BLOCKED'); + static const CheckError_Code API_TARGET_BLOCKED = + CheckError_Code._(122, _omitEnumNames ? '' : 'API_TARGET_BLOCKED'); + static const CheckError_Code API_KEY_INVALID = + CheckError_Code._(105, _omitEnumNames ? '' : 'API_KEY_INVALID'); + static const CheckError_Code API_KEY_EXPIRED = + CheckError_Code._(112, _omitEnumNames ? '' : 'API_KEY_EXPIRED'); + static const CheckError_Code API_KEY_NOT_FOUND = + CheckError_Code._(113, _omitEnumNames ? '' : 'API_KEY_NOT_FOUND'); + static const CheckError_Code INVALID_CREDENTIAL = + CheckError_Code._(123, _omitEnumNames ? '' : 'INVALID_CREDENTIAL'); static const CheckError_Code NAMESPACE_LOOKUP_UNAVAILABLE = CheckError_Code._( - 300, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NAMESPACE_LOOKUP_UNAVAILABLE'); + 300, _omitEnumNames ? '' : 'NAMESPACE_LOOKUP_UNAVAILABLE'); static const CheckError_Code SERVICE_STATUS_UNAVAILABLE = CheckError_Code._( - 301, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SERVICE_STATUS_UNAVAILABLE'); + 301, _omitEnumNames ? '' : 'SERVICE_STATUS_UNAVAILABLE'); static const CheckError_Code BILLING_STATUS_UNAVAILABLE = CheckError_Code._( - 302, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'BILLING_STATUS_UNAVAILABLE'); + 302, _omitEnumNames ? '' : 'BILLING_STATUS_UNAVAILABLE'); static const CheckError_Code CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE = - CheckError_Code._( - 305, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE'); + CheckError_Code._(305, + _omitEnumNames ? '' : 'CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE'); static const $core.List values = [ ERROR_CODE_UNSPECIFIED, @@ -147,3 +89,5 @@ class CheckError_Code extends $pb.ProtobufEnum { const CheckError_Code._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pbjson.dart index b55d2442..e93aaf70 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/check_error.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/check_error.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 checkErrorDescriptor instead') @@ -65,4 +69,16 @@ const CheckError_Code$json = { /// Descriptor for `CheckError`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List checkErrorDescriptor = $convert.base64Decode( - 'CgpDaGVja0Vycm9yEkEKBGNvZGUYASABKA4yLS5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLkNoZWNrRXJyb3IuQ29kZVIEY29kZRIYCgdzdWJqZWN0GAQgASgJUgdzdWJqZWN0EhYKBmRldGFpbBgCIAEoCVIGZGV0YWlsEioKBnN0YXR1cxgDIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzUgZzdGF0dXMinQQKBENvZGUSGgoWRVJST1JfQ09ERV9VTlNQRUNJRklFRBAAEg0KCU5PVF9GT1VORBAFEhUKEVBFUk1JU1NJT05fREVOSUVEEAcSFgoSUkVTT1VSQ0VfRVhIQVVTVEVEEAgSGQoVU0VSVklDRV9OT1RfQUNUSVZBVEVEEGgSFAoQQklMTElOR19ESVNBQkxFRBBrEhMKD1BST0pFQ1RfREVMRVRFRBBsEhMKD1BST0pFQ1RfSU5WQUxJRBByEhQKEENPTlNVTUVSX0lOVkFMSUQQfRIWChJJUF9BRERSRVNTX0JMT0NLRUQQbRITCg9SRUZFUkVSX0JMT0NLRUQQbhIWChJDTElFTlRfQVBQX0JMT0NLRUQQbxIWChJBUElfVEFSR0VUX0JMT0NLRUQQehITCg9BUElfS0VZX0lOVkFMSUQQaRITCg9BUElfS0VZX0VYUElSRUQQcBIVChFBUElfS0VZX05PVF9GT1VORBBxEhYKEklOVkFMSURfQ1JFREVOVElBTBB7EiEKHE5BTUVTUEFDRV9MT09LVVBfVU5BVkFJTEFCTEUQrAISHwoaU0VSVklDRV9TVEFUVVNfVU5BVkFJTEFCTEUQrQISHwoaQklMTElOR19TVEFUVVNfVU5BVkFJTEFCTEUQrgISLwoqQ0xPVURfUkVTT1VSQ0VfTUFOQUdFUl9CQUNLRU5EX1VOQVZBSUxBQkxFELEC'); + 'CgpDaGVja0Vycm9yEkEKBGNvZGUYASABKA4yLS5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLn' + 'YxLkNoZWNrRXJyb3IuQ29kZVIEY29kZRIYCgdzdWJqZWN0GAQgASgJUgdzdWJqZWN0EhYKBmRl' + 'dGFpbBgCIAEoCVIGZGV0YWlsEioKBnN0YXR1cxgDIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzUg' + 'ZzdGF0dXMinQQKBENvZGUSGgoWRVJST1JfQ09ERV9VTlNQRUNJRklFRBAAEg0KCU5PVF9GT1VO' + 'RBAFEhUKEVBFUk1JU1NJT05fREVOSUVEEAcSFgoSUkVTT1VSQ0VfRVhIQVVTVEVEEAgSGQoVU0' + 'VSVklDRV9OT1RfQUNUSVZBVEVEEGgSFAoQQklMTElOR19ESVNBQkxFRBBrEhMKD1BST0pFQ1Rf' + 'REVMRVRFRBBsEhMKD1BST0pFQ1RfSU5WQUxJRBByEhQKEENPTlNVTUVSX0lOVkFMSUQQfRIWCh' + 'JJUF9BRERSRVNTX0JMT0NLRUQQbRITCg9SRUZFUkVSX0JMT0NLRUQQbhIWChJDTElFTlRfQVBQ' + 'X0JMT0NLRUQQbxIWChJBUElfVEFSR0VUX0JMT0NLRUQQehITCg9BUElfS0VZX0lOVkFMSUQQaR' + 'ITCg9BUElfS0VZX0VYUElSRUQQcBIVChFBUElfS0VZX05PVF9GT1VORBBxEhYKEklOVkFMSURf' + 'Q1JFREVOVElBTBB7EiEKHE5BTUVTUEFDRV9MT09LVVBfVU5BVkFJTEFCTEUQrAISHwoaU0VSVk' + 'lDRV9TVEFUVVNfVU5BVkFJTEFCTEUQrQISHwoaQklMTElOR19TVEFUVVNfVU5BVkFJTEFCTEUQ' + 'rgISLwoqQ0xPVURfUkVTT1VSQ0VfTUFOQUdFUl9CQUNLRU5EX1VOQVZBSUxBQkxFELEC'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pb.dart index 92bb11cc..0bc62fbf 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pb.dart @@ -1,67 +1,59 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/distribution.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -class Distribution_LinearBuckets extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Distribution.LinearBuckets', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'numFiniteBuckets', - $pb.PbFieldType.O3) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'width', - $pb.PbFieldType.OD) - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', - $pb.PbFieldType.OD) - ..hasRequiredFields = false; +import '../../distribution.pb.dart' as $70; - Distribution_LinearBuckets._() : super(); +/// Describing buckets with constant width. +class Distribution_LinearBuckets extends $pb.GeneratedMessage { factory Distribution_LinearBuckets({ $core.int? numFiniteBuckets, $core.double? width, $core.double? offset, }) { - final _result = create(); + final $result = create(); if (numFiniteBuckets != null) { - _result.numFiniteBuckets = numFiniteBuckets; + $result.numFiniteBuckets = numFiniteBuckets; } if (width != null) { - _result.width = width; + $result.width = width; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } - return _result; + return $result; } + Distribution_LinearBuckets._() : super(); factory Distribution_LinearBuckets.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Distribution_LinearBuckets.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution.LinearBuckets', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..a<$core.int>( + 1, _omitFieldNames ? '' : 'numFiniteBuckets', $pb.PbFieldType.O3) + ..a<$core.double>(2, _omitFieldNames ? '' : 'width', $pb.PbFieldType.OD) + ..a<$core.double>(3, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.OD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -74,8 +66,10 @@ class Distribution_LinearBuckets extends $pb.GeneratedMessage { void Function(Distribution_LinearBuckets) updates) => super.copyWith( (message) => updates(message as Distribution_LinearBuckets)) - as Distribution_LinearBuckets; // ignore: deprecated_member_use + as Distribution_LinearBuckets; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution_LinearBuckets create() => Distribution_LinearBuckets._(); Distribution_LinearBuckets createEmptyInstance() => create(); @@ -86,6 +80,9 @@ class Distribution_LinearBuckets extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Distribution_LinearBuckets? _defaultInstance; + /// The number of finite buckets. With the underflow and overflow buckets, + /// the total number of buckets is `num_finite_buckets` + 2. + /// See comments on `bucket_options` for details. @$pb.TagNumber(1) $core.int get numFiniteBuckets => $_getIZ(0); @$pb.TagNumber(1) @@ -98,6 +95,10 @@ class Distribution_LinearBuckets extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearNumFiniteBuckets() => clearField(1); + /// The i'th linear bucket covers the interval + /// [offset + (i-1) * width, offset + i * width) + /// where i ranges from 1 to num_finite_buckets, inclusive. + /// Must be strictly positive. @$pb.TagNumber(2) $core.double get width => $_getN(1); @$pb.TagNumber(2) @@ -110,6 +111,9 @@ class Distribution_LinearBuckets extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearWidth() => clearField(2); + /// The i'th linear bucket covers the interval + /// [offset + (i-1) * width, offset + i * width) + /// where i ranges from 1 to num_finite_buckets, inclusive. @$pb.TagNumber(3) $core.double get offset => $_getN(2); @$pb.TagNumber(3) @@ -123,58 +127,45 @@ class Distribution_LinearBuckets extends $pb.GeneratedMessage { void clearOffset() => clearField(3); } +/// Describing buckets with exponentially growing width. class Distribution_ExponentialBuckets extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Distribution.ExponentialBuckets', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'numFiniteBuckets', - $pb.PbFieldType.O3) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'growthFactor', - $pb.PbFieldType.OD) - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'scale', - $pb.PbFieldType.OD) - ..hasRequiredFields = false; - - Distribution_ExponentialBuckets._() : super(); factory Distribution_ExponentialBuckets({ $core.int? numFiniteBuckets, $core.double? growthFactor, $core.double? scale, }) { - final _result = create(); + final $result = create(); if (numFiniteBuckets != null) { - _result.numFiniteBuckets = numFiniteBuckets; + $result.numFiniteBuckets = numFiniteBuckets; } if (growthFactor != null) { - _result.growthFactor = growthFactor; + $result.growthFactor = growthFactor; } if (scale != null) { - _result.scale = scale; + $result.scale = scale; } - return _result; + return $result; } + Distribution_ExponentialBuckets._() : super(); factory Distribution_ExponentialBuckets.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Distribution_ExponentialBuckets.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution.ExponentialBuckets', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..a<$core.int>( + 1, _omitFieldNames ? '' : 'numFiniteBuckets', $pb.PbFieldType.O3) + ..a<$core.double>( + 2, _omitFieldNames ? '' : 'growthFactor', $pb.PbFieldType.OD) + ..a<$core.double>(3, _omitFieldNames ? '' : 'scale', $pb.PbFieldType.OD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -187,8 +178,10 @@ class Distribution_ExponentialBuckets extends $pb.GeneratedMessage { void Function(Distribution_ExponentialBuckets) updates) => super.copyWith( (message) => updates(message as Distribution_ExponentialBuckets)) - as Distribution_ExponentialBuckets; // ignore: deprecated_member_use + as Distribution_ExponentialBuckets; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution_ExponentialBuckets create() => Distribution_ExponentialBuckets._(); @@ -201,6 +194,9 @@ class Distribution_ExponentialBuckets extends $pb.GeneratedMessage { create); static Distribution_ExponentialBuckets? _defaultInstance; + /// The number of finite buckets. With the underflow and overflow buckets, + /// the total number of buckets is `num_finite_buckets` + 2. + /// See comments on `bucket_options` for details. @$pb.TagNumber(1) $core.int get numFiniteBuckets => $_getIZ(0); @$pb.TagNumber(1) @@ -213,6 +209,10 @@ class Distribution_ExponentialBuckets extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearNumFiniteBuckets() => clearField(1); + /// The i'th exponential bucket covers the interval + /// [scale * growth_factor^(i-1), scale * growth_factor^i) + /// where i ranges from 1 to num_finite_buckets inclusive. + /// Must be larger than 1.0. @$pb.TagNumber(2) $core.double get growthFactor => $_getN(1); @$pb.TagNumber(2) @@ -225,6 +225,10 @@ class Distribution_ExponentialBuckets extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearGrowthFactor() => clearField(2); + /// The i'th exponential bucket covers the interval + /// [scale * growth_factor^(i-1), scale * growth_factor^i) + /// where i ranges from 1 to num_finite_buckets inclusive. + /// Must be > 0. @$pb.TagNumber(3) $core.double get scale => $_getN(2); @$pb.TagNumber(3) @@ -238,40 +242,33 @@ class Distribution_ExponentialBuckets extends $pb.GeneratedMessage { void clearScale() => clearField(3); } +/// Describing buckets with arbitrary user-provided width. class Distribution_ExplicitBuckets extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Distribution.ExplicitBuckets', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..p<$core.double>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bounds', - $pb.PbFieldType.PD) - ..hasRequiredFields = false; - - Distribution_ExplicitBuckets._() : super(); factory Distribution_ExplicitBuckets({ $core.Iterable<$core.double>? bounds, }) { - final _result = create(); + final $result = create(); if (bounds != null) { - _result.bounds.addAll(bounds); + $result.bounds.addAll(bounds); } - return _result; + return $result; } + Distribution_ExplicitBuckets._() : super(); factory Distribution_ExplicitBuckets.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Distribution_ExplicitBuckets.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution.ExplicitBuckets', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..p<$core.double>(1, _omitFieldNames ? '' : 'bounds', $pb.PbFieldType.KD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -284,8 +281,10 @@ class Distribution_ExplicitBuckets extends $pb.GeneratedMessage { void Function(Distribution_ExplicitBuckets) updates) => super.copyWith( (message) => updates(message as Distribution_ExplicitBuckets)) - as Distribution_ExplicitBuckets; // ignore: deprecated_member_use + as Distribution_ExplicitBuckets; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution_ExplicitBuckets create() => Distribution_ExplicitBuckets._(); @@ -297,6 +296,21 @@ class Distribution_ExplicitBuckets extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Distribution_ExplicitBuckets? _defaultInstance; + /// 'bound' is a list of strictly increasing boundaries between + /// buckets. Note that a list of length N-1 defines N buckets because + /// of fenceposting. See comments on `bucket_options` for details. + /// + /// The i'th finite bucket covers the interval + /// [bound[i-1], bound[i]) + /// where i ranges from 1 to bound_size() - 1. Note that there are no + /// finite buckets at all if 'bound' only contains a single element; in + /// that special case the single bound defines the boundary between the + /// underflow and overflow buckets. + /// + /// bucket number lower bound upper bound + /// i == 0 (underflow) -inf bound[i] + /// 0 < i < bound_size() bound[i-1] bound[i] + /// i == bound_size() (overflow) bound[i-1] +inf @$pb.TagNumber(1) $core.List<$core.double> get bounds => $_getList(0); } @@ -308,50 +322,15 @@ enum Distribution_BucketOption { notSet } +/// Distribution represents a frequency distribution of double-valued sample +/// points. It contains the size of the population of sample points plus +/// additional optional information: +/// +/// * the arithmetic mean of the samples +/// * the minimum and maximum of the samples +/// * the sum-squared-deviation of the samples, used to compute variance +/// * a histogram of the values of the sample points class Distribution extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Distribution_BucketOption> - _Distribution_BucketOptionByTag = { - 7: Distribution_BucketOption.linearBuckets, - 8: Distribution_BucketOption.exponentialBuckets, - 9: Distribution_BucketOption.explicitBuckets, - 0: Distribution_BucketOption.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Distribution', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..oo(0, [7, 8, 9]) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'count') - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mean', - $pb.PbFieldType.OD) - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'minimum', - $pb.PbFieldType.OD) - ..a<$core.double>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maximum', $pb.PbFieldType.OD) - ..a<$core.double>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sumOfSquaredDeviation', $pb.PbFieldType.OD) - ..p<$fixnum.Int64>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bucketCounts', $pb.PbFieldType.P6) - ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'linearBuckets', subBuilder: Distribution_LinearBuckets.create) - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'exponentialBuckets', subBuilder: Distribution_ExponentialBuckets.create) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'explicitBuckets', subBuilder: Distribution_ExplicitBuckets.create) - ..hasRequiredFields = false; - - Distribution._() : super(); factory Distribution({ $fixnum.Int64? count, $core.double? mean, @@ -362,43 +341,83 @@ class Distribution extends $pb.GeneratedMessage { Distribution_LinearBuckets? linearBuckets, Distribution_ExponentialBuckets? exponentialBuckets, Distribution_ExplicitBuckets? explicitBuckets, + $core.Iterable<$70.Distribution_Exemplar>? exemplars, }) { - final _result = create(); + final $result = create(); if (count != null) { - _result.count = count; + $result.count = count; } if (mean != null) { - _result.mean = mean; + $result.mean = mean; } if (minimum != null) { - _result.minimum = minimum; + $result.minimum = minimum; } if (maximum != null) { - _result.maximum = maximum; + $result.maximum = maximum; } if (sumOfSquaredDeviation != null) { - _result.sumOfSquaredDeviation = sumOfSquaredDeviation; + $result.sumOfSquaredDeviation = sumOfSquaredDeviation; } if (bucketCounts != null) { - _result.bucketCounts.addAll(bucketCounts); + $result.bucketCounts.addAll(bucketCounts); } if (linearBuckets != null) { - _result.linearBuckets = linearBuckets; + $result.linearBuckets = linearBuckets; } if (exponentialBuckets != null) { - _result.exponentialBuckets = exponentialBuckets; + $result.exponentialBuckets = exponentialBuckets; } if (explicitBuckets != null) { - _result.explicitBuckets = explicitBuckets; + $result.explicitBuckets = explicitBuckets; } - return _result; + if (exemplars != null) { + $result.exemplars.addAll(exemplars); + } + return $result; } + Distribution._() : super(); factory Distribution.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Distribution.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Distribution_BucketOption> + _Distribution_BucketOptionByTag = { + 7: Distribution_BucketOption.linearBuckets, + 8: Distribution_BucketOption.exponentialBuckets, + 9: Distribution_BucketOption.explicitBuckets, + 0: Distribution_BucketOption.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Distribution', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..oo(0, [7, 8, 9]) + ..aInt64(1, _omitFieldNames ? '' : 'count') + ..a<$core.double>(2, _omitFieldNames ? '' : 'mean', $pb.PbFieldType.OD) + ..a<$core.double>(3, _omitFieldNames ? '' : 'minimum', $pb.PbFieldType.OD) + ..a<$core.double>(4, _omitFieldNames ? '' : 'maximum', $pb.PbFieldType.OD) + ..a<$core.double>( + 5, _omitFieldNames ? '' : 'sumOfSquaredDeviation', $pb.PbFieldType.OD) + ..p<$fixnum.Int64>( + 6, _omitFieldNames ? '' : 'bucketCounts', $pb.PbFieldType.K6) + ..aOM(7, _omitFieldNames ? '' : 'linearBuckets', + subBuilder: Distribution_LinearBuckets.create) + ..aOM( + 8, _omitFieldNames ? '' : 'exponentialBuckets', + subBuilder: Distribution_ExponentialBuckets.create) + ..aOM( + 9, _omitFieldNames ? '' : 'explicitBuckets', + subBuilder: Distribution_ExplicitBuckets.create) + ..pc<$70.Distribution_Exemplar>( + 10, _omitFieldNames ? '' : 'exemplars', $pb.PbFieldType.PM, + subBuilder: $70.Distribution_Exemplar.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') @@ -408,8 +427,10 @@ class Distribution extends $pb.GeneratedMessage { 'Will be removed in next major version') Distribution copyWith(void Function(Distribution) updates) => super.copyWith((message) => updates(message as Distribution)) - as Distribution; // ignore: deprecated_member_use + as Distribution; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Distribution create() => Distribution._(); Distribution createEmptyInstance() => create(); @@ -424,6 +445,7 @@ class Distribution extends $pb.GeneratedMessage { _Distribution_BucketOptionByTag[$_whichOneof(0)]!; void clearBucketOption() => clearField($_whichOneof(0)); + /// The total number of samples in the distribution. Must be >= 0. @$pb.TagNumber(1) $fixnum.Int64 get count => $_getI64(0); @$pb.TagNumber(1) @@ -436,6 +458,8 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCount() => clearField(1); + /// The arithmetic mean of the samples in the distribution. If `count` is + /// zero then this field must be zero. @$pb.TagNumber(2) $core.double get mean => $_getN(1); @$pb.TagNumber(2) @@ -448,6 +472,7 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearMean() => clearField(2); + /// The minimum of the population of values. Ignored if `count` is zero. @$pb.TagNumber(3) $core.double get minimum => $_getN(2); @$pb.TagNumber(3) @@ -460,6 +485,7 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearMinimum() => clearField(3); + /// The maximum of the population of values. Ignored if `count` is zero. @$pb.TagNumber(4) $core.double get maximum => $_getN(3); @$pb.TagNumber(4) @@ -472,6 +498,10 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearMaximum() => clearField(4); + /// The sum of squared deviations from the mean: + /// Sum[i=1..count]((x_i - mean)^2) + /// where each x_i is a sample values. If `count` is zero then this field + /// must be zero, otherwise validation of the request fails. @$pb.TagNumber(5) $core.double get sumOfSquaredDeviation => $_getN(4); @$pb.TagNumber(5) @@ -484,9 +514,21 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearSumOfSquaredDeviation() => clearField(5); + /// The number of samples in each histogram bucket. `bucket_counts` are + /// optional. If present, they must sum to the `count` value. + /// + /// The buckets are defined below in `bucket_option`. There are N buckets. + /// `bucket_counts[0]` is the number of samples in the underflow bucket. + /// `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples + /// in each of the finite buckets. And `bucket_counts[N] is the number + /// of samples in the overflow bucket. See the comments of `bucket_option` + /// below for more details. + /// + /// Any suffix of trailing zeros may be omitted. @$pb.TagNumber(6) $core.List<$fixnum.Int64> get bucketCounts => $_getList(5); + /// Buckets with constant width. @$pb.TagNumber(7) Distribution_LinearBuckets get linearBuckets => $_getN(6); @$pb.TagNumber(7) @@ -501,6 +543,7 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(7) Distribution_LinearBuckets ensureLinearBuckets() => $_ensure(6); + /// Buckets with exponentially growing width. @$pb.TagNumber(8) Distribution_ExponentialBuckets get exponentialBuckets => $_getN(7); @$pb.TagNumber(8) @@ -515,6 +558,7 @@ class Distribution extends $pb.GeneratedMessage { @$pb.TagNumber(8) Distribution_ExponentialBuckets ensureExponentialBuckets() => $_ensure(7); + /// Buckets with arbitrary user-provided width. @$pb.TagNumber(9) Distribution_ExplicitBuckets get explicitBuckets => $_getN(8); @$pb.TagNumber(9) @@ -528,4 +572,12 @@ class Distribution extends $pb.GeneratedMessage { void clearExplicitBuckets() => clearField(9); @$pb.TagNumber(9) Distribution_ExplicitBuckets ensureExplicitBuckets() => $_ensure(8); + + /// Example points. Must be in increasing order of `value` field. + @$pb.TagNumber(10) + $core.List<$70.Distribution_Exemplar> get exemplars => $_getList(9); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pbenum.dart index 15298508..97b512d4 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/distribution.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pbjson.dart index fe036814..ea9c528f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/distribution.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/distribution.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 distributionDescriptor instead') @@ -52,6 +56,14 @@ const Distribution$json = { '9': 0, '10': 'explicitBuckets' }, + { + '1': 'exemplars', + '3': 10, + '4': 3, + '5': 11, + '6': '.google.api.Distribution.Exemplar', + '10': 'exemplars' + }, ], '3': [ Distribution_LinearBuckets$json, @@ -105,4 +117,19 @@ const Distribution_ExplicitBuckets$json = { /// Descriptor for `Distribution`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List distributionDescriptor = $convert.base64Decode( - 'CgxEaXN0cmlidXRpb24SFAoFY291bnQYASABKANSBWNvdW50EhIKBG1lYW4YAiABKAFSBG1lYW4SGAoHbWluaW11bRgDIAEoAVIHbWluaW11bRIYCgdtYXhpbXVtGAQgASgBUgdtYXhpbXVtEjcKGHN1bV9vZl9zcXVhcmVkX2RldmlhdGlvbhgFIAEoAVIVc3VtT2ZTcXVhcmVkRGV2aWF0aW9uEiMKDWJ1Y2tldF9jb3VudHMYBiADKANSDGJ1Y2tldENvdW50cxJhCg5saW5lYXJfYnVja2V0cxgHIAEoCzI4Lmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuRGlzdHJpYnV0aW9uLkxpbmVhckJ1Y2tldHNIAFINbGluZWFyQnVja2V0cxJwChNleHBvbmVudGlhbF9idWNrZXRzGAggASgLMj0uZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5EaXN0cmlidXRpb24uRXhwb25lbnRpYWxCdWNrZXRzSABSEmV4cG9uZW50aWFsQnVja2V0cxJnChBleHBsaWNpdF9idWNrZXRzGAkgASgLMjouZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5EaXN0cmlidXRpb24uRXhwbGljaXRCdWNrZXRzSABSD2V4cGxpY2l0QnVja2V0cxprCg1MaW5lYXJCdWNrZXRzEiwKEm51bV9maW5pdGVfYnVja2V0cxgBIAEoBVIQbnVtRmluaXRlQnVja2V0cxIUCgV3aWR0aBgCIAEoAVIFd2lkdGgSFgoGb2Zmc2V0GAMgASgBUgZvZmZzZXQafQoSRXhwb25lbnRpYWxCdWNrZXRzEiwKEm51bV9maW5pdGVfYnVja2V0cxgBIAEoBVIQbnVtRmluaXRlQnVja2V0cxIjCg1ncm93dGhfZmFjdG9yGAIgASgBUgxncm93dGhGYWN0b3ISFAoFc2NhbGUYAyABKAFSBXNjYWxlGikKD0V4cGxpY2l0QnVja2V0cxIWCgZib3VuZHMYASADKAFSBmJvdW5kc0IPCg1idWNrZXRfb3B0aW9u'); + 'CgxEaXN0cmlidXRpb24SFAoFY291bnQYASABKANSBWNvdW50EhIKBG1lYW4YAiABKAFSBG1lYW' + '4SGAoHbWluaW11bRgDIAEoAVIHbWluaW11bRIYCgdtYXhpbXVtGAQgASgBUgdtYXhpbXVtEjcK' + 'GHN1bV9vZl9zcXVhcmVkX2RldmlhdGlvbhgFIAEoAVIVc3VtT2ZTcXVhcmVkRGV2aWF0aW9uEi' + 'MKDWJ1Y2tldF9jb3VudHMYBiADKANSDGJ1Y2tldENvdW50cxJhCg5saW5lYXJfYnVja2V0cxgH' + 'IAEoCzI4Lmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuRGlzdHJpYnV0aW9uLkxpbmVhck' + 'J1Y2tldHNIAFINbGluZWFyQnVja2V0cxJwChNleHBvbmVudGlhbF9idWNrZXRzGAggASgLMj0u' + 'Z29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5EaXN0cmlidXRpb24uRXhwb25lbnRpYWxCdW' + 'NrZXRzSABSEmV4cG9uZW50aWFsQnVja2V0cxJnChBleHBsaWNpdF9idWNrZXRzGAkgASgLMjou' + 'Z29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5EaXN0cmlidXRpb24uRXhwbGljaXRCdWNrZX' + 'RzSABSD2V4cGxpY2l0QnVja2V0cxI/CglleGVtcGxhcnMYCiADKAsyIS5nb29nbGUuYXBpLkRp' + 'c3RyaWJ1dGlvbi5FeGVtcGxhclIJZXhlbXBsYXJzGmsKDUxpbmVhckJ1Y2tldHMSLAoSbnVtX2' + 'Zpbml0ZV9idWNrZXRzGAEgASgFUhBudW1GaW5pdGVCdWNrZXRzEhQKBXdpZHRoGAIgASgBUgV3' + 'aWR0aBIWCgZvZmZzZXQYAyABKAFSBm9mZnNldBp9ChJFeHBvbmVudGlhbEJ1Y2tldHMSLAoSbn' + 'VtX2Zpbml0ZV9idWNrZXRzGAEgASgFUhBudW1GaW5pdGVCdWNrZXRzEiMKDWdyb3d0aF9mYWN0' + 'b3IYAiABKAFSDGdyb3d0aEZhY3RvchIUCgVzY2FsZRgDIAEoAVIFc2NhbGUaKQoPRXhwbGljaX' + 'RCdWNrZXRzEhYKBmJvdW5kcxgBIAMoAVIGYm91bmRzQg8KDWJ1Y2tldF9vcHRpb24='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pb.dart index 83a08c6f..8d759cf0 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pb.dart @@ -1,60 +1,25 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/http_request.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../protobuf/duration.pb.dart' as $0; +import '../../../protobuf/duration.pb.dart' as $51; +/// A common proto for logging HTTP requests. Only contains semantics +/// defined by the HTTP specification. Product-specific logging +/// information MUST be defined in a separate message. class HttpRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'HttpRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requestMethod') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requestUrl') - ..aInt64( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requestSize') - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'status', - $pb.PbFieldType.O3) - ..aInt64(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'responseSize') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'userAgent') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteIp') - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'referer') - ..aOB(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cacheHit') - ..aOB(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cacheValidatedWithOriginServer') - ..aOB(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cacheLookup') - ..aInt64(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cacheFillBytes') - ..aOS(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serverIp') - ..aOM<$0.Duration>(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'latency', subBuilder: $0.Duration.create) - ..aOS(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'protocol') - ..hasRequiredFields = false; - - HttpRequest._() : super(); factory HttpRequest({ $core.String? requestMethod, $core.String? requestUrl, @@ -69,63 +34,88 @@ class HttpRequest extends $pb.GeneratedMessage { $core.bool? cacheLookup, $fixnum.Int64? cacheFillBytes, $core.String? serverIp, - $0.Duration? latency, + $51.Duration? latency, $core.String? protocol, }) { - final _result = create(); + final $result = create(); if (requestMethod != null) { - _result.requestMethod = requestMethod; + $result.requestMethod = requestMethod; } if (requestUrl != null) { - _result.requestUrl = requestUrl; + $result.requestUrl = requestUrl; } if (requestSize != null) { - _result.requestSize = requestSize; + $result.requestSize = requestSize; } if (status != null) { - _result.status = status; + $result.status = status; } if (responseSize != null) { - _result.responseSize = responseSize; + $result.responseSize = responseSize; } if (userAgent != null) { - _result.userAgent = userAgent; + $result.userAgent = userAgent; } if (remoteIp != null) { - _result.remoteIp = remoteIp; + $result.remoteIp = remoteIp; } if (referer != null) { - _result.referer = referer; + $result.referer = referer; } if (cacheHit != null) { - _result.cacheHit = cacheHit; + $result.cacheHit = cacheHit; } if (cacheValidatedWithOriginServer != null) { - _result.cacheValidatedWithOriginServer = cacheValidatedWithOriginServer; + $result.cacheValidatedWithOriginServer = cacheValidatedWithOriginServer; } if (cacheLookup != null) { - _result.cacheLookup = cacheLookup; + $result.cacheLookup = cacheLookup; } if (cacheFillBytes != null) { - _result.cacheFillBytes = cacheFillBytes; + $result.cacheFillBytes = cacheFillBytes; } if (serverIp != null) { - _result.serverIp = serverIp; + $result.serverIp = serverIp; } if (latency != null) { - _result.latency = latency; + $result.latency = latency; } if (protocol != null) { - _result.protocol = protocol; + $result.protocol = protocol; } - return _result; + return $result; } + HttpRequest._() : super(); factory HttpRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory HttpRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'HttpRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'requestMethod') + ..aOS(2, _omitFieldNames ? '' : 'requestUrl') + ..aInt64(3, _omitFieldNames ? '' : 'requestSize') + ..a<$core.int>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.O3) + ..aInt64(5, _omitFieldNames ? '' : 'responseSize') + ..aOS(6, _omitFieldNames ? '' : 'userAgent') + ..aOS(7, _omitFieldNames ? '' : 'remoteIp') + ..aOS(8, _omitFieldNames ? '' : 'referer') + ..aOB(9, _omitFieldNames ? '' : 'cacheHit') + ..aOB(10, _omitFieldNames ? '' : 'cacheValidatedWithOriginServer') + ..aOB(11, _omitFieldNames ? '' : 'cacheLookup') + ..aInt64(12, _omitFieldNames ? '' : 'cacheFillBytes') + ..aOS(13, _omitFieldNames ? '' : 'serverIp') + ..aOM<$51.Duration>(14, _omitFieldNames ? '' : 'latency', + subBuilder: $51.Duration.create) + ..aOS(15, _omitFieldNames ? '' : 'protocol') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -135,8 +125,10 @@ class HttpRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') HttpRequest copyWith(void Function(HttpRequest) updates) => super.copyWith((message) => updates(message as HttpRequest)) - as HttpRequest; // ignore: deprecated_member_use + as HttpRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static HttpRequest create() => HttpRequest._(); HttpRequest createEmptyInstance() => create(); @@ -146,6 +138,7 @@ class HttpRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static HttpRequest? _defaultInstance; + /// The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. @$pb.TagNumber(1) $core.String get requestMethod => $_getSZ(0); @$pb.TagNumber(1) @@ -158,6 +151,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearRequestMethod() => clearField(1); + /// The scheme (http, https), the host name, the path, and the query + /// portion of the URL that was requested. + /// Example: `"http://example.com/some/info?color=red"`. @$pb.TagNumber(2) $core.String get requestUrl => $_getSZ(1); @$pb.TagNumber(2) @@ -170,6 +166,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRequestUrl() => clearField(2); + /// The size of the HTTP request message in bytes, including the request + /// headers and the request body. @$pb.TagNumber(3) $fixnum.Int64 get requestSize => $_getI64(2); @$pb.TagNumber(3) @@ -182,6 +180,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearRequestSize() => clearField(3); + /// The response code indicating the status of the response. + /// Examples: 200, 404. @$pb.TagNumber(4) $core.int get status => $_getIZ(3); @$pb.TagNumber(4) @@ -194,6 +194,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearStatus() => clearField(4); + /// The size of the HTTP response message sent back to the client, in bytes, + /// including the response headers and the response body. @$pb.TagNumber(5) $fixnum.Int64 get responseSize => $_getI64(4); @$pb.TagNumber(5) @@ -206,6 +208,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearResponseSize() => clearField(5); + /// The user agent sent by the client. Example: + /// `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + /// CLR 1.0.3705)"`. @$pb.TagNumber(6) $core.String get userAgent => $_getSZ(5); @$pb.TagNumber(6) @@ -218,6 +223,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearUserAgent() => clearField(6); + /// The IP address (IPv4 or IPv6) of the client that issued the HTTP + /// request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. @$pb.TagNumber(7) $core.String get remoteIp => $_getSZ(6); @$pb.TagNumber(7) @@ -230,6 +237,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearRemoteIp() => clearField(7); + /// The referer URL of the request, as defined in + /// [HTTP/1.1 Header Field + /// Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). @$pb.TagNumber(8) $core.String get referer => $_getSZ(7); @$pb.TagNumber(8) @@ -242,6 +252,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearReferer() => clearField(8); + /// Whether or not an entity was served from cache + /// (with or without validation). @$pb.TagNumber(9) $core.bool get cacheHit => $_getBF(8); @$pb.TagNumber(9) @@ -254,6 +266,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearCacheHit() => clearField(9); + /// Whether or not the response was validated with the origin server before + /// being served from cache. This field is only meaningful if `cache_hit` is + /// True. @$pb.TagNumber(10) $core.bool get cacheValidatedWithOriginServer => $_getBF(9); @$pb.TagNumber(10) @@ -266,6 +281,7 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearCacheValidatedWithOriginServer() => clearField(10); + /// Whether or not a cache lookup was attempted. @$pb.TagNumber(11) $core.bool get cacheLookup => $_getBF(10); @$pb.TagNumber(11) @@ -278,6 +294,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearCacheLookup() => clearField(11); + /// The number of HTTP response bytes inserted into cache. Set only when a + /// cache fill was attempted. @$pb.TagNumber(12) $fixnum.Int64 get cacheFillBytes => $_getI64(11); @$pb.TagNumber(12) @@ -290,6 +308,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearCacheFillBytes() => clearField(12); + /// The IP address (IPv4 or IPv6) of the origin server that the request was + /// sent to. @$pb.TagNumber(13) $core.String get serverIp => $_getSZ(12); @$pb.TagNumber(13) @@ -302,10 +322,12 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(13) void clearServerIp() => clearField(13); + /// The request processing latency on the server, from the time the request was + /// received until the response was sent. @$pb.TagNumber(14) - $0.Duration get latency => $_getN(13); + $51.Duration get latency => $_getN(13); @$pb.TagNumber(14) - set latency($0.Duration v) { + set latency($51.Duration v) { setField(14, v); } @@ -314,8 +336,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearLatency() => clearField(14); @$pb.TagNumber(14) - $0.Duration ensureLatency() => $_ensure(13); + $51.Duration ensureLatency() => $_ensure(13); + /// Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" @$pb.TagNumber(15) $core.String get protocol => $_getSZ(14); @$pb.TagNumber(15) @@ -328,3 +351,7 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearProtocol() => clearField(15); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pbenum.dart index 514dba14..934b5665 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/http_request.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pbjson.dart index 81924eb0..e2a6e627 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/http_request.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/http_request.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 httpRequestDescriptor instead') @@ -46,4 +50,14 @@ const HttpRequest$json = { /// Descriptor for `HttpRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List httpRequestDescriptor = $convert.base64Decode( - 'CgtIdHRwUmVxdWVzdBIlCg5yZXF1ZXN0X21ldGhvZBgBIAEoCVINcmVxdWVzdE1ldGhvZBIfCgtyZXF1ZXN0X3VybBgCIAEoCVIKcmVxdWVzdFVybBIhCgxyZXF1ZXN0X3NpemUYAyABKANSC3JlcXVlc3RTaXplEhYKBnN0YXR1cxgEIAEoBVIGc3RhdHVzEiMKDXJlc3BvbnNlX3NpemUYBSABKANSDHJlc3BvbnNlU2l6ZRIdCgp1c2VyX2FnZW50GAYgASgJUgl1c2VyQWdlbnQSGwoJcmVtb3RlX2lwGAcgASgJUghyZW1vdGVJcBIbCglzZXJ2ZXJfaXAYDSABKAlSCHNlcnZlcklwEhgKB3JlZmVyZXIYCCABKAlSB3JlZmVyZXISMwoHbGF0ZW5jeRgOIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIHbGF0ZW5jeRIhCgxjYWNoZV9sb29rdXAYCyABKAhSC2NhY2hlTG9va3VwEhsKCWNhY2hlX2hpdBgJIAEoCFIIY2FjaGVIaXQSSgoiY2FjaGVfdmFsaWRhdGVkX3dpdGhfb3JpZ2luX3NlcnZlchgKIAEoCFIeY2FjaGVWYWxpZGF0ZWRXaXRoT3JpZ2luU2VydmVyEigKEGNhY2hlX2ZpbGxfYnl0ZXMYDCABKANSDmNhY2hlRmlsbEJ5dGVzEhoKCHByb3RvY29sGA8gASgJUghwcm90b2NvbA=='); + 'CgtIdHRwUmVxdWVzdBIlCg5yZXF1ZXN0X21ldGhvZBgBIAEoCVINcmVxdWVzdE1ldGhvZBIfCg' + 'tyZXF1ZXN0X3VybBgCIAEoCVIKcmVxdWVzdFVybBIhCgxyZXF1ZXN0X3NpemUYAyABKANSC3Jl' + 'cXVlc3RTaXplEhYKBnN0YXR1cxgEIAEoBVIGc3RhdHVzEiMKDXJlc3BvbnNlX3NpemUYBSABKA' + 'NSDHJlc3BvbnNlU2l6ZRIdCgp1c2VyX2FnZW50GAYgASgJUgl1c2VyQWdlbnQSGwoJcmVtb3Rl' + 'X2lwGAcgASgJUghyZW1vdGVJcBIbCglzZXJ2ZXJfaXAYDSABKAlSCHNlcnZlcklwEhgKB3JlZm' + 'VyZXIYCCABKAlSB3JlZmVyZXISMwoHbGF0ZW5jeRgOIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5E' + 'dXJhdGlvblIHbGF0ZW5jeRIhCgxjYWNoZV9sb29rdXAYCyABKAhSC2NhY2hlTG9va3VwEhsKCW' + 'NhY2hlX2hpdBgJIAEoCFIIY2FjaGVIaXQSSgoiY2FjaGVfdmFsaWRhdGVkX3dpdGhfb3JpZ2lu' + 'X3NlcnZlchgKIAEoCFIeY2FjaGVWYWxpZGF0ZWRXaXRoT3JpZ2luU2VydmVyEigKEGNhY2hlX2' + 'ZpbGxfYnl0ZXMYDCABKANSDmNhY2hlRmlsbEJ5dGVzEhoKCHByb3RvY29sGA8gASgJUghwcm90' + 'b2NvbA=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pb.dart index ab0abc0d..865c7c64 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pb.dart @@ -1,121 +1,130 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/log_entry.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../protobuf/any.pb.dart' as $0; -import '../../../protobuf/struct.pb.dart' as $1; -import '../../../protobuf/timestamp.pb.dart' as $2; -import 'http_request.pb.dart' as $3; - -import '../../../logging/type/log_severity.pbenum.dart' as $4; +import '../../../logging/type/log_severity.pbenum.dart' as $64; +import '../../../protobuf/any.pb.dart' as $49; +import '../../../protobuf/struct.pb.dart' as $48; +import '../../../protobuf/timestamp.pb.dart' as $50; +import 'http_request.pb.dart' as $107; enum LogEntry_Payload { protoPayload, textPayload, structPayload, notSet } +/// An individual log entry. class LogEntry extends $pb.GeneratedMessage { - static const $core.Map<$core.int, LogEntry_Payload> _LogEntry_PayloadByTag = { - 2: LogEntry_Payload.protoPayload, - 3: LogEntry_Payload.textPayload, - 6: LogEntry_Payload.structPayload, - 0: LogEntry_Payload.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogEntry', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..oo(0, [2, 3, 6]) - ..aOM<$0.Any>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'protoPayload', - subBuilder: $0.Any.create) - ..aOS(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'textPayload') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'insertId') - ..aOM<$1.Struct>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'structPayload', subBuilder: $1.Struct.create) - ..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') - ..aOM<$2.Timestamp>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timestamp', subBuilder: $2.Timestamp.create) - ..e<$4.LogSeverity>(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'severity', $pb.PbFieldType.OE, defaultOrMaker: $4.LogSeverity.DEFAULT, valueOf: $4.LogSeverity.valueOf, enumValues: $4.LogSeverity.values) - ..m<$core.String, $core.String>(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', entryClassName: 'LogEntry.LabelsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.api.servicecontrol.v1')) - ..aOM<$3.HttpRequest>(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'httpRequest', subBuilder: $3.HttpRequest.create) - ..aOS(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'trace') - ..aOM(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'operation', subBuilder: LogEntryOperation.create) - ..aOM(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sourceLocation', subBuilder: LogEntrySourceLocation.create) - ..hasRequiredFields = false; - - LogEntry._() : super(); factory LogEntry({ - $0.Any? protoPayload, + $49.Any? protoPayload, $core.String? textPayload, $core.String? insertId, - $1.Struct? structPayload, + $48.Struct? structPayload, $core.String? name, - $2.Timestamp? timestamp, - $4.LogSeverity? severity, + $50.Timestamp? timestamp, + $64.LogSeverity? severity, $core.Map<$core.String, $core.String>? labels, - $3.HttpRequest? httpRequest, + $107.HttpRequest? httpRequest, $core.String? trace, LogEntryOperation? operation, LogEntrySourceLocation? sourceLocation, }) { - final _result = create(); + final $result = create(); if (protoPayload != null) { - _result.protoPayload = protoPayload; + $result.protoPayload = protoPayload; } if (textPayload != null) { - _result.textPayload = textPayload; + $result.textPayload = textPayload; } if (insertId != null) { - _result.insertId = insertId; + $result.insertId = insertId; } if (structPayload != null) { - _result.structPayload = structPayload; + $result.structPayload = structPayload; } if (name != null) { - _result.name = name; + $result.name = name; } if (timestamp != null) { - _result.timestamp = timestamp; + $result.timestamp = timestamp; } if (severity != null) { - _result.severity = severity; + $result.severity = severity; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (httpRequest != null) { - _result.httpRequest = httpRequest; + $result.httpRequest = httpRequest; } if (trace != null) { - _result.trace = trace; + $result.trace = trace; } if (operation != null) { - _result.operation = operation; + $result.operation = operation; } if (sourceLocation != null) { - _result.sourceLocation = sourceLocation; + $result.sourceLocation = sourceLocation; } - return _result; + return $result; } + LogEntry._() : super(); factory LogEntry.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogEntry.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, LogEntry_Payload> _LogEntry_PayloadByTag = { + 2: LogEntry_Payload.protoPayload, + 3: LogEntry_Payload.textPayload, + 6: LogEntry_Payload.structPayload, + 0: LogEntry_Payload.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogEntry', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..oo(0, [2, 3, 6]) + ..aOM<$49.Any>(2, _omitFieldNames ? '' : 'protoPayload', + subBuilder: $49.Any.create) + ..aOS(3, _omitFieldNames ? '' : 'textPayload') + ..aOS(4, _omitFieldNames ? '' : 'insertId') + ..aOM<$48.Struct>(6, _omitFieldNames ? '' : 'structPayload', + subBuilder: $48.Struct.create) + ..aOS(10, _omitFieldNames ? '' : 'name') + ..aOM<$50.Timestamp>(11, _omitFieldNames ? '' : 'timestamp', + subBuilder: $50.Timestamp.create) + ..e<$64.LogSeverity>( + 12, _omitFieldNames ? '' : 'severity', $pb.PbFieldType.OE, + defaultOrMaker: $64.LogSeverity.DEFAULT, + valueOf: $64.LogSeverity.valueOf, + enumValues: $64.LogSeverity.values) + ..m<$core.String, $core.String>(13, _omitFieldNames ? '' : 'labels', + entryClassName: 'LogEntry.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.servicecontrol.v1')) + ..aOM<$107.HttpRequest>(14, _omitFieldNames ? '' : 'httpRequest', + subBuilder: $107.HttpRequest.create) + ..aOS(15, _omitFieldNames ? '' : 'trace') + ..aOM(16, _omitFieldNames ? '' : 'operation', + subBuilder: LogEntryOperation.create) + ..aOM(17, _omitFieldNames ? '' : 'sourceLocation', + subBuilder: LogEntrySourceLocation.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') @@ -124,9 +133,10 @@ class LogEntry extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') LogEntry copyWith(void Function(LogEntry) updates) => - super.copyWith((message) => updates(message as LogEntry)) - as LogEntry; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as LogEntry)) as LogEntry; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogEntry create() => LogEntry._(); LogEntry createEmptyInstance() => create(); @@ -139,10 +149,13 @@ class LogEntry extends $pb.GeneratedMessage { LogEntry_Payload whichPayload() => _LogEntry_PayloadByTag[$_whichOneof(0)]!; void clearPayload() => clearField($_whichOneof(0)); + /// The log entry payload, represented as a protocol buffer that is + /// expressed as a JSON object. The only accepted type currently is + /// [AuditLog][google.cloud.audit.AuditLog]. @$pb.TagNumber(2) - $0.Any get protoPayload => $_getN(0); + $49.Any get protoPayload => $_getN(0); @$pb.TagNumber(2) - set protoPayload($0.Any v) { + set protoPayload($49.Any v) { setField(2, v); } @@ -151,8 +164,9 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearProtoPayload() => clearField(2); @$pb.TagNumber(2) - $0.Any ensureProtoPayload() => $_ensure(0); + $49.Any ensureProtoPayload() => $_ensure(0); + /// The log entry payload, represented as a Unicode string (UTF-8). @$pb.TagNumber(3) $core.String get textPayload => $_getSZ(1); @$pb.TagNumber(3) @@ -165,6 +179,8 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearTextPayload() => clearField(3); + /// A unique ID for the log entry used for deduplication. If omitted, + /// the implementation will generate one based on operation_id. @$pb.TagNumber(4) $core.String get insertId => $_getSZ(2); @$pb.TagNumber(4) @@ -177,10 +193,12 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearInsertId() => clearField(4); + /// The log entry payload, represented as a structure that + /// is expressed as a JSON object. @$pb.TagNumber(6) - $1.Struct get structPayload => $_getN(3); + $48.Struct get structPayload => $_getN(3); @$pb.TagNumber(6) - set structPayload($1.Struct v) { + set structPayload($48.Struct v) { setField(6, v); } @@ -189,8 +207,10 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearStructPayload() => clearField(6); @$pb.TagNumber(6) - $1.Struct ensureStructPayload() => $_ensure(3); + $48.Struct ensureStructPayload() => $_ensure(3); + /// Required. The log to which this log entry belongs. Examples: `"syslog"`, + /// `"book_log"`. @$pb.TagNumber(10) $core.String get name => $_getSZ(4); @$pb.TagNumber(10) @@ -203,10 +223,12 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearName() => clearField(10); + /// The time the event described by the log entry occurred. If + /// omitted, defaults to operation start time. @$pb.TagNumber(11) - $2.Timestamp get timestamp => $_getN(5); + $50.Timestamp get timestamp => $_getN(5); @$pb.TagNumber(11) - set timestamp($2.Timestamp v) { + set timestamp($50.Timestamp v) { setField(11, v); } @@ -215,12 +237,14 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearTimestamp() => clearField(11); @$pb.TagNumber(11) - $2.Timestamp ensureTimestamp() => $_ensure(5); + $50.Timestamp ensureTimestamp() => $_ensure(5); + /// The severity of the log entry. The default value is + /// `LogSeverity.DEFAULT`. @$pb.TagNumber(12) - $4.LogSeverity get severity => $_getN(6); + $64.LogSeverity get severity => $_getN(6); @$pb.TagNumber(12) - set severity($4.LogSeverity v) { + set severity($64.LogSeverity v) { setField(12, v); } @@ -229,13 +253,17 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearSeverity() => clearField(12); + /// A set of user-defined (key, value) data that provides additional + /// information about the log entry. @$pb.TagNumber(13) $core.Map<$core.String, $core.String> get labels => $_getMap(7); + /// Optional. Information about the HTTP request associated with this + /// log entry, if applicable. @$pb.TagNumber(14) - $3.HttpRequest get httpRequest => $_getN(8); + $107.HttpRequest get httpRequest => $_getN(8); @$pb.TagNumber(14) - set httpRequest($3.HttpRequest v) { + set httpRequest($107.HttpRequest v) { setField(14, v); } @@ -244,8 +272,12 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearHttpRequest() => clearField(14); @$pb.TagNumber(14) - $3.HttpRequest ensureHttpRequest() => $_ensure(8); + $107.HttpRequest ensureHttpRequest() => $_ensure(8); + /// Optional. Resource name of the trace associated with the log entry, if any. + /// If this field contains a relative resource name, you can assume the name is + /// relative to `//tracing.googleapis.com`. Example: + /// `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824` @$pb.TagNumber(15) $core.String get trace => $_getSZ(9); @$pb.TagNumber(15) @@ -258,6 +290,8 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearTrace() => clearField(15); + /// Optional. Information about an operation associated with the log entry, if + /// applicable. @$pb.TagNumber(16) LogEntryOperation get operation => $_getN(10); @$pb.TagNumber(16) @@ -272,6 +306,8 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(16) LogEntryOperation ensureOperation() => $_ensure(10); + /// Optional. Source code location information associated with the log entry, + /// if any. @$pb.TagNumber(17) LogEntrySourceLocation get sourceLocation => $_getN(11); @$pb.TagNumber(17) @@ -287,63 +323,49 @@ class LogEntry extends $pb.GeneratedMessage { LogEntrySourceLocation ensureSourceLocation() => $_ensure(11); } +/// Additional information about a potentially long-running operation with which +/// a log entry is associated. class LogEntryOperation extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogEntryOperation', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'producer') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'first') - ..aOB(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'last') - ..hasRequiredFields = false; - - LogEntryOperation._() : super(); factory LogEntryOperation({ $core.String? id, $core.String? producer, $core.bool? first, $core.bool? last, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (producer != null) { - _result.producer = producer; + $result.producer = producer; } if (first != null) { - _result.first = first; + $result.first = first; } if (last != null) { - _result.last = last; + $result.last = last; } - return _result; + return $result; } + LogEntryOperation._() : super(); factory LogEntryOperation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogEntryOperation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogEntryOperation', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'id') + ..aOS(2, _omitFieldNames ? '' : 'producer') + ..aOB(3, _omitFieldNames ? '' : 'first') + ..aOB(4, _omitFieldNames ? '' : 'last') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -353,8 +375,10 @@ class LogEntryOperation extends $pb.GeneratedMessage { 'Will be removed in next major version') LogEntryOperation copyWith(void Function(LogEntryOperation) updates) => super.copyWith((message) => updates(message as LogEntryOperation)) - as LogEntryOperation; // ignore: deprecated_member_use + as LogEntryOperation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogEntryOperation create() => LogEntryOperation._(); LogEntryOperation createEmptyInstance() => create(); @@ -365,6 +389,8 @@ class LogEntryOperation extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LogEntryOperation? _defaultInstance; + /// Optional. An arbitrary operation identifier. Log entries with the + /// same identifier are assumed to be part of the same operation. @$pb.TagNumber(1) $core.String get id => $_getSZ(0); @$pb.TagNumber(1) @@ -377,6 +403,9 @@ class LogEntryOperation extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// Optional. An arbitrary producer identifier. The combination of + /// `id` and `producer` must be globally unique. Examples for `producer`: + /// `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. @$pb.TagNumber(2) $core.String get producer => $_getSZ(1); @$pb.TagNumber(2) @@ -389,6 +418,7 @@ class LogEntryOperation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearProducer() => clearField(2); + /// Optional. Set this to True if this is the first log entry in the operation. @$pb.TagNumber(3) $core.bool get first => $_getBF(2); @$pb.TagNumber(3) @@ -401,6 +431,7 @@ class LogEntryOperation extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFirst() => clearField(3); + /// Optional. Set this to True if this is the last log entry in the operation. @$pb.TagNumber(4) $core.bool get last => $_getBF(3); @$pb.TagNumber(4) @@ -414,57 +445,44 @@ class LogEntryOperation extends $pb.GeneratedMessage { void clearLast() => clearField(4); } +/// Additional information about the source code location that produced the log +/// entry. class LogEntrySourceLocation extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogEntrySourceLocation', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'file') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'line') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'function') - ..hasRequiredFields = false; - - LogEntrySourceLocation._() : super(); factory LogEntrySourceLocation({ $core.String? file, $fixnum.Int64? line, $core.String? function, }) { - final _result = create(); + final $result = create(); if (file != null) { - _result.file = file; + $result.file = file; } if (line != null) { - _result.line = line; + $result.line = line; } if (function != null) { - _result.function = function; + $result.function = function; } - return _result; + return $result; } + LogEntrySourceLocation._() : super(); factory LogEntrySourceLocation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogEntrySourceLocation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogEntrySourceLocation', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'file') + ..aInt64(2, _omitFieldNames ? '' : 'line') + ..aOS(3, _omitFieldNames ? '' : 'function') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -476,8 +494,10 @@ class LogEntrySourceLocation extends $pb.GeneratedMessage { LogEntrySourceLocation copyWith( void Function(LogEntrySourceLocation) updates) => super.copyWith((message) => updates(message as LogEntrySourceLocation)) - as LogEntrySourceLocation; // ignore: deprecated_member_use + as LogEntrySourceLocation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogEntrySourceLocation create() => LogEntrySourceLocation._(); LogEntrySourceLocation createEmptyInstance() => create(); @@ -488,6 +508,8 @@ class LogEntrySourceLocation extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LogEntrySourceLocation? _defaultInstance; + /// Optional. Source file name. Depending on the runtime environment, this + /// might be a simple name or a fully-qualified name. @$pb.TagNumber(1) $core.String get file => $_getSZ(0); @$pb.TagNumber(1) @@ -500,6 +522,8 @@ class LogEntrySourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearFile() => clearField(1); + /// Optional. Line within the source file. 1-based; 0 indicates no line number + /// available. @$pb.TagNumber(2) $fixnum.Int64 get line => $_getI64(1); @$pb.TagNumber(2) @@ -512,6 +536,12 @@ class LogEntrySourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearLine() => clearField(2); + /// Optional. Human-readable name of the function or method being invoked, with + /// optional context such as the class or package name. This information may be + /// used in contexts such as the logs viewer, where a file and line number are + /// less meaningful. The format can vary by language. For example: + /// `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function` + /// (Python). @$pb.TagNumber(3) $core.String get function => $_getSZ(2); @$pb.TagNumber(3) @@ -524,3 +554,7 @@ class LogEntrySourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFunction() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pbenum.dart index 2c2bfdbe..94eea53e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/log_entry.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pbjson.dart index 22d7f7e2..5b77027b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/log_entry.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/log_entry.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 logEntryDescriptor instead') @@ -102,7 +106,21 @@ const LogEntry_LabelsEntry$json = { /// Descriptor for `LogEntry`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logEntryDescriptor = $convert.base64Decode( - 'CghMb2dFbnRyeRISCgRuYW1lGAogASgJUgRuYW1lEjgKCXRpbWVzdGFtcBgLIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCXRpbWVzdGFtcBI8CghzZXZlcml0eRgMIAEoDjIgLmdvb2dsZS5sb2dnaW5nLnR5cGUuTG9nU2V2ZXJpdHlSCHNldmVyaXR5EkwKDGh0dHBfcmVxdWVzdBgOIAEoCzIpLmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuSHR0cFJlcXVlc3RSC2h0dHBSZXF1ZXN0EhQKBXRyYWNlGA8gASgJUgV0cmFjZRIbCglpbnNlcnRfaWQYBCABKAlSCGluc2VydElkEkoKBmxhYmVscxgNIAMoCzIyLmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuTG9nRW50cnkuTGFiZWxzRW50cnlSBmxhYmVscxI7Cg1wcm90b19wYXlsb2FkGAIgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueUgAUgxwcm90b1BheWxvYWQSIwoMdGV4dF9wYXlsb2FkGAMgASgJSABSC3RleHRQYXlsb2FkEkAKDnN0cnVjdF9wYXlsb2FkGAYgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdEgAUg1zdHJ1Y3RQYXlsb2FkEk0KCW9wZXJhdGlvbhgQIAEoCzIvLmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuTG9nRW50cnlPcGVyYXRpb25SCW9wZXJhdGlvbhJdCg9zb3VyY2VfbG9jYXRpb24YESABKAsyNC5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLkxvZ0VudHJ5U291cmNlTG9jYXRpb25SDnNvdXJjZUxvY2F0aW9uGjkKC0xhYmVsc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAFCCQoHcGF5bG9hZA=='); + 'CghMb2dFbnRyeRISCgRuYW1lGAogASgJUgRuYW1lEjgKCXRpbWVzdGFtcBgLIAEoCzIaLmdvb2' + 'dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCXRpbWVzdGFtcBI8CghzZXZlcml0eRgMIAEoDjIgLmdv' + 'b2dsZS5sb2dnaW5nLnR5cGUuTG9nU2V2ZXJpdHlSCHNldmVyaXR5EkwKDGh0dHBfcmVxdWVzdB' + 'gOIAEoCzIpLmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuSHR0cFJlcXVlc3RSC2h0dHBS' + 'ZXF1ZXN0EhQKBXRyYWNlGA8gASgJUgV0cmFjZRIbCglpbnNlcnRfaWQYBCABKAlSCGluc2VydE' + 'lkEkoKBmxhYmVscxgNIAMoCzIyLmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuTG9nRW50' + 'cnkuTGFiZWxzRW50cnlSBmxhYmVscxI7Cg1wcm90b19wYXlsb2FkGAIgASgLMhQuZ29vZ2xlLn' + 'Byb3RvYnVmLkFueUgAUgxwcm90b1BheWxvYWQSIwoMdGV4dF9wYXlsb2FkGAMgASgJSABSC3Rl' + 'eHRQYXlsb2FkEkAKDnN0cnVjdF9wYXlsb2FkGAYgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cn' + 'VjdEgAUg1zdHJ1Y3RQYXlsb2FkEk0KCW9wZXJhdGlvbhgQIAEoCzIvLmdvb2dsZS5hcGkuc2Vy' + 'dmljZWNvbnRyb2wudjEuTG9nRW50cnlPcGVyYXRpb25SCW9wZXJhdGlvbhJdCg9zb3VyY2VfbG' + '9jYXRpb24YESABKAsyNC5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLkxvZ0VudHJ5U291' + 'cmNlTG9jYXRpb25SDnNvdXJjZUxvY2F0aW9uGjkKC0xhYmVsc0VudHJ5EhAKA2tleRgBIAEoCV' + 'IDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAFCCQoHcGF5bG9hZA=='); + @$core.Deprecated('Use logEntryOperationDescriptor instead') const LogEntryOperation$json = { '1': 'LogEntryOperation', @@ -116,7 +134,9 @@ const LogEntryOperation$json = { /// Descriptor for `LogEntryOperation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logEntryOperationDescriptor = $convert.base64Decode( - 'ChFMb2dFbnRyeU9wZXJhdGlvbhIOCgJpZBgBIAEoCVICaWQSGgoIcHJvZHVjZXIYAiABKAlSCHByb2R1Y2VyEhQKBWZpcnN0GAMgASgIUgVmaXJzdBISCgRsYXN0GAQgASgIUgRsYXN0'); + 'ChFMb2dFbnRyeU9wZXJhdGlvbhIOCgJpZBgBIAEoCVICaWQSGgoIcHJvZHVjZXIYAiABKAlSCH' + 'Byb2R1Y2VyEhQKBWZpcnN0GAMgASgIUgVmaXJzdBISCgRsYXN0GAQgASgIUgRsYXN0'); + @$core.Deprecated('Use logEntrySourceLocationDescriptor instead') const LogEntrySourceLocation$json = { '1': 'LogEntrySourceLocation', @@ -130,4 +150,5 @@ const LogEntrySourceLocation$json = { /// Descriptor for `LogEntrySourceLocation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logEntrySourceLocationDescriptor = $convert.base64Decode( - 'ChZMb2dFbnRyeVNvdXJjZUxvY2F0aW9uEhIKBGZpbGUYASABKAlSBGZpbGUSEgoEbGluZRgCIAEoA1IEbGluZRIaCghmdW5jdGlvbhgDIAEoCVIIZnVuY3Rpb24='); + 'ChZMb2dFbnRyeVNvdXJjZUxvY2F0aW9uEhIKBGZpbGUYASABKAlSBGZpbGUSEgoEbGluZRgCIA' + 'EoA1IEbGluZRIaCghmdW5jdGlvbhgDIAEoCVIIZnVuY3Rpb24='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pb.dart index b294e4c5..864c7207 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pb.dart @@ -1,17 +1,21 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/metric_value.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../protobuf/timestamp.pb.dart' as $0; -import 'distribution.pb.dart' as $1; +import '../../../protobuf/timestamp.pb.dart' as $50; +import 'distribution.pb.dart' as $108; enum MetricValue_Value { boolValue, @@ -22,87 +26,86 @@ enum MetricValue_Value { notSet } +/// Represents a single metric value. class MetricValue extends $pb.GeneratedMessage { - static const $core.Map<$core.int, MetricValue_Value> _MetricValue_ValueByTag = - { - 4: MetricValue_Value.boolValue, - 5: MetricValue_Value.int64Value, - 6: MetricValue_Value.doubleValue, - 7: MetricValue_Value.stringValue, - 8: MetricValue_Value.distributionValue, - 0: MetricValue_Value.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MetricValue', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..oo(0, [4, 5, 6, 7, 8]) - ..m<$core.String, $core.String>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - entryClassName: 'MetricValue.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.api.servicecontrol.v1')) - ..aOM<$0.Timestamp>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startTime', - subBuilder: $0.Timestamp.create) - ..aOM<$0.Timestamp>( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endTime', - subBuilder: $0.Timestamp.create) - ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'boolValue') - ..aInt64(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'int64Value') - ..a<$core.double>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'doubleValue', $pb.PbFieldType.OD) - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stringValue') - ..aOM<$1.Distribution>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'distributionValue', subBuilder: $1.Distribution.create) - ..hasRequiredFields = false; - - MetricValue._() : super(); factory MetricValue({ $core.Map<$core.String, $core.String>? labels, - $0.Timestamp? startTime, - $0.Timestamp? endTime, + $50.Timestamp? startTime, + $50.Timestamp? endTime, $core.bool? boolValue, $fixnum.Int64? int64Value, $core.double? doubleValue, $core.String? stringValue, - $1.Distribution? distributionValue, + $108.Distribution? distributionValue, }) { - final _result = create(); + final $result = create(); if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (startTime != null) { - _result.startTime = startTime; + $result.startTime = startTime; } if (endTime != null) { - _result.endTime = endTime; + $result.endTime = endTime; } if (boolValue != null) { - _result.boolValue = boolValue; + $result.boolValue = boolValue; } if (int64Value != null) { - _result.int64Value = int64Value; + $result.int64Value = int64Value; } if (doubleValue != null) { - _result.doubleValue = doubleValue; + $result.doubleValue = doubleValue; } if (stringValue != null) { - _result.stringValue = stringValue; + $result.stringValue = stringValue; } if (distributionValue != null) { - _result.distributionValue = distributionValue; + $result.distributionValue = distributionValue; } - return _result; + return $result; } + MetricValue._() : super(); factory MetricValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MetricValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, MetricValue_Value> _MetricValue_ValueByTag = + { + 4: MetricValue_Value.boolValue, + 5: MetricValue_Value.int64Value, + 6: MetricValue_Value.doubleValue, + 7: MetricValue_Value.stringValue, + 8: MetricValue_Value.distributionValue, + 0: MetricValue_Value.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MetricValue', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..oo(0, [4, 5, 6, 7, 8]) + ..m<$core.String, $core.String>(1, _omitFieldNames ? '' : 'labels', + entryClassName: 'MetricValue.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.servicecontrol.v1')) + ..aOM<$50.Timestamp>(2, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(3, _omitFieldNames ? '' : 'endTime', + subBuilder: $50.Timestamp.create) + ..aOB(4, _omitFieldNames ? '' : 'boolValue') + ..aInt64(5, _omitFieldNames ? '' : 'int64Value') + ..a<$core.double>( + 6, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD) + ..aOS(7, _omitFieldNames ? '' : 'stringValue') + ..aOM<$108.Distribution>(8, _omitFieldNames ? '' : 'distributionValue', + subBuilder: $108.Distribution.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') @@ -112,8 +115,10 @@ class MetricValue extends $pb.GeneratedMessage { 'Will be removed in next major version') MetricValue copyWith(void Function(MetricValue) updates) => super.copyWith((message) => updates(message as MetricValue)) - as MetricValue; // ignore: deprecated_member_use + as MetricValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MetricValue create() => MetricValue._(); MetricValue createEmptyInstance() => create(); @@ -126,13 +131,22 @@ class MetricValue extends $pb.GeneratedMessage { MetricValue_Value whichValue() => _MetricValue_ValueByTag[$_whichOneof(0)]!; void clearValue() => clearField($_whichOneof(0)); + /// The labels describing the metric value. + /// See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for + /// the overriding relationship. + /// Note that this map must not contain monitored resource labels. @$pb.TagNumber(1) $core.Map<$core.String, $core.String> get labels => $_getMap(0); + /// The start of the time period over which this metric value's measurement + /// applies. The time period has different semantics for different metric + /// types (cumulative, delta, and gauge). See the metric definition + /// documentation in the service configuration for details. If not specified, + /// [google.api.servicecontrol.v1.Operation.start_time][google.api.servicecontrol.v1.Operation.start_time] will be used. @$pb.TagNumber(2) - $0.Timestamp get startTime => $_getN(1); + $50.Timestamp get startTime => $_getN(1); @$pb.TagNumber(2) - set startTime($0.Timestamp v) { + set startTime($50.Timestamp v) { setField(2, v); } @@ -141,12 +155,15 @@ class MetricValue extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearStartTime() => clearField(2); @$pb.TagNumber(2) - $0.Timestamp ensureStartTime() => $_ensure(1); + $50.Timestamp ensureStartTime() => $_ensure(1); + /// The end of the time period over which this metric value's measurement + /// applies. If not specified, + /// [google.api.servicecontrol.v1.Operation.end_time][google.api.servicecontrol.v1.Operation.end_time] will be used. @$pb.TagNumber(3) - $0.Timestamp get endTime => $_getN(2); + $50.Timestamp get endTime => $_getN(2); @$pb.TagNumber(3) - set endTime($0.Timestamp v) { + set endTime($50.Timestamp v) { setField(3, v); } @@ -155,8 +172,9 @@ class MetricValue extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearEndTime() => clearField(3); @$pb.TagNumber(3) - $0.Timestamp ensureEndTime() => $_ensure(2); + $50.Timestamp ensureEndTime() => $_ensure(2); + /// A boolean value. @$pb.TagNumber(4) $core.bool get boolValue => $_getBF(3); @$pb.TagNumber(4) @@ -169,6 +187,7 @@ class MetricValue extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearBoolValue() => clearField(4); + /// A signed 64-bit integer value. @$pb.TagNumber(5) $fixnum.Int64 get int64Value => $_getI64(4); @$pb.TagNumber(5) @@ -181,6 +200,7 @@ class MetricValue extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearInt64Value() => clearField(5); + /// A double precision floating point value. @$pb.TagNumber(6) $core.double get doubleValue => $_getN(5); @$pb.TagNumber(6) @@ -193,6 +213,7 @@ class MetricValue extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearDoubleValue() => clearField(6); + /// A text string value. @$pb.TagNumber(7) $core.String get stringValue => $_getSZ(6); @$pb.TagNumber(7) @@ -205,10 +226,11 @@ class MetricValue extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearStringValue() => clearField(7); + /// A distribution value. @$pb.TagNumber(8) - $1.Distribution get distributionValue => $_getN(7); + $108.Distribution get distributionValue => $_getN(7); @$pb.TagNumber(8) - set distributionValue($1.Distribution v) { + set distributionValue($108.Distribution v) { setField(8, v); } @@ -217,53 +239,45 @@ class MetricValue extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearDistributionValue() => clearField(8); @$pb.TagNumber(8) - $1.Distribution ensureDistributionValue() => $_ensure(7); + $108.Distribution ensureDistributionValue() => $_ensure(7); } +/// Represents a set of metric values in the same metric. +/// Each metric value in the set should have a unique combination of start time, +/// end time, and label values. class MetricValueSet extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MetricValueSet', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metricName') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metricValues', - $pb.PbFieldType.PM, - subBuilder: MetricValue.create) - ..hasRequiredFields = false; - - MetricValueSet._() : super(); factory MetricValueSet({ $core.String? metricName, $core.Iterable? metricValues, }) { - final _result = create(); + final $result = create(); if (metricName != null) { - _result.metricName = metricName; + $result.metricName = metricName; } if (metricValues != null) { - _result.metricValues.addAll(metricValues); + $result.metricValues.addAll(metricValues); } - return _result; + return $result; } + MetricValueSet._() : super(); factory MetricValueSet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MetricValueSet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MetricValueSet', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'metricName') + ..pc( + 2, _omitFieldNames ? '' : 'metricValues', $pb.PbFieldType.PM, + subBuilder: MetricValue.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') @@ -273,8 +287,10 @@ class MetricValueSet extends $pb.GeneratedMessage { 'Will be removed in next major version') MetricValueSet copyWith(void Function(MetricValueSet) updates) => super.copyWith((message) => updates(message as MetricValueSet)) - as MetricValueSet; // ignore: deprecated_member_use + as MetricValueSet; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MetricValueSet create() => MetricValueSet._(); MetricValueSet createEmptyInstance() => create(); @@ -285,6 +301,7 @@ class MetricValueSet extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MetricValueSet? _defaultInstance; + /// The metric name defined in the service configuration. @$pb.TagNumber(1) $core.String get metricName => $_getSZ(0); @$pb.TagNumber(1) @@ -297,6 +314,11 @@ class MetricValueSet extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMetricName() => clearField(1); + /// The values in this metric. @$pb.TagNumber(2) $core.List get metricValues => $_getList(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pbenum.dart index acb617a2..529e5863 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/metric_value.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pbjson.dart index 90d00970..b4dba8ea 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/metric_value.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/metric_value.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 metricValueDescriptor instead') @@ -69,7 +73,17 @@ const MetricValue_LabelsEntry$json = { /// Descriptor for `MetricValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List metricValueDescriptor = $convert.base64Decode( - 'CgtNZXRyaWNWYWx1ZRJNCgZsYWJlbHMYASADKAsyNS5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLk1ldHJpY1ZhbHVlLkxhYmVsc0VudHJ5UgZsYWJlbHMSOQoKc3RhcnRfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCXN0YXJ0VGltZRI1CghlbmRfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSB2VuZFRpbWUSHwoKYm9vbF92YWx1ZRgEIAEoCEgAUglib29sVmFsdWUSIQoLaW50NjRfdmFsdWUYBSABKANIAFIKaW50NjRWYWx1ZRIjCgxkb3VibGVfdmFsdWUYBiABKAFIAFILZG91YmxlVmFsdWUSIwoMc3RyaW5nX3ZhbHVlGAcgASgJSABSC3N0cmluZ1ZhbHVlElsKEmRpc3RyaWJ1dGlvbl92YWx1ZRgIIAEoCzIqLmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuRGlzdHJpYnV0aW9uSABSEWRpc3RyaWJ1dGlvblZhbHVlGjkKC0xhYmVsc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAFCBwoFdmFsdWU='); + 'CgtNZXRyaWNWYWx1ZRJNCgZsYWJlbHMYASADKAsyNS5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm' + '9sLnYxLk1ldHJpY1ZhbHVlLkxhYmVsc0VudHJ5UgZsYWJlbHMSOQoKc3RhcnRfdGltZRgCIAEo' + 'CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCXN0YXJ0VGltZRI1CghlbmRfdGltZRgDIA' + 'EoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSB2VuZFRpbWUSHwoKYm9vbF92YWx1ZRgE' + 'IAEoCEgAUglib29sVmFsdWUSIQoLaW50NjRfdmFsdWUYBSABKANIAFIKaW50NjRWYWx1ZRIjCg' + 'xkb3VibGVfdmFsdWUYBiABKAFIAFILZG91YmxlVmFsdWUSIwoMc3RyaW5nX3ZhbHVlGAcgASgJ' + 'SABSC3N0cmluZ1ZhbHVlElsKEmRpc3RyaWJ1dGlvbl92YWx1ZRgIIAEoCzIqLmdvb2dsZS5hcG' + 'kuc2VydmljZWNvbnRyb2wudjEuRGlzdHJpYnV0aW9uSABSEWRpc3RyaWJ1dGlvblZhbHVlGjkK' + 'C0xhYmVsc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOA' + 'FCBwoFdmFsdWU='); + @$core.Deprecated('Use metricValueSetDescriptor instead') const MetricValueSet$json = { '1': 'MetricValueSet', @@ -88,4 +102,6 @@ const MetricValueSet$json = { /// Descriptor for `MetricValueSet`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List metricValueSetDescriptor = $convert.base64Decode( - 'Cg5NZXRyaWNWYWx1ZVNldBIfCgttZXRyaWNfbmFtZRgBIAEoCVIKbWV0cmljTmFtZRJOCg1tZXRyaWNfdmFsdWVzGAIgAygLMikuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5NZXRyaWNWYWx1ZVIMbWV0cmljVmFsdWVz'); + 'Cg5NZXRyaWNWYWx1ZVNldBIfCgttZXRyaWNfbmFtZRgBIAEoCVIKbWV0cmljTmFtZRJOCg1tZX' + 'RyaWNfdmFsdWVzGAIgAygLMikuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5NZXRyaWNW' + 'YWx1ZVIMbWV0cmljVmFsdWVz'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pb.dart index 0555c131..282d1b57 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pb.dart @@ -1,113 +1,113 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/operation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/timestamp.pb.dart' as $0; -import 'metric_value.pb.dart' as $1; -import 'log_entry.pb.dart' as $2; -import '../../../protobuf/any.pb.dart' as $3; - +import '../../../protobuf/any.pb.dart' as $49; +import '../../../protobuf/timestamp.pb.dart' as $50; +import 'log_entry.pb.dart' as $110; +import 'metric_value.pb.dart' as $109; import 'operation.pbenum.dart'; export 'operation.pbenum.dart'; +/// Represents information regarding an operation. class Operation extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Operation', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operationId') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operationName') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'consumerId') - ..aOM<$0.Timestamp>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startTime', - subBuilder: $0.Timestamp.create) - ..aOM<$0.Timestamp>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endTime', - subBuilder: $0.Timestamp.create) - ..m<$core.String, $core.String>( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - entryClassName: 'Operation.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.api.servicecontrol.v1')) - ..pc<$1.MetricValueSet>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metricValueSets', $pb.PbFieldType.PM, subBuilder: $1.MetricValueSet.create) - ..pc<$2.LogEntry>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'logEntries', $pb.PbFieldType.PM, subBuilder: $2.LogEntry.create) - ..e(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'importance', $pb.PbFieldType.OE, defaultOrMaker: Operation_Importance.LOW, valueOf: Operation_Importance.valueOf, enumValues: Operation_Importance.values) - ..pc<$3.Any>(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'extensions', $pb.PbFieldType.PM, subBuilder: $3.Any.create) - ..hasRequiredFields = false; - - Operation._() : super(); factory Operation({ $core.String? operationId, $core.String? operationName, $core.String? consumerId, - $0.Timestamp? startTime, - $0.Timestamp? endTime, + $50.Timestamp? startTime, + $50.Timestamp? endTime, $core.Map<$core.String, $core.String>? labels, - $core.Iterable<$1.MetricValueSet>? metricValueSets, - $core.Iterable<$2.LogEntry>? logEntries, + $core.Iterable<$109.MetricValueSet>? metricValueSets, + $core.Iterable<$110.LogEntry>? logEntries, Operation_Importance? importance, - $core.Iterable<$3.Any>? extensions, + $core.Iterable<$49.Any>? extensions, }) { - final _result = create(); + final $result = create(); if (operationId != null) { - _result.operationId = operationId; + $result.operationId = operationId; } if (operationName != null) { - _result.operationName = operationName; + $result.operationName = operationName; } if (consumerId != null) { - _result.consumerId = consumerId; + $result.consumerId = consumerId; } if (startTime != null) { - _result.startTime = startTime; + $result.startTime = startTime; } if (endTime != null) { - _result.endTime = endTime; + $result.endTime = endTime; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (metricValueSets != null) { - _result.metricValueSets.addAll(metricValueSets); + $result.metricValueSets.addAll(metricValueSets); } if (logEntries != null) { - _result.logEntries.addAll(logEntries); + $result.logEntries.addAll(logEntries); } if (importance != null) { - _result.importance = importance; + $result.importance = importance; } if (extensions != null) { - _result.extensions.addAll(extensions); + $result.extensions.addAll(extensions); } - return _result; + return $result; } + Operation._() : super(); factory Operation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Operation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Operation', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'operationId') + ..aOS(2, _omitFieldNames ? '' : 'operationName') + ..aOS(3, _omitFieldNames ? '' : 'consumerId') + ..aOM<$50.Timestamp>(4, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(5, _omitFieldNames ? '' : 'endTime', + subBuilder: $50.Timestamp.create) + ..m<$core.String, $core.String>(6, _omitFieldNames ? '' : 'labels', + entryClassName: 'Operation.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.servicecontrol.v1')) + ..pc<$109.MetricValueSet>( + 7, _omitFieldNames ? '' : 'metricValueSets', $pb.PbFieldType.PM, + subBuilder: $109.MetricValueSet.create) + ..pc<$110.LogEntry>( + 8, _omitFieldNames ? '' : 'logEntries', $pb.PbFieldType.PM, + subBuilder: $110.LogEntry.create) + ..e( + 11, _omitFieldNames ? '' : 'importance', $pb.PbFieldType.OE, + defaultOrMaker: Operation_Importance.LOW, + valueOf: Operation_Importance.valueOf, + enumValues: Operation_Importance.values) + ..pc<$49.Any>(16, _omitFieldNames ? '' : 'extensions', $pb.PbFieldType.PM, + subBuilder: $49.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') @@ -116,9 +116,10 @@ class Operation extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Operation copyWith(void Function(Operation) updates) => - super.copyWith((message) => updates(message as Operation)) - as Operation; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Operation)) as Operation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Operation create() => Operation._(); Operation createEmptyInstance() => create(); @@ -128,6 +129,15 @@ class Operation extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Operation? _defaultInstance; + /// Identity of the operation. This must be unique within the scope of the + /// service that generated the operation. If the service calls + /// Check() and Report() on the same operation, the two calls should carry + /// the same id. + /// + /// UUID version 4 is recommended, though not required. + /// In scenarios where an operation is computed from existing information + /// and an idempotent id is desirable for deduplication purpose, UUID version 5 + /// is recommended. See RFC 4122 for details. @$pb.TagNumber(1) $core.String get operationId => $_getSZ(0); @$pb.TagNumber(1) @@ -140,6 +150,7 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearOperationId() => clearField(1); + /// Fully qualified name of the operation. Reserved for future use. @$pb.TagNumber(2) $core.String get operationName => $_getSZ(1); @$pb.TagNumber(2) @@ -152,6 +163,18 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOperationName() => clearField(2); + /// Identity of the consumer who is using the service. + /// This field should be filled in for the operations initiated by a + /// consumer, but not for service-initiated operations that are + /// not related to a specific consumer. + /// + /// - This can be in one of the following formats: + /// - project:PROJECT_ID, + /// - project`_`number:PROJECT_NUMBER, + /// - projects/PROJECT_ID or PROJECT_NUMBER, + /// - folders/FOLDER_NUMBER, + /// - organizations/ORGANIZATION_NUMBER, + /// - api`_`key:API_KEY. @$pb.TagNumber(3) $core.String get consumerId => $_getSZ(2); @$pb.TagNumber(3) @@ -164,10 +187,11 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearConsumerId() => clearField(3); + /// Required. Start time of the operation. @$pb.TagNumber(4) - $0.Timestamp get startTime => $_getN(3); + $50.Timestamp get startTime => $_getN(3); @$pb.TagNumber(4) - set startTime($0.Timestamp v) { + set startTime($50.Timestamp v) { setField(4, v); } @@ -176,12 +200,17 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearStartTime() => clearField(4); @$pb.TagNumber(4) - $0.Timestamp ensureStartTime() => $_ensure(3); + $50.Timestamp ensureStartTime() => $_ensure(3); + /// End time of the operation. + /// Required when the operation is used in + /// [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report], + /// but optional when the operation is used in + /// [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check]. @$pb.TagNumber(5) - $0.Timestamp get endTime => $_getN(4); + $50.Timestamp get endTime => $_getN(4); @$pb.TagNumber(5) - set endTime($0.Timestamp v) { + set endTime($50.Timestamp v) { setField(5, v); } @@ -190,17 +219,45 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearEndTime() => clearField(5); @$pb.TagNumber(5) - $0.Timestamp ensureEndTime() => $_ensure(4); + $50.Timestamp ensureEndTime() => $_ensure(4); + /// Labels describing the operation. Only the following labels are allowed: + /// + /// - Labels describing monitored resources as defined in + /// the service configuration. + /// - Default labels of metric values. When specified, labels defined in the + /// metric value override these default. + /// - The following labels defined by Google Cloud Platform: + /// - `cloud.googleapis.com/location` describing the location where the + /// operation happened, + /// - `servicecontrol.googleapis.com/user_agent` describing the user agent + /// of the API request, + /// - `servicecontrol.googleapis.com/service_agent` describing the service + /// used to handle the API request (e.g. ESP), + /// - `servicecontrol.googleapis.com/platform` describing the platform + /// where the API is served, such as App Engine, Compute Engine, or + /// Kubernetes Engine. @$pb.TagNumber(6) $core.Map<$core.String, $core.String> get labels => $_getMap(5); + /// Represents information about this operation. Each MetricValueSet + /// corresponds to a metric defined in the service configuration. + /// The data type used in the MetricValueSet must agree with + /// the data type specified in the metric definition. + /// + /// Within a single operation, it is not allowed to have more than one + /// MetricValue instances that have the same metric names and identical + /// label value combinations. If a request has such duplicated MetricValue + /// instances, the entire request is rejected with + /// an invalid argument error. @$pb.TagNumber(7) - $core.List<$1.MetricValueSet> get metricValueSets => $_getList(6); + $core.List<$109.MetricValueSet> get metricValueSets => $_getList(6); + /// Represents information to be logged. @$pb.TagNumber(8) - $core.List<$2.LogEntry> get logEntries => $_getList(7); + $core.List<$110.LogEntry> get logEntries => $_getList(7); + /// DO NOT USE. This is an experimental field. @$pb.TagNumber(11) Operation_Importance get importance => $_getN(8); @$pb.TagNumber(11) @@ -213,6 +270,11 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearImportance() => clearField(11); + /// Unimplemented. @$pb.TagNumber(16) - $core.List<$3.Any> get extensions => $_getList(9); + $core.List<$49.Any> get extensions => $_getList(9); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pbenum.dart index 67e88c41..3a10b3d1 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pbenum.dart @@ -1,19 +1,24 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/operation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Defines the importance of the data contained in the operation. class Operation_Importance extends $pb.ProtobufEnum { - static const Operation_Importance LOW = Operation_Importance._( - 0, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'LOW'); - static const Operation_Importance HIGH = Operation_Importance._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'HIGH'); + static const Operation_Importance LOW = + Operation_Importance._(0, _omitEnumNames ? '' : 'LOW'); + static const Operation_Importance HIGH = + Operation_Importance._(1, _omitEnumNames ? '' : 'HIGH'); static const $core.List values = [ LOW, @@ -26,3 +31,5 @@ class Operation_Importance extends $pb.ProtobufEnum { const Operation_Importance._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pbjson.dart index 21cff810..15a14c81 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/operation.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/operation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 operationDescriptor instead') @@ -98,4 +102,16 @@ const Operation_Importance$json = { /// Descriptor for `Operation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List operationDescriptor = $convert.base64Decode( - 'CglPcGVyYXRpb24SIQoMb3BlcmF0aW9uX2lkGAEgASgJUgtvcGVyYXRpb25JZBIlCg5vcGVyYXRpb25fbmFtZRgCIAEoCVINb3BlcmF0aW9uTmFtZRIfCgtjb25zdW1lcl9pZBgDIAEoCVIKY29uc3VtZXJJZBI5CgpzdGFydF90aW1lGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIHZW5kVGltZRJLCgZsYWJlbHMYBiADKAsyMy5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLk9wZXJhdGlvbi5MYWJlbHNFbnRyeVIGbGFiZWxzElgKEW1ldHJpY192YWx1ZV9zZXRzGAcgAygLMiwuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5NZXRyaWNWYWx1ZVNldFIPbWV0cmljVmFsdWVTZXRzEkcKC2xvZ19lbnRyaWVzGAggAygLMiYuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5Mb2dFbnRyeVIKbG9nRW50cmllcxJSCgppbXBvcnRhbmNlGAsgASgOMjIuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5PcGVyYXRpb24uSW1wb3J0YW5jZVIKaW1wb3J0YW5jZRI0CgpleHRlbnNpb25zGBAgAygLMhQuZ29vZ2xlLnByb3RvYnVmLkFueVIKZXh0ZW5zaW9ucxo5CgtMYWJlbHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBIh8KCkltcG9ydGFuY2USBwoDTE9XEAASCAoESElHSBAB'); + 'CglPcGVyYXRpb24SIQoMb3BlcmF0aW9uX2lkGAEgASgJUgtvcGVyYXRpb25JZBIlCg5vcGVyYX' + 'Rpb25fbmFtZRgCIAEoCVINb3BlcmF0aW9uTmFtZRIfCgtjb25zdW1lcl9pZBgDIAEoCVIKY29u' + 'c3VtZXJJZBI5CgpzdGFydF90aW1lGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcF' + 'IJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt' + 'cFIHZW5kVGltZRJLCgZsYWJlbHMYBiADKAsyMy5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLn' + 'YxLk9wZXJhdGlvbi5MYWJlbHNFbnRyeVIGbGFiZWxzElgKEW1ldHJpY192YWx1ZV9zZXRzGAcg' + 'AygLMiwuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5NZXRyaWNWYWx1ZVNldFIPbWV0cm' + 'ljVmFsdWVTZXRzEkcKC2xvZ19lbnRyaWVzGAggAygLMiYuZ29vZ2xlLmFwaS5zZXJ2aWNlY29u' + 'dHJvbC52MS5Mb2dFbnRyeVIKbG9nRW50cmllcxJSCgppbXBvcnRhbmNlGAsgASgOMjIuZ29vZ2' + 'xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5PcGVyYXRpb24uSW1wb3J0YW5jZVIKaW1wb3J0YW5j' + 'ZRI0CgpleHRlbnNpb25zGBAgAygLMhQuZ29vZ2xlLnByb3RvYnVmLkFueVIKZXh0ZW5zaW9ucx' + 'o5CgtMYWJlbHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6' + 'AjgBIh8KCkltcG9ydGFuY2USBwoDTE9XEAASCAoESElHSBAB'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pb.dart index a0a9626b..9b3c4f8f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pb.dart @@ -1,69 +1,62 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/quota_controller.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'metric_value.pb.dart' as $1; - +import '../../../rpc/status.pb.dart' as $57; +import 'metric_value.pb.dart' as $109; import 'quota_controller.pbenum.dart'; export 'quota_controller.pbenum.dart'; +/// Request message for the AllocateQuota method. class AllocateQuotaRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AllocateQuotaRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allocateOperation', - subBuilder: QuotaOperation.create) - ..aOS( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceConfigId') - ..hasRequiredFields = false; - - AllocateQuotaRequest._() : super(); factory AllocateQuotaRequest({ $core.String? serviceName, QuotaOperation? allocateOperation, $core.String? serviceConfigId, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (allocateOperation != null) { - _result.allocateOperation = allocateOperation; + $result.allocateOperation = allocateOperation; } if (serviceConfigId != null) { - _result.serviceConfigId = serviceConfigId; + $result.serviceConfigId = serviceConfigId; } - return _result; + return $result; } + AllocateQuotaRequest._() : super(); factory AllocateQuotaRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AllocateQuotaRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AllocateQuotaRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOM(2, _omitFieldNames ? '' : 'allocateOperation', + subBuilder: QuotaOperation.create) + ..aOS(4, _omitFieldNames ? '' : 'serviceConfigId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -74,8 +67,10 @@ class AllocateQuotaRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') AllocateQuotaRequest copyWith(void Function(AllocateQuotaRequest) updates) => super.copyWith((message) => updates(message as AllocateQuotaRequest)) - as AllocateQuotaRequest; // ignore: deprecated_member_use + as AllocateQuotaRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AllocateQuotaRequest create() => AllocateQuotaRequest._(); AllocateQuotaRequest createEmptyInstance() => create(); @@ -86,6 +81,10 @@ class AllocateQuotaRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AllocateQuotaRequest? _defaultInstance; + /// Name of the service as specified in the service configuration. For example, + /// `"pubsub.googleapis.com"`. + /// + /// See [google.api.Service][google.api.Service] for the definition of a service name. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -98,6 +97,7 @@ class AllocateQuotaRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// Operation that describes the quota allocation. @$pb.TagNumber(2) QuotaOperation get allocateOperation => $_getN(1); @$pb.TagNumber(2) @@ -112,6 +112,9 @@ class AllocateQuotaRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) QuotaOperation ensureAllocateOperation() => $_ensure(1); + /// Specifies which version of service configuration should be used to process + /// the request. If unspecified or no matching version can be found, the latest + /// one will be used. @$pb.TagNumber(4) $core.String get serviceConfigId => $_getSZ(2); @$pb.TagNumber(4) @@ -125,77 +128,68 @@ class AllocateQuotaRequest extends $pb.GeneratedMessage { void clearServiceConfigId() => clearField(4); } +/// Represents information regarding a quota operation. class QuotaOperation extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'QuotaOperation', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operationId') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'methodName') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'consumerId') - ..m<$core.String, $core.String>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - entryClassName: 'QuotaOperation.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.api.servicecontrol.v1')) - ..pc<$1.MetricValueSet>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'quotaMetrics', $pb.PbFieldType.PM, - subBuilder: $1.MetricValueSet.create) - ..e(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'quotaMode', $pb.PbFieldType.OE, - defaultOrMaker: QuotaOperation_QuotaMode.UNSPECIFIED, - valueOf: QuotaOperation_QuotaMode.valueOf, - enumValues: QuotaOperation_QuotaMode.values) - ..hasRequiredFields = false; - - QuotaOperation._() : super(); factory QuotaOperation({ $core.String? operationId, $core.String? methodName, $core.String? consumerId, $core.Map<$core.String, $core.String>? labels, - $core.Iterable<$1.MetricValueSet>? quotaMetrics, + $core.Iterable<$109.MetricValueSet>? quotaMetrics, QuotaOperation_QuotaMode? quotaMode, }) { - final _result = create(); + final $result = create(); if (operationId != null) { - _result.operationId = operationId; + $result.operationId = operationId; } if (methodName != null) { - _result.methodName = methodName; + $result.methodName = methodName; } if (consumerId != null) { - _result.consumerId = consumerId; + $result.consumerId = consumerId; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (quotaMetrics != null) { - _result.quotaMetrics.addAll(quotaMetrics); + $result.quotaMetrics.addAll(quotaMetrics); } if (quotaMode != null) { - _result.quotaMode = quotaMode; + $result.quotaMode = quotaMode; } - return _result; + return $result; } + QuotaOperation._() : super(); factory QuotaOperation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QuotaOperation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QuotaOperation', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'operationId') + ..aOS(2, _omitFieldNames ? '' : 'methodName') + ..aOS(3, _omitFieldNames ? '' : 'consumerId') + ..m<$core.String, $core.String>(4, _omitFieldNames ? '' : 'labels', + entryClassName: 'QuotaOperation.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.servicecontrol.v1')) + ..pc<$109.MetricValueSet>( + 5, _omitFieldNames ? '' : 'quotaMetrics', $pb.PbFieldType.PM, + subBuilder: $109.MetricValueSet.create) + ..e( + 6, _omitFieldNames ? '' : 'quotaMode', $pb.PbFieldType.OE, + defaultOrMaker: QuotaOperation_QuotaMode.UNSPECIFIED, + valueOf: QuotaOperation_QuotaMode.valueOf, + enumValues: QuotaOperation_QuotaMode.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -205,8 +199,10 @@ class QuotaOperation extends $pb.GeneratedMessage { 'Will be removed in next major version') QuotaOperation copyWith(void Function(QuotaOperation) updates) => super.copyWith((message) => updates(message as QuotaOperation)) - as QuotaOperation; // ignore: deprecated_member_use + as QuotaOperation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QuotaOperation create() => QuotaOperation._(); QuotaOperation createEmptyInstance() => create(); @@ -217,6 +213,15 @@ class QuotaOperation extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QuotaOperation? _defaultInstance; + /// Identity of the operation. This is expected to be unique within the scope + /// of the service that generated the operation, and guarantees idempotency in + /// case of retries. + /// + /// In order to ensure best performance and latency in the Quota backends, + /// operation_ids are optimally associated with time, so that related + /// operations can be accessed fast in storage. For this reason, the + /// recommended token for services that intend to operate at a high QPS is + /// Unix time in nanos + UUID @$pb.TagNumber(1) $core.String get operationId => $_getSZ(0); @$pb.TagNumber(1) @@ -229,6 +234,17 @@ class QuotaOperation extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearOperationId() => clearField(1); + /// Fully qualified name of the API method for which this quota operation is + /// requested. This name is used for matching quota rules or metric rules and + /// billing status rules defined in service configuration. + /// + /// This field should not be set if any of the following is true: + /// (1) the quota operation is performed on non-API resources. + /// (2) quota_metrics is set because the caller is doing quota override. + /// + /// + /// Example of an RPC method name: + /// google.example.library.v1.LibraryService.CreateShelf @$pb.TagNumber(2) $core.String get methodName => $_getSZ(1); @$pb.TagNumber(2) @@ -241,6 +257,12 @@ class QuotaOperation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearMethodName() => clearField(2); + /// Identity of the consumer for whom this quota operation is being performed. + /// + /// This can be in one of the following formats: + /// project:, + /// project_number:, + /// api_key:. @$pb.TagNumber(3) $core.String get consumerId => $_getSZ(2); @$pb.TagNumber(3) @@ -253,12 +275,26 @@ class QuotaOperation extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearConsumerId() => clearField(3); + /// Labels describing the operation. @$pb.TagNumber(4) $core.Map<$core.String, $core.String> get labels => $_getMap(3); + /// Represents information about this operation. Each MetricValueSet + /// corresponds to a metric defined in the service configuration. + /// The data type used in the MetricValueSet must agree with + /// the data type specified in the metric definition. + /// + /// Within a single operation, it is not allowed to have more than one + /// MetricValue instances that have the same metric names and identical + /// label value combinations. If a request has such duplicated MetricValue + /// instances, the entire request is rejected with + /// an invalid argument error. + /// + /// This field is mutually exclusive with method_name. @$pb.TagNumber(5) - $core.List<$1.MetricValueSet> get quotaMetrics => $_getList(4); + $core.List<$109.MetricValueSet> get quotaMetrics => $_getList(4); + /// Quota mode for this operation. @$pb.TagNumber(6) QuotaOperation_QuotaMode get quotaMode => $_getN(5); @$pb.TagNumber(6) @@ -272,60 +308,52 @@ class QuotaOperation extends $pb.GeneratedMessage { void clearQuotaMode() => clearField(6); } +/// Response message for the AllocateQuota method. class AllocateQuotaResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AllocateQuotaResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operationId') - ..pc( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'allocateErrors', $pb.PbFieldType.PM, - subBuilder: QuotaError.create) - ..pc<$1.MetricValueSet>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'quotaMetrics', - $pb.PbFieldType.PM, - subBuilder: $1.MetricValueSet.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceConfigId') - ..hasRequiredFields = false; - - AllocateQuotaResponse._() : super(); factory AllocateQuotaResponse({ $core.String? operationId, $core.Iterable? allocateErrors, - $core.Iterable<$1.MetricValueSet>? quotaMetrics, + $core.Iterable<$109.MetricValueSet>? quotaMetrics, $core.String? serviceConfigId, }) { - final _result = create(); + final $result = create(); if (operationId != null) { - _result.operationId = operationId; + $result.operationId = operationId; } if (allocateErrors != null) { - _result.allocateErrors.addAll(allocateErrors); + $result.allocateErrors.addAll(allocateErrors); } if (quotaMetrics != null) { - _result.quotaMetrics.addAll(quotaMetrics); + $result.quotaMetrics.addAll(quotaMetrics); } if (serviceConfigId != null) { - _result.serviceConfigId = serviceConfigId; + $result.serviceConfigId = serviceConfigId; } - return _result; + return $result; } + AllocateQuotaResponse._() : super(); factory AllocateQuotaResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AllocateQuotaResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AllocateQuotaResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'operationId') + ..pc( + 2, _omitFieldNames ? '' : 'allocateErrors', $pb.PbFieldType.PM, + subBuilder: QuotaError.create) + ..pc<$109.MetricValueSet>( + 3, _omitFieldNames ? '' : 'quotaMetrics', $pb.PbFieldType.PM, + subBuilder: $109.MetricValueSet.create) + ..aOS(4, _omitFieldNames ? '' : 'serviceConfigId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -337,8 +365,10 @@ class AllocateQuotaResponse extends $pb.GeneratedMessage { AllocateQuotaResponse copyWith( void Function(AllocateQuotaResponse) updates) => super.copyWith((message) => updates(message as AllocateQuotaResponse)) - as AllocateQuotaResponse; // ignore: deprecated_member_use + as AllocateQuotaResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AllocateQuotaResponse create() => AllocateQuotaResponse._(); AllocateQuotaResponse createEmptyInstance() => create(); @@ -349,6 +379,8 @@ class AllocateQuotaResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AllocateQuotaResponse? _defaultInstance; + /// The same operation_id value used in the AllocateQuotaRequest. Used for + /// logging and diagnostics purposes. @$pb.TagNumber(1) $core.String get operationId => $_getSZ(0); @$pb.TagNumber(1) @@ -361,12 +393,24 @@ class AllocateQuotaResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearOperationId() => clearField(1); + /// Indicates the decision of the allocate. @$pb.TagNumber(2) $core.List get allocateErrors => $_getList(1); + /// Quota metrics to indicate the result of allocation. Depending on the + /// request, one or more of the following metrics will be included: + /// + /// 1. Per quota group or per quota metric incremental usage will be specified + /// using the following delta metric : + /// "serviceruntime.googleapis.com/api/consumer/quota_used_count" + /// + /// 2. The quota limit reached condition will be specified using the following + /// boolean metric : + /// "serviceruntime.googleapis.com/quota/exceeded" @$pb.TagNumber(3) - $core.List<$1.MetricValueSet> get quotaMetrics => $_getList(2); + $core.List<$109.MetricValueSet> get quotaMetrics => $_getList(2); + /// ID of the actual config used to process the request. @$pb.TagNumber(4) $core.String get serviceConfigId => $_getSZ(3); @$pb.TagNumber(4) @@ -380,54 +424,52 @@ class AllocateQuotaResponse extends $pb.GeneratedMessage { void clearServiceConfigId() => clearField(4); } +/// Represents error information for [QuotaOperation][google.api.servicecontrol.v1.QuotaOperation]. class QuotaError extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QuotaError', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'code', - $pb.PbFieldType.OE, - defaultOrMaker: QuotaError_Code.UNSPECIFIED, - valueOf: QuotaError_Code.valueOf, - enumValues: QuotaError_Code.values) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'subject') - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'description') - ..hasRequiredFields = false; - - QuotaError._() : super(); factory QuotaError({ QuotaError_Code? code, $core.String? subject, $core.String? description, + $57.Status? status, }) { - final _result = create(); + final $result = create(); if (code != null) { - _result.code = code; + $result.code = code; } if (subject != null) { - _result.subject = subject; + $result.subject = subject; } if (description != null) { - _result.description = description; + $result.description = description; + } + if (status != null) { + $result.status = status; } - return _result; + return $result; } + QuotaError._() : super(); factory QuotaError.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QuotaError.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QuotaError', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.OE, + defaultOrMaker: QuotaError_Code.UNSPECIFIED, + valueOf: QuotaError_Code.valueOf, + enumValues: QuotaError_Code.values) + ..aOS(2, _omitFieldNames ? '' : 'subject') + ..aOS(3, _omitFieldNames ? '' : 'description') + ..aOM<$57.Status>(4, _omitFieldNames ? '' : 'status', + subBuilder: $57.Status.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') @@ -436,9 +478,10 @@ class QuotaError extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') QuotaError copyWith(void Function(QuotaError) updates) => - super.copyWith((message) => updates(message as QuotaError)) - as QuotaError; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as QuotaError)) as QuotaError; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QuotaError create() => QuotaError._(); QuotaError createEmptyInstance() => create(); @@ -448,6 +491,7 @@ class QuotaError extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QuotaError? _defaultInstance; + /// Error code. @$pb.TagNumber(1) QuotaError_Code get code => $_getN(0); @$pb.TagNumber(1) @@ -460,6 +504,9 @@ class QuotaError extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCode() => clearField(1); + /// Subject to whom this error applies. See the specific enum for more details + /// on this field. For example, "clientip:" or + /// "project:". @$pb.TagNumber(2) $core.String get subject => $_getSZ(1); @$pb.TagNumber(2) @@ -472,6 +519,7 @@ class QuotaError extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearSubject() => clearField(2); + /// Free-form text that provides details on the cause of the error. @$pb.TagNumber(3) $core.String get description => $_getSZ(2); @$pb.TagNumber(3) @@ -483,4 +531,24 @@ class QuotaError extends $pb.GeneratedMessage { $core.bool hasDescription() => $_has(2); @$pb.TagNumber(3) void clearDescription() => clearField(3); + + /// Contains additional information about the quota error. + /// If available, `status.code` will be non zero. + @$pb.TagNumber(4) + $57.Status get status => $_getN(3); + @$pb.TagNumber(4) + set status($57.Status v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasStatus() => $_has(3); + @$pb.TagNumber(4) + void clearStatus() => clearField(4); + @$pb.TagNumber(4) + $57.Status ensureStatus() => $_ensure(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbenum.dart index d11abd6d..282586a4 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbenum.dart @@ -1,45 +1,32 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/quota_controller.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Supported quota modes. class QuotaOperation_QuotaMode extends $pb.ProtobufEnum { static const QuotaOperation_QuotaMode UNSPECIFIED = - QuotaOperation_QuotaMode._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED'); - static const QuotaOperation_QuotaMode NORMAL = QuotaOperation_QuotaMode._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'NORMAL'); + QuotaOperation_QuotaMode._(0, _omitEnumNames ? '' : 'UNSPECIFIED'); + static const QuotaOperation_QuotaMode NORMAL = + QuotaOperation_QuotaMode._(1, _omitEnumNames ? '' : 'NORMAL'); static const QuotaOperation_QuotaMode BEST_EFFORT = - QuotaOperation_QuotaMode._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'BEST_EFFORT'); - static const QuotaOperation_QuotaMode CHECK_ONLY = QuotaOperation_QuotaMode._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CHECK_ONLY'); - static const QuotaOperation_QuotaMode QUERY_ONLY = QuotaOperation_QuotaMode._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'QUERY_ONLY'); + QuotaOperation_QuotaMode._(2, _omitEnumNames ? '' : 'BEST_EFFORT'); + static const QuotaOperation_QuotaMode CHECK_ONLY = + QuotaOperation_QuotaMode._(3, _omitEnumNames ? '' : 'CHECK_ONLY'); + static const QuotaOperation_QuotaMode QUERY_ONLY = + QuotaOperation_QuotaMode._(4, _omitEnumNames ? '' : 'QUERY_ONLY'); static const QuotaOperation_QuotaMode ADJUST_ONLY = - QuotaOperation_QuotaMode._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ADJUST_ONLY'); + QuotaOperation_QuotaMode._(5, _omitEnumNames ? '' : 'ADJUST_ONLY'); static const $core.List values = [ @@ -58,37 +45,24 @@ class QuotaOperation_QuotaMode extends $pb.ProtobufEnum { const QuotaOperation_QuotaMode._($core.int v, $core.String n) : super(v, n); } +/// Error codes related to project config validations are deprecated since the +/// quota controller methods do not perform these validations. Instead services +/// have to call the Check method, without quota_properties field, to perform +/// these validations before calling the quota controller methods. These +/// methods check only for project deletion to be wipe out compliant. class QuotaError_Code extends $pb.ProtobufEnum { - static const QuotaError_Code UNSPECIFIED = QuotaError_Code._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED'); - static const QuotaError_Code RESOURCE_EXHAUSTED = QuotaError_Code._( - 8, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RESOURCE_EXHAUSTED'); - static const QuotaError_Code BILLING_NOT_ACTIVE = QuotaError_Code._( - 107, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'BILLING_NOT_ACTIVE'); - static const QuotaError_Code PROJECT_DELETED = QuotaError_Code._( - 108, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PROJECT_DELETED'); - static const QuotaError_Code API_KEY_INVALID = QuotaError_Code._( - 105, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_INVALID'); - static const QuotaError_Code API_KEY_EXPIRED = QuotaError_Code._( - 112, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'API_KEY_EXPIRED'); + static const QuotaError_Code UNSPECIFIED = + QuotaError_Code._(0, _omitEnumNames ? '' : 'UNSPECIFIED'); + static const QuotaError_Code RESOURCE_EXHAUSTED = + QuotaError_Code._(8, _omitEnumNames ? '' : 'RESOURCE_EXHAUSTED'); + static const QuotaError_Code BILLING_NOT_ACTIVE = + QuotaError_Code._(107, _omitEnumNames ? '' : 'BILLING_NOT_ACTIVE'); + static const QuotaError_Code PROJECT_DELETED = + QuotaError_Code._(108, _omitEnumNames ? '' : 'PROJECT_DELETED'); + static const QuotaError_Code API_KEY_INVALID = + QuotaError_Code._(105, _omitEnumNames ? '' : 'API_KEY_INVALID'); + static const QuotaError_Code API_KEY_EXPIRED = + QuotaError_Code._(112, _omitEnumNames ? '' : 'API_KEY_EXPIRED'); static const $core.List values = [ UNSPECIFIED, @@ -105,3 +79,5 @@ class QuotaError_Code extends $pb.ProtobufEnum { const QuotaError_Code._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbgrpc.dart index cd923185..f5cc8101 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbgrpc.dart @@ -1,59 +1,67 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/quota_controller.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'quota_controller.pb.dart' as $0; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'quota_controller.pb.dart' as $35; + export 'quota_controller.pb.dart'; +@$pb.GrpcServiceName('google.api.servicecontrol.v1.QuotaController') class QuotaControllerClient extends $grpc.Client { static final _$allocateQuota = - $grpc.ClientMethod<$0.AllocateQuotaRequest, $0.AllocateQuotaResponse>( + $grpc.ClientMethod<$35.AllocateQuotaRequest, $35.AllocateQuotaResponse>( '/google.api.servicecontrol.v1.QuotaController/AllocateQuota', - ($0.AllocateQuotaRequest value) => value.writeToBuffer(), + ($35.AllocateQuotaRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.AllocateQuotaResponse.fromBuffer(value)); + $35.AllocateQuotaResponse.fromBuffer(value)); QuotaControllerClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.AllocateQuotaResponse> allocateQuota( - $0.AllocateQuotaRequest request, + $grpc.ResponseFuture<$35.AllocateQuotaResponse> allocateQuota( + $35.AllocateQuotaRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$allocateQuota, request, options: options); } } +@$pb.GrpcServiceName('google.api.servicecontrol.v1.QuotaController') abstract class QuotaControllerServiceBase extends $grpc.Service { $core.String get $name => 'google.api.servicecontrol.v1.QuotaController'; QuotaControllerServiceBase() { - $addMethod( - $grpc.ServiceMethod<$0.AllocateQuotaRequest, $0.AllocateQuotaResponse>( - 'AllocateQuota', - allocateQuota_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.AllocateQuotaRequest.fromBuffer(value), - ($0.AllocateQuotaResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$35.AllocateQuotaRequest, + $35.AllocateQuotaResponse>( + 'AllocateQuota', + allocateQuota_Pre, + false, + false, + ($core.List<$core.int> value) => + $35.AllocateQuotaRequest.fromBuffer(value), + ($35.AllocateQuotaResponse value) => value.writeToBuffer())); } - $async.Future<$0.AllocateQuotaResponse> allocateQuota_Pre( + $async.Future<$35.AllocateQuotaResponse> allocateQuota_Pre( $grpc.ServiceCall call, - $async.Future<$0.AllocateQuotaRequest> request) async { + $async.Future<$35.AllocateQuotaRequest> request) async { return allocateQuota(call, await request); } - $async.Future<$0.AllocateQuotaResponse> allocateQuota( - $grpc.ServiceCall call, $0.AllocateQuotaRequest request); + $async.Future<$35.AllocateQuotaResponse> allocateQuota( + $grpc.ServiceCall call, $35.AllocateQuotaRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbjson.dart index 757a3b8f..9317493d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/quota_controller.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/quota_controller.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 allocateQuotaRequestDescriptor instead') @@ -28,7 +32,11 @@ const AllocateQuotaRequest$json = { /// Descriptor for `AllocateQuotaRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List allocateQuotaRequestDescriptor = $convert.base64Decode( - 'ChRBbGxvY2F0ZVF1b3RhUmVxdWVzdBIhCgxzZXJ2aWNlX25hbWUYASABKAlSC3NlcnZpY2VOYW1lElsKEmFsbG9jYXRlX29wZXJhdGlvbhgCIAEoCzIsLmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuUXVvdGFPcGVyYXRpb25SEWFsbG9jYXRlT3BlcmF0aW9uEioKEXNlcnZpY2VfY29uZmlnX2lkGAQgASgJUg9zZXJ2aWNlQ29uZmlnSWQ='); + 'ChRBbGxvY2F0ZVF1b3RhUmVxdWVzdBIhCgxzZXJ2aWNlX25hbWUYASABKAlSC3NlcnZpY2VOYW' + '1lElsKEmFsbG9jYXRlX29wZXJhdGlvbhgCIAEoCzIsLmdvb2dsZS5hcGkuc2VydmljZWNvbnRy' + 'b2wudjEuUXVvdGFPcGVyYXRpb25SEWFsbG9jYXRlT3BlcmF0aW9uEioKEXNlcnZpY2VfY29uZm' + 'lnX2lkGAQgASgJUg9zZXJ2aWNlQ29uZmlnSWQ='); + @$core.Deprecated('Use quotaOperationDescriptor instead') const QuotaOperation$json = { '1': 'QuotaOperation', @@ -90,7 +98,17 @@ const QuotaOperation_QuotaMode$json = { /// Descriptor for `QuotaOperation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List quotaOperationDescriptor = $convert.base64Decode( - 'Cg5RdW90YU9wZXJhdGlvbhIhCgxvcGVyYXRpb25faWQYASABKAlSC29wZXJhdGlvbklkEh8KC21ldGhvZF9uYW1lGAIgASgJUgptZXRob2ROYW1lEh8KC2NvbnN1bWVyX2lkGAMgASgJUgpjb25zdW1lcklkElAKBmxhYmVscxgEIAMoCzI4Lmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuUXVvdGFPcGVyYXRpb24uTGFiZWxzRW50cnlSBmxhYmVscxJRCg1xdW90YV9tZXRyaWNzGAUgAygLMiwuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5NZXRyaWNWYWx1ZVNldFIMcXVvdGFNZXRyaWNzElUKCnF1b3RhX21vZGUYBiABKA4yNi5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLlF1b3RhT3BlcmF0aW9uLlF1b3RhTW9kZVIJcXVvdGFNb2RlGjkKC0xhYmVsc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAEiagoJUXVvdGFNb2RlEg8KC1VOU1BFQ0lGSUVEEAASCgoGTk9STUFMEAESDwoLQkVTVF9FRkZPUlQQAhIOCgpDSEVDS19PTkxZEAMSDgoKUVVFUllfT05MWRAEEg8KC0FESlVTVF9PTkxZEAU='); + 'Cg5RdW90YU9wZXJhdGlvbhIhCgxvcGVyYXRpb25faWQYASABKAlSC29wZXJhdGlvbklkEh8KC2' + '1ldGhvZF9uYW1lGAIgASgJUgptZXRob2ROYW1lEh8KC2NvbnN1bWVyX2lkGAMgASgJUgpjb25z' + 'dW1lcklkElAKBmxhYmVscxgEIAMoCzI4Lmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuUX' + 'VvdGFPcGVyYXRpb24uTGFiZWxzRW50cnlSBmxhYmVscxJRCg1xdW90YV9tZXRyaWNzGAUgAygL' + 'MiwuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5NZXRyaWNWYWx1ZVNldFIMcXVvdGFNZX' + 'RyaWNzElUKCnF1b3RhX21vZGUYBiABKA4yNi5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYx' + 'LlF1b3RhT3BlcmF0aW9uLlF1b3RhTW9kZVIJcXVvdGFNb2RlGjkKC0xhYmVsc0VudHJ5EhAKA2' + 'tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAEiagoJUXVvdGFNb2RlEg8K' + 'C1VOU1BFQ0lGSUVEEAASCgoGTk9STUFMEAESDwoLQkVTVF9FRkZPUlQQAhIOCgpDSEVDS19PTk' + 'xZEAMSDgoKUVVFUllfT05MWRAEEg8KC0FESlVTVF9PTkxZEAU='); + @$core.Deprecated('Use allocateQuotaResponseDescriptor instead') const AllocateQuotaResponse$json = { '1': 'AllocateQuotaResponse', @@ -118,7 +136,12 @@ const AllocateQuotaResponse$json = { /// Descriptor for `AllocateQuotaResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List allocateQuotaResponseDescriptor = $convert.base64Decode( - 'ChVBbGxvY2F0ZVF1b3RhUmVzcG9uc2USIQoMb3BlcmF0aW9uX2lkGAEgASgJUgtvcGVyYXRpb25JZBJRCg9hbGxvY2F0ZV9lcnJvcnMYAiADKAsyKC5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLlF1b3RhRXJyb3JSDmFsbG9jYXRlRXJyb3JzElEKDXF1b3RhX21ldHJpY3MYAyADKAsyLC5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLk1ldHJpY1ZhbHVlU2V0UgxxdW90YU1ldHJpY3MSKgoRc2VydmljZV9jb25maWdfaWQYBCABKAlSD3NlcnZpY2VDb25maWdJZA=='); + 'ChVBbGxvY2F0ZVF1b3RhUmVzcG9uc2USIQoMb3BlcmF0aW9uX2lkGAEgASgJUgtvcGVyYXRpb2' + '5JZBJRCg9hbGxvY2F0ZV9lcnJvcnMYAiADKAsyKC5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9s' + 'LnYxLlF1b3RhRXJyb3JSDmFsbG9jYXRlRXJyb3JzElEKDXF1b3RhX21ldHJpY3MYAyADKAsyLC' + '5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLk1ldHJpY1ZhbHVlU2V0UgxxdW90YU1ldHJp' + 'Y3MSKgoRc2VydmljZV9jb25maWdfaWQYBCABKAlSD3NlcnZpY2VDb25maWdJZA=='); + @$core.Deprecated('Use quotaErrorDescriptor instead') const QuotaError$json = { '1': 'QuotaError', @@ -133,6 +156,14 @@ const QuotaError$json = { }, {'1': 'subject', '3': 2, '4': 1, '5': 9, '10': 'subject'}, {'1': 'description', '3': 3, '4': 1, '5': 9, '10': 'description'}, + { + '1': 'status', + '3': 4, + '4': 1, + '5': 11, + '6': '.google.rpc.Status', + '10': 'status' + }, ], '4': [QuotaError_Code$json], }; @@ -152,4 +183,9 @@ const QuotaError_Code$json = { /// Descriptor for `QuotaError`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List quotaErrorDescriptor = $convert.base64Decode( - 'CgpRdW90YUVycm9yEkEKBGNvZGUYASABKA4yLS5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLlF1b3RhRXJyb3IuQ29kZVIEY29kZRIYCgdzdWJqZWN0GAIgASgJUgdzdWJqZWN0EiAKC2Rlc2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbiKGAQoEQ29kZRIPCgtVTlNQRUNJRklFRBAAEhYKElJFU09VUkNFX0VYSEFVU1RFRBAIEhYKEkJJTExJTkdfTk9UX0FDVElWRRBrEhMKD1BST0pFQ1RfREVMRVRFRBBsEhMKD0FQSV9LRVlfSU5WQUxJRBBpEhMKD0FQSV9LRVlfRVhQSVJFRBBw'); + 'CgpRdW90YUVycm9yEkEKBGNvZGUYASABKA4yLS5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLn' + 'YxLlF1b3RhRXJyb3IuQ29kZVIEY29kZRIYCgdzdWJqZWN0GAIgASgJUgdzdWJqZWN0EiAKC2Rl' + 'c2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbhIqCgZzdGF0dXMYBCABKAsyEi5nb29nbGUucn' + 'BjLlN0YXR1c1IGc3RhdHVzIoYBCgRDb2RlEg8KC1VOU1BFQ0lGSUVEEAASFgoSUkVTT1VSQ0Vf' + 'RVhIQVVTVEVEEAgSFgoSQklMTElOR19OT1RfQUNUSVZFEGsSEwoPUFJPSkVDVF9ERUxFVEVEEG' + 'wSEwoPQVBJX0tFWV9JTlZBTElEEGkSEwoPQVBJX0tFWV9FWFBJUkVEEHA='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pb.dart index 49ea4436..d6fe07ba 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pb.dart @@ -1,72 +1,64 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/service_controller.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'operation.pb.dart' as $1; -import 'check_error.pb.dart' as $2; -import '../../../rpc/status.pb.dart' as $3; - +import '../../../rpc/status.pb.dart' as $57; +import 'check_error.pb.dart' as $112; +import 'operation.pb.dart' as $111; import 'service_controller.pbenum.dart'; export 'service_controller.pbenum.dart'; +/// Request message for the Check method. class CheckRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CheckRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOM<$1.Operation>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'operation', - subBuilder: $1.Operation.create) - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceConfigId') - ..hasRequiredFields = false; - - CheckRequest._() : super(); factory CheckRequest({ $core.String? serviceName, - $1.Operation? operation, + $111.Operation? operation, $core.String? serviceConfigId, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (operation != null) { - _result.operation = operation; + $result.operation = operation; } if (serviceConfigId != null) { - _result.serviceConfigId = serviceConfigId; + $result.serviceConfigId = serviceConfigId; } - return _result; + return $result; } + CheckRequest._() : super(); factory CheckRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CheckRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CheckRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOM<$111.Operation>(2, _omitFieldNames ? '' : 'operation', + subBuilder: $111.Operation.create) + ..aOS(4, _omitFieldNames ? '' : 'serviceConfigId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -76,8 +68,10 @@ class CheckRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CheckRequest copyWith(void Function(CheckRequest) updates) => super.copyWith((message) => updates(message as CheckRequest)) - as CheckRequest; // ignore: deprecated_member_use + as CheckRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CheckRequest create() => CheckRequest._(); CheckRequest createEmptyInstance() => create(); @@ -88,6 +82,12 @@ class CheckRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CheckRequest? _defaultInstance; + /// The service name as specified in its service configuration. For example, + /// `"pubsub.googleapis.com"`. + /// + /// See + /// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) + /// for the definition of a service name. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -100,10 +100,11 @@ class CheckRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// The operation to be checked. @$pb.TagNumber(2) - $1.Operation get operation => $_getN(1); + $111.Operation get operation => $_getN(1); @$pb.TagNumber(2) - set operation($1.Operation v) { + set operation($111.Operation v) { setField(2, v); } @@ -112,8 +113,13 @@ class CheckRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOperation() => clearField(2); @$pb.TagNumber(2) - $1.Operation ensureOperation() => $_ensure(1); + $111.Operation ensureOperation() => $_ensure(1); + /// Specifies which version of service configuration should be used to process + /// the request. + /// + /// If unspecified or no matching version can be found, the + /// latest one will be used. @$pb.TagNumber(4) $core.String get serviceConfigId => $_getSZ(2); @$pb.TagNumber(4) @@ -127,49 +133,44 @@ class CheckRequest extends $pb.GeneratedMessage { void clearServiceConfigId() => clearField(4); } +/// Contains additional information about the check operation. class CheckResponse_CheckInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CheckResponse.CheckInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'unusedArguments') - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'consumerInfo', - subBuilder: CheckResponse_ConsumerInfo.create) - ..hasRequiredFields = false; - - CheckResponse_CheckInfo._() : super(); factory CheckResponse_CheckInfo({ $core.Iterable<$core.String>? unusedArguments, CheckResponse_ConsumerInfo? consumerInfo, + $core.String? apiKeyUid, }) { - final _result = create(); + final $result = create(); if (unusedArguments != null) { - _result.unusedArguments.addAll(unusedArguments); + $result.unusedArguments.addAll(unusedArguments); } if (consumerInfo != null) { - _result.consumerInfo = consumerInfo; + $result.consumerInfo = consumerInfo; + } + if (apiKeyUid != null) { + $result.apiKeyUid = apiKeyUid; } - return _result; + return $result; } + CheckResponse_CheckInfo._() : super(); factory CheckResponse_CheckInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CheckResponse_CheckInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CheckResponse.CheckInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'unusedArguments') + ..aOM(2, _omitFieldNames ? '' : 'consumerInfo', + subBuilder: CheckResponse_ConsumerInfo.create) + ..aOS(5, _omitFieldNames ? '' : 'apiKeyUid') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -181,8 +182,10 @@ class CheckResponse_CheckInfo extends $pb.GeneratedMessage { CheckResponse_CheckInfo copyWith( void Function(CheckResponse_CheckInfo) updates) => super.copyWith((message) => updates(message as CheckResponse_CheckInfo)) - as CheckResponse_CheckInfo; // ignore: deprecated_member_use + as CheckResponse_CheckInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CheckResponse_CheckInfo create() => CheckResponse_CheckInfo._(); CheckResponse_CheckInfo createEmptyInstance() => create(); @@ -193,9 +196,13 @@ class CheckResponse_CheckInfo extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CheckResponse_CheckInfo? _defaultInstance; + /// A list of fields and label keys that are ignored by the server. + /// The client doesn't need to send them for following requests to improve + /// performance and allow better aggregation. @$pb.TagNumber(1) $core.List<$core.String> get unusedArguments => $_getList(0); + /// Consumer info of this check. @$pb.TagNumber(2) CheckResponse_ConsumerInfo get consumerInfo => $_getN(1); @$pb.TagNumber(2) @@ -209,60 +216,65 @@ class CheckResponse_CheckInfo extends $pb.GeneratedMessage { void clearConsumerInfo() => clearField(2); @$pb.TagNumber(2) CheckResponse_ConsumerInfo ensureConsumerInfo() => $_ensure(1); + + /// The unique id of the api key in the format of "apikey:". + /// This field will be populated when the consumer passed to Service Control + /// is an API key and all the API key related validations are successful. + @$pb.TagNumber(5) + $core.String get apiKeyUid => $_getSZ(2); + @$pb.TagNumber(5) + set apiKeyUid($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(5) + $core.bool hasApiKeyUid() => $_has(2); + @$pb.TagNumber(5) + void clearApiKeyUid() => clearField(5); } +/// `ConsumerInfo` provides information about the consumer. class CheckResponse_ConsumerInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CheckResponse.ConsumerInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectNumber') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type', - $pb.PbFieldType.OE, - defaultOrMaker: - CheckResponse_ConsumerInfo_ConsumerType.CONSUMER_TYPE_UNSPECIFIED, - valueOf: CheckResponse_ConsumerInfo_ConsumerType.valueOf, - enumValues: CheckResponse_ConsumerInfo_ConsumerType.values) - ..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'consumerNumber') - ..hasRequiredFields = false; - - CheckResponse_ConsumerInfo._() : super(); factory CheckResponse_ConsumerInfo({ $fixnum.Int64? projectNumber, CheckResponse_ConsumerInfo_ConsumerType? type, $fixnum.Int64? consumerNumber, }) { - final _result = create(); + final $result = create(); if (projectNumber != null) { - _result.projectNumber = projectNumber; + $result.projectNumber = projectNumber; } if (type != null) { - _result.type = type; + $result.type = type; } if (consumerNumber != null) { - _result.consumerNumber = consumerNumber; + $result.consumerNumber = consumerNumber; } - return _result; + return $result; } + CheckResponse_ConsumerInfo._() : super(); factory CheckResponse_ConsumerInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CheckResponse_ConsumerInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CheckResponse.ConsumerInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'projectNumber') + ..e( + 2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: + CheckResponse_ConsumerInfo_ConsumerType.CONSUMER_TYPE_UNSPECIFIED, + valueOf: CheckResponse_ConsumerInfo_ConsumerType.valueOf, + enumValues: CheckResponse_ConsumerInfo_ConsumerType.values) + ..aInt64(3, _omitFieldNames ? '' : 'consumerNumber') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -275,8 +287,10 @@ class CheckResponse_ConsumerInfo extends $pb.GeneratedMessage { void Function(CheckResponse_ConsumerInfo) updates) => super.copyWith( (message) => updates(message as CheckResponse_ConsumerInfo)) - as CheckResponse_ConsumerInfo; // ignore: deprecated_member_use + as CheckResponse_ConsumerInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CheckResponse_ConsumerInfo create() => CheckResponse_ConsumerInfo._(); CheckResponse_ConsumerInfo createEmptyInstance() => create(); @@ -287,6 +301,11 @@ class CheckResponse_ConsumerInfo extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CheckResponse_ConsumerInfo? _defaultInstance; + /// The Google cloud project number, e.g. 1234567890. A value of 0 indicates + /// no project number is found. + /// + /// NOTE: This field is deprecated after we support flexible consumer + /// id. New code should not depend on this field anymore. @$pb.TagNumber(1) $fixnum.Int64 get projectNumber => $_getI64(0); @$pb.TagNumber(1) @@ -299,6 +318,8 @@ class CheckResponse_ConsumerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProjectNumber() => clearField(1); + /// The type of the consumer which should have been defined in + /// [Google Resource Manager](https://cloud.google.com/resource-manager/). @$pb.TagNumber(2) CheckResponse_ConsumerInfo_ConsumerType get type => $_getN(1); @$pb.TagNumber(2) @@ -311,6 +332,9 @@ class CheckResponse_ConsumerInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearType() => clearField(2); + /// The consumer identity number, can be Google cloud project number, folder + /// number or organization number e.g. 1234567890. A value of 0 indicates no + /// consumer number is found. @$pb.TagNumber(3) $fixnum.Int64 get consumerNumber => $_getI64(2); @$pb.TagNumber(3) @@ -324,66 +348,56 @@ class CheckResponse_ConsumerInfo extends $pb.GeneratedMessage { void clearConsumerNumber() => clearField(3); } +/// Response message for the Check method. class CheckResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CheckResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operationId') - ..pc<$2.CheckError>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'checkErrors', - $pb.PbFieldType.PM, - subBuilder: $2.CheckError.create) - ..aOS( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceConfigId') - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'checkInfo', subBuilder: CheckResponse_CheckInfo.create) - ..aOS(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceRolloutId') - ..hasRequiredFields = false; - - CheckResponse._() : super(); factory CheckResponse({ $core.String? operationId, - $core.Iterable<$2.CheckError>? checkErrors, + $core.Iterable<$112.CheckError>? checkErrors, $core.String? serviceConfigId, CheckResponse_CheckInfo? checkInfo, $core.String? serviceRolloutId, }) { - final _result = create(); + final $result = create(); if (operationId != null) { - _result.operationId = operationId; + $result.operationId = operationId; } if (checkErrors != null) { - _result.checkErrors.addAll(checkErrors); + $result.checkErrors.addAll(checkErrors); } if (serviceConfigId != null) { - _result.serviceConfigId = serviceConfigId; + $result.serviceConfigId = serviceConfigId; } if (checkInfo != null) { - _result.checkInfo = checkInfo; + $result.checkInfo = checkInfo; } if (serviceRolloutId != null) { - _result.serviceRolloutId = serviceRolloutId; + $result.serviceRolloutId = serviceRolloutId; } - return _result; + return $result; } + CheckResponse._() : super(); factory CheckResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CheckResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CheckResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'operationId') + ..pc<$112.CheckError>( + 2, _omitFieldNames ? '' : 'checkErrors', $pb.PbFieldType.PM, + subBuilder: $112.CheckError.create) + ..aOS(5, _omitFieldNames ? '' : 'serviceConfigId') + ..aOM(6, _omitFieldNames ? '' : 'checkInfo', + subBuilder: CheckResponse_CheckInfo.create) + ..aOS(11, _omitFieldNames ? '' : 'serviceRolloutId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -393,8 +407,10 @@ class CheckResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') CheckResponse copyWith(void Function(CheckResponse) updates) => super.copyWith((message) => updates(message as CheckResponse)) - as CheckResponse; // ignore: deprecated_member_use + as CheckResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CheckResponse create() => CheckResponse._(); CheckResponse createEmptyInstance() => create(); @@ -405,6 +421,9 @@ class CheckResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CheckResponse? _defaultInstance; + /// The same operation_id value used in the + /// [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging + /// and diagnostics purposes. @$pb.TagNumber(1) $core.String get operationId => $_getSZ(0); @$pb.TagNumber(1) @@ -417,9 +436,15 @@ class CheckResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearOperationId() => clearField(1); + /// Indicate the decision of the check. + /// + /// If no check errors are present, the service should process the operation. + /// Otherwise the service should use the list of errors to determine the + /// appropriate action. @$pb.TagNumber(2) - $core.List<$2.CheckError> get checkErrors => $_getList(1); + $core.List<$112.CheckError> get checkErrors => $_getList(1); + /// The actual config id used to process the request. @$pb.TagNumber(5) $core.String get serviceConfigId => $_getSZ(2); @$pb.TagNumber(5) @@ -432,6 +457,7 @@ class CheckResponse extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearServiceConfigId() => clearField(5); + /// Feedback data returned from the server during processing a Check request. @$pb.TagNumber(6) CheckResponse_CheckInfo get checkInfo => $_getN(3); @$pb.TagNumber(6) @@ -446,6 +472,7 @@ class CheckResponse extends $pb.GeneratedMessage { @$pb.TagNumber(6) CheckResponse_CheckInfo ensureCheckInfo() => $_ensure(3); + /// The current service rollout id used to process the request. @$pb.TagNumber(11) $core.String get serviceRolloutId => $_getSZ(4); @$pb.TagNumber(11) @@ -459,56 +486,45 @@ class CheckResponse extends $pb.GeneratedMessage { void clearServiceRolloutId() => clearField(11); } +/// Request message for the Report method. class ReportRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReportRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..pc<$1.Operation>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operations', - $pb.PbFieldType.PM, - subBuilder: $1.Operation.create) - ..aOS( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceConfigId') - ..hasRequiredFields = false; - - ReportRequest._() : super(); factory ReportRequest({ $core.String? serviceName, - $core.Iterable<$1.Operation>? operations, + $core.Iterable<$111.Operation>? operations, $core.String? serviceConfigId, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (operations != null) { - _result.operations.addAll(operations); + $result.operations.addAll(operations); } if (serviceConfigId != null) { - _result.serviceConfigId = serviceConfigId; + $result.serviceConfigId = serviceConfigId; } - return _result; + return $result; } + ReportRequest._() : super(); factory ReportRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ReportRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReportRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..pc<$111.Operation>( + 2, _omitFieldNames ? '' : 'operations', $pb.PbFieldType.PM, + subBuilder: $111.Operation.create) + ..aOS(3, _omitFieldNames ? '' : 'serviceConfigId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -518,8 +534,10 @@ class ReportRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ReportRequest copyWith(void Function(ReportRequest) updates) => super.copyWith((message) => updates(message as ReportRequest)) - as ReportRequest; // ignore: deprecated_member_use + as ReportRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReportRequest create() => ReportRequest._(); ReportRequest createEmptyInstance() => create(); @@ -530,6 +548,12 @@ class ReportRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ReportRequest? _defaultInstance; + /// The service name as specified in its service configuration. For example, + /// `"pubsub.googleapis.com"`. + /// + /// See + /// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) + /// for the definition of a service name. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -542,9 +566,25 @@ class ReportRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// Operations to be reported. + /// + /// Typically the service should report one operation per request. + /// Putting multiple operations into a single request is allowed, but should + /// be used only when multiple operations are natually available at the time + /// of the report. + /// + /// There is no limit on the number of operations in the same ReportRequest, + /// however the ReportRequest size should be no larger than 1MB. See + /// [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] + /// for partial failure behavior. @$pb.TagNumber(2) - $core.List<$1.Operation> get operations => $_getList(1); + $core.List<$111.Operation> get operations => $_getList(1); + /// Specifies which version of service config should be used to process the + /// request. + /// + /// If unspecified or no matching version can be found, the + /// latest one will be used. @$pb.TagNumber(3) $core.String get serviceConfigId => $_getSZ(2); @$pb.TagNumber(3) @@ -558,49 +598,40 @@ class ReportRequest extends $pb.GeneratedMessage { void clearServiceConfigId() => clearField(3); } +/// Represents the processing error of one +/// [Operation][google.api.servicecontrol.v1.Operation] in the request. class ReportResponse_ReportError extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReportResponse.ReportError', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operationId') - ..aOM<$3.Status>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'status', - subBuilder: $3.Status.create) - ..hasRequiredFields = false; - - ReportResponse_ReportError._() : super(); factory ReportResponse_ReportError({ $core.String? operationId, - $3.Status? status, + $57.Status? status, }) { - final _result = create(); + final $result = create(); if (operationId != null) { - _result.operationId = operationId; + $result.operationId = operationId; } if (status != null) { - _result.status = status; + $result.status = status; } - return _result; + return $result; } + ReportResponse_ReportError._() : super(); factory ReportResponse_ReportError.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ReportResponse_ReportError.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReportResponse.ReportError', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'operationId') + ..aOM<$57.Status>(2, _omitFieldNames ? '' : 'status', + subBuilder: $57.Status.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') @@ -613,8 +644,10 @@ class ReportResponse_ReportError extends $pb.GeneratedMessage { void Function(ReportResponse_ReportError) updates) => super.copyWith( (message) => updates(message as ReportResponse_ReportError)) - as ReportResponse_ReportError; // ignore: deprecated_member_use + as ReportResponse_ReportError; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReportResponse_ReportError create() => ReportResponse_ReportError._(); ReportResponse_ReportError createEmptyInstance() => create(); @@ -625,6 +658,9 @@ class ReportResponse_ReportError extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ReportResponse_ReportError? _defaultInstance; + /// The + /// [Operation.operation_id][google.api.servicecontrol.v1.Operation.operation_id] + /// value from the request. @$pb.TagNumber(1) $core.String get operationId => $_getSZ(0); @$pb.TagNumber(1) @@ -637,10 +673,12 @@ class ReportResponse_ReportError extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearOperationId() => clearField(1); + /// Details of the error when processing the + /// [Operation][google.api.servicecontrol.v1.Operation]. @$pb.TagNumber(2) - $3.Status get status => $_getN(1); + $57.Status get status => $_getN(1); @$pb.TagNumber(2) - set status($3.Status v) { + set status($57.Status v) { setField(2, v); } @@ -649,57 +687,48 @@ class ReportResponse_ReportError extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearStatus() => clearField(2); @$pb.TagNumber(2) - $3.Status ensureStatus() => $_ensure(1); + $57.Status ensureStatus() => $_ensure(1); } +/// Response message for the Report method. class ReportResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReportResponse', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicecontrol.v1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'reportErrors', - $pb.PbFieldType.PM, - subBuilder: ReportResponse_ReportError.create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceConfigId') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceRolloutId') - ..hasRequiredFields = false; - - ReportResponse._() : super(); factory ReportResponse({ $core.Iterable? reportErrors, $core.String? serviceConfigId, $core.String? serviceRolloutId, }) { - final _result = create(); + final $result = create(); if (reportErrors != null) { - _result.reportErrors.addAll(reportErrors); + $result.reportErrors.addAll(reportErrors); } if (serviceConfigId != null) { - _result.serviceConfigId = serviceConfigId; + $result.serviceConfigId = serviceConfigId; } if (serviceRolloutId != null) { - _result.serviceRolloutId = serviceRolloutId; + $result.serviceRolloutId = serviceRolloutId; } - return _result; + return $result; } + ReportResponse._() : super(); factory ReportResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ReportResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReportResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'reportErrors', $pb.PbFieldType.PM, + subBuilder: ReportResponse_ReportError.create) + ..aOS(2, _omitFieldNames ? '' : 'serviceConfigId') + ..aOS(4, _omitFieldNames ? '' : 'serviceRolloutId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -709,8 +738,10 @@ class ReportResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ReportResponse copyWith(void Function(ReportResponse) updates) => super.copyWith((message) => updates(message as ReportResponse)) - as ReportResponse; // ignore: deprecated_member_use + as ReportResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReportResponse create() => ReportResponse._(); ReportResponse createEmptyInstance() => create(); @@ -721,9 +752,24 @@ class ReportResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ReportResponse? _defaultInstance; + /// Partial failures, one for each `Operation` in the request that failed + /// processing. There are three possible combinations of the RPC status: + /// + /// 1. The combination of a successful RPC status and an empty `report_errors` + /// list indicates a complete success where all `Operations` in the + /// request are processed successfully. + /// 2. The combination of a successful RPC status and a non-empty + /// `report_errors` list indicates a partial success where some + /// `Operations` in the request succeeded. Each + /// `Operation` that failed processing has a corresponding item + /// in this list. + /// 3. A failed RPC status indicates a general non-deterministic failure. + /// When this happens, it's impossible to know which of the + /// 'Operations' in the request succeeded or failed. @$pb.TagNumber(1) $core.List get reportErrors => $_getList(0); + /// The actual config id used to process the request. @$pb.TagNumber(2) $core.String get serviceConfigId => $_getSZ(1); @$pb.TagNumber(2) @@ -736,6 +782,7 @@ class ReportResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearServiceConfigId() => clearField(2); + /// The current service rollout id used to process the request. @$pb.TagNumber(4) $core.String get serviceRolloutId => $_getSZ(2); @$pb.TagNumber(4) @@ -748,3 +795,7 @@ class ReportResponse extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearServiceRolloutId() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbenum.dart index fffbcec6..43375edd 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbenum.dart @@ -1,45 +1,36 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/service_controller.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The type of the consumer as defined in +/// [Google Resource Manager](https://cloud.google.com/resource-manager/). class CheckResponse_ConsumerInfo_ConsumerType extends $pb.ProtobufEnum { static const CheckResponse_ConsumerInfo_ConsumerType CONSUMER_TYPE_UNSPECIFIED = CheckResponse_ConsumerInfo_ConsumerType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CONSUMER_TYPE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'CONSUMER_TYPE_UNSPECIFIED'); static const CheckResponse_ConsumerInfo_ConsumerType PROJECT = CheckResponse_ConsumerInfo_ConsumerType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PROJECT'); + 1, _omitEnumNames ? '' : 'PROJECT'); static const CheckResponse_ConsumerInfo_ConsumerType FOLDER = CheckResponse_ConsumerInfo_ConsumerType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FOLDER'); + 2, _omitEnumNames ? '' : 'FOLDER'); static const CheckResponse_ConsumerInfo_ConsumerType ORGANIZATION = CheckResponse_ConsumerInfo_ConsumerType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ORGANIZATION'); + 3, _omitEnumNames ? '' : 'ORGANIZATION'); static const CheckResponse_ConsumerInfo_ConsumerType SERVICE_SPECIFIC = CheckResponse_ConsumerInfo_ConsumerType._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SERVICE_SPECIFIC'); + 4, _omitEnumNames ? '' : 'SERVICE_SPECIFIC'); static const $core.List values = [ @@ -58,3 +49,5 @@ class CheckResponse_ConsumerInfo_ConsumerType extends $pb.ProtobufEnum { const CheckResponse_ConsumerInfo_ConsumerType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbgrpc.dart index 0becfbae..40f82d34 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbgrpc.dart @@ -1,77 +1,87 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/service_controller.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'service_controller.pb.dart' as $0; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'service_controller.pb.dart' as $34; + export 'service_controller.pb.dart'; +@$pb.GrpcServiceName('google.api.servicecontrol.v1.ServiceController') class ServiceControllerClient extends $grpc.Client { - static final _$check = $grpc.ClientMethod<$0.CheckRequest, $0.CheckResponse>( - '/google.api.servicecontrol.v1.ServiceController/Check', - ($0.CheckRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.CheckResponse.fromBuffer(value)); + static final _$check = + $grpc.ClientMethod<$34.CheckRequest, $34.CheckResponse>( + '/google.api.servicecontrol.v1.ServiceController/Check', + ($34.CheckRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $34.CheckResponse.fromBuffer(value)); static final _$report = - $grpc.ClientMethod<$0.ReportRequest, $0.ReportResponse>( + $grpc.ClientMethod<$34.ReportRequest, $34.ReportResponse>( '/google.api.servicecontrol.v1.ServiceController/Report', - ($0.ReportRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.ReportResponse.fromBuffer(value)); + ($34.ReportRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $34.ReportResponse.fromBuffer(value)); ServiceControllerClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.CheckResponse> check($0.CheckRequest request, + $grpc.ResponseFuture<$34.CheckResponse> check($34.CheckRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$check, request, options: options); } - $grpc.ResponseFuture<$0.ReportResponse> report($0.ReportRequest request, + $grpc.ResponseFuture<$34.ReportResponse> report($34.ReportRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$report, request, options: options); } } +@$pb.GrpcServiceName('google.api.servicecontrol.v1.ServiceController') abstract class ServiceControllerServiceBase extends $grpc.Service { $core.String get $name => 'google.api.servicecontrol.v1.ServiceController'; ServiceControllerServiceBase() { - $addMethod($grpc.ServiceMethod<$0.CheckRequest, $0.CheckResponse>( + $addMethod($grpc.ServiceMethod<$34.CheckRequest, $34.CheckResponse>( 'Check', check_Pre, false, false, - ($core.List<$core.int> value) => $0.CheckRequest.fromBuffer(value), - ($0.CheckResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ReportRequest, $0.ReportResponse>( + ($core.List<$core.int> value) => $34.CheckRequest.fromBuffer(value), + ($34.CheckResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$34.ReportRequest, $34.ReportResponse>( 'Report', report_Pre, false, false, - ($core.List<$core.int> value) => $0.ReportRequest.fromBuffer(value), - ($0.ReportResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $34.ReportRequest.fromBuffer(value), + ($34.ReportResponse value) => value.writeToBuffer())); } - $async.Future<$0.CheckResponse> check_Pre( - $grpc.ServiceCall call, $async.Future<$0.CheckRequest> request) async { + $async.Future<$34.CheckResponse> check_Pre( + $grpc.ServiceCall call, $async.Future<$34.CheckRequest> request) async { return check(call, await request); } - $async.Future<$0.ReportResponse> report_Pre( - $grpc.ServiceCall call, $async.Future<$0.ReportRequest> request) async { + $async.Future<$34.ReportResponse> report_Pre( + $grpc.ServiceCall call, $async.Future<$34.ReportRequest> request) async { return report(call, await request); } - $async.Future<$0.CheckResponse> check( - $grpc.ServiceCall call, $0.CheckRequest request); - $async.Future<$0.ReportResponse> report( - $grpc.ServiceCall call, $0.ReportRequest request); + $async.Future<$34.CheckResponse> check( + $grpc.ServiceCall call, $34.CheckRequest request); + $async.Future<$34.ReportResponse> report( + $grpc.ServiceCall call, $34.ReportRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbjson.dart index 85ea762c..bb4f8c77 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v1/service_controller.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicecontrol/v1/service_controller.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 checkRequestDescriptor instead') @@ -28,7 +32,10 @@ const CheckRequest$json = { /// Descriptor for `CheckRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List checkRequestDescriptor = $convert.base64Decode( - 'CgxDaGVja1JlcXVlc3QSIQoMc2VydmljZV9uYW1lGAEgASgJUgtzZXJ2aWNlTmFtZRJFCglvcGVyYXRpb24YAiABKAsyJy5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLk9wZXJhdGlvblIJb3BlcmF0aW9uEioKEXNlcnZpY2VfY29uZmlnX2lkGAQgASgJUg9zZXJ2aWNlQ29uZmlnSWQ='); + 'CgxDaGVja1JlcXVlc3QSIQoMc2VydmljZV9uYW1lGAEgASgJUgtzZXJ2aWNlTmFtZRJFCglvcG' + 'VyYXRpb24YAiABKAsyJy5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLk9wZXJhdGlvblIJ' + 'b3BlcmF0aW9uEioKEXNlcnZpY2VfY29uZmlnX2lkGAQgASgJUg9zZXJ2aWNlQ29uZmlnSWQ='); + @$core.Deprecated('Use checkResponseDescriptor instead') const CheckResponse$json = { '1': 'CheckResponse', @@ -75,6 +82,7 @@ const CheckResponse_CheckInfo$json = { '6': '.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo', '10': 'consumerInfo' }, + {'1': 'api_key_uid', '3': 5, '4': 1, '5': 9, '10': 'apiKeyUid'}, ], }; @@ -111,7 +119,22 @@ const CheckResponse_ConsumerInfo_ConsumerType$json = { /// Descriptor for `CheckResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List checkResponseDescriptor = $convert.base64Decode( - 'Cg1DaGVja1Jlc3BvbnNlEiEKDG9wZXJhdGlvbl9pZBgBIAEoCVILb3BlcmF0aW9uSWQSSwoMY2hlY2tfZXJyb3JzGAIgAygLMiguZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5DaGVja0Vycm9yUgtjaGVja0Vycm9ycxIqChFzZXJ2aWNlX2NvbmZpZ19pZBgFIAEoCVIPc2VydmljZUNvbmZpZ0lkEiwKEnNlcnZpY2Vfcm9sbG91dF9pZBgLIAEoCVIQc2VydmljZVJvbGxvdXRJZBJUCgpjaGVja19pbmZvGAYgASgLMjUuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5DaGVja1Jlc3BvbnNlLkNoZWNrSW5mb1IJY2hlY2tJbmZvGpUBCglDaGVja0luZm8SKQoQdW51c2VkX2FyZ3VtZW50cxgBIAMoCVIPdW51c2VkQXJndW1lbnRzEl0KDWNvbnN1bWVyX2luZm8YAiABKAsyOC5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLkNoZWNrUmVzcG9uc2UuQ29uc3VtZXJJbmZvUgxjb25zdW1lckluZm8aqQIKDENvbnN1bWVySW5mbxIlCg5wcm9qZWN0X251bWJlchgBIAEoA1INcHJvamVjdE51bWJlchJZCgR0eXBlGAIgASgOMkUuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5DaGVja1Jlc3BvbnNlLkNvbnN1bWVySW5mby5Db25zdW1lclR5cGVSBHR5cGUSJwoPY29uc3VtZXJfbnVtYmVyGAMgASgDUg5jb25zdW1lck51bWJlciJuCgxDb25zdW1lclR5cGUSHQoZQ09OU1VNRVJfVFlQRV9VTlNQRUNJRklFRBAAEgsKB1BST0pFQ1QQARIKCgZGT0xERVIQAhIQCgxPUkdBTklaQVRJT04QAxIUChBTRVJWSUNFX1NQRUNJRklDEAQ='); + 'Cg1DaGVja1Jlc3BvbnNlEiEKDG9wZXJhdGlvbl9pZBgBIAEoCVILb3BlcmF0aW9uSWQSSwoMY2' + 'hlY2tfZXJyb3JzGAIgAygLMiguZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5DaGVja0Vy' + 'cm9yUgtjaGVja0Vycm9ycxIqChFzZXJ2aWNlX2NvbmZpZ19pZBgFIAEoCVIPc2VydmljZUNvbm' + 'ZpZ0lkEiwKEnNlcnZpY2Vfcm9sbG91dF9pZBgLIAEoCVIQc2VydmljZVJvbGxvdXRJZBJUCgpj' + 'aGVja19pbmZvGAYgASgLMjUuZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5DaGVja1Jlc3' + 'BvbnNlLkNoZWNrSW5mb1IJY2hlY2tJbmZvGrUBCglDaGVja0luZm8SKQoQdW51c2VkX2FyZ3Vt' + 'ZW50cxgBIAMoCVIPdW51c2VkQXJndW1lbnRzEl0KDWNvbnN1bWVyX2luZm8YAiABKAsyOC5nb2' + '9nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLkNoZWNrUmVzcG9uc2UuQ29uc3VtZXJJbmZvUgxj' + 'b25zdW1lckluZm8SHgoLYXBpX2tleV91aWQYBSABKAlSCWFwaUtleVVpZBqpAgoMQ29uc3VtZX' + 'JJbmZvEiUKDnByb2plY3RfbnVtYmVyGAEgASgDUg1wcm9qZWN0TnVtYmVyElkKBHR5cGUYAiAB' + 'KA4yRS5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYxLkNoZWNrUmVzcG9uc2UuQ29uc3VtZX' + 'JJbmZvLkNvbnN1bWVyVHlwZVIEdHlwZRInCg9jb25zdW1lcl9udW1iZXIYAyABKANSDmNvbnN1' + 'bWVyTnVtYmVyIm4KDENvbnN1bWVyVHlwZRIdChlDT05TVU1FUl9UWVBFX1VOU1BFQ0lGSUVEEA' + 'ASCwoHUFJPSkVDVBABEgoKBkZPTERFUhACEhAKDE9SR0FOSVpBVElPThADEhQKEFNFUlZJQ0Vf' + 'U1BFQ0lGSUMQBA=='); + @$core.Deprecated('Use reportRequestDescriptor instead') const ReportRequest$json = { '1': 'ReportRequest', @@ -131,7 +154,11 @@ const ReportRequest$json = { /// Descriptor for `ReportRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List reportRequestDescriptor = $convert.base64Decode( - 'Cg1SZXBvcnRSZXF1ZXN0EiEKDHNlcnZpY2VfbmFtZRgBIAEoCVILc2VydmljZU5hbWUSRwoKb3BlcmF0aW9ucxgCIAMoCzInLmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuT3BlcmF0aW9uUgpvcGVyYXRpb25zEioKEXNlcnZpY2VfY29uZmlnX2lkGAMgASgJUg9zZXJ2aWNlQ29uZmlnSWQ='); + 'Cg1SZXBvcnRSZXF1ZXN0EiEKDHNlcnZpY2VfbmFtZRgBIAEoCVILc2VydmljZU5hbWUSRwoKb3' + 'BlcmF0aW9ucxgCIAMoCzInLmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjEuT3BlcmF0aW9u' + 'UgpvcGVyYXRpb25zEioKEXNlcnZpY2VfY29uZmlnX2lkGAMgASgJUg9zZXJ2aWNlQ29uZmlnSW' + 'Q='); + @$core.Deprecated('Use reportResponseDescriptor instead') const ReportResponse$json = { '1': 'ReportResponse', @@ -174,4 +201,9 @@ const ReportResponse_ReportError$json = { /// Descriptor for `ReportResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List reportResponseDescriptor = $convert.base64Decode( - 'Cg5SZXBvcnRSZXNwb25zZRJdCg1yZXBvcnRfZXJyb3JzGAEgAygLMjguZ29vZ2xlLmFwaS5zZXJ2aWNlY29udHJvbC52MS5SZXBvcnRSZXNwb25zZS5SZXBvcnRFcnJvclIMcmVwb3J0RXJyb3JzEioKEXNlcnZpY2VfY29uZmlnX2lkGAIgASgJUg9zZXJ2aWNlQ29uZmlnSWQSLAoSc2VydmljZV9yb2xsb3V0X2lkGAQgASgJUhBzZXJ2aWNlUm9sbG91dElkGlwKC1JlcG9ydEVycm9yEiEKDG9wZXJhdGlvbl9pZBgBIAEoCVILb3BlcmF0aW9uSWQSKgoGc3RhdHVzGAIgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXNSBnN0YXR1cw=='); + 'Cg5SZXBvcnRSZXNwb25zZRJdCg1yZXBvcnRfZXJyb3JzGAEgAygLMjguZ29vZ2xlLmFwaS5zZX' + 'J2aWNlY29udHJvbC52MS5SZXBvcnRSZXNwb25zZS5SZXBvcnRFcnJvclIMcmVwb3J0RXJyb3Jz' + 'EioKEXNlcnZpY2VfY29uZmlnX2lkGAIgASgJUg9zZXJ2aWNlQ29uZmlnSWQSLAoSc2VydmljZV' + '9yb2xsb3V0X2lkGAQgASgJUhBzZXJ2aWNlUm9sbG91dElkGlwKC1JlcG9ydEVycm9yEiEKDG9w' + 'ZXJhdGlvbl9pZBgBIAEoCVILb3BlcmF0aW9uSWQSKgoGc3RhdHVzGAIgASgLMhIuZ29vZ2xlLn' + 'JwYy5TdGF0dXNSBnN0YXR1cw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pb.dart new file mode 100644 index 00000000..fa1d689e --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pb.dart @@ -0,0 +1,590 @@ +// +// Generated code. Do not modify. +// source: google/api/servicecontrol/v2/service_controller.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 '../../../rpc/context/attribute_context.pb.dart' as $113; +import '../../../rpc/status.pb.dart' as $57; + +/// Request message for the Check method. +class CheckRequest extends $pb.GeneratedMessage { + factory CheckRequest({ + $core.String? serviceName, + $core.String? serviceConfigId, + $113.AttributeContext? attributes, + $core.Iterable? resources, + $core.String? flags, + }) { + final $result = create(); + if (serviceName != null) { + $result.serviceName = serviceName; + } + if (serviceConfigId != null) { + $result.serviceConfigId = serviceConfigId; + } + if (attributes != null) { + $result.attributes = attributes; + } + if (resources != null) { + $result.resources.addAll(resources); + } + if (flags != null) { + $result.flags = flags; + } + return $result; + } + CheckRequest._() : super(); + factory CheckRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CheckRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CheckRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOS(2, _omitFieldNames ? '' : 'serviceConfigId') + ..aOM<$113.AttributeContext>(3, _omitFieldNames ? '' : 'attributes', + subBuilder: $113.AttributeContext.create) + ..pc( + 4, _omitFieldNames ? '' : 'resources', $pb.PbFieldType.PM, + subBuilder: ResourceInfo.create) + ..aOS(5, _omitFieldNames ? '' : 'flags') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CheckRequest clone() => CheckRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CheckRequest copyWith(void Function(CheckRequest) updates) => + super.copyWith((message) => updates(message as CheckRequest)) + as CheckRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CheckRequest create() => CheckRequest._(); + CheckRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CheckRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CheckRequest? _defaultInstance; + + /// The service name as specified in its service configuration. For example, + /// `"pubsub.googleapis.com"`. + /// + /// See + /// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) + /// for the definition of a service name. + @$pb.TagNumber(1) + $core.String get serviceName => $_getSZ(0); + @$pb.TagNumber(1) + set serviceName($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasServiceName() => $_has(0); + @$pb.TagNumber(1) + void clearServiceName() => clearField(1); + + /// Specifies the version of the service configuration that should be used to + /// process the request. Must not be empty. Set this field to 'latest' to + /// specify using the latest configuration. + @$pb.TagNumber(2) + $core.String get serviceConfigId => $_getSZ(1); + @$pb.TagNumber(2) + set serviceConfigId($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasServiceConfigId() => $_has(1); + @$pb.TagNumber(2) + void clearServiceConfigId() => clearField(2); + + /// Describes attributes about the operation being executed by the service. + @$pb.TagNumber(3) + $113.AttributeContext get attributes => $_getN(2); + @$pb.TagNumber(3) + set attributes($113.AttributeContext v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasAttributes() => $_has(2); + @$pb.TagNumber(3) + void clearAttributes() => clearField(3); + @$pb.TagNumber(3) + $113.AttributeContext ensureAttributes() => $_ensure(2); + + /// Describes the resources and the policies applied to each resource. + @$pb.TagNumber(4) + $core.List get resources => $_getList(3); + + /// Optional. Contains a comma-separated list of flags. + @$pb.TagNumber(5) + $core.String get flags => $_getSZ(4); + @$pb.TagNumber(5) + set flags($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasFlags() => $_has(4); + @$pb.TagNumber(5) + void clearFlags() => clearField(5); +} + +/// Describes a resource referenced in the request. +class ResourceInfo extends $pb.GeneratedMessage { + factory ResourceInfo({ + $core.String? name, + $core.String? type, + $core.String? permission, + $core.String? container, + $core.String? location, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (type != null) { + $result.type = type; + } + if (permission != null) { + $result.permission = permission; + } + if (container != null) { + $result.container = container; + } + if (location != null) { + $result.location = location; + } + return $result; + } + ResourceInfo._() : super(); + factory ResourceInfo.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ResourceInfo.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ResourceInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'type') + ..aOS(3, _omitFieldNames ? '' : 'permission') + ..aOS(4, _omitFieldNames ? '' : 'container') + ..aOS(5, _omitFieldNames ? '' : 'location') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ResourceInfo clone() => ResourceInfo()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ResourceInfo copyWith(void Function(ResourceInfo) updates) => + super.copyWith((message) => updates(message as ResourceInfo)) + as ResourceInfo; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ResourceInfo create() => ResourceInfo._(); + ResourceInfo createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ResourceInfo getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ResourceInfo? _defaultInstance; + + /// The name of the resource referenced in the request. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// The resource type in the format of "{service}/{kind}". + @$pb.TagNumber(2) + $core.String get type => $_getSZ(1); + @$pb.TagNumber(2) + set type($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasType() => $_has(1); + @$pb.TagNumber(2) + void clearType() => clearField(2); + + /// The resource permission needed for this request. + /// The format must be "{service}/{plural}.{verb}". + @$pb.TagNumber(3) + $core.String get permission => $_getSZ(2); + @$pb.TagNumber(3) + set permission($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasPermission() => $_has(2); + @$pb.TagNumber(3) + void clearPermission() => clearField(3); + + /// Optional. The identifier of the container of this resource. For Google + /// Cloud APIs, the resource container must be one of the following formats: + /// - `projects/` + /// - `folders/` + /// - `organizations/` + /// For the policy enforcement on the container level (VPCSC and Location + /// Policy check), this field takes precedence on the container extracted from + /// name when presents. + @$pb.TagNumber(4) + $core.String get container => $_getSZ(3); + @$pb.TagNumber(4) + set container($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasContainer() => $_has(3); + @$pb.TagNumber(4) + void clearContainer() => clearField(4); + + /// Optional. The location of the resource. The value must be a valid zone, + /// region or multiregion. For example: "europe-west4" or + /// "northamerica-northeast1-a" + @$pb.TagNumber(5) + $core.String get location => $_getSZ(4); + @$pb.TagNumber(5) + set location($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasLocation() => $_has(4); + @$pb.TagNumber(5) + void clearLocation() => clearField(5); +} + +/// Response message for the Check method. +class CheckResponse extends $pb.GeneratedMessage { + factory CheckResponse({ + $57.Status? status, + $core.Map<$core.String, $core.String>? headers, + }) { + final $result = create(); + if (status != null) { + $result.status = status; + } + if (headers != null) { + $result.headers.addAll(headers); + } + return $result; + } + CheckResponse._() : super(); + factory CheckResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CheckResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CheckResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v2'), + createEmptyInstance: create) + ..aOM<$57.Status>(1, _omitFieldNames ? '' : 'status', + subBuilder: $57.Status.create) + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'headers', + entryClassName: 'CheckResponse.HeadersEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.servicecontrol.v2')) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CheckResponse clone() => CheckResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CheckResponse copyWith(void Function(CheckResponse) updates) => + super.copyWith((message) => updates(message as CheckResponse)) + as CheckResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CheckResponse create() => CheckResponse._(); + CheckResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CheckResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CheckResponse? _defaultInstance; + + /// Operation is allowed when this field is not set. Any non-'OK' status + /// indicates a denial; [google.rpc.Status.details][google.rpc.Status.details] + /// would contain additional details about the denial. + @$pb.TagNumber(1) + $57.Status get status => $_getN(0); + @$pb.TagNumber(1) + set status($57.Status v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasStatus() => $_has(0); + @$pb.TagNumber(1) + void clearStatus() => clearField(1); + @$pb.TagNumber(1) + $57.Status ensureStatus() => $_ensure(0); + + /// Returns a set of request contexts generated from the `CheckRequest`. + @$pb.TagNumber(2) + $core.Map<$core.String, $core.String> get headers => $_getMap(1); +} + +/// Request message for the Report method. +class ReportRequest extends $pb.GeneratedMessage { + factory ReportRequest({ + $core.String? serviceName, + $core.String? serviceConfigId, + $core.Iterable<$113.AttributeContext>? operations, + }) { + final $result = create(); + if (serviceName != null) { + $result.serviceName = serviceName; + } + if (serviceConfigId != null) { + $result.serviceConfigId = serviceConfigId; + } + if (operations != null) { + $result.operations.addAll(operations); + } + return $result; + } + ReportRequest._() : super(); + factory ReportRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ReportRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReportRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOS(2, _omitFieldNames ? '' : 'serviceConfigId') + ..pc<$113.AttributeContext>( + 3, _omitFieldNames ? '' : 'operations', $pb.PbFieldType.PM, + subBuilder: $113.AttributeContext.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') + ReportRequest clone() => ReportRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReportRequest copyWith(void Function(ReportRequest) updates) => + super.copyWith((message) => updates(message as ReportRequest)) + as ReportRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReportRequest create() => ReportRequest._(); + ReportRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReportRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ReportRequest? _defaultInstance; + + /// The service name as specified in its service configuration. For example, + /// `"pubsub.googleapis.com"`. + /// + /// See + /// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) + /// for the definition of a service name. + @$pb.TagNumber(1) + $core.String get serviceName => $_getSZ(0); + @$pb.TagNumber(1) + set serviceName($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasServiceName() => $_has(0); + @$pb.TagNumber(1) + void clearServiceName() => clearField(1); + + /// Specifies the version of the service configuration that should be used to + /// process the request. Must not be empty. Set this field to 'latest' to + /// specify using the latest configuration. + @$pb.TagNumber(2) + $core.String get serviceConfigId => $_getSZ(1); + @$pb.TagNumber(2) + set serviceConfigId($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasServiceConfigId() => $_has(1); + @$pb.TagNumber(2) + void clearServiceConfigId() => clearField(2); + + /// Describes the list of operations to be reported. Each operation is + /// represented as an AttributeContext, and contains all attributes around an + /// API access. + @$pb.TagNumber(3) + $core.List<$113.AttributeContext> get operations => $_getList(2); +} + +/// Response message for the Report method. +/// If the request contains any invalid data, the server returns an RPC error. +class ReportResponse extends $pb.GeneratedMessage { + factory ReportResponse() => create(); + ReportResponse._() : super(); + factory ReportResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ReportResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReportResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v2'), + 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') + ReportResponse clone() => ReportResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ReportResponse copyWith(void Function(ReportResponse) updates) => + super.copyWith((message) => updates(message as ReportResponse)) + as ReportResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ReportResponse create() => ReportResponse._(); + ReportResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ReportResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ReportResponse? _defaultInstance; +} + +/// Message containing resource details in a batch mode. +class ResourceInfoList extends $pb.GeneratedMessage { + factory ResourceInfoList({ + $core.Iterable? resources, + }) { + final $result = create(); + if (resources != null) { + $result.resources.addAll(resources); + } + return $result; + } + ResourceInfoList._() : super(); + factory ResourceInfoList.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ResourceInfoList.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ResourceInfoList', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicecontrol.v2'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'resources', $pb.PbFieldType.PM, + subBuilder: ResourceInfo.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') + ResourceInfoList clone() => ResourceInfoList()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ResourceInfoList copyWith(void Function(ResourceInfoList) updates) => + super.copyWith((message) => updates(message as ResourceInfoList)) + as ResourceInfoList; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ResourceInfoList create() => ResourceInfoList._(); + ResourceInfoList createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ResourceInfoList getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ResourceInfoList? _defaultInstance; + + /// The resource details. + @$pb.TagNumber(1) + $core.List get resources => $_getList(0); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pbenum.dart new file mode 100644 index 00000000..ce50f60f --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/api/servicecontrol/v2/service_controller.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pbgrpc.dart new file mode 100644 index 00000000..91558ecc --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pbgrpc.dart @@ -0,0 +1,87 @@ +// +// Generated code. Do not modify. +// source: google/api/servicecontrol/v2/service_controller.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; +import 'dart:core' as $core; + +import 'package:grpc/service_api.dart' as $grpc; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'service_controller.pb.dart' as $36; + +export 'service_controller.pb.dart'; + +@$pb.GrpcServiceName('google.api.servicecontrol.v2.ServiceController') +class ServiceControllerClient extends $grpc.Client { + static final _$check = + $grpc.ClientMethod<$36.CheckRequest, $36.CheckResponse>( + '/google.api.servicecontrol.v2.ServiceController/Check', + ($36.CheckRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $36.CheckResponse.fromBuffer(value)); + static final _$report = + $grpc.ClientMethod<$36.ReportRequest, $36.ReportResponse>( + '/google.api.servicecontrol.v2.ServiceController/Report', + ($36.ReportRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $36.ReportResponse.fromBuffer(value)); + + ServiceControllerClient($grpc.ClientChannel channel, + {$grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors}) + : super(channel, options: options, interceptors: interceptors); + + $grpc.ResponseFuture<$36.CheckResponse> check($36.CheckRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$check, request, options: options); + } + + $grpc.ResponseFuture<$36.ReportResponse> report($36.ReportRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$report, request, options: options); + } +} + +@$pb.GrpcServiceName('google.api.servicecontrol.v2.ServiceController') +abstract class ServiceControllerServiceBase extends $grpc.Service { + $core.String get $name => 'google.api.servicecontrol.v2.ServiceController'; + + ServiceControllerServiceBase() { + $addMethod($grpc.ServiceMethod<$36.CheckRequest, $36.CheckResponse>( + 'Check', + check_Pre, + false, + false, + ($core.List<$core.int> value) => $36.CheckRequest.fromBuffer(value), + ($36.CheckResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$36.ReportRequest, $36.ReportResponse>( + 'Report', + report_Pre, + false, + false, + ($core.List<$core.int> value) => $36.ReportRequest.fromBuffer(value), + ($36.ReportResponse value) => value.writeToBuffer())); + } + + $async.Future<$36.CheckResponse> check_Pre( + $grpc.ServiceCall call, $async.Future<$36.CheckRequest> request) async { + return check(call, await request); + } + + $async.Future<$36.ReportResponse> report_Pre( + $grpc.ServiceCall call, $async.Future<$36.ReportRequest> request) async { + return report(call, await request); + } + + $async.Future<$36.CheckResponse> check( + $grpc.ServiceCall call, $36.CheckRequest request); + $async.Future<$36.ReportResponse> report( + $grpc.ServiceCall call, $36.ReportRequest request); +} diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pbjson.dart new file mode 100644 index 00000000..090d9357 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicecontrol/v2/service_controller.pbjson.dart @@ -0,0 +1,159 @@ +// +// Generated code. Do not modify. +// source: google/api/servicecontrol/v2/service_controller.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 checkRequestDescriptor instead') +const CheckRequest$json = { + '1': 'CheckRequest', + '2': [ + {'1': 'service_name', '3': 1, '4': 1, '5': 9, '10': 'serviceName'}, + {'1': 'service_config_id', '3': 2, '4': 1, '5': 9, '10': 'serviceConfigId'}, + { + '1': 'attributes', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.rpc.context.AttributeContext', + '10': 'attributes' + }, + { + '1': 'resources', + '3': 4, + '4': 3, + '5': 11, + '6': '.google.api.servicecontrol.v2.ResourceInfo', + '10': 'resources' + }, + {'1': 'flags', '3': 5, '4': 1, '5': 9, '10': 'flags'}, + ], +}; + +/// Descriptor for `CheckRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List checkRequestDescriptor = $convert.base64Decode( + 'CgxDaGVja1JlcXVlc3QSIQoMc2VydmljZV9uYW1lGAEgASgJUgtzZXJ2aWNlTmFtZRIqChFzZX' + 'J2aWNlX2NvbmZpZ19pZBgCIAEoCVIPc2VydmljZUNvbmZpZ0lkEkQKCmF0dHJpYnV0ZXMYAyAB' + 'KAsyJC5nb29nbGUucnBjLmNvbnRleHQuQXR0cmlidXRlQ29udGV4dFIKYXR0cmlidXRlcxJICg' + 'lyZXNvdXJjZXMYBCADKAsyKi5nb29nbGUuYXBpLnNlcnZpY2Vjb250cm9sLnYyLlJlc291cmNl' + 'SW5mb1IJcmVzb3VyY2VzEhQKBWZsYWdzGAUgASgJUgVmbGFncw=='); + +@$core.Deprecated('Use resourceInfoDescriptor instead') +const ResourceInfo$json = { + '1': 'ResourceInfo', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + {'1': 'type', '3': 2, '4': 1, '5': 9, '10': 'type'}, + {'1': 'permission', '3': 3, '4': 1, '5': 9, '10': 'permission'}, + {'1': 'container', '3': 4, '4': 1, '5': 9, '10': 'container'}, + {'1': 'location', '3': 5, '4': 1, '5': 9, '10': 'location'}, + ], +}; + +/// Descriptor for `ResourceInfo`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List resourceInfoDescriptor = $convert.base64Decode( + 'CgxSZXNvdXJjZUluZm8SEgoEbmFtZRgBIAEoCVIEbmFtZRISCgR0eXBlGAIgASgJUgR0eXBlEh' + '4KCnBlcm1pc3Npb24YAyABKAlSCnBlcm1pc3Npb24SHAoJY29udGFpbmVyGAQgASgJUgljb250' + 'YWluZXISGgoIbG9jYXRpb24YBSABKAlSCGxvY2F0aW9u'); + +@$core.Deprecated('Use checkResponseDescriptor instead') +const CheckResponse$json = { + '1': 'CheckResponse', + '2': [ + { + '1': 'status', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.rpc.Status', + '10': 'status' + }, + { + '1': 'headers', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.api.servicecontrol.v2.CheckResponse.HeadersEntry', + '10': 'headers' + }, + ], + '3': [CheckResponse_HeadersEntry$json], +}; + +@$core.Deprecated('Use checkResponseDescriptor instead') +const CheckResponse_HeadersEntry$json = { + '1': 'HeadersEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `CheckResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List checkResponseDescriptor = $convert.base64Decode( + 'Cg1DaGVja1Jlc3BvbnNlEioKBnN0YXR1cxgBIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzUgZzdG' + 'F0dXMSUgoHaGVhZGVycxgCIAMoCzI4Lmdvb2dsZS5hcGkuc2VydmljZWNvbnRyb2wudjIuQ2hl' + 'Y2tSZXNwb25zZS5IZWFkZXJzRW50cnlSB2hlYWRlcnMaOgoMSGVhZGVyc0VudHJ5EhAKA2tleR' + 'gBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE='); + +@$core.Deprecated('Use reportRequestDescriptor instead') +const ReportRequest$json = { + '1': 'ReportRequest', + '2': [ + {'1': 'service_name', '3': 1, '4': 1, '5': 9, '10': 'serviceName'}, + {'1': 'service_config_id', '3': 2, '4': 1, '5': 9, '10': 'serviceConfigId'}, + { + '1': 'operations', + '3': 3, + '4': 3, + '5': 11, + '6': '.google.rpc.context.AttributeContext', + '10': 'operations' + }, + ], +}; + +/// Descriptor for `ReportRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reportRequestDescriptor = $convert.base64Decode( + 'Cg1SZXBvcnRSZXF1ZXN0EiEKDHNlcnZpY2VfbmFtZRgBIAEoCVILc2VydmljZU5hbWUSKgoRc2' + 'VydmljZV9jb25maWdfaWQYAiABKAlSD3NlcnZpY2VDb25maWdJZBJECgpvcGVyYXRpb25zGAMg' + 'AygLMiQuZ29vZ2xlLnJwYy5jb250ZXh0LkF0dHJpYnV0ZUNvbnRleHRSCm9wZXJhdGlvbnM='); + +@$core.Deprecated('Use reportResponseDescriptor instead') +const ReportResponse$json = { + '1': 'ReportResponse', +}; + +/// Descriptor for `ReportResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List reportResponseDescriptor = + $convert.base64Decode('Cg5SZXBvcnRSZXNwb25zZQ=='); + +@$core.Deprecated('Use resourceInfoListDescriptor instead') +const ResourceInfoList$json = { + '1': 'ResourceInfoList', + '2': [ + { + '1': 'resources', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.api.servicecontrol.v2.ResourceInfo', + '10': 'resources' + }, + ], +}; + +/// Descriptor for `ResourceInfoList`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List resourceInfoListDescriptor = $convert.base64Decode( + 'ChBSZXNvdXJjZUluZm9MaXN0EkgKCXJlc291cmNlcxgBIAMoCzIqLmdvb2dsZS5hcGkuc2Vydm' + 'ljZWNvbnRyb2wudjIuUmVzb3VyY2VJbmZvUglyZXNvdXJjZXM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pb.dart index b8da2c80..8e1cfab7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pb.dart @@ -1,63 +1,57 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicemanagement/v1/resources.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/timestamp.pb.dart' as $2; -import '../../config_change.pb.dart' as $3; - +import '../../../protobuf/timestamp.pb.dart' as $50; +import '../../config_change.pb.dart' as $80; import 'resources.pbenum.dart'; export 'resources.pbenum.dart'; +/// The full representation of a Service that is managed by +/// Google Service Management. class ManagedService extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ManagedService', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'producerProjectId') - ..hasRequiredFields = false; - - ManagedService._() : super(); factory ManagedService({ $core.String? serviceName, $core.String? producerProjectId, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (producerProjectId != null) { - _result.producerProjectId = producerProjectId; + $result.producerProjectId = producerProjectId; } - return _result; + return $result; } + ManagedService._() : super(); factory ManagedService.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ManagedService.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ManagedService', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'serviceName') + ..aOS(3, _omitFieldNames ? '' : 'producerProjectId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -67,8 +61,10 @@ class ManagedService extends $pb.GeneratedMessage { 'Will be removed in next major version') ManagedService copyWith(void Function(ManagedService) updates) => super.copyWith((message) => updates(message as ManagedService)) - as ManagedService; // ignore: deprecated_member_use + as ManagedService; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ManagedService create() => ManagedService._(); ManagedService createEmptyInstance() => create(); @@ -79,6 +75,9 @@ class ManagedService extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ManagedService? _defaultInstance; + /// The name of the service. See the + /// [overview](https://cloud.google.com/service-infrastructure/docs/overview) + /// for naming requirements. @$pb.TagNumber(2) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(2) @@ -91,6 +90,7 @@ class ManagedService extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearServiceName() => clearField(2); + /// ID of the project that produces and owns this service. @$pb.TagNumber(3) $core.String get producerProjectId => $_getSZ(1); @$pb.TagNumber(3) @@ -104,52 +104,42 @@ class ManagedService extends $pb.GeneratedMessage { void clearProducerProjectId() => clearField(3); } +/// Represents the status of one operation step. class OperationMetadata_Step extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OperationMetadata.Step', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'status', - $pb.PbFieldType.OE, - defaultOrMaker: OperationMetadata_Status.STATUS_UNSPECIFIED, - valueOf: OperationMetadata_Status.valueOf, - enumValues: OperationMetadata_Status.values) - ..hasRequiredFields = false; - - OperationMetadata_Step._() : super(); factory OperationMetadata_Step({ $core.String? description, OperationMetadata_Status? status, }) { - final _result = create(); + final $result = create(); if (description != null) { - _result.description = description; + $result.description = description; } if (status != null) { - _result.status = status; + $result.status = status; } - return _result; + return $result; } + OperationMetadata_Step._() : super(); factory OperationMetadata_Step.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OperationMetadata_Step.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OperationMetadata.Step', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'description') + ..e( + 4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, + defaultOrMaker: OperationMetadata_Status.STATUS_UNSPECIFIED, + valueOf: OperationMetadata_Status.valueOf, + enumValues: OperationMetadata_Status.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -161,8 +151,10 @@ class OperationMetadata_Step extends $pb.GeneratedMessage { OperationMetadata_Step copyWith( void Function(OperationMetadata_Step) updates) => super.copyWith((message) => updates(message as OperationMetadata_Step)) - as OperationMetadata_Step; // ignore: deprecated_member_use + as OperationMetadata_Step; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OperationMetadata_Step create() => OperationMetadata_Step._(); OperationMetadata_Step createEmptyInstance() => create(); @@ -173,6 +165,7 @@ class OperationMetadata_Step extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static OperationMetadata_Step? _defaultInstance; + /// The short description of the step. @$pb.TagNumber(2) $core.String get description => $_getSZ(0); @$pb.TagNumber(2) @@ -185,6 +178,7 @@ class OperationMetadata_Step extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDescription() => clearField(2); + /// The status code. @$pb.TagNumber(4) OperationMetadata_Status get status => $_getN(1); @$pb.TagNumber(4) @@ -198,61 +192,52 @@ class OperationMetadata_Step extends $pb.GeneratedMessage { void clearStatus() => clearField(4); } +/// The metadata associated with a long running operation resource. class OperationMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OperationMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resourceNames') - ..pc( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'steps', $pb.PbFieldType.PM, - subBuilder: OperationMetadata_Step.create) - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'progressPercentage', - $pb.PbFieldType.O3) - ..aOM<$2.Timestamp>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startTime', subBuilder: $2.Timestamp.create) - ..hasRequiredFields = false; - - OperationMetadata._() : super(); factory OperationMetadata({ $core.Iterable<$core.String>? resourceNames, $core.Iterable? steps, $core.int? progressPercentage, - $2.Timestamp? startTime, + $50.Timestamp? startTime, }) { - final _result = create(); + final $result = create(); if (resourceNames != null) { - _result.resourceNames.addAll(resourceNames); + $result.resourceNames.addAll(resourceNames); } if (steps != null) { - _result.steps.addAll(steps); + $result.steps.addAll(steps); } if (progressPercentage != null) { - _result.progressPercentage = progressPercentage; + $result.progressPercentage = progressPercentage; } if (startTime != null) { - _result.startTime = startTime; + $result.startTime = startTime; } - return _result; + return $result; } + OperationMetadata._() : super(); factory OperationMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OperationMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OperationMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'resourceNames') + ..pc( + 2, _omitFieldNames ? '' : 'steps', $pb.PbFieldType.PM, + subBuilder: OperationMetadata_Step.create) + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'progressPercentage', $pb.PbFieldType.O3) + ..aOM<$50.Timestamp>(4, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.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') @@ -262,8 +247,10 @@ class OperationMetadata extends $pb.GeneratedMessage { 'Will be removed in next major version') OperationMetadata copyWith(void Function(OperationMetadata) updates) => super.copyWith((message) => updates(message as OperationMetadata)) - as OperationMetadata; // ignore: deprecated_member_use + as OperationMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OperationMetadata create() => OperationMetadata._(); OperationMetadata createEmptyInstance() => create(); @@ -274,12 +261,16 @@ class OperationMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static OperationMetadata? _defaultInstance; + /// The full name of the resources that this operation is directly + /// associated with. @$pb.TagNumber(1) $core.List<$core.String> get resourceNames => $_getList(0); + /// Detailed status information for each step. The order is undetermined. @$pb.TagNumber(2) $core.List get steps => $_getList(1); + /// Percentage of completion of this operation, ranging from 0 to 100. @$pb.TagNumber(3) $core.int get progressPercentage => $_getIZ(2); @$pb.TagNumber(3) @@ -292,10 +283,11 @@ class OperationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearProgressPercentage() => clearField(3); + /// The start time of the operation. @$pb.TagNumber(4) - $2.Timestamp get startTime => $_getN(3); + $50.Timestamp get startTime => $_getN(3); @$pb.TagNumber(4) - set startTime($2.Timestamp v) { + set startTime($50.Timestamp v) { setField(4, v); } @@ -304,61 +296,49 @@ class OperationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearStartTime() => clearField(4); @$pb.TagNumber(4) - $2.Timestamp ensureStartTime() => $_ensure(3); + $50.Timestamp ensureStartTime() => $_ensure(3); } +/// Represents a diagnostic message (error or warning) class Diagnostic extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Diagnostic', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'location') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'kind', - $pb.PbFieldType.OE, - defaultOrMaker: Diagnostic_Kind.WARNING, - valueOf: Diagnostic_Kind.valueOf, - enumValues: Diagnostic_Kind.values) - ..aOS( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'message') - ..hasRequiredFields = false; - - Diagnostic._() : super(); factory Diagnostic({ $core.String? location, Diagnostic_Kind? kind, $core.String? message, }) { - final _result = create(); + final $result = create(); if (location != null) { - _result.location = location; + $result.location = location; } if (kind != null) { - _result.kind = kind; + $result.kind = kind; } if (message != null) { - _result.message = message; + $result.message = message; } - return _result; + return $result; } + Diagnostic._() : super(); factory Diagnostic.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Diagnostic.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Diagnostic', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'location') + ..e(2, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE, + defaultOrMaker: Diagnostic_Kind.WARNING, + valueOf: Diagnostic_Kind.valueOf, + enumValues: Diagnostic_Kind.values) + ..aOS(3, _omitFieldNames ? '' : 'message') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -367,9 +347,10 @@ class Diagnostic extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Diagnostic copyWith(void Function(Diagnostic) updates) => - super.copyWith((message) => updates(message as Diagnostic)) - as Diagnostic; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Diagnostic)) as Diagnostic; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Diagnostic create() => Diagnostic._(); Diagnostic createEmptyInstance() => create(); @@ -379,6 +360,7 @@ class Diagnostic extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Diagnostic? _defaultInstance; + /// File name and line number of the error or warning. @$pb.TagNumber(1) $core.String get location => $_getSZ(0); @$pb.TagNumber(1) @@ -391,6 +373,7 @@ class Diagnostic extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearLocation() => clearField(1); + /// The kind of diagnostic information provided. @$pb.TagNumber(2) Diagnostic_Kind get kind => $_getN(1); @$pb.TagNumber(2) @@ -403,6 +386,7 @@ class Diagnostic extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearKind() => clearField(2); + /// Message describing the error or warning. @$pb.TagNumber(3) $core.String get message => $_getSZ(2); @$pb.TagNumber(3) @@ -416,47 +400,40 @@ class Diagnostic extends $pb.GeneratedMessage { void clearMessage() => clearField(3); } +/// Represents a source file which is used to generate the service configuration +/// defined by `google.api.Service`. class ConfigSource extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ConfigSource', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'files', - $pb.PbFieldType.PM, - subBuilder: ConfigFile.create) - ..aOS(5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id') - ..hasRequiredFields = false; - - ConfigSource._() : super(); factory ConfigSource({ $core.Iterable? files, $core.String? id, }) { - final _result = create(); + final $result = create(); if (files != null) { - _result.files.addAll(files); + $result.files.addAll(files); } if (id != null) { - _result.id = id; + $result.id = id; } - return _result; + return $result; } + ConfigSource._() : super(); factory ConfigSource.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ConfigSource.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ConfigSource', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..pc(2, _omitFieldNames ? '' : 'files', $pb.PbFieldType.PM, + subBuilder: ConfigFile.create) + ..aOS(5, _omitFieldNames ? '' : 'id') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -466,8 +443,10 @@ class ConfigSource extends $pb.GeneratedMessage { 'Will be removed in next major version') ConfigSource copyWith(void Function(ConfigSource) updates) => super.copyWith((message) => updates(message as ConfigSource)) - as ConfigSource; // ignore: deprecated_member_use + as ConfigSource; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ConfigSource create() => ConfigSource._(); ConfigSource createEmptyInstance() => create(); @@ -478,9 +457,14 @@ class ConfigSource extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ConfigSource? _defaultInstance; + /// Set of source configuration files that are used to generate a service + /// configuration (`google.api.Service`). @$pb.TagNumber(2) $core.List get files => $_getList(0); + /// A unique ID for a specific instance of this message, typically assigned + /// by the client for tracking purpose. If empty, the server may choose to + /// generate one instead. @$pb.TagNumber(5) $core.String get id => $_getSZ(1); @$pb.TagNumber(5) @@ -494,60 +478,48 @@ class ConfigSource extends $pb.GeneratedMessage { void clearId() => clearField(5); } +/// Generic specification of a source configuration file class ConfigFile extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ConfigFile', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filePath') - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fileContents', - $pb.PbFieldType.OY) - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fileType', - $pb.PbFieldType.OE, - defaultOrMaker: ConfigFile_FileType.FILE_TYPE_UNSPECIFIED, - valueOf: ConfigFile_FileType.valueOf, - enumValues: ConfigFile_FileType.values) - ..hasRequiredFields = false; - - ConfigFile._() : super(); factory ConfigFile({ $core.String? filePath, $core.List<$core.int>? fileContents, ConfigFile_FileType? fileType, }) { - final _result = create(); + final $result = create(); if (filePath != null) { - _result.filePath = filePath; + $result.filePath = filePath; } if (fileContents != null) { - _result.fileContents = fileContents; + $result.fileContents = fileContents; } if (fileType != null) { - _result.fileType = fileType; + $result.fileType = fileType; } - return _result; + return $result; } + ConfigFile._() : super(); factory ConfigFile.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ConfigFile.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ConfigFile', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'filePath') + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'fileContents', $pb.PbFieldType.OY) + ..e( + 4, _omitFieldNames ? '' : 'fileType', $pb.PbFieldType.OE, + defaultOrMaker: ConfigFile_FileType.FILE_TYPE_UNSPECIFIED, + valueOf: ConfigFile_FileType.valueOf, + enumValues: ConfigFile_FileType.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -556,9 +528,10 @@ class ConfigFile extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ConfigFile copyWith(void Function(ConfigFile) updates) => - super.copyWith((message) => updates(message as ConfigFile)) - as ConfigFile; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ConfigFile)) as ConfigFile; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ConfigFile create() => ConfigFile._(); ConfigFile createEmptyInstance() => create(); @@ -568,6 +541,7 @@ class ConfigFile extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ConfigFile? _defaultInstance; + /// The file name of the configuration file (full or relative path). @$pb.TagNumber(1) $core.String get filePath => $_getSZ(0); @$pb.TagNumber(1) @@ -580,6 +554,7 @@ class ConfigFile extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearFilePath() => clearField(1); + /// The bytes that constitute the file. @$pb.TagNumber(3) $core.List<$core.int> get fileContents => $_getN(1); @$pb.TagNumber(3) @@ -592,6 +567,7 @@ class ConfigFile extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFileContents() => clearField(3); + /// The type of configuration file this represents. @$pb.TagNumber(4) ConfigFile_FileType get fileType => $_getN(2); @$pb.TagNumber(4) @@ -605,39 +581,33 @@ class ConfigFile extends $pb.GeneratedMessage { void clearFileType() => clearField(4); } +/// Represents a service configuration with its name and id. class ConfigRef extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ConfigRef', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - ConfigRef._() : super(); factory ConfigRef({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + ConfigRef._() : super(); factory ConfigRef.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ConfigRef.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ConfigRef', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -646,9 +616,10 @@ class ConfigRef extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ConfigRef copyWith(void Function(ConfigRef) updates) => - super.copyWith((message) => updates(message as ConfigRef)) - as ConfigRef; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ConfigRef)) as ConfigRef; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ConfigRef create() => ConfigRef._(); ConfigRef createEmptyInstance() => create(); @@ -658,6 +629,8 @@ class ConfigRef extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ConfigRef? _defaultInstance; + /// Resource name of a service config. It must have the following + /// format: "services/{service name}/configs/{config id}". @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -671,41 +644,38 @@ class ConfigRef extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Change report associated with a particular service configuration. +/// +/// It contains a list of ConfigChanges based on the comparison between +/// two service configurations. class ChangeReport extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ChangeReport', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..pc<$3.ConfigChange>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'configChanges', - $pb.PbFieldType.PM, - subBuilder: $3.ConfigChange.create) - ..hasRequiredFields = false; - - ChangeReport._() : super(); factory ChangeReport({ - $core.Iterable<$3.ConfigChange>? configChanges, + $core.Iterable<$80.ConfigChange>? configChanges, }) { - final _result = create(); + final $result = create(); if (configChanges != null) { - _result.configChanges.addAll(configChanges); + $result.configChanges.addAll(configChanges); } - return _result; + return $result; } + ChangeReport._() : super(); factory ChangeReport.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ChangeReport.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ChangeReport', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..pc<$80.ConfigChange>( + 1, _omitFieldNames ? '' : 'configChanges', $pb.PbFieldType.PM, + subBuilder: $80.ConfigChange.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') @@ -715,8 +685,10 @@ class ChangeReport extends $pb.GeneratedMessage { 'Will be removed in next major version') ChangeReport copyWith(void Function(ChangeReport) updates) => super.copyWith((message) => updates(message as ChangeReport)) - as ChangeReport; // ignore: deprecated_member_use + as ChangeReport; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ChangeReport create() => ChangeReport._(); ChangeReport createEmptyInstance() => create(); @@ -727,47 +699,75 @@ class ChangeReport extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ChangeReport? _defaultInstance; + /// List of changes between two service configurations. + /// The changes will be alphabetically sorted based on the identifier + /// of each change. + /// A ConfigChange identifier is a dot separated path to the configuration. + /// Example: visibility.rules[selector='LibraryService.CreateBook'].restriction @$pb.TagNumber(1) - $core.List<$3.ConfigChange> get configChanges => $_getList(0); + $core.List<$80.ConfigChange> get configChanges => $_getList(0); } +/// Strategy that specifies how clients of Google Service Controller want to +/// send traffic to use different config versions. This is generally +/// used by API proxy to split traffic based on your configured percentage for +/// each config version. +/// +/// One example of how to gradually rollout a new service configuration using +/// this +/// strategy: +/// Day 1 +/// +/// Rollout { +/// id: "example.googleapis.com/rollout_20160206" +/// traffic_percent_strategy { +/// percentages: { +/// "example.googleapis.com/20160201": 70.00 +/// "example.googleapis.com/20160206": 30.00 +/// } +/// } +/// } +/// +/// Day 2 +/// +/// Rollout { +/// id: "example.googleapis.com/rollout_20160207" +/// traffic_percent_strategy: { +/// percentages: { +/// "example.googleapis.com/20160206": 100.00 +/// } +/// } +/// } class Rollout_TrafficPercentStrategy extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Rollout.TrafficPercentStrategy', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..m<$core.String, $core.double>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'percentages', - entryClassName: 'Rollout.TrafficPercentStrategy.PercentagesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OD, - packageName: const $pb.PackageName('google.api.servicemanagement.v1')) - ..hasRequiredFields = false; - - Rollout_TrafficPercentStrategy._() : super(); factory Rollout_TrafficPercentStrategy({ $core.Map<$core.String, $core.double>? percentages, }) { - final _result = create(); + final $result = create(); if (percentages != null) { - _result.percentages.addAll(percentages); + $result.percentages.addAll(percentages); } - return _result; + return $result; } + Rollout_TrafficPercentStrategy._() : super(); factory Rollout_TrafficPercentStrategy.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Rollout_TrafficPercentStrategy.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Rollout.TrafficPercentStrategy', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..m<$core.String, $core.double>(1, _omitFieldNames ? '' : 'percentages', + entryClassName: 'Rollout.TrafficPercentStrategy.PercentagesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OD, + packageName: const $pb.PackageName('google.api.servicemanagement.v1')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -780,8 +780,10 @@ class Rollout_TrafficPercentStrategy extends $pb.GeneratedMessage { void Function(Rollout_TrafficPercentStrategy) updates) => super.copyWith( (message) => updates(message as Rollout_TrafficPercentStrategy)) - as Rollout_TrafficPercentStrategy; // ignore: deprecated_member_use + as Rollout_TrafficPercentStrategy; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Rollout_TrafficPercentStrategy create() => Rollout_TrafficPercentStrategy._(); @@ -793,30 +795,32 @@ class Rollout_TrafficPercentStrategy extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Rollout_TrafficPercentStrategy? _defaultInstance; + /// Maps service configuration IDs to their corresponding traffic percentage. + /// Key is the service configuration ID, Value is the traffic percentage + /// which must be greater than 0.0 and the sum must equal to 100.0. @$pb.TagNumber(1) $core.Map<$core.String, $core.double> get percentages => $_getMap(0); } +/// Strategy used to delete a service. This strategy is a placeholder only +/// used by the system generated rollout to delete a service. class Rollout_DeleteServiceStrategy extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Rollout.DeleteServiceStrategy', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - Rollout_DeleteServiceStrategy._() : super(); factory Rollout_DeleteServiceStrategy() => create(); + Rollout_DeleteServiceStrategy._() : super(); factory Rollout_DeleteServiceStrategy.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Rollout_DeleteServiceStrategy.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Rollout.DeleteServiceStrategy', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + 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') @@ -829,8 +833,10 @@ class Rollout_DeleteServiceStrategy extends $pb.GeneratedMessage { void Function(Rollout_DeleteServiceStrategy) updates) => super.copyWith( (message) => updates(message as Rollout_DeleteServiceStrategy)) - as Rollout_DeleteServiceStrategy; // ignore: deprecated_member_use + as Rollout_DeleteServiceStrategy; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Rollout_DeleteServiceStrategy create() => Rollout_DeleteServiceStrategy._(); @@ -845,81 +851,80 @@ class Rollout_DeleteServiceStrategy extends $pb.GeneratedMessage { enum Rollout_Strategy { trafficPercentStrategy, deleteServiceStrategy, notSet } +/// A rollout resource that defines how service configuration versions are pushed +/// to control plane systems. Typically, you create a new version of the +/// service config, and then create a Rollout to push the service config. class Rollout extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Rollout_Strategy> _Rollout_StrategyByTag = { - 5: Rollout_Strategy.trafficPercentStrategy, - 200: Rollout_Strategy.deleteServiceStrategy, - 0: Rollout_Strategy.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Rollout', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..oo(0, [5, 200]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rolloutId') - ..aOM<$2.Timestamp>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createTime', - subBuilder: $2.Timestamp.create) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'createdBy') - ..e(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'status', $pb.PbFieldType.OE, - defaultOrMaker: Rollout_RolloutStatus.ROLLOUT_STATUS_UNSPECIFIED, - valueOf: Rollout_RolloutStatus.valueOf, - enumValues: Rollout_RolloutStatus.values) - ..aOM( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'trafficPercentStrategy', - subBuilder: Rollout_TrafficPercentStrategy.create) - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceName') - ..aOM(200, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'deleteServiceStrategy', subBuilder: Rollout_DeleteServiceStrategy.create) - ..hasRequiredFields = false; - - Rollout._() : super(); factory Rollout({ $core.String? rolloutId, - $2.Timestamp? createTime, + $50.Timestamp? createTime, $core.String? createdBy, Rollout_RolloutStatus? status, Rollout_TrafficPercentStrategy? trafficPercentStrategy, $core.String? serviceName, Rollout_DeleteServiceStrategy? deleteServiceStrategy, }) { - final _result = create(); + final $result = create(); if (rolloutId != null) { - _result.rolloutId = rolloutId; + $result.rolloutId = rolloutId; } if (createTime != null) { - _result.createTime = createTime; + $result.createTime = createTime; } if (createdBy != null) { - _result.createdBy = createdBy; + $result.createdBy = createdBy; } if (status != null) { - _result.status = status; + $result.status = status; } if (trafficPercentStrategy != null) { - _result.trafficPercentStrategy = trafficPercentStrategy; + $result.trafficPercentStrategy = trafficPercentStrategy; } if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (deleteServiceStrategy != null) { - _result.deleteServiceStrategy = deleteServiceStrategy; + $result.deleteServiceStrategy = deleteServiceStrategy; } - return _result; + return $result; } + Rollout._() : super(); factory Rollout.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Rollout.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Rollout_Strategy> _Rollout_StrategyByTag = { + 5: Rollout_Strategy.trafficPercentStrategy, + 200: Rollout_Strategy.deleteServiceStrategy, + 0: Rollout_Strategy.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Rollout', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..oo(0, [5, 200]) + ..aOS(1, _omitFieldNames ? '' : 'rolloutId') + ..aOM<$50.Timestamp>(2, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aOS(3, _omitFieldNames ? '' : 'createdBy') + ..e( + 4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, + defaultOrMaker: Rollout_RolloutStatus.ROLLOUT_STATUS_UNSPECIFIED, + valueOf: Rollout_RolloutStatus.valueOf, + enumValues: Rollout_RolloutStatus.values) + ..aOM( + 5, _omitFieldNames ? '' : 'trafficPercentStrategy', + subBuilder: Rollout_TrafficPercentStrategy.create) + ..aOS(8, _omitFieldNames ? '' : 'serviceName') + ..aOM( + 200, _omitFieldNames ? '' : 'deleteServiceStrategy', + subBuilder: Rollout_DeleteServiceStrategy.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') @@ -928,9 +933,10 @@ class Rollout extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Rollout copyWith(void Function(Rollout) updates) => - super.copyWith((message) => updates(message as Rollout)) - as Rollout; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Rollout)) as Rollout; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Rollout create() => Rollout._(); Rollout createEmptyInstance() => create(); @@ -943,6 +949,15 @@ class Rollout extends $pb.GeneratedMessage { Rollout_Strategy whichStrategy() => _Rollout_StrategyByTag[$_whichOneof(0)]!; void clearStrategy() => clearField($_whichOneof(0)); + /// Optional. Unique identifier of this Rollout. Must be no longer than 63 + /// characters and only lower case letters, digits, '.', '_' and '-' are + /// allowed. + /// + /// If not specified by client, the server will generate one. The generated id + /// will have the form of , where "date" is the create + /// date in ISO 8601 format. "revision number" is a monotonically increasing + /// positive number that is reset every day for each service. + /// An example of the generated rollout_id is '2016-02-16r1' @$pb.TagNumber(1) $core.String get rolloutId => $_getSZ(0); @$pb.TagNumber(1) @@ -955,10 +970,11 @@ class Rollout extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearRolloutId() => clearField(1); + /// Creation time of the rollout. Readonly. @$pb.TagNumber(2) - $2.Timestamp get createTime => $_getN(1); + $50.Timestamp get createTime => $_getN(1); @$pb.TagNumber(2) - set createTime($2.Timestamp v) { + set createTime($50.Timestamp v) { setField(2, v); } @@ -967,8 +983,9 @@ class Rollout extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearCreateTime() => clearField(2); @$pb.TagNumber(2) - $2.Timestamp ensureCreateTime() => $_ensure(1); + $50.Timestamp ensureCreateTime() => $_ensure(1); + /// The user who created the Rollout. Readonly. @$pb.TagNumber(3) $core.String get createdBy => $_getSZ(2); @$pb.TagNumber(3) @@ -981,6 +998,9 @@ class Rollout extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearCreatedBy() => clearField(3); + /// The status of this rollout. Readonly. In case of a failed rollout, + /// the system will automatically rollback to the current Rollout + /// version. Readonly. @$pb.TagNumber(4) Rollout_RolloutStatus get status => $_getN(3); @$pb.TagNumber(4) @@ -993,6 +1013,8 @@ class Rollout extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearStatus() => clearField(4); + /// Google Service Control selects service configurations based on + /// traffic percentage. @$pb.TagNumber(5) Rollout_TrafficPercentStrategy get trafficPercentStrategy => $_getN(4); @$pb.TagNumber(5) @@ -1007,6 +1029,7 @@ class Rollout extends $pb.GeneratedMessage { @$pb.TagNumber(5) Rollout_TrafficPercentStrategy ensureTrafficPercentStrategy() => $_ensure(4); + /// The name of the service associated with this Rollout. @$pb.TagNumber(8) $core.String get serviceName => $_getSZ(5); @$pb.TagNumber(8) @@ -1019,6 +1042,8 @@ class Rollout extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearServiceName() => clearField(8); + /// The strategy associated with a rollout to delete a `ManagedService`. + /// Readonly. @$pb.TagNumber(200) Rollout_DeleteServiceStrategy get deleteServiceStrategy => $_getN(6); @$pb.TagNumber(200) @@ -1033,3 +1058,7 @@ class Rollout extends $pb.GeneratedMessage { @$pb.TagNumber(200) Rollout_DeleteServiceStrategy ensureDeleteServiceStrategy() => $_ensure(6); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pbenum.dart index d9faab65..5dcedc28 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pbenum.dart @@ -1,42 +1,32 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicemanagement/v1/resources.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Code describes the status of the operation (or one of its steps). class OperationMetadata_Status extends $pb.ProtobufEnum { static const OperationMetadata_Status STATUS_UNSPECIFIED = - OperationMetadata_Status._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STATUS_UNSPECIFIED'); - static const OperationMetadata_Status DONE = OperationMetadata_Status._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DONE'); + OperationMetadata_Status._(0, _omitEnumNames ? '' : 'STATUS_UNSPECIFIED'); + static const OperationMetadata_Status DONE = + OperationMetadata_Status._(1, _omitEnumNames ? '' : 'DONE'); static const OperationMetadata_Status NOT_STARTED = - OperationMetadata_Status._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NOT_STARTED'); + OperationMetadata_Status._(2, _omitEnumNames ? '' : 'NOT_STARTED'); static const OperationMetadata_Status IN_PROGRESS = - OperationMetadata_Status._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'IN_PROGRESS'); - static const OperationMetadata_Status FAILED = OperationMetadata_Status._(4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FAILED'); - static const OperationMetadata_Status CANCELLED = OperationMetadata_Status._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CANCELLED'); + OperationMetadata_Status._(3, _omitEnumNames ? '' : 'IN_PROGRESS'); + static const OperationMetadata_Status FAILED = + OperationMetadata_Status._(4, _omitEnumNames ? '' : 'FAILED'); + static const OperationMetadata_Status CANCELLED = + OperationMetadata_Status._(5, _omitEnumNames ? '' : 'CANCELLED'); static const $core.List values = [ @@ -55,11 +45,12 @@ class OperationMetadata_Status extends $pb.ProtobufEnum { const OperationMetadata_Status._($core.int v, $core.String n) : super(v, n); } +/// The kind of diagnostic information possible. class Diagnostic_Kind extends $pb.ProtobufEnum { - static const Diagnostic_Kind WARNING = Diagnostic_Kind._(0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WARNING'); - static const Diagnostic_Kind ERROR = Diagnostic_Kind._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ERROR'); + static const Diagnostic_Kind WARNING = + Diagnostic_Kind._(0, _omitEnumNames ? '' : 'WARNING'); + static const Diagnostic_Kind ERROR = + Diagnostic_Kind._(1, _omitEnumNames ? '' : 'ERROR'); static const $core.List values = [ WARNING, @@ -75,37 +66,18 @@ class Diagnostic_Kind extends $pb.ProtobufEnum { class ConfigFile_FileType extends $pb.ProtobufEnum { static const ConfigFile_FileType FILE_TYPE_UNSPECIFIED = - ConfigFile_FileType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FILE_TYPE_UNSPECIFIED'); - static const ConfigFile_FileType SERVICE_CONFIG_YAML = ConfigFile_FileType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SERVICE_CONFIG_YAML'); - static const ConfigFile_FileType OPEN_API_JSON = ConfigFile_FileType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OPEN_API_JSON'); - static const ConfigFile_FileType OPEN_API_YAML = ConfigFile_FileType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OPEN_API_YAML'); + ConfigFile_FileType._(0, _omitEnumNames ? '' : 'FILE_TYPE_UNSPECIFIED'); + static const ConfigFile_FileType SERVICE_CONFIG_YAML = + ConfigFile_FileType._(1, _omitEnumNames ? '' : 'SERVICE_CONFIG_YAML'); + static const ConfigFile_FileType OPEN_API_JSON = + ConfigFile_FileType._(2, _omitEnumNames ? '' : 'OPEN_API_JSON'); + static const ConfigFile_FileType OPEN_API_YAML = + ConfigFile_FileType._(3, _omitEnumNames ? '' : 'OPEN_API_YAML'); static const ConfigFile_FileType FILE_DESCRIPTOR_SET_PROTO = ConfigFile_FileType._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FILE_DESCRIPTOR_SET_PROTO'); - static const ConfigFile_FileType PROTO_FILE = ConfigFile_FileType._( - 6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PROTO_FILE'); + 4, _omitEnumNames ? '' : 'FILE_DESCRIPTOR_SET_PROTO'); + static const ConfigFile_FileType PROTO_FILE = + ConfigFile_FileType._(6, _omitEnumNames ? '' : 'PROTO_FILE'); static const $core.List values = [ FILE_TYPE_UNSPECIFIED, @@ -123,35 +95,23 @@ class ConfigFile_FileType extends $pb.ProtobufEnum { const ConfigFile_FileType._($core.int v, $core.String n) : super(v, n); } +/// Status of a Rollout. class Rollout_RolloutStatus extends $pb.ProtobufEnum { static const Rollout_RolloutStatus ROLLOUT_STATUS_UNSPECIFIED = Rollout_RolloutStatus._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ROLLOUT_STATUS_UNSPECIFIED'); - static const Rollout_RolloutStatus IN_PROGRESS = Rollout_RolloutStatus._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'IN_PROGRESS'); - static const Rollout_RolloutStatus SUCCESS = Rollout_RolloutStatus._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SUCCESS'); - static const Rollout_RolloutStatus CANCELLED = Rollout_RolloutStatus._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CANCELLED'); - static const Rollout_RolloutStatus FAILED = Rollout_RolloutStatus._(4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FAILED'); - static const Rollout_RolloutStatus PENDING = Rollout_RolloutStatus._(5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'PENDING'); + 0, _omitEnumNames ? '' : 'ROLLOUT_STATUS_UNSPECIFIED'); + static const Rollout_RolloutStatus IN_PROGRESS = + Rollout_RolloutStatus._(1, _omitEnumNames ? '' : 'IN_PROGRESS'); + static const Rollout_RolloutStatus SUCCESS = + Rollout_RolloutStatus._(2, _omitEnumNames ? '' : 'SUCCESS'); + static const Rollout_RolloutStatus CANCELLED = + Rollout_RolloutStatus._(3, _omitEnumNames ? '' : 'CANCELLED'); + static const Rollout_RolloutStatus FAILED = + Rollout_RolloutStatus._(4, _omitEnumNames ? '' : 'FAILED'); + static const Rollout_RolloutStatus PENDING = + Rollout_RolloutStatus._(5, _omitEnumNames ? '' : 'PENDING'); static const Rollout_RolloutStatus FAILED_ROLLED_BACK = - Rollout_RolloutStatus._( - 6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FAILED_ROLLED_BACK'); + Rollout_RolloutStatus._(6, _omitEnumNames ? '' : 'FAILED_ROLLED_BACK'); static const $core.List values = [ @@ -170,3 +130,5 @@ class Rollout_RolloutStatus extends $pb.ProtobufEnum { const Rollout_RolloutStatus._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pbjson.dart index d7e19b14..4ee9674b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/resources.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicemanagement/v1/resources.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 managedServiceDescriptor instead') @@ -26,7 +30,9 @@ const ManagedService$json = { /// Descriptor for `ManagedService`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List managedServiceDescriptor = $convert.base64Decode( - 'Cg5NYW5hZ2VkU2VydmljZRIhCgxzZXJ2aWNlX25hbWUYAiABKAlSC3NlcnZpY2VOYW1lEi4KE3Byb2R1Y2VyX3Byb2plY3RfaWQYAyABKAlSEXByb2R1Y2VyUHJvamVjdElk'); + 'Cg5NYW5hZ2VkU2VydmljZRIhCgxzZXJ2aWNlX25hbWUYAiABKAlSC3NlcnZpY2VOYW1lEi4KE3' + 'Byb2R1Y2VyX3Byb2plY3RfaWQYAyABKAlSEXByb2R1Y2VyUHJvamVjdElk'); + @$core.Deprecated('Use operationMetadataDescriptor instead') const OperationMetadata$json = { '1': 'OperationMetadata', @@ -91,7 +97,16 @@ const OperationMetadata_Status$json = { /// Descriptor for `OperationMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List operationMetadataDescriptor = $convert.base64Decode( - 'ChFPcGVyYXRpb25NZXRhZGF0YRIlCg5yZXNvdXJjZV9uYW1lcxgBIAMoCVINcmVzb3VyY2VOYW1lcxJNCgVzdGVwcxgCIAMoCzI3Lmdvb2dsZS5hcGkuc2VydmljZW1hbmFnZW1lbnQudjEuT3BlcmF0aW9uTWV0YWRhdGEuU3RlcFIFc3RlcHMSLwoTcHJvZ3Jlc3NfcGVyY2VudGFnZRgDIAEoBVIScHJvZ3Jlc3NQZXJjZW50YWdlEjkKCnN0YXJ0X3RpbWUYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUglzdGFydFRpbWUaewoEU3RlcBIgCgtkZXNjcmlwdGlvbhgCIAEoCVILZGVzY3JpcHRpb24SUQoGc3RhdHVzGAQgASgOMjkuZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5PcGVyYXRpb25NZXRhZGF0YS5TdGF0dXNSBnN0YXR1cyJnCgZTdGF0dXMSFgoSU1RBVFVTX1VOU1BFQ0lGSUVEEAASCAoERE9ORRABEg8KC05PVF9TVEFSVEVEEAISDwoLSU5fUFJPR1JFU1MQAxIKCgZGQUlMRUQQBBINCglDQU5DRUxMRUQQBQ=='); + 'ChFPcGVyYXRpb25NZXRhZGF0YRIlCg5yZXNvdXJjZV9uYW1lcxgBIAMoCVINcmVzb3VyY2VOYW' + '1lcxJNCgVzdGVwcxgCIAMoCzI3Lmdvb2dsZS5hcGkuc2VydmljZW1hbmFnZW1lbnQudjEuT3Bl' + 'cmF0aW9uTWV0YWRhdGEuU3RlcFIFc3RlcHMSLwoTcHJvZ3Jlc3NfcGVyY2VudGFnZRgDIAEoBV' + 'IScHJvZ3Jlc3NQZXJjZW50YWdlEjkKCnN0YXJ0X3RpbWUYBCABKAsyGi5nb29nbGUucHJvdG9i' + 'dWYuVGltZXN0YW1wUglzdGFydFRpbWUaewoEU3RlcBIgCgtkZXNjcmlwdGlvbhgCIAEoCVILZG' + 'VzY3JpcHRpb24SUQoGc3RhdHVzGAQgASgOMjkuZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVu' + 'dC52MS5PcGVyYXRpb25NZXRhZGF0YS5TdGF0dXNSBnN0YXR1cyJnCgZTdGF0dXMSFgoSU1RBVF' + 'VTX1VOU1BFQ0lGSUVEEAASCAoERE9ORRABEg8KC05PVF9TVEFSVEVEEAISDwoLSU5fUFJPR1JF' + 'U1MQAxIKCgZGQUlMRUQQBBINCglDQU5DRUxMRUQQBQ=='); + @$core.Deprecated('Use diagnosticDescriptor instead') const Diagnostic$json = { '1': 'Diagnostic', @@ -121,7 +136,11 @@ const Diagnostic_Kind$json = { /// Descriptor for `Diagnostic`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List diagnosticDescriptor = $convert.base64Decode( - 'CgpEaWFnbm9zdGljEhoKCGxvY2F0aW9uGAEgASgJUghsb2NhdGlvbhJECgRraW5kGAIgASgOMjAuZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5EaWFnbm9zdGljLktpbmRSBGtpbmQSGAoHbWVzc2FnZRgDIAEoCVIHbWVzc2FnZSIeCgRLaW5kEgsKB1dBUk5JTkcQABIJCgVFUlJPUhAB'); + 'CgpEaWFnbm9zdGljEhoKCGxvY2F0aW9uGAEgASgJUghsb2NhdGlvbhJECgRraW5kGAIgASgOMj' + 'AuZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5EaWFnbm9zdGljLktpbmRSBGtpbmQS' + 'GAoHbWVzc2FnZRgDIAEoCVIHbWVzc2FnZSIeCgRLaW5kEgsKB1dBUk5JTkcQABIJCgVFUlJPUh' + 'AB'); + @$core.Deprecated('Use configSourceDescriptor instead') const ConfigSource$json = { '1': 'ConfigSource', @@ -140,7 +159,9 @@ const ConfigSource$json = { /// Descriptor for `ConfigSource`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List configSourceDescriptor = $convert.base64Decode( - 'CgxDb25maWdTb3VyY2USDgoCaWQYBSABKAlSAmlkEkEKBWZpbGVzGAIgAygLMisuZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5Db25maWdGaWxlUgVmaWxlcw=='); + 'CgxDb25maWdTb3VyY2USDgoCaWQYBSABKAlSAmlkEkEKBWZpbGVzGAIgAygLMisuZ29vZ2xlLm' + 'FwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5Db25maWdGaWxlUgVmaWxlcw=='); + @$core.Deprecated('Use configFileDescriptor instead') const ConfigFile$json = { '1': 'ConfigFile', @@ -174,7 +195,13 @@ const ConfigFile_FileType$json = { /// Descriptor for `ConfigFile`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List configFileDescriptor = $convert.base64Decode( - 'CgpDb25maWdGaWxlEhsKCWZpbGVfcGF0aBgBIAEoCVIIZmlsZVBhdGgSIwoNZmlsZV9jb250ZW50cxgDIAEoDFIMZmlsZUNvbnRlbnRzElEKCWZpbGVfdHlwZRgEIAEoDjI0Lmdvb2dsZS5hcGkuc2VydmljZW1hbmFnZW1lbnQudjEuQ29uZmlnRmlsZS5GaWxlVHlwZVIIZmlsZVR5cGUikwEKCEZpbGVUeXBlEhkKFUZJTEVfVFlQRV9VTlNQRUNJRklFRBAAEhcKE1NFUlZJQ0VfQ09ORklHX1lBTUwQARIRCg1PUEVOX0FQSV9KU09OEAISEQoNT1BFTl9BUElfWUFNTBADEh0KGUZJTEVfREVTQ1JJUFRPUl9TRVRfUFJPVE8QBBIOCgpQUk9UT19GSUxFEAY='); + 'CgpDb25maWdGaWxlEhsKCWZpbGVfcGF0aBgBIAEoCVIIZmlsZVBhdGgSIwoNZmlsZV9jb250ZW' + '50cxgDIAEoDFIMZmlsZUNvbnRlbnRzElEKCWZpbGVfdHlwZRgEIAEoDjI0Lmdvb2dsZS5hcGku' + 'c2VydmljZW1hbmFnZW1lbnQudjEuQ29uZmlnRmlsZS5GaWxlVHlwZVIIZmlsZVR5cGUikwEKCE' + 'ZpbGVUeXBlEhkKFUZJTEVfVFlQRV9VTlNQRUNJRklFRBAAEhcKE1NFUlZJQ0VfQ09ORklHX1lB' + 'TUwQARIRCg1PUEVOX0FQSV9KU09OEAISEQoNT1BFTl9BUElfWUFNTBADEh0KGUZJTEVfREVTQ1' + 'JJUFRPUl9TRVRfUFJPVE8QBBIOCgpQUk9UT19GSUxFEAY='); + @$core.Deprecated('Use configRefDescriptor instead') const ConfigRef$json = { '1': 'ConfigRef', @@ -186,6 +213,7 @@ const ConfigRef$json = { /// Descriptor for `ConfigRef`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List configRefDescriptor = $convert.base64Decode('CglDb25maWdSZWYSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use changeReportDescriptor instead') const ChangeReport$json = { '1': 'ChangeReport', @@ -203,7 +231,9 @@ const ChangeReport$json = { /// Descriptor for `ChangeReport`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List changeReportDescriptor = $convert.base64Decode( - 'CgxDaGFuZ2VSZXBvcnQSPwoOY29uZmlnX2NoYW5nZXMYASADKAsyGC5nb29nbGUuYXBpLkNvbmZpZ0NoYW5nZVINY29uZmlnQ2hhbmdlcw=='); + 'CgxDaGFuZ2VSZXBvcnQSPwoOY29uZmlnX2NoYW5nZXMYASADKAsyGC5nb29nbGUuYXBpLkNvbm' + 'ZpZ0NoYW5nZVINY29uZmlnQ2hhbmdlcw=='); + @$core.Deprecated('Use rolloutDescriptor instead') const Rollout$json = { '1': 'Rollout', @@ -304,4 +334,19 @@ const Rollout_RolloutStatus$json = { /// Descriptor for `Rollout`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List rolloutDescriptor = $convert.base64Decode( - 'CgdSb2xsb3V0EiIKCnJvbGxvdXRfaWQYASABKAlCA+BBAVIJcm9sbG91dElkEjsKC2NyZWF0ZV90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKY3JlYXRlVGltZRIdCgpjcmVhdGVkX2J5GAMgASgJUgljcmVhdGVkQnkSTgoGc3RhdHVzGAQgASgOMjYuZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5Sb2xsb3V0LlJvbGxvdXRTdGF0dXNSBnN0YXR1cxJ7Chh0cmFmZmljX3BlcmNlbnRfc3RyYXRlZ3kYBSABKAsyPy5nb29nbGUuYXBpLnNlcnZpY2VtYW5hZ2VtZW50LnYxLlJvbGxvdXQuVHJhZmZpY1BlcmNlbnRTdHJhdGVneUgAUhZ0cmFmZmljUGVyY2VudFN0cmF0ZWd5EnkKF2RlbGV0ZV9zZXJ2aWNlX3N0cmF0ZWd5GMgBIAEoCzI+Lmdvb2dsZS5hcGkuc2VydmljZW1hbmFnZW1lbnQudjEuUm9sbG91dC5EZWxldGVTZXJ2aWNlU3RyYXRlZ3lIAFIVZGVsZXRlU2VydmljZVN0cmF0ZWd5EiEKDHNlcnZpY2VfbmFtZRgIIAEoCVILc2VydmljZU5hbWUazAEKFlRyYWZmaWNQZXJjZW50U3RyYXRlZ3kScgoLcGVyY2VudGFnZXMYASADKAsyUC5nb29nbGUuYXBpLnNlcnZpY2VtYW5hZ2VtZW50LnYxLlJvbGxvdXQuVHJhZmZpY1BlcmNlbnRTdHJhdGVneS5QZXJjZW50YWdlc0VudHJ5UgtwZXJjZW50YWdlcxo+ChBQZXJjZW50YWdlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgBUgV2YWx1ZToCOAEaFwoVRGVsZXRlU2VydmljZVN0cmF0ZWd5Io0BCg1Sb2xsb3V0U3RhdHVzEh4KGlJPTExPVVRfU1RBVFVTX1VOU1BFQ0lGSUVEEAASDwoLSU5fUFJPR1JFU1MQARILCgdTVUNDRVNTEAISDQoJQ0FOQ0VMTEVEEAMSCgoGRkFJTEVEEAQSCwoHUEVORElORxAFEhYKEkZBSUxFRF9ST0xMRURfQkFDSxAGQgoKCHN0cmF0ZWd5'); + 'CgdSb2xsb3V0EiIKCnJvbGxvdXRfaWQYASABKAlCA+BBAVIJcm9sbG91dElkEjsKC2NyZWF0ZV' + '90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKY3JlYXRlVGltZRIdCgpj' + 'cmVhdGVkX2J5GAMgASgJUgljcmVhdGVkQnkSTgoGc3RhdHVzGAQgASgOMjYuZ29vZ2xlLmFwaS' + '5zZXJ2aWNlbWFuYWdlbWVudC52MS5Sb2xsb3V0LlJvbGxvdXRTdGF0dXNSBnN0YXR1cxJ7Chh0' + 'cmFmZmljX3BlcmNlbnRfc3RyYXRlZ3kYBSABKAsyPy5nb29nbGUuYXBpLnNlcnZpY2VtYW5hZ2' + 'VtZW50LnYxLlJvbGxvdXQuVHJhZmZpY1BlcmNlbnRTdHJhdGVneUgAUhZ0cmFmZmljUGVyY2Vu' + 'dFN0cmF0ZWd5EnkKF2RlbGV0ZV9zZXJ2aWNlX3N0cmF0ZWd5GMgBIAEoCzI+Lmdvb2dsZS5hcG' + 'kuc2VydmljZW1hbmFnZW1lbnQudjEuUm9sbG91dC5EZWxldGVTZXJ2aWNlU3RyYXRlZ3lIAFIV' + 'ZGVsZXRlU2VydmljZVN0cmF0ZWd5EiEKDHNlcnZpY2VfbmFtZRgIIAEoCVILc2VydmljZU5hbW' + 'UazAEKFlRyYWZmaWNQZXJjZW50U3RyYXRlZ3kScgoLcGVyY2VudGFnZXMYASADKAsyUC5nb29n' + 'bGUuYXBpLnNlcnZpY2VtYW5hZ2VtZW50LnYxLlJvbGxvdXQuVHJhZmZpY1BlcmNlbnRTdHJhdG' + 'VneS5QZXJjZW50YWdlc0VudHJ5UgtwZXJjZW50YWdlcxo+ChBQZXJjZW50YWdlc0VudHJ5EhAK' + 'A2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgBUgV2YWx1ZToCOAEaFwoVRGVsZXRlU2Vydm' + 'ljZVN0cmF0ZWd5Io0BCg1Sb2xsb3V0U3RhdHVzEh4KGlJPTExPVVRfU1RBVFVTX1VOU1BFQ0lG' + 'SUVEEAASDwoLSU5fUFJPR1JFU1MQARILCgdTVUNDRVNTEAISDQoJQ0FOQ0VMTEVEEAMSCgoGRk' + 'FJTEVEEAQSCwoHUEVORElORxAFEhYKEkZBSUxFRF9ST0xMRURfQkFDSxAGQgoKCHN0cmF0ZWd5'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pb.dart index fdefb1e0..b771ccad 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pb.dart @@ -1,80 +1,68 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicemanagement/v1/servicemanager.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'resources.pb.dart' as $3; -import '../../service.pb.dart' as $4; -import '../../../protobuf/any.pb.dart' as $5; - +import '../../../protobuf/any.pb.dart' as $49; +import '../../service.pb.dart' as $28; +import 'resources.pb.dart' as $27; import 'servicemanager.pbenum.dart'; export 'servicemanager.pbenum.dart'; +/// Request message for `ListServices` method. class ListServicesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServicesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'producerProjectId') - ..a<$core.int>( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'consumerId') - ..hasRequiredFields = false; - - ListServicesRequest._() : super(); factory ListServicesRequest({ $core.String? producerProjectId, $core.int? pageSize, $core.String? pageToken, @$core.Deprecated('This field is deprecated.') $core.String? consumerId, }) { - final _result = create(); + final $result = create(); if (producerProjectId != null) { - _result.producerProjectId = producerProjectId; + $result.producerProjectId = producerProjectId; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (consumerId != null) { // ignore: deprecated_member_use_from_same_package - _result.consumerId = consumerId; + $result.consumerId = consumerId; } - return _result; + return $result; } + ListServicesRequest._() : super(); factory ListServicesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServicesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServicesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'producerProjectId') + ..a<$core.int>(5, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(6, _omitFieldNames ? '' : 'pageToken') + ..aOS(7, _omitFieldNames ? '' : 'consumerId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -84,8 +72,10 @@ class ListServicesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListServicesRequest copyWith(void Function(ListServicesRequest) updates) => super.copyWith((message) => updates(message as ListServicesRequest)) - as ListServicesRequest; // ignore: deprecated_member_use + as ListServicesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServicesRequest create() => ListServicesRequest._(); ListServicesRequest createEmptyInstance() => create(); @@ -96,6 +86,7 @@ class ListServicesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServicesRequest? _defaultInstance; + /// Include services produced by the specified project. @$pb.TagNumber(1) $core.String get producerProjectId => $_getSZ(0); @$pb.TagNumber(1) @@ -108,6 +99,8 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProducerProjectId() => clearField(1); + /// The max number of items to include in the response list. Page size is 50 + /// if not specified. Maximum value is 500. @$pb.TagNumber(5) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(5) @@ -120,6 +113,8 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearPageSize() => clearField(5); + /// Token identifying which result to start with; returned by a previous list + /// call. @$pb.TagNumber(6) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(6) @@ -132,6 +127,11 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearPageToken() => clearField(6); + /// Include services consumed by the specified consumer. + /// + /// The Google Service Management implementation accepts the following + /// forms: + /// - project: @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(7) $core.String get consumerId => $_getSZ(3); @@ -149,47 +149,40 @@ class ListServicesRequest extends $pb.GeneratedMessage { void clearConsumerId() => clearField(7); } +/// Response message for `ListServices` method. class ListServicesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServicesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..pc<$3.ManagedService>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'services', - $pb.PbFieldType.PM, - subBuilder: $3.ManagedService.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListServicesResponse._() : super(); factory ListServicesResponse({ - $core.Iterable<$3.ManagedService>? services, + $core.Iterable<$27.ManagedService>? services, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (services != null) { - _result.services.addAll(services); + $result.services.addAll(services); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListServicesResponse._() : super(); factory ListServicesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServicesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServicesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..pc<$27.ManagedService>( + 1, _omitFieldNames ? '' : 'services', $pb.PbFieldType.PM, + subBuilder: $27.ManagedService.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -200,8 +193,10 @@ class ListServicesResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListServicesResponse copyWith(void Function(ListServicesResponse) updates) => super.copyWith((message) => updates(message as ListServicesResponse)) - as ListServicesResponse; // ignore: deprecated_member_use + as ListServicesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServicesResponse create() => ListServicesResponse._(); ListServicesResponse createEmptyInstance() => create(); @@ -212,9 +207,11 @@ class ListServicesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServicesResponse? _defaultInstance; + /// The returned services will only have the name field set. @$pb.TagNumber(1) - $core.List<$3.ManagedService> get services => $_getList(0); + $core.List<$27.ManagedService> get services => $_getList(0); + /// Token that can be passed to `ListServices` to resume a paginated query. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -228,39 +225,33 @@ class ListServicesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `GetService` method. class GetServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..hasRequiredFields = false; - - GetServiceRequest._() : super(); factory GetServiceRequest({ $core.String? serviceName, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } - return _result; + return $result; } + GetServiceRequest._() : super(); factory GetServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -270,8 +261,10 @@ class GetServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetServiceRequest copyWith(void Function(GetServiceRequest) updates) => super.copyWith((message) => updates(message as GetServiceRequest)) - as GetServiceRequest; // ignore: deprecated_member_use + as GetServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceRequest create() => GetServiceRequest._(); GetServiceRequest createEmptyInstance() => create(); @@ -282,6 +275,8 @@ class GetServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceRequest? _defaultInstance; + /// Required. The name of the service. See the `ServiceManager` overview for + /// naming requirements. For example: `example.googleapis.com`. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -295,40 +290,34 @@ class GetServiceRequest extends $pb.GeneratedMessage { void clearServiceName() => clearField(1); } +/// Request message for CreateService method. class CreateServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOM<$3.ManagedService>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'service', - subBuilder: $3.ManagedService.create) - ..hasRequiredFields = false; - - CreateServiceRequest._() : super(); factory CreateServiceRequest({ - $3.ManagedService? service, + $27.ManagedService? service, }) { - final _result = create(); + final $result = create(); if (service != null) { - _result.service = service; + $result.service = service; } - return _result; + return $result; } + CreateServiceRequest._() : super(); factory CreateServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOM<$27.ManagedService>(1, _omitFieldNames ? '' : 'service', + subBuilder: $27.ManagedService.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') @@ -339,8 +328,10 @@ class CreateServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CreateServiceRequest copyWith(void Function(CreateServiceRequest) updates) => super.copyWith((message) => updates(message as CreateServiceRequest)) - as CreateServiceRequest; // ignore: deprecated_member_use + as CreateServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateServiceRequest create() => CreateServiceRequest._(); CreateServiceRequest createEmptyInstance() => create(); @@ -351,10 +342,11 @@ class CreateServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateServiceRequest? _defaultInstance; + /// Required. Initial values for the service resource. @$pb.TagNumber(1) - $3.ManagedService get service => $_getN(0); + $27.ManagedService get service => $_getN(0); @$pb.TagNumber(1) - set service($3.ManagedService v) { + set service($27.ManagedService v) { setField(1, v); } @@ -363,42 +355,36 @@ class CreateServiceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearService() => clearField(1); @$pb.TagNumber(1) - $3.ManagedService ensureService() => $_ensure(0); + $27.ManagedService ensureService() => $_ensure(0); } +/// Request message for DeleteService method. class DeleteServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..hasRequiredFields = false; - - DeleteServiceRequest._() : super(); factory DeleteServiceRequest({ $core.String? serviceName, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } - return _result; + return $result; } + DeleteServiceRequest._() : super(); factory DeleteServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -409,8 +395,10 @@ class DeleteServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteServiceRequest copyWith(void Function(DeleteServiceRequest) updates) => super.copyWith((message) => updates(message as DeleteServiceRequest)) - as DeleteServiceRequest; // ignore: deprecated_member_use + as DeleteServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteServiceRequest create() => DeleteServiceRequest._(); DeleteServiceRequest createEmptyInstance() => create(); @@ -421,6 +409,9 @@ class DeleteServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteServiceRequest? _defaultInstance; + /// Required. The name of the service. See the + /// [overview](https://cloud.google.com/service-management/overview) for naming + /// requirements. For example: `example.googleapis.com`. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -434,39 +425,33 @@ class DeleteServiceRequest extends $pb.GeneratedMessage { void clearServiceName() => clearField(1); } +/// Request message for UndeleteService method. class UndeleteServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UndeleteServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..hasRequiredFields = false; - - UndeleteServiceRequest._() : super(); factory UndeleteServiceRequest({ $core.String? serviceName, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } - return _result; + return $result; } + UndeleteServiceRequest._() : super(); factory UndeleteServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UndeleteServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UndeleteServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -478,8 +463,10 @@ class UndeleteServiceRequest extends $pb.GeneratedMessage { UndeleteServiceRequest copyWith( void Function(UndeleteServiceRequest) updates) => super.copyWith((message) => updates(message as UndeleteServiceRequest)) - as UndeleteServiceRequest; // ignore: deprecated_member_use + as UndeleteServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UndeleteServiceRequest create() => UndeleteServiceRequest._(); UndeleteServiceRequest createEmptyInstance() => create(); @@ -490,6 +477,9 @@ class UndeleteServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UndeleteServiceRequest? _defaultInstance; + /// Required. The name of the service. See the + /// [overview](https://cloud.google.com/service-management/overview) for naming + /// requirements. For example: `example.googleapis.com`. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -503,40 +493,34 @@ class UndeleteServiceRequest extends $pb.GeneratedMessage { void clearServiceName() => clearField(1); } +/// Response message for UndeleteService method. class UndeleteServiceResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UndeleteServiceResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOM<$3.ManagedService>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'service', - subBuilder: $3.ManagedService.create) - ..hasRequiredFields = false; - - UndeleteServiceResponse._() : super(); factory UndeleteServiceResponse({ - $3.ManagedService? service, + $27.ManagedService? service, }) { - final _result = create(); + final $result = create(); if (service != null) { - _result.service = service; + $result.service = service; } - return _result; + return $result; } + UndeleteServiceResponse._() : super(); factory UndeleteServiceResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UndeleteServiceResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UndeleteServiceResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOM<$27.ManagedService>(1, _omitFieldNames ? '' : 'service', + subBuilder: $27.ManagedService.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') @@ -548,8 +532,10 @@ class UndeleteServiceResponse extends $pb.GeneratedMessage { UndeleteServiceResponse copyWith( void Function(UndeleteServiceResponse) updates) => super.copyWith((message) => updates(message as UndeleteServiceResponse)) - as UndeleteServiceResponse; // ignore: deprecated_member_use + as UndeleteServiceResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UndeleteServiceResponse create() => UndeleteServiceResponse._(); UndeleteServiceResponse createEmptyInstance() => create(); @@ -560,10 +546,11 @@ class UndeleteServiceResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UndeleteServiceResponse? _defaultInstance; + /// Revived service resource. @$pb.TagNumber(1) - $3.ManagedService get service => $_getN(0); + $27.ManagedService get service => $_getN(0); @$pb.TagNumber(1) - set service($3.ManagedService v) { + set service($27.ManagedService v) { setField(1, v); } @@ -572,64 +559,50 @@ class UndeleteServiceResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearService() => clearField(1); @$pb.TagNumber(1) - $3.ManagedService ensureService() => $_ensure(0); + $27.ManagedService ensureService() => $_ensure(0); } +/// Request message for GetServiceConfig method. class GetServiceConfigRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceConfigRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'configId') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'view', - $pb.PbFieldType.OE, - defaultOrMaker: GetServiceConfigRequest_ConfigView.BASIC, - valueOf: GetServiceConfigRequest_ConfigView.valueOf, - enumValues: GetServiceConfigRequest_ConfigView.values) - ..hasRequiredFields = false; - - GetServiceConfigRequest._() : super(); factory GetServiceConfigRequest({ $core.String? serviceName, $core.String? configId, GetServiceConfigRequest_ConfigView? view, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (configId != null) { - _result.configId = configId; + $result.configId = configId; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + GetServiceConfigRequest._() : super(); factory GetServiceConfigRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceConfigRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceConfigRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOS(2, _omitFieldNames ? '' : 'configId') + ..e( + 3, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: GetServiceConfigRequest_ConfigView.BASIC, + valueOf: GetServiceConfigRequest_ConfigView.valueOf, + enumValues: GetServiceConfigRequest_ConfigView.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -641,8 +614,10 @@ class GetServiceConfigRequest extends $pb.GeneratedMessage { GetServiceConfigRequest copyWith( void Function(GetServiceConfigRequest) updates) => super.copyWith((message) => updates(message as GetServiceConfigRequest)) - as GetServiceConfigRequest; // ignore: deprecated_member_use + as GetServiceConfigRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceConfigRequest create() => GetServiceConfigRequest._(); GetServiceConfigRequest createEmptyInstance() => create(); @@ -653,6 +628,9 @@ class GetServiceConfigRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceConfigRequest? _defaultInstance; + /// Required. The name of the service. See the + /// [overview](https://cloud.google.com/service-management/overview) for naming + /// requirements. For example: `example.googleapis.com`. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -665,6 +643,10 @@ class GetServiceConfigRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// Required. The id of the service configuration resource. + /// + /// This field must be specified for the server to return all fields, including + /// `SourceInfo`. @$pb.TagNumber(2) $core.String get configId => $_getSZ(1); @$pb.TagNumber(2) @@ -677,6 +659,8 @@ class GetServiceConfigRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearConfigId() => clearField(2); + /// Specifies which parts of the Service Config should be returned in the + /// response. @$pb.TagNumber(3) GetServiceConfigRequest_ConfigView get view => $_getN(2); @$pb.TagNumber(3) @@ -690,58 +674,43 @@ class GetServiceConfigRequest extends $pb.GeneratedMessage { void clearView() => clearField(3); } +/// Request message for ListServiceConfigs method. class ListServiceConfigsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServiceConfigsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ListServiceConfigsRequest._() : super(); factory ListServiceConfigsRequest({ $core.String? serviceName, $core.String? pageToken, $core.int? pageSize, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } - return _result; + return $result; } + ListServiceConfigsRequest._() : super(); factory ListServiceConfigsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServiceConfigsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServiceConfigsRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOS(2, _omitFieldNames ? '' : 'pageToken') + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -753,8 +722,10 @@ class ListServiceConfigsRequest extends $pb.GeneratedMessage { ListServiceConfigsRequest copyWith( void Function(ListServiceConfigsRequest) updates) => super.copyWith((message) => updates(message as ListServiceConfigsRequest)) - as ListServiceConfigsRequest; // ignore: deprecated_member_use + as ListServiceConfigsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServiceConfigsRequest create() => ListServiceConfigsRequest._(); ListServiceConfigsRequest createEmptyInstance() => create(); @@ -765,6 +736,9 @@ class ListServiceConfigsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServiceConfigsRequest? _defaultInstance; + /// Required. The name of the service. See the + /// [overview](https://cloud.google.com/service-management/overview) for naming + /// requirements. For example: `example.googleapis.com`. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -777,6 +751,7 @@ class ListServiceConfigsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// The token of the page to retrieve. @$pb.TagNumber(2) $core.String get pageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -789,6 +764,8 @@ class ListServiceConfigsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageToken() => clearField(2); + /// The max number of items to include in the response list. Page size is 50 + /// if not specified. Maximum value is 100. @$pb.TagNumber(3) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(3) @@ -802,47 +779,40 @@ class ListServiceConfigsRequest extends $pb.GeneratedMessage { void clearPageSize() => clearField(3); } +/// Response message for ListServiceConfigs method. class ListServiceConfigsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServiceConfigsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..pc<$4.Service>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceConfigs', - $pb.PbFieldType.PM, - subBuilder: $4.Service.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListServiceConfigsResponse._() : super(); factory ListServiceConfigsResponse({ - $core.Iterable<$4.Service>? serviceConfigs, + $core.Iterable<$28.Service>? serviceConfigs, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (serviceConfigs != null) { - _result.serviceConfigs.addAll(serviceConfigs); + $result.serviceConfigs.addAll(serviceConfigs); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListServiceConfigsResponse._() : super(); factory ListServiceConfigsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServiceConfigsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServiceConfigsResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..pc<$28.Service>( + 1, _omitFieldNames ? '' : 'serviceConfigs', $pb.PbFieldType.PM, + subBuilder: $28.Service.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -855,8 +825,10 @@ class ListServiceConfigsResponse extends $pb.GeneratedMessage { void Function(ListServiceConfigsResponse) updates) => super.copyWith( (message) => updates(message as ListServiceConfigsResponse)) - as ListServiceConfigsResponse; // ignore: deprecated_member_use + as ListServiceConfigsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServiceConfigsResponse create() => ListServiceConfigsResponse._(); ListServiceConfigsResponse createEmptyInstance() => create(); @@ -867,9 +839,11 @@ class ListServiceConfigsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServiceConfigsResponse? _defaultInstance; + /// The list of service configuration resources. @$pb.TagNumber(1) - $core.List<$4.Service> get serviceConfigs => $_getList(0); + $core.List<$28.Service> get serviceConfigs => $_getList(0); + /// The token of the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -883,49 +857,39 @@ class ListServiceConfigsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for CreateServiceConfig method. class CreateServiceConfigRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateServiceConfigRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOM<$4.Service>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceConfig', - subBuilder: $4.Service.create) - ..hasRequiredFields = false; - - CreateServiceConfigRequest._() : super(); factory CreateServiceConfigRequest({ $core.String? serviceName, - $4.Service? serviceConfig, + $28.Service? serviceConfig, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (serviceConfig != null) { - _result.serviceConfig = serviceConfig; + $result.serviceConfig = serviceConfig; } - return _result; + return $result; } + CreateServiceConfigRequest._() : super(); factory CreateServiceConfigRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateServiceConfigRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateServiceConfigRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOM<$28.Service>(2, _omitFieldNames ? '' : 'serviceConfig', + subBuilder: $28.Service.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') @@ -938,8 +902,10 @@ class CreateServiceConfigRequest extends $pb.GeneratedMessage { void Function(CreateServiceConfigRequest) updates) => super.copyWith( (message) => updates(message as CreateServiceConfigRequest)) - as CreateServiceConfigRequest; // ignore: deprecated_member_use + as CreateServiceConfigRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateServiceConfigRequest create() => CreateServiceConfigRequest._(); CreateServiceConfigRequest createEmptyInstance() => create(); @@ -950,6 +916,9 @@ class CreateServiceConfigRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateServiceConfigRequest? _defaultInstance; + /// Required. The name of the service. See the + /// [overview](https://cloud.google.com/service-management/overview) for naming + /// requirements. For example: `example.googleapis.com`. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -962,10 +931,11 @@ class CreateServiceConfigRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// Required. The service configuration resource. @$pb.TagNumber(2) - $4.Service get serviceConfig => $_getN(1); + $28.Service get serviceConfig => $_getN(1); @$pb.TagNumber(2) - set serviceConfig($4.Service v) { + set serviceConfig($28.Service v) { setField(2, v); } @@ -974,58 +944,47 @@ class CreateServiceConfigRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearServiceConfig() => clearField(2); @$pb.TagNumber(2) - $4.Service ensureServiceConfig() => $_ensure(1); + $28.Service ensureServiceConfig() => $_ensure(1); } +/// Request message for SubmitConfigSource method. class SubmitConfigSourceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubmitConfigSourceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOM<$3.ConfigSource>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'configSource', - subBuilder: $3.ConfigSource.create) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'validateOnly') - ..hasRequiredFields = false; - - SubmitConfigSourceRequest._() : super(); factory SubmitConfigSourceRequest({ $core.String? serviceName, - $3.ConfigSource? configSource, + $27.ConfigSource? configSource, $core.bool? validateOnly, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (configSource != null) { - _result.configSource = configSource; + $result.configSource = configSource; } if (validateOnly != null) { - _result.validateOnly = validateOnly; + $result.validateOnly = validateOnly; } - return _result; + return $result; } + SubmitConfigSourceRequest._() : super(); factory SubmitConfigSourceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SubmitConfigSourceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SubmitConfigSourceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOM<$27.ConfigSource>(2, _omitFieldNames ? '' : 'configSource', + subBuilder: $27.ConfigSource.create) + ..aOB(3, _omitFieldNames ? '' : 'validateOnly') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1037,8 +996,10 @@ class SubmitConfigSourceRequest extends $pb.GeneratedMessage { SubmitConfigSourceRequest copyWith( void Function(SubmitConfigSourceRequest) updates) => super.copyWith((message) => updates(message as SubmitConfigSourceRequest)) - as SubmitConfigSourceRequest; // ignore: deprecated_member_use + as SubmitConfigSourceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SubmitConfigSourceRequest create() => SubmitConfigSourceRequest._(); SubmitConfigSourceRequest createEmptyInstance() => create(); @@ -1049,6 +1010,9 @@ class SubmitConfigSourceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SubmitConfigSourceRequest? _defaultInstance; + /// Required. The name of the service. See the + /// [overview](https://cloud.google.com/service-management/overview) for naming + /// requirements. For example: `example.googleapis.com`. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -1061,10 +1025,11 @@ class SubmitConfigSourceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// Required. The source configuration for the service. @$pb.TagNumber(2) - $3.ConfigSource get configSource => $_getN(1); + $27.ConfigSource get configSource => $_getN(1); @$pb.TagNumber(2) - set configSource($3.ConfigSource v) { + set configSource($27.ConfigSource v) { setField(2, v); } @@ -1073,8 +1038,11 @@ class SubmitConfigSourceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearConfigSource() => clearField(2); @$pb.TagNumber(2) - $3.ConfigSource ensureConfigSource() => $_ensure(1); + $27.ConfigSource ensureConfigSource() => $_ensure(1); + /// Optional. If set, this will result in the generation of a + /// `google.api.Service` configuration based on the `ConfigSource` provided, + /// but the generated config and the sources will NOT be persisted. @$pb.TagNumber(3) $core.bool get validateOnly => $_getBF(2); @$pb.TagNumber(3) @@ -1088,40 +1056,34 @@ class SubmitConfigSourceRequest extends $pb.GeneratedMessage { void clearValidateOnly() => clearField(3); } +/// Response message for SubmitConfigSource method. class SubmitConfigSourceResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SubmitConfigSourceResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOM<$4.Service>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceConfig', - subBuilder: $4.Service.create) - ..hasRequiredFields = false; - - SubmitConfigSourceResponse._() : super(); factory SubmitConfigSourceResponse({ - $4.Service? serviceConfig, + $28.Service? serviceConfig, }) { - final _result = create(); + final $result = create(); if (serviceConfig != null) { - _result.serviceConfig = serviceConfig; + $result.serviceConfig = serviceConfig; } - return _result; + return $result; } + SubmitConfigSourceResponse._() : super(); factory SubmitConfigSourceResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SubmitConfigSourceResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SubmitConfigSourceResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOM<$28.Service>(1, _omitFieldNames ? '' : 'serviceConfig', + subBuilder: $28.Service.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') @@ -1134,8 +1096,10 @@ class SubmitConfigSourceResponse extends $pb.GeneratedMessage { void Function(SubmitConfigSourceResponse) updates) => super.copyWith( (message) => updates(message as SubmitConfigSourceResponse)) - as SubmitConfigSourceResponse; // ignore: deprecated_member_use + as SubmitConfigSourceResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SubmitConfigSourceResponse create() => SubmitConfigSourceResponse._(); SubmitConfigSourceResponse createEmptyInstance() => create(); @@ -1146,10 +1110,11 @@ class SubmitConfigSourceResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SubmitConfigSourceResponse? _defaultInstance; + /// The generated service configuration. @$pb.TagNumber(1) - $4.Service get serviceConfig => $_getN(0); + $28.Service get serviceConfig => $_getN(0); @$pb.TagNumber(1) - set serviceConfig($4.Service v) { + set serviceConfig($28.Service v) { setField(1, v); } @@ -1158,52 +1123,43 @@ class SubmitConfigSourceResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceConfig() => clearField(1); @$pb.TagNumber(1) - $4.Service ensureServiceConfig() => $_ensure(0); + $28.Service ensureServiceConfig() => $_ensure(0); } +/// +/// Request message for 'CreateServiceRollout' class CreateServiceRolloutRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateServiceRolloutRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOM<$3.Rollout>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rollout', - subBuilder: $3.Rollout.create) - ..hasRequiredFields = false; - - CreateServiceRolloutRequest._() : super(); factory CreateServiceRolloutRequest({ $core.String? serviceName, - $3.Rollout? rollout, + $27.Rollout? rollout, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (rollout != null) { - _result.rollout = rollout; + $result.rollout = rollout; } - return _result; + return $result; } + CreateServiceRolloutRequest._() : super(); factory CreateServiceRolloutRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateServiceRolloutRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateServiceRolloutRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOM<$27.Rollout>(2, _omitFieldNames ? '' : 'rollout', + subBuilder: $27.Rollout.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') @@ -1216,8 +1172,10 @@ class CreateServiceRolloutRequest extends $pb.GeneratedMessage { void Function(CreateServiceRolloutRequest) updates) => super.copyWith( (message) => updates(message as CreateServiceRolloutRequest)) - as CreateServiceRolloutRequest; // ignore: deprecated_member_use + as CreateServiceRolloutRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateServiceRolloutRequest create() => CreateServiceRolloutRequest._(); @@ -1229,6 +1187,9 @@ class CreateServiceRolloutRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateServiceRolloutRequest? _defaultInstance; + /// Required. The name of the service. See the + /// [overview](https://cloud.google.com/service-management/overview) for naming + /// requirements. For example: `example.googleapis.com`. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -1241,10 +1202,11 @@ class CreateServiceRolloutRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// Required. The rollout resource. The `service_name` field is output only. @$pb.TagNumber(2) - $3.Rollout get rollout => $_getN(1); + $27.Rollout get rollout => $_getN(1); @$pb.TagNumber(2) - set rollout($3.Rollout v) { + set rollout($27.Rollout v) { setField(2, v); } @@ -1253,67 +1215,51 @@ class CreateServiceRolloutRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRollout() => clearField(2); @$pb.TagNumber(2) - $3.Rollout ensureRollout() => $_ensure(1); + $27.Rollout ensureRollout() => $_ensure(1); } +/// Request message for 'ListServiceRollouts' class ListServiceRolloutsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServiceRolloutsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter') - ..hasRequiredFields = false; - - ListServiceRolloutsRequest._() : super(); factory ListServiceRolloutsRequest({ $core.String? serviceName, $core.String? pageToken, $core.int? pageSize, $core.String? filter, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } - return _result; + return $result; } + ListServiceRolloutsRequest._() : super(); factory ListServiceRolloutsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServiceRolloutsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServiceRolloutsRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOS(2, _omitFieldNames ? '' : 'pageToken') + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(4, _omitFieldNames ? '' : 'filter') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1326,8 +1272,10 @@ class ListServiceRolloutsRequest extends $pb.GeneratedMessage { void Function(ListServiceRolloutsRequest) updates) => super.copyWith( (message) => updates(message as ListServiceRolloutsRequest)) - as ListServiceRolloutsRequest; // ignore: deprecated_member_use + as ListServiceRolloutsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServiceRolloutsRequest create() => ListServiceRolloutsRequest._(); ListServiceRolloutsRequest createEmptyInstance() => create(); @@ -1338,6 +1286,9 @@ class ListServiceRolloutsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServiceRolloutsRequest? _defaultInstance; + /// Required. The name of the service. See the + /// [overview](https://cloud.google.com/service-management/overview) for naming + /// requirements. For example: `example.googleapis.com`. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -1350,6 +1301,7 @@ class ListServiceRolloutsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// The token of the page to retrieve. @$pb.TagNumber(2) $core.String get pageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1362,6 +1314,8 @@ class ListServiceRolloutsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageToken() => clearField(2); + /// The max number of items to include in the response list. Page size is 50 + /// if not specified. Maximum value is 100. @$pb.TagNumber(3) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(3) @@ -1374,6 +1328,16 @@ class ListServiceRolloutsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageSize() => clearField(3); + /// Required. Use `filter` to return subset of rollouts. + /// The following filters are supported: + /// + /// -- By [status] + /// [google.api.servicemanagement.v1.Rollout.RolloutStatus]. For example, + /// `filter='status=SUCCESS'` + /// + /// -- By [strategy] + /// [google.api.servicemanagement.v1.Rollout.strategy]. For example, + /// `filter='strategy=TrafficPercentStrategy'` @$pb.TagNumber(4) $core.String get filter => $_getSZ(3); @$pb.TagNumber(4) @@ -1387,47 +1351,39 @@ class ListServiceRolloutsRequest extends $pb.GeneratedMessage { void clearFilter() => clearField(4); } +/// Response message for ListServiceRollouts method. class ListServiceRolloutsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServiceRolloutsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..pc<$3.Rollout>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rollouts', - $pb.PbFieldType.PM, - subBuilder: $3.Rollout.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListServiceRolloutsResponse._() : super(); factory ListServiceRolloutsResponse({ - $core.Iterable<$3.Rollout>? rollouts, + $core.Iterable<$27.Rollout>? rollouts, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (rollouts != null) { - _result.rollouts.addAll(rollouts); + $result.rollouts.addAll(rollouts); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListServiceRolloutsResponse._() : super(); factory ListServiceRolloutsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServiceRolloutsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServiceRolloutsResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..pc<$27.Rollout>(1, _omitFieldNames ? '' : 'rollouts', $pb.PbFieldType.PM, + subBuilder: $27.Rollout.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1440,8 +1396,10 @@ class ListServiceRolloutsResponse extends $pb.GeneratedMessage { void Function(ListServiceRolloutsResponse) updates) => super.copyWith( (message) => updates(message as ListServiceRolloutsResponse)) - as ListServiceRolloutsResponse; // ignore: deprecated_member_use + as ListServiceRolloutsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServiceRolloutsResponse create() => ListServiceRolloutsResponse._(); @@ -1453,9 +1411,11 @@ class ListServiceRolloutsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServiceRolloutsResponse? _defaultInstance; + /// The list of rollout resources. @$pb.TagNumber(1) - $core.List<$3.Rollout> get rollouts => $_getList(0); + $core.List<$27.Rollout> get rollouts => $_getList(0); + /// The token of the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1469,48 +1429,38 @@ class ListServiceRolloutsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for GetServiceRollout method. class GetServiceRolloutRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceRolloutRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rolloutId') - ..hasRequiredFields = false; - - GetServiceRolloutRequest._() : super(); factory GetServiceRolloutRequest({ $core.String? serviceName, $core.String? rolloutId, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (rolloutId != null) { - _result.rolloutId = rolloutId; + $result.rolloutId = rolloutId; } - return _result; + return $result; } + GetServiceRolloutRequest._() : super(); factory GetServiceRolloutRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceRolloutRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceRolloutRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOS(2, _omitFieldNames ? '' : 'rolloutId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1522,8 +1472,10 @@ class GetServiceRolloutRequest extends $pb.GeneratedMessage { GetServiceRolloutRequest copyWith( void Function(GetServiceRolloutRequest) updates) => super.copyWith((message) => updates(message as GetServiceRolloutRequest)) - as GetServiceRolloutRequest; // ignore: deprecated_member_use + as GetServiceRolloutRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceRolloutRequest create() => GetServiceRolloutRequest._(); GetServiceRolloutRequest createEmptyInstance() => create(); @@ -1534,6 +1486,9 @@ class GetServiceRolloutRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceRolloutRequest? _defaultInstance; + /// Required. The name of the service. See the + /// [overview](https://cloud.google.com/service-management/overview) for naming + /// requirements. For example: `example.googleapis.com`. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -1546,6 +1501,7 @@ class GetServiceRolloutRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// Required. The id of the rollout resource. @$pb.TagNumber(2) $core.String get rolloutId => $_getSZ(1); @$pb.TagNumber(2) @@ -1559,115 +1515,24 @@ class GetServiceRolloutRequest extends $pb.GeneratedMessage { void clearRolloutId() => clearField(2); } -class EnableServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnableServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'consumerId') - ..hasRequiredFields = false; - - EnableServiceRequest._() : super(); - factory EnableServiceRequest({ - $core.String? serviceName, - $core.String? consumerId, - }) { - final _result = create(); - if (serviceName != null) { - _result.serviceName = serviceName; - } - if (consumerId != null) { - _result.consumerId = consumerId; - } - return _result; - } - factory EnableServiceRequest.fromBuffer($core.List<$core.int> i, +/// Operation payload for EnableService method. +class EnableServiceResponse extends $pb.GeneratedMessage { + factory EnableServiceResponse() => create(); + EnableServiceResponse._() : super(); + factory EnableServiceResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory EnableServiceRequest.fromJson($core.String i, + factory EnableServiceResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - EnableServiceRequest clone() => - EnableServiceRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - EnableServiceRequest copyWith(void Function(EnableServiceRequest) updates) => - super.copyWith((message) => updates(message as EnableServiceRequest)) - as EnableServiceRequest; // ignore: deprecated_member_use - $pb.BuilderInfo get info_ => _i; - @$core.pragma('dart2js:noInline') - static EnableServiceRequest create() => EnableServiceRequest._(); - EnableServiceRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static EnableServiceRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static EnableServiceRequest? _defaultInstance; - @$pb.TagNumber(1) - $core.String get serviceName => $_getSZ(0); - @$pb.TagNumber(1) - set serviceName($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasServiceName() => $_has(0); - @$pb.TagNumber(1) - void clearServiceName() => clearField(1); - - @$pb.TagNumber(2) - $core.String get consumerId => $_getSZ(1); - @$pb.TagNumber(2) - set consumerId($core.String v) { - $_setString(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasConsumerId() => $_has(1); - @$pb.TagNumber(2) - void clearConsumerId() => clearField(2); -} - -class EnableServiceResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnableServiceResponse', + _omitMessageNames ? '' : 'EnableServiceResponse', package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), createEmptyInstance: create) ..hasRequiredFields = false; - EnableServiceResponse._() : super(); - factory EnableServiceResponse() => create(); - factory EnableServiceResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory EnableServiceResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1679,8 +1544,10 @@ class EnableServiceResponse extends $pb.GeneratedMessage { EnableServiceResponse copyWith( void Function(EnableServiceResponse) updates) => super.copyWith((message) => updates(message as EnableServiceResponse)) - as EnableServiceResponse; // ignore: deprecated_member_use + as EnableServiceResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnableServiceResponse create() => EnableServiceResponse._(); EnableServiceResponse createEmptyInstance() => create(); @@ -1692,181 +1559,40 @@ class EnableServiceResponse extends $pb.GeneratedMessage { static EnableServiceResponse? _defaultInstance; } -class DisableServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DisableServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'consumerId') - ..hasRequiredFields = false; - - DisableServiceRequest._() : super(); - factory DisableServiceRequest({ - $core.String? serviceName, - $core.String? consumerId, - }) { - final _result = create(); - if (serviceName != null) { - _result.serviceName = serviceName; - } - if (consumerId != null) { - _result.consumerId = consumerId; - } - return _result; - } - factory DisableServiceRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory DisableServiceRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DisableServiceRequest clone() => - DisableServiceRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DisableServiceRequest copyWith( - void Function(DisableServiceRequest) updates) => - super.copyWith((message) => updates(message as DisableServiceRequest)) - as DisableServiceRequest; // ignore: deprecated_member_use - $pb.BuilderInfo get info_ => _i; - @$core.pragma('dart2js:noInline') - static DisableServiceRequest create() => DisableServiceRequest._(); - DisableServiceRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DisableServiceRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static DisableServiceRequest? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get serviceName => $_getSZ(0); - @$pb.TagNumber(1) - set serviceName($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasServiceName() => $_has(0); - @$pb.TagNumber(1) - void clearServiceName() => clearField(1); - - @$pb.TagNumber(2) - $core.String get consumerId => $_getSZ(1); - @$pb.TagNumber(2) - set consumerId($core.String v) { - $_setString(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasConsumerId() => $_has(1); - @$pb.TagNumber(2) - void clearConsumerId() => clearField(2); -} - -class DisableServiceResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DisableServiceResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - DisableServiceResponse._() : super(); - factory DisableServiceResponse() => create(); - factory DisableServiceResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory DisableServiceResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - DisableServiceResponse clone() => - DisableServiceResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - DisableServiceResponse copyWith( - void Function(DisableServiceResponse) updates) => - super.copyWith((message) => updates(message as DisableServiceResponse)) - as DisableServiceResponse; // ignore: deprecated_member_use - $pb.BuilderInfo get info_ => _i; - @$core.pragma('dart2js:noInline') - static DisableServiceResponse create() => DisableServiceResponse._(); - DisableServiceResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static DisableServiceResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static DisableServiceResponse? _defaultInstance; -} - +/// Request message for GenerateConfigReport method. class GenerateConfigReportRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GenerateConfigReportRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOM<$5.Any>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'newConfig', - subBuilder: $5.Any.create) - ..aOM<$5.Any>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'oldConfig', - subBuilder: $5.Any.create) - ..hasRequiredFields = false; - - GenerateConfigReportRequest._() : super(); factory GenerateConfigReportRequest({ - $5.Any? newConfig, - $5.Any? oldConfig, + $49.Any? newConfig, + $49.Any? oldConfig, }) { - final _result = create(); + final $result = create(); if (newConfig != null) { - _result.newConfig = newConfig; + $result.newConfig = newConfig; } if (oldConfig != null) { - _result.oldConfig = oldConfig; + $result.oldConfig = oldConfig; } - return _result; + return $result; } + GenerateConfigReportRequest._() : super(); factory GenerateConfigReportRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GenerateConfigReportRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GenerateConfigReportRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOM<$49.Any>(1, _omitFieldNames ? '' : 'newConfig', + subBuilder: $49.Any.create) + ..aOM<$49.Any>(2, _omitFieldNames ? '' : 'oldConfig', + subBuilder: $49.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') @@ -1879,8 +1605,10 @@ class GenerateConfigReportRequest extends $pb.GeneratedMessage { void Function(GenerateConfigReportRequest) updates) => super.copyWith( (message) => updates(message as GenerateConfigReportRequest)) - as GenerateConfigReportRequest; // ignore: deprecated_member_use + as GenerateConfigReportRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GenerateConfigReportRequest create() => GenerateConfigReportRequest._(); @@ -1892,10 +1620,15 @@ class GenerateConfigReportRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GenerateConfigReportRequest? _defaultInstance; + /// Required. Service configuration for which we want to generate the report. + /// For this version of API, the supported types are + /// [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef], + /// [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource], + /// and [google.api.Service][google.api.Service] @$pb.TagNumber(1) - $5.Any get newConfig => $_getN(0); + $49.Any get newConfig => $_getN(0); @$pb.TagNumber(1) - set newConfig($5.Any v) { + set newConfig($49.Any v) { setField(1, v); } @@ -1904,12 +1637,17 @@ class GenerateConfigReportRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearNewConfig() => clearField(1); @$pb.TagNumber(1) - $5.Any ensureNewConfig() => $_ensure(0); + $49.Any ensureNewConfig() => $_ensure(0); + /// Optional. Service configuration against which the comparison will be done. + /// For this version of API, the supported types are + /// [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef], + /// [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource], + /// and [google.api.Service][google.api.Service] @$pb.TagNumber(2) - $5.Any get oldConfig => $_getN(1); + $49.Any get oldConfig => $_getN(1); @$pb.TagNumber(2) - set oldConfig($5.Any v) { + set oldConfig($49.Any v) { setField(2, v); } @@ -1918,65 +1656,55 @@ class GenerateConfigReportRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOldConfig() => clearField(2); @$pb.TagNumber(2) - $5.Any ensureOldConfig() => $_ensure(1); + $49.Any ensureOldConfig() => $_ensure(1); } +/// Response message for GenerateConfigReport method. class GenerateConfigReportResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GenerateConfigReportResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.servicemanagement.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..pc<$3.ChangeReport>( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'changeReports', $pb.PbFieldType.PM, - subBuilder: $3.ChangeReport.create) - ..pc<$3.Diagnostic>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'diagnostics', $pb.PbFieldType.PM, - subBuilder: $3.Diagnostic.create) - ..hasRequiredFields = false; - - GenerateConfigReportResponse._() : super(); factory GenerateConfigReportResponse({ $core.String? serviceName, $core.String? id, - $core.Iterable<$3.ChangeReport>? changeReports, - $core.Iterable<$3.Diagnostic>? diagnostics, + $core.Iterable<$27.ChangeReport>? changeReports, + $core.Iterable<$27.Diagnostic>? diagnostics, }) { - final _result = create(); + final $result = create(); if (serviceName != null) { - _result.serviceName = serviceName; + $result.serviceName = serviceName; } if (id != null) { - _result.id = id; + $result.id = id; } if (changeReports != null) { - _result.changeReports.addAll(changeReports); + $result.changeReports.addAll(changeReports); } if (diagnostics != null) { - _result.diagnostics.addAll(diagnostics); + $result.diagnostics.addAll(diagnostics); } - return _result; + return $result; } + GenerateConfigReportResponse._() : super(); factory GenerateConfigReportResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GenerateConfigReportResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GenerateConfigReportResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.servicemanagement.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceName') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..pc<$27.ChangeReport>( + 3, _omitFieldNames ? '' : 'changeReports', $pb.PbFieldType.PM, + subBuilder: $27.ChangeReport.create) + ..pc<$27.Diagnostic>( + 4, _omitFieldNames ? '' : 'diagnostics', $pb.PbFieldType.PM, + subBuilder: $27.Diagnostic.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') @@ -1989,8 +1717,10 @@ class GenerateConfigReportResponse extends $pb.GeneratedMessage { void Function(GenerateConfigReportResponse) updates) => super.copyWith( (message) => updates(message as GenerateConfigReportResponse)) - as GenerateConfigReportResponse; // ignore: deprecated_member_use + as GenerateConfigReportResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GenerateConfigReportResponse create() => GenerateConfigReportResponse._(); @@ -2002,6 +1732,7 @@ class GenerateConfigReportResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GenerateConfigReportResponse? _defaultInstance; + /// Name of the service this report belongs to. @$pb.TagNumber(1) $core.String get serviceName => $_getSZ(0); @$pb.TagNumber(1) @@ -2014,6 +1745,7 @@ class GenerateConfigReportResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceName() => clearField(1); + /// ID of the service configuration this report belongs to. @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -2026,9 +1758,18 @@ class GenerateConfigReportResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// list of ChangeReport, each corresponding to comparison between two + /// service configurations. @$pb.TagNumber(3) - $core.List<$3.ChangeReport> get changeReports => $_getList(2); + $core.List<$27.ChangeReport> get changeReports => $_getList(2); + /// Errors / Linter warnings associated with the service definition this + /// report + /// belongs to. @$pb.TagNumber(4) - $core.List<$3.Diagnostic> get diagnostics => $_getList(3); + $core.List<$27.Diagnostic> get diagnostics => $_getList(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbenum.dart index ac8f831c..50cdf7ad 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbenum.dart @@ -1,24 +1,23 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicemanagement/v1/servicemanager.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 GetServiceConfigRequest_ConfigView extends $pb.ProtobufEnum { static const GetServiceConfigRequest_ConfigView BASIC = - GetServiceConfigRequest_ConfigView._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'BASIC'); + GetServiceConfigRequest_ConfigView._(0, _omitEnumNames ? '' : 'BASIC'); static const GetServiceConfigRequest_ConfigView FULL = - GetServiceConfigRequest_ConfigView._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FULL'); + GetServiceConfigRequest_ConfigView._(1, _omitEnumNames ? '' : 'FULL'); static const $core.List values = [ @@ -34,3 +33,5 @@ class GetServiceConfigRequest_ConfigView extends $pb.ProtobufEnum { const GetServiceConfigRequest_ConfigView._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbgrpc.dart index 31ec172f..98b05159 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbgrpc.dart @@ -1,435 +1,393 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicemanagement/v1/servicemanager.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'servicemanager.pb.dart' as $2; -import 'resources.pb.dart' as $3; +import 'package:protobuf/protobuf.dart' as $pb; + import '../../../longrunning/operations.pb.dart' as $0; -import '../../service.pb.dart' as $4; +import '../../service.pb.dart' as $28; +import 'resources.pb.dart' as $27; +import 'servicemanager.pb.dart' as $26; + export 'servicemanager.pb.dart'; +@$pb.GrpcServiceName('google.api.servicemanagement.v1.ServiceManager') class ServiceManagerClient extends $grpc.Client { static final _$listServices = - $grpc.ClientMethod<$2.ListServicesRequest, $2.ListServicesResponse>( + $grpc.ClientMethod<$26.ListServicesRequest, $26.ListServicesResponse>( '/google.api.servicemanagement.v1.ServiceManager/ListServices', - ($2.ListServicesRequest value) => value.writeToBuffer(), + ($26.ListServicesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListServicesResponse.fromBuffer(value)); + $26.ListServicesResponse.fromBuffer(value)); static final _$getService = - $grpc.ClientMethod<$2.GetServiceRequest, $3.ManagedService>( + $grpc.ClientMethod<$26.GetServiceRequest, $27.ManagedService>( '/google.api.servicemanagement.v1.ServiceManager/GetService', - ($2.GetServiceRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.ManagedService.fromBuffer(value)); + ($26.GetServiceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $27.ManagedService.fromBuffer(value)); static final _$createService = - $grpc.ClientMethod<$2.CreateServiceRequest, $0.Operation>( + $grpc.ClientMethod<$26.CreateServiceRequest, $0.Operation>( '/google.api.servicemanagement.v1.ServiceManager/CreateService', - ($2.CreateServiceRequest value) => value.writeToBuffer(), + ($26.CreateServiceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$deleteService = - $grpc.ClientMethod<$2.DeleteServiceRequest, $0.Operation>( + $grpc.ClientMethod<$26.DeleteServiceRequest, $0.Operation>( '/google.api.servicemanagement.v1.ServiceManager/DeleteService', - ($2.DeleteServiceRequest value) => value.writeToBuffer(), + ($26.DeleteServiceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$undeleteService = - $grpc.ClientMethod<$2.UndeleteServiceRequest, $0.Operation>( + $grpc.ClientMethod<$26.UndeleteServiceRequest, $0.Operation>( '/google.api.servicemanagement.v1.ServiceManager/UndeleteService', - ($2.UndeleteServiceRequest value) => value.writeToBuffer(), + ($26.UndeleteServiceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$listServiceConfigs = $grpc.ClientMethod< - $2.ListServiceConfigsRequest, $2.ListServiceConfigsResponse>( + $26.ListServiceConfigsRequest, $26.ListServiceConfigsResponse>( '/google.api.servicemanagement.v1.ServiceManager/ListServiceConfigs', - ($2.ListServiceConfigsRequest value) => value.writeToBuffer(), + ($26.ListServiceConfigsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListServiceConfigsResponse.fromBuffer(value)); + $26.ListServiceConfigsResponse.fromBuffer(value)); static final _$getServiceConfig = - $grpc.ClientMethod<$2.GetServiceConfigRequest, $4.Service>( + $grpc.ClientMethod<$26.GetServiceConfigRequest, $28.Service>( '/google.api.servicemanagement.v1.ServiceManager/GetServiceConfig', - ($2.GetServiceConfigRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $4.Service.fromBuffer(value)); + ($26.GetServiceConfigRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $28.Service.fromBuffer(value)); static final _$createServiceConfig = - $grpc.ClientMethod<$2.CreateServiceConfigRequest, $4.Service>( + $grpc.ClientMethod<$26.CreateServiceConfigRequest, $28.Service>( '/google.api.servicemanagement.v1.ServiceManager/CreateServiceConfig', - ($2.CreateServiceConfigRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $4.Service.fromBuffer(value)); + ($26.CreateServiceConfigRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $28.Service.fromBuffer(value)); static final _$submitConfigSource = - $grpc.ClientMethod<$2.SubmitConfigSourceRequest, $0.Operation>( + $grpc.ClientMethod<$26.SubmitConfigSourceRequest, $0.Operation>( '/google.api.servicemanagement.v1.ServiceManager/SubmitConfigSource', - ($2.SubmitConfigSourceRequest value) => value.writeToBuffer(), + ($26.SubmitConfigSourceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$listServiceRollouts = $grpc.ClientMethod< - $2.ListServiceRolloutsRequest, $2.ListServiceRolloutsResponse>( + $26.ListServiceRolloutsRequest, $26.ListServiceRolloutsResponse>( '/google.api.servicemanagement.v1.ServiceManager/ListServiceRollouts', - ($2.ListServiceRolloutsRequest value) => value.writeToBuffer(), + ($26.ListServiceRolloutsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListServiceRolloutsResponse.fromBuffer(value)); + $26.ListServiceRolloutsResponse.fromBuffer(value)); static final _$getServiceRollout = - $grpc.ClientMethod<$2.GetServiceRolloutRequest, $3.Rollout>( + $grpc.ClientMethod<$26.GetServiceRolloutRequest, $27.Rollout>( '/google.api.servicemanagement.v1.ServiceManager/GetServiceRollout', - ($2.GetServiceRolloutRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.Rollout.fromBuffer(value)); + ($26.GetServiceRolloutRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $27.Rollout.fromBuffer(value)); static final _$createServiceRollout = $grpc.ClientMethod< - $2.CreateServiceRolloutRequest, $0.Operation>( + $26.CreateServiceRolloutRequest, $0.Operation>( '/google.api.servicemanagement.v1.ServiceManager/CreateServiceRollout', - ($2.CreateServiceRolloutRequest value) => value.writeToBuffer(), + ($26.CreateServiceRolloutRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$generateConfigReport = $grpc.ClientMethod< - $2.GenerateConfigReportRequest, $2.GenerateConfigReportResponse>( + $26.GenerateConfigReportRequest, $26.GenerateConfigReportResponse>( '/google.api.servicemanagement.v1.ServiceManager/GenerateConfigReport', - ($2.GenerateConfigReportRequest value) => value.writeToBuffer(), + ($26.GenerateConfigReportRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.GenerateConfigReportResponse.fromBuffer(value)); - static final _$enableService = - $grpc.ClientMethod<$2.EnableServiceRequest, $0.Operation>( - '/google.api.servicemanagement.v1.ServiceManager/EnableService', - ($2.EnableServiceRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); - static final _$disableService = - $grpc.ClientMethod<$2.DisableServiceRequest, $0.Operation>( - '/google.api.servicemanagement.v1.ServiceManager/DisableService', - ($2.DisableServiceRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + $26.GenerateConfigReportResponse.fromBuffer(value)); ServiceManagerClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.ListServicesResponse> listServices( - $2.ListServicesRequest request, + $grpc.ResponseFuture<$26.ListServicesResponse> listServices( + $26.ListServicesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listServices, request, options: options); } - $grpc.ResponseFuture<$3.ManagedService> getService( - $2.GetServiceRequest request, + $grpc.ResponseFuture<$27.ManagedService> getService( + $26.GetServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getService, request, options: options); } $grpc.ResponseFuture<$0.Operation> createService( - $2.CreateServiceRequest request, + $26.CreateServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createService, request, options: options); } $grpc.ResponseFuture<$0.Operation> deleteService( - $2.DeleteServiceRequest request, + $26.DeleteServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteService, request, options: options); } $grpc.ResponseFuture<$0.Operation> undeleteService( - $2.UndeleteServiceRequest request, + $26.UndeleteServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$undeleteService, request, options: options); } - $grpc.ResponseFuture<$2.ListServiceConfigsResponse> listServiceConfigs( - $2.ListServiceConfigsRequest request, + $grpc.ResponseFuture<$26.ListServiceConfigsResponse> listServiceConfigs( + $26.ListServiceConfigsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listServiceConfigs, request, options: options); } - $grpc.ResponseFuture<$4.Service> getServiceConfig( - $2.GetServiceConfigRequest request, + $grpc.ResponseFuture<$28.Service> getServiceConfig( + $26.GetServiceConfigRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getServiceConfig, request, options: options); } - $grpc.ResponseFuture<$4.Service> createServiceConfig( - $2.CreateServiceConfigRequest request, + $grpc.ResponseFuture<$28.Service> createServiceConfig( + $26.CreateServiceConfigRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createServiceConfig, request, options: options); } $grpc.ResponseFuture<$0.Operation> submitConfigSource( - $2.SubmitConfigSourceRequest request, + $26.SubmitConfigSourceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$submitConfigSource, request, options: options); } - $grpc.ResponseFuture<$2.ListServiceRolloutsResponse> listServiceRollouts( - $2.ListServiceRolloutsRequest request, + $grpc.ResponseFuture<$26.ListServiceRolloutsResponse> listServiceRollouts( + $26.ListServiceRolloutsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listServiceRollouts, request, options: options); } - $grpc.ResponseFuture<$3.Rollout> getServiceRollout( - $2.GetServiceRolloutRequest request, + $grpc.ResponseFuture<$27.Rollout> getServiceRollout( + $26.GetServiceRolloutRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getServiceRollout, request, options: options); } $grpc.ResponseFuture<$0.Operation> createServiceRollout( - $2.CreateServiceRolloutRequest request, + $26.CreateServiceRolloutRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createServiceRollout, request, options: options); } - $grpc.ResponseFuture<$2.GenerateConfigReportResponse> generateConfigReport( - $2.GenerateConfigReportRequest request, + $grpc.ResponseFuture<$26.GenerateConfigReportResponse> generateConfigReport( + $26.GenerateConfigReportRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$generateConfigReport, request, options: options); } - - $grpc.ResponseFuture<$0.Operation> enableService( - $2.EnableServiceRequest request, - {$grpc.CallOptions? options}) { - return $createUnaryCall(_$enableService, request, options: options); - } - - $grpc.ResponseFuture<$0.Operation> disableService( - $2.DisableServiceRequest request, - {$grpc.CallOptions? options}) { - return $createUnaryCall(_$disableService, request, options: options); - } } +@$pb.GrpcServiceName('google.api.servicemanagement.v1.ServiceManager') abstract class ServiceManagerServiceBase extends $grpc.Service { $core.String get $name => 'google.api.servicemanagement.v1.ServiceManager'; ServiceManagerServiceBase() { $addMethod( - $grpc.ServiceMethod<$2.ListServicesRequest, $2.ListServicesResponse>( + $grpc.ServiceMethod<$26.ListServicesRequest, $26.ListServicesResponse>( 'ListServices', listServices_Pre, false, false, ($core.List<$core.int> value) => - $2.ListServicesRequest.fromBuffer(value), - ($2.ListServicesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetServiceRequest, $3.ManagedService>( + $26.ListServicesRequest.fromBuffer(value), + ($26.ListServicesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$26.GetServiceRequest, $27.ManagedService>( 'GetService', getService_Pre, false, false, - ($core.List<$core.int> value) => $2.GetServiceRequest.fromBuffer(value), - ($3.ManagedService value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateServiceRequest, $0.Operation>( + ($core.List<$core.int> value) => + $26.GetServiceRequest.fromBuffer(value), + ($27.ManagedService value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$26.CreateServiceRequest, $0.Operation>( 'CreateService', createService_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateServiceRequest.fromBuffer(value), + $26.CreateServiceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteServiceRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$26.DeleteServiceRequest, $0.Operation>( 'DeleteService', deleteService_Pre, false, false, ($core.List<$core.int> value) => - $2.DeleteServiceRequest.fromBuffer(value), + $26.DeleteServiceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UndeleteServiceRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$26.UndeleteServiceRequest, $0.Operation>( 'UndeleteService', undeleteService_Pre, false, false, ($core.List<$core.int> value) => - $2.UndeleteServiceRequest.fromBuffer(value), + $26.UndeleteServiceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListServiceConfigsRequest, - $2.ListServiceConfigsResponse>( + $addMethod($grpc.ServiceMethod<$26.ListServiceConfigsRequest, + $26.ListServiceConfigsResponse>( 'ListServiceConfigs', listServiceConfigs_Pre, false, false, ($core.List<$core.int> value) => - $2.ListServiceConfigsRequest.fromBuffer(value), - ($2.ListServiceConfigsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetServiceConfigRequest, $4.Service>( + $26.ListServiceConfigsRequest.fromBuffer(value), + ($26.ListServiceConfigsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$26.GetServiceConfigRequest, $28.Service>( 'GetServiceConfig', getServiceConfig_Pre, false, false, ($core.List<$core.int> value) => - $2.GetServiceConfigRequest.fromBuffer(value), - ($4.Service value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateServiceConfigRequest, $4.Service>( + $26.GetServiceConfigRequest.fromBuffer(value), + ($28.Service value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$26.CreateServiceConfigRequest, $28.Service>( 'CreateServiceConfig', createServiceConfig_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateServiceConfigRequest.fromBuffer(value), - ($4.Service value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.SubmitConfigSourceRequest, $0.Operation>( + $26.CreateServiceConfigRequest.fromBuffer(value), + ($28.Service value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$26.SubmitConfigSourceRequest, $0.Operation>( 'SubmitConfigSource', submitConfigSource_Pre, false, false, ($core.List<$core.int> value) => - $2.SubmitConfigSourceRequest.fromBuffer(value), + $26.SubmitConfigSourceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListServiceRolloutsRequest, - $2.ListServiceRolloutsResponse>( + $addMethod($grpc.ServiceMethod<$26.ListServiceRolloutsRequest, + $26.ListServiceRolloutsResponse>( 'ListServiceRollouts', listServiceRollouts_Pre, false, false, ($core.List<$core.int> value) => - $2.ListServiceRolloutsRequest.fromBuffer(value), - ($2.ListServiceRolloutsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetServiceRolloutRequest, $3.Rollout>( + $26.ListServiceRolloutsRequest.fromBuffer(value), + ($26.ListServiceRolloutsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$26.GetServiceRolloutRequest, $27.Rollout>( 'GetServiceRollout', getServiceRollout_Pre, false, false, ($core.List<$core.int> value) => - $2.GetServiceRolloutRequest.fromBuffer(value), - ($3.Rollout value) => value.writeToBuffer())); + $26.GetServiceRolloutRequest.fromBuffer(value), + ($27.Rollout value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.CreateServiceRolloutRequest, $0.Operation>( + $grpc.ServiceMethod<$26.CreateServiceRolloutRequest, $0.Operation>( 'CreateServiceRollout', createServiceRollout_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateServiceRolloutRequest.fromBuffer(value), + $26.CreateServiceRolloutRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GenerateConfigReportRequest, - $2.GenerateConfigReportResponse>( + $addMethod($grpc.ServiceMethod<$26.GenerateConfigReportRequest, + $26.GenerateConfigReportResponse>( 'GenerateConfigReport', generateConfigReport_Pre, false, false, ($core.List<$core.int> value) => - $2.GenerateConfigReportRequest.fromBuffer(value), - ($2.GenerateConfigReportResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.EnableServiceRequest, $0.Operation>( - 'EnableService', - enableService_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.EnableServiceRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DisableServiceRequest, $0.Operation>( - 'DisableService', - disableService_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.DisableServiceRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); + $26.GenerateConfigReportRequest.fromBuffer(value), + ($26.GenerateConfigReportResponse value) => value.writeToBuffer())); } - $async.Future<$2.ListServicesResponse> listServices_Pre( + $async.Future<$26.ListServicesResponse> listServices_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListServicesRequest> request) async { + $async.Future<$26.ListServicesRequest> request) async { return listServices(call, await request); } - $async.Future<$3.ManagedService> getService_Pre($grpc.ServiceCall call, - $async.Future<$2.GetServiceRequest> request) async { + $async.Future<$27.ManagedService> getService_Pre($grpc.ServiceCall call, + $async.Future<$26.GetServiceRequest> request) async { return getService(call, await request); } $async.Future<$0.Operation> createService_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateServiceRequest> request) async { + $async.Future<$26.CreateServiceRequest> request) async { return createService(call, await request); } $async.Future<$0.Operation> deleteService_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteServiceRequest> request) async { + $async.Future<$26.DeleteServiceRequest> request) async { return deleteService(call, await request); } $async.Future<$0.Operation> undeleteService_Pre($grpc.ServiceCall call, - $async.Future<$2.UndeleteServiceRequest> request) async { + $async.Future<$26.UndeleteServiceRequest> request) async { return undeleteService(call, await request); } - $async.Future<$2.ListServiceConfigsResponse> listServiceConfigs_Pre( + $async.Future<$26.ListServiceConfigsResponse> listServiceConfigs_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListServiceConfigsRequest> request) async { + $async.Future<$26.ListServiceConfigsRequest> request) async { return listServiceConfigs(call, await request); } - $async.Future<$4.Service> getServiceConfig_Pre($grpc.ServiceCall call, - $async.Future<$2.GetServiceConfigRequest> request) async { + $async.Future<$28.Service> getServiceConfig_Pre($grpc.ServiceCall call, + $async.Future<$26.GetServiceConfigRequest> request) async { return getServiceConfig(call, await request); } - $async.Future<$4.Service> createServiceConfig_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateServiceConfigRequest> request) async { + $async.Future<$28.Service> createServiceConfig_Pre($grpc.ServiceCall call, + $async.Future<$26.CreateServiceConfigRequest> request) async { return createServiceConfig(call, await request); } $async.Future<$0.Operation> submitConfigSource_Pre($grpc.ServiceCall call, - $async.Future<$2.SubmitConfigSourceRequest> request) async { + $async.Future<$26.SubmitConfigSourceRequest> request) async { return submitConfigSource(call, await request); } - $async.Future<$2.ListServiceRolloutsResponse> listServiceRollouts_Pre( + $async.Future<$26.ListServiceRolloutsResponse> listServiceRollouts_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListServiceRolloutsRequest> request) async { + $async.Future<$26.ListServiceRolloutsRequest> request) async { return listServiceRollouts(call, await request); } - $async.Future<$3.Rollout> getServiceRollout_Pre($grpc.ServiceCall call, - $async.Future<$2.GetServiceRolloutRequest> request) async { + $async.Future<$27.Rollout> getServiceRollout_Pre($grpc.ServiceCall call, + $async.Future<$26.GetServiceRolloutRequest> request) async { return getServiceRollout(call, await request); } $async.Future<$0.Operation> createServiceRollout_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateServiceRolloutRequest> request) async { + $async.Future<$26.CreateServiceRolloutRequest> request) async { return createServiceRollout(call, await request); } - $async.Future<$2.GenerateConfigReportResponse> generateConfigReport_Pre( + $async.Future<$26.GenerateConfigReportResponse> generateConfigReport_Pre( $grpc.ServiceCall call, - $async.Future<$2.GenerateConfigReportRequest> request) async { + $async.Future<$26.GenerateConfigReportRequest> request) async { return generateConfigReport(call, await request); } - $async.Future<$0.Operation> enableService_Pre($grpc.ServiceCall call, - $async.Future<$2.EnableServiceRequest> request) async { - return enableService(call, await request); - } - - $async.Future<$0.Operation> disableService_Pre($grpc.ServiceCall call, - $async.Future<$2.DisableServiceRequest> request) async { - return disableService(call, await request); - } - - $async.Future<$2.ListServicesResponse> listServices( - $grpc.ServiceCall call, $2.ListServicesRequest request); - $async.Future<$3.ManagedService> getService( - $grpc.ServiceCall call, $2.GetServiceRequest request); + $async.Future<$26.ListServicesResponse> listServices( + $grpc.ServiceCall call, $26.ListServicesRequest request); + $async.Future<$27.ManagedService> getService( + $grpc.ServiceCall call, $26.GetServiceRequest request); $async.Future<$0.Operation> createService( - $grpc.ServiceCall call, $2.CreateServiceRequest request); + $grpc.ServiceCall call, $26.CreateServiceRequest request); $async.Future<$0.Operation> deleteService( - $grpc.ServiceCall call, $2.DeleteServiceRequest request); + $grpc.ServiceCall call, $26.DeleteServiceRequest request); $async.Future<$0.Operation> undeleteService( - $grpc.ServiceCall call, $2.UndeleteServiceRequest request); - $async.Future<$2.ListServiceConfigsResponse> listServiceConfigs( - $grpc.ServiceCall call, $2.ListServiceConfigsRequest request); - $async.Future<$4.Service> getServiceConfig( - $grpc.ServiceCall call, $2.GetServiceConfigRequest request); - $async.Future<$4.Service> createServiceConfig( - $grpc.ServiceCall call, $2.CreateServiceConfigRequest request); + $grpc.ServiceCall call, $26.UndeleteServiceRequest request); + $async.Future<$26.ListServiceConfigsResponse> listServiceConfigs( + $grpc.ServiceCall call, $26.ListServiceConfigsRequest request); + $async.Future<$28.Service> getServiceConfig( + $grpc.ServiceCall call, $26.GetServiceConfigRequest request); + $async.Future<$28.Service> createServiceConfig( + $grpc.ServiceCall call, $26.CreateServiceConfigRequest request); $async.Future<$0.Operation> submitConfigSource( - $grpc.ServiceCall call, $2.SubmitConfigSourceRequest request); - $async.Future<$2.ListServiceRolloutsResponse> listServiceRollouts( - $grpc.ServiceCall call, $2.ListServiceRolloutsRequest request); - $async.Future<$3.Rollout> getServiceRollout( - $grpc.ServiceCall call, $2.GetServiceRolloutRequest request); + $grpc.ServiceCall call, $26.SubmitConfigSourceRequest request); + $async.Future<$26.ListServiceRolloutsResponse> listServiceRollouts( + $grpc.ServiceCall call, $26.ListServiceRolloutsRequest request); + $async.Future<$27.Rollout> getServiceRollout( + $grpc.ServiceCall call, $26.GetServiceRolloutRequest request); $async.Future<$0.Operation> createServiceRollout( - $grpc.ServiceCall call, $2.CreateServiceRolloutRequest request); - $async.Future<$2.GenerateConfigReportResponse> generateConfigReport( - $grpc.ServiceCall call, $2.GenerateConfigReportRequest request); - $async.Future<$0.Operation> enableService( - $grpc.ServiceCall call, $2.EnableServiceRequest request); - $async.Future<$0.Operation> disableService( - $grpc.ServiceCall call, $2.DisableServiceRequest request); + $grpc.ServiceCall call, $26.CreateServiceRolloutRequest request); + $async.Future<$26.GenerateConfigReportResponse> generateConfigReport( + $grpc.ServiceCall call, $26.GenerateConfigReportRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbjson.dart index a6d5f7ae..9117962b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/servicemanagement/v1/servicemanager.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/servicemanagement/v1/servicemanager.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 listServicesRequestDescriptor instead') @@ -35,7 +39,11 @@ const ListServicesRequest$json = { /// Descriptor for `ListServicesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServicesRequestDescriptor = $convert.base64Decode( - 'ChNMaXN0U2VydmljZXNSZXF1ZXN0Ei4KE3Byb2R1Y2VyX3Byb2plY3RfaWQYASABKAlSEXByb2R1Y2VyUHJvamVjdElkEhsKCXBhZ2Vfc2l6ZRgFIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgGIAEoCVIJcGFnZVRva2VuEiMKC2NvbnN1bWVyX2lkGAcgASgJQgIYAVIKY29uc3VtZXJJZA=='); + 'ChNMaXN0U2VydmljZXNSZXF1ZXN0Ei4KE3Byb2R1Y2VyX3Byb2plY3RfaWQYASABKAlSEXByb2' + 'R1Y2VyUHJvamVjdElkEhsKCXBhZ2Vfc2l6ZRgFIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tl' + 'bhgGIAEoCVIJcGFnZVRva2VuEiMKC2NvbnN1bWVyX2lkGAcgASgJQgIYAVIKY29uc3VtZXJJZA' + '=='); + @$core.Deprecated('Use listServicesResponseDescriptor instead') const ListServicesResponse$json = { '1': 'ListServicesResponse', @@ -54,7 +62,10 @@ const ListServicesResponse$json = { /// Descriptor for `ListServicesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServicesResponseDescriptor = $convert.base64Decode( - 'ChRMaXN0U2VydmljZXNSZXNwb25zZRJLCghzZXJ2aWNlcxgBIAMoCzIvLmdvb2dsZS5hcGkuc2VydmljZW1hbmFnZW1lbnQudjEuTWFuYWdlZFNlcnZpY2VSCHNlcnZpY2VzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChRMaXN0U2VydmljZXNSZXNwb25zZRJLCghzZXJ2aWNlcxgBIAMoCzIvLmdvb2dsZS5hcGkuc2' + 'VydmljZW1hbmFnZW1lbnQudjEuTWFuYWdlZFNlcnZpY2VSCHNlcnZpY2VzEiYKD25leHRfcGFn' + 'ZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use getServiceRequestDescriptor instead') const GetServiceRequest$json = { '1': 'GetServiceRequest', @@ -65,7 +76,9 @@ const GetServiceRequest$json = { /// Descriptor for `GetServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getServiceRequestDescriptor = $convert.base64Decode( - 'ChFHZXRTZXJ2aWNlUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAlILc2VydmljZU5hbWU='); + 'ChFHZXRTZXJ2aWNlUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAlILc2VydmljZU' + '5hbWU='); + @$core.Deprecated('Use createServiceRequestDescriptor instead') const CreateServiceRequest$json = { '1': 'CreateServiceRequest', @@ -84,7 +97,9 @@ const CreateServiceRequest$json = { /// Descriptor for `CreateServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createServiceRequestDescriptor = $convert.base64Decode( - 'ChRDcmVhdGVTZXJ2aWNlUmVxdWVzdBJOCgdzZXJ2aWNlGAEgASgLMi8uZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5NYW5hZ2VkU2VydmljZUID4EECUgdzZXJ2aWNl'); + 'ChRDcmVhdGVTZXJ2aWNlUmVxdWVzdBJOCgdzZXJ2aWNlGAEgASgLMi8uZ29vZ2xlLmFwaS5zZX' + 'J2aWNlbWFuYWdlbWVudC52MS5NYW5hZ2VkU2VydmljZUID4EECUgdzZXJ2aWNl'); + @$core.Deprecated('Use deleteServiceRequestDescriptor instead') const DeleteServiceRequest$json = { '1': 'DeleteServiceRequest', @@ -95,7 +110,9 @@ const DeleteServiceRequest$json = { /// Descriptor for `DeleteServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteServiceRequestDescriptor = $convert.base64Decode( - 'ChREZWxldGVTZXJ2aWNlUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAlILc2VydmljZU5hbWU='); + 'ChREZWxldGVTZXJ2aWNlUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAlILc2Vydm' + 'ljZU5hbWU='); + @$core.Deprecated('Use undeleteServiceRequestDescriptor instead') const UndeleteServiceRequest$json = { '1': 'UndeleteServiceRequest', @@ -107,7 +124,9 @@ const UndeleteServiceRequest$json = { /// Descriptor for `UndeleteServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List undeleteServiceRequestDescriptor = $convert.base64Decode( - 'ChZVbmRlbGV0ZVNlcnZpY2VSZXF1ZXN0EiYKDHNlcnZpY2VfbmFtZRgBIAEoCUID4EECUgtzZXJ2aWNlTmFtZQ=='); + 'ChZVbmRlbGV0ZVNlcnZpY2VSZXF1ZXN0EiYKDHNlcnZpY2VfbmFtZRgBIAEoCUID4EECUgtzZX' + 'J2aWNlTmFtZQ=='); + @$core.Deprecated('Use undeleteServiceResponseDescriptor instead') const UndeleteServiceResponse$json = { '1': 'UndeleteServiceResponse', @@ -126,7 +145,9 @@ const UndeleteServiceResponse$json = { /// Descriptor for `UndeleteServiceResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List undeleteServiceResponseDescriptor = $convert.base64Decode( - 'ChdVbmRlbGV0ZVNlcnZpY2VSZXNwb25zZRJJCgdzZXJ2aWNlGAEgASgLMi8uZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5NYW5hZ2VkU2VydmljZVIHc2VydmljZQ=='); + 'ChdVbmRlbGV0ZVNlcnZpY2VSZXNwb25zZRJJCgdzZXJ2aWNlGAEgASgLMi8uZ29vZ2xlLmFwaS' + '5zZXJ2aWNlbWFuYWdlbWVudC52MS5NYW5hZ2VkU2VydmljZVIHc2VydmljZQ=='); + @$core.Deprecated('Use getServiceConfigRequestDescriptor instead') const GetServiceConfigRequest$json = { '1': 'GetServiceConfigRequest', @@ -156,9 +177,13 @@ const GetServiceConfigRequest_ConfigView$json = { }; /// Descriptor for `GetServiceConfigRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getServiceConfigRequestDescriptor = - $convert.base64Decode( - 'ChdHZXRTZXJ2aWNlQ29uZmlnUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAlILc2VydmljZU5hbWUSIAoJY29uZmlnX2lkGAIgASgJQgPgQQJSCGNvbmZpZ0lkElcKBHZpZXcYAyABKA4yQy5nb29nbGUuYXBpLnNlcnZpY2VtYW5hZ2VtZW50LnYxLkdldFNlcnZpY2VDb25maWdSZXF1ZXN0LkNvbmZpZ1ZpZXdSBHZpZXciIQoKQ29uZmlnVmlldxIJCgVCQVNJQxAAEggKBEZVTEwQAQ=='); +final $typed_data.Uint8List getServiceConfigRequestDescriptor = $convert.base64Decode( + 'ChdHZXRTZXJ2aWNlQ29uZmlnUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAlILc2' + 'VydmljZU5hbWUSIAoJY29uZmlnX2lkGAIgASgJQgPgQQJSCGNvbmZpZ0lkElcKBHZpZXcYAyAB' + 'KA4yQy5nb29nbGUuYXBpLnNlcnZpY2VtYW5hZ2VtZW50LnYxLkdldFNlcnZpY2VDb25maWdSZX' + 'F1ZXN0LkNvbmZpZ1ZpZXdSBHZpZXciIQoKQ29uZmlnVmlldxIJCgVCQVNJQxAAEggKBEZVTEwQ' + 'AQ=='); + @$core.Deprecated('Use listServiceConfigsRequestDescriptor instead') const ListServiceConfigsRequest$json = { '1': 'ListServiceConfigsRequest', @@ -170,9 +195,11 @@ const ListServiceConfigsRequest$json = { }; /// Descriptor for `ListServiceConfigsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listServiceConfigsRequestDescriptor = - $convert.base64Decode( - 'ChlMaXN0U2VydmljZUNvbmZpZ3NSZXF1ZXN0EiYKDHNlcnZpY2VfbmFtZRgBIAEoCUID4EECUgtzZXJ2aWNlTmFtZRIdCgpwYWdlX3Rva2VuGAIgASgJUglwYWdlVG9rZW4SGwoJcGFnZV9zaXplGAMgASgFUghwYWdlU2l6ZQ=='); +final $typed_data.Uint8List listServiceConfigsRequestDescriptor = $convert.base64Decode( + 'ChlMaXN0U2VydmljZUNvbmZpZ3NSZXF1ZXN0EiYKDHNlcnZpY2VfbmFtZRgBIAEoCUID4EECUg' + 'tzZXJ2aWNlTmFtZRIdCgpwYWdlX3Rva2VuGAIgASgJUglwYWdlVG9rZW4SGwoJcGFnZV9zaXpl' + 'GAMgASgFUghwYWdlU2l6ZQ=='); + @$core.Deprecated('Use listServiceConfigsResponseDescriptor instead') const ListServiceConfigsResponse$json = { '1': 'ListServiceConfigsResponse', @@ -192,7 +219,10 @@ const ListServiceConfigsResponse$json = { /// Descriptor for `ListServiceConfigsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServiceConfigsResponseDescriptor = $convert.base64Decode( - 'ChpMaXN0U2VydmljZUNvbmZpZ3NSZXNwb25zZRI8Cg9zZXJ2aWNlX2NvbmZpZ3MYASADKAsyEy5nb29nbGUuYXBpLlNlcnZpY2VSDnNlcnZpY2VDb25maWdzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChpMaXN0U2VydmljZUNvbmZpZ3NSZXNwb25zZRI8Cg9zZXJ2aWNlX2NvbmZpZ3MYASADKAsyEy' + '5nb29nbGUuYXBpLlNlcnZpY2VSDnNlcnZpY2VDb25maWdzEiYKD25leHRfcGFnZV90b2tlbhgC' + 'IAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use createServiceConfigRequestDescriptor instead') const CreateServiceConfigRequest$json = { '1': 'CreateServiceConfigRequest', @@ -213,7 +243,10 @@ const CreateServiceConfigRequest$json = { /// Descriptor for `CreateServiceConfigRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createServiceConfigRequestDescriptor = $convert.base64Decode( - 'ChpDcmVhdGVTZXJ2aWNlQ29uZmlnUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAlILc2VydmljZU5hbWUSPwoOc2VydmljZV9jb25maWcYAiABKAsyEy5nb29nbGUuYXBpLlNlcnZpY2VCA+BBAlINc2VydmljZUNvbmZpZw=='); + 'ChpDcmVhdGVTZXJ2aWNlQ29uZmlnUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAl' + 'ILc2VydmljZU5hbWUSPwoOc2VydmljZV9jb25maWcYAiABKAsyEy5nb29nbGUuYXBpLlNlcnZp' + 'Y2VCA+BBAlINc2VydmljZUNvbmZpZw=='); + @$core.Deprecated('Use submitConfigSourceRequestDescriptor instead') const SubmitConfigSourceRequest$json = { '1': 'SubmitConfigSourceRequest', @@ -240,9 +273,12 @@ const SubmitConfigSourceRequest$json = { }; /// Descriptor for `SubmitConfigSourceRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List submitConfigSourceRequestDescriptor = - $convert.base64Decode( - 'ChlTdWJtaXRDb25maWdTb3VyY2VSZXF1ZXN0EiYKDHNlcnZpY2VfbmFtZRgBIAEoCUID4EECUgtzZXJ2aWNlTmFtZRJXCg1jb25maWdfc291cmNlGAIgASgLMi0uZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5Db25maWdTb3VyY2VCA+BBAlIMY29uZmlnU291cmNlEigKDXZhbGlkYXRlX29ubHkYAyABKAhCA+BBAVIMdmFsaWRhdGVPbmx5'); +final $typed_data.Uint8List submitConfigSourceRequestDescriptor = $convert.base64Decode( + 'ChlTdWJtaXRDb25maWdTb3VyY2VSZXF1ZXN0EiYKDHNlcnZpY2VfbmFtZRgBIAEoCUID4EECUg' + 'tzZXJ2aWNlTmFtZRJXCg1jb25maWdfc291cmNlGAIgASgLMi0uZ29vZ2xlLmFwaS5zZXJ2aWNl' + 'bWFuYWdlbWVudC52MS5Db25maWdTb3VyY2VCA+BBAlIMY29uZmlnU291cmNlEigKDXZhbGlkYX' + 'RlX29ubHkYAyABKAhCA+BBAVIMdmFsaWRhdGVPbmx5'); + @$core.Deprecated('Use submitConfigSourceResponseDescriptor instead') const SubmitConfigSourceResponse$json = { '1': 'SubmitConfigSourceResponse', @@ -261,7 +297,9 @@ const SubmitConfigSourceResponse$json = { /// Descriptor for `SubmitConfigSourceResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List submitConfigSourceResponseDescriptor = $convert.base64Decode( - 'ChpTdWJtaXRDb25maWdTb3VyY2VSZXNwb25zZRI6Cg5zZXJ2aWNlX2NvbmZpZxgBIAEoCzITLmdvb2dsZS5hcGkuU2VydmljZVINc2VydmljZUNvbmZpZw=='); + 'ChpTdWJtaXRDb25maWdTb3VyY2VSZXNwb25zZRI6Cg5zZXJ2aWNlX2NvbmZpZxgBIAEoCzITLm' + 'dvb2dsZS5hcGkuU2VydmljZVINc2VydmljZUNvbmZpZw=='); + @$core.Deprecated('Use createServiceRolloutRequestDescriptor instead') const CreateServiceRolloutRequest$json = { '1': 'CreateServiceRolloutRequest', @@ -282,7 +320,10 @@ const CreateServiceRolloutRequest$json = { /// Descriptor for `CreateServiceRolloutRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createServiceRolloutRequestDescriptor = $convert.base64Decode( - 'ChtDcmVhdGVTZXJ2aWNlUm9sbG91dFJlcXVlc3QSJgoMc2VydmljZV9uYW1lGAEgASgJQgPgQQJSC3NlcnZpY2VOYW1lEkcKB3JvbGxvdXQYAiABKAsyKC5nb29nbGUuYXBpLnNlcnZpY2VtYW5hZ2VtZW50LnYxLlJvbGxvdXRCA+BBAlIHcm9sbG91dA=='); + 'ChtDcmVhdGVTZXJ2aWNlUm9sbG91dFJlcXVlc3QSJgoMc2VydmljZV9uYW1lGAEgASgJQgPgQQ' + 'JSC3NlcnZpY2VOYW1lEkcKB3JvbGxvdXQYAiABKAsyKC5nb29nbGUuYXBpLnNlcnZpY2VtYW5h' + 'Z2VtZW50LnYxLlJvbGxvdXRCA+BBAlIHcm9sbG91dA=='); + @$core.Deprecated('Use listServiceRolloutsRequestDescriptor instead') const ListServiceRolloutsRequest$json = { '1': 'ListServiceRolloutsRequest', @@ -297,7 +338,10 @@ const ListServiceRolloutsRequest$json = { /// Descriptor for `ListServiceRolloutsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServiceRolloutsRequestDescriptor = $convert.base64Decode( - 'ChpMaXN0U2VydmljZVJvbGxvdXRzUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAlILc2VydmljZU5hbWUSHQoKcGFnZV90b2tlbhgCIAEoCVIJcGFnZVRva2VuEhsKCXBhZ2Vfc2l6ZRgDIAEoBVIIcGFnZVNpemUSGwoGZmlsdGVyGAQgASgJQgPgQQJSBmZpbHRlcg=='); + 'ChpMaXN0U2VydmljZVJvbGxvdXRzUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAl' + 'ILc2VydmljZU5hbWUSHQoKcGFnZV90b2tlbhgCIAEoCVIJcGFnZVRva2VuEhsKCXBhZ2Vfc2l6' + 'ZRgDIAEoBVIIcGFnZVNpemUSGwoGZmlsdGVyGAQgASgJQgPgQQJSBmZpbHRlcg=='); + @$core.Deprecated('Use listServiceRolloutsResponseDescriptor instead') const ListServiceRolloutsResponse$json = { '1': 'ListServiceRolloutsResponse', @@ -317,7 +361,10 @@ const ListServiceRolloutsResponse$json = { /// Descriptor for `ListServiceRolloutsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServiceRolloutsResponseDescriptor = $convert.base64Decode( - 'ChtMaXN0U2VydmljZVJvbGxvdXRzUmVzcG9uc2USRAoIcm9sbG91dHMYASADKAsyKC5nb29nbGUuYXBpLnNlcnZpY2VtYW5hZ2VtZW50LnYxLlJvbGxvdXRSCHJvbGxvdXRzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChtMaXN0U2VydmljZVJvbGxvdXRzUmVzcG9uc2USRAoIcm9sbG91dHMYASADKAsyKC5nb29nbG' + 'UuYXBpLnNlcnZpY2VtYW5hZ2VtZW50LnYxLlJvbGxvdXRSCHJvbGxvdXRzEiYKD25leHRfcGFn' + 'ZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use getServiceRolloutRequestDescriptor instead') const GetServiceRolloutRequest$json = { '1': 'GetServiceRolloutRequest', @@ -330,19 +377,9 @@ const GetServiceRolloutRequest$json = { /// Descriptor for `GetServiceRolloutRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getServiceRolloutRequestDescriptor = $convert.base64Decode( - 'ChhHZXRTZXJ2aWNlUm9sbG91dFJlcXVlc3QSJgoMc2VydmljZV9uYW1lGAEgASgJQgPgQQJSC3NlcnZpY2VOYW1lEiIKCnJvbGxvdXRfaWQYAiABKAlCA+BBAlIJcm9sbG91dElk'); -@$core.Deprecated('Use enableServiceRequestDescriptor instead') -const EnableServiceRequest$json = { - '1': 'EnableServiceRequest', - '2': [ - {'1': 'service_name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'serviceName'}, - {'1': 'consumer_id', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'consumerId'}, - ], -}; + 'ChhHZXRTZXJ2aWNlUm9sbG91dFJlcXVlc3QSJgoMc2VydmljZV9uYW1lGAEgASgJQgPgQQJSC3' + 'NlcnZpY2VOYW1lEiIKCnJvbGxvdXRfaWQYAiABKAlCA+BBAlIJcm9sbG91dElk'); -/// Descriptor for `EnableServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List enableServiceRequestDescriptor = $convert.base64Decode( - 'ChRFbmFibGVTZXJ2aWNlUmVxdWVzdBImCgxzZXJ2aWNlX25hbWUYASABKAlCA+BBAlILc2VydmljZU5hbWUSJAoLY29uc3VtZXJfaWQYAiABKAlCA+BBAlIKY29uc3VtZXJJZA=='); @$core.Deprecated('Use enableServiceResponseDescriptor instead') const EnableServiceResponse$json = { '1': 'EnableServiceResponse', @@ -351,26 +388,7 @@ const EnableServiceResponse$json = { /// Descriptor for `EnableServiceResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List enableServiceResponseDescriptor = $convert.base64Decode('ChVFbmFibGVTZXJ2aWNlUmVzcG9uc2U='); -@$core.Deprecated('Use disableServiceRequestDescriptor instead') -const DisableServiceRequest$json = { - '1': 'DisableServiceRequest', - '2': [ - {'1': 'service_name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'serviceName'}, - {'1': 'consumer_id', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'consumerId'}, - ], -}; -/// Descriptor for `DisableServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List disableServiceRequestDescriptor = $convert.base64Decode( - 'ChVEaXNhYmxlU2VydmljZVJlcXVlc3QSJgoMc2VydmljZV9uYW1lGAEgASgJQgPgQQJSC3NlcnZpY2VOYW1lEiQKC2NvbnN1bWVyX2lkGAIgASgJQgPgQQJSCmNvbnN1bWVySWQ='); -@$core.Deprecated('Use disableServiceResponseDescriptor instead') -const DisableServiceResponse$json = { - '1': 'DisableServiceResponse', -}; - -/// Descriptor for `DisableServiceResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List disableServiceResponseDescriptor = - $convert.base64Decode('ChZEaXNhYmxlU2VydmljZVJlc3BvbnNl'); @$core.Deprecated('Use generateConfigReportRequestDescriptor instead') const GenerateConfigReportRequest$json = { '1': 'GenerateConfigReportRequest', @@ -399,7 +417,10 @@ const GenerateConfigReportRequest$json = { /// Descriptor for `GenerateConfigReportRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List generateConfigReportRequestDescriptor = $convert.base64Decode( - 'ChtHZW5lcmF0ZUNvbmZpZ1JlcG9ydFJlcXVlc3QSOAoKbmV3X2NvbmZpZxgBIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlCA+BBAlIJbmV3Q29uZmlnEjgKCm9sZF9jb25maWcYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55QgPgQQFSCW9sZENvbmZpZw=='); + 'ChtHZW5lcmF0ZUNvbmZpZ1JlcG9ydFJlcXVlc3QSOAoKbmV3X2NvbmZpZxgBIAEoCzIULmdvb2' + 'dsZS5wcm90b2J1Zi5BbnlCA+BBAlIJbmV3Q29uZmlnEjgKCm9sZF9jb25maWcYAiABKAsyFC5n' + 'b29nbGUucHJvdG9idWYuQW55QgPgQQFSCW9sZENvbmZpZw=='); + @$core.Deprecated('Use generateConfigReportResponseDescriptor instead') const GenerateConfigReportResponse$json = { '1': 'GenerateConfigReportResponse', @@ -426,6 +447,9 @@ const GenerateConfigReportResponse$json = { }; /// Descriptor for `GenerateConfigReportResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List generateConfigReportResponseDescriptor = - $convert.base64Decode( - 'ChxHZW5lcmF0ZUNvbmZpZ1JlcG9ydFJlc3BvbnNlEiEKDHNlcnZpY2VfbmFtZRgBIAEoCVILc2VydmljZU5hbWUSDgoCaWQYAiABKAlSAmlkElQKDmNoYW5nZV9yZXBvcnRzGAMgAygLMi0uZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5DaGFuZ2VSZXBvcnRSDWNoYW5nZVJlcG9ydHMSTQoLZGlhZ25vc3RpY3MYBCADKAsyKy5nb29nbGUuYXBpLnNlcnZpY2VtYW5hZ2VtZW50LnYxLkRpYWdub3N0aWNSC2RpYWdub3N0aWNz'); +final $typed_data.Uint8List generateConfigReportResponseDescriptor = $convert.base64Decode( + 'ChxHZW5lcmF0ZUNvbmZpZ1JlcG9ydFJlc3BvbnNlEiEKDHNlcnZpY2VfbmFtZRgBIAEoCVILc2' + 'VydmljZU5hbWUSDgoCaWQYAiABKAlSAmlkElQKDmNoYW5nZV9yZXBvcnRzGAMgAygLMi0uZ29v' + 'Z2xlLmFwaS5zZXJ2aWNlbWFuYWdlbWVudC52MS5DaGFuZ2VSZXBvcnRSDWNoYW5nZVJlcG9ydH' + 'MSTQoLZGlhZ25vc3RpY3MYBCADKAsyKy5nb29nbGUuYXBpLnNlcnZpY2VtYW5hZ2VtZW50LnYx' + 'LkRpYWdub3N0aWNSC2RpYWdub3N0aWNz'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pb.dart index 88a4feef..2fe7b31d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pb.dart @@ -1,83 +1,76 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1/resources.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/api.pb.dart' as $0; -import '../../documentation.pb.dart' as $1; -import '../../quota.pb.dart' as $2; -import '../../auth.pb.dart' as $3; -import '../../usage.pb.dart' as $4; -import '../../endpoint.pb.dart' as $5; -import '../../monitored_resource.pb.dart' as $6; -import '../../monitoring.pb.dart' as $7; - +import '../../../protobuf/api.pb.dart' as $84; +import '../../auth.pb.dart' as $88; +import '../../documentation.pb.dart' as $85; +import '../../endpoint.pb.dart' as $91; +import '../../monitored_resource.pb.dart' as $67; +import '../../monitoring.pb.dart' as $96; +import '../../quota.pb.dart' as $87; +import '../../usage.pb.dart' as $90; import 'resources.pbenum.dart'; export 'resources.pbenum.dart'; +/// A service that is available for use by the consumer. class Service extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Service', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'config', - subBuilder: ServiceConfig.create) - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', - $pb.PbFieldType.OE, - defaultOrMaker: State.STATE_UNSPECIFIED, - valueOf: State.valueOf, - enumValues: State.values) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'parent') - ..hasRequiredFields = false; - - Service._() : super(); factory Service({ $core.String? name, ServiceConfig? config, State? state, $core.String? parent, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (config != null) { - _result.config = config; + $result.config = config; } if (state != null) { - _result.state = state; + $result.state = state; } if (parent != null) { - _result.parent = parent; + $result.parent = parent; } - return _result; + return $result; } + Service._() : super(); factory Service.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Service.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Service', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM(2, _omitFieldNames ? '' : 'config', + subBuilder: ServiceConfig.create) + ..e(4, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: State.STATE_UNSPECIFIED, + valueOf: State.valueOf, + enumValues: State.values) + ..aOS(5, _omitFieldNames ? '' : 'parent') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -86,9 +79,10 @@ class Service extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Service copyWith(void Function(Service) updates) => - super.copyWith((message) => updates(message as Service)) - as Service; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Service)) as Service; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Service create() => Service._(); Service createEmptyInstance() => create(); @@ -98,6 +92,10 @@ class Service extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Service? _defaultInstance; + /// The resource name of the consumer and service. + /// + /// A valid name would be: + /// - projects/123/services/serviceusage.googleapis.com @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -110,6 +108,10 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The service configuration of the available service. + /// Some fields may be filtered out of the configuration in responses to + /// the `ListServices` method. These fields are present only in responses to + /// the `GetService` method. @$pb.TagNumber(2) ServiceConfig get config => $_getN(1); @$pb.TagNumber(2) @@ -124,6 +126,7 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(2) ServiceConfig ensureConfig() => $_ensure(1); + /// Whether or not the service has been enabled for use by the consumer. @$pb.TagNumber(4) State get state => $_getN(2); @$pb.TagNumber(4) @@ -136,6 +139,10 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearState() => clearField(4); + /// The resource name of the consumer. + /// + /// A valid name would be: + /// - projects/123 @$pb.TagNumber(5) $core.String get parent => $_getSZ(3); @$pb.TagNumber(5) @@ -149,91 +156,88 @@ class Service extends $pb.GeneratedMessage { void clearParent() => clearField(5); } +/// The configuration of the service. class ServiceConfig extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ServiceConfig', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'title') - ..pc<$0.Api>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apis', $pb.PbFieldType.PM, - subBuilder: $0.Api.create) - ..aOM<$1.Documentation>( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'documentation', - subBuilder: $1.Documentation.create) - ..aOM<$2.Quota>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'quota', subBuilder: $2.Quota.create) - ..aOM<$3.Authentication>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authentication', subBuilder: $3.Authentication.create) - ..aOM<$4.Usage>(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'usage', subBuilder: $4.Usage.create) - ..pc<$5.Endpoint>(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endpoints', $pb.PbFieldType.PM, subBuilder: $5.Endpoint.create) - ..pc<$6.MonitoredResourceDescriptor>(25, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'monitoredResources', $pb.PbFieldType.PM, subBuilder: $6.MonitoredResourceDescriptor.create) - ..aOM<$7.Monitoring>(28, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'monitoring', subBuilder: $7.Monitoring.create) - ..hasRequiredFields = false; - - ServiceConfig._() : super(); factory ServiceConfig({ $core.String? name, $core.String? title, - $core.Iterable<$0.Api>? apis, - $1.Documentation? documentation, - $2.Quota? quota, - $3.Authentication? authentication, - $4.Usage? usage, - $core.Iterable<$5.Endpoint>? endpoints, - $core.Iterable<$6.MonitoredResourceDescriptor>? monitoredResources, - $7.Monitoring? monitoring, + $core.Iterable<$84.Api>? apis, + $85.Documentation? documentation, + $87.Quota? quota, + $88.Authentication? authentication, + $90.Usage? usage, + $core.Iterable<$91.Endpoint>? endpoints, + $core.Iterable<$67.MonitoredResourceDescriptor>? monitoredResources, + $96.Monitoring? monitoring, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (title != null) { - _result.title = title; + $result.title = title; } if (apis != null) { - _result.apis.addAll(apis); + $result.apis.addAll(apis); } if (documentation != null) { - _result.documentation = documentation; + $result.documentation = documentation; } if (quota != null) { - _result.quota = quota; + $result.quota = quota; } if (authentication != null) { - _result.authentication = authentication; + $result.authentication = authentication; } if (usage != null) { - _result.usage = usage; + $result.usage = usage; } if (endpoints != null) { - _result.endpoints.addAll(endpoints); + $result.endpoints.addAll(endpoints); } if (monitoredResources != null) { - _result.monitoredResources.addAll(monitoredResources); + $result.monitoredResources.addAll(monitoredResources); } if (monitoring != null) { - _result.monitoring = monitoring; + $result.monitoring = monitoring; } - return _result; + return $result; } + ServiceConfig._() : super(); factory ServiceConfig.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ServiceConfig.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ServiceConfig', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'title') + ..pc<$84.Api>(3, _omitFieldNames ? '' : 'apis', $pb.PbFieldType.PM, + subBuilder: $84.Api.create) + ..aOM<$85.Documentation>(6, _omitFieldNames ? '' : 'documentation', + subBuilder: $85.Documentation.create) + ..aOM<$87.Quota>(10, _omitFieldNames ? '' : 'quota', + subBuilder: $87.Quota.create) + ..aOM<$88.Authentication>(11, _omitFieldNames ? '' : 'authentication', + subBuilder: $88.Authentication.create) + ..aOM<$90.Usage>(15, _omitFieldNames ? '' : 'usage', + subBuilder: $90.Usage.create) + ..pc<$91.Endpoint>( + 18, _omitFieldNames ? '' : 'endpoints', $pb.PbFieldType.PM, + subBuilder: $91.Endpoint.create) + ..pc<$67.MonitoredResourceDescriptor>( + 25, _omitFieldNames ? '' : 'monitoredResources', $pb.PbFieldType.PM, + subBuilder: $67.MonitoredResourceDescriptor.create) + ..aOM<$96.Monitoring>(28, _omitFieldNames ? '' : 'monitoring', + subBuilder: $96.Monitoring.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') @@ -243,8 +247,10 @@ class ServiceConfig extends $pb.GeneratedMessage { 'Will be removed in next major version') ServiceConfig copyWith(void Function(ServiceConfig) updates) => super.copyWith((message) => updates(message as ServiceConfig)) - as ServiceConfig; // ignore: deprecated_member_use + as ServiceConfig; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ServiceConfig create() => ServiceConfig._(); ServiceConfig createEmptyInstance() => create(); @@ -255,6 +261,10 @@ class ServiceConfig extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ServiceConfig? _defaultInstance; + /// The DNS address at which this service is available. + /// + /// An example DNS address would be: + /// `calendar.googleapis.com`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -267,6 +277,7 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The product title for this service. @$pb.TagNumber(2) $core.String get title => $_getSZ(1); @$pb.TagNumber(2) @@ -279,13 +290,17 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearTitle() => clearField(2); + /// A list of API interfaces exported by this service. Contains only the names, + /// versions, and method names of the interfaces. @$pb.TagNumber(3) - $core.List<$0.Api> get apis => $_getList(2); + $core.List<$84.Api> get apis => $_getList(2); + /// Additional API documentation. Contains only the summary and the + /// documentation URL. @$pb.TagNumber(6) - $1.Documentation get documentation => $_getN(3); + $85.Documentation get documentation => $_getN(3); @$pb.TagNumber(6) - set documentation($1.Documentation v) { + set documentation($85.Documentation v) { setField(6, v); } @@ -294,12 +309,13 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearDocumentation() => clearField(6); @$pb.TagNumber(6) - $1.Documentation ensureDocumentation() => $_ensure(3); + $85.Documentation ensureDocumentation() => $_ensure(3); + /// Quota configuration. @$pb.TagNumber(10) - $2.Quota get quota => $_getN(4); + $87.Quota get quota => $_getN(4); @$pb.TagNumber(10) - set quota($2.Quota v) { + set quota($87.Quota v) { setField(10, v); } @@ -308,12 +324,13 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearQuota() => clearField(10); @$pb.TagNumber(10) - $2.Quota ensureQuota() => $_ensure(4); + $87.Quota ensureQuota() => $_ensure(4); + /// Auth configuration. Contains only the OAuth rules. @$pb.TagNumber(11) - $3.Authentication get authentication => $_getN(5); + $88.Authentication get authentication => $_getN(5); @$pb.TagNumber(11) - set authentication($3.Authentication v) { + set authentication($88.Authentication v) { setField(11, v); } @@ -322,12 +339,13 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearAuthentication() => clearField(11); @$pb.TagNumber(11) - $3.Authentication ensureAuthentication() => $_ensure(5); + $88.Authentication ensureAuthentication() => $_ensure(5); + /// Configuration controlling usage of this service. @$pb.TagNumber(15) - $4.Usage get usage => $_getN(6); + $90.Usage get usage => $_getN(6); @$pb.TagNumber(15) - set usage($4.Usage v) { + set usage($90.Usage v) { setField(15, v); } @@ -336,19 +354,26 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearUsage() => clearField(15); @$pb.TagNumber(15) - $4.Usage ensureUsage() => $_ensure(6); + $90.Usage ensureUsage() => $_ensure(6); + /// Configuration for network endpoints. Contains only the names and aliases + /// of the endpoints. @$pb.TagNumber(18) - $core.List<$5.Endpoint> get endpoints => $_getList(7); + $core.List<$91.Endpoint> get endpoints => $_getList(7); + /// Defines the monitored resources used by this service. This is required + /// by the [Service.monitoring][google.api.Service.monitoring] and + /// [Service.logging][google.api.Service.logging] configurations. @$pb.TagNumber(25) - $core.List<$6.MonitoredResourceDescriptor> get monitoredResources => + $core.List<$67.MonitoredResourceDescriptor> get monitoredResources => $_getList(8); + /// Monitoring configuration. + /// This should not include the 'producer_destinations' field. @$pb.TagNumber(28) - $7.Monitoring get monitoring => $_getN(9); + $96.Monitoring get monitoring => $_getN(9); @$pb.TagNumber(28) - set monitoring($7.Monitoring v) { + set monitoring($96.Monitoring v) { setField(28, v); } @@ -357,42 +382,36 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(28) void clearMonitoring() => clearField(28); @$pb.TagNumber(28) - $7.Monitoring ensureMonitoring() => $_ensure(9); + $96.Monitoring ensureMonitoring() => $_ensure(9); } +/// The operation metadata returned for the batchend services operation. class OperationMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OperationMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resourceNames') - ..hasRequiredFields = false; - - OperationMetadata._() : super(); factory OperationMetadata({ $core.Iterable<$core.String>? resourceNames, }) { - final _result = create(); + final $result = create(); if (resourceNames != null) { - _result.resourceNames.addAll(resourceNames); + $result.resourceNames.addAll(resourceNames); } - return _result; + return $result; } + OperationMetadata._() : super(); factory OperationMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OperationMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OperationMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..pPS(2, _omitFieldNames ? '' : 'resourceNames') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -402,8 +421,10 @@ class OperationMetadata extends $pb.GeneratedMessage { 'Will be removed in next major version') OperationMetadata copyWith(void Function(OperationMetadata) updates) => super.copyWith((message) => updates(message as OperationMetadata)) - as OperationMetadata; // ignore: deprecated_member_use + as OperationMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OperationMetadata create() => OperationMetadata._(); OperationMetadata createEmptyInstance() => create(); @@ -414,6 +435,12 @@ class OperationMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static OperationMetadata? _defaultInstance; + /// The full name of the resources that this operation is directly + /// associated with. @$pb.TagNumber(2) $core.List<$core.String> get resourceNames => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pbenum.dart index 166c7816..ed4a4f15 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pbenum.dart @@ -1,24 +1,24 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1/resources.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Whether or not a service has been enabled for use by a consumer. class State extends $pb.ProtobufEnum { - static const State STATE_UNSPECIFIED = State._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STATE_UNSPECIFIED'); - static const State DISABLED = State._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DISABLED'); - static const State ENABLED = State._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ENABLED'); + static const State STATE_UNSPECIFIED = + State._(0, _omitEnumNames ? '' : 'STATE_UNSPECIFIED'); + static const State DISABLED = State._(1, _omitEnumNames ? '' : 'DISABLED'); + static const State ENABLED = State._(2, _omitEnumNames ? '' : 'ENABLED'); static const $core.List values = [ STATE_UNSPECIFIED, @@ -32,3 +32,5 @@ class State extends $pb.ProtobufEnum { const State._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pbjson.dart index 02ed8df0..528e83d1 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/resources.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1/resources.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 stateDescriptor instead') @@ -21,7 +25,9 @@ const State$json = { /// Descriptor for `State`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List stateDescriptor = $convert.base64Decode( - 'CgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgwKCERJU0FCTEVEEAESCwoHRU5BQkxFRBAC'); + 'CgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgwKCERJU0FCTEVEEAESCwoHRU5BQkxFRB' + 'AC'); + @$core.Deprecated('Use serviceDescriptor instead') const Service$json = { '1': 'Service', @@ -45,11 +51,19 @@ const Service$json = { '10': 'state' }, ], + '7': {}, }; /// Descriptor for `Service`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceDescriptor = $convert.base64Decode( - 'CgdTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSFgoGcGFyZW50GAUgASgJUgZwYXJlbnQSQQoGY29uZmlnGAIgASgLMikuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjEuU2VydmljZUNvbmZpZ1IGY29uZmlnEjcKBXN0YXRlGAQgASgOMiEuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjEuU3RhdGVSBXN0YXRl'); + 'CgdTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSFgoGcGFyZW50GAUgASgJUgZwYXJlbnQSQQ' + 'oGY29uZmlnGAIgASgLMikuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjEuU2VydmljZUNvbmZp' + 'Z1IGY29uZmlnEjcKBXN0YXRlGAQgASgOMiEuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjEuU3' + 'RhdGVSBXN0YXRlOqYB6kGiAQojc2VydmljZXVzYWdlLmdvb2dsZWFwaXMuY29tL1NlcnZpY2US' + 'JXByb2plY3RzL3twcm9qZWN0fS9zZXJ2aWNlcy97c2VydmljZX0SI2ZvbGRlcnMve2ZvbGRlcn' + '0vc2VydmljZXMve3NlcnZpY2V9Ei9vcmdhbml6YXRpb25zL3tvcmdhbml6YXRpb259L3NlcnZp' + 'Y2VzL3tzZXJ2aWNlfQ=='); + @$core.Deprecated('Use serviceConfigDescriptor instead') const ServiceConfig$json = { '1': 'ServiceConfig', @@ -125,7 +139,17 @@ const ServiceConfig$json = { /// Descriptor for `ServiceConfig`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceConfigDescriptor = $convert.base64Decode( - 'Cg1TZXJ2aWNlQ29uZmlnEhIKBG5hbWUYASABKAlSBG5hbWUSFAoFdGl0bGUYAiABKAlSBXRpdGxlEigKBGFwaXMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQXBpUgRhcGlzEj8KDWRvY3VtZW50YXRpb24YBiABKAsyGS5nb29nbGUuYXBpLkRvY3VtZW50YXRpb25SDWRvY3VtZW50YXRpb24SJwoFcXVvdGEYCiABKAsyES5nb29nbGUuYXBpLlF1b3RhUgVxdW90YRJCCg5hdXRoZW50aWNhdGlvbhgLIAEoCzIaLmdvb2dsZS5hcGkuQXV0aGVudGljYXRpb25SDmF1dGhlbnRpY2F0aW9uEicKBXVzYWdlGA8gASgLMhEuZ29vZ2xlLmFwaS5Vc2FnZVIFdXNhZ2USMgoJZW5kcG9pbnRzGBIgAygLMhQuZ29vZ2xlLmFwaS5FbmRwb2ludFIJZW5kcG9pbnRzElgKE21vbml0b3JlZF9yZXNvdXJjZXMYGSADKAsyJy5nb29nbGUuYXBpLk1vbml0b3JlZFJlc291cmNlRGVzY3JpcHRvclISbW9uaXRvcmVkUmVzb3VyY2VzEjYKCm1vbml0b3JpbmcYHCABKAsyFi5nb29nbGUuYXBpLk1vbml0b3JpbmdSCm1vbml0b3Jpbmc='); + 'Cg1TZXJ2aWNlQ29uZmlnEhIKBG5hbWUYASABKAlSBG5hbWUSFAoFdGl0bGUYAiABKAlSBXRpdG' + 'xlEigKBGFwaXMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQXBpUgRhcGlzEj8KDWRvY3VtZW50' + 'YXRpb24YBiABKAsyGS5nb29nbGUuYXBpLkRvY3VtZW50YXRpb25SDWRvY3VtZW50YXRpb24SJw' + 'oFcXVvdGEYCiABKAsyES5nb29nbGUuYXBpLlF1b3RhUgVxdW90YRJCCg5hdXRoZW50aWNhdGlv' + 'bhgLIAEoCzIaLmdvb2dsZS5hcGkuQXV0aGVudGljYXRpb25SDmF1dGhlbnRpY2F0aW9uEicKBX' + 'VzYWdlGA8gASgLMhEuZ29vZ2xlLmFwaS5Vc2FnZVIFdXNhZ2USMgoJZW5kcG9pbnRzGBIgAygL' + 'MhQuZ29vZ2xlLmFwaS5FbmRwb2ludFIJZW5kcG9pbnRzElgKE21vbml0b3JlZF9yZXNvdXJjZX' + 'MYGSADKAsyJy5nb29nbGUuYXBpLk1vbml0b3JlZFJlc291cmNlRGVzY3JpcHRvclISbW9uaXRv' + 'cmVkUmVzb3VyY2VzEjYKCm1vbml0b3JpbmcYHCABKAsyFi5nb29nbGUuYXBpLk1vbml0b3Jpbm' + 'dSCm1vbml0b3Jpbmc='); + @$core.Deprecated('Use operationMetadataDescriptor instead') const OperationMetadata$json = { '1': 'OperationMetadata', @@ -136,4 +160,5 @@ const OperationMetadata$json = { /// Descriptor for `OperationMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List operationMetadataDescriptor = $convert.base64Decode( - 'ChFPcGVyYXRpb25NZXRhZGF0YRIlCg5yZXNvdXJjZV9uYW1lcxgCIAMoCVINcmVzb3VyY2VOYW1lcw=='); + 'ChFPcGVyYXRpb25NZXRhZGF0YRIlCg5yZXNvdXJjZV9uYW1lcxgCIAMoCVINcmVzb3VyY2VOYW' + '1lcw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pb.dart index 73d5705e..86449602 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pb.dart @@ -1,53 +1,50 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1/serviceusage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'resources.pb.dart' as $3; - +import 'resources.pb.dart' as $38; import 'serviceusage.pbenum.dart'; export 'serviceusage.pbenum.dart'; +/// Request message for the `EnableService` method. class EnableServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnableServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - EnableServiceRequest._() : super(); factory EnableServiceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + EnableServiceRequest._() : super(); factory EnableServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EnableServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnableServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -58,8 +55,10 @@ class EnableServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') EnableServiceRequest copyWith(void Function(EnableServiceRequest) updates) => super.copyWith((message) => updates(message as EnableServiceRequest)) - as EnableServiceRequest; // ignore: deprecated_member_use + as EnableServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnableServiceRequest create() => EnableServiceRequest._(); EnableServiceRequest createEmptyInstance() => create(); @@ -70,6 +69,17 @@ class EnableServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EnableServiceRequest? _defaultInstance; + /// Name of the consumer and service to enable the service on. + /// + /// The `EnableService` and `DisableService` methods currently only support + /// projects. + /// + /// Enabling a service requires that the service is public or is shared with + /// the user enabling the service. + /// + /// An example name would be: + /// `projects/123/services/serviceusage.googleapis.com` where `123` is the + /// project number. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -83,40 +93,36 @@ class EnableServiceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Response message for the `EnableService` method. +/// This response message is assigned to the `response` field of the returned +/// Operation when that operation is done. class EnableServiceResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnableServiceResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOM<$3.Service>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'service', - subBuilder: $3.Service.create) - ..hasRequiredFields = false; - - EnableServiceResponse._() : super(); factory EnableServiceResponse({ - $3.Service? service, + $38.Service? service, }) { - final _result = create(); + final $result = create(); if (service != null) { - _result.service = service; + $result.service = service; } - return _result; + return $result; } + EnableServiceResponse._() : super(); factory EnableServiceResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EnableServiceResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnableServiceResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOM<$38.Service>(1, _omitFieldNames ? '' : 'service', + subBuilder: $38.Service.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') @@ -128,8 +134,10 @@ class EnableServiceResponse extends $pb.GeneratedMessage { EnableServiceResponse copyWith( void Function(EnableServiceResponse) updates) => super.copyWith((message) => updates(message as EnableServiceResponse)) - as EnableServiceResponse; // ignore: deprecated_member_use + as EnableServiceResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnableServiceResponse create() => EnableServiceResponse._(); EnableServiceResponse createEmptyInstance() => create(); @@ -140,10 +148,11 @@ class EnableServiceResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EnableServiceResponse? _defaultInstance; + /// The new state of the service after enabling. @$pb.TagNumber(1) - $3.Service get service => $_getN(0); + $38.Service get service => $_getN(0); @$pb.TagNumber(1) - set service($3.Service v) { + set service($38.Service v) { setField(1, v); } @@ -152,64 +161,51 @@ class EnableServiceResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearService() => clearField(1); @$pb.TagNumber(1) - $3.Service ensureService() => $_ensure(0); + $38.Service ensureService() => $_ensure(0); } +/// Request message for the `DisableService` method. class DisableServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DisableServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'disableDependentServices') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'checkIfServiceHasUsage', - $pb.PbFieldType.OE, - defaultOrMaker: DisableServiceRequest_CheckIfServiceHasUsage.CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED, - valueOf: DisableServiceRequest_CheckIfServiceHasUsage.valueOf, - enumValues: DisableServiceRequest_CheckIfServiceHasUsage.values) - ..hasRequiredFields = false; - - DisableServiceRequest._() : super(); factory DisableServiceRequest({ $core.String? name, $core.bool? disableDependentServices, DisableServiceRequest_CheckIfServiceHasUsage? checkIfServiceHasUsage, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (disableDependentServices != null) { - _result.disableDependentServices = disableDependentServices; + $result.disableDependentServices = disableDependentServices; } if (checkIfServiceHasUsage != null) { - _result.checkIfServiceHasUsage = checkIfServiceHasUsage; + $result.checkIfServiceHasUsage = checkIfServiceHasUsage; } - return _result; + return $result; } + DisableServiceRequest._() : super(); factory DisableServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DisableServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DisableServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOB(2, _omitFieldNames ? '' : 'disableDependentServices') + ..e( + 3, _omitFieldNames ? '' : 'checkIfServiceHasUsage', $pb.PbFieldType.OE, + defaultOrMaker: DisableServiceRequest_CheckIfServiceHasUsage + .CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED, + valueOf: DisableServiceRequest_CheckIfServiceHasUsage.valueOf, + enumValues: DisableServiceRequest_CheckIfServiceHasUsage.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -221,8 +217,10 @@ class DisableServiceRequest extends $pb.GeneratedMessage { DisableServiceRequest copyWith( void Function(DisableServiceRequest) updates) => super.copyWith((message) => updates(message as DisableServiceRequest)) - as DisableServiceRequest; // ignore: deprecated_member_use + as DisableServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DisableServiceRequest create() => DisableServiceRequest._(); DisableServiceRequest createEmptyInstance() => create(); @@ -233,6 +231,13 @@ class DisableServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DisableServiceRequest? _defaultInstance; + /// Name of the consumer and service to disable the service on. + /// + /// The enable and disable methods currently only support projects. + /// + /// An example name would be: + /// `projects/123/services/serviceusage.googleapis.com` where `123` is the + /// project number. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -245,6 +250,11 @@ class DisableServiceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Indicates if services that are enabled and which depend on this service + /// should also be disabled. If not set, an error will be generated if any + /// enabled services depend on the service to be disabled. When set, the + /// service, and any enabled services that depend on it, will be disabled + /// together. @$pb.TagNumber(2) $core.bool get disableDependentServices => $_getBF(1); @$pb.TagNumber(2) @@ -257,6 +267,7 @@ class DisableServiceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDisableDependentServices() => clearField(2); + /// Defines the behavior for checking service usage when disabling a service. @$pb.TagNumber(3) DisableServiceRequest_CheckIfServiceHasUsage get checkIfServiceHasUsage => $_getN(2); @@ -271,40 +282,36 @@ class DisableServiceRequest extends $pb.GeneratedMessage { void clearCheckIfServiceHasUsage() => clearField(3); } +/// Response message for the `DisableService` method. +/// This response message is assigned to the `response` field of the returned +/// Operation when that operation is done. class DisableServiceResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DisableServiceResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOM<$3.Service>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'service', - subBuilder: $3.Service.create) - ..hasRequiredFields = false; - - DisableServiceResponse._() : super(); factory DisableServiceResponse({ - $3.Service? service, + $38.Service? service, }) { - final _result = create(); + final $result = create(); if (service != null) { - _result.service = service; + $result.service = service; } - return _result; + return $result; } + DisableServiceResponse._() : super(); factory DisableServiceResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DisableServiceResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DisableServiceResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOM<$38.Service>(1, _omitFieldNames ? '' : 'service', + subBuilder: $38.Service.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') @@ -316,8 +323,10 @@ class DisableServiceResponse extends $pb.GeneratedMessage { DisableServiceResponse copyWith( void Function(DisableServiceResponse) updates) => super.copyWith((message) => updates(message as DisableServiceResponse)) - as DisableServiceResponse; // ignore: deprecated_member_use + as DisableServiceResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DisableServiceResponse create() => DisableServiceResponse._(); DisableServiceResponse createEmptyInstance() => create(); @@ -328,10 +337,11 @@ class DisableServiceResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DisableServiceResponse? _defaultInstance; + /// The new state of the service after disabling. @$pb.TagNumber(1) - $3.Service get service => $_getN(0); + $38.Service get service => $_getN(0); @$pb.TagNumber(1) - set service($3.Service v) { + set service($38.Service v) { setField(1, v); } @@ -340,42 +350,36 @@ class DisableServiceResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearService() => clearField(1); @$pb.TagNumber(1) - $3.Service ensureService() => $_ensure(0); + $38.Service ensureService() => $_ensure(0); } +/// Request message for the `GetService` method. class GetServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetServiceRequest._() : super(); factory GetServiceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetServiceRequest._() : super(); factory GetServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -385,8 +389,10 @@ class GetServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetServiceRequest copyWith(void Function(GetServiceRequest) updates) => super.copyWith((message) => updates(message as GetServiceRequest)) - as GetServiceRequest; // ignore: deprecated_member_use + as GetServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceRequest create() => GetServiceRequest._(); GetServiceRequest createEmptyInstance() => create(); @@ -397,6 +403,11 @@ class GetServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceRequest? _defaultInstance; + /// Name of the consumer and service to get the `ConsumerState` for. + /// + /// An example name would be: + /// `projects/123/services/serviceusage.googleapis.com` where `123` is the + /// project number. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -410,63 +421,48 @@ class GetServiceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for the `ListServices` method. class ListServicesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServicesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter') - ..hasRequiredFields = false; - - ListServicesRequest._() : super(); factory ListServicesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, $core.String? filter, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } - return _result; + return $result; } + ListServicesRequest._() : super(); factory ListServicesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServicesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServicesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..aOS(4, _omitFieldNames ? '' : 'filter') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -476,8 +472,10 @@ class ListServicesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListServicesRequest copyWith(void Function(ListServicesRequest) updates) => super.copyWith((message) => updates(message as ListServicesRequest)) - as ListServicesRequest; // ignore: deprecated_member_use + as ListServicesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServicesRequest create() => ListServicesRequest._(); ListServicesRequest createEmptyInstance() => create(); @@ -488,6 +486,10 @@ class ListServicesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServicesRequest? _defaultInstance; + /// Parent to search for services on. + /// + /// An example name would be: + /// `projects/123` where `123` is the project number. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -500,6 +502,9 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Requested size of the next page of data. + /// Requested page size cannot exceed 200. + /// If not set, the default page size is 50. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -512,6 +517,8 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Token identifying which result to start with, which is returned by a + /// previous list call. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -524,6 +531,8 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// Only list services that conform to the given filter. + /// The allowed filter strings are `state:ENABLED` and `state:DISABLED`. @$pb.TagNumber(4) $core.String get filter => $_getSZ(3); @$pb.TagNumber(4) @@ -537,47 +546,39 @@ class ListServicesRequest extends $pb.GeneratedMessage { void clearFilter() => clearField(4); } +/// Response message for the `ListServices` method. class ListServicesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServicesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..pc<$3.Service>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'services', - $pb.PbFieldType.PM, - subBuilder: $3.Service.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListServicesResponse._() : super(); factory ListServicesResponse({ - $core.Iterable<$3.Service>? services, + $core.Iterable<$38.Service>? services, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (services != null) { - _result.services.addAll(services); + $result.services.addAll(services); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListServicesResponse._() : super(); factory ListServicesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServicesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServicesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..pc<$38.Service>(1, _omitFieldNames ? '' : 'services', $pb.PbFieldType.PM, + subBuilder: $38.Service.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -588,8 +589,10 @@ class ListServicesResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListServicesResponse copyWith(void Function(ListServicesResponse) updates) => super.copyWith((message) => updates(message as ListServicesResponse)) - as ListServicesResponse; // ignore: deprecated_member_use + as ListServicesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServicesResponse create() => ListServicesResponse._(); ListServicesResponse createEmptyInstance() => create(); @@ -600,9 +603,12 @@ class ListServicesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServicesResponse? _defaultInstance; + /// The available services for the requested project. @$pb.TagNumber(1) - $core.List<$3.Service> get services => $_getList(0); + $core.List<$38.Service> get services => $_getList(0); + /// Token that can be passed to `ListServices` to resume a paginated + /// query. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -616,48 +622,38 @@ class ListServicesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for the `BatchEnableServices` method. class BatchEnableServicesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchEnableServicesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceIds') - ..hasRequiredFields = false; - - BatchEnableServicesRequest._() : super(); factory BatchEnableServicesRequest({ $core.String? parent, $core.Iterable<$core.String>? serviceIds, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (serviceIds != null) { - _result.serviceIds.addAll(serviceIds); + $result.serviceIds.addAll(serviceIds); } - return _result; + return $result; } + BatchEnableServicesRequest._() : super(); factory BatchEnableServicesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BatchEnableServicesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchEnableServicesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..pPS(2, _omitFieldNames ? '' : 'serviceIds') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -670,8 +666,10 @@ class BatchEnableServicesRequest extends $pb.GeneratedMessage { void Function(BatchEnableServicesRequest) updates) => super.copyWith( (message) => updates(message as BatchEnableServicesRequest)) - as BatchEnableServicesRequest; // ignore: deprecated_member_use + as BatchEnableServicesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchEnableServicesRequest create() => BatchEnableServicesRequest._(); BatchEnableServicesRequest createEmptyInstance() => create(); @@ -682,6 +680,12 @@ class BatchEnableServicesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BatchEnableServicesRequest? _defaultInstance; + /// Parent to enable services on. + /// + /// An example name would be: + /// `projects/123` where `123` is the project number. + /// + /// The `BatchEnableServices` method currently only supports projects. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -694,46 +698,37 @@ class BatchEnableServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// The identifiers of the services to enable on the project. + /// + /// A valid identifier would be: + /// serviceusage.googleapis.com + /// + /// Enabling services requires that each service is public or is shared with + /// the user enabling the service. + /// + /// A single request can enable a maximum of 20 services at a time. If more + /// than 20 services are specified, the request will fail, and no state changes + /// will occur. @$pb.TagNumber(2) $core.List<$core.String> get serviceIds => $_getList(1); } +/// Provides error messages for the failing services. class BatchEnableServicesResponse_EnableFailure extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchEnableServicesResponse.EnableFailure', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceId') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'errorMessage') - ..hasRequiredFields = false; - - BatchEnableServicesResponse_EnableFailure._() : super(); factory BatchEnableServicesResponse_EnableFailure({ $core.String? serviceId, $core.String? errorMessage, }) { - final _result = create(); + final $result = create(); if (serviceId != null) { - _result.serviceId = serviceId; + $result.serviceId = serviceId; } if (errorMessage != null) { - _result.errorMessage = errorMessage; + $result.errorMessage = errorMessage; } - return _result; + return $result; } + BatchEnableServicesResponse_EnableFailure._() : super(); factory BatchEnableServicesResponse_EnableFailure.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -741,6 +736,16 @@ class BatchEnableServicesResponse_EnableFailure extends $pb.GeneratedMessage { factory BatchEnableServicesResponse_EnableFailure.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchEnableServicesResponse.EnableFailure', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serviceId') + ..aOS(2, _omitFieldNames ? '' : 'errorMessage') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -753,8 +758,10 @@ class BatchEnableServicesResponse_EnableFailure extends $pb.GeneratedMessage { void Function(BatchEnableServicesResponse_EnableFailure) updates) => super.copyWith((message) => updates(message as BatchEnableServicesResponse_EnableFailure)) - as BatchEnableServicesResponse_EnableFailure; // ignore: deprecated_member_use + as BatchEnableServicesResponse_EnableFailure; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchEnableServicesResponse_EnableFailure create() => BatchEnableServicesResponse_EnableFailure._(); @@ -768,6 +775,7 @@ class BatchEnableServicesResponse_EnableFailure extends $pb.GeneratedMessage { BatchEnableServicesResponse_EnableFailure>(create); static BatchEnableServicesResponse_EnableFailure? _defaultInstance; + /// The service id of a service that could not be enabled. @$pb.TagNumber(1) $core.String get serviceId => $_getSZ(0); @$pb.TagNumber(1) @@ -780,6 +788,7 @@ class BatchEnableServicesResponse_EnableFailure extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearServiceId() => clearField(1); + /// An error message describing why the service could not be enabled. @$pb.TagNumber(2) $core.String get errorMessage => $_getSZ(1); @$pb.TagNumber(2) @@ -793,46 +802,43 @@ class BatchEnableServicesResponse_EnableFailure extends $pb.GeneratedMessage { void clearErrorMessage() => clearField(2); } +/// Response message for the `BatchEnableServices` method. +/// This response message is assigned to the `response` field of the returned +/// Operation when that operation is done. class BatchEnableServicesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchEnableServicesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..pc<$3.Service>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'services', $pb.PbFieldType.PM, - subBuilder: $3.Service.create) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'failures', - $pb.PbFieldType.PM, - subBuilder: BatchEnableServicesResponse_EnableFailure.create) - ..hasRequiredFields = false; - - BatchEnableServicesResponse._() : super(); factory BatchEnableServicesResponse({ - $core.Iterable<$3.Service>? services, + $core.Iterable<$38.Service>? services, $core.Iterable? failures, }) { - final _result = create(); + final $result = create(); if (services != null) { - _result.services.addAll(services); + $result.services.addAll(services); } if (failures != null) { - _result.failures.addAll(failures); + $result.failures.addAll(failures); } - return _result; + return $result; } + BatchEnableServicesResponse._() : super(); factory BatchEnableServicesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BatchEnableServicesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchEnableServicesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..pc<$38.Service>(1, _omitFieldNames ? '' : 'services', $pb.PbFieldType.PM, + subBuilder: $38.Service.create) + ..pc( + 2, _omitFieldNames ? '' : 'failures', $pb.PbFieldType.PM, + subBuilder: BatchEnableServicesResponse_EnableFailure.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') @@ -845,8 +851,10 @@ class BatchEnableServicesResponse extends $pb.GeneratedMessage { void Function(BatchEnableServicesResponse) updates) => super.copyWith( (message) => updates(message as BatchEnableServicesResponse)) - as BatchEnableServicesResponse; // ignore: deprecated_member_use + as BatchEnableServicesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchEnableServicesResponse create() => BatchEnableServicesResponse._(); @@ -858,56 +866,49 @@ class BatchEnableServicesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BatchEnableServicesResponse? _defaultInstance; + /// The new state of the services after enabling. @$pb.TagNumber(1) - $core.List<$3.Service> get services => $_getList(0); + $core.List<$38.Service> get services => $_getList(0); + /// If allow_partial_success is true, and one or more services could not be + /// enabled, this field contains the details about each failure. @$pb.TagNumber(2) $core.List get failures => $_getList(1); } +/// Request message for the `BatchGetServices` method. class BatchGetServicesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchGetServicesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'names') - ..hasRequiredFields = false; - - BatchGetServicesRequest._() : super(); factory BatchGetServicesRequest({ $core.String? parent, $core.Iterable<$core.String>? names, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (names != null) { - _result.names.addAll(names); + $result.names.addAll(names); } - return _result; + return $result; } + BatchGetServicesRequest._() : super(); factory BatchGetServicesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BatchGetServicesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchGetServicesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..pPS(2, _omitFieldNames ? '' : 'names') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -919,8 +920,10 @@ class BatchGetServicesRequest extends $pb.GeneratedMessage { BatchGetServicesRequest copyWith( void Function(BatchGetServicesRequest) updates) => super.copyWith((message) => updates(message as BatchGetServicesRequest)) - as BatchGetServicesRequest; // ignore: deprecated_member_use + as BatchGetServicesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchGetServicesRequest create() => BatchGetServicesRequest._(); BatchGetServicesRequest createEmptyInstance() => create(); @@ -931,6 +934,11 @@ class BatchGetServicesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BatchGetServicesRequest? _defaultInstance; + /// Parent to retrieve services from. + /// If this is set, the parent of all of the services specified in `names` must + /// match this field. An example name would be: `projects/123` where `123` is + /// the project number. The `BatchGetServices` method currently only supports + /// projects. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -943,45 +951,44 @@ class BatchGetServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Names of the services to retrieve. + /// + /// An example name would be: + /// `projects/123/services/serviceusage.googleapis.com` where `123` is the + /// project number. + /// A single request can get a maximum of 30 services at a time. @$pb.TagNumber(2) $core.List<$core.String> get names => $_getList(1); } +/// Response message for the `BatchGetServices` method. class BatchGetServicesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchGetServicesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1'), - createEmptyInstance: create) - ..pc<$3.Service>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'services', - $pb.PbFieldType.PM, - subBuilder: $3.Service.create) - ..hasRequiredFields = false; - - BatchGetServicesResponse._() : super(); factory BatchGetServicesResponse({ - $core.Iterable<$3.Service>? services, + $core.Iterable<$38.Service>? services, }) { - final _result = create(); + final $result = create(); if (services != null) { - _result.services.addAll(services); + $result.services.addAll(services); } - return _result; + return $result; } + BatchGetServicesResponse._() : super(); factory BatchGetServicesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BatchGetServicesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchGetServicesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1'), + createEmptyInstance: create) + ..pc<$38.Service>(1, _omitFieldNames ? '' : 'services', $pb.PbFieldType.PM, + subBuilder: $38.Service.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') @@ -993,8 +1000,10 @@ class BatchGetServicesResponse extends $pb.GeneratedMessage { BatchGetServicesResponse copyWith( void Function(BatchGetServicesResponse) updates) => super.copyWith((message) => updates(message as BatchGetServicesResponse)) - as BatchGetServicesResponse; // ignore: deprecated_member_use + as BatchGetServicesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchGetServicesResponse create() => BatchGetServicesResponse._(); BatchGetServicesResponse createEmptyInstance() => create(); @@ -1005,6 +1014,11 @@ class BatchGetServicesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BatchGetServicesResponse? _defaultInstance; + /// The requested Service states. @$pb.TagNumber(1) - $core.List<$3.Service> get services => $_getList(0); + $core.List<$38.Service> get services => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbenum.dart index 5223ae9e..cce58d68 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbenum.dart @@ -1,31 +1,31 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1/serviceusage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Enum to determine if service usage should be checked when disabling a +/// service. class DisableServiceRequest_CheckIfServiceHasUsage extends $pb.ProtobufEnum { static const DisableServiceRequest_CheckIfServiceHasUsage CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED = DisableServiceRequest_CheckIfServiceHasUsage._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED'); static const DisableServiceRequest_CheckIfServiceHasUsage SKIP = - DisableServiceRequest_CheckIfServiceHasUsage._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SKIP'); + DisableServiceRequest_CheckIfServiceHasUsage._( + 1, _omitEnumNames ? '' : 'SKIP'); static const DisableServiceRequest_CheckIfServiceHasUsage CHECK = DisableServiceRequest_CheckIfServiceHasUsage._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CHECK'); + 2, _omitEnumNames ? '' : 'CHECK'); static const $core.List values = [ @@ -35,8 +35,8 @@ class DisableServiceRequest_CheckIfServiceHasUsage extends $pb.ProtobufEnum { ]; static final $core - .Map<$core.int, DisableServiceRequest_CheckIfServiceHasUsage> - _byValue = $pb.ProtobufEnum.initByValue(values); + .Map<$core.int, DisableServiceRequest_CheckIfServiceHasUsage> _byValue = + $pb.ProtobufEnum.initByValue(values); static DisableServiceRequest_CheckIfServiceHasUsage? valueOf( $core.int value) => _byValue[value]; @@ -45,3 +45,5 @@ class DisableServiceRequest_CheckIfServiceHasUsage extends $pb.ProtobufEnum { $core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbgrpc.dart index 904faa67..acbe53c8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbgrpc.dart @@ -1,53 +1,60 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1/serviceusage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'serviceusage.pb.dart' as $2; +import 'package:protobuf/protobuf.dart' as $pb; + import '../../../longrunning/operations.pb.dart' as $0; -import 'resources.pb.dart' as $3; +import 'resources.pb.dart' as $38; +import 'serviceusage.pb.dart' as $37; + export 'serviceusage.pb.dart'; +@$pb.GrpcServiceName('google.api.serviceusage.v1.ServiceUsage') class ServiceUsageClient extends $grpc.Client { static final _$enableService = - $grpc.ClientMethod<$2.EnableServiceRequest, $0.Operation>( + $grpc.ClientMethod<$37.EnableServiceRequest, $0.Operation>( '/google.api.serviceusage.v1.ServiceUsage/EnableService', - ($2.EnableServiceRequest value) => value.writeToBuffer(), + ($37.EnableServiceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$disableService = - $grpc.ClientMethod<$2.DisableServiceRequest, $0.Operation>( + $grpc.ClientMethod<$37.DisableServiceRequest, $0.Operation>( '/google.api.serviceusage.v1.ServiceUsage/DisableService', - ($2.DisableServiceRequest value) => value.writeToBuffer(), + ($37.DisableServiceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$getService = - $grpc.ClientMethod<$2.GetServiceRequest, $3.Service>( + $grpc.ClientMethod<$37.GetServiceRequest, $38.Service>( '/google.api.serviceusage.v1.ServiceUsage/GetService', - ($2.GetServiceRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.Service.fromBuffer(value)); + ($37.GetServiceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $38.Service.fromBuffer(value)); static final _$listServices = - $grpc.ClientMethod<$2.ListServicesRequest, $2.ListServicesResponse>( + $grpc.ClientMethod<$37.ListServicesRequest, $37.ListServicesResponse>( '/google.api.serviceusage.v1.ServiceUsage/ListServices', - ($2.ListServicesRequest value) => value.writeToBuffer(), + ($37.ListServicesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListServicesResponse.fromBuffer(value)); + $37.ListServicesResponse.fromBuffer(value)); static final _$batchEnableServices = - $grpc.ClientMethod<$2.BatchEnableServicesRequest, $0.Operation>( + $grpc.ClientMethod<$37.BatchEnableServicesRequest, $0.Operation>( '/google.api.serviceusage.v1.ServiceUsage/BatchEnableServices', - ($2.BatchEnableServicesRequest value) => value.writeToBuffer(), + ($37.BatchEnableServicesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$batchGetServices = $grpc.ClientMethod< - $2.BatchGetServicesRequest, $2.BatchGetServicesResponse>( + $37.BatchGetServicesRequest, $37.BatchGetServicesResponse>( '/google.api.serviceusage.v1.ServiceUsage/BatchGetServices', - ($2.BatchGetServicesRequest value) => value.writeToBuffer(), + ($37.BatchGetServicesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.BatchGetServicesResponse.fromBuffer(value)); + $37.BatchGetServicesResponse.fromBuffer(value)); ServiceUsageClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -55,138 +62,141 @@ class ServiceUsageClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); $grpc.ResponseFuture<$0.Operation> enableService( - $2.EnableServiceRequest request, + $37.EnableServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$enableService, request, options: options); } $grpc.ResponseFuture<$0.Operation> disableService( - $2.DisableServiceRequest request, + $37.DisableServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$disableService, request, options: options); } - $grpc.ResponseFuture<$3.Service> getService($2.GetServiceRequest request, + $grpc.ResponseFuture<$38.Service> getService($37.GetServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getService, request, options: options); } - $grpc.ResponseFuture<$2.ListServicesResponse> listServices( - $2.ListServicesRequest request, + $grpc.ResponseFuture<$37.ListServicesResponse> listServices( + $37.ListServicesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listServices, request, options: options); } $grpc.ResponseFuture<$0.Operation> batchEnableServices( - $2.BatchEnableServicesRequest request, + $37.BatchEnableServicesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$batchEnableServices, request, options: options); } - $grpc.ResponseFuture<$2.BatchGetServicesResponse> batchGetServices( - $2.BatchGetServicesRequest request, + $grpc.ResponseFuture<$37.BatchGetServicesResponse> batchGetServices( + $37.BatchGetServicesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$batchGetServices, request, options: options); } } +@$pb.GrpcServiceName('google.api.serviceusage.v1.ServiceUsage') abstract class ServiceUsageServiceBase extends $grpc.Service { $core.String get $name => 'google.api.serviceusage.v1.ServiceUsage'; ServiceUsageServiceBase() { - $addMethod($grpc.ServiceMethod<$2.EnableServiceRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$37.EnableServiceRequest, $0.Operation>( 'EnableService', enableService_Pre, false, false, ($core.List<$core.int> value) => - $2.EnableServiceRequest.fromBuffer(value), + $37.EnableServiceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DisableServiceRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$37.DisableServiceRequest, $0.Operation>( 'DisableService', disableService_Pre, false, false, ($core.List<$core.int> value) => - $2.DisableServiceRequest.fromBuffer(value), + $37.DisableServiceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetServiceRequest, $3.Service>( + $addMethod($grpc.ServiceMethod<$37.GetServiceRequest, $38.Service>( 'GetService', getService_Pre, false, false, - ($core.List<$core.int> value) => $2.GetServiceRequest.fromBuffer(value), - ($3.Service value) => value.writeToBuffer())); + ($core.List<$core.int> value) => + $37.GetServiceRequest.fromBuffer(value), + ($38.Service value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.ListServicesRequest, $2.ListServicesResponse>( + $grpc.ServiceMethod<$37.ListServicesRequest, $37.ListServicesResponse>( 'ListServices', listServices_Pre, false, false, ($core.List<$core.int> value) => - $2.ListServicesRequest.fromBuffer(value), - ($2.ListServicesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.BatchEnableServicesRequest, $0.Operation>( - 'BatchEnableServices', - batchEnableServices_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.BatchEnableServicesRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.BatchGetServicesRequest, - $2.BatchGetServicesResponse>( + $37.ListServicesRequest.fromBuffer(value), + ($37.ListServicesResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$37.BatchEnableServicesRequest, $0.Operation>( + 'BatchEnableServices', + batchEnableServices_Pre, + false, + false, + ($core.List<$core.int> value) => + $37.BatchEnableServicesRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$37.BatchGetServicesRequest, + $37.BatchGetServicesResponse>( 'BatchGetServices', batchGetServices_Pre, false, false, ($core.List<$core.int> value) => - $2.BatchGetServicesRequest.fromBuffer(value), - ($2.BatchGetServicesResponse value) => value.writeToBuffer())); + $37.BatchGetServicesRequest.fromBuffer(value), + ($37.BatchGetServicesResponse value) => value.writeToBuffer())); } $async.Future<$0.Operation> enableService_Pre($grpc.ServiceCall call, - $async.Future<$2.EnableServiceRequest> request) async { + $async.Future<$37.EnableServiceRequest> request) async { return enableService(call, await request); } $async.Future<$0.Operation> disableService_Pre($grpc.ServiceCall call, - $async.Future<$2.DisableServiceRequest> request) async { + $async.Future<$37.DisableServiceRequest> request) async { return disableService(call, await request); } - $async.Future<$3.Service> getService_Pre($grpc.ServiceCall call, - $async.Future<$2.GetServiceRequest> request) async { + $async.Future<$38.Service> getService_Pre($grpc.ServiceCall call, + $async.Future<$37.GetServiceRequest> request) async { return getService(call, await request); } - $async.Future<$2.ListServicesResponse> listServices_Pre( + $async.Future<$37.ListServicesResponse> listServices_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListServicesRequest> request) async { + $async.Future<$37.ListServicesRequest> request) async { return listServices(call, await request); } $async.Future<$0.Operation> batchEnableServices_Pre($grpc.ServiceCall call, - $async.Future<$2.BatchEnableServicesRequest> request) async { + $async.Future<$37.BatchEnableServicesRequest> request) async { return batchEnableServices(call, await request); } - $async.Future<$2.BatchGetServicesResponse> batchGetServices_Pre( + $async.Future<$37.BatchGetServicesResponse> batchGetServices_Pre( $grpc.ServiceCall call, - $async.Future<$2.BatchGetServicesRequest> request) async { + $async.Future<$37.BatchGetServicesRequest> request) async { return batchGetServices(call, await request); } $async.Future<$0.Operation> enableService( - $grpc.ServiceCall call, $2.EnableServiceRequest request); + $grpc.ServiceCall call, $37.EnableServiceRequest request); $async.Future<$0.Operation> disableService( - $grpc.ServiceCall call, $2.DisableServiceRequest request); - $async.Future<$3.Service> getService( - $grpc.ServiceCall call, $2.GetServiceRequest request); - $async.Future<$2.ListServicesResponse> listServices( - $grpc.ServiceCall call, $2.ListServicesRequest request); + $grpc.ServiceCall call, $37.DisableServiceRequest request); + $async.Future<$38.Service> getService( + $grpc.ServiceCall call, $37.GetServiceRequest request); + $async.Future<$37.ListServicesResponse> listServices( + $grpc.ServiceCall call, $37.ListServicesRequest request); $async.Future<$0.Operation> batchEnableServices( - $grpc.ServiceCall call, $2.BatchEnableServicesRequest request); - $async.Future<$2.BatchGetServicesResponse> batchGetServices( - $grpc.ServiceCall call, $2.BatchGetServicesRequest request); + $grpc.ServiceCall call, $37.BatchEnableServicesRequest request); + $async.Future<$37.BatchGetServicesResponse> batchGetServices( + $grpc.ServiceCall call, $37.BatchGetServicesRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbjson.dart index db4aa93e..68395d25 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1/serviceusage.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1/serviceusage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 enableServiceRequestDescriptor instead') @@ -20,6 +24,7 @@ const EnableServiceRequest$json = { /// Descriptor for `EnableServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List enableServiceRequestDescriptor = $convert .base64Decode('ChRFbmFibGVTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use enableServiceResponseDescriptor instead') const EnableServiceResponse$json = { '1': 'EnableServiceResponse', @@ -37,7 +42,9 @@ const EnableServiceResponse$json = { /// Descriptor for `EnableServiceResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List enableServiceResponseDescriptor = $convert.base64Decode( - 'ChVFbmFibGVTZXJ2aWNlUmVzcG9uc2USPQoHc2VydmljZRgBIAEoCzIjLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxLlNlcnZpY2VSB3NlcnZpY2U='); + 'ChVFbmFibGVTZXJ2aWNlUmVzcG9uc2USPQoHc2VydmljZRgBIAEoCzIjLmdvb2dsZS5hcGkuc2' + 'VydmljZXVzYWdlLnYxLlNlcnZpY2VSB3NlcnZpY2U='); + @$core.Deprecated('Use disableServiceRequestDescriptor instead') const DisableServiceRequest$json = { '1': 'DisableServiceRequest', @@ -75,7 +82,13 @@ const DisableServiceRequest_CheckIfServiceHasUsage$json = { /// Descriptor for `DisableServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List disableServiceRequestDescriptor = $convert.base64Decode( - 'ChVEaXNhYmxlU2VydmljZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRI8ChpkaXNhYmxlX2RlcGVuZGVudF9zZXJ2aWNlcxgCIAEoCFIYZGlzYWJsZURlcGVuZGVudFNlcnZpY2VzEoQBChpjaGVja19pZl9zZXJ2aWNlX2hhc191c2FnZRgDIAEoDjJILmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxLkRpc2FibGVTZXJ2aWNlUmVxdWVzdC5DaGVja0lmU2VydmljZUhhc1VzYWdlUhZjaGVja0lmU2VydmljZUhhc1VzYWdlIlkKFkNoZWNrSWZTZXJ2aWNlSGFzVXNhZ2USKgomQ0hFQ0tfSUZfU0VSVklDRV9IQVNfVVNBR0VfVU5TUEVDSUZJRUQQABIICgRTS0lQEAESCQoFQ0hFQ0sQAg=='); + 'ChVEaXNhYmxlU2VydmljZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRI8ChpkaXNhYmxlX2' + 'RlcGVuZGVudF9zZXJ2aWNlcxgCIAEoCFIYZGlzYWJsZURlcGVuZGVudFNlcnZpY2VzEoQBChpj' + 'aGVja19pZl9zZXJ2aWNlX2hhc191c2FnZRgDIAEoDjJILmdvb2dsZS5hcGkuc2VydmljZXVzYW' + 'dlLnYxLkRpc2FibGVTZXJ2aWNlUmVxdWVzdC5DaGVja0lmU2VydmljZUhhc1VzYWdlUhZjaGVj' + 'a0lmU2VydmljZUhhc1VzYWdlIlkKFkNoZWNrSWZTZXJ2aWNlSGFzVXNhZ2USKgomQ0hFQ0tfSU' + 'ZfU0VSVklDRV9IQVNfVVNBR0VfVU5TUEVDSUZJRUQQABIICgRTS0lQEAESCQoFQ0hFQ0sQAg=='); + @$core.Deprecated('Use disableServiceResponseDescriptor instead') const DisableServiceResponse$json = { '1': 'DisableServiceResponse', @@ -94,7 +107,9 @@ const DisableServiceResponse$json = { /// Descriptor for `DisableServiceResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List disableServiceResponseDescriptor = $convert.base64Decode( - 'ChZEaXNhYmxlU2VydmljZVJlc3BvbnNlEj0KB3NlcnZpY2UYASABKAsyIy5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MS5TZXJ2aWNlUgdzZXJ2aWNl'); + 'ChZEaXNhYmxlU2VydmljZVJlc3BvbnNlEj0KB3NlcnZpY2UYASABKAsyIy5nb29nbGUuYXBpLn' + 'NlcnZpY2V1c2FnZS52MS5TZXJ2aWNlUgdzZXJ2aWNl'); + @$core.Deprecated('Use getServiceRequestDescriptor instead') const GetServiceRequest$json = { '1': 'GetServiceRequest', @@ -106,6 +121,7 @@ const GetServiceRequest$json = { /// Descriptor for `GetServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getServiceRequestDescriptor = $convert .base64Decode('ChFHZXRTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use listServicesRequestDescriptor instead') const ListServicesRequest$json = { '1': 'ListServicesRequest', @@ -119,7 +135,10 @@ const ListServicesRequest$json = { /// Descriptor for `ListServicesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServicesRequestDescriptor = $convert.base64Decode( - 'ChNMaXN0U2VydmljZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2VuEhYKBmZpbHRlchgEIAEoCVIGZmlsdGVy'); + 'ChNMaXN0U2VydmljZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2' + 'l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2VuEhYKBmZp' + 'bHRlchgEIAEoCVIGZmlsdGVy'); + @$core.Deprecated('Use listServicesResponseDescriptor instead') const ListServicesResponse$json = { '1': 'ListServicesResponse', @@ -138,7 +157,10 @@ const ListServicesResponse$json = { /// Descriptor for `ListServicesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServicesResponseDescriptor = $convert.base64Decode( - 'ChRMaXN0U2VydmljZXNSZXNwb25zZRI/CghzZXJ2aWNlcxgBIAMoCzIjLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxLlNlcnZpY2VSCHNlcnZpY2VzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChRMaXN0U2VydmljZXNSZXNwb25zZRI/CghzZXJ2aWNlcxgBIAMoCzIjLmdvb2dsZS5hcGkuc2' + 'VydmljZXVzYWdlLnYxLlNlcnZpY2VSCHNlcnZpY2VzEiYKD25leHRfcGFnZV90b2tlbhgCIAEo' + 'CVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use batchEnableServicesRequestDescriptor instead') const BatchEnableServicesRequest$json = { '1': 'BatchEnableServicesRequest', @@ -151,7 +173,9 @@ const BatchEnableServicesRequest$json = { /// Descriptor for `BatchEnableServicesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List batchEnableServicesRequestDescriptor = $convert.base64Decode( - 'ChpCYXRjaEVuYWJsZVNlcnZpY2VzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIfCgtzZXJ2aWNlX2lkcxgCIAMoCVIKc2VydmljZUlkcw=='); + 'ChpCYXRjaEVuYWJsZVNlcnZpY2VzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIfCg' + 'tzZXJ2aWNlX2lkcxgCIAMoCVIKc2VydmljZUlkcw=='); + @$core.Deprecated('Use batchEnableServicesResponseDescriptor instead') const BatchEnableServicesResponse$json = { '1': 'BatchEnableServicesResponse', @@ -187,9 +211,14 @@ const BatchEnableServicesResponse_EnableFailure$json = { }; /// Descriptor for `BatchEnableServicesResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List batchEnableServicesResponseDescriptor = - $convert.base64Decode( - 'ChtCYXRjaEVuYWJsZVNlcnZpY2VzUmVzcG9uc2USPwoIc2VydmljZXMYASADKAsyIy5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MS5TZXJ2aWNlUghzZXJ2aWNlcxJhCghmYWlsdXJlcxgCIAMoCzJFLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxLkJhdGNoRW5hYmxlU2VydmljZXNSZXNwb25zZS5FbmFibGVGYWlsdXJlUghmYWlsdXJlcxpTCg1FbmFibGVGYWlsdXJlEh0KCnNlcnZpY2VfaWQYASABKAlSCXNlcnZpY2VJZBIjCg1lcnJvcl9tZXNzYWdlGAIgASgJUgxlcnJvck1lc3NhZ2U='); +final $typed_data.Uint8List batchEnableServicesResponseDescriptor = $convert.base64Decode( + 'ChtCYXRjaEVuYWJsZVNlcnZpY2VzUmVzcG9uc2USPwoIc2VydmljZXMYASADKAsyIy5nb29nbG' + 'UuYXBpLnNlcnZpY2V1c2FnZS52MS5TZXJ2aWNlUghzZXJ2aWNlcxJhCghmYWlsdXJlcxgCIAMo' + 'CzJFLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxLkJhdGNoRW5hYmxlU2VydmljZXNSZXNwb2' + '5zZS5FbmFibGVGYWlsdXJlUghmYWlsdXJlcxpTCg1FbmFibGVGYWlsdXJlEh0KCnNlcnZpY2Vf' + 'aWQYASABKAlSCXNlcnZpY2VJZBIjCg1lcnJvcl9tZXNzYWdlGAIgASgJUgxlcnJvck1lc3NhZ2' + 'U='); + @$core.Deprecated('Use batchGetServicesRequestDescriptor instead') const BatchGetServicesRequest$json = { '1': 'BatchGetServicesRequest', @@ -202,7 +231,9 @@ const BatchGetServicesRequest$json = { /// Descriptor for `BatchGetServicesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List batchGetServicesRequestDescriptor = $convert.base64Decode( - 'ChdCYXRjaEdldFNlcnZpY2VzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIUCgVuYW1lcxgCIAMoCVIFbmFtZXM='); + 'ChdCYXRjaEdldFNlcnZpY2VzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIUCgVuYW' + '1lcxgCIAMoCVIFbmFtZXM='); + @$core.Deprecated('Use batchGetServicesResponseDescriptor instead') const BatchGetServicesResponse$json = { '1': 'BatchGetServicesResponse', @@ -221,4 +252,5 @@ const BatchGetServicesResponse$json = { /// Descriptor for `BatchGetServicesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List batchGetServicesResponseDescriptor = $convert.base64Decode( - 'ChhCYXRjaEdldFNlcnZpY2VzUmVzcG9uc2USPwoIc2VydmljZXMYASADKAsyIy5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MS5TZXJ2aWNlUghzZXJ2aWNlcw=='); + 'ChhCYXRjaEdldFNlcnZpY2VzUmVzcG9uc2USPwoIc2VydmljZXMYASADKAsyIy5nb29nbGUuYX' + 'BpLnNlcnZpY2V1c2FnZS52MS5TZXJ2aWNlUghzZXJ2aWNlcw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pb.dart index 13c0a224..231d2515 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pb.dart @@ -1,84 +1,77 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1beta1/resources.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../protobuf/api.pb.dart' as $0; -import '../../documentation.pb.dart' as $1; -import '../../quota.pb.dart' as $2; -import '../../auth.pb.dart' as $3; -import '../../usage.pb.dart' as $4; -import '../../endpoint.pb.dart' as $5; -import '../../monitored_resource.pb.dart' as $6; -import '../../monitoring.pb.dart' as $7; - +import '../../../protobuf/api.pb.dart' as $84; +import '../../auth.pb.dart' as $88; +import '../../documentation.pb.dart' as $85; +import '../../endpoint.pb.dart' as $91; +import '../../monitored_resource.pb.dart' as $67; +import '../../monitoring.pb.dart' as $96; +import '../../quota.pb.dart' as $87; +import '../../usage.pb.dart' as $90; import 'resources.pbenum.dart'; export 'resources.pbenum.dart'; +/// A service that is available for use by the consumer. class Service extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Service', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'config', - subBuilder: ServiceConfig.create) - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', - $pb.PbFieldType.OE, - defaultOrMaker: State.STATE_UNSPECIFIED, - valueOf: State.valueOf, - enumValues: State.values) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'parent') - ..hasRequiredFields = false; - - Service._() : super(); factory Service({ $core.String? name, ServiceConfig? config, State? state, $core.String? parent, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (config != null) { - _result.config = config; + $result.config = config; } if (state != null) { - _result.state = state; + $result.state = state; } if (parent != null) { - _result.parent = parent; + $result.parent = parent; } - return _result; + return $result; } + Service._() : super(); factory Service.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Service.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Service', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM(2, _omitFieldNames ? '' : 'config', + subBuilder: ServiceConfig.create) + ..e(4, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: State.STATE_UNSPECIFIED, + valueOf: State.valueOf, + enumValues: State.values) + ..aOS(5, _omitFieldNames ? '' : 'parent') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -87,9 +80,10 @@ class Service extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Service copyWith(void Function(Service) updates) => - super.copyWith((message) => updates(message as Service)) - as Service; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Service)) as Service; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Service create() => Service._(); Service createEmptyInstance() => create(); @@ -99,6 +93,10 @@ class Service extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Service? _defaultInstance; + /// The resource name of the consumer and service. + /// + /// A valid name would be: + /// - `projects/123/services/serviceusage.googleapis.com` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -111,6 +109,10 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The service configuration of the available service. + /// Some fields may be filtered out of the configuration in responses to + /// the `ListServices` method. These fields are present only in responses to + /// the `GetService` method. @$pb.TagNumber(2) ServiceConfig get config => $_getN(1); @$pb.TagNumber(2) @@ -125,6 +127,7 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(2) ServiceConfig ensureConfig() => $_ensure(1); + /// Whether or not the service has been enabled for use by the consumer. @$pb.TagNumber(4) State get state => $_getN(2); @$pb.TagNumber(4) @@ -137,6 +140,10 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearState() => clearField(4); + /// The resource name of the consumer. + /// + /// A valid name would be: + /// - `projects/123` @$pb.TagNumber(5) $core.String get parent => $_getSZ(3); @$pb.TagNumber(5) @@ -150,91 +157,88 @@ class Service extends $pb.GeneratedMessage { void clearParent() => clearField(5); } +/// The configuration of the service. class ServiceConfig extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ServiceConfig', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'title') - ..pc<$0.Api>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apis', $pb.PbFieldType.PM, - subBuilder: $0.Api.create) - ..aOM<$1.Documentation>( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'documentation', - subBuilder: $1.Documentation.create) - ..aOM<$2.Quota>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'quota', subBuilder: $2.Quota.create) - ..aOM<$3.Authentication>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authentication', subBuilder: $3.Authentication.create) - ..aOM<$4.Usage>(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'usage', subBuilder: $4.Usage.create) - ..pc<$5.Endpoint>(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endpoints', $pb.PbFieldType.PM, subBuilder: $5.Endpoint.create) - ..pc<$6.MonitoredResourceDescriptor>(25, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'monitoredResources', $pb.PbFieldType.PM, subBuilder: $6.MonitoredResourceDescriptor.create) - ..aOM<$7.Monitoring>(28, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'monitoring', subBuilder: $7.Monitoring.create) - ..hasRequiredFields = false; - - ServiceConfig._() : super(); factory ServiceConfig({ $core.String? name, $core.String? title, - $core.Iterable<$0.Api>? apis, - $1.Documentation? documentation, - $2.Quota? quota, - $3.Authentication? authentication, - $4.Usage? usage, - $core.Iterable<$5.Endpoint>? endpoints, - $core.Iterable<$6.MonitoredResourceDescriptor>? monitoredResources, - $7.Monitoring? monitoring, + $core.Iterable<$84.Api>? apis, + $85.Documentation? documentation, + $87.Quota? quota, + $88.Authentication? authentication, + $90.Usage? usage, + $core.Iterable<$91.Endpoint>? endpoints, + $core.Iterable<$67.MonitoredResourceDescriptor>? monitoredResources, + $96.Monitoring? monitoring, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (title != null) { - _result.title = title; + $result.title = title; } if (apis != null) { - _result.apis.addAll(apis); + $result.apis.addAll(apis); } if (documentation != null) { - _result.documentation = documentation; + $result.documentation = documentation; } if (quota != null) { - _result.quota = quota; + $result.quota = quota; } if (authentication != null) { - _result.authentication = authentication; + $result.authentication = authentication; } if (usage != null) { - _result.usage = usage; + $result.usage = usage; } if (endpoints != null) { - _result.endpoints.addAll(endpoints); + $result.endpoints.addAll(endpoints); } if (monitoredResources != null) { - _result.monitoredResources.addAll(monitoredResources); + $result.monitoredResources.addAll(monitoredResources); } if (monitoring != null) { - _result.monitoring = monitoring; + $result.monitoring = monitoring; } - return _result; + return $result; } + ServiceConfig._() : super(); factory ServiceConfig.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ServiceConfig.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ServiceConfig', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'title') + ..pc<$84.Api>(3, _omitFieldNames ? '' : 'apis', $pb.PbFieldType.PM, + subBuilder: $84.Api.create) + ..aOM<$85.Documentation>(6, _omitFieldNames ? '' : 'documentation', + subBuilder: $85.Documentation.create) + ..aOM<$87.Quota>(10, _omitFieldNames ? '' : 'quota', + subBuilder: $87.Quota.create) + ..aOM<$88.Authentication>(11, _omitFieldNames ? '' : 'authentication', + subBuilder: $88.Authentication.create) + ..aOM<$90.Usage>(15, _omitFieldNames ? '' : 'usage', + subBuilder: $90.Usage.create) + ..pc<$91.Endpoint>( + 18, _omitFieldNames ? '' : 'endpoints', $pb.PbFieldType.PM, + subBuilder: $91.Endpoint.create) + ..pc<$67.MonitoredResourceDescriptor>( + 25, _omitFieldNames ? '' : 'monitoredResources', $pb.PbFieldType.PM, + subBuilder: $67.MonitoredResourceDescriptor.create) + ..aOM<$96.Monitoring>(28, _omitFieldNames ? '' : 'monitoring', + subBuilder: $96.Monitoring.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') @@ -244,8 +248,10 @@ class ServiceConfig extends $pb.GeneratedMessage { 'Will be removed in next major version') ServiceConfig copyWith(void Function(ServiceConfig) updates) => super.copyWith((message) => updates(message as ServiceConfig)) - as ServiceConfig; // ignore: deprecated_member_use + as ServiceConfig; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ServiceConfig create() => ServiceConfig._(); ServiceConfig createEmptyInstance() => create(); @@ -256,6 +262,10 @@ class ServiceConfig extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ServiceConfig? _defaultInstance; + /// The DNS address at which this service is available. + /// + /// An example DNS address would be: + /// `calendar.googleapis.com`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -268,6 +278,7 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The product title for this service. @$pb.TagNumber(2) $core.String get title => $_getSZ(1); @$pb.TagNumber(2) @@ -280,13 +291,17 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearTitle() => clearField(2); + /// A list of API interfaces exported by this service. Contains only the names, + /// versions, and method names of the interfaces. @$pb.TagNumber(3) - $core.List<$0.Api> get apis => $_getList(2); + $core.List<$84.Api> get apis => $_getList(2); + /// Additional API documentation. Contains only the summary and the + /// documentation URL. @$pb.TagNumber(6) - $1.Documentation get documentation => $_getN(3); + $85.Documentation get documentation => $_getN(3); @$pb.TagNumber(6) - set documentation($1.Documentation v) { + set documentation($85.Documentation v) { setField(6, v); } @@ -295,12 +310,13 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearDocumentation() => clearField(6); @$pb.TagNumber(6) - $1.Documentation ensureDocumentation() => $_ensure(3); + $85.Documentation ensureDocumentation() => $_ensure(3); + /// Quota configuration. @$pb.TagNumber(10) - $2.Quota get quota => $_getN(4); + $87.Quota get quota => $_getN(4); @$pb.TagNumber(10) - set quota($2.Quota v) { + set quota($87.Quota v) { setField(10, v); } @@ -309,12 +325,13 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearQuota() => clearField(10); @$pb.TagNumber(10) - $2.Quota ensureQuota() => $_ensure(4); + $87.Quota ensureQuota() => $_ensure(4); + /// Auth configuration. Contains only the OAuth rules. @$pb.TagNumber(11) - $3.Authentication get authentication => $_getN(5); + $88.Authentication get authentication => $_getN(5); @$pb.TagNumber(11) - set authentication($3.Authentication v) { + set authentication($88.Authentication v) { setField(11, v); } @@ -323,12 +340,13 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearAuthentication() => clearField(11); @$pb.TagNumber(11) - $3.Authentication ensureAuthentication() => $_ensure(5); + $88.Authentication ensureAuthentication() => $_ensure(5); + /// Configuration controlling usage of this service. @$pb.TagNumber(15) - $4.Usage get usage => $_getN(6); + $90.Usage get usage => $_getN(6); @$pb.TagNumber(15) - set usage($4.Usage v) { + set usage($90.Usage v) { setField(15, v); } @@ -337,19 +355,26 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearUsage() => clearField(15); @$pb.TagNumber(15) - $4.Usage ensureUsage() => $_ensure(6); + $90.Usage ensureUsage() => $_ensure(6); + /// Configuration for network endpoints. Contains only the names and aliases + /// of the endpoints. @$pb.TagNumber(18) - $core.List<$5.Endpoint> get endpoints => $_getList(7); + $core.List<$91.Endpoint> get endpoints => $_getList(7); + /// Defines the monitored resources used by this service. This is required + /// by the [Service.monitoring][google.api.Service.monitoring] and + /// [Service.logging][google.api.Service.logging] configurations. @$pb.TagNumber(25) - $core.List<$6.MonitoredResourceDescriptor> get monitoredResources => + $core.List<$67.MonitoredResourceDescriptor> get monitoredResources => $_getList(8); + /// Monitoring configuration. + /// This should not include the 'producer_destinations' field. @$pb.TagNumber(28) - $7.Monitoring get monitoring => $_getN(9); + $96.Monitoring get monitoring => $_getN(9); @$pb.TagNumber(28) - set monitoring($7.Monitoring v) { + set monitoring($96.Monitoring v) { setField(28, v); } @@ -358,42 +383,36 @@ class ServiceConfig extends $pb.GeneratedMessage { @$pb.TagNumber(28) void clearMonitoring() => clearField(28); @$pb.TagNumber(28) - $7.Monitoring ensureMonitoring() => $_ensure(9); + $96.Monitoring ensureMonitoring() => $_ensure(9); } +/// The operation metadata returned for the batchend services operation. class OperationMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OperationMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resourceNames') - ..hasRequiredFields = false; - - OperationMetadata._() : super(); factory OperationMetadata({ $core.Iterable<$core.String>? resourceNames, }) { - final _result = create(); + final $result = create(); if (resourceNames != null) { - _result.resourceNames.addAll(resourceNames); + $result.resourceNames.addAll(resourceNames); } - return _result; + return $result; } + OperationMetadata._() : super(); factory OperationMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OperationMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OperationMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pPS(2, _omitFieldNames ? '' : 'resourceNames') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -403,8 +422,10 @@ class OperationMetadata extends $pb.GeneratedMessage { 'Will be removed in next major version') OperationMetadata copyWith(void Function(OperationMetadata) updates) => super.copyWith((message) => updates(message as OperationMetadata)) - as OperationMetadata; // ignore: deprecated_member_use + as OperationMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OperationMetadata create() => OperationMetadata._(); OperationMetadata createEmptyInstance() => create(); @@ -415,43 +436,14 @@ class OperationMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static OperationMetadata? _defaultInstance; + /// The full name of the resources that this operation is directly + /// associated with. @$pb.TagNumber(2) $core.List<$core.String> get resourceNames => $_getList(0); } +/// Consumer quota settings for a quota metric. class ConsumerQuotaMetric extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ConsumerQuotaMetric', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'displayName') - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'consumerQuotaLimits', - $pb.PbFieldType.PM, - subBuilder: ConsumerQuotaLimit.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metric') - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unit') - ..pc(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descendantConsumerQuotaLimits', $pb.PbFieldType.PM, subBuilder: ConsumerQuotaLimit.create) - ..hasRequiredFields = false; - - ConsumerQuotaMetric._() : super(); factory ConsumerQuotaMetric({ $core.String? name, $core.String? displayName, @@ -460,34 +452,55 @@ class ConsumerQuotaMetric extends $pb.GeneratedMessage { $core.String? unit, $core.Iterable? descendantConsumerQuotaLimits, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (displayName != null) { - _result.displayName = displayName; + $result.displayName = displayName; } if (consumerQuotaLimits != null) { - _result.consumerQuotaLimits.addAll(consumerQuotaLimits); + $result.consumerQuotaLimits.addAll(consumerQuotaLimits); } if (metric != null) { - _result.metric = metric; + $result.metric = metric; } if (unit != null) { - _result.unit = unit; + $result.unit = unit; } if (descendantConsumerQuotaLimits != null) { - _result.descendantConsumerQuotaLimits + $result.descendantConsumerQuotaLimits .addAll(descendantConsumerQuotaLimits); } - return _result; + return $result; } + ConsumerQuotaMetric._() : super(); factory ConsumerQuotaMetric.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ConsumerQuotaMetric.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ConsumerQuotaMetric', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'displayName') + ..pc( + 3, _omitFieldNames ? '' : 'consumerQuotaLimits', $pb.PbFieldType.PM, + subBuilder: ConsumerQuotaLimit.create) + ..aOS(4, _omitFieldNames ? '' : 'metric') + ..aOS(5, _omitFieldNames ? '' : 'unit') + ..pc( + 6, + _omitFieldNames ? '' : 'descendantConsumerQuotaLimits', + $pb.PbFieldType.PM, + subBuilder: ConsumerQuotaLimit.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') @@ -497,8 +510,10 @@ class ConsumerQuotaMetric extends $pb.GeneratedMessage { 'Will be removed in next major version') ConsumerQuotaMetric copyWith(void Function(ConsumerQuotaMetric) updates) => super.copyWith((message) => updates(message as ConsumerQuotaMetric)) - as ConsumerQuotaMetric; // ignore: deprecated_member_use + as ConsumerQuotaMetric; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ConsumerQuotaMetric create() => ConsumerQuotaMetric._(); ConsumerQuotaMetric createEmptyInstance() => create(); @@ -509,6 +524,13 @@ class ConsumerQuotaMetric extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ConsumerQuotaMetric? _defaultInstance; + /// The resource name of the quota settings on this metric for this consumer. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus` + /// + /// The resource name is intended to be opaque and should not be parsed for + /// its component strings, since its representation could change in the future. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -521,6 +543,10 @@ class ConsumerQuotaMetric extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The display name of the metric. + /// + /// An example name would be: + /// `CPUs` @$pb.TagNumber(2) $core.String get displayName => $_getSZ(1); @$pb.TagNumber(2) @@ -533,9 +559,14 @@ class ConsumerQuotaMetric extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDisplayName() => clearField(2); + /// The consumer quota for each quota limit defined on the metric. @$pb.TagNumber(3) $core.List get consumerQuotaLimits => $_getList(2); + /// The name of the metric. + /// + /// An example name would be: + /// `compute.googleapis.com/cpus` @$pb.TagNumber(4) $core.String get metric => $_getSZ(3); @$pb.TagNumber(4) @@ -548,6 +579,7 @@ class ConsumerQuotaMetric extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearMetric() => clearField(4); + /// The units in which the metric value is reported. @$pb.TagNumber(5) $core.String get unit => $_getSZ(4); @$pb.TagNumber(5) @@ -560,45 +592,22 @@ class ConsumerQuotaMetric extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearUnit() => clearField(5); + /// The quota limits targeting the descendant containers of the + /// consumer in request. + /// + /// If the consumer in request is of type `organizations` + /// or `folders`, the field will list per-project limits in the metric; if the + /// consumer in request is of type `project`, the field will be empty. + /// + /// The `quota_buckets` field of each descendant consumer quota limit will not + /// be populated. @$pb.TagNumber(6) $core.List get descendantConsumerQuotaLimits => $_getList(5); } +/// Consumer quota settings for a quota limit. class ConsumerQuotaLimit extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ConsumerQuotaLimit', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'unit') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'isPrecise') - ..aOB( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allowsAdminOverrides') - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metric') - ..pc(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'quotaBuckets', $pb.PbFieldType.PM, subBuilder: QuotaBucket.create) - ..hasRequiredFields = false; - - ConsumerQuotaLimit._() : super(); factory ConsumerQuotaLimit({ $core.String? name, $core.String? unit, @@ -606,34 +615,56 @@ class ConsumerQuotaLimit extends $pb.GeneratedMessage { $core.bool? allowsAdminOverrides, $core.String? metric, $core.Iterable? quotaBuckets, + $core.Iterable<$core.String>? supportedLocations, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (unit != null) { - _result.unit = unit; + $result.unit = unit; } if (isPrecise != null) { - _result.isPrecise = isPrecise; + $result.isPrecise = isPrecise; } if (allowsAdminOverrides != null) { - _result.allowsAdminOverrides = allowsAdminOverrides; + $result.allowsAdminOverrides = allowsAdminOverrides; } if (metric != null) { - _result.metric = metric; + $result.metric = metric; } if (quotaBuckets != null) { - _result.quotaBuckets.addAll(quotaBuckets); + $result.quotaBuckets.addAll(quotaBuckets); + } + if (supportedLocations != null) { + $result.supportedLocations.addAll(supportedLocations); } - return _result; + return $result; } + ConsumerQuotaLimit._() : super(); factory ConsumerQuotaLimit.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ConsumerQuotaLimit.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ConsumerQuotaLimit', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'unit') + ..aOB(3, _omitFieldNames ? '' : 'isPrecise') + ..aOB(7, _omitFieldNames ? '' : 'allowsAdminOverrides') + ..aOS(8, _omitFieldNames ? '' : 'metric') + ..pc( + 9, _omitFieldNames ? '' : 'quotaBuckets', $pb.PbFieldType.PM, + subBuilder: QuotaBucket.create) + ..pPS(11, _omitFieldNames ? '' : 'supportedLocations') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -643,8 +674,10 @@ class ConsumerQuotaLimit extends $pb.GeneratedMessage { 'Will be removed in next major version') ConsumerQuotaLimit copyWith(void Function(ConsumerQuotaLimit) updates) => super.copyWith((message) => updates(message as ConsumerQuotaLimit)) - as ConsumerQuotaLimit; // ignore: deprecated_member_use + as ConsumerQuotaLimit; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ConsumerQuotaLimit create() => ConsumerQuotaLimit._(); ConsumerQuotaLimit createEmptyInstance() => create(); @@ -655,6 +688,13 @@ class ConsumerQuotaLimit extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ConsumerQuotaLimit? _defaultInstance; + /// The resource name of the quota limit. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` + /// + /// The resource name is intended to be opaque and should not be parsed for + /// its component strings, since its representation could change in the future. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -667,6 +707,12 @@ class ConsumerQuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The limit unit. + /// + /// An example unit would be + /// `1/{project}/{region}` + /// Note that `{project}` and `{region}` are not placeholders in this example; + /// the literal characters `{` and `}` occur in the string. @$pb.TagNumber(2) $core.String get unit => $_getSZ(1); @$pb.TagNumber(2) @@ -679,6 +725,7 @@ class ConsumerQuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearUnit() => clearField(2); + /// Whether this limit is precise or imprecise. @$pb.TagNumber(3) $core.bool get isPrecise => $_getBF(2); @$pb.TagNumber(3) @@ -691,6 +738,7 @@ class ConsumerQuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearIsPrecise() => clearField(3); + /// Whether admin overrides are allowed on this limit @$pb.TagNumber(7) $core.bool get allowsAdminOverrides => $_getBF(3); @$pb.TagNumber(7) @@ -703,6 +751,10 @@ class ConsumerQuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearAllowsAdminOverrides() => clearField(7); + /// The name of the parent metric of this limit. + /// + /// An example name would be: + /// `compute.googleapis.com/cpus` @$pb.TagNumber(8) $core.String get metric => $_getSZ(4); @$pb.TagNumber(8) @@ -715,42 +767,20 @@ class ConsumerQuotaLimit extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearMetric() => clearField(8); + /// Summary of the enforced quota buckets, organized by quota dimension, + /// ordered from least specific to most specific (for example, the global + /// default bucket, with no quota dimensions, will always appear first). @$pb.TagNumber(9) $core.List get quotaBuckets => $_getList(5); + + /// List of all supported locations. + /// This field is present only if the limit has a {region} or {zone} dimension. + @$pb.TagNumber(11) + $core.List<$core.String> get supportedLocations => $_getList(6); } +/// A quota bucket is a quota provisioning unit for a specific set of dimensions. class QuotaBucket extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'QuotaBucket', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'effectiveLimit') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'defaultLimit') - ..aOM(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'producerOverride', - subBuilder: QuotaOverride.create) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'consumerOverride', - subBuilder: QuotaOverride.create) - ..aOM( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'adminOverride', - subBuilder: QuotaOverride.create) - ..m<$core.String, $core.String>( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'dimensions', - entryClassName: 'QuotaBucket.DimensionsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.api.serviceusage.v1beta1')) - ..hasRequiredFields = false; - - QuotaBucket._() : super(); factory QuotaBucket({ $fixnum.Int64? effectiveLimit, $fixnum.Int64? defaultLimit, @@ -758,34 +788,62 @@ class QuotaBucket extends $pb.GeneratedMessage { QuotaOverride? consumerOverride, QuotaOverride? adminOverride, $core.Map<$core.String, $core.String>? dimensions, + ProducerQuotaPolicy? producerQuotaPolicy, }) { - final _result = create(); + final $result = create(); if (effectiveLimit != null) { - _result.effectiveLimit = effectiveLimit; + $result.effectiveLimit = effectiveLimit; } if (defaultLimit != null) { - _result.defaultLimit = defaultLimit; + $result.defaultLimit = defaultLimit; } if (producerOverride != null) { - _result.producerOverride = producerOverride; + $result.producerOverride = producerOverride; } if (consumerOverride != null) { - _result.consumerOverride = consumerOverride; + $result.consumerOverride = consumerOverride; } if (adminOverride != null) { - _result.adminOverride = adminOverride; + $result.adminOverride = adminOverride; } if (dimensions != null) { - _result.dimensions.addAll(dimensions); + $result.dimensions.addAll(dimensions); } - return _result; + if (producerQuotaPolicy != null) { + $result.producerQuotaPolicy = producerQuotaPolicy; + } + return $result; } + QuotaBucket._() : super(); factory QuotaBucket.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QuotaBucket.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QuotaBucket', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'effectiveLimit') + ..aInt64(2, _omitFieldNames ? '' : 'defaultLimit') + ..aOM(3, _omitFieldNames ? '' : 'producerOverride', + subBuilder: QuotaOverride.create) + ..aOM(4, _omitFieldNames ? '' : 'consumerOverride', + subBuilder: QuotaOverride.create) + ..aOM(5, _omitFieldNames ? '' : 'adminOverride', + subBuilder: QuotaOverride.create) + ..m<$core.String, $core.String>(6, _omitFieldNames ? '' : 'dimensions', + entryClassName: 'QuotaBucket.DimensionsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.serviceusage.v1beta1')) + ..aOM(7, _omitFieldNames ? '' : 'producerQuotaPolicy', + subBuilder: ProducerQuotaPolicy.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') @@ -795,8 +853,10 @@ class QuotaBucket extends $pb.GeneratedMessage { 'Will be removed in next major version') QuotaBucket copyWith(void Function(QuotaBucket) updates) => super.copyWith((message) => updates(message as QuotaBucket)) - as QuotaBucket; // ignore: deprecated_member_use + as QuotaBucket; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QuotaBucket create() => QuotaBucket._(); QuotaBucket createEmptyInstance() => create(); @@ -806,6 +866,8 @@ class QuotaBucket extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QuotaBucket? _defaultInstance; + /// The effective limit of this quota bucket. Equal to default_limit if there + /// are no overrides. @$pb.TagNumber(1) $fixnum.Int64 get effectiveLimit => $_getI64(0); @$pb.TagNumber(1) @@ -818,6 +880,8 @@ class QuotaBucket extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearEffectiveLimit() => clearField(1); + /// The default limit of this quota bucket, as specified by the service + /// configuration. @$pb.TagNumber(2) $fixnum.Int64 get defaultLimit => $_getI64(1); @$pb.TagNumber(2) @@ -830,6 +894,7 @@ class QuotaBucket extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDefaultLimit() => clearField(2); + /// Producer override on this quota bucket. @$pb.TagNumber(3) QuotaOverride get producerOverride => $_getN(2); @$pb.TagNumber(3) @@ -844,6 +909,7 @@ class QuotaBucket extends $pb.GeneratedMessage { @$pb.TagNumber(3) QuotaOverride ensureProducerOverride() => $_ensure(2); + /// Consumer override on this quota bucket. @$pb.TagNumber(4) QuotaOverride get consumerOverride => $_getN(3); @$pb.TagNumber(4) @@ -858,6 +924,7 @@ class QuotaBucket extends $pb.GeneratedMessage { @$pb.TagNumber(4) QuotaOverride ensureConsumerOverride() => $_ensure(3); + /// Admin override on this quota bucket. @$pb.TagNumber(5) QuotaOverride get adminOverride => $_getN(4); @$pb.TagNumber(5) @@ -872,45 +939,38 @@ class QuotaBucket extends $pb.GeneratedMessage { @$pb.TagNumber(5) QuotaOverride ensureAdminOverride() => $_ensure(4); + /// The dimensions of this quota bucket. + /// + /// If this map is empty, this is the global bucket, which is the default quota + /// value applied to all requests that do not have a more specific override. + /// + /// If this map is nonempty, the default limit, effective limit, and quota + /// overrides apply only to requests that have the dimensions given in the map. + /// + /// For example, if the map has key `region` and value `us-east-1`, then the + /// specified effective limit is only effective in that region, and the + /// specified overrides apply only in that region. @$pb.TagNumber(6) $core.Map<$core.String, $core.String> get dimensions => $_getMap(5); + + /// Producer policy inherited from the closet ancestor of the current consumer. + @$pb.TagNumber(7) + ProducerQuotaPolicy get producerQuotaPolicy => $_getN(6); + @$pb.TagNumber(7) + set producerQuotaPolicy(ProducerQuotaPolicy v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasProducerQuotaPolicy() => $_has(6); + @$pb.TagNumber(7) + void clearProducerQuotaPolicy() => clearField(7); + @$pb.TagNumber(7) + ProducerQuotaPolicy ensureProducerQuotaPolicy() => $_ensure(6); } +/// A quota override class QuotaOverride extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QuotaOverride', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overrideValue') - ..m<$core.String, $core.String>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'dimensions', - entryClassName: 'QuotaOverride.DimensionsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.api.serviceusage.v1beta1')) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metric') - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unit') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'adminOverrideAncestor') - ..hasRequiredFields = false; - - QuotaOverride._() : super(); factory QuotaOverride({ $core.String? name, $fixnum.Int64? overrideValue, @@ -919,33 +979,52 @@ class QuotaOverride extends $pb.GeneratedMessage { $core.String? unit, $core.String? adminOverrideAncestor, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (overrideValue != null) { - _result.overrideValue = overrideValue; + $result.overrideValue = overrideValue; } if (dimensions != null) { - _result.dimensions.addAll(dimensions); + $result.dimensions.addAll(dimensions); } if (metric != null) { - _result.metric = metric; + $result.metric = metric; } if (unit != null) { - _result.unit = unit; + $result.unit = unit; } if (adminOverrideAncestor != null) { - _result.adminOverrideAncestor = adminOverrideAncestor; + $result.adminOverrideAncestor = adminOverrideAncestor; } - return _result; + return $result; } + QuotaOverride._() : super(); factory QuotaOverride.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QuotaOverride.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QuotaOverride', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aInt64(2, _omitFieldNames ? '' : 'overrideValue') + ..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'dimensions', + entryClassName: 'QuotaOverride.DimensionsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.serviceusage.v1beta1')) + ..aOS(4, _omitFieldNames ? '' : 'metric') + ..aOS(5, _omitFieldNames ? '' : 'unit') + ..aOS(6, _omitFieldNames ? '' : 'adminOverrideAncestor') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -955,8 +1034,10 @@ class QuotaOverride extends $pb.GeneratedMessage { 'Will be removed in next major version') QuotaOverride copyWith(void Function(QuotaOverride) updates) => super.copyWith((message) => updates(message as QuotaOverride)) - as QuotaOverride; // ignore: deprecated_member_use + as QuotaOverride; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QuotaOverride create() => QuotaOverride._(); QuotaOverride createEmptyInstance() => create(); @@ -967,6 +1048,15 @@ class QuotaOverride extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QuotaOverride? _defaultInstance; + /// The resource name of the override. + /// This name is generated by the server when the override is created. + /// + /// Example names would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d` + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` + /// + /// The resource name is intended to be opaque and should not be parsed for + /// its component strings, since its representation could change in the future. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -979,6 +1069,8 @@ class QuotaOverride extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The overriding quota limit value. + /// Can be any nonnegative integer, or -1 (unlimited quota). @$pb.TagNumber(2) $fixnum.Int64 get overrideValue => $_getI64(1); @$pb.TagNumber(2) @@ -991,9 +1083,35 @@ class QuotaOverride extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOverrideValue() => clearField(2); + /// If this map is nonempty, then this override applies only to specific values + /// for dimensions defined in the limit unit. + /// + /// For example, an override on a limit with the unit `1/{project}/{region}` + /// could contain an entry with the key `region` and the value `us-east-1`; + /// the override is only applied to quota consumed in that region. + /// + /// This map has the following restrictions: + /// + /// * Keys that are not defined in the limit's unit are not valid keys. + /// Any string appearing in `{brackets}` in the unit (besides `{project}` + /// or + /// `{user}`) is a defined key. + /// * `project` is not a valid key; the project is already specified in + /// the parent resource name. + /// * `user` is not a valid key; the API does not support quota overrides + /// that apply only to a specific user. + /// * If `region` appears as a key, its value must be a valid Cloud region. + /// * If `zone` appears as a key, its value must be a valid Cloud zone. + /// * If any valid key other than `region` or `zone` appears in the map, then + /// all valid keys other than `region` or `zone` must also appear in the + /// map. @$pb.TagNumber(3) $core.Map<$core.String, $core.String> get dimensions => $_getMap(2); + /// The name of the metric to which this override applies. + /// + /// An example name would be: + /// `compute.googleapis.com/cpus` @$pb.TagNumber(4) $core.String get metric => $_getSZ(3); @$pb.TagNumber(4) @@ -1006,6 +1124,12 @@ class QuotaOverride extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearMetric() => clearField(4); + /// The limit unit of the limit to which this override applies. + /// + /// An example unit would be: + /// `1/{project}/{region}` + /// Note that `{project}` and `{region}` are not placeholders in this example; + /// the literal characters `{` and `}` occur in the string. @$pb.TagNumber(5) $core.String get unit => $_getSZ(4); @$pb.TagNumber(5) @@ -1018,6 +1142,9 @@ class QuotaOverride extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearUnit() => clearField(5); + /// The resource name of the ancestor that requested the override. For example: + /// `organizations/12345` or `folders/67890`. + /// Used by admin overrides only. @$pb.TagNumber(6) $core.String get adminOverrideAncestor => $_getSZ(5); @$pb.TagNumber(6) @@ -1031,41 +1158,35 @@ class QuotaOverride extends $pb.GeneratedMessage { void clearAdminOverrideAncestor() => clearField(6); } +/// Import data embedded in the request message class OverrideInlineSource extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OverrideInlineSource', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overrides', - $pb.PbFieldType.PM, - subBuilder: QuotaOverride.create) - ..hasRequiredFields = false; - - OverrideInlineSource._() : super(); factory OverrideInlineSource({ $core.Iterable? overrides, }) { - final _result = create(); + final $result = create(); if (overrides != null) { - _result.overrides.addAll(overrides); + $result.overrides.addAll(overrides); } - return _result; + return $result; } + OverrideInlineSource._() : super(); factory OverrideInlineSource.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OverrideInlineSource.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OverrideInlineSource', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'overrides', $pb.PbFieldType.PM, + subBuilder: QuotaOverride.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') @@ -1076,8 +1197,10 @@ class OverrideInlineSource extends $pb.GeneratedMessage { 'Will be removed in next major version') OverrideInlineSource copyWith(void Function(OverrideInlineSource) updates) => super.copyWith((message) => updates(message as OverrideInlineSource)) - as OverrideInlineSource; // ignore: deprecated_member_use + as OverrideInlineSource; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OverrideInlineSource create() => OverrideInlineSource._(); OverrideInlineSource createEmptyInstance() => create(); @@ -1088,45 +1211,200 @@ class OverrideInlineSource extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static OverrideInlineSource? _defaultInstance; + /// The overrides to create. + /// Each override must have a value for 'metric' and 'unit', to specify + /// which metric and which limit the override should be applied to. + /// The 'name' field of the override does not need to be set; it is ignored. @$pb.TagNumber(1) $core.List get overrides => $_getList(0); } -class AdminQuotaPolicy extends $pb.GeneratedMessage { +/// Quota policy created by service producer. +class ProducerQuotaPolicy extends $pb.GeneratedMessage { + factory ProducerQuotaPolicy({ + $core.String? name, + $fixnum.Int64? policyValue, + $core.Map<$core.String, $core.String>? dimensions, + $core.String? metric, + $core.String? unit, + $core.String? container, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (policyValue != null) { + $result.policyValue = policyValue; + } + if (dimensions != null) { + $result.dimensions.addAll(dimensions); + } + if (metric != null) { + $result.metric = metric; + } + if (unit != null) { + $result.unit = unit; + } + if (container != null) { + $result.container = container; + } + return $result; + } + ProducerQuotaPolicy._() : super(); + factory ProducerQuotaPolicy.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ProducerQuotaPolicy.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AdminQuotaPolicy', + _omitMessageNames ? '' : 'ProducerQuotaPolicy', package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'policyValue') - ..m<$core.String, $core.String>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'dimensions', - entryClassName: 'AdminQuotaPolicy.DimensionsEntry', + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aInt64(2, _omitFieldNames ? '' : 'policyValue') + ..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'dimensions', + entryClassName: 'ProducerQuotaPolicy.DimensionsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.api.serviceusage.v1beta1')) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metric') - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unit') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'container') + ..aOS(4, _omitFieldNames ? '' : 'metric') + ..aOS(5, _omitFieldNames ? '' : 'unit') + ..aOS(6, _omitFieldNames ? '' : 'container') ..hasRequiredFields = false; - AdminQuotaPolicy._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ProducerQuotaPolicy clone() => ProducerQuotaPolicy()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ProducerQuotaPolicy copyWith(void Function(ProducerQuotaPolicy) updates) => + super.copyWith((message) => updates(message as ProducerQuotaPolicy)) + as ProducerQuotaPolicy; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ProducerQuotaPolicy create() => ProducerQuotaPolicy._(); + ProducerQuotaPolicy createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ProducerQuotaPolicy getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ProducerQuotaPolicy? _defaultInstance; + + /// The resource name of the policy. + /// This name is generated by the server when the policy is created. + /// + /// Example names would be: + /// `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d` + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// The quota policy value. + /// Can be any nonnegative integer, or -1 (unlimited quota). + @$pb.TagNumber(2) + $fixnum.Int64 get policyValue => $_getI64(1); + @$pb.TagNumber(2) + set policyValue($fixnum.Int64 v) { + $_setInt64(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPolicyValue() => $_has(1); + @$pb.TagNumber(2) + void clearPolicyValue() => clearField(2); + + /// + /// If this map is nonempty, then this policy applies only to specific values + /// for dimensions defined in the limit unit. + /// + /// For example, a policy on a limit with the unit `1/{project}/{region}` + /// could contain an entry with the key `region` and the value `us-east-1`; + /// the policy is only applied to quota consumed in that region. + /// + /// This map has the following restrictions: + /// + /// * Keys that are not defined in the limit's unit are not valid keys. + /// Any string appearing in {brackets} in the unit (besides {project} or + /// {user}) is a defined key. + /// * `project` is not a valid key; the project is already specified in + /// the parent resource name. + /// * `user` is not a valid key; the API does not support quota policies + /// that apply only to a specific user. + /// * If `region` appears as a key, its value must be a valid Cloud region. + /// * If `zone` appears as a key, its value must be a valid Cloud zone. + /// * If any valid key other than `region` or `zone` appears in the map, then + /// all valid keys other than `region` or `zone` must also appear in the + /// map. + @$pb.TagNumber(3) + $core.Map<$core.String, $core.String> get dimensions => $_getMap(2); + + /// The name of the metric to which this policy applies. + /// + /// An example name would be: + /// `compute.googleapis.com/cpus` + @$pb.TagNumber(4) + $core.String get metric => $_getSZ(3); + @$pb.TagNumber(4) + set metric($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasMetric() => $_has(3); + @$pb.TagNumber(4) + void clearMetric() => clearField(4); + + /// The limit unit of the limit to which this policy applies. + /// + /// An example unit would be: + /// `1/{project}/{region}` + /// Note that `{project}` and `{region}` are not placeholders in this example; + /// the literal characters `{` and `}` occur in the string. + @$pb.TagNumber(5) + $core.String get unit => $_getSZ(4); + @$pb.TagNumber(5) + set unit($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasUnit() => $_has(4); + @$pb.TagNumber(5) + void clearUnit() => clearField(5); + + /// The cloud resource container at which the quota policy is created. The + /// format is `{container_type}/{container_number}` + @$pb.TagNumber(6) + $core.String get container => $_getSZ(5); + @$pb.TagNumber(6) + set container($core.String v) { + $_setString(5, v); + } + + @$pb.TagNumber(6) + $core.bool hasContainer() => $_has(5); + @$pb.TagNumber(6) + void clearContainer() => clearField(6); +} + +/// Quota policy created by quota administrator. +class AdminQuotaPolicy extends $pb.GeneratedMessage { factory AdminQuotaPolicy({ $core.String? name, $fixnum.Int64? policyValue, @@ -1135,33 +1413,52 @@ class AdminQuotaPolicy extends $pb.GeneratedMessage { $core.String? unit, $core.String? container, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (policyValue != null) { - _result.policyValue = policyValue; + $result.policyValue = policyValue; } if (dimensions != null) { - _result.dimensions.addAll(dimensions); + $result.dimensions.addAll(dimensions); } if (metric != null) { - _result.metric = metric; + $result.metric = metric; } if (unit != null) { - _result.unit = unit; + $result.unit = unit; } if (container != null) { - _result.container = container; + $result.container = container; } - return _result; + return $result; } + AdminQuotaPolicy._() : super(); factory AdminQuotaPolicy.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AdminQuotaPolicy.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AdminQuotaPolicy', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aInt64(2, _omitFieldNames ? '' : 'policyValue') + ..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'dimensions', + entryClassName: 'AdminQuotaPolicy.DimensionsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.api.serviceusage.v1beta1')) + ..aOS(4, _omitFieldNames ? '' : 'metric') + ..aOS(5, _omitFieldNames ? '' : 'unit') + ..aOS(6, _omitFieldNames ? '' : 'container') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1171,8 +1468,10 @@ class AdminQuotaPolicy extends $pb.GeneratedMessage { 'Will be removed in next major version') AdminQuotaPolicy copyWith(void Function(AdminQuotaPolicy) updates) => super.copyWith((message) => updates(message as AdminQuotaPolicy)) - as AdminQuotaPolicy; // ignore: deprecated_member_use + as AdminQuotaPolicy; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AdminQuotaPolicy create() => AdminQuotaPolicy._(); AdminQuotaPolicy createEmptyInstance() => create(); @@ -1183,6 +1482,11 @@ class AdminQuotaPolicy extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AdminQuotaPolicy? _defaultInstance; + /// The resource name of the policy. + /// This name is generated by the server when the policy is created. + /// + /// Example names would be: + /// `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminQuotaPolicies/4a3f2c1d` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1195,6 +1499,8 @@ class AdminQuotaPolicy extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The quota policy value. + /// Can be any nonnegative integer, or -1 (unlimited quota). @$pb.TagNumber(2) $fixnum.Int64 get policyValue => $_getI64(1); @$pb.TagNumber(2) @@ -1207,9 +1513,26 @@ class AdminQuotaPolicy extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPolicyValue() => clearField(2); + /// + /// If this map is nonempty, then this policy applies only to specific values + /// for dimensions defined in the limit unit. + /// + /// For example, a policy on a limit with the unit `1/{project}/{region}` + /// could contain an entry with the key `region` and the value `us-east-1`; + /// the policy is only applied to quota consumed in that region. + /// + /// This map has the following restrictions: + /// + /// * If `region` appears as a key, its value must be a valid Cloud region. + /// * If `zone` appears as a key, its value must be a valid Cloud zone. + /// * Keys other than `region` or `zone` are not valid. @$pb.TagNumber(3) $core.Map<$core.String, $core.String> get dimensions => $_getMap(2); + /// The name of the metric to which this policy applies. + /// + /// An example name would be: + /// `compute.googleapis.com/cpus` @$pb.TagNumber(4) $core.String get metric => $_getSZ(3); @$pb.TagNumber(4) @@ -1222,6 +1545,12 @@ class AdminQuotaPolicy extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearMetric() => clearField(4); + /// The limit unit of the limit to which this policy applies. + /// + /// An example unit would be: + /// `1/{project}/{region}` + /// Note that `{project}` and `{region}` are not placeholders in this example; + /// the literal characters `{` and `}` occur in the string. @$pb.TagNumber(5) $core.String get unit => $_getSZ(4); @$pb.TagNumber(5) @@ -1234,6 +1563,8 @@ class AdminQuotaPolicy extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearUnit() => clearField(5); + /// The cloud resource container at which the quota policy is created. The + /// format is `{container_type}/{container_number}` @$pb.TagNumber(6) $core.String get container => $_getSZ(5); @$pb.TagNumber(6) @@ -1247,48 +1578,39 @@ class AdminQuotaPolicy extends $pb.GeneratedMessage { void clearContainer() => clearField(6); } +/// Service identity for a service. This is the identity that service producer +/// should use to access consumer resources. class ServiceIdentity extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ServiceIdentity', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'email') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uniqueId') - ..hasRequiredFields = false; - - ServiceIdentity._() : super(); factory ServiceIdentity({ $core.String? email, $core.String? uniqueId, }) { - final _result = create(); + final $result = create(); if (email != null) { - _result.email = email; + $result.email = email; } if (uniqueId != null) { - _result.uniqueId = uniqueId; + $result.uniqueId = uniqueId; } - return _result; + return $result; } + ServiceIdentity._() : super(); factory ServiceIdentity.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ServiceIdentity.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ServiceIdentity', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'email') + ..aOS(2, _omitFieldNames ? '' : 'uniqueId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1298,8 +1620,10 @@ class ServiceIdentity extends $pb.GeneratedMessage { 'Will be removed in next major version') ServiceIdentity copyWith(void Function(ServiceIdentity) updates) => super.copyWith((message) => updates(message as ServiceIdentity)) - as ServiceIdentity; // ignore: deprecated_member_use + as ServiceIdentity; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ServiceIdentity create() => ServiceIdentity._(); ServiceIdentity createEmptyInstance() => create(); @@ -1310,6 +1634,8 @@ class ServiceIdentity extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ServiceIdentity? _defaultInstance; + /// The email address of the service account that a service producer would use + /// to access consumer resources. @$pb.TagNumber(1) $core.String get email => $_getSZ(0); @$pb.TagNumber(1) @@ -1322,6 +1648,8 @@ class ServiceIdentity extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearEmail() => clearField(1); + /// The unique and stable id of the service account. + /// https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount @$pb.TagNumber(2) $core.String get uniqueId => $_getSZ(1); @$pb.TagNumber(2) @@ -1334,3 +1662,7 @@ class ServiceIdentity extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearUniqueId() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pbenum.dart index 75cd52a3..d2d36820 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pbenum.dart @@ -1,24 +1,24 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1beta1/resources.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Whether or not a service has been enabled for use by a consumer. class State extends $pb.ProtobufEnum { - static const State STATE_UNSPECIFIED = State._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STATE_UNSPECIFIED'); - static const State DISABLED = State._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DISABLED'); - static const State ENABLED = State._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ENABLED'); + static const State STATE_UNSPECIFIED = + State._(0, _omitEnumNames ? '' : 'STATE_UNSPECIFIED'); + static const State DISABLED = State._(1, _omitEnumNames ? '' : 'DISABLED'); + static const State ENABLED = State._(2, _omitEnumNames ? '' : 'ENABLED'); static const $core.List values = [ STATE_UNSPECIFIED, @@ -33,16 +33,13 @@ class State extends $pb.ProtobufEnum { const State._($core.int v, $core.String n) : super(v, n); } +/// Selected view of quota. Can be used to request more detailed quota +/// information when retrieving quota metrics and limits. class QuotaView extends $pb.ProtobufEnum { - static const QuotaView QUOTA_VIEW_UNSPECIFIED = QuotaView._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'QUOTA_VIEW_UNSPECIFIED'); - static const QuotaView BASIC = QuotaView._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BASIC'); - static const QuotaView FULL = QuotaView._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FULL'); + static const QuotaView QUOTA_VIEW_UNSPECIFIED = + QuotaView._(0, _omitEnumNames ? '' : 'QUOTA_VIEW_UNSPECIFIED'); + static const QuotaView BASIC = QuotaView._(1, _omitEnumNames ? '' : 'BASIC'); + static const QuotaView FULL = QuotaView._(2, _omitEnumNames ? '' : 'FULL'); static const $core.List values = [ QUOTA_VIEW_UNSPECIFIED, @@ -57,24 +54,16 @@ class QuotaView extends $pb.ProtobufEnum { const QuotaView._($core.int v, $core.String n) : super(v, n); } +/// Enumerations of quota safety checks. class QuotaSafetyCheck extends $pb.ProtobufEnum { static const QuotaSafetyCheck QUOTA_SAFETY_CHECK_UNSPECIFIED = QuotaSafetyCheck._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'QUOTA_SAFETY_CHECK_UNSPECIFIED'); - static const QuotaSafetyCheck LIMIT_DECREASE_BELOW_USAGE = QuotaSafetyCheck._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LIMIT_DECREASE_BELOW_USAGE'); + 0, _omitEnumNames ? '' : 'QUOTA_SAFETY_CHECK_UNSPECIFIED'); + static const QuotaSafetyCheck LIMIT_DECREASE_BELOW_USAGE = + QuotaSafetyCheck._(1, _omitEnumNames ? '' : 'LIMIT_DECREASE_BELOW_USAGE'); static const QuotaSafetyCheck LIMIT_DECREASE_PERCENTAGE_TOO_HIGH = QuotaSafetyCheck._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'); + 2, _omitEnumNames ? '' : 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'); static const $core.List values = [ QUOTA_SAFETY_CHECK_UNSPECIFIED, @@ -88,3 +77,5 @@ class QuotaSafetyCheck extends $pb.ProtobufEnum { const QuotaSafetyCheck._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pbjson.dart index 8fc81350..2b43b129 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/resources.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1beta1/resources.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 stateDescriptor instead') @@ -21,7 +25,9 @@ const State$json = { /// Descriptor for `State`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List stateDescriptor = $convert.base64Decode( - 'CgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgwKCERJU0FCTEVEEAESCwoHRU5BQkxFRBAC'); + 'CgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgwKCERJU0FCTEVEEAESCwoHRU5BQkxFRB' + 'AC'); + @$core.Deprecated('Use quotaViewDescriptor instead') const QuotaView$json = { '1': 'QuotaView', @@ -34,7 +40,9 @@ const QuotaView$json = { /// Descriptor for `QuotaView`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List quotaViewDescriptor = $convert.base64Decode( - 'CglRdW90YVZpZXcSGgoWUVVPVEFfVklFV19VTlNQRUNJRklFRBAAEgkKBUJBU0lDEAESCAoERlVMTBAC'); + 'CglRdW90YVZpZXcSGgoWUVVPVEFfVklFV19VTlNQRUNJRklFRBAAEgkKBUJBU0lDEAESCAoERl' + 'VMTBAC'); + @$core.Deprecated('Use quotaSafetyCheckDescriptor instead') const QuotaSafetyCheck$json = { '1': 'QuotaSafetyCheck', @@ -47,7 +55,10 @@ const QuotaSafetyCheck$json = { /// Descriptor for `QuotaSafetyCheck`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List quotaSafetyCheckDescriptor = $convert.base64Decode( - 'ChBRdW90YVNhZmV0eUNoZWNrEiIKHlFVT1RBX1NBRkVUWV9DSEVDS19VTlNQRUNJRklFRBAAEh4KGkxJTUlUX0RFQ1JFQVNFX0JFTE9XX1VTQUdFEAESJgoiTElNSVRfREVDUkVBU0VfUEVSQ0VOVEFHRV9UT09fSElHSBAC'); + 'ChBRdW90YVNhZmV0eUNoZWNrEiIKHlFVT1RBX1NBRkVUWV9DSEVDS19VTlNQRUNJRklFRBAAEh' + '4KGkxJTUlUX0RFQ1JFQVNFX0JFTE9XX1VTQUdFEAESJgoiTElNSVRfREVDUkVBU0VfUEVSQ0VO' + 'VEFHRV9UT09fSElHSBAC'); + @$core.Deprecated('Use serviceDescriptor instead') const Service$json = { '1': 'Service', @@ -75,7 +86,11 @@ const Service$json = { /// Descriptor for `Service`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceDescriptor = $convert.base64Decode( - 'CgdTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSFgoGcGFyZW50GAUgASgJUgZwYXJlbnQSRgoGY29uZmlnGAIgASgLMi4uZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5TZXJ2aWNlQ29uZmlnUgZjb25maWcSPAoFc3RhdGUYBCABKA4yJi5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlN0YXRlUgVzdGF0ZQ=='); + 'CgdTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSFgoGcGFyZW50GAUgASgJUgZwYXJlbnQSRg' + 'oGY29uZmlnGAIgASgLMi4uZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5TZXJ2aWNl' + 'Q29uZmlnUgZjb25maWcSPAoFc3RhdGUYBCABKA4yJi5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS' + '52MWJldGExLlN0YXRlUgVzdGF0ZQ=='); + @$core.Deprecated('Use serviceConfigDescriptor instead') const ServiceConfig$json = { '1': 'ServiceConfig', @@ -151,7 +166,17 @@ const ServiceConfig$json = { /// Descriptor for `ServiceConfig`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceConfigDescriptor = $convert.base64Decode( - 'Cg1TZXJ2aWNlQ29uZmlnEhIKBG5hbWUYASABKAlSBG5hbWUSFAoFdGl0bGUYAiABKAlSBXRpdGxlEigKBGFwaXMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQXBpUgRhcGlzEj8KDWRvY3VtZW50YXRpb24YBiABKAsyGS5nb29nbGUuYXBpLkRvY3VtZW50YXRpb25SDWRvY3VtZW50YXRpb24SJwoFcXVvdGEYCiABKAsyES5nb29nbGUuYXBpLlF1b3RhUgVxdW90YRJCCg5hdXRoZW50aWNhdGlvbhgLIAEoCzIaLmdvb2dsZS5hcGkuQXV0aGVudGljYXRpb25SDmF1dGhlbnRpY2F0aW9uEicKBXVzYWdlGA8gASgLMhEuZ29vZ2xlLmFwaS5Vc2FnZVIFdXNhZ2USMgoJZW5kcG9pbnRzGBIgAygLMhQuZ29vZ2xlLmFwaS5FbmRwb2ludFIJZW5kcG9pbnRzElgKE21vbml0b3JlZF9yZXNvdXJjZXMYGSADKAsyJy5nb29nbGUuYXBpLk1vbml0b3JlZFJlc291cmNlRGVzY3JpcHRvclISbW9uaXRvcmVkUmVzb3VyY2VzEjYKCm1vbml0b3JpbmcYHCABKAsyFi5nb29nbGUuYXBpLk1vbml0b3JpbmdSCm1vbml0b3Jpbmc='); + 'Cg1TZXJ2aWNlQ29uZmlnEhIKBG5hbWUYASABKAlSBG5hbWUSFAoFdGl0bGUYAiABKAlSBXRpdG' + 'xlEigKBGFwaXMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQXBpUgRhcGlzEj8KDWRvY3VtZW50' + 'YXRpb24YBiABKAsyGS5nb29nbGUuYXBpLkRvY3VtZW50YXRpb25SDWRvY3VtZW50YXRpb24SJw' + 'oFcXVvdGEYCiABKAsyES5nb29nbGUuYXBpLlF1b3RhUgVxdW90YRJCCg5hdXRoZW50aWNhdGlv' + 'bhgLIAEoCzIaLmdvb2dsZS5hcGkuQXV0aGVudGljYXRpb25SDmF1dGhlbnRpY2F0aW9uEicKBX' + 'VzYWdlGA8gASgLMhEuZ29vZ2xlLmFwaS5Vc2FnZVIFdXNhZ2USMgoJZW5kcG9pbnRzGBIgAygL' + 'MhQuZ29vZ2xlLmFwaS5FbmRwb2ludFIJZW5kcG9pbnRzElgKE21vbml0b3JlZF9yZXNvdXJjZX' + 'MYGSADKAsyJy5nb29nbGUuYXBpLk1vbml0b3JlZFJlc291cmNlRGVzY3JpcHRvclISbW9uaXRv' + 'cmVkUmVzb3VyY2VzEjYKCm1vbml0b3JpbmcYHCABKAsyFi5nb29nbGUuYXBpLk1vbml0b3Jpbm' + 'dSCm1vbml0b3Jpbmc='); + @$core.Deprecated('Use operationMetadataDescriptor instead') const OperationMetadata$json = { '1': 'OperationMetadata', @@ -162,7 +187,9 @@ const OperationMetadata$json = { /// Descriptor for `OperationMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List operationMetadataDescriptor = $convert.base64Decode( - 'ChFPcGVyYXRpb25NZXRhZGF0YRIlCg5yZXNvdXJjZV9uYW1lcxgCIAMoCVINcmVzb3VyY2VOYW1lcw=='); + 'ChFPcGVyYXRpb25NZXRhZGF0YRIlCg5yZXNvdXJjZV9uYW1lcxgCIAMoCVINcmVzb3VyY2VOYW' + '1lcw=='); + @$core.Deprecated('Use consumerQuotaMetricDescriptor instead') const ConsumerQuotaMetric$json = { '1': 'ConsumerQuotaMetric', @@ -192,7 +219,14 @@ const ConsumerQuotaMetric$json = { /// Descriptor for `ConsumerQuotaMetric`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List consumerQuotaMetricDescriptor = $convert.base64Decode( - 'ChNDb25zdW1lclF1b3RhTWV0cmljEhIKBG5hbWUYASABKAlSBG5hbWUSFgoGbWV0cmljGAQgASgJUgZtZXRyaWMSIQoMZGlzcGxheV9uYW1lGAIgASgJUgtkaXNwbGF5TmFtZRJnChVjb25zdW1lcl9xdW90YV9saW1pdHMYAyADKAsyMy5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLkNvbnN1bWVyUXVvdGFMaW1pdFITY29uc3VtZXJRdW90YUxpbWl0cxJ8CiBkZXNjZW5kYW50X2NvbnN1bWVyX3F1b3RhX2xpbWl0cxgGIAMoCzIzLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuQ29uc3VtZXJRdW90YUxpbWl0Uh1kZXNjZW5kYW50Q29uc3VtZXJRdW90YUxpbWl0cxISCgR1bml0GAUgASgJUgR1bml0'); + 'ChNDb25zdW1lclF1b3RhTWV0cmljEhIKBG5hbWUYASABKAlSBG5hbWUSFgoGbWV0cmljGAQgAS' + 'gJUgZtZXRyaWMSIQoMZGlzcGxheV9uYW1lGAIgASgJUgtkaXNwbGF5TmFtZRJnChVjb25zdW1l' + 'cl9xdW90YV9saW1pdHMYAyADKAsyMy5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLk' + 'NvbnN1bWVyUXVvdGFMaW1pdFITY29uc3VtZXJRdW90YUxpbWl0cxJ8CiBkZXNjZW5kYW50X2Nv' + 'bnN1bWVyX3F1b3RhX2xpbWl0cxgGIAMoCzIzLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYm' + 'V0YTEuQ29uc3VtZXJRdW90YUxpbWl0Uh1kZXNjZW5kYW50Q29uc3VtZXJRdW90YUxpbWl0cxIS' + 'CgR1bml0GAUgASgJUgR1bml0'); + @$core.Deprecated('Use consumerQuotaLimitDescriptor instead') const ConsumerQuotaLimit$json = { '1': 'ConsumerQuotaLimit', @@ -216,12 +250,25 @@ const ConsumerQuotaLimit$json = { '6': '.google.api.serviceusage.v1beta1.QuotaBucket', '10': 'quotaBuckets' }, + { + '1': 'supported_locations', + '3': 11, + '4': 3, + '5': 9, + '10': 'supportedLocations' + }, ], }; /// Descriptor for `ConsumerQuotaLimit`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List consumerQuotaLimitDescriptor = $convert.base64Decode( - 'ChJDb25zdW1lclF1b3RhTGltaXQSEgoEbmFtZRgBIAEoCVIEbmFtZRIWCgZtZXRyaWMYCCABKAlSBm1ldHJpYxISCgR1bml0GAIgASgJUgR1bml0Eh0KCmlzX3ByZWNpc2UYAyABKAhSCWlzUHJlY2lzZRI0ChZhbGxvd3NfYWRtaW5fb3ZlcnJpZGVzGAcgASgIUhRhbGxvd3NBZG1pbk92ZXJyaWRlcxJRCg1xdW90YV9idWNrZXRzGAkgAygLMiwuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YUJ1Y2tldFIMcXVvdGFCdWNrZXRz'); + 'ChJDb25zdW1lclF1b3RhTGltaXQSEgoEbmFtZRgBIAEoCVIEbmFtZRIWCgZtZXRyaWMYCCABKA' + 'lSBm1ldHJpYxISCgR1bml0GAIgASgJUgR1bml0Eh0KCmlzX3ByZWNpc2UYAyABKAhSCWlzUHJl' + 'Y2lzZRI0ChZhbGxvd3NfYWRtaW5fb3ZlcnJpZGVzGAcgASgIUhRhbGxvd3NBZG1pbk92ZXJyaW' + 'RlcxJRCg1xdW90YV9idWNrZXRzGAkgAygLMiwuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFi' + 'ZXRhMS5RdW90YUJ1Y2tldFIMcXVvdGFCdWNrZXRzEi8KE3N1cHBvcnRlZF9sb2NhdGlvbnMYCy' + 'ADKAlSEnN1cHBvcnRlZExvY2F0aW9ucw=='); + @$core.Deprecated('Use quotaBucketDescriptor instead') const QuotaBucket$json = { '1': 'QuotaBucket', @@ -252,6 +299,14 @@ const QuotaBucket$json = { '6': '.google.api.serviceusage.v1beta1.QuotaOverride', '10': 'adminOverride' }, + { + '1': 'producer_quota_policy', + '3': 7, + '4': 1, + '5': 11, + '6': '.google.api.serviceusage.v1beta1.ProducerQuotaPolicy', + '10': 'producerQuotaPolicy' + }, { '1': 'dimensions', '3': 6, @@ -276,7 +331,19 @@ const QuotaBucket_DimensionsEntry$json = { /// Descriptor for `QuotaBucket`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List quotaBucketDescriptor = $convert.base64Decode( - 'CgtRdW90YUJ1Y2tldBInCg9lZmZlY3RpdmVfbGltaXQYASABKANSDmVmZmVjdGl2ZUxpbWl0EiMKDWRlZmF1bHRfbGltaXQYAiABKANSDGRlZmF1bHRMaW1pdBJbChFwcm9kdWNlcl9vdmVycmlkZRgDIAEoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZVIQcHJvZHVjZXJPdmVycmlkZRJbChFjb25zdW1lcl9vdmVycmlkZRgEIAEoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZVIQY29uc3VtZXJPdmVycmlkZRJVCg5hZG1pbl9vdmVycmlkZRgFIAEoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZVINYWRtaW5PdmVycmlkZRJcCgpkaW1lbnNpb25zGAYgAygLMjwuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YUJ1Y2tldC5EaW1lbnNpb25zRW50cnlSCmRpbWVuc2lvbnMaPQoPRGltZW5zaW9uc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE='); + 'CgtRdW90YUJ1Y2tldBInCg9lZmZlY3RpdmVfbGltaXQYASABKANSDmVmZmVjdGl2ZUxpbWl0Ei' + 'MKDWRlZmF1bHRfbGltaXQYAiABKANSDGRlZmF1bHRMaW1pdBJbChFwcm9kdWNlcl9vdmVycmlk' + 'ZRgDIAEoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZV' + 'IQcHJvZHVjZXJPdmVycmlkZRJbChFjb25zdW1lcl9vdmVycmlkZRgEIAEoCzIuLmdvb2dsZS5h' + 'cGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZVIQY29uc3VtZXJPdmVycmlkZR' + 'JVCg5hZG1pbl9vdmVycmlkZRgFIAEoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0' + 'YTEuUXVvdGFPdmVycmlkZVINYWRtaW5PdmVycmlkZRJoChVwcm9kdWNlcl9xdW90YV9wb2xpY3' + 'kYByABKAsyNC5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlByb2R1Y2VyUXVvdGFQ' + 'b2xpY3lSE3Byb2R1Y2VyUXVvdGFQb2xpY3kSXAoKZGltZW5zaW9ucxgGIAMoCzI8Lmdvb2dsZS' + '5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFCdWNrZXQuRGltZW5zaW9uc0VudHJ5Ugpk' + 'aW1lbnNpb25zGj0KD0RpbWVuc2lvbnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZR' + 'gCIAEoCVIFdmFsdWU6AjgB'); + @$core.Deprecated('Use quotaOverrideDescriptor instead') const QuotaOverride$json = { '1': 'QuotaOverride', @@ -316,7 +383,13 @@ const QuotaOverride_DimensionsEntry$json = { /// Descriptor for `QuotaOverride`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List quotaOverrideDescriptor = $convert.base64Decode( - 'Cg1RdW90YU92ZXJyaWRlEhIKBG5hbWUYASABKAlSBG5hbWUSJQoOb3ZlcnJpZGVfdmFsdWUYAiABKANSDW92ZXJyaWRlVmFsdWUSXgoKZGltZW5zaW9ucxgDIAMoCzI+Lmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZS5EaW1lbnNpb25zRW50cnlSCmRpbWVuc2lvbnMSFgoGbWV0cmljGAQgASgJUgZtZXRyaWMSEgoEdW5pdBgFIAEoCVIEdW5pdBI2ChdhZG1pbl9vdmVycmlkZV9hbmNlc3RvchgGIAEoCVIVYWRtaW5PdmVycmlkZUFuY2VzdG9yGj0KD0RpbWVuc2lvbnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); + 'Cg1RdW90YU92ZXJyaWRlEhIKBG5hbWUYASABKAlSBG5hbWUSJQoOb3ZlcnJpZGVfdmFsdWUYAi' + 'ABKANSDW92ZXJyaWRlVmFsdWUSXgoKZGltZW5zaW9ucxgDIAMoCzI+Lmdvb2dsZS5hcGkuc2Vy' + 'dmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZS5EaW1lbnNpb25zRW50cnlSCmRpbWVuc2' + 'lvbnMSFgoGbWV0cmljGAQgASgJUgZtZXRyaWMSEgoEdW5pdBgFIAEoCVIEdW5pdBI2ChdhZG1p' + 'bl9vdmVycmlkZV9hbmNlc3RvchgGIAEoCVIVYWRtaW5PdmVycmlkZUFuY2VzdG9yGj0KD0RpbW' + 'Vuc2lvbnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); + @$core.Deprecated('Use overrideInlineSourceDescriptor instead') const OverrideInlineSource$json = { '1': 'OverrideInlineSource', @@ -334,7 +407,50 @@ const OverrideInlineSource$json = { /// Descriptor for `OverrideInlineSource`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List overrideInlineSourceDescriptor = $convert.base64Decode( - 'ChRPdmVycmlkZUlubGluZVNvdXJjZRJMCglvdmVycmlkZXMYASADKAsyLi5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhT3ZlcnJpZGVSCW92ZXJyaWRlcw=='); + 'ChRPdmVycmlkZUlubGluZVNvdXJjZRJMCglvdmVycmlkZXMYASADKAsyLi5nb29nbGUuYXBpLn' + 'NlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhT3ZlcnJpZGVSCW92ZXJyaWRlcw=='); + +@$core.Deprecated('Use producerQuotaPolicyDescriptor instead') +const ProducerQuotaPolicy$json = { + '1': 'ProducerQuotaPolicy', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + {'1': 'policy_value', '3': 2, '4': 1, '5': 3, '10': 'policyValue'}, + { + '1': 'dimensions', + '3': 3, + '4': 3, + '5': 11, + '6': + '.google.api.serviceusage.v1beta1.ProducerQuotaPolicy.DimensionsEntry', + '10': 'dimensions' + }, + {'1': 'metric', '3': 4, '4': 1, '5': 9, '10': 'metric'}, + {'1': 'unit', '3': 5, '4': 1, '5': 9, '10': 'unit'}, + {'1': 'container', '3': 6, '4': 1, '5': 9, '10': 'container'}, + ], + '3': [ProducerQuotaPolicy_DimensionsEntry$json], +}; + +@$core.Deprecated('Use producerQuotaPolicyDescriptor instead') +const ProducerQuotaPolicy_DimensionsEntry$json = { + '1': 'DimensionsEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `ProducerQuotaPolicy`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List producerQuotaPolicyDescriptor = $convert.base64Decode( + 'ChNQcm9kdWNlclF1b3RhUG9saWN5EhIKBG5hbWUYASABKAlSBG5hbWUSIQoMcG9saWN5X3ZhbH' + 'VlGAIgASgDUgtwb2xpY3lWYWx1ZRJkCgpkaW1lbnNpb25zGAMgAygLMkQuZ29vZ2xlLmFwaS5z' + 'ZXJ2aWNldXNhZ2UudjFiZXRhMS5Qcm9kdWNlclF1b3RhUG9saWN5LkRpbWVuc2lvbnNFbnRyeV' + 'IKZGltZW5zaW9ucxIWCgZtZXRyaWMYBCABKAlSBm1ldHJpYxISCgR1bml0GAUgASgJUgR1bml0' + 'EhwKCWNvbnRhaW5lchgGIAEoCVIJY29udGFpbmVyGj0KD0RpbWVuc2lvbnNFbnRyeRIQCgNrZX' + 'kYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); + @$core.Deprecated('Use adminQuotaPolicyDescriptor instead') const AdminQuotaPolicy$json = { '1': 'AdminQuotaPolicy', @@ -368,7 +484,13 @@ const AdminQuotaPolicy_DimensionsEntry$json = { /// Descriptor for `AdminQuotaPolicy`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List adminQuotaPolicyDescriptor = $convert.base64Decode( - 'ChBBZG1pblF1b3RhUG9saWN5EhIKBG5hbWUYASABKAlSBG5hbWUSIQoMcG9saWN5X3ZhbHVlGAIgASgDUgtwb2xpY3lWYWx1ZRJhCgpkaW1lbnNpb25zGAMgAygLMkEuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5BZG1pblF1b3RhUG9saWN5LkRpbWVuc2lvbnNFbnRyeVIKZGltZW5zaW9ucxIWCgZtZXRyaWMYBCABKAlSBm1ldHJpYxISCgR1bml0GAUgASgJUgR1bml0EhwKCWNvbnRhaW5lchgGIAEoCVIJY29udGFpbmVyGj0KD0RpbWVuc2lvbnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); + 'ChBBZG1pblF1b3RhUG9saWN5EhIKBG5hbWUYASABKAlSBG5hbWUSIQoMcG9saWN5X3ZhbHVlGA' + 'IgASgDUgtwb2xpY3lWYWx1ZRJhCgpkaW1lbnNpb25zGAMgAygLMkEuZ29vZ2xlLmFwaS5zZXJ2' + 'aWNldXNhZ2UudjFiZXRhMS5BZG1pblF1b3RhUG9saWN5LkRpbWVuc2lvbnNFbnRyeVIKZGltZW' + '5zaW9ucxIWCgZtZXRyaWMYBCABKAlSBm1ldHJpYxISCgR1bml0GAUgASgJUgR1bml0EhwKCWNv' + 'bnRhaW5lchgGIAEoCVIJY29udGFpbmVyGj0KD0RpbWVuc2lvbnNFbnRyeRIQCgNrZXkYASABKA' + 'lSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); + @$core.Deprecated('Use serviceIdentityDescriptor instead') const ServiceIdentity$json = { '1': 'ServiceIdentity', @@ -380,4 +502,5 @@ const ServiceIdentity$json = { /// Descriptor for `ServiceIdentity`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceIdentityDescriptor = $convert.base64Decode( - 'Cg9TZXJ2aWNlSWRlbnRpdHkSFAoFZW1haWwYASABKAlSBWVtYWlsEhsKCXVuaXF1ZV9pZBgCIAEoCVIIdW5pcXVlSWQ='); + 'Cg9TZXJ2aWNlSWRlbnRpdHkSFAoFZW1haWwYASABKAlSBWVtYWlsEhsKCXVuaXF1ZV9pZBgCIA' + 'EoCVIIdW5pcXVlSWQ='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pb.dart index 4aa1c5bd..519ca8ab 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pb.dart @@ -1,55 +1,52 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1beta1/serviceusage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'resources.pb.dart' as $3; -import '../../../protobuf/field_mask.pb.dart' as $4; - -import 'resources.pbenum.dart' as $3; +import '../../../protobuf/field_mask.pb.dart' as $58; +import 'resources.pb.dart' as $40; +import 'resources.pbenum.dart' as $40; import 'serviceusage.pbenum.dart'; export 'serviceusage.pbenum.dart'; +/// Request message for the `EnableService` method. class EnableServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnableServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - EnableServiceRequest._() : super(); factory EnableServiceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + EnableServiceRequest._() : super(); factory EnableServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EnableServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnableServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -60,8 +57,10 @@ class EnableServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') EnableServiceRequest copyWith(void Function(EnableServiceRequest) updates) => super.copyWith((message) => updates(message as EnableServiceRequest)) - as EnableServiceRequest; // ignore: deprecated_member_use + as EnableServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnableServiceRequest create() => EnableServiceRequest._(); EnableServiceRequest createEmptyInstance() => create(); @@ -72,6 +71,17 @@ class EnableServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EnableServiceRequest? _defaultInstance; + /// Name of the consumer and service to enable the service on. + /// + /// The `EnableService` and `DisableService` methods currently only support + /// projects. + /// + /// Enabling a service requires that the service is public or is shared with + /// the user enabling the service. + /// + /// An example name would be: + /// `projects/123/services/serviceusage.googleapis.com` + /// where `123` is the project number (not project ID). @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -85,39 +95,33 @@ class EnableServiceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for the `DisableService` method. class DisableServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DisableServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DisableServiceRequest._() : super(); factory DisableServiceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DisableServiceRequest._() : super(); factory DisableServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DisableServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DisableServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -129,8 +133,10 @@ class DisableServiceRequest extends $pb.GeneratedMessage { DisableServiceRequest copyWith( void Function(DisableServiceRequest) updates) => super.copyWith((message) => updates(message as DisableServiceRequest)) - as DisableServiceRequest; // ignore: deprecated_member_use + as DisableServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DisableServiceRequest create() => DisableServiceRequest._(); DisableServiceRequest createEmptyInstance() => create(); @@ -141,6 +147,13 @@ class DisableServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DisableServiceRequest? _defaultInstance; + /// Name of the consumer and service to disable the service on. + /// + /// The enable and disable methods currently only support projects. + /// + /// An example name would be: + /// `projects/123/services/serviceusage.googleapis.com` + /// where `123` is the project number (not project ID). @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -154,39 +167,33 @@ class DisableServiceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for the `GetService` method. class GetServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetServiceRequest._() : super(); factory GetServiceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetServiceRequest._() : super(); factory GetServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -196,8 +203,10 @@ class GetServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetServiceRequest copyWith(void Function(GetServiceRequest) updates) => super.copyWith((message) => updates(message as GetServiceRequest)) - as GetServiceRequest; // ignore: deprecated_member_use + as GetServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceRequest create() => GetServiceRequest._(); GetServiceRequest createEmptyInstance() => create(); @@ -208,6 +217,11 @@ class GetServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceRequest? _defaultInstance; + /// Name of the consumer and service to get the `ConsumerState` for. + /// + /// An example name would be: + /// `projects/123/services/serviceusage.googleapis.com` + /// where `123` is the project number (not project ID). @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -221,63 +235,48 @@ class GetServiceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for the `ListServices` method. class ListServicesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServicesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter') - ..hasRequiredFields = false; - - ListServicesRequest._() : super(); factory ListServicesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, $core.String? filter, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } - return _result; + return $result; } + ListServicesRequest._() : super(); factory ListServicesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServicesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServicesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..aOS(4, _omitFieldNames ? '' : 'filter') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -287,8 +286,10 @@ class ListServicesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListServicesRequest copyWith(void Function(ListServicesRequest) updates) => super.copyWith((message) => updates(message as ListServicesRequest)) - as ListServicesRequest; // ignore: deprecated_member_use + as ListServicesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServicesRequest create() => ListServicesRequest._(); ListServicesRequest createEmptyInstance() => create(); @@ -299,6 +300,11 @@ class ListServicesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServicesRequest? _defaultInstance; + /// Parent to search for services on. + /// + /// An example name would be: + /// `projects/123` + /// where `123` is the project number (not project ID). @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -311,6 +317,9 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Requested size of the next page of data. + /// Requested page size cannot exceed 200. + /// If not set, the default page size is 50. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -323,6 +332,8 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Token identifying which result to start with, which is returned by a + /// previous list call. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -335,6 +346,8 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// Only list services that conform to the given filter. + /// The allowed filter strings are `state:ENABLED` and `state:DISABLED`. @$pb.TagNumber(4) $core.String get filter => $_getSZ(3); @$pb.TagNumber(4) @@ -348,47 +361,39 @@ class ListServicesRequest extends $pb.GeneratedMessage { void clearFilter() => clearField(4); } +/// Response message for the `ListServices` method. class ListServicesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServicesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pc<$3.Service>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'services', - $pb.PbFieldType.PM, - subBuilder: $3.Service.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListServicesResponse._() : super(); factory ListServicesResponse({ - $core.Iterable<$3.Service>? services, + $core.Iterable<$40.Service>? services, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (services != null) { - _result.services.addAll(services); + $result.services.addAll(services); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListServicesResponse._() : super(); factory ListServicesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServicesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServicesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pc<$40.Service>(1, _omitFieldNames ? '' : 'services', $pb.PbFieldType.PM, + subBuilder: $40.Service.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -399,8 +404,10 @@ class ListServicesResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListServicesResponse copyWith(void Function(ListServicesResponse) updates) => super.copyWith((message) => updates(message as ListServicesResponse)) - as ListServicesResponse; // ignore: deprecated_member_use + as ListServicesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServicesResponse create() => ListServicesResponse._(); ListServicesResponse createEmptyInstance() => create(); @@ -411,9 +418,12 @@ class ListServicesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServicesResponse? _defaultInstance; + /// The available services for the requested project. @$pb.TagNumber(1) - $core.List<$3.Service> get services => $_getList(0); + $core.List<$40.Service> get services => $_getList(0); + /// Token that can be passed to `ListServices` to resume a paginated + /// query. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -427,48 +437,38 @@ class ListServicesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for the `BatchEnableServices` method. class BatchEnableServicesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchEnableServicesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceIds') - ..hasRequiredFields = false; - - BatchEnableServicesRequest._() : super(); factory BatchEnableServicesRequest({ $core.String? parent, $core.Iterable<$core.String>? serviceIds, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (serviceIds != null) { - _result.serviceIds.addAll(serviceIds); + $result.serviceIds.addAll(serviceIds); } - return _result; + return $result; } + BatchEnableServicesRequest._() : super(); factory BatchEnableServicesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BatchEnableServicesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchEnableServicesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..pPS(2, _omitFieldNames ? '' : 'serviceIds') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -481,8 +481,10 @@ class BatchEnableServicesRequest extends $pb.GeneratedMessage { void Function(BatchEnableServicesRequest) updates) => super.copyWith( (message) => updates(message as BatchEnableServicesRequest)) - as BatchEnableServicesRequest; // ignore: deprecated_member_use + as BatchEnableServicesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchEnableServicesRequest create() => BatchEnableServicesRequest._(); BatchEnableServicesRequest createEmptyInstance() => create(); @@ -493,6 +495,13 @@ class BatchEnableServicesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BatchEnableServicesRequest? _defaultInstance; + /// Parent to enable services on. + /// + /// An example name would be: + /// `projects/123` + /// where `123` is the project number (not project ID). + /// + /// The `BatchEnableServices` method currently only supports projects. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -505,70 +514,69 @@ class BatchEnableServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// The identifiers of the services to enable on the project. + /// + /// A valid identifier would be: + /// serviceusage.googleapis.com + /// + /// Enabling services requires that each service is public or is shared with + /// the user enabling the service. + /// + /// Two or more services must be specified. To enable a single service, + /// use the `EnableService` method instead. + /// + /// A single request can enable a maximum of 20 services at a time. If more + /// than 20 services are specified, the request will fail, and no state changes + /// will occur. @$pb.TagNumber(2) $core.List<$core.String> get serviceIds => $_getList(1); } +/// Request message for ListConsumerQuotaMetrics class ListConsumerQuotaMetricsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListConsumerQuotaMetricsRequest', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..e<$3.QuotaView>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'view', $pb.PbFieldType.OE, - defaultOrMaker: $3.QuotaView.QUOTA_VIEW_UNSPECIFIED, - valueOf: $3.QuotaView.valueOf, - enumValues: $3.QuotaView.values) - ..hasRequiredFields = false; - - ListConsumerQuotaMetricsRequest._() : super(); factory ListConsumerQuotaMetricsRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, - $3.QuotaView? view, + $40.QuotaView? view, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + ListConsumerQuotaMetricsRequest._() : super(); factory ListConsumerQuotaMetricsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListConsumerQuotaMetricsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListConsumerQuotaMetricsRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..e<$40.QuotaView>(4, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: $40.QuotaView.QUOTA_VIEW_UNSPECIFIED, + valueOf: $40.QuotaView.valueOf, + enumValues: $40.QuotaView.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -581,8 +589,10 @@ class ListConsumerQuotaMetricsRequest extends $pb.GeneratedMessage { void Function(ListConsumerQuotaMetricsRequest) updates) => super.copyWith( (message) => updates(message as ListConsumerQuotaMetricsRequest)) - as ListConsumerQuotaMetricsRequest; // ignore: deprecated_member_use + as ListConsumerQuotaMetricsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListConsumerQuotaMetricsRequest create() => ListConsumerQuotaMetricsRequest._(); @@ -595,6 +605,12 @@ class ListConsumerQuotaMetricsRequest extends $pb.GeneratedMessage { create); static ListConsumerQuotaMetricsRequest? _defaultInstance; + /// Parent of the quotas resource. + /// + /// Some example names would be: + /// `projects/123/services/serviceconsumermanagement.googleapis.com` + /// `folders/345/services/serviceconsumermanagement.googleapis.com` + /// `organizations/456/services/serviceconsumermanagement.googleapis.com` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -607,6 +623,7 @@ class ListConsumerQuotaMetricsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Requested size of the next page of data. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -619,6 +636,8 @@ class ListConsumerQuotaMetricsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Token identifying which result to start with; returned by a previous list + /// call. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -631,10 +650,11 @@ class ListConsumerQuotaMetricsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// Specifies the level of detail for quota information in the response. @$pb.TagNumber(4) - $3.QuotaView get view => $_getN(3); + $40.QuotaView get view => $_getN(3); @$pb.TagNumber(4) - set view($3.QuotaView v) { + set view($40.QuotaView v) { setField(4, v); } @@ -644,47 +664,40 @@ class ListConsumerQuotaMetricsRequest extends $pb.GeneratedMessage { void clearView() => clearField(4); } +/// Response message for ListConsumerQuotaMetrics class ListConsumerQuotaMetricsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListConsumerQuotaMetricsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pc<$3.ConsumerQuotaMetric>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metrics', - $pb.PbFieldType.PM, - subBuilder: $3.ConsumerQuotaMetric.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListConsumerQuotaMetricsResponse._() : super(); factory ListConsumerQuotaMetricsResponse({ - $core.Iterable<$3.ConsumerQuotaMetric>? metrics, + $core.Iterable<$40.ConsumerQuotaMetric>? metrics, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (metrics != null) { - _result.metrics.addAll(metrics); + $result.metrics.addAll(metrics); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListConsumerQuotaMetricsResponse._() : super(); factory ListConsumerQuotaMetricsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListConsumerQuotaMetricsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListConsumerQuotaMetricsResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pc<$40.ConsumerQuotaMetric>( + 1, _omitFieldNames ? '' : 'metrics', $pb.PbFieldType.PM, + subBuilder: $40.ConsumerQuotaMetric.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -697,8 +710,10 @@ class ListConsumerQuotaMetricsResponse extends $pb.GeneratedMessage { void Function(ListConsumerQuotaMetricsResponse) updates) => super.copyWith( (message) => updates(message as ListConsumerQuotaMetricsResponse)) - as ListConsumerQuotaMetricsResponse; // ignore: deprecated_member_use + as ListConsumerQuotaMetricsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListConsumerQuotaMetricsResponse create() => ListConsumerQuotaMetricsResponse._(); @@ -711,9 +726,12 @@ class ListConsumerQuotaMetricsResponse extends $pb.GeneratedMessage { create); static ListConsumerQuotaMetricsResponse? _defaultInstance; + /// Quota settings for the consumer, organized by quota metric. @$pb.TagNumber(1) - $core.List<$3.ConsumerQuotaMetric> get metrics => $_getList(0); + $core.List<$40.ConsumerQuotaMetric> get metrics => $_getList(0); + /// Token identifying which result to start with; returned by a previous list + /// call. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -727,52 +745,41 @@ class ListConsumerQuotaMetricsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for GetConsumerQuotaMetric class GetConsumerQuotaMetricRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetConsumerQuotaMetricRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e<$3.QuotaView>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'view', - $pb.PbFieldType.OE, - defaultOrMaker: $3.QuotaView.QUOTA_VIEW_UNSPECIFIED, - valueOf: $3.QuotaView.valueOf, - enumValues: $3.QuotaView.values) - ..hasRequiredFields = false; - - GetConsumerQuotaMetricRequest._() : super(); factory GetConsumerQuotaMetricRequest({ $core.String? name, - $3.QuotaView? view, + $40.QuotaView? view, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + GetConsumerQuotaMetricRequest._() : super(); factory GetConsumerQuotaMetricRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetConsumerQuotaMetricRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetConsumerQuotaMetricRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e<$40.QuotaView>(2, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: $40.QuotaView.QUOTA_VIEW_UNSPECIFIED, + valueOf: $40.QuotaView.valueOf, + enumValues: $40.QuotaView.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -785,8 +792,10 @@ class GetConsumerQuotaMetricRequest extends $pb.GeneratedMessage { void Function(GetConsumerQuotaMetricRequest) updates) => super.copyWith( (message) => updates(message as GetConsumerQuotaMetricRequest)) - as GetConsumerQuotaMetricRequest; // ignore: deprecated_member_use + as GetConsumerQuotaMetricRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetConsumerQuotaMetricRequest create() => GetConsumerQuotaMetricRequest._(); @@ -798,6 +807,10 @@ class GetConsumerQuotaMetricRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetConsumerQuotaMetricRequest? _defaultInstance; + /// The resource name of the quota limit. + /// + /// An example name would be: + /// `projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -810,10 +823,11 @@ class GetConsumerQuotaMetricRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Specifies the level of detail for quota information in the response. @$pb.TagNumber(2) - $3.QuotaView get view => $_getN(1); + $40.QuotaView get view => $_getN(1); @$pb.TagNumber(2) - set view($3.QuotaView v) { + set view($40.QuotaView v) { setField(2, v); } @@ -823,52 +837,41 @@ class GetConsumerQuotaMetricRequest extends $pb.GeneratedMessage { void clearView() => clearField(2); } +/// Request message for GetConsumerQuotaLimit class GetConsumerQuotaLimitRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetConsumerQuotaLimitRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e<$3.QuotaView>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'view', - $pb.PbFieldType.OE, - defaultOrMaker: $3.QuotaView.QUOTA_VIEW_UNSPECIFIED, - valueOf: $3.QuotaView.valueOf, - enumValues: $3.QuotaView.values) - ..hasRequiredFields = false; - - GetConsumerQuotaLimitRequest._() : super(); factory GetConsumerQuotaLimitRequest({ $core.String? name, - $3.QuotaView? view, + $40.QuotaView? view, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + GetConsumerQuotaLimitRequest._() : super(); factory GetConsumerQuotaLimitRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetConsumerQuotaLimitRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetConsumerQuotaLimitRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e<$40.QuotaView>(2, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: $40.QuotaView.QUOTA_VIEW_UNSPECIFIED, + valueOf: $40.QuotaView.valueOf, + enumValues: $40.QuotaView.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -881,8 +884,10 @@ class GetConsumerQuotaLimitRequest extends $pb.GeneratedMessage { void Function(GetConsumerQuotaLimitRequest) updates) => super.copyWith( (message) => updates(message as GetConsumerQuotaLimitRequest)) - as GetConsumerQuotaLimitRequest; // ignore: deprecated_member_use + as GetConsumerQuotaLimitRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetConsumerQuotaLimitRequest create() => GetConsumerQuotaLimitRequest._(); @@ -894,6 +899,10 @@ class GetConsumerQuotaLimitRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetConsumerQuotaLimitRequest? _defaultInstance; + /// The resource name of the quota limit. + /// + /// Use the quota limit resource name returned by previous + /// ListConsumerQuotaMetrics and GetConsumerQuotaMetric API calls. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -906,10 +915,11 @@ class GetConsumerQuotaLimitRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Specifies the level of detail for quota information in the response. @$pb.TagNumber(2) - $3.QuotaView get view => $_getN(1); + $40.QuotaView get view => $_getN(1); @$pb.TagNumber(2) - set view($3.QuotaView v) { + set view($40.QuotaView v) { setField(2, v); } @@ -919,62 +929,53 @@ class GetConsumerQuotaLimitRequest extends $pb.GeneratedMessage { void clearView() => clearField(2); } +/// Request message for CreateAdminOverride. class CreateAdminOverrideRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CreateAdminOverrideRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$3.QuotaOverride>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'override', - subBuilder: $3.QuotaOverride.create) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'force') - ..pc<$3.QuotaSafetyCheck>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'forceOnly', - $pb.PbFieldType.PE, - valueOf: $3.QuotaSafetyCheck.valueOf, - enumValues: $3.QuotaSafetyCheck.values) - ..hasRequiredFields = false; - - CreateAdminOverrideRequest._() : super(); factory CreateAdminOverrideRequest({ $core.String? parent, - $3.QuotaOverride? override, + $40.QuotaOverride? override, $core.bool? force, - $core.Iterable<$3.QuotaSafetyCheck>? forceOnly, + $core.Iterable<$40.QuotaSafetyCheck>? forceOnly, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (override != null) { - _result.override = override; + $result.override = override; } if (force != null) { - _result.force = force; + $result.force = force; } if (forceOnly != null) { - _result.forceOnly.addAll(forceOnly); + $result.forceOnly.addAll(forceOnly); } - return _result; + return $result; } + CreateAdminOverrideRequest._() : super(); factory CreateAdminOverrideRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateAdminOverrideRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateAdminOverrideRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$40.QuotaOverride>(2, _omitFieldNames ? '' : 'override', + subBuilder: $40.QuotaOverride.create) + ..aOB(3, _omitFieldNames ? '' : 'force') + ..pc<$40.QuotaSafetyCheck>( + 4, _omitFieldNames ? '' : 'forceOnly', $pb.PbFieldType.KE, + valueOf: $40.QuotaSafetyCheck.valueOf, + enumValues: $40.QuotaSafetyCheck.values, + defaultEnumValue: $40.QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -987,8 +988,10 @@ class CreateAdminOverrideRequest extends $pb.GeneratedMessage { void Function(CreateAdminOverrideRequest) updates) => super.copyWith( (message) => updates(message as CreateAdminOverrideRequest)) - as CreateAdminOverrideRequest; // ignore: deprecated_member_use + as CreateAdminOverrideRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateAdminOverrideRequest create() => CreateAdminOverrideRequest._(); CreateAdminOverrideRequest createEmptyInstance() => create(); @@ -999,6 +1002,11 @@ class CreateAdminOverrideRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateAdminOverrideRequest? _defaultInstance; + /// The resource name of the parent quota limit, returned by a + /// ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1011,10 +1019,11 @@ class CreateAdminOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// The admin override to create. @$pb.TagNumber(2) - $3.QuotaOverride get override => $_getN(1); + $40.QuotaOverride get override => $_getN(1); @$pb.TagNumber(2) - set override($3.QuotaOverride v) { + set override($40.QuotaOverride v) { setField(2, v); } @@ -1023,8 +1032,11 @@ class CreateAdminOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOverride() => clearField(2); @$pb.TagNumber(2) - $3.QuotaOverride ensureOverride() => $_ensure(1); + $40.QuotaOverride ensureOverride() => $_ensure(1); + /// Whether to force the creation of the quota override. + /// Setting the force parameter to 'true' ignores all quota safety checks that + /// would fail the request. QuotaSafetyCheck lists all such validations. @$pb.TagNumber(3) $core.bool get force => $_getBF(2); @$pb.TagNumber(3) @@ -1037,69 +1049,67 @@ class CreateAdminOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearForce() => clearField(3); + /// The list of quota safety checks to ignore before the override mutation. + /// Unlike 'force' field that ignores all the quota safety checks, the + /// 'force_only' field ignores only the specified checks; other checks are + /// still enforced. The 'force' and 'force_only' fields cannot both be set. @$pb.TagNumber(4) - $core.List<$3.QuotaSafetyCheck> get forceOnly => $_getList(3); + $core.List<$40.QuotaSafetyCheck> get forceOnly => $_getList(3); } +/// Request message for UpdateAdminOverride. class UpdateAdminOverrideRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'UpdateAdminOverrideRequest', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$3.QuotaOverride>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'override', - subBuilder: $3.QuotaOverride.create) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'force') - ..aOM<$4.FieldMask>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $4.FieldMask.create) - ..pc<$3.QuotaSafetyCheck>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'forceOnly', $pb.PbFieldType.PE, - valueOf: $3.QuotaSafetyCheck.valueOf, - enumValues: $3.QuotaSafetyCheck.values) - ..hasRequiredFields = false; - - UpdateAdminOverrideRequest._() : super(); factory UpdateAdminOverrideRequest({ $core.String? name, - $3.QuotaOverride? override, + $40.QuotaOverride? override, $core.bool? force, - $4.FieldMask? updateMask, - $core.Iterable<$3.QuotaSafetyCheck>? forceOnly, + $58.FieldMask? updateMask, + $core.Iterable<$40.QuotaSafetyCheck>? forceOnly, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (override != null) { - _result.override = override; + $result.override = override; } if (force != null) { - _result.force = force; + $result.force = force; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } if (forceOnly != null) { - _result.forceOnly.addAll(forceOnly); + $result.forceOnly.addAll(forceOnly); } - return _result; + return $result; } + UpdateAdminOverrideRequest._() : super(); factory UpdateAdminOverrideRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateAdminOverrideRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateAdminOverrideRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$40.QuotaOverride>(2, _omitFieldNames ? '' : 'override', + subBuilder: $40.QuotaOverride.create) + ..aOB(3, _omitFieldNames ? '' : 'force') + ..aOM<$58.FieldMask>(4, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.create) + ..pc<$40.QuotaSafetyCheck>( + 5, _omitFieldNames ? '' : 'forceOnly', $pb.PbFieldType.KE, + valueOf: $40.QuotaSafetyCheck.valueOf, + enumValues: $40.QuotaSafetyCheck.values, + defaultEnumValue: $40.QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1112,8 +1122,10 @@ class UpdateAdminOverrideRequest extends $pb.GeneratedMessage { void Function(UpdateAdminOverrideRequest) updates) => super.copyWith( (message) => updates(message as UpdateAdminOverrideRequest)) - as UpdateAdminOverrideRequest; // ignore: deprecated_member_use + as UpdateAdminOverrideRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateAdminOverrideRequest create() => UpdateAdminOverrideRequest._(); UpdateAdminOverrideRequest createEmptyInstance() => create(); @@ -1124,6 +1136,10 @@ class UpdateAdminOverrideRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateAdminOverrideRequest? _defaultInstance; + /// The resource name of the override to update. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1136,10 +1152,12 @@ class UpdateAdminOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The new override. + /// Only the override_value is updated; all other fields are ignored. @$pb.TagNumber(2) - $3.QuotaOverride get override => $_getN(1); + $40.QuotaOverride get override => $_getN(1); @$pb.TagNumber(2) - set override($3.QuotaOverride v) { + set override($40.QuotaOverride v) { setField(2, v); } @@ -1148,8 +1166,11 @@ class UpdateAdminOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOverride() => clearField(2); @$pb.TagNumber(2) - $3.QuotaOverride ensureOverride() => $_ensure(1); + $40.QuotaOverride ensureOverride() => $_ensure(1); + /// Whether to force the update of the quota override. + /// Setting the force parameter to 'true' ignores all quota safety checks that + /// would fail the request. QuotaSafetyCheck lists all such validations. @$pb.TagNumber(3) $core.bool get force => $_getBF(2); @$pb.TagNumber(3) @@ -1162,10 +1183,12 @@ class UpdateAdminOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearForce() => clearField(3); + /// Update only the specified fields of the override. + /// If unset, all fields will be updated. @$pb.TagNumber(4) - $4.FieldMask get updateMask => $_getN(3); + $58.FieldMask get updateMask => $_getN(3); @$pb.TagNumber(4) - set updateMask($4.FieldMask v) { + set updateMask($58.FieldMask v) { setField(4, v); } @@ -1174,66 +1197,57 @@ class UpdateAdminOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUpdateMask() => clearField(4); @$pb.TagNumber(4) - $4.FieldMask ensureUpdateMask() => $_ensure(3); + $58.FieldMask ensureUpdateMask() => $_ensure(3); + /// The list of quota safety checks to ignore before the override mutation. + /// Unlike 'force' field that ignores all the quota safety checks, the + /// 'force_only' field ignores only the specified checks; other checks are + /// still enforced. The 'force' and 'force_only' fields cannot both be set. @$pb.TagNumber(5) - $core.List<$3.QuotaSafetyCheck> get forceOnly => $_getList(4); + $core.List<$40.QuotaSafetyCheck> get forceOnly => $_getList(4); } +/// Request message for DeleteAdminOverride. class DeleteAdminOverrideRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteAdminOverrideRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'force') - ..pc<$3.QuotaSafetyCheck>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'forceOnly', - $pb.PbFieldType.PE, - valueOf: $3.QuotaSafetyCheck.valueOf, - enumValues: $3.QuotaSafetyCheck.values) - ..hasRequiredFields = false; - - DeleteAdminOverrideRequest._() : super(); factory DeleteAdminOverrideRequest({ $core.String? name, $core.bool? force, - $core.Iterable<$3.QuotaSafetyCheck>? forceOnly, + $core.Iterable<$40.QuotaSafetyCheck>? forceOnly, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (force != null) { - _result.force = force; + $result.force = force; } if (forceOnly != null) { - _result.forceOnly.addAll(forceOnly); + $result.forceOnly.addAll(forceOnly); } - return _result; + return $result; } + DeleteAdminOverrideRequest._() : super(); factory DeleteAdminOverrideRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteAdminOverrideRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteAdminOverrideRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOB(2, _omitFieldNames ? '' : 'force') + ..pc<$40.QuotaSafetyCheck>( + 3, _omitFieldNames ? '' : 'forceOnly', $pb.PbFieldType.KE, + valueOf: $40.QuotaSafetyCheck.valueOf, + enumValues: $40.QuotaSafetyCheck.values, + defaultEnumValue: $40.QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1246,8 +1260,10 @@ class DeleteAdminOverrideRequest extends $pb.GeneratedMessage { void Function(DeleteAdminOverrideRequest) updates) => super.copyWith( (message) => updates(message as DeleteAdminOverrideRequest)) - as DeleteAdminOverrideRequest; // ignore: deprecated_member_use + as DeleteAdminOverrideRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteAdminOverrideRequest create() => DeleteAdminOverrideRequest._(); DeleteAdminOverrideRequest createEmptyInstance() => create(); @@ -1258,6 +1274,10 @@ class DeleteAdminOverrideRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteAdminOverrideRequest? _defaultInstance; + /// The resource name of the override to delete. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1270,6 +1290,9 @@ class DeleteAdminOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Whether to force the deletion of the quota override. + /// Setting the force parameter to 'true' ignores all quota safety checks that + /// would fail the request. QuotaSafetyCheck lists all such validations. @$pb.TagNumber(2) $core.bool get force => $_getBF(1); @$pb.TagNumber(2) @@ -1282,62 +1305,51 @@ class DeleteAdminOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearForce() => clearField(2); + /// The list of quota safety checks to ignore before the override mutation. + /// Unlike 'force' field that ignores all the quota safety checks, the + /// 'force_only' field ignores only the specified checks; other checks are + /// still enforced. The 'force' and 'force_only' fields cannot both be set. @$pb.TagNumber(3) - $core.List<$3.QuotaSafetyCheck> get forceOnly => $_getList(2); + $core.List<$40.QuotaSafetyCheck> get forceOnly => $_getList(2); } +/// Request message for ListAdminOverrides class ListAdminOverridesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListAdminOverridesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListAdminOverridesRequest._() : super(); factory ListAdminOverridesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListAdminOverridesRequest._() : super(); factory ListAdminOverridesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListAdminOverridesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListAdminOverridesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1349,8 +1361,10 @@ class ListAdminOverridesRequest extends $pb.GeneratedMessage { ListAdminOverridesRequest copyWith( void Function(ListAdminOverridesRequest) updates) => super.copyWith((message) => updates(message as ListAdminOverridesRequest)) - as ListAdminOverridesRequest; // ignore: deprecated_member_use + as ListAdminOverridesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListAdminOverridesRequest create() => ListAdminOverridesRequest._(); ListAdminOverridesRequest createEmptyInstance() => create(); @@ -1361,6 +1375,11 @@ class ListAdminOverridesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListAdminOverridesRequest? _defaultInstance; + /// The resource name of the parent quota limit, returned by a + /// ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1373,6 +1392,7 @@ class ListAdminOverridesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Requested size of the next page of data. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -1385,6 +1405,8 @@ class ListAdminOverridesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Token identifying which result to start with; returned by a previous list + /// call. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -1398,47 +1420,40 @@ class ListAdminOverridesRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// Response message for ListAdminOverrides. class ListAdminOverridesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListAdminOverridesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pc<$3.QuotaOverride>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overrides', - $pb.PbFieldType.PM, - subBuilder: $3.QuotaOverride.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListAdminOverridesResponse._() : super(); factory ListAdminOverridesResponse({ - $core.Iterable<$3.QuotaOverride>? overrides, + $core.Iterable<$40.QuotaOverride>? overrides, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (overrides != null) { - _result.overrides.addAll(overrides); + $result.overrides.addAll(overrides); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListAdminOverridesResponse._() : super(); factory ListAdminOverridesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListAdminOverridesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListAdminOverridesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pc<$40.QuotaOverride>( + 1, _omitFieldNames ? '' : 'overrides', $pb.PbFieldType.PM, + subBuilder: $40.QuotaOverride.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1451,8 +1466,10 @@ class ListAdminOverridesResponse extends $pb.GeneratedMessage { void Function(ListAdminOverridesResponse) updates) => super.copyWith( (message) => updates(message as ListAdminOverridesResponse)) - as ListAdminOverridesResponse; // ignore: deprecated_member_use + as ListAdminOverridesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListAdminOverridesResponse create() => ListAdminOverridesResponse._(); ListAdminOverridesResponse createEmptyInstance() => create(); @@ -1463,9 +1480,12 @@ class ListAdminOverridesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListAdminOverridesResponse? _defaultInstance; + /// Admin overrides on this limit. @$pb.TagNumber(1) - $core.List<$3.QuotaOverride> get overrides => $_getList(0); + $core.List<$40.QuotaOverride> get overrides => $_getList(0); + /// Token identifying which result to start with; returned by a previous list + /// call. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1479,41 +1499,35 @@ class ListAdminOverridesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Response message for BatchCreateAdminOverrides class BatchCreateAdminOverridesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchCreateAdminOverridesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pc<$3.QuotaOverride>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overrides', - $pb.PbFieldType.PM, - subBuilder: $3.QuotaOverride.create) - ..hasRequiredFields = false; - - BatchCreateAdminOverridesResponse._() : super(); factory BatchCreateAdminOverridesResponse({ - $core.Iterable<$3.QuotaOverride>? overrides, + $core.Iterable<$40.QuotaOverride>? overrides, }) { - final _result = create(); + final $result = create(); if (overrides != null) { - _result.overrides.addAll(overrides); + $result.overrides.addAll(overrides); } - return _result; + return $result; } + BatchCreateAdminOverridesResponse._() : super(); factory BatchCreateAdminOverridesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BatchCreateAdminOverridesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchCreateAdminOverridesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pc<$40.QuotaOverride>( + 1, _omitFieldNames ? '' : 'overrides', $pb.PbFieldType.PM, + subBuilder: $40.QuotaOverride.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') @@ -1526,8 +1540,10 @@ class BatchCreateAdminOverridesResponse extends $pb.GeneratedMessage { void Function(BatchCreateAdminOverridesResponse) updates) => super.copyWith((message) => updates(message as BatchCreateAdminOverridesResponse)) - as BatchCreateAdminOverridesResponse; // ignore: deprecated_member_use + as BatchCreateAdminOverridesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchCreateAdminOverridesResponse create() => BatchCreateAdminOverridesResponse._(); @@ -1540,79 +1556,71 @@ class BatchCreateAdminOverridesResponse extends $pb.GeneratedMessage { create); static BatchCreateAdminOverridesResponse? _defaultInstance; + /// The overrides that were created. @$pb.TagNumber(1) - $core.List<$3.QuotaOverride> get overrides => $_getList(0); + $core.List<$40.QuotaOverride> get overrides => $_getList(0); } enum ImportAdminOverridesRequest_Source { inlineSource, notSet } +/// Request message for ImportAdminOverrides class ImportAdminOverridesRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, ImportAdminOverridesRequest_Source> - _ImportAdminOverridesRequest_SourceByTag = { - 2: ImportAdminOverridesRequest_Source.inlineSource, - 0: ImportAdminOverridesRequest_Source.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ImportAdminOverridesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..oo(0, [2]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$3.OverrideInlineSource>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'inlineSource', - subBuilder: $3.OverrideInlineSource.create) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'force') - ..pc<$3.QuotaSafetyCheck>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'forceOnly', - $pb.PbFieldType.PE, - valueOf: $3.QuotaSafetyCheck.valueOf, - enumValues: $3.QuotaSafetyCheck.values) - ..hasRequiredFields = false; - - ImportAdminOverridesRequest._() : super(); factory ImportAdminOverridesRequest({ $core.String? parent, - $3.OverrideInlineSource? inlineSource, + $40.OverrideInlineSource? inlineSource, $core.bool? force, - $core.Iterable<$3.QuotaSafetyCheck>? forceOnly, + $core.Iterable<$40.QuotaSafetyCheck>? forceOnly, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (inlineSource != null) { - _result.inlineSource = inlineSource; + $result.inlineSource = inlineSource; } if (force != null) { - _result.force = force; + $result.force = force; } if (forceOnly != null) { - _result.forceOnly.addAll(forceOnly); + $result.forceOnly.addAll(forceOnly); } - return _result; + return $result; } + ImportAdminOverridesRequest._() : super(); factory ImportAdminOverridesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportAdminOverridesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - ImportAdminOverridesRequest clone() => - ImportAdminOverridesRequest()..mergeFromMessage(this); + + static const $core.Map<$core.int, ImportAdminOverridesRequest_Source> + _ImportAdminOverridesRequest_SourceByTag = { + 2: ImportAdminOverridesRequest_Source.inlineSource, + 0: ImportAdminOverridesRequest_Source.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportAdminOverridesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..oo(0, [2]) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$40.OverrideInlineSource>(2, _omitFieldNames ? '' : 'inlineSource', + subBuilder: $40.OverrideInlineSource.create) + ..aOB(3, _omitFieldNames ? '' : 'force') + ..pc<$40.QuotaSafetyCheck>( + 4, _omitFieldNames ? '' : 'forceOnly', $pb.PbFieldType.KE, + valueOf: $40.QuotaSafetyCheck.valueOf, + enumValues: $40.QuotaSafetyCheck.values, + defaultEnumValue: $40.QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ImportAdminOverridesRequest clone() => + ImportAdminOverridesRequest()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -1620,8 +1628,10 @@ class ImportAdminOverridesRequest extends $pb.GeneratedMessage { void Function(ImportAdminOverridesRequest) updates) => super.copyWith( (message) => updates(message as ImportAdminOverridesRequest)) - as ImportAdminOverridesRequest; // ignore: deprecated_member_use + as ImportAdminOverridesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportAdminOverridesRequest create() => ImportAdminOverridesRequest._(); @@ -1637,6 +1647,10 @@ class ImportAdminOverridesRequest extends $pb.GeneratedMessage { _ImportAdminOverridesRequest_SourceByTag[$_whichOneof(0)]!; void clearSource() => clearField($_whichOneof(0)); + /// The resource name of the consumer. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1649,10 +1663,11 @@ class ImportAdminOverridesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// The import data is specified in the request message itself @$pb.TagNumber(2) - $3.OverrideInlineSource get inlineSource => $_getN(1); + $40.OverrideInlineSource get inlineSource => $_getN(1); @$pb.TagNumber(2) - set inlineSource($3.OverrideInlineSource v) { + set inlineSource($40.OverrideInlineSource v) { setField(2, v); } @@ -1661,8 +1676,11 @@ class ImportAdminOverridesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearInlineSource() => clearField(2); @$pb.TagNumber(2) - $3.OverrideInlineSource ensureInlineSource() => $_ensure(1); + $40.OverrideInlineSource ensureInlineSource() => $_ensure(1); + /// Whether to force the creation of the quota overrides. + /// Setting the force parameter to 'true' ignores all quota safety checks that + /// would fail the request. QuotaSafetyCheck lists all such validations. @$pb.TagNumber(3) $core.bool get force => $_getBF(2); @$pb.TagNumber(3) @@ -1675,45 +1693,43 @@ class ImportAdminOverridesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearForce() => clearField(3); + /// The list of quota safety checks to ignore before the override mutation. + /// Unlike 'force' field that ignores all the quota safety checks, the + /// 'force_only' field ignores only the specified checks; other checks are + /// still enforced. The 'force' and 'force_only' fields cannot both be set. @$pb.TagNumber(4) - $core.List<$3.QuotaSafetyCheck> get forceOnly => $_getList(3); + $core.List<$40.QuotaSafetyCheck> get forceOnly => $_getList(3); } +/// Response message for ImportAdminOverrides class ImportAdminOverridesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ImportAdminOverridesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pc<$3.QuotaOverride>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overrides', - $pb.PbFieldType.PM, - subBuilder: $3.QuotaOverride.create) - ..hasRequiredFields = false; - - ImportAdminOverridesResponse._() : super(); factory ImportAdminOverridesResponse({ - $core.Iterable<$3.QuotaOverride>? overrides, + $core.Iterable<$40.QuotaOverride>? overrides, }) { - final _result = create(); + final $result = create(); if (overrides != null) { - _result.overrides.addAll(overrides); + $result.overrides.addAll(overrides); } - return _result; + return $result; } + ImportAdminOverridesResponse._() : super(); factory ImportAdminOverridesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportAdminOverridesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportAdminOverridesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pc<$40.QuotaOverride>( + 1, _omitFieldNames ? '' : 'overrides', $pb.PbFieldType.PM, + subBuilder: $40.QuotaOverride.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') @@ -1726,8 +1742,10 @@ class ImportAdminOverridesResponse extends $pb.GeneratedMessage { void Function(ImportAdminOverridesResponse) updates) => super.copyWith( (message) => updates(message as ImportAdminOverridesResponse)) - as ImportAdminOverridesResponse; // ignore: deprecated_member_use + as ImportAdminOverridesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportAdminOverridesResponse create() => ImportAdminOverridesResponse._(); @@ -1739,30 +1757,31 @@ class ImportAdminOverridesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ImportAdminOverridesResponse? _defaultInstance; + /// The overrides that were created from the imported data. @$pb.TagNumber(1) - $core.List<$3.QuotaOverride> get overrides => $_getList(0); + $core.List<$40.QuotaOverride> get overrides => $_getList(0); } +/// Metadata message that provides information such as progress, +/// partial failures, and similar information on each GetOperation call +/// of LRO returned by ImportAdminOverrides. class ImportAdminOverridesMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ImportAdminOverridesMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - ImportAdminOverridesMetadata._() : super(); factory ImportAdminOverridesMetadata() => create(); + ImportAdminOverridesMetadata._() : super(); factory ImportAdminOverridesMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportAdminOverridesMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportAdminOverridesMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + 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') @@ -1775,8 +1794,10 @@ class ImportAdminOverridesMetadata extends $pb.GeneratedMessage { void Function(ImportAdminOverridesMetadata) updates) => super.copyWith( (message) => updates(message as ImportAdminOverridesMetadata)) - as ImportAdminOverridesMetadata; // ignore: deprecated_member_use + as ImportAdminOverridesMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportAdminOverridesMetadata create() => ImportAdminOverridesMetadata._(); @@ -1789,62 +1810,53 @@ class ImportAdminOverridesMetadata extends $pb.GeneratedMessage { static ImportAdminOverridesMetadata? _defaultInstance; } +/// Request message for CreateConsumerOverride. class CreateConsumerOverrideRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CreateConsumerOverrideRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$3.QuotaOverride>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'override', - subBuilder: $3.QuotaOverride.create) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'force') - ..pc<$3.QuotaSafetyCheck>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'forceOnly', - $pb.PbFieldType.PE, - valueOf: $3.QuotaSafetyCheck.valueOf, - enumValues: $3.QuotaSafetyCheck.values) - ..hasRequiredFields = false; - - CreateConsumerOverrideRequest._() : super(); factory CreateConsumerOverrideRequest({ $core.String? parent, - $3.QuotaOverride? override, + $40.QuotaOverride? override, $core.bool? force, - $core.Iterable<$3.QuotaSafetyCheck>? forceOnly, + $core.Iterable<$40.QuotaSafetyCheck>? forceOnly, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (override != null) { - _result.override = override; + $result.override = override; } if (force != null) { - _result.force = force; + $result.force = force; } if (forceOnly != null) { - _result.forceOnly.addAll(forceOnly); + $result.forceOnly.addAll(forceOnly); } - return _result; + return $result; } + CreateConsumerOverrideRequest._() : super(); factory CreateConsumerOverrideRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateConsumerOverrideRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateConsumerOverrideRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$40.QuotaOverride>(2, _omitFieldNames ? '' : 'override', + subBuilder: $40.QuotaOverride.create) + ..aOB(3, _omitFieldNames ? '' : 'force') + ..pc<$40.QuotaSafetyCheck>( + 4, _omitFieldNames ? '' : 'forceOnly', $pb.PbFieldType.KE, + valueOf: $40.QuotaSafetyCheck.valueOf, + enumValues: $40.QuotaSafetyCheck.values, + defaultEnumValue: $40.QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1857,8 +1869,10 @@ class CreateConsumerOverrideRequest extends $pb.GeneratedMessage { void Function(CreateConsumerOverrideRequest) updates) => super.copyWith( (message) => updates(message as CreateConsumerOverrideRequest)) - as CreateConsumerOverrideRequest; // ignore: deprecated_member_use + as CreateConsumerOverrideRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateConsumerOverrideRequest create() => CreateConsumerOverrideRequest._(); @@ -1870,6 +1884,11 @@ class CreateConsumerOverrideRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateConsumerOverrideRequest? _defaultInstance; + /// The resource name of the parent quota limit, returned by a + /// ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1882,10 +1901,11 @@ class CreateConsumerOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// The override to create. @$pb.TagNumber(2) - $3.QuotaOverride get override => $_getN(1); + $40.QuotaOverride get override => $_getN(1); @$pb.TagNumber(2) - set override($3.QuotaOverride v) { + set override($40.QuotaOverride v) { setField(2, v); } @@ -1894,8 +1914,11 @@ class CreateConsumerOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOverride() => clearField(2); @$pb.TagNumber(2) - $3.QuotaOverride ensureOverride() => $_ensure(1); + $40.QuotaOverride ensureOverride() => $_ensure(1); + /// Whether to force the creation of the quota override. + /// Setting the force parameter to 'true' ignores all quota safety checks that + /// would fail the request. QuotaSafetyCheck lists all such validations. @$pb.TagNumber(3) $core.bool get force => $_getBF(2); @$pb.TagNumber(3) @@ -1908,68 +1931,67 @@ class CreateConsumerOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearForce() => clearField(3); + /// The list of quota safety checks to ignore before the override mutation. + /// Unlike 'force' field that ignores all the quota safety checks, the + /// 'force_only' field ignores only the specified checks; other checks are + /// still enforced. The 'force' and 'force_only' fields cannot both be set. @$pb.TagNumber(4) - $core.List<$3.QuotaSafetyCheck> get forceOnly => $_getList(3); + $core.List<$40.QuotaSafetyCheck> get forceOnly => $_getList(3); } +/// Request message for UpdateConsumerOverride. class UpdateConsumerOverrideRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'UpdateConsumerOverrideRequest', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$3.QuotaOverride>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'override', - subBuilder: $3.QuotaOverride.create) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'force') - ..aOM<$4.FieldMask>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $4.FieldMask.create) - ..pc<$3.QuotaSafetyCheck>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'forceOnly', $pb.PbFieldType.PE, - valueOf: $3.QuotaSafetyCheck.valueOf, - enumValues: $3.QuotaSafetyCheck.values) - ..hasRequiredFields = false; - - UpdateConsumerOverrideRequest._() : super(); factory UpdateConsumerOverrideRequest({ $core.String? name, - $3.QuotaOverride? override, + $40.QuotaOverride? override, $core.bool? force, - $4.FieldMask? updateMask, - $core.Iterable<$3.QuotaSafetyCheck>? forceOnly, + $58.FieldMask? updateMask, + $core.Iterable<$40.QuotaSafetyCheck>? forceOnly, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (override != null) { - _result.override = override; + $result.override = override; } if (force != null) { - _result.force = force; + $result.force = force; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } if (forceOnly != null) { - _result.forceOnly.addAll(forceOnly); + $result.forceOnly.addAll(forceOnly); } - return _result; + return $result; } + UpdateConsumerOverrideRequest._() : super(); factory UpdateConsumerOverrideRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateConsumerOverrideRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateConsumerOverrideRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$40.QuotaOverride>(2, _omitFieldNames ? '' : 'override', + subBuilder: $40.QuotaOverride.create) + ..aOB(3, _omitFieldNames ? '' : 'force') + ..aOM<$58.FieldMask>(4, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.create) + ..pc<$40.QuotaSafetyCheck>( + 5, _omitFieldNames ? '' : 'forceOnly', $pb.PbFieldType.KE, + valueOf: $40.QuotaSafetyCheck.valueOf, + enumValues: $40.QuotaSafetyCheck.values, + defaultEnumValue: $40.QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1982,8 +2004,10 @@ class UpdateConsumerOverrideRequest extends $pb.GeneratedMessage { void Function(UpdateConsumerOverrideRequest) updates) => super.copyWith( (message) => updates(message as UpdateConsumerOverrideRequest)) - as UpdateConsumerOverrideRequest; // ignore: deprecated_member_use + as UpdateConsumerOverrideRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateConsumerOverrideRequest create() => UpdateConsumerOverrideRequest._(); @@ -1995,6 +2019,10 @@ class UpdateConsumerOverrideRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateConsumerOverrideRequest? _defaultInstance; + /// The resource name of the override to update. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2007,10 +2035,12 @@ class UpdateConsumerOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The new override. + /// Only the override_value is updated; all other fields are ignored. @$pb.TagNumber(2) - $3.QuotaOverride get override => $_getN(1); + $40.QuotaOverride get override => $_getN(1); @$pb.TagNumber(2) - set override($3.QuotaOverride v) { + set override($40.QuotaOverride v) { setField(2, v); } @@ -2019,8 +2049,11 @@ class UpdateConsumerOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOverride() => clearField(2); @$pb.TagNumber(2) - $3.QuotaOverride ensureOverride() => $_ensure(1); + $40.QuotaOverride ensureOverride() => $_ensure(1); + /// Whether to force the update of the quota override. + /// Setting the force parameter to 'true' ignores all quota safety checks that + /// would fail the request. QuotaSafetyCheck lists all such validations. @$pb.TagNumber(3) $core.bool get force => $_getBF(2); @$pb.TagNumber(3) @@ -2033,10 +2066,12 @@ class UpdateConsumerOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearForce() => clearField(3); + /// Update only the specified fields of the override. + /// If unset, all fields will be updated. @$pb.TagNumber(4) - $4.FieldMask get updateMask => $_getN(3); + $58.FieldMask get updateMask => $_getN(3); @$pb.TagNumber(4) - set updateMask($4.FieldMask v) { + set updateMask($58.FieldMask v) { setField(4, v); } @@ -2045,66 +2080,57 @@ class UpdateConsumerOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUpdateMask() => clearField(4); @$pb.TagNumber(4) - $4.FieldMask ensureUpdateMask() => $_ensure(3); + $58.FieldMask ensureUpdateMask() => $_ensure(3); + /// The list of quota safety checks to ignore before the override mutation. + /// Unlike 'force' field that ignores all the quota safety checks, the + /// 'force_only' field ignores only the specified checks; other checks are + /// still enforced. The 'force' and 'force_only' fields cannot both be set. @$pb.TagNumber(5) - $core.List<$3.QuotaSafetyCheck> get forceOnly => $_getList(4); + $core.List<$40.QuotaSafetyCheck> get forceOnly => $_getList(4); } +/// Request message for DeleteConsumerOverride. class DeleteConsumerOverrideRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteConsumerOverrideRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'force') - ..pc<$3.QuotaSafetyCheck>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'forceOnly', - $pb.PbFieldType.PE, - valueOf: $3.QuotaSafetyCheck.valueOf, - enumValues: $3.QuotaSafetyCheck.values) - ..hasRequiredFields = false; - - DeleteConsumerOverrideRequest._() : super(); factory DeleteConsumerOverrideRequest({ $core.String? name, $core.bool? force, - $core.Iterable<$3.QuotaSafetyCheck>? forceOnly, + $core.Iterable<$40.QuotaSafetyCheck>? forceOnly, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (force != null) { - _result.force = force; + $result.force = force; } if (forceOnly != null) { - _result.forceOnly.addAll(forceOnly); + $result.forceOnly.addAll(forceOnly); } - return _result; + return $result; } + DeleteConsumerOverrideRequest._() : super(); factory DeleteConsumerOverrideRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteConsumerOverrideRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteConsumerOverrideRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOB(2, _omitFieldNames ? '' : 'force') + ..pc<$40.QuotaSafetyCheck>( + 3, _omitFieldNames ? '' : 'forceOnly', $pb.PbFieldType.KE, + valueOf: $40.QuotaSafetyCheck.valueOf, + enumValues: $40.QuotaSafetyCheck.values, + defaultEnumValue: $40.QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2117,8 +2143,10 @@ class DeleteConsumerOverrideRequest extends $pb.GeneratedMessage { void Function(DeleteConsumerOverrideRequest) updates) => super.copyWith( (message) => updates(message as DeleteConsumerOverrideRequest)) - as DeleteConsumerOverrideRequest; // ignore: deprecated_member_use + as DeleteConsumerOverrideRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteConsumerOverrideRequest create() => DeleteConsumerOverrideRequest._(); @@ -2130,6 +2158,10 @@ class DeleteConsumerOverrideRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteConsumerOverrideRequest? _defaultInstance; + /// The resource name of the override to delete. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2142,6 +2174,9 @@ class DeleteConsumerOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Whether to force the deletion of the quota override. + /// Setting the force parameter to 'true' ignores all quota safety checks that + /// would fail the request. QuotaSafetyCheck lists all such validations. @$pb.TagNumber(2) $core.bool get force => $_getBF(1); @$pb.TagNumber(2) @@ -2154,62 +2189,51 @@ class DeleteConsumerOverrideRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearForce() => clearField(2); + /// The list of quota safety checks to ignore before the override mutation. + /// Unlike 'force' field that ignores all the quota safety checks, the + /// 'force_only' field ignores only the specified checks; other checks are + /// still enforced. The 'force' and 'force_only' fields cannot both be set. @$pb.TagNumber(3) - $core.List<$3.QuotaSafetyCheck> get forceOnly => $_getList(2); + $core.List<$40.QuotaSafetyCheck> get forceOnly => $_getList(2); } +/// Request message for ListConsumerOverrides class ListConsumerOverridesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListConsumerOverridesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListConsumerOverridesRequest._() : super(); factory ListConsumerOverridesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListConsumerOverridesRequest._() : super(); factory ListConsumerOverridesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListConsumerOverridesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListConsumerOverridesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2222,8 +2246,10 @@ class ListConsumerOverridesRequest extends $pb.GeneratedMessage { void Function(ListConsumerOverridesRequest) updates) => super.copyWith( (message) => updates(message as ListConsumerOverridesRequest)) - as ListConsumerOverridesRequest; // ignore: deprecated_member_use + as ListConsumerOverridesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListConsumerOverridesRequest create() => ListConsumerOverridesRequest._(); @@ -2235,6 +2261,11 @@ class ListConsumerOverridesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListConsumerOverridesRequest? _defaultInstance; + /// The resource name of the parent quota limit, returned by a + /// ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2247,6 +2278,7 @@ class ListConsumerOverridesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Requested size of the next page of data. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -2259,6 +2291,8 @@ class ListConsumerOverridesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Token identifying which result to start with; returned by a previous list + /// call. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -2272,47 +2306,40 @@ class ListConsumerOverridesRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// Response message for ListConsumerOverrides. class ListConsumerOverridesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListConsumerOverridesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pc<$3.QuotaOverride>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overrides', - $pb.PbFieldType.PM, - subBuilder: $3.QuotaOverride.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListConsumerOverridesResponse._() : super(); factory ListConsumerOverridesResponse({ - $core.Iterable<$3.QuotaOverride>? overrides, + $core.Iterable<$40.QuotaOverride>? overrides, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (overrides != null) { - _result.overrides.addAll(overrides); + $result.overrides.addAll(overrides); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListConsumerOverridesResponse._() : super(); factory ListConsumerOverridesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListConsumerOverridesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListConsumerOverridesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pc<$40.QuotaOverride>( + 1, _omitFieldNames ? '' : 'overrides', $pb.PbFieldType.PM, + subBuilder: $40.QuotaOverride.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2325,8 +2352,10 @@ class ListConsumerOverridesResponse extends $pb.GeneratedMessage { void Function(ListConsumerOverridesResponse) updates) => super.copyWith( (message) => updates(message as ListConsumerOverridesResponse)) - as ListConsumerOverridesResponse; // ignore: deprecated_member_use + as ListConsumerOverridesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListConsumerOverridesResponse create() => ListConsumerOverridesResponse._(); @@ -2338,9 +2367,12 @@ class ListConsumerOverridesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListConsumerOverridesResponse? _defaultInstance; + /// Consumer overrides on this limit. @$pb.TagNumber(1) - $core.List<$3.QuotaOverride> get overrides => $_getList(0); + $core.List<$40.QuotaOverride> get overrides => $_getList(0); + /// Token identifying which result to start with; returned by a previous list + /// call. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -2354,35 +2386,18 @@ class ListConsumerOverridesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Response message for BatchCreateConsumerOverrides class BatchCreateConsumerOverridesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchCreateConsumerOverridesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pc<$3.QuotaOverride>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overrides', - $pb.PbFieldType.PM, - subBuilder: $3.QuotaOverride.create) - ..hasRequiredFields = false; - - BatchCreateConsumerOverridesResponse._() : super(); factory BatchCreateConsumerOverridesResponse({ - $core.Iterable<$3.QuotaOverride>? overrides, + $core.Iterable<$40.QuotaOverride>? overrides, }) { - final _result = create(); + final $result = create(); if (overrides != null) { - _result.overrides.addAll(overrides); + $result.overrides.addAll(overrides); } - return _result; + return $result; } + BatchCreateConsumerOverridesResponse._() : super(); factory BatchCreateConsumerOverridesResponse.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -2390,6 +2405,17 @@ class BatchCreateConsumerOverridesResponse extends $pb.GeneratedMessage { factory BatchCreateConsumerOverridesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchCreateConsumerOverridesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pc<$40.QuotaOverride>( + 1, _omitFieldNames ? '' : 'overrides', $pb.PbFieldType.PM, + subBuilder: $40.QuotaOverride.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') @@ -2402,8 +2428,10 @@ class BatchCreateConsumerOverridesResponse extends $pb.GeneratedMessage { void Function(BatchCreateConsumerOverridesResponse) updates) => super.copyWith((message) => updates(message as BatchCreateConsumerOverridesResponse)) - as BatchCreateConsumerOverridesResponse; // ignore: deprecated_member_use + as BatchCreateConsumerOverridesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchCreateConsumerOverridesResponse create() => BatchCreateConsumerOverridesResponse._(); @@ -2416,74 +2444,66 @@ class BatchCreateConsumerOverridesResponse extends $pb.GeneratedMessage { BatchCreateConsumerOverridesResponse>(create); static BatchCreateConsumerOverridesResponse? _defaultInstance; + /// The overrides that were created. @$pb.TagNumber(1) - $core.List<$3.QuotaOverride> get overrides => $_getList(0); + $core.List<$40.QuotaOverride> get overrides => $_getList(0); } enum ImportConsumerOverridesRequest_Source { inlineSource, notSet } +/// Request message for ImportConsumerOverrides class ImportConsumerOverridesRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, ImportConsumerOverridesRequest_Source> - _ImportConsumerOverridesRequest_SourceByTag = { - 2: ImportConsumerOverridesRequest_Source.inlineSource, - 0: ImportConsumerOverridesRequest_Source.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ImportConsumerOverridesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..oo(0, [2]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$3.OverrideInlineSource>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'inlineSource', - subBuilder: $3.OverrideInlineSource.create) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'force') - ..pc<$3.QuotaSafetyCheck>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'forceOnly', - $pb.PbFieldType.PE, - valueOf: $3.QuotaSafetyCheck.valueOf, - enumValues: $3.QuotaSafetyCheck.values) - ..hasRequiredFields = false; - - ImportConsumerOverridesRequest._() : super(); factory ImportConsumerOverridesRequest({ $core.String? parent, - $3.OverrideInlineSource? inlineSource, + $40.OverrideInlineSource? inlineSource, $core.bool? force, - $core.Iterable<$3.QuotaSafetyCheck>? forceOnly, + $core.Iterable<$40.QuotaSafetyCheck>? forceOnly, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (inlineSource != null) { - _result.inlineSource = inlineSource; + $result.inlineSource = inlineSource; } if (force != null) { - _result.force = force; + $result.force = force; } if (forceOnly != null) { - _result.forceOnly.addAll(forceOnly); + $result.forceOnly.addAll(forceOnly); } - return _result; + return $result; } + ImportConsumerOverridesRequest._() : super(); factory ImportConsumerOverridesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportConsumerOverridesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, ImportConsumerOverridesRequest_Source> + _ImportConsumerOverridesRequest_SourceByTag = { + 2: ImportConsumerOverridesRequest_Source.inlineSource, + 0: ImportConsumerOverridesRequest_Source.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportConsumerOverridesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..oo(0, [2]) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$40.OverrideInlineSource>(2, _omitFieldNames ? '' : 'inlineSource', + subBuilder: $40.OverrideInlineSource.create) + ..aOB(3, _omitFieldNames ? '' : 'force') + ..pc<$40.QuotaSafetyCheck>( + 4, _omitFieldNames ? '' : 'forceOnly', $pb.PbFieldType.KE, + valueOf: $40.QuotaSafetyCheck.valueOf, + enumValues: $40.QuotaSafetyCheck.values, + defaultEnumValue: $40.QuotaSafetyCheck.QUOTA_SAFETY_CHECK_UNSPECIFIED) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2496,8 +2516,10 @@ class ImportConsumerOverridesRequest extends $pb.GeneratedMessage { void Function(ImportConsumerOverridesRequest) updates) => super.copyWith( (message) => updates(message as ImportConsumerOverridesRequest)) - as ImportConsumerOverridesRequest; // ignore: deprecated_member_use + as ImportConsumerOverridesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportConsumerOverridesRequest create() => ImportConsumerOverridesRequest._(); @@ -2513,6 +2535,10 @@ class ImportConsumerOverridesRequest extends $pb.GeneratedMessage { _ImportConsumerOverridesRequest_SourceByTag[$_whichOneof(0)]!; void clearSource() => clearField($_whichOneof(0)); + /// The resource name of the consumer. + /// + /// An example name would be: + /// `projects/123/services/compute.googleapis.com` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2525,10 +2551,11 @@ class ImportConsumerOverridesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// The import data is specified in the request message itself @$pb.TagNumber(2) - $3.OverrideInlineSource get inlineSource => $_getN(1); + $40.OverrideInlineSource get inlineSource => $_getN(1); @$pb.TagNumber(2) - set inlineSource($3.OverrideInlineSource v) { + set inlineSource($40.OverrideInlineSource v) { setField(2, v); } @@ -2537,8 +2564,11 @@ class ImportConsumerOverridesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearInlineSource() => clearField(2); @$pb.TagNumber(2) - $3.OverrideInlineSource ensureInlineSource() => $_ensure(1); + $40.OverrideInlineSource ensureInlineSource() => $_ensure(1); + /// Whether to force the creation of the quota overrides. + /// Setting the force parameter to 'true' ignores all quota safety checks that + /// would fail the request. QuotaSafetyCheck lists all such validations. @$pb.TagNumber(3) $core.bool get force => $_getBF(2); @$pb.TagNumber(3) @@ -2551,45 +2581,43 @@ class ImportConsumerOverridesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearForce() => clearField(3); + /// The list of quota safety checks to ignore before the override mutation. + /// Unlike 'force' field that ignores all the quota safety checks, the + /// 'force_only' field ignores only the specified checks; other checks are + /// still enforced. The 'force' and 'force_only' fields cannot both be set. @$pb.TagNumber(4) - $core.List<$3.QuotaSafetyCheck> get forceOnly => $_getList(3); + $core.List<$40.QuotaSafetyCheck> get forceOnly => $_getList(3); } +/// Response message for ImportConsumerOverrides class ImportConsumerOverridesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ImportConsumerOverridesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pc<$3.QuotaOverride>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'overrides', - $pb.PbFieldType.PM, - subBuilder: $3.QuotaOverride.create) - ..hasRequiredFields = false; - - ImportConsumerOverridesResponse._() : super(); factory ImportConsumerOverridesResponse({ - $core.Iterable<$3.QuotaOverride>? overrides, + $core.Iterable<$40.QuotaOverride>? overrides, }) { - final _result = create(); + final $result = create(); if (overrides != null) { - _result.overrides.addAll(overrides); + $result.overrides.addAll(overrides); } - return _result; + return $result; } + ImportConsumerOverridesResponse._() : super(); factory ImportConsumerOverridesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportConsumerOverridesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportConsumerOverridesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pc<$40.QuotaOverride>( + 1, _omitFieldNames ? '' : 'overrides', $pb.PbFieldType.PM, + subBuilder: $40.QuotaOverride.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') @@ -2602,8 +2630,10 @@ class ImportConsumerOverridesResponse extends $pb.GeneratedMessage { void Function(ImportConsumerOverridesResponse) updates) => super.copyWith( (message) => updates(message as ImportConsumerOverridesResponse)) - as ImportConsumerOverridesResponse; // ignore: deprecated_member_use + as ImportConsumerOverridesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportConsumerOverridesResponse create() => ImportConsumerOverridesResponse._(); @@ -2616,30 +2646,31 @@ class ImportConsumerOverridesResponse extends $pb.GeneratedMessage { create); static ImportConsumerOverridesResponse? _defaultInstance; + /// The overrides that were created from the imported data. @$pb.TagNumber(1) - $core.List<$3.QuotaOverride> get overrides => $_getList(0); + $core.List<$40.QuotaOverride> get overrides => $_getList(0); } +/// Metadata message that provides information such as progress, +/// partial failures, and similar information on each GetOperation call +/// of LRO returned by ImportConsumerOverrides. class ImportConsumerOverridesMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ImportConsumerOverridesMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - ImportConsumerOverridesMetadata._() : super(); factory ImportConsumerOverridesMetadata() => create(); + ImportConsumerOverridesMetadata._() : super(); factory ImportConsumerOverridesMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportConsumerOverridesMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportConsumerOverridesMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + 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') @@ -2652,8 +2683,10 @@ class ImportConsumerOverridesMetadata extends $pb.GeneratedMessage { void Function(ImportConsumerOverridesMetadata) updates) => super.copyWith( (message) => updates(message as ImportConsumerOverridesMetadata)) - as ImportConsumerOverridesMetadata; // ignore: deprecated_member_use + as ImportConsumerOverridesMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportConsumerOverridesMetadata create() => ImportConsumerOverridesMetadata._(); @@ -2667,41 +2700,35 @@ class ImportConsumerOverridesMetadata extends $pb.GeneratedMessage { static ImportConsumerOverridesMetadata? _defaultInstance; } +/// Response message for ImportAdminQuotaPolicies class ImportAdminQuotaPoliciesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ImportAdminQuotaPoliciesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..pc<$3.AdminQuotaPolicy>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'policies', - $pb.PbFieldType.PM, - subBuilder: $3.AdminQuotaPolicy.create) - ..hasRequiredFields = false; - - ImportAdminQuotaPoliciesResponse._() : super(); factory ImportAdminQuotaPoliciesResponse({ - $core.Iterable<$3.AdminQuotaPolicy>? policies, + $core.Iterable<$40.AdminQuotaPolicy>? policies, }) { - final _result = create(); + final $result = create(); if (policies != null) { - _result.policies.addAll(policies); + $result.policies.addAll(policies); } - return _result; + return $result; } + ImportAdminQuotaPoliciesResponse._() : super(); factory ImportAdminQuotaPoliciesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportAdminQuotaPoliciesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportAdminQuotaPoliciesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..pc<$40.AdminQuotaPolicy>( + 1, _omitFieldNames ? '' : 'policies', $pb.PbFieldType.PM, + subBuilder: $40.AdminQuotaPolicy.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') @@ -2714,8 +2741,10 @@ class ImportAdminQuotaPoliciesResponse extends $pb.GeneratedMessage { void Function(ImportAdminQuotaPoliciesResponse) updates) => super.copyWith( (message) => updates(message as ImportAdminQuotaPoliciesResponse)) - as ImportAdminQuotaPoliciesResponse; // ignore: deprecated_member_use + as ImportAdminQuotaPoliciesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportAdminQuotaPoliciesResponse create() => ImportAdminQuotaPoliciesResponse._(); @@ -2728,30 +2757,31 @@ class ImportAdminQuotaPoliciesResponse extends $pb.GeneratedMessage { create); static ImportAdminQuotaPoliciesResponse? _defaultInstance; + /// The policies that were created from the imported data. @$pb.TagNumber(1) - $core.List<$3.AdminQuotaPolicy> get policies => $_getList(0); + $core.List<$40.AdminQuotaPolicy> get policies => $_getList(0); } +/// Metadata message that provides information such as progress, +/// partial failures, and similar information on each GetOperation call +/// of LRO returned by ImportAdminQuotaPolicies. class ImportAdminQuotaPoliciesMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ImportAdminQuotaPoliciesMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - ImportAdminQuotaPoliciesMetadata._() : super(); factory ImportAdminQuotaPoliciesMetadata() => create(); + ImportAdminQuotaPoliciesMetadata._() : super(); factory ImportAdminQuotaPoliciesMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportAdminQuotaPoliciesMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportAdminQuotaPoliciesMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + 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') @@ -2764,8 +2794,10 @@ class ImportAdminQuotaPoliciesMetadata extends $pb.GeneratedMessage { void Function(ImportAdminQuotaPoliciesMetadata) updates) => super.copyWith( (message) => updates(message as ImportAdminQuotaPoliciesMetadata)) - as ImportAdminQuotaPoliciesMetadata; // ignore: deprecated_member_use + as ImportAdminQuotaPoliciesMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportAdminQuotaPoliciesMetadata create() => ImportAdminQuotaPoliciesMetadata._(); @@ -2779,26 +2811,26 @@ class ImportAdminQuotaPoliciesMetadata extends $pb.GeneratedMessage { static ImportAdminQuotaPoliciesMetadata? _defaultInstance; } +/// Metadata message that provides information such as progress, +/// partial failures, and similar information on each GetOperation call +/// of LRO returned by CreateAdminQuotaPolicy. class CreateAdminQuotaPolicyMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateAdminQuotaPolicyMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - CreateAdminQuotaPolicyMetadata._() : super(); factory CreateAdminQuotaPolicyMetadata() => create(); + CreateAdminQuotaPolicyMetadata._() : super(); factory CreateAdminQuotaPolicyMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateAdminQuotaPolicyMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateAdminQuotaPolicyMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + 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') @@ -2811,8 +2843,10 @@ class CreateAdminQuotaPolicyMetadata extends $pb.GeneratedMessage { void Function(CreateAdminQuotaPolicyMetadata) updates) => super.copyWith( (message) => updates(message as CreateAdminQuotaPolicyMetadata)) - as CreateAdminQuotaPolicyMetadata; // ignore: deprecated_member_use + as CreateAdminQuotaPolicyMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateAdminQuotaPolicyMetadata create() => CreateAdminQuotaPolicyMetadata._(); @@ -2825,26 +2859,26 @@ class CreateAdminQuotaPolicyMetadata extends $pb.GeneratedMessage { static CreateAdminQuotaPolicyMetadata? _defaultInstance; } +/// Metadata message that provides information such as progress, +/// partial failures, and similar information on each GetOperation call +/// of LRO returned by UpdateAdminQuotaPolicy. class UpdateAdminQuotaPolicyMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateAdminQuotaPolicyMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - UpdateAdminQuotaPolicyMetadata._() : super(); factory UpdateAdminQuotaPolicyMetadata() => create(); + UpdateAdminQuotaPolicyMetadata._() : super(); factory UpdateAdminQuotaPolicyMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateAdminQuotaPolicyMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateAdminQuotaPolicyMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + 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') @@ -2857,8 +2891,10 @@ class UpdateAdminQuotaPolicyMetadata extends $pb.GeneratedMessage { void Function(UpdateAdminQuotaPolicyMetadata) updates) => super.copyWith( (message) => updates(message as UpdateAdminQuotaPolicyMetadata)) - as UpdateAdminQuotaPolicyMetadata; // ignore: deprecated_member_use + as UpdateAdminQuotaPolicyMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateAdminQuotaPolicyMetadata create() => UpdateAdminQuotaPolicyMetadata._(); @@ -2871,26 +2907,26 @@ class UpdateAdminQuotaPolicyMetadata extends $pb.GeneratedMessage { static UpdateAdminQuotaPolicyMetadata? _defaultInstance; } +/// Metadata message that provides information such as progress, +/// partial failures, and similar information on each GetOperation call +/// of LRO returned by DeleteAdminQuotaPolicy. class DeleteAdminQuotaPolicyMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteAdminQuotaPolicyMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - DeleteAdminQuotaPolicyMetadata._() : super(); factory DeleteAdminQuotaPolicyMetadata() => create(); + DeleteAdminQuotaPolicyMetadata._() : super(); factory DeleteAdminQuotaPolicyMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteAdminQuotaPolicyMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteAdminQuotaPolicyMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + 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') @@ -2903,8 +2939,10 @@ class DeleteAdminQuotaPolicyMetadata extends $pb.GeneratedMessage { void Function(DeleteAdminQuotaPolicyMetadata) updates) => super.copyWith( (message) => updates(message as DeleteAdminQuotaPolicyMetadata)) - as DeleteAdminQuotaPolicyMetadata; // ignore: deprecated_member_use + as DeleteAdminQuotaPolicyMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteAdminQuotaPolicyMetadata create() => DeleteAdminQuotaPolicyMetadata._(); @@ -2917,39 +2955,33 @@ class DeleteAdminQuotaPolicyMetadata extends $pb.GeneratedMessage { static DeleteAdminQuotaPolicyMetadata? _defaultInstance; } +/// Request message for generating service identity. class GenerateServiceIdentityRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GenerateServiceIdentityRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..hasRequiredFields = false; - - GenerateServiceIdentityRequest._() : super(); factory GenerateServiceIdentityRequest({ $core.String? parent, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } - return _result; + return $result; } + GenerateServiceIdentityRequest._() : super(); factory GenerateServiceIdentityRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GenerateServiceIdentityRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GenerateServiceIdentityRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2962,8 +2994,10 @@ class GenerateServiceIdentityRequest extends $pb.GeneratedMessage { void Function(GenerateServiceIdentityRequest) updates) => super.copyWith( (message) => updates(message as GenerateServiceIdentityRequest)) - as GenerateServiceIdentityRequest; // ignore: deprecated_member_use + as GenerateServiceIdentityRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GenerateServiceIdentityRequest create() => GenerateServiceIdentityRequest._(); @@ -2975,6 +3009,15 @@ class GenerateServiceIdentityRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GenerateServiceIdentityRequest? _defaultInstance; + /// Name of the consumer and service to generate an identity for. + /// + /// The `GenerateServiceIdentity` methods currently support projects, folders, + /// organizations. + /// + /// Example parents would be: + /// `projects/123/services/example.googleapis.com` + /// `folders/123/services/example.googleapis.com` + /// `organizations/123/services/example.googleapis.com` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2988,48 +3031,44 @@ class GenerateServiceIdentityRequest extends $pb.GeneratedMessage { void clearParent() => clearField(1); } +/// Response message for getting service identity. class GetServiceIdentityResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceIdentityResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..aOM<$3.ServiceIdentity>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'identity', - subBuilder: $3.ServiceIdentity.create) - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', - $pb.PbFieldType.OE, - defaultOrMaker: GetServiceIdentityResponse_IdentityState.IDENTITY_STATE_UNSPECIFIED, - valueOf: GetServiceIdentityResponse_IdentityState.valueOf, - enumValues: GetServiceIdentityResponse_IdentityState.values) - ..hasRequiredFields = false; - - GetServiceIdentityResponse._() : super(); factory GetServiceIdentityResponse({ - $3.ServiceIdentity? identity, + $40.ServiceIdentity? identity, GetServiceIdentityResponse_IdentityState? state, }) { - final _result = create(); + final $result = create(); if (identity != null) { - _result.identity = identity; + $result.identity = identity; } if (state != null) { - _result.state = state; + $result.state = state; } - return _result; + return $result; } + GetServiceIdentityResponse._() : super(); factory GetServiceIdentityResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceIdentityResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceIdentityResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + createEmptyInstance: create) + ..aOM<$40.ServiceIdentity>(1, _omitFieldNames ? '' : 'identity', + subBuilder: $40.ServiceIdentity.create) + ..e( + 2, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: + GetServiceIdentityResponse_IdentityState.IDENTITY_STATE_UNSPECIFIED, + valueOf: GetServiceIdentityResponse_IdentityState.valueOf, + enumValues: GetServiceIdentityResponse_IdentityState.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3042,8 +3081,10 @@ class GetServiceIdentityResponse extends $pb.GeneratedMessage { void Function(GetServiceIdentityResponse) updates) => super.copyWith( (message) => updates(message as GetServiceIdentityResponse)) - as GetServiceIdentityResponse; // ignore: deprecated_member_use + as GetServiceIdentityResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceIdentityResponse create() => GetServiceIdentityResponse._(); GetServiceIdentityResponse createEmptyInstance() => create(); @@ -3054,10 +3095,13 @@ class GetServiceIdentityResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceIdentityResponse? _defaultInstance; + /// Service identity that service producer can use to access consumer + /// resources. If exists is true, it contains email and unique_id. If exists is + /// false, it contains pre-constructed email and empty unique_id. @$pb.TagNumber(1) - $3.ServiceIdentity get identity => $_getN(0); + $40.ServiceIdentity get identity => $_getN(0); @$pb.TagNumber(1) - set identity($3.ServiceIdentity v) { + set identity($40.ServiceIdentity v) { setField(1, v); } @@ -3066,8 +3110,9 @@ class GetServiceIdentityResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearIdentity() => clearField(1); @$pb.TagNumber(1) - $3.ServiceIdentity ensureIdentity() => $_ensure(0); + $40.ServiceIdentity ensureIdentity() => $_ensure(0); + /// Service identity state. @$pb.TagNumber(2) GetServiceIdentityResponse_IdentityState get state => $_getN(1); @$pb.TagNumber(2) @@ -3081,26 +3126,24 @@ class GetServiceIdentityResponse extends $pb.GeneratedMessage { void clearState() => clearField(2); } +/// Metadata for the `GetServiceIdentity` method. class GetServiceIdentityMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceIdentityMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api.serviceusage.v1beta1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - GetServiceIdentityMetadata._() : super(); factory GetServiceIdentityMetadata() => create(); + GetServiceIdentityMetadata._() : super(); factory GetServiceIdentityMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceIdentityMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceIdentityMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.api.serviceusage.v1beta1'), + 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') @@ -3113,8 +3156,10 @@ class GetServiceIdentityMetadata extends $pb.GeneratedMessage { void Function(GetServiceIdentityMetadata) updates) => super.copyWith( (message) => updates(message as GetServiceIdentityMetadata)) - as GetServiceIdentityMetadata; // ignore: deprecated_member_use + as GetServiceIdentityMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceIdentityMetadata create() => GetServiceIdentityMetadata._(); GetServiceIdentityMetadata createEmptyInstance() => create(); @@ -3125,3 +3170,7 @@ class GetServiceIdentityMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceIdentityMetadata? _defaultInstance; } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbenum.dart index 812c8f49..82811143 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbenum.dart @@ -1,27 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1beta1/serviceusage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Enum for service identity state. class GetServiceIdentityResponse_IdentityState extends $pb.ProtobufEnum { static const GetServiceIdentityResponse_IdentityState IDENTITY_STATE_UNSPECIFIED = GetServiceIdentityResponse_IdentityState._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'IDENTITY_STATE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'IDENTITY_STATE_UNSPECIFIED'); static const GetServiceIdentityResponse_IdentityState ACTIVE = GetServiceIdentityResponse_IdentityState._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ACTIVE'); + 1, _omitEnumNames ? '' : 'ACTIVE'); static const $core.List values = [ @@ -37,3 +36,5 @@ class GetServiceIdentityResponse_IdentityState extends $pb.ProtobufEnum { const GetServiceIdentityResponse_IdentityState._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbgrpc.dart index d9bba20d..803df0d6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbgrpc.dart @@ -1,121 +1,129 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1beta1/serviceusage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'serviceusage.pb.dart' as $2; +import 'package:protobuf/protobuf.dart' as $pb; + import '../../../longrunning/operations.pb.dart' as $0; -import 'resources.pb.dart' as $3; +import 'resources.pb.dart' as $40; +import 'serviceusage.pb.dart' as $39; + export 'serviceusage.pb.dart'; +@$pb.GrpcServiceName('google.api.serviceusage.v1beta1.ServiceUsage') class ServiceUsageClient extends $grpc.Client { static final _$enableService = - $grpc.ClientMethod<$2.EnableServiceRequest, $0.Operation>( + $grpc.ClientMethod<$39.EnableServiceRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/EnableService', - ($2.EnableServiceRequest value) => value.writeToBuffer(), + ($39.EnableServiceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$disableService = - $grpc.ClientMethod<$2.DisableServiceRequest, $0.Operation>( + $grpc.ClientMethod<$39.DisableServiceRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/DisableService', - ($2.DisableServiceRequest value) => value.writeToBuffer(), + ($39.DisableServiceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$getService = - $grpc.ClientMethod<$2.GetServiceRequest, $3.Service>( + $grpc.ClientMethod<$39.GetServiceRequest, $40.Service>( '/google.api.serviceusage.v1beta1.ServiceUsage/GetService', - ($2.GetServiceRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.Service.fromBuffer(value)); + ($39.GetServiceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $40.Service.fromBuffer(value)); static final _$listServices = - $grpc.ClientMethod<$2.ListServicesRequest, $2.ListServicesResponse>( + $grpc.ClientMethod<$39.ListServicesRequest, $39.ListServicesResponse>( '/google.api.serviceusage.v1beta1.ServiceUsage/ListServices', - ($2.ListServicesRequest value) => value.writeToBuffer(), + ($39.ListServicesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListServicesResponse.fromBuffer(value)); + $39.ListServicesResponse.fromBuffer(value)); static final _$batchEnableServices = - $grpc.ClientMethod<$2.BatchEnableServicesRequest, $0.Operation>( + $grpc.ClientMethod<$39.BatchEnableServicesRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/BatchEnableServices', - ($2.BatchEnableServicesRequest value) => value.writeToBuffer(), + ($39.BatchEnableServicesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$listConsumerQuotaMetrics = $grpc.ClientMethod< - $2.ListConsumerQuotaMetricsRequest, - $2.ListConsumerQuotaMetricsResponse>( + $39.ListConsumerQuotaMetricsRequest, + $39.ListConsumerQuotaMetricsResponse>( '/google.api.serviceusage.v1beta1.ServiceUsage/ListConsumerQuotaMetrics', - ($2.ListConsumerQuotaMetricsRequest value) => value.writeToBuffer(), + ($39.ListConsumerQuotaMetricsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListConsumerQuotaMetricsResponse.fromBuffer(value)); + $39.ListConsumerQuotaMetricsResponse.fromBuffer(value)); static final _$getConsumerQuotaMetric = $grpc.ClientMethod< - $2.GetConsumerQuotaMetricRequest, $3.ConsumerQuotaMetric>( + $39.GetConsumerQuotaMetricRequest, $40.ConsumerQuotaMetric>( '/google.api.serviceusage.v1beta1.ServiceUsage/GetConsumerQuotaMetric', - ($2.GetConsumerQuotaMetricRequest value) => value.writeToBuffer(), + ($39.GetConsumerQuotaMetricRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.ConsumerQuotaMetric.fromBuffer(value)); + $40.ConsumerQuotaMetric.fromBuffer(value)); static final _$getConsumerQuotaLimit = $grpc.ClientMethod< - $2.GetConsumerQuotaLimitRequest, $3.ConsumerQuotaLimit>( + $39.GetConsumerQuotaLimitRequest, $40.ConsumerQuotaLimit>( '/google.api.serviceusage.v1beta1.ServiceUsage/GetConsumerQuotaLimit', - ($2.GetConsumerQuotaLimitRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.ConsumerQuotaLimit.fromBuffer(value)); + ($39.GetConsumerQuotaLimitRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $40.ConsumerQuotaLimit.fromBuffer(value)); static final _$createAdminOverride = - $grpc.ClientMethod<$2.CreateAdminOverrideRequest, $0.Operation>( + $grpc.ClientMethod<$39.CreateAdminOverrideRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/CreateAdminOverride', - ($2.CreateAdminOverrideRequest value) => value.writeToBuffer(), + ($39.CreateAdminOverrideRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$updateAdminOverride = - $grpc.ClientMethod<$2.UpdateAdminOverrideRequest, $0.Operation>( + $grpc.ClientMethod<$39.UpdateAdminOverrideRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/UpdateAdminOverride', - ($2.UpdateAdminOverrideRequest value) => value.writeToBuffer(), + ($39.UpdateAdminOverrideRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$deleteAdminOverride = - $grpc.ClientMethod<$2.DeleteAdminOverrideRequest, $0.Operation>( + $grpc.ClientMethod<$39.DeleteAdminOverrideRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/DeleteAdminOverride', - ($2.DeleteAdminOverrideRequest value) => value.writeToBuffer(), + ($39.DeleteAdminOverrideRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$listAdminOverrides = $grpc.ClientMethod< - $2.ListAdminOverridesRequest, $2.ListAdminOverridesResponse>( + $39.ListAdminOverridesRequest, $39.ListAdminOverridesResponse>( '/google.api.serviceusage.v1beta1.ServiceUsage/ListAdminOverrides', - ($2.ListAdminOverridesRequest value) => value.writeToBuffer(), + ($39.ListAdminOverridesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListAdminOverridesResponse.fromBuffer(value)); + $39.ListAdminOverridesResponse.fromBuffer(value)); static final _$importAdminOverrides = - $grpc.ClientMethod<$2.ImportAdminOverridesRequest, $0.Operation>( + $grpc.ClientMethod<$39.ImportAdminOverridesRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/ImportAdminOverrides', - ($2.ImportAdminOverridesRequest value) => value.writeToBuffer(), + ($39.ImportAdminOverridesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$createConsumerOverride = $grpc.ClientMethod< - $2.CreateConsumerOverrideRequest, $0.Operation>( + $39.CreateConsumerOverrideRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/CreateConsumerOverride', - ($2.CreateConsumerOverrideRequest value) => value.writeToBuffer(), + ($39.CreateConsumerOverrideRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$updateConsumerOverride = $grpc.ClientMethod< - $2.UpdateConsumerOverrideRequest, $0.Operation>( + $39.UpdateConsumerOverrideRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/UpdateConsumerOverride', - ($2.UpdateConsumerOverrideRequest value) => value.writeToBuffer(), + ($39.UpdateConsumerOverrideRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$deleteConsumerOverride = $grpc.ClientMethod< - $2.DeleteConsumerOverrideRequest, $0.Operation>( + $39.DeleteConsumerOverrideRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/DeleteConsumerOverride', - ($2.DeleteConsumerOverrideRequest value) => value.writeToBuffer(), + ($39.DeleteConsumerOverrideRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$listConsumerOverrides = $grpc.ClientMethod< - $2.ListConsumerOverridesRequest, $2.ListConsumerOverridesResponse>( + $39.ListConsumerOverridesRequest, $39.ListConsumerOverridesResponse>( '/google.api.serviceusage.v1beta1.ServiceUsage/ListConsumerOverrides', - ($2.ListConsumerOverridesRequest value) => value.writeToBuffer(), + ($39.ListConsumerOverridesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListConsumerOverridesResponse.fromBuffer(value)); + $39.ListConsumerOverridesResponse.fromBuffer(value)); static final _$importConsumerOverrides = $grpc.ClientMethod< - $2.ImportConsumerOverridesRequest, $0.Operation>( + $39.ImportConsumerOverridesRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/ImportConsumerOverrides', - ($2.ImportConsumerOverridesRequest value) => value.writeToBuffer(), + ($39.ImportConsumerOverridesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$generateServiceIdentity = $grpc.ClientMethod< - $2.GenerateServiceIdentityRequest, $0.Operation>( + $39.GenerateServiceIdentityRequest, $0.Operation>( '/google.api.serviceusage.v1beta1.ServiceUsage/GenerateServiceIdentity', - ($2.GenerateServiceIdentityRequest value) => value.writeToBuffer(), + ($39.GenerateServiceIdentityRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); ServiceUsageClient($grpc.ClientChannel channel, @@ -124,434 +132,440 @@ class ServiceUsageClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); $grpc.ResponseFuture<$0.Operation> enableService( - $2.EnableServiceRequest request, + $39.EnableServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$enableService, request, options: options); } $grpc.ResponseFuture<$0.Operation> disableService( - $2.DisableServiceRequest request, + $39.DisableServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$disableService, request, options: options); } - $grpc.ResponseFuture<$3.Service> getService($2.GetServiceRequest request, + $grpc.ResponseFuture<$40.Service> getService($39.GetServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getService, request, options: options); } - $grpc.ResponseFuture<$2.ListServicesResponse> listServices( - $2.ListServicesRequest request, + $grpc.ResponseFuture<$39.ListServicesResponse> listServices( + $39.ListServicesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listServices, request, options: options); } $grpc.ResponseFuture<$0.Operation> batchEnableServices( - $2.BatchEnableServicesRequest request, + $39.BatchEnableServicesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$batchEnableServices, request, options: options); } - $grpc.ResponseFuture<$2.ListConsumerQuotaMetricsResponse> - listConsumerQuotaMetrics($2.ListConsumerQuotaMetricsRequest request, + $grpc.ResponseFuture<$39.ListConsumerQuotaMetricsResponse> + listConsumerQuotaMetrics($39.ListConsumerQuotaMetricsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listConsumerQuotaMetrics, request, options: options); } - $grpc.ResponseFuture<$3.ConsumerQuotaMetric> getConsumerQuotaMetric( - $2.GetConsumerQuotaMetricRequest request, + $grpc.ResponseFuture<$40.ConsumerQuotaMetric> getConsumerQuotaMetric( + $39.GetConsumerQuotaMetricRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getConsumerQuotaMetric, request, options: options); } - $grpc.ResponseFuture<$3.ConsumerQuotaLimit> getConsumerQuotaLimit( - $2.GetConsumerQuotaLimitRequest request, + $grpc.ResponseFuture<$40.ConsumerQuotaLimit> getConsumerQuotaLimit( + $39.GetConsumerQuotaLimitRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getConsumerQuotaLimit, request, options: options); } $grpc.ResponseFuture<$0.Operation> createAdminOverride( - $2.CreateAdminOverrideRequest request, + $39.CreateAdminOverrideRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createAdminOverride, request, options: options); } $grpc.ResponseFuture<$0.Operation> updateAdminOverride( - $2.UpdateAdminOverrideRequest request, + $39.UpdateAdminOverrideRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateAdminOverride, request, options: options); } $grpc.ResponseFuture<$0.Operation> deleteAdminOverride( - $2.DeleteAdminOverrideRequest request, + $39.DeleteAdminOverrideRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteAdminOverride, request, options: options); } - $grpc.ResponseFuture<$2.ListAdminOverridesResponse> listAdminOverrides( - $2.ListAdminOverridesRequest request, + $grpc.ResponseFuture<$39.ListAdminOverridesResponse> listAdminOverrides( + $39.ListAdminOverridesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listAdminOverrides, request, options: options); } $grpc.ResponseFuture<$0.Operation> importAdminOverrides( - $2.ImportAdminOverridesRequest request, + $39.ImportAdminOverridesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$importAdminOverrides, request, options: options); } $grpc.ResponseFuture<$0.Operation> createConsumerOverride( - $2.CreateConsumerOverrideRequest request, + $39.CreateConsumerOverrideRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createConsumerOverride, request, options: options); } $grpc.ResponseFuture<$0.Operation> updateConsumerOverride( - $2.UpdateConsumerOverrideRequest request, + $39.UpdateConsumerOverrideRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateConsumerOverride, request, options: options); } $grpc.ResponseFuture<$0.Operation> deleteConsumerOverride( - $2.DeleteConsumerOverrideRequest request, + $39.DeleteConsumerOverrideRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteConsumerOverride, request, options: options); } - $grpc.ResponseFuture<$2.ListConsumerOverridesResponse> listConsumerOverrides( - $2.ListConsumerOverridesRequest request, + $grpc.ResponseFuture<$39.ListConsumerOverridesResponse> listConsumerOverrides( + $39.ListConsumerOverridesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listConsumerOverrides, request, options: options); } $grpc.ResponseFuture<$0.Operation> importConsumerOverrides( - $2.ImportConsumerOverridesRequest request, + $39.ImportConsumerOverridesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$importConsumerOverrides, request, options: options); } $grpc.ResponseFuture<$0.Operation> generateServiceIdentity( - $2.GenerateServiceIdentityRequest request, + $39.GenerateServiceIdentityRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$generateServiceIdentity, request, options: options); } } +@$pb.GrpcServiceName('google.api.serviceusage.v1beta1.ServiceUsage') abstract class ServiceUsageServiceBase extends $grpc.Service { $core.String get $name => 'google.api.serviceusage.v1beta1.ServiceUsage'; ServiceUsageServiceBase() { - $addMethod($grpc.ServiceMethod<$2.EnableServiceRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$39.EnableServiceRequest, $0.Operation>( 'EnableService', enableService_Pre, false, false, ($core.List<$core.int> value) => - $2.EnableServiceRequest.fromBuffer(value), + $39.EnableServiceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DisableServiceRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$39.DisableServiceRequest, $0.Operation>( 'DisableService', disableService_Pre, false, false, ($core.List<$core.int> value) => - $2.DisableServiceRequest.fromBuffer(value), + $39.DisableServiceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetServiceRequest, $3.Service>( + $addMethod($grpc.ServiceMethod<$39.GetServiceRequest, $40.Service>( 'GetService', getService_Pre, false, false, - ($core.List<$core.int> value) => $2.GetServiceRequest.fromBuffer(value), - ($3.Service value) => value.writeToBuffer())); + ($core.List<$core.int> value) => + $39.GetServiceRequest.fromBuffer(value), + ($40.Service value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.ListServicesRequest, $2.ListServicesResponse>( + $grpc.ServiceMethod<$39.ListServicesRequest, $39.ListServicesResponse>( 'ListServices', listServices_Pre, false, false, ($core.List<$core.int> value) => - $2.ListServicesRequest.fromBuffer(value), - ($2.ListServicesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.BatchEnableServicesRequest, $0.Operation>( - 'BatchEnableServices', - batchEnableServices_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.BatchEnableServicesRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListConsumerQuotaMetricsRequest, - $2.ListConsumerQuotaMetricsResponse>( + $39.ListServicesRequest.fromBuffer(value), + ($39.ListServicesResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$39.BatchEnableServicesRequest, $0.Operation>( + 'BatchEnableServices', + batchEnableServices_Pre, + false, + false, + ($core.List<$core.int> value) => + $39.BatchEnableServicesRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$39.ListConsumerQuotaMetricsRequest, + $39.ListConsumerQuotaMetricsResponse>( 'ListConsumerQuotaMetrics', listConsumerQuotaMetrics_Pre, false, false, ($core.List<$core.int> value) => - $2.ListConsumerQuotaMetricsRequest.fromBuffer(value), - ($2.ListConsumerQuotaMetricsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetConsumerQuotaMetricRequest, - $3.ConsumerQuotaMetric>( + $39.ListConsumerQuotaMetricsRequest.fromBuffer(value), + ($39.ListConsumerQuotaMetricsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$39.GetConsumerQuotaMetricRequest, + $40.ConsumerQuotaMetric>( 'GetConsumerQuotaMetric', getConsumerQuotaMetric_Pre, false, false, ($core.List<$core.int> value) => - $2.GetConsumerQuotaMetricRequest.fromBuffer(value), - ($3.ConsumerQuotaMetric value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetConsumerQuotaLimitRequest, - $3.ConsumerQuotaLimit>( + $39.GetConsumerQuotaMetricRequest.fromBuffer(value), + ($40.ConsumerQuotaMetric value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$39.GetConsumerQuotaLimitRequest, + $40.ConsumerQuotaLimit>( 'GetConsumerQuotaLimit', getConsumerQuotaLimit_Pre, false, false, ($core.List<$core.int> value) => - $2.GetConsumerQuotaLimitRequest.fromBuffer(value), - ($3.ConsumerQuotaLimit value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateAdminOverrideRequest, $0.Operation>( - 'CreateAdminOverride', - createAdminOverride_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.CreateAdminOverrideRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UpdateAdminOverrideRequest, $0.Operation>( - 'UpdateAdminOverride', - updateAdminOverride_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.UpdateAdminOverrideRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteAdminOverrideRequest, $0.Operation>( - 'DeleteAdminOverride', - deleteAdminOverride_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.DeleteAdminOverrideRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListAdminOverridesRequest, - $2.ListAdminOverridesResponse>( + $39.GetConsumerQuotaLimitRequest.fromBuffer(value), + ($40.ConsumerQuotaLimit value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$39.CreateAdminOverrideRequest, $0.Operation>( + 'CreateAdminOverride', + createAdminOverride_Pre, + false, + false, + ($core.List<$core.int> value) => + $39.CreateAdminOverrideRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$39.UpdateAdminOverrideRequest, $0.Operation>( + 'UpdateAdminOverride', + updateAdminOverride_Pre, + false, + false, + ($core.List<$core.int> value) => + $39.UpdateAdminOverrideRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$39.DeleteAdminOverrideRequest, $0.Operation>( + 'DeleteAdminOverride', + deleteAdminOverride_Pre, + false, + false, + ($core.List<$core.int> value) => + $39.DeleteAdminOverrideRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$39.ListAdminOverridesRequest, + $39.ListAdminOverridesResponse>( 'ListAdminOverrides', listAdminOverrides_Pre, false, false, ($core.List<$core.int> value) => - $2.ListAdminOverridesRequest.fromBuffer(value), - ($2.ListAdminOverridesResponse value) => value.writeToBuffer())); + $39.ListAdminOverridesRequest.fromBuffer(value), + ($39.ListAdminOverridesResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.ImportAdminOverridesRequest, $0.Operation>( + $grpc.ServiceMethod<$39.ImportAdminOverridesRequest, $0.Operation>( 'ImportAdminOverrides', importAdminOverrides_Pre, false, false, ($core.List<$core.int> value) => - $2.ImportAdminOverridesRequest.fromBuffer(value), + $39.ImportAdminOverridesRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.CreateConsumerOverrideRequest, $0.Operation>( + $grpc.ServiceMethod<$39.CreateConsumerOverrideRequest, $0.Operation>( 'CreateConsumerOverride', createConsumerOverride_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateConsumerOverrideRequest.fromBuffer(value), + $39.CreateConsumerOverrideRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.UpdateConsumerOverrideRequest, $0.Operation>( + $grpc.ServiceMethod<$39.UpdateConsumerOverrideRequest, $0.Operation>( 'UpdateConsumerOverride', updateConsumerOverride_Pre, false, false, ($core.List<$core.int> value) => - $2.UpdateConsumerOverrideRequest.fromBuffer(value), + $39.UpdateConsumerOverrideRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.DeleteConsumerOverrideRequest, $0.Operation>( + $grpc.ServiceMethod<$39.DeleteConsumerOverrideRequest, $0.Operation>( 'DeleteConsumerOverride', deleteConsumerOverride_Pre, false, false, ($core.List<$core.int> value) => - $2.DeleteConsumerOverrideRequest.fromBuffer(value), + $39.DeleteConsumerOverrideRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListConsumerOverridesRequest, - $2.ListConsumerOverridesResponse>( + $addMethod($grpc.ServiceMethod<$39.ListConsumerOverridesRequest, + $39.ListConsumerOverridesResponse>( 'ListConsumerOverrides', listConsumerOverrides_Pre, false, false, ($core.List<$core.int> value) => - $2.ListConsumerOverridesRequest.fromBuffer(value), - ($2.ListConsumerOverridesResponse value) => value.writeToBuffer())); + $39.ListConsumerOverridesRequest.fromBuffer(value), + ($39.ListConsumerOverridesResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.ImportConsumerOverridesRequest, $0.Operation>( + $grpc.ServiceMethod<$39.ImportConsumerOverridesRequest, $0.Operation>( 'ImportConsumerOverrides', importConsumerOverrides_Pre, false, false, ($core.List<$core.int> value) => - $2.ImportConsumerOverridesRequest.fromBuffer(value), + $39.ImportConsumerOverridesRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.GenerateServiceIdentityRequest, $0.Operation>( + $grpc.ServiceMethod<$39.GenerateServiceIdentityRequest, $0.Operation>( 'GenerateServiceIdentity', generateServiceIdentity_Pre, false, false, ($core.List<$core.int> value) => - $2.GenerateServiceIdentityRequest.fromBuffer(value), + $39.GenerateServiceIdentityRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); } $async.Future<$0.Operation> enableService_Pre($grpc.ServiceCall call, - $async.Future<$2.EnableServiceRequest> request) async { + $async.Future<$39.EnableServiceRequest> request) async { return enableService(call, await request); } $async.Future<$0.Operation> disableService_Pre($grpc.ServiceCall call, - $async.Future<$2.DisableServiceRequest> request) async { + $async.Future<$39.DisableServiceRequest> request) async { return disableService(call, await request); } - $async.Future<$3.Service> getService_Pre($grpc.ServiceCall call, - $async.Future<$2.GetServiceRequest> request) async { + $async.Future<$40.Service> getService_Pre($grpc.ServiceCall call, + $async.Future<$39.GetServiceRequest> request) async { return getService(call, await request); } - $async.Future<$2.ListServicesResponse> listServices_Pre( + $async.Future<$39.ListServicesResponse> listServices_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListServicesRequest> request) async { + $async.Future<$39.ListServicesRequest> request) async { return listServices(call, await request); } $async.Future<$0.Operation> batchEnableServices_Pre($grpc.ServiceCall call, - $async.Future<$2.BatchEnableServicesRequest> request) async { + $async.Future<$39.BatchEnableServicesRequest> request) async { return batchEnableServices(call, await request); } - $async.Future<$2.ListConsumerQuotaMetricsResponse> + $async.Future<$39.ListConsumerQuotaMetricsResponse> listConsumerQuotaMetrics_Pre($grpc.ServiceCall call, - $async.Future<$2.ListConsumerQuotaMetricsRequest> request) async { + $async.Future<$39.ListConsumerQuotaMetricsRequest> request) async { return listConsumerQuotaMetrics(call, await request); } - $async.Future<$3.ConsumerQuotaMetric> getConsumerQuotaMetric_Pre( + $async.Future<$40.ConsumerQuotaMetric> getConsumerQuotaMetric_Pre( $grpc.ServiceCall call, - $async.Future<$2.GetConsumerQuotaMetricRequest> request) async { + $async.Future<$39.GetConsumerQuotaMetricRequest> request) async { return getConsumerQuotaMetric(call, await request); } - $async.Future<$3.ConsumerQuotaLimit> getConsumerQuotaLimit_Pre( + $async.Future<$40.ConsumerQuotaLimit> getConsumerQuotaLimit_Pre( $grpc.ServiceCall call, - $async.Future<$2.GetConsumerQuotaLimitRequest> request) async { + $async.Future<$39.GetConsumerQuotaLimitRequest> request) async { return getConsumerQuotaLimit(call, await request); } $async.Future<$0.Operation> createAdminOverride_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateAdminOverrideRequest> request) async { + $async.Future<$39.CreateAdminOverrideRequest> request) async { return createAdminOverride(call, await request); } $async.Future<$0.Operation> updateAdminOverride_Pre($grpc.ServiceCall call, - $async.Future<$2.UpdateAdminOverrideRequest> request) async { + $async.Future<$39.UpdateAdminOverrideRequest> request) async { return updateAdminOverride(call, await request); } $async.Future<$0.Operation> deleteAdminOverride_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteAdminOverrideRequest> request) async { + $async.Future<$39.DeleteAdminOverrideRequest> request) async { return deleteAdminOverride(call, await request); } - $async.Future<$2.ListAdminOverridesResponse> listAdminOverrides_Pre( + $async.Future<$39.ListAdminOverridesResponse> listAdminOverrides_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListAdminOverridesRequest> request) async { + $async.Future<$39.ListAdminOverridesRequest> request) async { return listAdminOverrides(call, await request); } $async.Future<$0.Operation> importAdminOverrides_Pre($grpc.ServiceCall call, - $async.Future<$2.ImportAdminOverridesRequest> request) async { + $async.Future<$39.ImportAdminOverridesRequest> request) async { return importAdminOverrides(call, await request); } $async.Future<$0.Operation> createConsumerOverride_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateConsumerOverrideRequest> request) async { + $async.Future<$39.CreateConsumerOverrideRequest> request) async { return createConsumerOverride(call, await request); } $async.Future<$0.Operation> updateConsumerOverride_Pre($grpc.ServiceCall call, - $async.Future<$2.UpdateConsumerOverrideRequest> request) async { + $async.Future<$39.UpdateConsumerOverrideRequest> request) async { return updateConsumerOverride(call, await request); } $async.Future<$0.Operation> deleteConsumerOverride_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteConsumerOverrideRequest> request) async { + $async.Future<$39.DeleteConsumerOverrideRequest> request) async { return deleteConsumerOverride(call, await request); } - $async.Future<$2.ListConsumerOverridesResponse> listConsumerOverrides_Pre( + $async.Future<$39.ListConsumerOverridesResponse> listConsumerOverrides_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListConsumerOverridesRequest> request) async { + $async.Future<$39.ListConsumerOverridesRequest> request) async { return listConsumerOverrides(call, await request); } $async.Future<$0.Operation> importConsumerOverrides_Pre( $grpc.ServiceCall call, - $async.Future<$2.ImportConsumerOverridesRequest> request) async { + $async.Future<$39.ImportConsumerOverridesRequest> request) async { return importConsumerOverrides(call, await request); } $async.Future<$0.Operation> generateServiceIdentity_Pre( $grpc.ServiceCall call, - $async.Future<$2.GenerateServiceIdentityRequest> request) async { + $async.Future<$39.GenerateServiceIdentityRequest> request) async { return generateServiceIdentity(call, await request); } $async.Future<$0.Operation> enableService( - $grpc.ServiceCall call, $2.EnableServiceRequest request); + $grpc.ServiceCall call, $39.EnableServiceRequest request); $async.Future<$0.Operation> disableService( - $grpc.ServiceCall call, $2.DisableServiceRequest request); - $async.Future<$3.Service> getService( - $grpc.ServiceCall call, $2.GetServiceRequest request); - $async.Future<$2.ListServicesResponse> listServices( - $grpc.ServiceCall call, $2.ListServicesRequest request); + $grpc.ServiceCall call, $39.DisableServiceRequest request); + $async.Future<$40.Service> getService( + $grpc.ServiceCall call, $39.GetServiceRequest request); + $async.Future<$39.ListServicesResponse> listServices( + $grpc.ServiceCall call, $39.ListServicesRequest request); $async.Future<$0.Operation> batchEnableServices( - $grpc.ServiceCall call, $2.BatchEnableServicesRequest request); - $async.Future<$2.ListConsumerQuotaMetricsResponse> listConsumerQuotaMetrics( - $grpc.ServiceCall call, $2.ListConsumerQuotaMetricsRequest request); - $async.Future<$3.ConsumerQuotaMetric> getConsumerQuotaMetric( - $grpc.ServiceCall call, $2.GetConsumerQuotaMetricRequest request); - $async.Future<$3.ConsumerQuotaLimit> getConsumerQuotaLimit( - $grpc.ServiceCall call, $2.GetConsumerQuotaLimitRequest request); + $grpc.ServiceCall call, $39.BatchEnableServicesRequest request); + $async.Future<$39.ListConsumerQuotaMetricsResponse> listConsumerQuotaMetrics( + $grpc.ServiceCall call, $39.ListConsumerQuotaMetricsRequest request); + $async.Future<$40.ConsumerQuotaMetric> getConsumerQuotaMetric( + $grpc.ServiceCall call, $39.GetConsumerQuotaMetricRequest request); + $async.Future<$40.ConsumerQuotaLimit> getConsumerQuotaLimit( + $grpc.ServiceCall call, $39.GetConsumerQuotaLimitRequest request); $async.Future<$0.Operation> createAdminOverride( - $grpc.ServiceCall call, $2.CreateAdminOverrideRequest request); + $grpc.ServiceCall call, $39.CreateAdminOverrideRequest request); $async.Future<$0.Operation> updateAdminOverride( - $grpc.ServiceCall call, $2.UpdateAdminOverrideRequest request); + $grpc.ServiceCall call, $39.UpdateAdminOverrideRequest request); $async.Future<$0.Operation> deleteAdminOverride( - $grpc.ServiceCall call, $2.DeleteAdminOverrideRequest request); - $async.Future<$2.ListAdminOverridesResponse> listAdminOverrides( - $grpc.ServiceCall call, $2.ListAdminOverridesRequest request); + $grpc.ServiceCall call, $39.DeleteAdminOverrideRequest request); + $async.Future<$39.ListAdminOverridesResponse> listAdminOverrides( + $grpc.ServiceCall call, $39.ListAdminOverridesRequest request); $async.Future<$0.Operation> importAdminOverrides( - $grpc.ServiceCall call, $2.ImportAdminOverridesRequest request); + $grpc.ServiceCall call, $39.ImportAdminOverridesRequest request); $async.Future<$0.Operation> createConsumerOverride( - $grpc.ServiceCall call, $2.CreateConsumerOverrideRequest request); + $grpc.ServiceCall call, $39.CreateConsumerOverrideRequest request); $async.Future<$0.Operation> updateConsumerOverride( - $grpc.ServiceCall call, $2.UpdateConsumerOverrideRequest request); + $grpc.ServiceCall call, $39.UpdateConsumerOverrideRequest request); $async.Future<$0.Operation> deleteConsumerOverride( - $grpc.ServiceCall call, $2.DeleteConsumerOverrideRequest request); - $async.Future<$2.ListConsumerOverridesResponse> listConsumerOverrides( - $grpc.ServiceCall call, $2.ListConsumerOverridesRequest request); + $grpc.ServiceCall call, $39.DeleteConsumerOverrideRequest request); + $async.Future<$39.ListConsumerOverridesResponse> listConsumerOverrides( + $grpc.ServiceCall call, $39.ListConsumerOverridesRequest request); $async.Future<$0.Operation> importConsumerOverrides( - $grpc.ServiceCall call, $2.ImportConsumerOverridesRequest request); + $grpc.ServiceCall call, $39.ImportConsumerOverridesRequest request); $async.Future<$0.Operation> generateServiceIdentity( - $grpc.ServiceCall call, $2.GenerateServiceIdentityRequest request); + $grpc.ServiceCall call, $39.GenerateServiceIdentityRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbjson.dart index 51440d47..f9d64ee7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/serviceusage/v1beta1/serviceusage.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/serviceusage/v1beta1/serviceusage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 enableServiceRequestDescriptor instead') @@ -20,6 +24,7 @@ const EnableServiceRequest$json = { /// Descriptor for `EnableServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List enableServiceRequestDescriptor = $convert .base64Decode('ChRFbmFibGVTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use disableServiceRequestDescriptor instead') const DisableServiceRequest$json = { '1': 'DisableServiceRequest', @@ -32,6 +37,7 @@ const DisableServiceRequest$json = { final $typed_data.Uint8List disableServiceRequestDescriptor = $convert.base64Decode( 'ChVEaXNhYmxlU2VydmljZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use getServiceRequestDescriptor instead') const GetServiceRequest$json = { '1': 'GetServiceRequest', @@ -43,6 +49,7 @@ const GetServiceRequest$json = { /// Descriptor for `GetServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getServiceRequestDescriptor = $convert .base64Decode('ChFHZXRTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use listServicesRequestDescriptor instead') const ListServicesRequest$json = { '1': 'ListServicesRequest', @@ -56,7 +63,10 @@ const ListServicesRequest$json = { /// Descriptor for `ListServicesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServicesRequestDescriptor = $convert.base64Decode( - 'ChNMaXN0U2VydmljZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2VuEhYKBmZpbHRlchgEIAEoCVIGZmlsdGVy'); + 'ChNMaXN0U2VydmljZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2' + 'l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2VuEhYKBmZp' + 'bHRlchgEIAEoCVIGZmlsdGVy'); + @$core.Deprecated('Use listServicesResponseDescriptor instead') const ListServicesResponse$json = { '1': 'ListServicesResponse', @@ -75,7 +85,10 @@ const ListServicesResponse$json = { /// Descriptor for `ListServicesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServicesResponseDescriptor = $convert.base64Decode( - 'ChRMaXN0U2VydmljZXNSZXNwb25zZRJECghzZXJ2aWNlcxgBIAMoCzIoLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuU2VydmljZVIIc2VydmljZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + 'ChRMaXN0U2VydmljZXNSZXNwb25zZRJECghzZXJ2aWNlcxgBIAMoCzIoLmdvb2dsZS5hcGkuc2' + 'VydmljZXVzYWdlLnYxYmV0YTEuU2VydmljZVIIc2VydmljZXMSJgoPbmV4dF9wYWdlX3Rva2Vu' + 'GAIgASgJUg1uZXh0UGFnZVRva2Vu'); + @$core.Deprecated('Use batchEnableServicesRequestDescriptor instead') const BatchEnableServicesRequest$json = { '1': 'BatchEnableServicesRequest', @@ -88,7 +101,9 @@ const BatchEnableServicesRequest$json = { /// Descriptor for `BatchEnableServicesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List batchEnableServicesRequestDescriptor = $convert.base64Decode( - 'ChpCYXRjaEVuYWJsZVNlcnZpY2VzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIfCgtzZXJ2aWNlX2lkcxgCIAMoCVIKc2VydmljZUlkcw=='); + 'ChpCYXRjaEVuYWJsZVNlcnZpY2VzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIfCg' + 'tzZXJ2aWNlX2lkcxgCIAMoCVIKc2VydmljZUlkcw=='); + @$core.Deprecated('Use listConsumerQuotaMetricsRequestDescriptor instead') const ListConsumerQuotaMetricsRequest$json = { '1': 'ListConsumerQuotaMetricsRequest', @@ -110,7 +125,11 @@ const ListConsumerQuotaMetricsRequest$json = { /// Descriptor for `ListConsumerQuotaMetricsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listConsumerQuotaMetricsRequestDescriptor = $convert.base64Decode( - 'Ch9MaXN0Q29uc3VtZXJRdW90YU1ldHJpY3NSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2VuEj4KBHZpZXcYBCABKA4yKi5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhVmlld1IEdmlldw=='); + 'Ch9MaXN0Q29uc3VtZXJRdW90YU1ldHJpY3NSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW' + '50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFn' + 'ZVRva2VuEj4KBHZpZXcYBCABKA4yKi5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLl' + 'F1b3RhVmlld1IEdmlldw=='); + @$core.Deprecated('Use listConsumerQuotaMetricsResponseDescriptor instead') const ListConsumerQuotaMetricsResponse$json = { '1': 'ListConsumerQuotaMetricsResponse', @@ -130,7 +149,10 @@ const ListConsumerQuotaMetricsResponse$json = { /// Descriptor for `ListConsumerQuotaMetricsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listConsumerQuotaMetricsResponseDescriptor = $convert.base64Decode( - 'CiBMaXN0Q29uc3VtZXJRdW90YU1ldHJpY3NSZXNwb25zZRJOCgdtZXRyaWNzGAEgAygLMjQuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5Db25zdW1lclF1b3RhTWV0cmljUgdtZXRyaWNzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'CiBMaXN0Q29uc3VtZXJRdW90YU1ldHJpY3NSZXNwb25zZRJOCgdtZXRyaWNzGAEgAygLMjQuZ2' + '9vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5Db25zdW1lclF1b3RhTWV0cmljUgdtZXRy' + 'aWNzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use getConsumerQuotaMetricRequestDescriptor instead') const GetConsumerQuotaMetricRequest$json = { '1': 'GetConsumerQuotaMetricRequest', @@ -150,7 +172,10 @@ const GetConsumerQuotaMetricRequest$json = { /// Descriptor for `GetConsumerQuotaMetricRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getConsumerQuotaMetricRequestDescriptor = $convert.base64Decode( - 'Ch1HZXRDb25zdW1lclF1b3RhTWV0cmljUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEj4KBHZpZXcYAiABKA4yKi5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhVmlld1IEdmlldw=='); + 'Ch1HZXRDb25zdW1lclF1b3RhTWV0cmljUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEj4KBH' + 'ZpZXcYAiABKA4yKi5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhVmlld1IE' + 'dmlldw=='); + @$core.Deprecated('Use getConsumerQuotaLimitRequestDescriptor instead') const GetConsumerQuotaLimitRequest$json = { '1': 'GetConsumerQuotaLimitRequest', @@ -170,7 +195,10 @@ const GetConsumerQuotaLimitRequest$json = { /// Descriptor for `GetConsumerQuotaLimitRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getConsumerQuotaLimitRequestDescriptor = $convert.base64Decode( - 'ChxHZXRDb25zdW1lclF1b3RhTGltaXRSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSPgoEdmlldxgCIAEoDjIqLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFWaWV3UgR2aWV3'); + 'ChxHZXRDb25zdW1lclF1b3RhTGltaXRSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSPgoEdm' + 'lldxgCIAEoDjIqLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFWaWV3UgR2' + 'aWV3'); + @$core.Deprecated('Use createAdminOverrideRequestDescriptor instead') const CreateAdminOverrideRequest$json = { '1': 'CreateAdminOverrideRequest', @@ -197,9 +225,13 @@ const CreateAdminOverrideRequest$json = { }; /// Descriptor for `CreateAdminOverrideRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List createAdminOverrideRequestDescriptor = - $convert.base64Decode( - 'ChpDcmVhdGVBZG1pbk92ZXJyaWRlUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBJKCghvdmVycmlkZRgCIAEoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZVIIb3ZlcnJpZGUSFAoFZm9yY2UYAyABKAhSBWZvcmNlElAKCmZvcmNlX29ubHkYBCADKA4yMS5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhU2FmZXR5Q2hlY2tSCWZvcmNlT25seQ=='); +final $typed_data.Uint8List createAdminOverrideRequestDescriptor = $convert.base64Decode( + 'ChpDcmVhdGVBZG1pbk92ZXJyaWRlUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBJKCg' + 'hvdmVycmlkZRgCIAEoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFP' + 'dmVycmlkZVIIb3ZlcnJpZGUSFAoFZm9yY2UYAyABKAhSBWZvcmNlElAKCmZvcmNlX29ubHkYBC' + 'ADKA4yMS5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhU2FmZXR5Q2hlY2tS' + 'CWZvcmNlT25seQ=='); + @$core.Deprecated('Use updateAdminOverrideRequestDescriptor instead') const UpdateAdminOverrideRequest$json = { '1': 'UpdateAdminOverrideRequest', @@ -234,9 +266,14 @@ const UpdateAdminOverrideRequest$json = { }; /// Descriptor for `UpdateAdminOverrideRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateAdminOverrideRequestDescriptor = - $convert.base64Decode( - 'ChpVcGRhdGVBZG1pbk92ZXJyaWRlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEkoKCG92ZXJyaWRlGAIgASgLMi4uZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YU92ZXJyaWRlUghvdmVycmlkZRIUCgVmb3JjZRgDIAEoCFIFZm9yY2USOwoLdXBkYXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNrElAKCmZvcmNlX29ubHkYBSADKA4yMS5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhU2FmZXR5Q2hlY2tSCWZvcmNlT25seQ=='); +final $typed_data.Uint8List updateAdminOverrideRequestDescriptor = $convert.base64Decode( + 'ChpVcGRhdGVBZG1pbk92ZXJyaWRlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEkoKCG92ZX' + 'JyaWRlGAIgASgLMi4uZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YU92ZXJy' + 'aWRlUghvdmVycmlkZRIUCgVmb3JjZRgDIAEoCFIFZm9yY2USOwoLdXBkYXRlX21hc2sYBCABKA' + 'syGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNrElAKCmZvcmNlX29ubHkY' + 'BSADKA4yMS5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhU2FmZXR5Q2hlY2' + 'tSCWZvcmNlT25seQ=='); + @$core.Deprecated('Use deleteAdminOverrideRequestDescriptor instead') const DeleteAdminOverrideRequest$json = { '1': 'DeleteAdminOverrideRequest', @@ -257,7 +294,10 @@ const DeleteAdminOverrideRequest$json = { /// Descriptor for `DeleteAdminOverrideRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteAdminOverrideRequestDescriptor = $convert.base64Decode( - 'ChpEZWxldGVBZG1pbk92ZXJyaWRlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEhQKBWZvcmNlGAIgASgIUgVmb3JjZRJQCgpmb3JjZV9vbmx5GAMgAygOMjEuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YVNhZmV0eUNoZWNrUglmb3JjZU9ubHk='); + 'ChpEZWxldGVBZG1pbk92ZXJyaWRlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEhQKBWZvcm' + 'NlGAIgASgIUgVmb3JjZRJQCgpmb3JjZV9vbmx5GAMgAygOMjEuZ29vZ2xlLmFwaS5zZXJ2aWNl' + 'dXNhZ2UudjFiZXRhMS5RdW90YVNhZmV0eUNoZWNrUglmb3JjZU9ubHk='); + @$core.Deprecated('Use listAdminOverridesRequestDescriptor instead') const ListAdminOverridesRequest$json = { '1': 'ListAdminOverridesRequest', @@ -269,9 +309,10 @@ const ListAdminOverridesRequest$json = { }; /// Descriptor for `ListAdminOverridesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listAdminOverridesRequestDescriptor = - $convert.base64Decode( - 'ChlMaXN0QWRtaW5PdmVycmlkZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); +final $typed_data.Uint8List listAdminOverridesRequestDescriptor = $convert.base64Decode( + 'ChlMaXN0QWRtaW5PdmVycmlkZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCX' + 'BhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); + @$core.Deprecated('Use listAdminOverridesResponseDescriptor instead') const ListAdminOverridesResponse$json = { '1': 'ListAdminOverridesResponse', @@ -291,7 +332,10 @@ const ListAdminOverridesResponse$json = { /// Descriptor for `ListAdminOverridesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listAdminOverridesResponseDescriptor = $convert.base64Decode( - 'ChpMaXN0QWRtaW5PdmVycmlkZXNSZXNwb25zZRJMCglvdmVycmlkZXMYASADKAsyLi5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhT3ZlcnJpZGVSCW92ZXJyaWRlcxImCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + 'ChpMaXN0QWRtaW5PdmVycmlkZXNSZXNwb25zZRJMCglvdmVycmlkZXMYASADKAsyLi5nb29nbG' + 'UuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhT3ZlcnJpZGVSCW92ZXJyaWRlcxImCg9u' + 'ZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + @$core.Deprecated('Use batchCreateAdminOverridesResponseDescriptor instead') const BatchCreateAdminOverridesResponse$json = { '1': 'BatchCreateAdminOverridesResponse', @@ -310,7 +354,10 @@ const BatchCreateAdminOverridesResponse$json = { /// Descriptor for `BatchCreateAdminOverridesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List batchCreateAdminOverridesResponseDescriptor = $convert.base64Decode( - 'CiFCYXRjaENyZWF0ZUFkbWluT3ZlcnJpZGVzUmVzcG9uc2USTAoJb3ZlcnJpZGVzGAEgAygLMi4uZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YU92ZXJyaWRlUglvdmVycmlkZXM='); + 'CiFCYXRjaENyZWF0ZUFkbWluT3ZlcnJpZGVzUmVzcG9uc2USTAoJb3ZlcnJpZGVzGAEgAygLMi' + '4uZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YU92ZXJyaWRlUglvdmVycmlk' + 'ZXM='); + @$core.Deprecated('Use importAdminOverridesRequestDescriptor instead') const ImportAdminOverridesRequest$json = { '1': 'ImportAdminOverridesRequest', @@ -341,9 +388,13 @@ const ImportAdminOverridesRequest$json = { }; /// Descriptor for `ImportAdminOverridesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List importAdminOverridesRequestDescriptor = - $convert.base64Decode( - 'ChtJbXBvcnRBZG1pbk92ZXJyaWRlc1JlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbnQSXAoNaW5saW5lX3NvdXJjZRgCIAEoCzI1Lmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuT3ZlcnJpZGVJbmxpbmVTb3VyY2VIAFIMaW5saW5lU291cmNlEhQKBWZvcmNlGAMgASgIUgVmb3JjZRJQCgpmb3JjZV9vbmx5GAQgAygOMjEuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YVNhZmV0eUNoZWNrUglmb3JjZU9ubHlCCAoGc291cmNl'); +final $typed_data.Uint8List importAdminOverridesRequestDescriptor = $convert.base64Decode( + 'ChtJbXBvcnRBZG1pbk92ZXJyaWRlc1JlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbnQSXA' + 'oNaW5saW5lX3NvdXJjZRgCIAEoCzI1Lmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEu' + 'T3ZlcnJpZGVJbmxpbmVTb3VyY2VIAFIMaW5saW5lU291cmNlEhQKBWZvcmNlGAMgASgIUgVmb3' + 'JjZRJQCgpmb3JjZV9vbmx5GAQgAygOMjEuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRh' + 'MS5RdW90YVNhZmV0eUNoZWNrUglmb3JjZU9ubHlCCAoGc291cmNl'); + @$core.Deprecated('Use importAdminOverridesResponseDescriptor instead') const ImportAdminOverridesResponse$json = { '1': 'ImportAdminOverridesResponse', @@ -362,7 +413,9 @@ const ImportAdminOverridesResponse$json = { /// Descriptor for `ImportAdminOverridesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List importAdminOverridesResponseDescriptor = $convert.base64Decode( - 'ChxJbXBvcnRBZG1pbk92ZXJyaWRlc1Jlc3BvbnNlEkwKCW92ZXJyaWRlcxgBIAMoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZVIJb3ZlcnJpZGVz'); + 'ChxJbXBvcnRBZG1pbk92ZXJyaWRlc1Jlc3BvbnNlEkwKCW92ZXJyaWRlcxgBIAMoCzIuLmdvb2' + 'dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZVIJb3ZlcnJpZGVz'); + @$core.Deprecated('Use importAdminOverridesMetadataDescriptor instead') const ImportAdminOverridesMetadata$json = { '1': 'ImportAdminOverridesMetadata', @@ -371,6 +424,7 @@ const ImportAdminOverridesMetadata$json = { /// Descriptor for `ImportAdminOverridesMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List importAdminOverridesMetadataDescriptor = $convert.base64Decode('ChxJbXBvcnRBZG1pbk92ZXJyaWRlc01ldGFkYXRh'); + @$core.Deprecated('Use createConsumerOverrideRequestDescriptor instead') const CreateConsumerOverrideRequest$json = { '1': 'CreateConsumerOverrideRequest', @@ -397,9 +451,13 @@ const CreateConsumerOverrideRequest$json = { }; /// Descriptor for `CreateConsumerOverrideRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List createConsumerOverrideRequestDescriptor = - $convert.base64Decode( - 'Ch1DcmVhdGVDb25zdW1lck92ZXJyaWRlUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBJKCghvdmVycmlkZRgCIAEoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZVIIb3ZlcnJpZGUSFAoFZm9yY2UYAyABKAhSBWZvcmNlElAKCmZvcmNlX29ubHkYBCADKA4yMS5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhU2FmZXR5Q2hlY2tSCWZvcmNlT25seQ=='); +final $typed_data.Uint8List createConsumerOverrideRequestDescriptor = $convert.base64Decode( + 'Ch1DcmVhdGVDb25zdW1lck92ZXJyaWRlUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudB' + 'JKCghvdmVycmlkZRgCIAEoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVv' + 'dGFPdmVycmlkZVIIb3ZlcnJpZGUSFAoFZm9yY2UYAyABKAhSBWZvcmNlElAKCmZvcmNlX29ubH' + 'kYBCADKA4yMS5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhU2FmZXR5Q2hl' + 'Y2tSCWZvcmNlT25seQ=='); + @$core.Deprecated('Use updateConsumerOverrideRequestDescriptor instead') const UpdateConsumerOverrideRequest$json = { '1': 'UpdateConsumerOverrideRequest', @@ -434,9 +492,14 @@ const UpdateConsumerOverrideRequest$json = { }; /// Descriptor for `UpdateConsumerOverrideRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateConsumerOverrideRequestDescriptor = - $convert.base64Decode( - 'Ch1VcGRhdGVDb25zdW1lck92ZXJyaWRlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEkoKCG92ZXJyaWRlGAIgASgLMi4uZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YU92ZXJyaWRlUghvdmVycmlkZRIUCgVmb3JjZRgDIAEoCFIFZm9yY2USOwoLdXBkYXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNrElAKCmZvcmNlX29ubHkYBSADKA4yMS5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhU2FmZXR5Q2hlY2tSCWZvcmNlT25seQ=='); +final $typed_data.Uint8List updateConsumerOverrideRequestDescriptor = $convert.base64Decode( + 'Ch1VcGRhdGVDb25zdW1lck92ZXJyaWRlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEkoKCG' + '92ZXJyaWRlGAIgASgLMi4uZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YU92' + 'ZXJyaWRlUghvdmVycmlkZRIUCgVmb3JjZRgDIAEoCFIFZm9yY2USOwoLdXBkYXRlX21hc2sYBC' + 'ABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNrElAKCmZvcmNlX29u' + 'bHkYBSADKA4yMS5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhU2FmZXR5Q2' + 'hlY2tSCWZvcmNlT25seQ=='); + @$core.Deprecated('Use deleteConsumerOverrideRequestDescriptor instead') const DeleteConsumerOverrideRequest$json = { '1': 'DeleteConsumerOverrideRequest', @@ -457,7 +520,10 @@ const DeleteConsumerOverrideRequest$json = { /// Descriptor for `DeleteConsumerOverrideRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteConsumerOverrideRequestDescriptor = $convert.base64Decode( - 'Ch1EZWxldGVDb25zdW1lck92ZXJyaWRlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEhQKBWZvcmNlGAIgASgIUgVmb3JjZRJQCgpmb3JjZV9vbmx5GAMgAygOMjEuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YVNhZmV0eUNoZWNrUglmb3JjZU9ubHk='); + 'Ch1EZWxldGVDb25zdW1lck92ZXJyaWRlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEhQKBW' + 'ZvcmNlGAIgASgIUgVmb3JjZRJQCgpmb3JjZV9vbmx5GAMgAygOMjEuZ29vZ2xlLmFwaS5zZXJ2' + 'aWNldXNhZ2UudjFiZXRhMS5RdW90YVNhZmV0eUNoZWNrUglmb3JjZU9ubHk='); + @$core.Deprecated('Use listConsumerOverridesRequestDescriptor instead') const ListConsumerOverridesRequest$json = { '1': 'ListConsumerOverridesRequest', @@ -471,7 +537,10 @@ const ListConsumerOverridesRequest$json = { /// Descriptor for `ListConsumerOverridesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listConsumerOverridesRequestDescriptor = $convert.base64Decode( - 'ChxMaXN0Q29uc3VtZXJPdmVycmlkZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); + 'ChxMaXN0Q29uc3VtZXJPdmVycmlkZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50Eh' + 'sKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRv' + 'a2Vu'); + @$core.Deprecated('Use listConsumerOverridesResponseDescriptor instead') const ListConsumerOverridesResponse$json = { '1': 'ListConsumerOverridesResponse', @@ -491,7 +560,10 @@ const ListConsumerOverridesResponse$json = { /// Descriptor for `ListConsumerOverridesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listConsumerOverridesResponseDescriptor = $convert.base64Decode( - 'Ch1MaXN0Q29uc3VtZXJPdmVycmlkZXNSZXNwb25zZRJMCglvdmVycmlkZXMYASADKAsyLi5nb29nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhT3ZlcnJpZGVSCW92ZXJyaWRlcxImCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + 'Ch1MaXN0Q29uc3VtZXJPdmVycmlkZXNSZXNwb25zZRJMCglvdmVycmlkZXMYASADKAsyLi5nb2' + '9nbGUuYXBpLnNlcnZpY2V1c2FnZS52MWJldGExLlF1b3RhT3ZlcnJpZGVSCW92ZXJyaWRlcxIm' + 'Cg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + @$core.Deprecated('Use batchCreateConsumerOverridesResponseDescriptor instead') const BatchCreateConsumerOverridesResponse$json = { '1': 'BatchCreateConsumerOverridesResponse', @@ -510,7 +582,10 @@ const BatchCreateConsumerOverridesResponse$json = { /// Descriptor for `BatchCreateConsumerOverridesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List batchCreateConsumerOverridesResponseDescriptor = $convert.base64Decode( - 'CiRCYXRjaENyZWF0ZUNvbnN1bWVyT3ZlcnJpZGVzUmVzcG9uc2USTAoJb3ZlcnJpZGVzGAEgAygLMi4uZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YU92ZXJyaWRlUglvdmVycmlkZXM='); + 'CiRCYXRjaENyZWF0ZUNvbnN1bWVyT3ZlcnJpZGVzUmVzcG9uc2USTAoJb3ZlcnJpZGVzGAEgAy' + 'gLMi4uZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YU92ZXJyaWRlUglvdmVy' + 'cmlkZXM='); + @$core.Deprecated('Use importConsumerOverridesRequestDescriptor instead') const ImportConsumerOverridesRequest$json = { '1': 'ImportConsumerOverridesRequest', @@ -541,9 +616,13 @@ const ImportConsumerOverridesRequest$json = { }; /// Descriptor for `ImportConsumerOverridesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List importConsumerOverridesRequestDescriptor = - $convert.base64Decode( - 'Ch5JbXBvcnRDb25zdW1lck92ZXJyaWRlc1JlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbnQSXAoNaW5saW5lX3NvdXJjZRgCIAEoCzI1Lmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuT3ZlcnJpZGVJbmxpbmVTb3VyY2VIAFIMaW5saW5lU291cmNlEhQKBWZvcmNlGAMgASgIUgVmb3JjZRJQCgpmb3JjZV9vbmx5GAQgAygOMjEuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFiZXRhMS5RdW90YVNhZmV0eUNoZWNrUglmb3JjZU9ubHlCCAoGc291cmNl'); +final $typed_data.Uint8List importConsumerOverridesRequestDescriptor = $convert.base64Decode( + 'Ch5JbXBvcnRDb25zdW1lck92ZXJyaWRlc1JlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbn' + 'QSXAoNaW5saW5lX3NvdXJjZRgCIAEoCzI1Lmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0' + 'YTEuT3ZlcnJpZGVJbmxpbmVTb3VyY2VIAFIMaW5saW5lU291cmNlEhQKBWZvcmNlGAMgASgIUg' + 'Vmb3JjZRJQCgpmb3JjZV9vbmx5GAQgAygOMjEuZ29vZ2xlLmFwaS5zZXJ2aWNldXNhZ2UudjFi' + 'ZXRhMS5RdW90YVNhZmV0eUNoZWNrUglmb3JjZU9ubHlCCAoGc291cmNl'); + @$core.Deprecated('Use importConsumerOverridesResponseDescriptor instead') const ImportConsumerOverridesResponse$json = { '1': 'ImportConsumerOverridesResponse', @@ -562,7 +641,9 @@ const ImportConsumerOverridesResponse$json = { /// Descriptor for `ImportConsumerOverridesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List importConsumerOverridesResponseDescriptor = $convert.base64Decode( - 'Ch9JbXBvcnRDb25zdW1lck92ZXJyaWRlc1Jlc3BvbnNlEkwKCW92ZXJyaWRlcxgBIAMoCzIuLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZVIJb3ZlcnJpZGVz'); + 'Ch9JbXBvcnRDb25zdW1lck92ZXJyaWRlc1Jlc3BvbnNlEkwKCW92ZXJyaWRlcxgBIAMoCzIuLm' + 'dvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuUXVvdGFPdmVycmlkZVIJb3ZlcnJpZGVz'); + @$core.Deprecated('Use importConsumerOverridesMetadataDescriptor instead') const ImportConsumerOverridesMetadata$json = { '1': 'ImportConsumerOverridesMetadata', @@ -571,6 +652,7 @@ const ImportConsumerOverridesMetadata$json = { /// Descriptor for `ImportConsumerOverridesMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List importConsumerOverridesMetadataDescriptor = $convert.base64Decode('Ch9JbXBvcnRDb25zdW1lck92ZXJyaWRlc01ldGFkYXRh'); + @$core.Deprecated('Use importAdminQuotaPoliciesResponseDescriptor instead') const ImportAdminQuotaPoliciesResponse$json = { '1': 'ImportAdminQuotaPoliciesResponse', @@ -589,7 +671,10 @@ const ImportAdminQuotaPoliciesResponse$json = { /// Descriptor for `ImportAdminQuotaPoliciesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List importAdminQuotaPoliciesResponseDescriptor = $convert.base64Decode( - 'CiBJbXBvcnRBZG1pblF1b3RhUG9saWNpZXNSZXNwb25zZRJNCghwb2xpY2llcxgBIAMoCzIxLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuQWRtaW5RdW90YVBvbGljeVIIcG9saWNpZXM='); + 'CiBJbXBvcnRBZG1pblF1b3RhUG9saWNpZXNSZXNwb25zZRJNCghwb2xpY2llcxgBIAMoCzIxLm' + 'dvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuQWRtaW5RdW90YVBvbGljeVIIcG9saWNp' + 'ZXM='); + @$core.Deprecated('Use importAdminQuotaPoliciesMetadataDescriptor instead') const ImportAdminQuotaPoliciesMetadata$json = { '1': 'ImportAdminQuotaPoliciesMetadata', @@ -598,6 +683,7 @@ const ImportAdminQuotaPoliciesMetadata$json = { /// Descriptor for `ImportAdminQuotaPoliciesMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List importAdminQuotaPoliciesMetadataDescriptor = $convert.base64Decode('CiBJbXBvcnRBZG1pblF1b3RhUG9saWNpZXNNZXRhZGF0YQ=='); + @$core.Deprecated('Use createAdminQuotaPolicyMetadataDescriptor instead') const CreateAdminQuotaPolicyMetadata$json = { '1': 'CreateAdminQuotaPolicyMetadata', @@ -606,6 +692,7 @@ const CreateAdminQuotaPolicyMetadata$json = { /// Descriptor for `CreateAdminQuotaPolicyMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createAdminQuotaPolicyMetadataDescriptor = $convert.base64Decode('Ch5DcmVhdGVBZG1pblF1b3RhUG9saWN5TWV0YWRhdGE='); + @$core.Deprecated('Use updateAdminQuotaPolicyMetadataDescriptor instead') const UpdateAdminQuotaPolicyMetadata$json = { '1': 'UpdateAdminQuotaPolicyMetadata', @@ -614,6 +701,7 @@ const UpdateAdminQuotaPolicyMetadata$json = { /// Descriptor for `UpdateAdminQuotaPolicyMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateAdminQuotaPolicyMetadataDescriptor = $convert.base64Decode('Ch5VcGRhdGVBZG1pblF1b3RhUG9saWN5TWV0YWRhdGE='); + @$core.Deprecated('Use deleteAdminQuotaPolicyMetadataDescriptor instead') const DeleteAdminQuotaPolicyMetadata$json = { '1': 'DeleteAdminQuotaPolicyMetadata', @@ -622,6 +710,7 @@ const DeleteAdminQuotaPolicyMetadata$json = { /// Descriptor for `DeleteAdminQuotaPolicyMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteAdminQuotaPolicyMetadataDescriptor = $convert.base64Decode('Ch5EZWxldGVBZG1pblF1b3RhUG9saWN5TWV0YWRhdGE='); + @$core.Deprecated('Use generateServiceIdentityRequestDescriptor instead') const GenerateServiceIdentityRequest$json = { '1': 'GenerateServiceIdentityRequest', @@ -633,7 +722,9 @@ const GenerateServiceIdentityRequest$json = { /// Descriptor for `GenerateServiceIdentityRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List generateServiceIdentityRequestDescriptor = $convert.base64Decode( - 'Ch5HZW5lcmF0ZVNlcnZpY2VJZGVudGl0eVJlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbnQ='); + 'Ch5HZW5lcmF0ZVNlcnZpY2VJZGVudGl0eVJlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbn' + 'Q='); + @$core.Deprecated('Use getServiceIdentityResponseDescriptor instead') const GetServiceIdentityResponse$json = { '1': 'GetServiceIdentityResponse', @@ -669,9 +760,13 @@ const GetServiceIdentityResponse_IdentityState$json = { }; /// Descriptor for `GetServiceIdentityResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getServiceIdentityResponseDescriptor = - $convert.base64Decode( - 'ChpHZXRTZXJ2aWNlSWRlbnRpdHlSZXNwb25zZRJMCghpZGVudGl0eRgBIAEoCzIwLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuU2VydmljZUlkZW50aXR5UghpZGVudGl0eRJfCgVzdGF0ZRgCIAEoDjJJLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuR2V0U2VydmljZUlkZW50aXR5UmVzcG9uc2UuSWRlbnRpdHlTdGF0ZVIFc3RhdGUiOwoNSWRlbnRpdHlTdGF0ZRIeChpJREVOVElUWV9TVEFURV9VTlNQRUNJRklFRBAAEgoKBkFDVElWRRAB'); +final $typed_data.Uint8List getServiceIdentityResponseDescriptor = $convert.base64Decode( + 'ChpHZXRTZXJ2aWNlSWRlbnRpdHlSZXNwb25zZRJMCghpZGVudGl0eRgBIAEoCzIwLmdvb2dsZS' + '5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuU2VydmljZUlkZW50aXR5UghpZGVudGl0eRJfCgVz' + 'dGF0ZRgCIAEoDjJJLmdvb2dsZS5hcGkuc2VydmljZXVzYWdlLnYxYmV0YTEuR2V0U2VydmljZU' + 'lkZW50aXR5UmVzcG9uc2UuSWRlbnRpdHlTdGF0ZVIFc3RhdGUiOwoNSWRlbnRpdHlTdGF0ZRIe' + 'ChpJREVOVElUWV9TVEFURV9VTlNQRUNJRklFRBAAEgoKBkFDVElWRRAB'); + @$core.Deprecated('Use getServiceIdentityMetadataDescriptor instead') const GetServiceIdentityMetadata$json = { '1': 'GetServiceIdentityMetadata', diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pb.dart index a0f56b1a..04c852f0 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pb.dart @@ -1,51 +1,47 @@ -/// +// // Generated code. Do not modify. // source: google/api/source_info.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +import '../protobuf/any.pb.dart' as $49; +/// Source information used to create a Service Config class SourceInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SourceInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc<$0.Any>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sourceFiles', - $pb.PbFieldType.PM, - subBuilder: $0.Any.create) - ..hasRequiredFields = false; - - SourceInfo._() : super(); factory SourceInfo({ - $core.Iterable<$0.Any>? sourceFiles, + $core.Iterable<$49.Any>? sourceFiles, }) { - final _result = create(); + final $result = create(); if (sourceFiles != null) { - _result.sourceFiles.addAll(sourceFiles); + $result.sourceFiles.addAll(sourceFiles); } - return _result; + return $result; } + SourceInfo._() : super(); factory SourceInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SourceInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceInfo', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc<$49.Any>(1, _omitFieldNames ? '' : 'sourceFiles', $pb.PbFieldType.PM, + subBuilder: $49.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') @@ -54,9 +50,10 @@ class SourceInfo extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') SourceInfo copyWith(void Function(SourceInfo) updates) => - super.copyWith((message) => updates(message as SourceInfo)) - as SourceInfo; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as SourceInfo)) as SourceInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SourceInfo create() => SourceInfo._(); SourceInfo createEmptyInstance() => create(); @@ -66,6 +63,11 @@ class SourceInfo extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SourceInfo? _defaultInstance; + /// All files used during config generation. @$pb.TagNumber(1) - $core.List<$0.Any> get sourceFiles => $_getList(0); + $core.List<$49.Any> get sourceFiles => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pbenum.dart index cb30b16a..1edca94d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/source_info.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pbjson.dart index b46f4301..d72e5cf8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/source_info.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/source_info.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 sourceInfoDescriptor instead') @@ -26,4 +30,5 @@ const SourceInfo$json = { /// Descriptor for `SourceInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sourceInfoDescriptor = $convert.base64Decode( - 'CgpTb3VyY2VJbmZvEjcKDHNvdXJjZV9maWxlcxgBIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlSC3NvdXJjZUZpbGVz'); + 'CgpTb3VyY2VJbmZvEjcKDHNvdXJjZV9maWxlcxgBIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5Bbn' + 'lSC3NvdXJjZUZpbGVz'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pb.dart index 91b36def..0d25cd03 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pb.dart @@ -1,49 +1,51 @@ -/// +// // Generated code. Do not modify. // source: google/api/system_parameter.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// ### System parameter configuration +/// +/// A system parameter is a special kind of parameter defined by the API +/// system, not by an individual API. It is typically mapped to an HTTP header +/// and/or a URL query parameter. This configuration specifies which methods +/// change the names of the system parameters. class SystemParameters extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SystemParameters', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rules', - $pb.PbFieldType.PM, - subBuilder: SystemParameterRule.create) - ..hasRequiredFields = false; - - SystemParameters._() : super(); factory SystemParameters({ $core.Iterable? rules, }) { - final _result = create(); + final $result = create(); if (rules != null) { - _result.rules.addAll(rules); + $result.rules.addAll(rules); } - return _result; + return $result; } + SystemParameters._() : super(); factory SystemParameters.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SystemParameters.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SystemParameters', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: SystemParameterRule.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') @@ -53,8 +55,10 @@ class SystemParameters extends $pb.GeneratedMessage { 'Will be removed in next major version') SystemParameters copyWith(void Function(SystemParameters) updates) => super.copyWith((message) => updates(message as SystemParameters)) - as SystemParameters; // ignore: deprecated_member_use + as SystemParameters; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SystemParameters create() => SystemParameters._(); SystemParameters createEmptyInstance() => create(); @@ -65,54 +69,73 @@ class SystemParameters extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SystemParameters? _defaultInstance; + /// Define system parameters. + /// + /// The parameters defined here will override the default parameters + /// implemented by the system. If this field is missing from the service + /// config, default system parameters will be used. Default system parameters + /// and names is implementation-dependent. + /// + /// Example: define api key for all methods + /// + /// system_parameters + /// rules: + /// - selector: "*" + /// parameters: + /// - name: api_key + /// url_query_parameter: api_key + /// + /// + /// Example: define 2 api key names for a specific method. + /// + /// system_parameters + /// rules: + /// - selector: "/ListShelves" + /// parameters: + /// - name: api_key + /// http_header: Api-Key1 + /// - name: api_key + /// http_header: Api-Key2 + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. @$pb.TagNumber(1) $core.List get rules => $_getList(0); } +/// Define a system parameter rule mapping system parameter definitions to +/// methods. class SystemParameterRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SystemParameterRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'selector') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parameters', - $pb.PbFieldType.PM, - subBuilder: SystemParameter.create) - ..hasRequiredFields = false; - - SystemParameterRule._() : super(); factory SystemParameterRule({ $core.String? selector, $core.Iterable? parameters, }) { - final _result = create(); + final $result = create(); if (selector != null) { - _result.selector = selector; + $result.selector = selector; } if (parameters != null) { - _result.parameters.addAll(parameters); + $result.parameters.addAll(parameters); } - return _result; + return $result; } + SystemParameterRule._() : super(); factory SystemParameterRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SystemParameterRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SystemParameterRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..pc( + 2, _omitFieldNames ? '' : 'parameters', $pb.PbFieldType.PM, + subBuilder: SystemParameter.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') @@ -122,8 +145,10 @@ class SystemParameterRule extends $pb.GeneratedMessage { 'Will be removed in next major version') SystemParameterRule copyWith(void Function(SystemParameterRule) updates) => super.copyWith((message) => updates(message as SystemParameterRule)) - as SystemParameterRule; // ignore: deprecated_member_use + as SystemParameterRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SystemParameterRule create() => SystemParameterRule._(); SystemParameterRule createEmptyInstance() => create(); @@ -134,6 +159,11 @@ class SystemParameterRule extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SystemParameterRule? _defaultInstance; + /// Selects the methods to which this rule applies. Use '*' to indicate all + /// methods in all APIs. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. @$pb.TagNumber(1) $core.String get selector => $_getSZ(0); @$pb.TagNumber(1) @@ -146,61 +176,53 @@ class SystemParameterRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSelector() => clearField(1); + /// Define parameters. Multiple names may be defined for a parameter. + /// For a given method call, only one of them should be used. If multiple + /// names are used the behavior is implementation-dependent. + /// If none of the specified names are present the behavior is + /// parameter-dependent. @$pb.TagNumber(2) $core.List get parameters => $_getList(1); } +/// Define a parameter's name and location. The parameter may be passed as either +/// an HTTP header or a URL query parameter, and if both are passed the behavior +/// is implementation-dependent. class SystemParameter extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SystemParameter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'httpHeader') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'urlQueryParameter') - ..hasRequiredFields = false; - - SystemParameter._() : super(); factory SystemParameter({ $core.String? name, $core.String? httpHeader, $core.String? urlQueryParameter, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (httpHeader != null) { - _result.httpHeader = httpHeader; + $result.httpHeader = httpHeader; } if (urlQueryParameter != null) { - _result.urlQueryParameter = urlQueryParameter; + $result.urlQueryParameter = urlQueryParameter; } - return _result; + return $result; } + SystemParameter._() : super(); factory SystemParameter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SystemParameter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SystemParameter', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'httpHeader') + ..aOS(3, _omitFieldNames ? '' : 'urlQueryParameter') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -210,8 +232,10 @@ class SystemParameter extends $pb.GeneratedMessage { 'Will be removed in next major version') SystemParameter copyWith(void Function(SystemParameter) updates) => super.copyWith((message) => updates(message as SystemParameter)) - as SystemParameter; // ignore: deprecated_member_use + as SystemParameter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SystemParameter create() => SystemParameter._(); SystemParameter createEmptyInstance() => create(); @@ -222,6 +246,7 @@ class SystemParameter extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SystemParameter? _defaultInstance; + /// Define the name of the parameter, such as "api_key" . It is case sensitive. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -234,6 +259,8 @@ class SystemParameter extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Define the HTTP header name to use for the parameter. It is case + /// insensitive. @$pb.TagNumber(2) $core.String get httpHeader => $_getSZ(1); @$pb.TagNumber(2) @@ -246,6 +273,8 @@ class SystemParameter extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearHttpHeader() => clearField(2); + /// Define the URL query parameter name to use for the parameter. It is case + /// sensitive. @$pb.TagNumber(3) $core.String get urlQueryParameter => $_getSZ(2); @$pb.TagNumber(3) @@ -258,3 +287,7 @@ class SystemParameter extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUrlQueryParameter() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pbenum.dart index 77b8ba62..9af2ed62 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/system_parameter.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pbjson.dart index a9ddfc54..eddccfa8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/system_parameter.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/system_parameter.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 systemParametersDescriptor instead') @@ -26,7 +30,9 @@ const SystemParameters$json = { /// Descriptor for `SystemParameters`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List systemParametersDescriptor = $convert.base64Decode( - 'ChBTeXN0ZW1QYXJhbWV0ZXJzEjUKBXJ1bGVzGAEgAygLMh8uZ29vZ2xlLmFwaS5TeXN0ZW1QYXJhbWV0ZXJSdWxlUgVydWxlcw=='); + 'ChBTeXN0ZW1QYXJhbWV0ZXJzEjUKBXJ1bGVzGAEgAygLMh8uZ29vZ2xlLmFwaS5TeXN0ZW1QYX' + 'JhbWV0ZXJSdWxlUgVydWxlcw=='); + @$core.Deprecated('Use systemParameterRuleDescriptor instead') const SystemParameterRule$json = { '1': 'SystemParameterRule', @@ -45,7 +51,9 @@ const SystemParameterRule$json = { /// Descriptor for `SystemParameterRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List systemParameterRuleDescriptor = $convert.base64Decode( - 'ChNTeXN0ZW1QYXJhbWV0ZXJSdWxlEhoKCHNlbGVjdG9yGAEgASgJUghzZWxlY3RvchI7CgpwYXJhbWV0ZXJzGAIgAygLMhsuZ29vZ2xlLmFwaS5TeXN0ZW1QYXJhbWV0ZXJSCnBhcmFtZXRlcnM='); + 'ChNTeXN0ZW1QYXJhbWV0ZXJSdWxlEhoKCHNlbGVjdG9yGAEgASgJUghzZWxlY3RvchI7CgpwYX' + 'JhbWV0ZXJzGAIgAygLMhsuZ29vZ2xlLmFwaS5TeXN0ZW1QYXJhbWV0ZXJSCnBhcmFtZXRlcnM='); + @$core.Deprecated('Use systemParameterDescriptor instead') const SystemParameter$json = { '1': 'SystemParameter', @@ -64,4 +72,6 @@ const SystemParameter$json = { /// Descriptor for `SystemParameter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List systemParameterDescriptor = $convert.base64Decode( - 'Cg9TeXN0ZW1QYXJhbWV0ZXISEgoEbmFtZRgBIAEoCVIEbmFtZRIfCgtodHRwX2hlYWRlchgCIAEoCVIKaHR0cEhlYWRlchIuChN1cmxfcXVlcnlfcGFyYW1ldGVyGAMgASgJUhF1cmxRdWVyeVBhcmFtZXRlcg=='); + 'Cg9TeXN0ZW1QYXJhbWV0ZXISEgoEbmFtZRgBIAEoCVIEbmFtZRIfCgtodHRwX2hlYWRlchgCIA' + 'EoCVIKaHR0cEhlYWRlchIuChN1cmxfcXVlcnlfcGFyYW1ldGVyGAMgASgJUhF1cmxRdWVyeVBh' + 'cmFtZXRlcg=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pb.dart index 217341e0..321f7ce9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pb.dart @@ -1,65 +1,55 @@ -/// +// // Generated code. Do not modify. // source: google/api/usage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Configuration controlling usage of a service. class Usage extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = - $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Usage', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requirements') - ..pc( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rules', - $pb.PbFieldType.PM, - subBuilder: UsageRule.create) - ..aOS( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'producerNotificationChannel') - ..hasRequiredFields = false; - - Usage._() : super(); factory Usage({ $core.Iterable<$core.String>? requirements, $core.Iterable? rules, $core.String? producerNotificationChannel, }) { - final _result = create(); + final $result = create(); if (requirements != null) { - _result.requirements.addAll(requirements); + $result.requirements.addAll(requirements); } if (rules != null) { - _result.rules.addAll(rules); + $result.rules.addAll(rules); } if (producerNotificationChannel != null) { - _result.producerNotificationChannel = producerNotificationChannel; + $result.producerNotificationChannel = producerNotificationChannel; } - return _result; + return $result; } + Usage._() : super(); factory Usage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Usage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Usage', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'requirements') + ..pc(6, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: UsageRule.create) + ..aOS(7, _omitFieldNames ? '' : 'producerNotificationChannel') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -68,9 +58,10 @@ class Usage extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Usage copyWith(void Function(Usage) updates) => - super.copyWith((message) => updates(message as Usage)) - as Usage; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Usage)) as Usage; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Usage create() => Usage._(); Usage createEmptyInstance() => create(); @@ -80,12 +71,32 @@ class Usage extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Usage? _defaultInstance; + /// Requirements that must be satisfied before a consumer project can use the + /// service. Each requirement is of the form /; + /// for example 'serviceusage.googleapis.com/billing-enabled'. + /// + /// For Google APIs, a Terms of Service requirement must be included here. + /// Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + /// Other Google APIs should include + /// "serviceusage.googleapis.com/tos/universal". Additional ToS can be + /// included based on the business needs. @$pb.TagNumber(1) $core.List<$core.String> get requirements => $_getList(0); + /// A list of usage rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. @$pb.TagNumber(6) $core.List get rules => $_getList(1); + /// The full resource name of a channel used for sending notifications to the + /// service producer. + /// + /// Google Service Management currently only supports + /// [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + /// channel. To use Google Cloud Pub/Sub as the channel, this must be the name + /// of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + /// documented in https://cloud.google.com/pubsub/docs/overview. @$pb.TagNumber(7) $core.String get producerNotificationChannel => $_getSZ(2); @$pb.TagNumber(7) @@ -99,57 +110,66 @@ class Usage extends $pb.GeneratedMessage { void clearProducerNotificationChannel() => clearField(7); } +/// Usage configuration rules for the service. +/// +/// NOTE: Under development. +/// +/// +/// Use this rule to configure unregistered calls for the service. Unregistered +/// calls are calls that do not contain consumer project identity. +/// (Example: calls that do not contain an API key). +/// By default, API methods do not allow unregistered calls, and each method call +/// must be identified by a consumer project identity. Use this rule to +/// allow/disallow unregistered calls. +/// +/// Example of an API that wants to allow unregistered calls for entire service. +/// +/// usage: +/// rules: +/// - selector: "*" +/// allow_unregistered_calls: true +/// +/// Example of a method that wants to allow unregistered calls. +/// +/// usage: +/// rules: +/// - selector: "google.example.library.v1.LibraryService.CreateBook" +/// allow_unregistered_calls: true class UsageRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UsageRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'selector') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allowUnregisteredCalls') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'skipServiceControl') - ..hasRequiredFields = false; - - UsageRule._() : super(); factory UsageRule({ $core.String? selector, $core.bool? allowUnregisteredCalls, $core.bool? skipServiceControl, }) { - final _result = create(); + final $result = create(); if (selector != null) { - _result.selector = selector; + $result.selector = selector; } if (allowUnregisteredCalls != null) { - _result.allowUnregisteredCalls = allowUnregisteredCalls; + $result.allowUnregisteredCalls = allowUnregisteredCalls; } if (skipServiceControl != null) { - _result.skipServiceControl = skipServiceControl; + $result.skipServiceControl = skipServiceControl; } - return _result; + return $result; } + UsageRule._() : super(); factory UsageRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UsageRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UsageRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..aOB(2, _omitFieldNames ? '' : 'allowUnregisteredCalls') + ..aOB(3, _omitFieldNames ? '' : 'skipServiceControl') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -158,9 +178,10 @@ class UsageRule extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') UsageRule copyWith(void Function(UsageRule) updates) => - super.copyWith((message) => updates(message as UsageRule)) - as UsageRule; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as UsageRule)) as UsageRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UsageRule create() => UsageRule._(); UsageRule createEmptyInstance() => create(); @@ -170,6 +191,11 @@ class UsageRule extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UsageRule? _defaultInstance; + /// Selects the methods to which this rule applies. Use '*' to indicate all + /// methods in all APIs. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. @$pb.TagNumber(1) $core.String get selector => $_getSZ(0); @$pb.TagNumber(1) @@ -182,6 +208,8 @@ class UsageRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSelector() => clearField(1); + /// If true, the selected method allows unregistered calls, e.g. calls + /// that don't identify any user or application. @$pb.TagNumber(2) $core.bool get allowUnregisteredCalls => $_getBF(1); @$pb.TagNumber(2) @@ -194,6 +222,10 @@ class UsageRule extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearAllowUnregisteredCalls() => clearField(2); + /// If true, the selected method should skip service control and the control + /// plane features, such as quota and billing, will not be available. + /// This flag is used by Google Cloud Endpoints to bypass checks for internal + /// methods, such as service health check methods. @$pb.TagNumber(3) $core.bool get skipServiceControl => $_getBF(2); @$pb.TagNumber(3) @@ -206,3 +238,7 @@ class UsageRule extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSkipServiceControl() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pbenum.dart index dd65c2e7..6e106940 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/usage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pbjson.dart index 529125de..1156a9a8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/usage.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/usage.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 usageDescriptor instead') @@ -34,7 +38,10 @@ const Usage$json = { /// Descriptor for `Usage`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List usageDescriptor = $convert.base64Decode( - 'CgVVc2FnZRIiCgxyZXF1aXJlbWVudHMYASADKAlSDHJlcXVpcmVtZW50cxIrCgVydWxlcxgGIAMoCzIVLmdvb2dsZS5hcGkuVXNhZ2VSdWxlUgVydWxlcxJCCh1wcm9kdWNlcl9ub3RpZmljYXRpb25fY2hhbm5lbBgHIAEoCVIbcHJvZHVjZXJOb3RpZmljYXRpb25DaGFubmVs'); + 'CgVVc2FnZRIiCgxyZXF1aXJlbWVudHMYASADKAlSDHJlcXVpcmVtZW50cxIrCgVydWxlcxgGIA' + 'MoCzIVLmdvb2dsZS5hcGkuVXNhZ2VSdWxlUgVydWxlcxJCCh1wcm9kdWNlcl9ub3RpZmljYXRp' + 'b25fY2hhbm5lbBgHIAEoCVIbcHJvZHVjZXJOb3RpZmljYXRpb25DaGFubmVs'); + @$core.Deprecated('Use usageRuleDescriptor instead') const UsageRule$json = { '1': 'UsageRule', @@ -59,4 +66,6 @@ const UsageRule$json = { /// Descriptor for `UsageRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List usageRuleDescriptor = $convert.base64Decode( - 'CglVc2FnZVJ1bGUSGgoIc2VsZWN0b3IYASABKAlSCHNlbGVjdG9yEjgKGGFsbG93X3VucmVnaXN0ZXJlZF9jYWxscxgCIAEoCFIWYWxsb3dVbnJlZ2lzdGVyZWRDYWxscxIwChRza2lwX3NlcnZpY2VfY29udHJvbBgDIAEoCFISc2tpcFNlcnZpY2VDb250cm9s'); + 'CglVc2FnZVJ1bGUSGgoIc2VsZWN0b3IYASABKAlSCHNlbGVjdG9yEjgKGGFsbG93X3VucmVnaX' + 'N0ZXJlZF9jYWxscxgCIAEoCFIWYWxsb3dVbnJlZ2lzdGVyZWRDYWxscxIwChRza2lwX3NlcnZp' + 'Y2VfY29udHJvbBgDIAEoCFISc2tpcFNlcnZpY2VDb250cm9s'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pb.dart index b6d4bb4e..b9614bd3 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pb.dart @@ -1,49 +1,67 @@ -/// +// // Generated code. Do not modify. // source: google/api/visibility.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// `Visibility` restricts service consumer's access to service elements, +/// such as whether an application can call a visibility-restricted method. +/// The restriction is expressed by applying visibility labels on service +/// elements. The visibility labels are elsewhere linked to service consumers. +/// +/// A service can define multiple visibility labels, but a service consumer +/// should be granted at most one visibility label. Multiple visibility +/// labels for a single service consumer are not supported. +/// +/// If an element and all its parents have no visibility label, its visibility +/// is unconditionally granted. +/// +/// Example: +/// +/// visibility: +/// rules: +/// - selector: google.calendar.Calendar.EnhancedSearch +/// restriction: PREVIEW +/// - selector: google.calendar.Calendar.Delegate +/// restriction: INTERNAL +/// +/// Here, all methods are publicly visible except for the restricted methods +/// EnhancedSearch and Delegate. class Visibility extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Visibility', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rules', - $pb.PbFieldType.PM, - subBuilder: VisibilityRule.create) - ..hasRequiredFields = false; - - Visibility._() : super(); factory Visibility({ $core.Iterable? rules, }) { - final _result = create(); + final $result = create(); if (rules != null) { - _result.rules.addAll(rules); + $result.rules.addAll(rules); } - return _result; + return $result; } + Visibility._() : super(); factory Visibility.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Visibility.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Visibility', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: VisibilityRule.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') @@ -52,9 +70,10 @@ class Visibility extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Visibility copyWith(void Function(Visibility) updates) => - super.copyWith((message) => updates(message as Visibility)) - as Visibility; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Visibility)) as Visibility; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Visibility create() => Visibility._(); Visibility createEmptyInstance() => create(); @@ -64,52 +83,45 @@ class Visibility extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Visibility? _defaultInstance; + /// A list of visibility rules that apply to individual API elements. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. @$pb.TagNumber(1) $core.List get rules => $_getList(0); } +/// A visibility rule provides visibility configuration for an individual API +/// element. class VisibilityRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'VisibilityRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.api'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'selector') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'restriction') - ..hasRequiredFields = false; - - VisibilityRule._() : super(); factory VisibilityRule({ $core.String? selector, $core.String? restriction, }) { - final _result = create(); + final $result = create(); if (selector != null) { - _result.selector = selector; + $result.selector = selector; } if (restriction != null) { - _result.restriction = restriction; + $result.restriction = restriction; } - return _result; + return $result; } + VisibilityRule._() : super(); factory VisibilityRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory VisibilityRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'VisibilityRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.api'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'selector') + ..aOS(2, _omitFieldNames ? '' : 'restriction') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -119,8 +131,10 @@ class VisibilityRule extends $pb.GeneratedMessage { 'Will be removed in next major version') VisibilityRule copyWith(void Function(VisibilityRule) updates) => super.copyWith((message) => updates(message as VisibilityRule)) - as VisibilityRule; // ignore: deprecated_member_use + as VisibilityRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static VisibilityRule create() => VisibilityRule._(); VisibilityRule createEmptyInstance() => create(); @@ -131,6 +145,10 @@ class VisibilityRule extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static VisibilityRule? _defaultInstance; + /// Selects methods, messages, fields, enums, etc. to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. @$pb.TagNumber(1) $core.String get selector => $_getSZ(0); @$pb.TagNumber(1) @@ -143,6 +161,21 @@ class VisibilityRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSelector() => clearField(1); + /// A comma-separated list of visibility labels that apply to the `selector`. + /// Any of the listed labels can be used to grant the visibility. + /// + /// If a rule has multiple labels, removing one of the labels but not all of + /// them can break clients. + /// + /// Example: + /// + /// visibility: + /// rules: + /// - selector: google.calendar.Calendar.EnhancedSearch + /// restriction: INTERNAL, PREVIEW + /// + /// Removing INTERNAL from this restriction will break clients that rely on + /// this method and only had access to it through INTERNAL. @$pb.TagNumber(2) $core.String get restriction => $_getSZ(1); @$pb.TagNumber(2) @@ -158,67 +191,43 @@ class VisibilityRule extends $pb.GeneratedMessage { class VisibilityExt { static final enumVisibility = $pb.Extension( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.EnumOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'enumVisibility', + _omitMessageNames ? '' : 'google.protobuf.EnumOptions', + _omitFieldNames ? '' : 'enumVisibility', 72295727, $pb.PbFieldType.OM, defaultOrMaker: VisibilityRule.getDefault, subBuilder: VisibilityRule.create); static final valueVisibility = $pb.Extension( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.EnumValueOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'valueVisibility', + _omitMessageNames ? '' : 'google.protobuf.EnumValueOptions', + _omitFieldNames ? '' : 'valueVisibility', 72295727, $pb.PbFieldType.OM, defaultOrMaker: VisibilityRule.getDefault, subBuilder: VisibilityRule.create); static final fieldVisibility = $pb.Extension( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.FieldOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fieldVisibility', + _omitMessageNames ? '' : 'google.protobuf.FieldOptions', + _omitFieldNames ? '' : 'fieldVisibility', 72295727, $pb.PbFieldType.OM, defaultOrMaker: VisibilityRule.getDefault, subBuilder: VisibilityRule.create); static final messageVisibility = $pb.Extension( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.MessageOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'messageVisibility', + _omitMessageNames ? '' : 'google.protobuf.MessageOptions', + _omitFieldNames ? '' : 'messageVisibility', 72295727, $pb.PbFieldType.OM, defaultOrMaker: VisibilityRule.getDefault, subBuilder: VisibilityRule.create); static final methodVisibility = $pb.Extension( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.MethodOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'methodVisibility', + _omitMessageNames ? '' : 'google.protobuf.MethodOptions', + _omitFieldNames ? '' : 'methodVisibility', 72295727, $pb.PbFieldType.OM, defaultOrMaker: VisibilityRule.getDefault, subBuilder: VisibilityRule.create); static final apiVisibility = $pb.Extension( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.ServiceOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'apiVisibility', + _omitMessageNames ? '' : 'google.protobuf.ServiceOptions', + _omitFieldNames ? '' : 'apiVisibility', 72295727, $pb.PbFieldType.OM, defaultOrMaker: VisibilityRule.getDefault, @@ -232,3 +241,7 @@ class VisibilityExt { registry.add(apiVisibility); } } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pbenum.dart index 06f2a2cd..c7d8100a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/api/visibility.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pbjson.dart index 422a4550..8d6198e9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/api/visibility.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/api/visibility.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 visibilityDescriptor instead') @@ -26,7 +30,9 @@ const Visibility$json = { /// Descriptor for `Visibility`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List visibilityDescriptor = $convert.base64Decode( - 'CgpWaXNpYmlsaXR5EjAKBXJ1bGVzGAEgAygLMhouZ29vZ2xlLmFwaS5WaXNpYmlsaXR5UnVsZVIFcnVsZXM='); + 'CgpWaXNpYmlsaXR5EjAKBXJ1bGVzGAEgAygLMhouZ29vZ2xlLmFwaS5WaXNpYmlsaXR5UnVsZV' + 'IFcnVsZXM='); + @$core.Deprecated('Use visibilityRuleDescriptor instead') const VisibilityRule$json = { '1': 'VisibilityRule', @@ -38,4 +44,5 @@ const VisibilityRule$json = { /// Descriptor for `VisibilityRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List visibilityRuleDescriptor = $convert.base64Decode( - 'Cg5WaXNpYmlsaXR5UnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISIAoLcmVzdHJpY3Rpb24YAiABKAlSC3Jlc3RyaWN0aW9u'); + 'Cg5WaXNpYmlsaXR5UnVsZRIaCghzZWxlY3RvchgBIAEoCVIIc2VsZWN0b3ISIAoLcmVzdHJpY3' + 'Rpb24YAiABKAlSC3Jlc3RyaWN0aW9u'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pb.dart index 5f1c3124..aa57ea26 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pb.dart @@ -1,60 +1,54 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/legacy/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Admin Console legacy audit log. class AuditData extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuditData', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.legacy'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'eventMessage') - ..m<$core.String, $core.String>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'eventData', - entryClassName: 'AuditData.EventDataEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.appengine.legacy')) - ..hasRequiredFields = false; - - AuditData._() : super(); factory AuditData({ $core.String? eventMessage, $core.Map<$core.String, $core.String>? eventData, }) { - final _result = create(); + final $result = create(); if (eventMessage != null) { - _result.eventMessage = eventMessage; + $result.eventMessage = eventMessage; } if (eventData != null) { - _result.eventData.addAll(eventData); + $result.eventData.addAll(eventData); } - return _result; + return $result; } + AuditData._() : super(); factory AuditData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuditData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuditData', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.legacy'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'eventMessage') + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'eventData', + entryClassName: 'AuditData.EventDataEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.appengine.legacy')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -63,9 +57,10 @@ class AuditData extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') AuditData copyWith(void Function(AuditData) updates) => - super.copyWith((message) => updates(message as AuditData)) - as AuditData; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as AuditData)) as AuditData; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuditData create() => AuditData._(); AuditData createEmptyInstance() => create(); @@ -75,6 +70,8 @@ class AuditData extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static AuditData? _defaultInstance; + /// Text description of the admin event. + /// This is the "Event" column in Admin Console's Admin Logs. @$pb.TagNumber(1) $core.String get eventMessage => $_getSZ(0); @$pb.TagNumber(1) @@ -87,6 +84,12 @@ class AuditData extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearEventMessage() => clearField(1); + /// Arbitrary event data. + /// This is the "Result" column in Admin Console's Admin Logs. @$pb.TagNumber(2) $core.Map<$core.String, $core.String> get eventData => $_getMap(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pbenum.dart index 6a398241..9acee5f2 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/legacy/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pbjson.dart index 1d78875d..9a60a7e6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/legacy/audit_data.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/legacy/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 auditDataDescriptor instead') @@ -38,4 +42,7 @@ const AuditData_EventDataEntry$json = { /// Descriptor for `AuditData`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List auditDataDescriptor = $convert.base64Decode( - 'CglBdWRpdERhdGESIwoNZXZlbnRfbWVzc2FnZRgBIAEoCVIMZXZlbnRNZXNzYWdlElAKCmV2ZW50X2RhdGEYAiADKAsyMS5nb29nbGUuYXBwZW5naW5lLmxlZ2FjeS5BdWRpdERhdGEuRXZlbnREYXRhRW50cnlSCWV2ZW50RGF0YRo8Cg5FdmVudERhdGFFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); + 'CglBdWRpdERhdGESIwoNZXZlbnRfbWVzc2FnZRgBIAEoCVIMZXZlbnRNZXNzYWdlElAKCmV2ZW' + '50X2RhdGEYAiADKAsyMS5nb29nbGUuYXBwZW5naW5lLmxlZ2FjeS5BdWRpdERhdGEuRXZlbnRE' + 'YXRhRW50cnlSCWV2ZW50RGF0YRo8Cg5FdmVudERhdGFFbnRyeRIQCgNrZXkYASABKAlSA2tleR' + 'IUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pb.dart index 6477b803..1ebbeec2 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pb.dart @@ -1,72 +1,71 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/logging/v1/request_log.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../protobuf/timestamp.pb.dart' as $0; -import '../../../protobuf/duration.pb.dart' as $1; - -import '../../../logging/type/log_severity.pbenum.dart' as $2; +import '../../../logging/type/log_severity.pbenum.dart' as $64; +import '../../../protobuf/duration.pb.dart' as $51; +import '../../../protobuf/timestamp.pb.dart' as $50; +/// Application log line emitted while processing a request. class LogLine extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogLine', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.logging.v1'), - createEmptyInstance: create) - ..aOM<$0.Timestamp>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'time', - subBuilder: $0.Timestamp.create) - ..e<$2.LogSeverity>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'severity', - $pb.PbFieldType.OE, - defaultOrMaker: $2.LogSeverity.DEFAULT, - valueOf: $2.LogSeverity.valueOf, - enumValues: $2.LogSeverity.values) - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'logMessage') - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sourceLocation', subBuilder: SourceLocation.create) - ..hasRequiredFields = false; - - LogLine._() : super(); factory LogLine({ - $0.Timestamp? time, - $2.LogSeverity? severity, + $50.Timestamp? time, + $64.LogSeverity? severity, $core.String? logMessage, SourceLocation? sourceLocation, }) { - final _result = create(); + final $result = create(); if (time != null) { - _result.time = time; + $result.time = time; } if (severity != null) { - _result.severity = severity; + $result.severity = severity; } if (logMessage != null) { - _result.logMessage = logMessage; + $result.logMessage = logMessage; } if (sourceLocation != null) { - _result.sourceLocation = sourceLocation; + $result.sourceLocation = sourceLocation; } - return _result; + return $result; } + LogLine._() : super(); factory LogLine.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogLine.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogLine', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.logging.v1'), + createEmptyInstance: create) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'time', + subBuilder: $50.Timestamp.create) + ..e<$64.LogSeverity>( + 2, _omitFieldNames ? '' : 'severity', $pb.PbFieldType.OE, + defaultOrMaker: $64.LogSeverity.DEFAULT, + valueOf: $64.LogSeverity.valueOf, + enumValues: $64.LogSeverity.values) + ..aOS(3, _omitFieldNames ? '' : 'logMessage') + ..aOM(4, _omitFieldNames ? '' : 'sourceLocation', + subBuilder: SourceLocation.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') @@ -75,9 +74,10 @@ class LogLine extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') LogLine copyWith(void Function(LogLine) updates) => - super.copyWith((message) => updates(message as LogLine)) - as LogLine; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as LogLine)) as LogLine; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogLine create() => LogLine._(); LogLine createEmptyInstance() => create(); @@ -87,10 +87,11 @@ class LogLine extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static LogLine? _defaultInstance; + /// Approximate time when this log entry was made. @$pb.TagNumber(1) - $0.Timestamp get time => $_getN(0); + $50.Timestamp get time => $_getN(0); @$pb.TagNumber(1) - set time($0.Timestamp v) { + set time($50.Timestamp v) { setField(1, v); } @@ -99,12 +100,13 @@ class LogLine extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTime() => clearField(1); @$pb.TagNumber(1) - $0.Timestamp ensureTime() => $_ensure(0); + $50.Timestamp ensureTime() => $_ensure(0); + /// Severity of this log entry. @$pb.TagNumber(2) - $2.LogSeverity get severity => $_getN(1); + $64.LogSeverity get severity => $_getN(1); @$pb.TagNumber(2) - set severity($2.LogSeverity v) { + set severity($64.LogSeverity v) { setField(2, v); } @@ -113,6 +115,7 @@ class LogLine extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearSeverity() => clearField(2); + /// App-provided log message. @$pb.TagNumber(3) $core.String get logMessage => $_getSZ(2); @$pb.TagNumber(3) @@ -125,6 +128,7 @@ class LogLine extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearLogMessage() => clearField(3); + /// Where in the source code this log message was written. @$pb.TagNumber(4) SourceLocation get sourceLocation => $_getN(3); @$pb.TagNumber(4) @@ -140,57 +144,43 @@ class LogLine extends $pb.GeneratedMessage { SourceLocation ensureSourceLocation() => $_ensure(3); } +/// Specifies a location in a source code file. class SourceLocation extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SourceLocation', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.logging.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'file') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'line') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'functionName') - ..hasRequiredFields = false; - - SourceLocation._() : super(); factory SourceLocation({ $core.String? file, $fixnum.Int64? line, $core.String? functionName, }) { - final _result = create(); + final $result = create(); if (file != null) { - _result.file = file; + $result.file = file; } if (line != null) { - _result.line = line; + $result.line = line; } if (functionName != null) { - _result.functionName = functionName; + $result.functionName = functionName; } - return _result; + return $result; } + SourceLocation._() : super(); factory SourceLocation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SourceLocation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceLocation', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.logging.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'file') + ..aInt64(2, _omitFieldNames ? '' : 'line') + ..aOS(3, _omitFieldNames ? '' : 'functionName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -200,8 +190,10 @@ class SourceLocation extends $pb.GeneratedMessage { 'Will be removed in next major version') SourceLocation copyWith(void Function(SourceLocation) updates) => super.copyWith((message) => updates(message as SourceLocation)) - as SourceLocation; // ignore: deprecated_member_use + as SourceLocation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SourceLocation create() => SourceLocation._(); SourceLocation createEmptyInstance() => create(); @@ -212,6 +204,8 @@ class SourceLocation extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SourceLocation? _defaultInstance; + /// Source file name. Depending on the runtime environment, this might be a + /// simple name or a fully-qualified name. @$pb.TagNumber(1) $core.String get file => $_getSZ(0); @$pb.TagNumber(1) @@ -224,6 +218,7 @@ class SourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearFile() => clearField(1); + /// Line within the source file. @$pb.TagNumber(2) $fixnum.Int64 get line => $_getI64(1); @$pb.TagNumber(2) @@ -236,6 +231,12 @@ class SourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearLine() => clearField(2); + /// Human-readable name of the function or method being invoked, with optional + /// context such as the class or package name. This information is used in + /// contexts such as the logs viewer, where a file and line number are less + /// meaningful. The format can vary by language. For example: + /// `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function` + /// (Python). @$pb.TagNumber(3) $core.String get functionName => $_getSZ(2); @$pb.TagNumber(3) @@ -249,48 +250,39 @@ class SourceLocation extends $pb.GeneratedMessage { void clearFunctionName() => clearField(3); } +/// A reference to a particular snapshot of the source tree used to build and +/// deploy an application. class SourceReference extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SourceReference', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.logging.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'repository') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'revisionId') - ..hasRequiredFields = false; - - SourceReference._() : super(); factory SourceReference({ $core.String? repository, $core.String? revisionId, }) { - final _result = create(); + final $result = create(); if (repository != null) { - _result.repository = repository; + $result.repository = repository; } if (revisionId != null) { - _result.revisionId = revisionId; + $result.revisionId = revisionId; } - return _result; + return $result; } + SourceReference._() : super(); factory SourceReference.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SourceReference.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceReference', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.logging.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'repository') + ..aOS(2, _omitFieldNames ? '' : 'revisionId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -300,8 +292,10 @@ class SourceReference extends $pb.GeneratedMessage { 'Will be removed in next major version') SourceReference copyWith(void Function(SourceReference) updates) => super.copyWith((message) => updates(message as SourceReference)) - as SourceReference; // ignore: deprecated_member_use + as SourceReference; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SourceReference create() => SourceReference._(); SourceReference createEmptyInstance() => create(); @@ -312,6 +306,8 @@ class SourceReference extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SourceReference? _defaultInstance; + /// Optional. A URI string identifying the repository. + /// Example: "https://github.com/GoogleCloudPlatform/kubernetes.git" @$pb.TagNumber(1) $core.String get repository => $_getSZ(0); @$pb.TagNumber(1) @@ -324,6 +320,8 @@ class SourceReference extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearRepository() => clearField(1); + /// The canonical and persistent identifier of the deployed revision. + /// Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" @$pb.TagNumber(2) $core.String get revisionId => $_getSZ(1); @$pb.TagNumber(2) @@ -337,73 +335,17 @@ class SourceReference extends $pb.GeneratedMessage { void clearRevisionId() => clearField(2); } +/// Complete log information about a single HTTP request to an App Engine +/// application. class RequestLog extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RequestLog', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.logging.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'appId') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'versionId') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requestId') - ..aOS(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ip') - ..aOM<$0.Timestamp>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startTime', subBuilder: $0.Timestamp.create) - ..aOM<$0.Timestamp>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endTime', subBuilder: $0.Timestamp.create) - ..aOM<$1.Duration>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'latency', subBuilder: $1.Duration.create) - ..aInt64(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'megaCycles') - ..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'method') - ..aOS(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resource') - ..aOS(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'httpVersion') - ..a<$core.int>(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'status', $pb.PbFieldType.O3) - ..aInt64(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'responseSize') - ..aOS(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'referrer') - ..aOS(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'userAgent') - ..aOS(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'urlMapEntry') - ..aOS(20, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'host') - ..a<$core.double>(21, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cost', $pb.PbFieldType.OD) - ..aOS(22, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'taskQueueName') - ..aOS(23, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'taskName') - ..aOB(24, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'wasLoadingRequest') - ..aOM<$1.Duration>(25, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pendingTime', subBuilder: $1.Duration.create) - ..a<$core.int>(26, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'instanceIndex', $pb.PbFieldType.O3) - ..aOB(27, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'finished') - ..aOS(28, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'instanceId') - ..pc(29, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'line', $pb.PbFieldType.PM, subBuilder: LogLine.create) - ..aOS(37, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'moduleId') - ..aOS(38, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appEngineRelease') - ..aOS(39, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'traceId') - ..aOS(40, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nickname') - ..pc(41, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sourceReference', $pb.PbFieldType.PM, subBuilder: SourceReference.create) - ..aOB(42, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'first') - ..aOB(43, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'traceSampled') - ..hasRequiredFields = false; - - RequestLog._() : super(); factory RequestLog({ $core.String? appId, $core.String? versionId, $core.String? requestId, $core.String? ip, - $0.Timestamp? startTime, - $0.Timestamp? endTime, - $1.Duration? latency, + $50.Timestamp? startTime, + $50.Timestamp? endTime, + $51.Duration? latency, $fixnum.Int64? megaCycles, $core.String? method, $core.String? resource, @@ -418,7 +360,7 @@ class RequestLog extends $pb.GeneratedMessage { $core.String? taskQueueName, $core.String? taskName, $core.bool? wasLoadingRequest, - $1.Duration? pendingTime, + $51.Duration? pendingTime, $core.int? instanceIndex, $core.bool? finished, $core.String? instanceId, @@ -431,114 +373,164 @@ class RequestLog extends $pb.GeneratedMessage { $core.bool? first, $core.bool? traceSampled, }) { - final _result = create(); + final $result = create(); if (appId != null) { - _result.appId = appId; + $result.appId = appId; } if (versionId != null) { - _result.versionId = versionId; + $result.versionId = versionId; } if (requestId != null) { - _result.requestId = requestId; + $result.requestId = requestId; } if (ip != null) { - _result.ip = ip; + $result.ip = ip; } if (startTime != null) { - _result.startTime = startTime; + $result.startTime = startTime; } if (endTime != null) { - _result.endTime = endTime; + $result.endTime = endTime; } if (latency != null) { - _result.latency = latency; + $result.latency = latency; } if (megaCycles != null) { - _result.megaCycles = megaCycles; + $result.megaCycles = megaCycles; } if (method != null) { - _result.method = method; + $result.method = method; } if (resource != null) { - _result.resource = resource; + $result.resource = resource; } if (httpVersion != null) { - _result.httpVersion = httpVersion; + $result.httpVersion = httpVersion; } if (status != null) { - _result.status = status; + $result.status = status; } if (responseSize != null) { - _result.responseSize = responseSize; + $result.responseSize = responseSize; } if (referrer != null) { - _result.referrer = referrer; + $result.referrer = referrer; } if (userAgent != null) { - _result.userAgent = userAgent; + $result.userAgent = userAgent; } if (urlMapEntry != null) { - _result.urlMapEntry = urlMapEntry; + $result.urlMapEntry = urlMapEntry; } if (host != null) { - _result.host = host; + $result.host = host; } if (cost != null) { - _result.cost = cost; + $result.cost = cost; } if (taskQueueName != null) { - _result.taskQueueName = taskQueueName; + $result.taskQueueName = taskQueueName; } if (taskName != null) { - _result.taskName = taskName; + $result.taskName = taskName; } if (wasLoadingRequest != null) { - _result.wasLoadingRequest = wasLoadingRequest; + $result.wasLoadingRequest = wasLoadingRequest; } if (pendingTime != null) { - _result.pendingTime = pendingTime; + $result.pendingTime = pendingTime; } if (instanceIndex != null) { - _result.instanceIndex = instanceIndex; + $result.instanceIndex = instanceIndex; } if (finished != null) { - _result.finished = finished; + $result.finished = finished; } if (instanceId != null) { - _result.instanceId = instanceId; + $result.instanceId = instanceId; } if (line != null) { - _result.line.addAll(line); + $result.line.addAll(line); } if (moduleId != null) { - _result.moduleId = moduleId; + $result.moduleId = moduleId; } if (appEngineRelease != null) { - _result.appEngineRelease = appEngineRelease; + $result.appEngineRelease = appEngineRelease; } if (traceId != null) { - _result.traceId = traceId; + $result.traceId = traceId; } if (nickname != null) { - _result.nickname = nickname; + $result.nickname = nickname; } if (sourceReference != null) { - _result.sourceReference.addAll(sourceReference); + $result.sourceReference.addAll(sourceReference); } if (first != null) { - _result.first = first; + $result.first = first; } if (traceSampled != null) { - _result.traceSampled = traceSampled; + $result.traceSampled = traceSampled; } - return _result; + return $result; } + RequestLog._() : super(); factory RequestLog.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RequestLog.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RequestLog', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.logging.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'appId') + ..aOS(2, _omitFieldNames ? '' : 'versionId') + ..aOS(3, _omitFieldNames ? '' : 'requestId') + ..aOS(4, _omitFieldNames ? '' : 'ip') + ..aOM<$50.Timestamp>(6, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(7, _omitFieldNames ? '' : 'endTime', + subBuilder: $50.Timestamp.create) + ..aOM<$51.Duration>(8, _omitFieldNames ? '' : 'latency', + subBuilder: $51.Duration.create) + ..aInt64(9, _omitFieldNames ? '' : 'megaCycles') + ..aOS(10, _omitFieldNames ? '' : 'method') + ..aOS(11, _omitFieldNames ? '' : 'resource') + ..aOS(12, _omitFieldNames ? '' : 'httpVersion') + ..a<$core.int>(13, _omitFieldNames ? '' : 'status', $pb.PbFieldType.O3) + ..aInt64(14, _omitFieldNames ? '' : 'responseSize') + ..aOS(15, _omitFieldNames ? '' : 'referrer') + ..aOS(16, _omitFieldNames ? '' : 'userAgent') + ..aOS(17, _omitFieldNames ? '' : 'urlMapEntry') + ..aOS(20, _omitFieldNames ? '' : 'host') + ..a<$core.double>(21, _omitFieldNames ? '' : 'cost', $pb.PbFieldType.OD) + ..aOS(22, _omitFieldNames ? '' : 'taskQueueName') + ..aOS(23, _omitFieldNames ? '' : 'taskName') + ..aOB(24, _omitFieldNames ? '' : 'wasLoadingRequest') + ..aOM<$51.Duration>(25, _omitFieldNames ? '' : 'pendingTime', + subBuilder: $51.Duration.create) + ..a<$core.int>( + 26, _omitFieldNames ? '' : 'instanceIndex', $pb.PbFieldType.O3) + ..aOB(27, _omitFieldNames ? '' : 'finished') + ..aOS(28, _omitFieldNames ? '' : 'instanceId') + ..pc(29, _omitFieldNames ? '' : 'line', $pb.PbFieldType.PM, + subBuilder: LogLine.create) + ..aOS(37, _omitFieldNames ? '' : 'moduleId') + ..aOS(38, _omitFieldNames ? '' : 'appEngineRelease') + ..aOS(39, _omitFieldNames ? '' : 'traceId') + ..aOS(40, _omitFieldNames ? '' : 'nickname') + ..pc( + 41, _omitFieldNames ? '' : 'sourceReference', $pb.PbFieldType.PM, + subBuilder: SourceReference.create) + ..aOB(42, _omitFieldNames ? '' : 'first') + ..aOB(43, _omitFieldNames ? '' : 'traceSampled') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -547,9 +539,10 @@ class RequestLog extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') RequestLog copyWith(void Function(RequestLog) updates) => - super.copyWith((message) => updates(message as RequestLog)) - as RequestLog; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as RequestLog)) as RequestLog; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RequestLog create() => RequestLog._(); RequestLog createEmptyInstance() => create(); @@ -559,6 +552,7 @@ class RequestLog extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static RequestLog? _defaultInstance; + /// Application that handled this request. @$pb.TagNumber(1) $core.String get appId => $_getSZ(0); @$pb.TagNumber(1) @@ -571,6 +565,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearAppId() => clearField(1); + /// Version of the application that handled this request. @$pb.TagNumber(2) $core.String get versionId => $_getSZ(1); @$pb.TagNumber(2) @@ -583,6 +578,9 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearVersionId() => clearField(2); + /// Globally unique identifier for a request, which is based on the request + /// start time. Request IDs for requests which started later will compare + /// greater as strings than those for requests which started earlier. @$pb.TagNumber(3) $core.String get requestId => $_getSZ(2); @$pb.TagNumber(3) @@ -595,6 +593,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearRequestId() => clearField(3); + /// Origin IP address. @$pb.TagNumber(4) $core.String get ip => $_getSZ(3); @$pb.TagNumber(4) @@ -607,10 +606,11 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearIp() => clearField(4); + /// Time when the request started. @$pb.TagNumber(6) - $0.Timestamp get startTime => $_getN(4); + $50.Timestamp get startTime => $_getN(4); @$pb.TagNumber(6) - set startTime($0.Timestamp v) { + set startTime($50.Timestamp v) { setField(6, v); } @@ -619,12 +619,13 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearStartTime() => clearField(6); @$pb.TagNumber(6) - $0.Timestamp ensureStartTime() => $_ensure(4); + $50.Timestamp ensureStartTime() => $_ensure(4); + /// Time when the request finished. @$pb.TagNumber(7) - $0.Timestamp get endTime => $_getN(5); + $50.Timestamp get endTime => $_getN(5); @$pb.TagNumber(7) - set endTime($0.Timestamp v) { + set endTime($50.Timestamp v) { setField(7, v); } @@ -633,12 +634,13 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearEndTime() => clearField(7); @$pb.TagNumber(7) - $0.Timestamp ensureEndTime() => $_ensure(5); + $50.Timestamp ensureEndTime() => $_ensure(5); + /// Latency of the request. @$pb.TagNumber(8) - $1.Duration get latency => $_getN(6); + $51.Duration get latency => $_getN(6); @$pb.TagNumber(8) - set latency($1.Duration v) { + set latency($51.Duration v) { setField(8, v); } @@ -647,8 +649,9 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearLatency() => clearField(8); @$pb.TagNumber(8) - $1.Duration ensureLatency() => $_ensure(6); + $51.Duration ensureLatency() => $_ensure(6); + /// Number of CPU megacycles used to process request. @$pb.TagNumber(9) $fixnum.Int64 get megaCycles => $_getI64(7); @$pb.TagNumber(9) @@ -661,6 +664,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearMegaCycles() => clearField(9); + /// Request method. Example: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`, `"DELETE"`. @$pb.TagNumber(10) $core.String get method => $_getSZ(8); @$pb.TagNumber(10) @@ -673,6 +677,10 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearMethod() => clearField(10); + /// Contains the path and query portion of the URL that was requested. For + /// example, if the URL was "http://example.com/app?name=val", the resource + /// would be "/app?name=val". The fragment identifier, which is identified by + /// the `#` character, is not included. @$pb.TagNumber(11) $core.String get resource => $_getSZ(9); @$pb.TagNumber(11) @@ -685,6 +693,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearResource() => clearField(11); + /// HTTP version of request. Example: `"HTTP/1.1"`. @$pb.TagNumber(12) $core.String get httpVersion => $_getSZ(10); @$pb.TagNumber(12) @@ -697,6 +706,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearHttpVersion() => clearField(12); + /// HTTP response status code. Example: 200, 404. @$pb.TagNumber(13) $core.int get status => $_getIZ(11); @$pb.TagNumber(13) @@ -709,6 +719,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(13) void clearStatus() => clearField(13); + /// Size in bytes sent back to client by request. @$pb.TagNumber(14) $fixnum.Int64 get responseSize => $_getI64(12); @$pb.TagNumber(14) @@ -721,6 +732,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearResponseSize() => clearField(14); + /// Referrer URL of request. @$pb.TagNumber(15) $core.String get referrer => $_getSZ(13); @$pb.TagNumber(15) @@ -733,6 +745,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearReferrer() => clearField(15); + /// User agent that made the request. @$pb.TagNumber(16) $core.String get userAgent => $_getSZ(14); @$pb.TagNumber(16) @@ -745,6 +758,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(16) void clearUserAgent() => clearField(16); + /// File or class that handled the request. @$pb.TagNumber(17) $core.String get urlMapEntry => $_getSZ(15); @$pb.TagNumber(17) @@ -757,6 +771,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(17) void clearUrlMapEntry() => clearField(17); + /// Internet host and port number of the resource being requested. @$pb.TagNumber(20) $core.String get host => $_getSZ(16); @$pb.TagNumber(20) @@ -769,6 +784,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(20) void clearHost() => clearField(20); + /// An indication of the relative cost of serving this request. @$pb.TagNumber(21) $core.double get cost => $_getN(17); @$pb.TagNumber(21) @@ -781,6 +797,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(21) void clearCost() => clearField(21); + /// Queue name of the request, in the case of an offline request. @$pb.TagNumber(22) $core.String get taskQueueName => $_getSZ(18); @$pb.TagNumber(22) @@ -793,6 +810,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(22) void clearTaskQueueName() => clearField(22); + /// Task name of the request, in the case of an offline request. @$pb.TagNumber(23) $core.String get taskName => $_getSZ(19); @$pb.TagNumber(23) @@ -805,6 +823,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(23) void clearTaskName() => clearField(23); + /// Whether this was a loading request for the instance. @$pb.TagNumber(24) $core.bool get wasLoadingRequest => $_getBF(20); @$pb.TagNumber(24) @@ -817,10 +836,11 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(24) void clearWasLoadingRequest() => clearField(24); + /// Time this request spent in the pending request queue. @$pb.TagNumber(25) - $1.Duration get pendingTime => $_getN(21); + $51.Duration get pendingTime => $_getN(21); @$pb.TagNumber(25) - set pendingTime($1.Duration v) { + set pendingTime($51.Duration v) { setField(25, v); } @@ -829,8 +849,11 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(25) void clearPendingTime() => clearField(25); @$pb.TagNumber(25) - $1.Duration ensurePendingTime() => $_ensure(21); + $51.Duration ensurePendingTime() => $_ensure(21); + /// If the instance processing this request belongs to a manually scaled + /// module, then this is the 0-based index of the instance. Otherwise, this + /// value is -1. @$pb.TagNumber(26) $core.int get instanceIndex => $_getIZ(22); @$pb.TagNumber(26) @@ -843,6 +866,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(26) void clearInstanceIndex() => clearField(26); + /// Whether this request is finished or active. @$pb.TagNumber(27) $core.bool get finished => $_getBF(23); @$pb.TagNumber(27) @@ -855,6 +879,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(27) void clearFinished() => clearField(27); + /// An identifier for the instance that handled the request. @$pb.TagNumber(28) $core.String get instanceId => $_getSZ(24); @$pb.TagNumber(28) @@ -867,9 +892,11 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(28) void clearInstanceId() => clearField(28); + /// A list of log lines emitted by the application while serving this request. @$pb.TagNumber(29) $core.List get line => $_getList(25); + /// Module of the application that handled this request. @$pb.TagNumber(37) $core.String get moduleId => $_getSZ(26); @$pb.TagNumber(37) @@ -882,6 +909,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(37) void clearModuleId() => clearField(37); + /// App Engine release version. @$pb.TagNumber(38) $core.String get appEngineRelease => $_getSZ(27); @$pb.TagNumber(38) @@ -894,6 +922,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(38) void clearAppEngineRelease() => clearField(38); + /// Stackdriver Trace identifier for this request. @$pb.TagNumber(39) $core.String get traceId => $_getSZ(28); @$pb.TagNumber(39) @@ -906,6 +935,14 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(39) void clearTraceId() => clearField(39); + /// The logged-in user who made the request. + /// + /// Most likely, this is the part of the user's email before the `@` sign. The + /// field value is the same for different requests from the same user, but + /// different users can have similar names. This information is also + /// available to the application via the App Engine Users API. + /// + /// This field will be populated starting with App Engine 1.9.21. @$pb.TagNumber(40) $core.String get nickname => $_getSZ(29); @$pb.TagNumber(40) @@ -918,9 +955,15 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(40) void clearNickname() => clearField(40); + /// Source code for the application that handled this request. There can be + /// more than one source reference per deployed application if source code is + /// distributed among multiple repositories. @$pb.TagNumber(41) $core.List get sourceReference => $_getList(30); + /// Whether this is the first `RequestLog` entry for this request. If an + /// active request has several `RequestLog` entries written to Stackdriver + /// Logging, then this field will be set for one of them. @$pb.TagNumber(42) $core.bool get first => $_getBF(31); @$pb.TagNumber(42) @@ -933,6 +976,8 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(42) void clearFirst() => clearField(42); + /// If true, the value in the 'trace_id' field was sampled for storage in a + /// trace backend. @$pb.TagNumber(43) $core.bool get traceSampled => $_getBF(32); @$pb.TagNumber(43) @@ -945,3 +990,7 @@ class RequestLog extends $pb.GeneratedMessage { @$pb.TagNumber(43) void clearTraceSampled() => clearField(43); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pbenum.dart index eb4cd2bb..2cbe7ce6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/logging/v1/request_log.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pbjson.dart index ece1281d..99487171 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/logging/v1/request_log.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/logging/v1/request_log.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 logLineDescriptor instead') @@ -43,7 +47,12 @@ const LogLine$json = { /// Descriptor for `LogLine`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logLineDescriptor = $convert.base64Decode( - 'CgdMb2dMaW5lEi4KBHRpbWUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgR0aW1lEjwKCHNldmVyaXR5GAIgASgOMiAuZ29vZ2xlLmxvZ2dpbmcudHlwZS5Mb2dTZXZlcml0eVIIc2V2ZXJpdHkSHwoLbG9nX21lc3NhZ2UYAyABKAlSCmxvZ01lc3NhZ2USVAoPc291cmNlX2xvY2F0aW9uGAQgASgLMisuZ29vZ2xlLmFwcGVuZ2luZS5sb2dnaW5nLnYxLlNvdXJjZUxvY2F0aW9uUg5zb3VyY2VMb2NhdGlvbg=='); + 'CgdMb2dMaW5lEi4KBHRpbWUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgR0aW' + '1lEjwKCHNldmVyaXR5GAIgASgOMiAuZ29vZ2xlLmxvZ2dpbmcudHlwZS5Mb2dTZXZlcml0eVII' + 'c2V2ZXJpdHkSHwoLbG9nX21lc3NhZ2UYAyABKAlSCmxvZ01lc3NhZ2USVAoPc291cmNlX2xvY2' + 'F0aW9uGAQgASgLMisuZ29vZ2xlLmFwcGVuZ2luZS5sb2dnaW5nLnYxLlNvdXJjZUxvY2F0aW9u' + 'Ug5zb3VyY2VMb2NhdGlvbg=='); + @$core.Deprecated('Use sourceLocationDescriptor instead') const SourceLocation$json = { '1': 'SourceLocation', @@ -56,7 +65,9 @@ const SourceLocation$json = { /// Descriptor for `SourceLocation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sourceLocationDescriptor = $convert.base64Decode( - 'Cg5Tb3VyY2VMb2NhdGlvbhISCgRmaWxlGAEgASgJUgRmaWxlEhIKBGxpbmUYAiABKANSBGxpbmUSIwoNZnVuY3Rpb25fbmFtZRgDIAEoCVIMZnVuY3Rpb25OYW1l'); + 'Cg5Tb3VyY2VMb2NhdGlvbhISCgRmaWxlGAEgASgJUgRmaWxlEhIKBGxpbmUYAiABKANSBGxpbm' + 'USIwoNZnVuY3Rpb25fbmFtZRgDIAEoCVIMZnVuY3Rpb25OYW1l'); + @$core.Deprecated('Use sourceReferenceDescriptor instead') const SourceReference$json = { '1': 'SourceReference', @@ -68,7 +79,9 @@ const SourceReference$json = { /// Descriptor for `SourceReference`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sourceReferenceDescriptor = $convert.base64Decode( - 'Cg9Tb3VyY2VSZWZlcmVuY2USHgoKcmVwb3NpdG9yeRgBIAEoCVIKcmVwb3NpdG9yeRIfCgtyZXZpc2lvbl9pZBgCIAEoCVIKcmV2aXNpb25JZA=='); + 'Cg9Tb3VyY2VSZWZlcmVuY2USHgoKcmVwb3NpdG9yeRgBIAEoCVIKcmVwb3NpdG9yeRIfCgtyZX' + 'Zpc2lvbl9pZBgCIAEoCVIKcmV2aXNpb25JZA=='); + @$core.Deprecated('Use requestLogDescriptor instead') const RequestLog$json = { '1': 'RequestLog', @@ -165,4 +178,25 @@ const RequestLog$json = { /// Descriptor for `RequestLog`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List requestLogDescriptor = $convert.base64Decode( - 'CgpSZXF1ZXN0TG9nEhUKBmFwcF9pZBgBIAEoCVIFYXBwSWQSGwoJbW9kdWxlX2lkGCUgASgJUghtb2R1bGVJZBIdCgp2ZXJzaW9uX2lkGAIgASgJUgl2ZXJzaW9uSWQSHQoKcmVxdWVzdF9pZBgDIAEoCVIJcmVxdWVzdElkEg4KAmlwGAQgASgJUgJpcBI5CgpzdGFydF90aW1lGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIHZW5kVGltZRIzCgdsYXRlbmN5GAggASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgdsYXRlbmN5Eh8KC21lZ2FfY3ljbGVzGAkgASgDUgptZWdhQ3ljbGVzEhYKBm1ldGhvZBgKIAEoCVIGbWV0aG9kEhoKCHJlc291cmNlGAsgASgJUghyZXNvdXJjZRIhCgxodHRwX3ZlcnNpb24YDCABKAlSC2h0dHBWZXJzaW9uEhYKBnN0YXR1cxgNIAEoBVIGc3RhdHVzEiMKDXJlc3BvbnNlX3NpemUYDiABKANSDHJlc3BvbnNlU2l6ZRIaCghyZWZlcnJlchgPIAEoCVIIcmVmZXJyZXISHQoKdXNlcl9hZ2VudBgQIAEoCVIJdXNlckFnZW50EhoKCG5pY2tuYW1lGCggASgJUghuaWNrbmFtZRIiCg11cmxfbWFwX2VudHJ5GBEgASgJUgt1cmxNYXBFbnRyeRISCgRob3N0GBQgASgJUgRob3N0EhIKBGNvc3QYFSABKAFSBGNvc3QSJgoPdGFza19xdWV1ZV9uYW1lGBYgASgJUg10YXNrUXVldWVOYW1lEhsKCXRhc2tfbmFtZRgXIAEoCVIIdGFza05hbWUSLgoTd2FzX2xvYWRpbmdfcmVxdWVzdBgYIAEoCFIRd2FzTG9hZGluZ1JlcXVlc3QSPAoMcGVuZGluZ190aW1lGBkgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgtwZW5kaW5nVGltZRIlCg5pbnN0YW5jZV9pbmRleBgaIAEoBVINaW5zdGFuY2VJbmRleBIaCghmaW5pc2hlZBgbIAEoCFIIZmluaXNoZWQSFAoFZmlyc3QYKiABKAhSBWZpcnN0Eh8KC2luc3RhbmNlX2lkGBwgASgJUgppbnN0YW5jZUlkEjgKBGxpbmUYHSADKAsyJC5nb29nbGUuYXBwZW5naW5lLmxvZ2dpbmcudjEuTG9nTGluZVIEbGluZRIsChJhcHBfZW5naW5lX3JlbGVhc2UYJiABKAlSEGFwcEVuZ2luZVJlbGVhc2USGQoIdHJhY2VfaWQYJyABKAlSB3RyYWNlSWQSIwoNdHJhY2Vfc2FtcGxlZBgrIAEoCFIMdHJhY2VTYW1wbGVkElcKEHNvdXJjZV9yZWZlcmVuY2UYKSADKAsyLC5nb29nbGUuYXBwZW5naW5lLmxvZ2dpbmcudjEuU291cmNlUmVmZXJlbmNlUg9zb3VyY2VSZWZlcmVuY2U='); + 'CgpSZXF1ZXN0TG9nEhUKBmFwcF9pZBgBIAEoCVIFYXBwSWQSGwoJbW9kdWxlX2lkGCUgASgJUg' + 'htb2R1bGVJZBIdCgp2ZXJzaW9uX2lkGAIgASgJUgl2ZXJzaW9uSWQSHQoKcmVxdWVzdF9pZBgD' + 'IAEoCVIJcmVxdWVzdElkEg4KAmlwGAQgASgJUgJpcBI5CgpzdGFydF90aW1lGAYgASgLMhouZ2' + '9vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAcgASgLMhou' + 'Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIHZW5kVGltZRIzCgdsYXRlbmN5GAggASgLMhkuZ2' + '9vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgdsYXRlbmN5Eh8KC21lZ2FfY3ljbGVzGAkgASgDUgpt' + 'ZWdhQ3ljbGVzEhYKBm1ldGhvZBgKIAEoCVIGbWV0aG9kEhoKCHJlc291cmNlGAsgASgJUghyZX' + 'NvdXJjZRIhCgxodHRwX3ZlcnNpb24YDCABKAlSC2h0dHBWZXJzaW9uEhYKBnN0YXR1cxgNIAEo' + 'BVIGc3RhdHVzEiMKDXJlc3BvbnNlX3NpemUYDiABKANSDHJlc3BvbnNlU2l6ZRIaCghyZWZlcn' + 'JlchgPIAEoCVIIcmVmZXJyZXISHQoKdXNlcl9hZ2VudBgQIAEoCVIJdXNlckFnZW50EhoKCG5p' + 'Y2tuYW1lGCggASgJUghuaWNrbmFtZRIiCg11cmxfbWFwX2VudHJ5GBEgASgJUgt1cmxNYXBFbn' + 'RyeRISCgRob3N0GBQgASgJUgRob3N0EhIKBGNvc3QYFSABKAFSBGNvc3QSJgoPdGFza19xdWV1' + 'ZV9uYW1lGBYgASgJUg10YXNrUXVldWVOYW1lEhsKCXRhc2tfbmFtZRgXIAEoCVIIdGFza05hbW' + 'USLgoTd2FzX2xvYWRpbmdfcmVxdWVzdBgYIAEoCFIRd2FzTG9hZGluZ1JlcXVlc3QSPAoMcGVu' + 'ZGluZ190aW1lGBkgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgtwZW5kaW5nVGltZR' + 'IlCg5pbnN0YW5jZV9pbmRleBgaIAEoBVINaW5zdGFuY2VJbmRleBIaCghmaW5pc2hlZBgbIAEo' + 'CFIIZmluaXNoZWQSFAoFZmlyc3QYKiABKAhSBWZpcnN0Eh8KC2luc3RhbmNlX2lkGBwgASgJUg' + 'ppbnN0YW5jZUlkEjgKBGxpbmUYHSADKAsyJC5nb29nbGUuYXBwZW5naW5lLmxvZ2dpbmcudjEu' + 'TG9nTGluZVIEbGluZRIsChJhcHBfZW5naW5lX3JlbGVhc2UYJiABKAlSEGFwcEVuZ2luZVJlbG' + 'Vhc2USGQoIdHJhY2VfaWQYJyABKAlSB3RyYWNlSWQSIwoNdHJhY2Vfc2FtcGxlZBgrIAEoCFIM' + 'dHJhY2VTYW1wbGVkElcKEHNvdXJjZV9yZWZlcmVuY2UYKSADKAsyLC5nb29nbGUuYXBwZW5naW' + '5lLmxvZ2dpbmcudjEuU291cmNlUmVmZXJlbmNlUg9zb3VyY2VSZWZlcmVuY2U='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pb.dart index 66dcd05d..0e826e78 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pb.dart @@ -1,48 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/app_yaml.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/duration.pb.dart' as $0; - +import '../../protobuf/duration.pb.dart' as $51; import 'app_yaml.pbenum.dart'; export 'app_yaml.pbenum.dart'; +/// [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) +/// configuration for API handlers. class ApiConfigHandler extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ApiConfigHandler', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..e(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authFailAction', $pb.PbFieldType.OE, - defaultOrMaker: AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED, - valueOf: AuthFailAction.valueOf, - enumValues: AuthFailAction.values) - ..e( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'login', $pb.PbFieldType.OE, - defaultOrMaker: LoginRequirement.LOGIN_UNSPECIFIED, - valueOf: LoginRequirement.valueOf, - enumValues: LoginRequirement.values) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'script') - ..e(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'securityLevel', $pb.PbFieldType.OE, - defaultOrMaker: SecurityLevel.SECURE_UNSPECIFIED, - valueOf: SecurityLevel.valueOf, - enumValues: SecurityLevel.values) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'url') - ..hasRequiredFields = false; - - ApiConfigHandler._() : super(); factory ApiConfigHandler({ AuthFailAction? authFailAction, LoginRequirement? login, @@ -50,30 +28,55 @@ class ApiConfigHandler extends $pb.GeneratedMessage { SecurityLevel? securityLevel, $core.String? url, }) { - final _result = create(); + final $result = create(); if (authFailAction != null) { - _result.authFailAction = authFailAction; + $result.authFailAction = authFailAction; } if (login != null) { - _result.login = login; + $result.login = login; } if (script != null) { - _result.script = script; + $result.script = script; } if (securityLevel != null) { - _result.securityLevel = securityLevel; + $result.securityLevel = securityLevel; } if (url != null) { - _result.url = url; + $result.url = url; } - return _result; + return $result; } + ApiConfigHandler._() : super(); factory ApiConfigHandler.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ApiConfigHandler.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApiConfigHandler', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'authFailAction', $pb.PbFieldType.OE, + defaultOrMaker: AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED, + valueOf: AuthFailAction.valueOf, + enumValues: AuthFailAction.values) + ..e(2, _omitFieldNames ? '' : 'login', $pb.PbFieldType.OE, + defaultOrMaker: LoginRequirement.LOGIN_UNSPECIFIED, + valueOf: LoginRequirement.valueOf, + enumValues: LoginRequirement.values) + ..aOS(3, _omitFieldNames ? '' : 'script') + ..e( + 4, _omitFieldNames ? '' : 'securityLevel', $pb.PbFieldType.OE, + defaultOrMaker: SecurityLevel.SECURE_UNSPECIFIED, + valueOf: SecurityLevel.valueOf, + enumValues: SecurityLevel.values) + ..aOS(5, _omitFieldNames ? '' : 'url') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -83,8 +86,10 @@ class ApiConfigHandler extends $pb.GeneratedMessage { 'Will be removed in next major version') ApiConfigHandler copyWith(void Function(ApiConfigHandler) updates) => super.copyWith((message) => updates(message as ApiConfigHandler)) - as ApiConfigHandler; // ignore: deprecated_member_use + as ApiConfigHandler; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ApiConfigHandler create() => ApiConfigHandler._(); ApiConfigHandler createEmptyInstance() => create(); @@ -95,6 +100,8 @@ class ApiConfigHandler extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ApiConfigHandler? _defaultInstance; + /// Action to take when users access resources that require + /// authentication. Defaults to `redirect`. @$pb.TagNumber(1) AuthFailAction get authFailAction => $_getN(0); @$pb.TagNumber(1) @@ -107,6 +114,8 @@ class ApiConfigHandler extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearAuthFailAction() => clearField(1); + /// Level of login required to access this resource. Defaults to + /// `optional`. @$pb.TagNumber(2) LoginRequirement get login => $_getN(1); @$pb.TagNumber(2) @@ -119,6 +128,7 @@ class ApiConfigHandler extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearLogin() => clearField(2); + /// Path to the script from the application root directory. @$pb.TagNumber(3) $core.String get script => $_getSZ(2); @$pb.TagNumber(3) @@ -131,6 +141,7 @@ class ApiConfigHandler extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearScript() => clearField(3); + /// Security (HTTPS) enforcement for this URL. @$pb.TagNumber(4) SecurityLevel get securityLevel => $_getN(3); @$pb.TagNumber(4) @@ -143,6 +154,7 @@ class ApiConfigHandler extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearSecurityLevel() => clearField(4); + /// URL to serve the endpoint at. @$pb.TagNumber(5) $core.String get url => $_getSZ(4); @$pb.TagNumber(5) @@ -156,54 +168,47 @@ class ApiConfigHandler extends $pb.GeneratedMessage { void clearUrl() => clearField(5); } +/// Custom static error page to be served when an error occurs. class ErrorHandler extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ErrorHandler', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'errorCode', - $pb.PbFieldType.OE, - defaultOrMaker: ErrorHandler_ErrorCode.ERROR_CODE_UNSPECIFIED, - valueOf: ErrorHandler_ErrorCode.valueOf, - enumValues: ErrorHandler_ErrorCode.values) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'staticFile') - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mimeType') - ..hasRequiredFields = false; - - ErrorHandler._() : super(); factory ErrorHandler({ ErrorHandler_ErrorCode? errorCode, $core.String? staticFile, $core.String? mimeType, }) { - final _result = create(); + final $result = create(); if (errorCode != null) { - _result.errorCode = errorCode; + $result.errorCode = errorCode; } if (staticFile != null) { - _result.staticFile = staticFile; + $result.staticFile = staticFile; } if (mimeType != null) { - _result.mimeType = mimeType; + $result.mimeType = mimeType; } - return _result; + return $result; } + ErrorHandler._() : super(); factory ErrorHandler.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ErrorHandler.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ErrorHandler', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'errorCode', $pb.PbFieldType.OE, + defaultOrMaker: ErrorHandler_ErrorCode.ERROR_CODE_UNSPECIFIED, + valueOf: ErrorHandler_ErrorCode.valueOf, + enumValues: ErrorHandler_ErrorCode.values) + ..aOS(2, _omitFieldNames ? '' : 'staticFile') + ..aOS(3, _omitFieldNames ? '' : 'mimeType') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -213,8 +218,10 @@ class ErrorHandler extends $pb.GeneratedMessage { 'Will be removed in next major version') ErrorHandler copyWith(void Function(ErrorHandler) updates) => super.copyWith((message) => updates(message as ErrorHandler)) - as ErrorHandler; // ignore: deprecated_member_use + as ErrorHandler; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ErrorHandler create() => ErrorHandler._(); ErrorHandler createEmptyInstance() => create(); @@ -225,6 +232,7 @@ class ErrorHandler extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ErrorHandler? _defaultInstance; + /// Error condition this handler applies to. @$pb.TagNumber(1) ErrorHandler_ErrorCode get errorCode => $_getN(0); @$pb.TagNumber(1) @@ -237,6 +245,7 @@ class ErrorHandler extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearErrorCode() => clearField(1); + /// Static file content to be served for this error. @$pb.TagNumber(2) $core.String get staticFile => $_getSZ(1); @$pb.TagNumber(2) @@ -249,6 +258,7 @@ class ErrorHandler extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearStaticFile() => clearField(2); + /// MIME type of file. Defaults to `text/html`. @$pb.TagNumber(3) $core.String get mimeType => $_getSZ(2); @$pb.TagNumber(3) @@ -264,45 +274,10 @@ class ErrorHandler extends $pb.GeneratedMessage { enum UrlMap_HandlerType { staticFiles, script, apiEndpoint, notSet } +/// URL pattern and description of how the URL should be handled. App Engine can +/// handle URLs by executing application code or by serving static files +/// uploaded with the version, such as images, CSS, or JavaScript. class UrlMap extends $pb.GeneratedMessage { - static const $core.Map<$core.int, UrlMap_HandlerType> - _UrlMap_HandlerTypeByTag = { - 2: UrlMap_HandlerType.staticFiles, - 3: UrlMap_HandlerType.script, - 4: UrlMap_HandlerType.apiEndpoint, - 0: UrlMap_HandlerType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'UrlMap', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..oo(0, [2, 3, 4]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'urlRegex') - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'staticFiles', - subBuilder: StaticFilesHandler.create) - ..aOM(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'script', - subBuilder: ScriptHandler.create) - ..aOM( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apiEndpoint', - subBuilder: ApiEndpointHandler.create) - ..e(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'securityLevel', $pb.PbFieldType.OE, - defaultOrMaker: SecurityLevel.SECURE_UNSPECIFIED, - valueOf: SecurityLevel.valueOf, - enumValues: SecurityLevel.values) - ..e(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'login', $pb.PbFieldType.OE, - defaultOrMaker: LoginRequirement.LOGIN_UNSPECIFIED, - valueOf: LoginRequirement.valueOf, - enumValues: LoginRequirement.values) - ..e(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authFailAction', $pb.PbFieldType.OE, defaultOrMaker: AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED, valueOf: AuthFailAction.valueOf, enumValues: AuthFailAction.values) - ..e(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'redirectHttpResponseCode', $pb.PbFieldType.OE, defaultOrMaker: UrlMap_RedirectHttpResponseCode.REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED, valueOf: UrlMap_RedirectHttpResponseCode.valueOf, enumValues: UrlMap_RedirectHttpResponseCode.values) - ..hasRequiredFields = false; - - UrlMap._() : super(); factory UrlMap({ $core.String? urlRegex, StaticFilesHandler? staticFiles, @@ -313,39 +288,83 @@ class UrlMap extends $pb.GeneratedMessage { AuthFailAction? authFailAction, UrlMap_RedirectHttpResponseCode? redirectHttpResponseCode, }) { - final _result = create(); + final $result = create(); if (urlRegex != null) { - _result.urlRegex = urlRegex; + $result.urlRegex = urlRegex; } if (staticFiles != null) { - _result.staticFiles = staticFiles; + $result.staticFiles = staticFiles; } if (script != null) { - _result.script = script; + $result.script = script; } if (apiEndpoint != null) { - _result.apiEndpoint = apiEndpoint; + $result.apiEndpoint = apiEndpoint; } if (securityLevel != null) { - _result.securityLevel = securityLevel; + $result.securityLevel = securityLevel; } if (login != null) { - _result.login = login; + $result.login = login; } if (authFailAction != null) { - _result.authFailAction = authFailAction; + $result.authFailAction = authFailAction; } if (redirectHttpResponseCode != null) { - _result.redirectHttpResponseCode = redirectHttpResponseCode; + $result.redirectHttpResponseCode = redirectHttpResponseCode; } - return _result; + return $result; } + UrlMap._() : super(); factory UrlMap.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UrlMap.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, UrlMap_HandlerType> + _UrlMap_HandlerTypeByTag = { + 2: UrlMap_HandlerType.staticFiles, + 3: UrlMap_HandlerType.script, + 4: UrlMap_HandlerType.apiEndpoint, + 0: UrlMap_HandlerType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UrlMap', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..oo(0, [2, 3, 4]) + ..aOS(1, _omitFieldNames ? '' : 'urlRegex') + ..aOM(2, _omitFieldNames ? '' : 'staticFiles', + subBuilder: StaticFilesHandler.create) + ..aOM(3, _omitFieldNames ? '' : 'script', + subBuilder: ScriptHandler.create) + ..aOM(4, _omitFieldNames ? '' : 'apiEndpoint', + subBuilder: ApiEndpointHandler.create) + ..e( + 5, _omitFieldNames ? '' : 'securityLevel', $pb.PbFieldType.OE, + defaultOrMaker: SecurityLevel.SECURE_UNSPECIFIED, + valueOf: SecurityLevel.valueOf, + enumValues: SecurityLevel.values) + ..e(6, _omitFieldNames ? '' : 'login', $pb.PbFieldType.OE, + defaultOrMaker: LoginRequirement.LOGIN_UNSPECIFIED, + valueOf: LoginRequirement.valueOf, + enumValues: LoginRequirement.values) + ..e( + 7, _omitFieldNames ? '' : 'authFailAction', $pb.PbFieldType.OE, + defaultOrMaker: AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED, + valueOf: AuthFailAction.valueOf, + enumValues: AuthFailAction.values) + ..e(8, + _omitFieldNames ? '' : 'redirectHttpResponseCode', $pb.PbFieldType.OE, + defaultOrMaker: UrlMap_RedirectHttpResponseCode + .REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED, + valueOf: UrlMap_RedirectHttpResponseCode.valueOf, + enumValues: UrlMap_RedirectHttpResponseCode.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -354,9 +373,10 @@ class UrlMap extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') UrlMap copyWith(void Function(UrlMap) updates) => - super.copyWith((message) => updates(message as UrlMap)) - as UrlMap; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as UrlMap)) as UrlMap; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UrlMap create() => UrlMap._(); UrlMap createEmptyInstance() => create(); @@ -370,6 +390,10 @@ class UrlMap extends $pb.GeneratedMessage { _UrlMap_HandlerTypeByTag[$_whichOneof(0)]!; void clearHandlerType() => clearField($_whichOneof(0)); + /// URL prefix. Uses regular expression syntax, which means regexp + /// special characters must be escaped, but should not contain groupings. + /// All URLs that begin with this prefix are handled by this handler, using the + /// portion of the URL after the prefix as part of the file path. @$pb.TagNumber(1) $core.String get urlRegex => $_getSZ(0); @$pb.TagNumber(1) @@ -382,6 +406,7 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearUrlRegex() => clearField(1); + /// Returns the contents of a file, such as an image, as the response. @$pb.TagNumber(2) StaticFilesHandler get staticFiles => $_getN(1); @$pb.TagNumber(2) @@ -396,6 +421,9 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(2) StaticFilesHandler ensureStaticFiles() => $_ensure(1); + /// Executes a script to handle the requests that match this URL + /// pattern. Only the `auto` value is supported for Node.js in the + /// App Engine standard environment, for example `"script": "auto"`. @$pb.TagNumber(3) ScriptHandler get script => $_getN(2); @$pb.TagNumber(3) @@ -410,6 +438,7 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(3) ScriptHandler ensureScript() => $_ensure(2); + /// Uses API Endpoints to handle requests. @$pb.TagNumber(4) ApiEndpointHandler get apiEndpoint => $_getN(3); @$pb.TagNumber(4) @@ -424,6 +453,7 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(4) ApiEndpointHandler ensureApiEndpoint() => $_ensure(3); + /// Security (HTTPS) enforcement for this URL. @$pb.TagNumber(5) SecurityLevel get securityLevel => $_getN(4); @$pb.TagNumber(5) @@ -436,6 +466,8 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearSecurityLevel() => clearField(5); + /// Level of login required to access this resource. Not supported for Node.js + /// in the App Engine standard environment. @$pb.TagNumber(6) LoginRequirement get login => $_getN(5); @$pb.TagNumber(6) @@ -448,6 +480,8 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearLogin() => clearField(6); + /// Action to take when users access resources that require + /// authentication. Defaults to `redirect`. @$pb.TagNumber(7) AuthFailAction get authFailAction => $_getN(6); @$pb.TagNumber(7) @@ -460,6 +494,8 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearAuthFailAction() => clearField(7); + /// `30x` code to use when performing redirects for the `secure` field. + /// Defaults to `302`. @$pb.TagNumber(8) UrlMap_RedirectHttpResponseCode get redirectHttpResponseCode => $_getN(7); @$pb.TagNumber(8) @@ -473,81 +509,71 @@ class UrlMap extends $pb.GeneratedMessage { void clearRedirectHttpResponseCode() => clearField(8); } +/// Files served directly to the user for a given URL, such as images, CSS +/// stylesheets, or JavaScript source files. Static file handlers describe which +/// files in the application directory are static files, and which URLs serve +/// them. class StaticFilesHandler extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'StaticFilesHandler', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uploadPathRegex') - ..m<$core.String, $core.String>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'httpHeaders', - entryClassName: 'StaticFilesHandler.HttpHeadersEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.appengine.v1')) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mimeType') - ..aOM<$0.Duration>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expiration', subBuilder: $0.Duration.create) - ..aOB(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'requireMatchingFile') - ..aOB(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'applicationReadable') - ..hasRequiredFields = false; - - StaticFilesHandler._() : super(); factory StaticFilesHandler({ $core.String? path, $core.String? uploadPathRegex, $core.Map<$core.String, $core.String>? httpHeaders, $core.String? mimeType, - $0.Duration? expiration, + $51.Duration? expiration, $core.bool? requireMatchingFile, $core.bool? applicationReadable, }) { - final _result = create(); + final $result = create(); if (path != null) { - _result.path = path; + $result.path = path; } if (uploadPathRegex != null) { - _result.uploadPathRegex = uploadPathRegex; + $result.uploadPathRegex = uploadPathRegex; } if (httpHeaders != null) { - _result.httpHeaders.addAll(httpHeaders); + $result.httpHeaders.addAll(httpHeaders); } if (mimeType != null) { - _result.mimeType = mimeType; + $result.mimeType = mimeType; } if (expiration != null) { - _result.expiration = expiration; + $result.expiration = expiration; } if (requireMatchingFile != null) { - _result.requireMatchingFile = requireMatchingFile; + $result.requireMatchingFile = requireMatchingFile; } if (applicationReadable != null) { - _result.applicationReadable = applicationReadable; + $result.applicationReadable = applicationReadable; } - return _result; + return $result; } + StaticFilesHandler._() : super(); factory StaticFilesHandler.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory StaticFilesHandler.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StaticFilesHandler', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'path') + ..aOS(2, _omitFieldNames ? '' : 'uploadPathRegex') + ..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'httpHeaders', + entryClassName: 'StaticFilesHandler.HttpHeadersEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.appengine.v1')) + ..aOS(4, _omitFieldNames ? '' : 'mimeType') + ..aOM<$51.Duration>(5, _omitFieldNames ? '' : 'expiration', + subBuilder: $51.Duration.create) + ..aOB(6, _omitFieldNames ? '' : 'requireMatchingFile') + ..aOB(7, _omitFieldNames ? '' : 'applicationReadable') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -557,8 +583,10 @@ class StaticFilesHandler extends $pb.GeneratedMessage { 'Will be removed in next major version') StaticFilesHandler copyWith(void Function(StaticFilesHandler) updates) => super.copyWith((message) => updates(message as StaticFilesHandler)) - as StaticFilesHandler; // ignore: deprecated_member_use + as StaticFilesHandler; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static StaticFilesHandler create() => StaticFilesHandler._(); StaticFilesHandler createEmptyInstance() => create(); @@ -569,6 +597,9 @@ class StaticFilesHandler extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static StaticFilesHandler? _defaultInstance; + /// Path to the static files matched by the URL pattern, from the + /// application root directory. The path can refer to text matched in groupings + /// in the URL pattern. @$pb.TagNumber(1) $core.String get path => $_getSZ(0); @$pb.TagNumber(1) @@ -581,6 +612,8 @@ class StaticFilesHandler extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPath() => clearField(1); + /// Regular expression that matches the file paths for all files that should be + /// referenced by this handler. @$pb.TagNumber(2) $core.String get uploadPathRegex => $_getSZ(1); @$pb.TagNumber(2) @@ -593,9 +626,14 @@ class StaticFilesHandler extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearUploadPathRegex() => clearField(2); + /// HTTP headers to use for all responses from these URLs. @$pb.TagNumber(3) $core.Map<$core.String, $core.String> get httpHeaders => $_getMap(2); + /// MIME type used to serve all files served by this handler. + /// + /// Defaults to file-specific MIME types, which are derived from each file's + /// filename extension. @$pb.TagNumber(4) $core.String get mimeType => $_getSZ(3); @$pb.TagNumber(4) @@ -608,10 +646,12 @@ class StaticFilesHandler extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearMimeType() => clearField(4); + /// Time a static file served by this handler should be cached + /// by web proxies and browsers. @$pb.TagNumber(5) - $0.Duration get expiration => $_getN(4); + $51.Duration get expiration => $_getN(4); @$pb.TagNumber(5) - set expiration($0.Duration v) { + set expiration($51.Duration v) { setField(5, v); } @@ -620,8 +660,10 @@ class StaticFilesHandler extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearExpiration() => clearField(5); @$pb.TagNumber(5) - $0.Duration ensureExpiration() => $_ensure(4); + $51.Duration ensureExpiration() => $_ensure(4); + /// Whether this handler should match the request if the file + /// referenced by the handler does not exist. @$pb.TagNumber(6) $core.bool get requireMatchingFile => $_getBF(5); @$pb.TagNumber(6) @@ -634,6 +676,11 @@ class StaticFilesHandler extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearRequireMatchingFile() => clearField(6); + /// Whether files should also be uploaded as code data. By default, files + /// declared in static file handlers are uploaded as static + /// data and are only served to end users; they cannot be read by the + /// application. If enabled, uploads are charged against both your code and + /// static data storage resource quotas. @$pb.TagNumber(7) $core.bool get applicationReadable => $_getBF(6); @$pb.TagNumber(7) @@ -647,39 +694,33 @@ class StaticFilesHandler extends $pb.GeneratedMessage { void clearApplicationReadable() => clearField(7); } +/// Executes a script to handle the request that matches the URL pattern. class ScriptHandler extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ScriptHandler', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'scriptPath') - ..hasRequiredFields = false; - - ScriptHandler._() : super(); factory ScriptHandler({ $core.String? scriptPath, }) { - final _result = create(); + final $result = create(); if (scriptPath != null) { - _result.scriptPath = scriptPath; + $result.scriptPath = scriptPath; } - return _result; + return $result; } + ScriptHandler._() : super(); factory ScriptHandler.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ScriptHandler.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ScriptHandler', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'scriptPath') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -689,8 +730,10 @@ class ScriptHandler extends $pb.GeneratedMessage { 'Will be removed in next major version') ScriptHandler copyWith(void Function(ScriptHandler) updates) => super.copyWith((message) => updates(message as ScriptHandler)) - as ScriptHandler; // ignore: deprecated_member_use + as ScriptHandler; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ScriptHandler create() => ScriptHandler._(); ScriptHandler createEmptyInstance() => create(); @@ -701,6 +744,7 @@ class ScriptHandler extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ScriptHandler? _defaultInstance; + /// Path to the script from the application root directory. @$pb.TagNumber(1) $core.String get scriptPath => $_getSZ(0); @$pb.TagNumber(1) @@ -714,39 +758,33 @@ class ScriptHandler extends $pb.GeneratedMessage { void clearScriptPath() => clearField(1); } +/// Uses Google Cloud Endpoints to handle requests. class ApiEndpointHandler extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ApiEndpointHandler', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'scriptPath') - ..hasRequiredFields = false; - - ApiEndpointHandler._() : super(); factory ApiEndpointHandler({ $core.String? scriptPath, }) { - final _result = create(); + final $result = create(); if (scriptPath != null) { - _result.scriptPath = scriptPath; + $result.scriptPath = scriptPath; } - return _result; + return $result; } + ApiEndpointHandler._() : super(); factory ApiEndpointHandler.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ApiEndpointHandler.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApiEndpointHandler', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'scriptPath') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -756,8 +794,10 @@ class ApiEndpointHandler extends $pb.GeneratedMessage { 'Will be removed in next major version') ApiEndpointHandler copyWith(void Function(ApiEndpointHandler) updates) => super.copyWith((message) => updates(message as ApiEndpointHandler)) - as ApiEndpointHandler; // ignore: deprecated_member_use + as ApiEndpointHandler; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ApiEndpointHandler create() => ApiEndpointHandler._(); ApiEndpointHandler createEmptyInstance() => create(); @@ -768,6 +808,7 @@ class ApiEndpointHandler extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ApiEndpointHandler? _defaultInstance; + /// Path to the script from the application root directory. @$pb.TagNumber(1) $core.String get scriptPath => $_getSZ(0); @$pb.TagNumber(1) @@ -781,81 +822,70 @@ class ApiEndpointHandler extends $pb.GeneratedMessage { void clearScriptPath() => clearField(1); } +/// Health checking configuration for VM instances. Unhealthy instances +/// are killed and replaced with new instances. Only applicable for +/// instances in App Engine flexible environment. class HealthCheck extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'HealthCheck', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'disableHealthCheck') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'host') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'healthyThreshold', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unhealthyThreshold', - $pb.PbFieldType.OU3) - ..a<$core.int>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'restartThreshold', $pb.PbFieldType.OU3) - ..aOM<$0.Duration>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'checkInterval', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timeout', subBuilder: $0.Duration.create) - ..hasRequiredFields = false; - - HealthCheck._() : super(); factory HealthCheck({ $core.bool? disableHealthCheck, $core.String? host, $core.int? healthyThreshold, $core.int? unhealthyThreshold, $core.int? restartThreshold, - $0.Duration? checkInterval, - $0.Duration? timeout, + $51.Duration? checkInterval, + $51.Duration? timeout, }) { - final _result = create(); + final $result = create(); if (disableHealthCheck != null) { - _result.disableHealthCheck = disableHealthCheck; + $result.disableHealthCheck = disableHealthCheck; } if (host != null) { - _result.host = host; + $result.host = host; } if (healthyThreshold != null) { - _result.healthyThreshold = healthyThreshold; + $result.healthyThreshold = healthyThreshold; } if (unhealthyThreshold != null) { - _result.unhealthyThreshold = unhealthyThreshold; + $result.unhealthyThreshold = unhealthyThreshold; } if (restartThreshold != null) { - _result.restartThreshold = restartThreshold; + $result.restartThreshold = restartThreshold; } if (checkInterval != null) { - _result.checkInterval = checkInterval; + $result.checkInterval = checkInterval; } if (timeout != null) { - _result.timeout = timeout; + $result.timeout = timeout; } - return _result; + return $result; } + HealthCheck._() : super(); factory HealthCheck.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory HealthCheck.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'HealthCheck', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'disableHealthCheck') + ..aOS(2, _omitFieldNames ? '' : 'host') + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'healthyThreshold', $pb.PbFieldType.OU3) + ..a<$core.int>( + 4, _omitFieldNames ? '' : 'unhealthyThreshold', $pb.PbFieldType.OU3) + ..a<$core.int>( + 5, _omitFieldNames ? '' : 'restartThreshold', $pb.PbFieldType.OU3) + ..aOM<$51.Duration>(6, _omitFieldNames ? '' : 'checkInterval', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(7, _omitFieldNames ? '' : 'timeout', + subBuilder: $51.Duration.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') @@ -865,8 +895,10 @@ class HealthCheck extends $pb.GeneratedMessage { 'Will be removed in next major version') HealthCheck copyWith(void Function(HealthCheck) updates) => super.copyWith((message) => updates(message as HealthCheck)) - as HealthCheck; // ignore: deprecated_member_use + as HealthCheck; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static HealthCheck create() => HealthCheck._(); HealthCheck createEmptyInstance() => create(); @@ -876,6 +908,7 @@ class HealthCheck extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static HealthCheck? _defaultInstance; + /// Whether to explicitly disable health checks for this instance. @$pb.TagNumber(1) $core.bool get disableHealthCheck => $_getBF(0); @$pb.TagNumber(1) @@ -888,6 +921,8 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearDisableHealthCheck() => clearField(1); + /// Host header to send when performing an HTTP health check. + /// Example: "myapp.appspot.com" @$pb.TagNumber(2) $core.String get host => $_getSZ(1); @$pb.TagNumber(2) @@ -900,6 +935,8 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearHost() => clearField(2); + /// Number of consecutive successful health checks required before receiving + /// traffic. @$pb.TagNumber(3) $core.int get healthyThreshold => $_getIZ(2); @$pb.TagNumber(3) @@ -912,6 +949,8 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearHealthyThreshold() => clearField(3); + /// Number of consecutive failed health checks required before removing + /// traffic. @$pb.TagNumber(4) $core.int get unhealthyThreshold => $_getIZ(3); @$pb.TagNumber(4) @@ -924,6 +963,8 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUnhealthyThreshold() => clearField(4); + /// Number of consecutive failed health checks required before an instance is + /// restarted. @$pb.TagNumber(5) $core.int get restartThreshold => $_getIZ(4); @$pb.TagNumber(5) @@ -936,10 +977,11 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearRestartThreshold() => clearField(5); + /// Interval between health checks. @$pb.TagNumber(6) - $0.Duration get checkInterval => $_getN(5); + $51.Duration get checkInterval => $_getN(5); @$pb.TagNumber(6) - set checkInterval($0.Duration v) { + set checkInterval($51.Duration v) { setField(6, v); } @@ -948,12 +990,13 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearCheckInterval() => clearField(6); @$pb.TagNumber(6) - $0.Duration ensureCheckInterval() => $_ensure(5); + $51.Duration ensureCheckInterval() => $_ensure(5); + /// Time before the health check is considered failed. @$pb.TagNumber(7) - $0.Duration get timeout => $_getN(6); + $51.Duration get timeout => $_getN(6); @$pb.TagNumber(7) - set timeout($0.Duration v) { + set timeout($51.Duration v) { setField(7, v); } @@ -962,84 +1005,72 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearTimeout() => clearField(7); @$pb.TagNumber(7) - $0.Duration ensureTimeout() => $_ensure(6); + $51.Duration ensureTimeout() => $_ensure(6); } +/// Readiness checking configuration for VM instances. Unhealthy instances +/// are removed from traffic rotation. class ReadinessCheck extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReadinessCheck', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'host') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'failureThreshold', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'successThreshold', - $pb.PbFieldType.OU3) - ..aOM<$0.Duration>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'checkInterval', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timeout', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appStartTimeout', subBuilder: $0.Duration.create) - ..hasRequiredFields = false; - - ReadinessCheck._() : super(); factory ReadinessCheck({ $core.String? path, $core.String? host, $core.int? failureThreshold, $core.int? successThreshold, - $0.Duration? checkInterval, - $0.Duration? timeout, - $0.Duration? appStartTimeout, + $51.Duration? checkInterval, + $51.Duration? timeout, + $51.Duration? appStartTimeout, }) { - final _result = create(); + final $result = create(); if (path != null) { - _result.path = path; + $result.path = path; } if (host != null) { - _result.host = host; + $result.host = host; } if (failureThreshold != null) { - _result.failureThreshold = failureThreshold; + $result.failureThreshold = failureThreshold; } if (successThreshold != null) { - _result.successThreshold = successThreshold; + $result.successThreshold = successThreshold; } if (checkInterval != null) { - _result.checkInterval = checkInterval; + $result.checkInterval = checkInterval; } if (timeout != null) { - _result.timeout = timeout; + $result.timeout = timeout; } if (appStartTimeout != null) { - _result.appStartTimeout = appStartTimeout; + $result.appStartTimeout = appStartTimeout; } - return _result; + return $result; } + ReadinessCheck._() : super(); factory ReadinessCheck.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ReadinessCheck.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReadinessCheck', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'path') + ..aOS(2, _omitFieldNames ? '' : 'host') + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'failureThreshold', $pb.PbFieldType.OU3) + ..a<$core.int>( + 4, _omitFieldNames ? '' : 'successThreshold', $pb.PbFieldType.OU3) + ..aOM<$51.Duration>(5, _omitFieldNames ? '' : 'checkInterval', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(6, _omitFieldNames ? '' : 'timeout', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(7, _omitFieldNames ? '' : 'appStartTimeout', + subBuilder: $51.Duration.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') @@ -1049,8 +1080,10 @@ class ReadinessCheck extends $pb.GeneratedMessage { 'Will be removed in next major version') ReadinessCheck copyWith(void Function(ReadinessCheck) updates) => super.copyWith((message) => updates(message as ReadinessCheck)) - as ReadinessCheck; // ignore: deprecated_member_use + as ReadinessCheck; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReadinessCheck create() => ReadinessCheck._(); ReadinessCheck createEmptyInstance() => create(); @@ -1061,6 +1094,7 @@ class ReadinessCheck extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ReadinessCheck? _defaultInstance; + /// The request path. @$pb.TagNumber(1) $core.String get path => $_getSZ(0); @$pb.TagNumber(1) @@ -1073,6 +1107,8 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPath() => clearField(1); + /// Host header to send when performing a HTTP Readiness check. + /// Example: "myapp.appspot.com" @$pb.TagNumber(2) $core.String get host => $_getSZ(1); @$pb.TagNumber(2) @@ -1085,6 +1121,8 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearHost() => clearField(2); + /// Number of consecutive failed checks required before removing + /// traffic. @$pb.TagNumber(3) $core.int get failureThreshold => $_getIZ(2); @$pb.TagNumber(3) @@ -1097,6 +1135,8 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFailureThreshold() => clearField(3); + /// Number of consecutive successful checks required before receiving + /// traffic. @$pb.TagNumber(4) $core.int get successThreshold => $_getIZ(3); @$pb.TagNumber(4) @@ -1109,10 +1149,11 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearSuccessThreshold() => clearField(4); + /// Interval between health checks. @$pb.TagNumber(5) - $0.Duration get checkInterval => $_getN(4); + $51.Duration get checkInterval => $_getN(4); @$pb.TagNumber(5) - set checkInterval($0.Duration v) { + set checkInterval($51.Duration v) { setField(5, v); } @@ -1121,12 +1162,13 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearCheckInterval() => clearField(5); @$pb.TagNumber(5) - $0.Duration ensureCheckInterval() => $_ensure(4); + $51.Duration ensureCheckInterval() => $_ensure(4); + /// Time before the check is considered failed. @$pb.TagNumber(6) - $0.Duration get timeout => $_getN(5); + $51.Duration get timeout => $_getN(5); @$pb.TagNumber(6) - set timeout($0.Duration v) { + set timeout($51.Duration v) { setField(6, v); } @@ -1135,12 +1177,15 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearTimeout() => clearField(6); @$pb.TagNumber(6) - $0.Duration ensureTimeout() => $_ensure(5); + $51.Duration ensureTimeout() => $_ensure(5); + /// A maximum time limit on application initialization, measured from moment + /// the application successfully replies to a healthcheck until it is ready to + /// serve traffic. @$pb.TagNumber(7) - $0.Duration get appStartTimeout => $_getN(6); + $51.Duration get appStartTimeout => $_getN(6); @$pb.TagNumber(7) - set appStartTimeout($0.Duration v) { + set appStartTimeout($51.Duration v) { setField(7, v); } @@ -1149,83 +1194,72 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearAppStartTimeout() => clearField(7); @$pb.TagNumber(7) - $0.Duration ensureAppStartTimeout() => $_ensure(6); + $51.Duration ensureAppStartTimeout() => $_ensure(6); } +/// Health checking configuration for VM instances. Unhealthy instances +/// are killed and replaced with new instances. class LivenessCheck extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LivenessCheck', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'host') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'failureThreshold', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'successThreshold', - $pb.PbFieldType.OU3) - ..aOM<$0.Duration>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'checkInterval', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timeout', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'initialDelay', subBuilder: $0.Duration.create) - ..hasRequiredFields = false; - - LivenessCheck._() : super(); factory LivenessCheck({ $core.String? path, $core.String? host, $core.int? failureThreshold, $core.int? successThreshold, - $0.Duration? checkInterval, - $0.Duration? timeout, - $0.Duration? initialDelay, + $51.Duration? checkInterval, + $51.Duration? timeout, + $51.Duration? initialDelay, }) { - final _result = create(); + final $result = create(); if (path != null) { - _result.path = path; + $result.path = path; } if (host != null) { - _result.host = host; + $result.host = host; } if (failureThreshold != null) { - _result.failureThreshold = failureThreshold; + $result.failureThreshold = failureThreshold; } if (successThreshold != null) { - _result.successThreshold = successThreshold; + $result.successThreshold = successThreshold; } if (checkInterval != null) { - _result.checkInterval = checkInterval; + $result.checkInterval = checkInterval; } if (timeout != null) { - _result.timeout = timeout; + $result.timeout = timeout; } if (initialDelay != null) { - _result.initialDelay = initialDelay; + $result.initialDelay = initialDelay; } - return _result; + return $result; } + LivenessCheck._() : super(); factory LivenessCheck.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LivenessCheck.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LivenessCheck', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'path') + ..aOS(2, _omitFieldNames ? '' : 'host') + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'failureThreshold', $pb.PbFieldType.OU3) + ..a<$core.int>( + 4, _omitFieldNames ? '' : 'successThreshold', $pb.PbFieldType.OU3) + ..aOM<$51.Duration>(5, _omitFieldNames ? '' : 'checkInterval', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(6, _omitFieldNames ? '' : 'timeout', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(7, _omitFieldNames ? '' : 'initialDelay', + subBuilder: $51.Duration.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') @@ -1235,8 +1269,10 @@ class LivenessCheck extends $pb.GeneratedMessage { 'Will be removed in next major version') LivenessCheck copyWith(void Function(LivenessCheck) updates) => super.copyWith((message) => updates(message as LivenessCheck)) - as LivenessCheck; // ignore: deprecated_member_use + as LivenessCheck; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LivenessCheck create() => LivenessCheck._(); LivenessCheck createEmptyInstance() => create(); @@ -1247,6 +1283,7 @@ class LivenessCheck extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LivenessCheck? _defaultInstance; + /// The request path. @$pb.TagNumber(1) $core.String get path => $_getSZ(0); @$pb.TagNumber(1) @@ -1259,6 +1296,8 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPath() => clearField(1); + /// Host header to send when performing a HTTP Liveness check. + /// Example: "myapp.appspot.com" @$pb.TagNumber(2) $core.String get host => $_getSZ(1); @$pb.TagNumber(2) @@ -1271,6 +1310,8 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearHost() => clearField(2); + /// Number of consecutive failed checks required before considering the + /// VM unhealthy. @$pb.TagNumber(3) $core.int get failureThreshold => $_getIZ(2); @$pb.TagNumber(3) @@ -1283,6 +1324,8 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFailureThreshold() => clearField(3); + /// Number of consecutive successful checks required before considering + /// the VM healthy. @$pb.TagNumber(4) $core.int get successThreshold => $_getIZ(3); @$pb.TagNumber(4) @@ -1295,10 +1338,11 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearSuccessThreshold() => clearField(4); + /// Interval between health checks. @$pb.TagNumber(5) - $0.Duration get checkInterval => $_getN(4); + $51.Duration get checkInterval => $_getN(4); @$pb.TagNumber(5) - set checkInterval($0.Duration v) { + set checkInterval($51.Duration v) { setField(5, v); } @@ -1307,12 +1351,13 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearCheckInterval() => clearField(5); @$pb.TagNumber(5) - $0.Duration ensureCheckInterval() => $_ensure(4); + $51.Duration ensureCheckInterval() => $_ensure(4); + /// Time before the check is considered failed. @$pb.TagNumber(6) - $0.Duration get timeout => $_getN(5); + $51.Duration get timeout => $_getN(5); @$pb.TagNumber(6) - set timeout($0.Duration v) { + set timeout($51.Duration v) { setField(6, v); } @@ -1321,12 +1366,13 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearTimeout() => clearField(6); @$pb.TagNumber(6) - $0.Duration ensureTimeout() => $_ensure(5); + $51.Duration ensureTimeout() => $_ensure(5); + /// The initial delay before starting to execute the checks. @$pb.TagNumber(7) - $0.Duration get initialDelay => $_getN(6); + $51.Duration get initialDelay => $_getN(6); @$pb.TagNumber(7) - set initialDelay($0.Duration v) { + set initialDelay($51.Duration v) { setField(7, v); } @@ -1335,51 +1381,41 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearInitialDelay() => clearField(7); @$pb.TagNumber(7) - $0.Duration ensureInitialDelay() => $_ensure(6); + $51.Duration ensureInitialDelay() => $_ensure(6); } +/// Third-party Python runtime library that is required by the application. class Library extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Library', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version') - ..hasRequiredFields = false; - - Library._() : super(); factory Library({ $core.String? name, $core.String? version, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (version != null) { - _result.version = version; + $result.version = version; } - return _result; + return $result; } + Library._() : super(); factory Library.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Library.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Library', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'version') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1388,9 +1424,10 @@ class Library extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Library copyWith(void Function(Library) updates) => - super.copyWith((message) => updates(message as Library)) - as Library; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Library)) as Library; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Library create() => Library._(); Library createEmptyInstance() => create(); @@ -1400,6 +1437,7 @@ class Library extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Library? _defaultInstance; + /// Name of the library. Example: "django". @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1412,6 +1450,7 @@ class Library extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Version of the library to select, or "latest". @$pb.TagNumber(2) $core.String get version => $_getSZ(1); @$pb.TagNumber(2) @@ -1424,3 +1463,7 @@ class Library extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearVersion() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pbenum.dart index db3dabb2..c674770c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pbenum.dart @@ -1,30 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/app_yaml.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Actions to take when the user is not logged in. class AuthFailAction extends $pb.ProtobufEnum { - static const AuthFailAction AUTH_FAIL_ACTION_UNSPECIFIED = AuthFailAction._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'AUTH_FAIL_ACTION_UNSPECIFIED'); - static const AuthFailAction AUTH_FAIL_ACTION_REDIRECT = AuthFailAction._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'AUTH_FAIL_ACTION_REDIRECT'); + static const AuthFailAction AUTH_FAIL_ACTION_UNSPECIFIED = + AuthFailAction._(0, _omitEnumNames ? '' : 'AUTH_FAIL_ACTION_UNSPECIFIED'); + static const AuthFailAction AUTH_FAIL_ACTION_REDIRECT = + AuthFailAction._(1, _omitEnumNames ? '' : 'AUTH_FAIL_ACTION_REDIRECT'); static const AuthFailAction AUTH_FAIL_ACTION_UNAUTHORIZED = AuthFailAction._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'AUTH_FAIL_ACTION_UNAUTHORIZED'); + 2, _omitEnumNames ? '' : 'AUTH_FAIL_ACTION_UNAUTHORIZED'); static const $core.List values = [ AUTH_FAIL_ACTION_UNSPECIFIED, @@ -39,27 +35,16 @@ class AuthFailAction extends $pb.ProtobufEnum { const AuthFailAction._($core.int v, $core.String n) : super(v, n); } +/// Methods to restrict access to a URL based on login status. class LoginRequirement extends $pb.ProtobufEnum { - static const LoginRequirement LOGIN_UNSPECIFIED = LoginRequirement._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOGIN_UNSPECIFIED'); - static const LoginRequirement LOGIN_OPTIONAL = LoginRequirement._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOGIN_OPTIONAL'); - static const LoginRequirement LOGIN_ADMIN = LoginRequirement._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOGIN_ADMIN'); - static const LoginRequirement LOGIN_REQUIRED = LoginRequirement._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOGIN_REQUIRED'); + static const LoginRequirement LOGIN_UNSPECIFIED = + LoginRequirement._(0, _omitEnumNames ? '' : 'LOGIN_UNSPECIFIED'); + static const LoginRequirement LOGIN_OPTIONAL = + LoginRequirement._(1, _omitEnumNames ? '' : 'LOGIN_OPTIONAL'); + static const LoginRequirement LOGIN_ADMIN = + LoginRequirement._(2, _omitEnumNames ? '' : 'LOGIN_ADMIN'); + static const LoginRequirement LOGIN_REQUIRED = + LoginRequirement._(3, _omitEnumNames ? '' : 'LOGIN_REQUIRED'); static const $core.List values = [ LOGIN_UNSPECIFIED, @@ -75,27 +60,16 @@ class LoginRequirement extends $pb.ProtobufEnum { const LoginRequirement._($core.int v, $core.String n) : super(v, n); } +/// Methods to enforce security (HTTPS) on a URL. class SecurityLevel extends $pb.ProtobufEnum { - static const SecurityLevel SECURE_UNSPECIFIED = SecurityLevel._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SECURE_UNSPECIFIED'); - static const SecurityLevel SECURE_NEVER = SecurityLevel._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SECURE_NEVER'); - static const SecurityLevel SECURE_OPTIONAL = SecurityLevel._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SECURE_OPTIONAL'); - static const SecurityLevel SECURE_ALWAYS = SecurityLevel._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SECURE_ALWAYS'); + static const SecurityLevel SECURE_UNSPECIFIED = + SecurityLevel._(0, _omitEnumNames ? '' : 'SECURE_UNSPECIFIED'); + static const SecurityLevel SECURE_NEVER = + SecurityLevel._(1, _omitEnumNames ? '' : 'SECURE_NEVER'); + static const SecurityLevel SECURE_OPTIONAL = + SecurityLevel._(2, _omitEnumNames ? '' : 'SECURE_OPTIONAL'); + static const SecurityLevel SECURE_ALWAYS = + SecurityLevel._(3, _omitEnumNames ? '' : 'SECURE_ALWAYS'); static const SecurityLevel SECURE_DEFAULT = SECURE_UNSPECIFIED; @@ -113,31 +87,19 @@ class SecurityLevel extends $pb.ProtobufEnum { const SecurityLevel._($core.int v, $core.String n) : super(v, n); } +/// Error codes. class ErrorHandler_ErrorCode extends $pb.ProtobufEnum { static const ErrorHandler_ErrorCode ERROR_CODE_UNSPECIFIED = ErrorHandler_ErrorCode._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ERROR_CODE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'ERROR_CODE_UNSPECIFIED'); static const ErrorHandler_ErrorCode ERROR_CODE_OVER_QUOTA = ErrorHandler_ErrorCode._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ERROR_CODE_OVER_QUOTA'); + 1, _omitEnumNames ? '' : 'ERROR_CODE_OVER_QUOTA'); static const ErrorHandler_ErrorCode ERROR_CODE_DOS_API_DENIAL = ErrorHandler_ErrorCode._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ERROR_CODE_DOS_API_DENIAL'); + 2, _omitEnumNames ? '' : 'ERROR_CODE_DOS_API_DENIAL'); static const ErrorHandler_ErrorCode ERROR_CODE_TIMEOUT = - ErrorHandler_ErrorCode._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ERROR_CODE_TIMEOUT'); + ErrorHandler_ErrorCode._(3, _omitEnumNames ? '' : 'ERROR_CODE_TIMEOUT'); static const ErrorHandler_ErrorCode ERROR_CODE_DEFAULT = ERROR_CODE_UNSPECIFIED; @@ -157,38 +119,24 @@ class ErrorHandler_ErrorCode extends $pb.ProtobufEnum { const ErrorHandler_ErrorCode._($core.int v, $core.String n) : super(v, n); } +/// Redirect codes. class UrlMap_RedirectHttpResponseCode extends $pb.ProtobufEnum { static const UrlMap_RedirectHttpResponseCode REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED = UrlMap_RedirectHttpResponseCode._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED'); static const UrlMap_RedirectHttpResponseCode REDIRECT_HTTP_RESPONSE_CODE_301 = UrlMap_RedirectHttpResponseCode._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_HTTP_RESPONSE_CODE_301'); + 1, _omitEnumNames ? '' : 'REDIRECT_HTTP_RESPONSE_CODE_301'); static const UrlMap_RedirectHttpResponseCode REDIRECT_HTTP_RESPONSE_CODE_302 = UrlMap_RedirectHttpResponseCode._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_HTTP_RESPONSE_CODE_302'); + 2, _omitEnumNames ? '' : 'REDIRECT_HTTP_RESPONSE_CODE_302'); static const UrlMap_RedirectHttpResponseCode REDIRECT_HTTP_RESPONSE_CODE_303 = UrlMap_RedirectHttpResponseCode._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_HTTP_RESPONSE_CODE_303'); + 3, _omitEnumNames ? '' : 'REDIRECT_HTTP_RESPONSE_CODE_303'); static const UrlMap_RedirectHttpResponseCode REDIRECT_HTTP_RESPONSE_CODE_307 = UrlMap_RedirectHttpResponseCode._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_HTTP_RESPONSE_CODE_307'); + 4, _omitEnumNames ? '' : 'REDIRECT_HTTP_RESPONSE_CODE_307'); static const $core.List values = [ @@ -207,3 +155,5 @@ class UrlMap_RedirectHttpResponseCode extends $pb.ProtobufEnum { const UrlMap_RedirectHttpResponseCode._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pbjson.dart index f34eeb3f..f4094716 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/app_yaml.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/app_yaml.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 authFailActionDescriptor instead') @@ -21,7 +25,10 @@ const AuthFailAction$json = { /// Descriptor for `AuthFailAction`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List authFailActionDescriptor = $convert.base64Decode( - 'Cg5BdXRoRmFpbEFjdGlvbhIgChxBVVRIX0ZBSUxfQUNUSU9OX1VOU1BFQ0lGSUVEEAASHQoZQVVUSF9GQUlMX0FDVElPTl9SRURJUkVDVBABEiEKHUFVVEhfRkFJTF9BQ1RJT05fVU5BVVRIT1JJWkVEEAI='); + 'Cg5BdXRoRmFpbEFjdGlvbhIgChxBVVRIX0ZBSUxfQUNUSU9OX1VOU1BFQ0lGSUVEEAASHQoZQV' + 'VUSF9GQUlMX0FDVElPTl9SRURJUkVDVBABEiEKHUFVVEhfRkFJTF9BQ1RJT05fVU5BVVRIT1JJ' + 'WkVEEAI='); + @$core.Deprecated('Use loginRequirementDescriptor instead') const LoginRequirement$json = { '1': 'LoginRequirement', @@ -35,7 +42,9 @@ const LoginRequirement$json = { /// Descriptor for `LoginRequirement`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List loginRequirementDescriptor = $convert.base64Decode( - 'ChBMb2dpblJlcXVpcmVtZW50EhUKEUxPR0lOX1VOU1BFQ0lGSUVEEAASEgoOTE9HSU5fT1BUSU9OQUwQARIPCgtMT0dJTl9BRE1JThACEhIKDkxPR0lOX1JFUVVJUkVEEAM='); + 'ChBMb2dpblJlcXVpcmVtZW50EhUKEUxPR0lOX1VOU1BFQ0lGSUVEEAASEgoOTE9HSU5fT1BUSU' + '9OQUwQARIPCgtMT0dJTl9BRE1JThACEhIKDkxPR0lOX1JFUVVJUkVEEAM='); + @$core.Deprecated('Use securityLevelDescriptor instead') const SecurityLevel$json = { '1': 'SecurityLevel', @@ -51,7 +60,10 @@ const SecurityLevel$json = { /// Descriptor for `SecurityLevel`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List securityLevelDescriptor = $convert.base64Decode( - 'Cg1TZWN1cml0eUxldmVsEhYKElNFQ1VSRV9VTlNQRUNJRklFRBAAEhIKDlNFQ1VSRV9ERUZBVUxUEAASEAoMU0VDVVJFX05FVkVSEAESEwoPU0VDVVJFX09QVElPTkFMEAISEQoNU0VDVVJFX0FMV0FZUxADGgIQAQ=='); + 'Cg1TZWN1cml0eUxldmVsEhYKElNFQ1VSRV9VTlNQRUNJRklFRBAAEhIKDlNFQ1VSRV9ERUZBVU' + 'xUEAASEAoMU0VDVVJFX05FVkVSEAESEwoPU0VDVVJFX09QVElPTkFMEAISEQoNU0VDVVJFX0FM' + 'V0FZUxADGgIQAQ=='); + @$core.Deprecated('Use apiConfigHandlerDescriptor instead') const ApiConfigHandler$json = { '1': 'ApiConfigHandler', @@ -87,7 +99,12 @@ const ApiConfigHandler$json = { /// Descriptor for `ApiConfigHandler`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List apiConfigHandlerDescriptor = $convert.base64Decode( - 'ChBBcGlDb25maWdIYW5kbGVyEk0KEGF1dGhfZmFpbF9hY3Rpb24YASABKA4yIy5nb29nbGUuYXBwZW5naW5lLnYxLkF1dGhGYWlsQWN0aW9uUg5hdXRoRmFpbEFjdGlvbhI7CgVsb2dpbhgCIAEoDjIlLmdvb2dsZS5hcHBlbmdpbmUudjEuTG9naW5SZXF1aXJlbWVudFIFbG9naW4SFgoGc2NyaXB0GAMgASgJUgZzY3JpcHQSSQoOc2VjdXJpdHlfbGV2ZWwYBCABKA4yIi5nb29nbGUuYXBwZW5naW5lLnYxLlNlY3VyaXR5TGV2ZWxSDXNlY3VyaXR5TGV2ZWwSEAoDdXJsGAUgASgJUgN1cmw='); + 'ChBBcGlDb25maWdIYW5kbGVyEk0KEGF1dGhfZmFpbF9hY3Rpb24YASABKA4yIy5nb29nbGUuYX' + 'BwZW5naW5lLnYxLkF1dGhGYWlsQWN0aW9uUg5hdXRoRmFpbEFjdGlvbhI7CgVsb2dpbhgCIAEo' + 'DjIlLmdvb2dsZS5hcHBlbmdpbmUudjEuTG9naW5SZXF1aXJlbWVudFIFbG9naW4SFgoGc2NyaX' + 'B0GAMgASgJUgZzY3JpcHQSSQoOc2VjdXJpdHlfbGV2ZWwYBCABKA4yIi5nb29nbGUuYXBwZW5n' + 'aW5lLnYxLlNlY3VyaXR5TGV2ZWxSDXNlY3VyaXR5TGV2ZWwSEAoDdXJsGAUgASgJUgN1cmw='); + @$core.Deprecated('Use errorHandlerDescriptor instead') const ErrorHandler$json = { '1': 'ErrorHandler', @@ -121,7 +138,13 @@ const ErrorHandler_ErrorCode$json = { /// Descriptor for `ErrorHandler`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List errorHandlerDescriptor = $convert.base64Decode( - 'CgxFcnJvckhhbmRsZXISSgoKZXJyb3JfY29kZRgBIAEoDjIrLmdvb2dsZS5hcHBlbmdpbmUudjEuRXJyb3JIYW5kbGVyLkVycm9yQ29kZVIJZXJyb3JDb2RlEh8KC3N0YXRpY19maWxlGAIgASgJUgpzdGF0aWNGaWxlEhsKCW1pbWVfdHlwZRgDIAEoCVIIbWltZVR5cGUilQEKCUVycm9yQ29kZRIaChZFUlJPUl9DT0RFX1VOU1BFQ0lGSUVEEAASFgoSRVJST1JfQ09ERV9ERUZBVUxUEAASGQoVRVJST1JfQ09ERV9PVkVSX1FVT1RBEAESHQoZRVJST1JfQ09ERV9ET1NfQVBJX0RFTklBTBACEhYKEkVSUk9SX0NPREVfVElNRU9VVBADGgIQAQ=='); + 'CgxFcnJvckhhbmRsZXISSgoKZXJyb3JfY29kZRgBIAEoDjIrLmdvb2dsZS5hcHBlbmdpbmUudj' + 'EuRXJyb3JIYW5kbGVyLkVycm9yQ29kZVIJZXJyb3JDb2RlEh8KC3N0YXRpY19maWxlGAIgASgJ' + 'UgpzdGF0aWNGaWxlEhsKCW1pbWVfdHlwZRgDIAEoCVIIbWltZVR5cGUilQEKCUVycm9yQ29kZR' + 'IaChZFUlJPUl9DT0RFX1VOU1BFQ0lGSUVEEAASFgoSRVJST1JfQ09ERV9ERUZBVUxUEAASGQoV' + 'RVJST1JfQ09ERV9PVkVSX1FVT1RBEAESHQoZRVJST1JfQ09ERV9ET1NfQVBJX0RFTklBTBACEh' + 'YKEkVSUk9SX0NPREVfVElNRU9VVBADGgIQAQ=='); + @$core.Deprecated('Use urlMapDescriptor instead') const UrlMap$json = { '1': 'UrlMap', @@ -207,7 +230,22 @@ const UrlMap_RedirectHttpResponseCode$json = { /// Descriptor for `UrlMap`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List urlMapDescriptor = $convert.base64Decode( - 'CgZVcmxNYXASGwoJdXJsX3JlZ2V4GAEgASgJUgh1cmxSZWdleBJMCgxzdGF0aWNfZmlsZXMYAiABKAsyJy5nb29nbGUuYXBwZW5naW5lLnYxLlN0YXRpY0ZpbGVzSGFuZGxlckgAUgtzdGF0aWNGaWxlcxI8CgZzY3JpcHQYAyABKAsyIi5nb29nbGUuYXBwZW5naW5lLnYxLlNjcmlwdEhhbmRsZXJIAFIGc2NyaXB0EkwKDGFwaV9lbmRwb2ludBgEIAEoCzInLmdvb2dsZS5hcHBlbmdpbmUudjEuQXBpRW5kcG9pbnRIYW5kbGVySABSC2FwaUVuZHBvaW50EkkKDnNlY3VyaXR5X2xldmVsGAUgASgOMiIuZ29vZ2xlLmFwcGVuZ2luZS52MS5TZWN1cml0eUxldmVsUg1zZWN1cml0eUxldmVsEjsKBWxvZ2luGAYgASgOMiUuZ29vZ2xlLmFwcGVuZ2luZS52MS5Mb2dpblJlcXVpcmVtZW50UgVsb2dpbhJNChBhdXRoX2ZhaWxfYWN0aW9uGAcgASgOMiMuZ29vZ2xlLmFwcGVuZ2luZS52MS5BdXRoRmFpbEFjdGlvblIOYXV0aEZhaWxBY3Rpb24ScwobcmVkaXJlY3RfaHR0cF9yZXNwb25zZV9jb2RlGAggASgOMjQuZ29vZ2xlLmFwcGVuZ2luZS52MS5VcmxNYXAuUmVkaXJlY3RIdHRwUmVzcG9uc2VDb2RlUhhyZWRpcmVjdEh0dHBSZXNwb25zZUNvZGUi2wEKGFJlZGlyZWN0SHR0cFJlc3BvbnNlQ29kZRIrCidSRURJUkVDVF9IVFRQX1JFU1BPTlNFX0NPREVfVU5TUEVDSUZJRUQQABIjCh9SRURJUkVDVF9IVFRQX1JFU1BPTlNFX0NPREVfMzAxEAESIwofUkVESVJFQ1RfSFRUUF9SRVNQT05TRV9DT0RFXzMwMhACEiMKH1JFRElSRUNUX0hUVFBfUkVTUE9OU0VfQ09ERV8zMDMQAxIjCh9SRURJUkVDVF9IVFRQX1JFU1BPTlNFX0NPREVfMzA3EARCDgoMaGFuZGxlcl90eXBl'); + 'CgZVcmxNYXASGwoJdXJsX3JlZ2V4GAEgASgJUgh1cmxSZWdleBJMCgxzdGF0aWNfZmlsZXMYAi' + 'ABKAsyJy5nb29nbGUuYXBwZW5naW5lLnYxLlN0YXRpY0ZpbGVzSGFuZGxlckgAUgtzdGF0aWNG' + 'aWxlcxI8CgZzY3JpcHQYAyABKAsyIi5nb29nbGUuYXBwZW5naW5lLnYxLlNjcmlwdEhhbmRsZX' + 'JIAFIGc2NyaXB0EkwKDGFwaV9lbmRwb2ludBgEIAEoCzInLmdvb2dsZS5hcHBlbmdpbmUudjEu' + 'QXBpRW5kcG9pbnRIYW5kbGVySABSC2FwaUVuZHBvaW50EkkKDnNlY3VyaXR5X2xldmVsGAUgAS' + 'gOMiIuZ29vZ2xlLmFwcGVuZ2luZS52MS5TZWN1cml0eUxldmVsUg1zZWN1cml0eUxldmVsEjsK' + 'BWxvZ2luGAYgASgOMiUuZ29vZ2xlLmFwcGVuZ2luZS52MS5Mb2dpblJlcXVpcmVtZW50UgVsb2' + 'dpbhJNChBhdXRoX2ZhaWxfYWN0aW9uGAcgASgOMiMuZ29vZ2xlLmFwcGVuZ2luZS52MS5BdXRo' + 'RmFpbEFjdGlvblIOYXV0aEZhaWxBY3Rpb24ScwobcmVkaXJlY3RfaHR0cF9yZXNwb25zZV9jb2' + 'RlGAggASgOMjQuZ29vZ2xlLmFwcGVuZ2luZS52MS5VcmxNYXAuUmVkaXJlY3RIdHRwUmVzcG9u' + 'c2VDb2RlUhhyZWRpcmVjdEh0dHBSZXNwb25zZUNvZGUi2wEKGFJlZGlyZWN0SHR0cFJlc3Bvbn' + 'NlQ29kZRIrCidSRURJUkVDVF9IVFRQX1JFU1BPTlNFX0NPREVfVU5TUEVDSUZJRUQQABIjCh9S' + 'RURJUkVDVF9IVFRQX1JFU1BPTlNFX0NPREVfMzAxEAESIwofUkVESVJFQ1RfSFRUUF9SRVNQT0' + '5TRV9DT0RFXzMwMhACEiMKH1JFRElSRUNUX0hUVFBfUkVTUE9OU0VfQ09ERV8zMDMQAxIjCh9S' + 'RURJUkVDVF9IVFRQX1JFU1BPTlNFX0NPREVfMzA3EARCDgoMaGFuZGxlcl90eXBl'); + @$core.Deprecated('Use staticFilesHandlerDescriptor instead') const StaticFilesHandler$json = { '1': 'StaticFilesHandler', @@ -261,7 +299,15 @@ const StaticFilesHandler_HttpHeadersEntry$json = { /// Descriptor for `StaticFilesHandler`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List staticFilesHandlerDescriptor = $convert.base64Decode( - 'ChJTdGF0aWNGaWxlc0hhbmRsZXISEgoEcGF0aBgBIAEoCVIEcGF0aBIqChF1cGxvYWRfcGF0aF9yZWdleBgCIAEoCVIPdXBsb2FkUGF0aFJlZ2V4ElsKDGh0dHBfaGVhZGVycxgDIAMoCzI4Lmdvb2dsZS5hcHBlbmdpbmUudjEuU3RhdGljRmlsZXNIYW5kbGVyLkh0dHBIZWFkZXJzRW50cnlSC2h0dHBIZWFkZXJzEhsKCW1pbWVfdHlwZRgEIAEoCVIIbWltZVR5cGUSOQoKZXhwaXJhdGlvbhgFIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIKZXhwaXJhdGlvbhIyChVyZXF1aXJlX21hdGNoaW5nX2ZpbGUYBiABKAhSE3JlcXVpcmVNYXRjaGluZ0ZpbGUSMQoUYXBwbGljYXRpb25fcmVhZGFibGUYByABKAhSE2FwcGxpY2F0aW9uUmVhZGFibGUaPgoQSHR0cEhlYWRlcnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); + 'ChJTdGF0aWNGaWxlc0hhbmRsZXISEgoEcGF0aBgBIAEoCVIEcGF0aBIqChF1cGxvYWRfcGF0aF' + '9yZWdleBgCIAEoCVIPdXBsb2FkUGF0aFJlZ2V4ElsKDGh0dHBfaGVhZGVycxgDIAMoCzI4Lmdv' + 'b2dsZS5hcHBlbmdpbmUudjEuU3RhdGljRmlsZXNIYW5kbGVyLkh0dHBIZWFkZXJzRW50cnlSC2' + 'h0dHBIZWFkZXJzEhsKCW1pbWVfdHlwZRgEIAEoCVIIbWltZVR5cGUSOQoKZXhwaXJhdGlvbhgF' + 'IAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIKZXhwaXJhdGlvbhIyChVyZXF1aXJlX2' + '1hdGNoaW5nX2ZpbGUYBiABKAhSE3JlcXVpcmVNYXRjaGluZ0ZpbGUSMQoUYXBwbGljYXRpb25f' + 'cmVhZGFibGUYByABKAhSE2FwcGxpY2F0aW9uUmVhZGFibGUaPgoQSHR0cEhlYWRlcnNFbnRyeR' + 'IQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); + @$core.Deprecated('Use scriptHandlerDescriptor instead') const ScriptHandler$json = { '1': 'ScriptHandler', @@ -273,6 +319,7 @@ const ScriptHandler$json = { /// Descriptor for `ScriptHandler`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List scriptHandlerDescriptor = $convert.base64Decode( 'Cg1TY3JpcHRIYW5kbGVyEh8KC3NjcmlwdF9wYXRoGAEgASgJUgpzY3JpcHRQYXRo'); + @$core.Deprecated('Use apiEndpointHandlerDescriptor instead') const ApiEndpointHandler$json = { '1': 'ApiEndpointHandler', @@ -284,6 +331,7 @@ const ApiEndpointHandler$json = { /// Descriptor for `ApiEndpointHandler`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List apiEndpointHandlerDescriptor = $convert.base64Decode( 'ChJBcGlFbmRwb2ludEhhbmRsZXISHwoLc2NyaXB0X3BhdGgYASABKAlSCnNjcmlwdFBhdGg='); + @$core.Deprecated('Use healthCheckDescriptor instead') const HealthCheck$json = { '1': 'HealthCheck', @@ -338,7 +386,14 @@ const HealthCheck$json = { /// Descriptor for `HealthCheck`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List healthCheckDescriptor = $convert.base64Decode( - 'CgtIZWFsdGhDaGVjaxIwChRkaXNhYmxlX2hlYWx0aF9jaGVjaxgBIAEoCFISZGlzYWJsZUhlYWx0aENoZWNrEhIKBGhvc3QYAiABKAlSBGhvc3QSKwoRaGVhbHRoeV90aHJlc2hvbGQYAyABKA1SEGhlYWx0aHlUaHJlc2hvbGQSLwoTdW5oZWFsdGh5X3RocmVzaG9sZBgEIAEoDVISdW5oZWFsdGh5VGhyZXNob2xkEisKEXJlc3RhcnRfdGhyZXNob2xkGAUgASgNUhByZXN0YXJ0VGhyZXNob2xkEkAKDmNoZWNrX2ludGVydmFsGAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUg1jaGVja0ludGVydmFsEjMKB3RpbWVvdXQYByABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SB3RpbWVvdXQ='); + 'CgtIZWFsdGhDaGVjaxIwChRkaXNhYmxlX2hlYWx0aF9jaGVjaxgBIAEoCFISZGlzYWJsZUhlYW' + 'x0aENoZWNrEhIKBGhvc3QYAiABKAlSBGhvc3QSKwoRaGVhbHRoeV90aHJlc2hvbGQYAyABKA1S' + 'EGhlYWx0aHlUaHJlc2hvbGQSLwoTdW5oZWFsdGh5X3RocmVzaG9sZBgEIAEoDVISdW5oZWFsdG' + 'h5VGhyZXNob2xkEisKEXJlc3RhcnRfdGhyZXNob2xkGAUgASgNUhByZXN0YXJ0VGhyZXNob2xk' + 'EkAKDmNoZWNrX2ludGVydmFsGAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUg1jaG' + 'Vja0ludGVydmFsEjMKB3RpbWVvdXQYByABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25S' + 'B3RpbWVvdXQ='); + @$core.Deprecated('Use readinessCheckDescriptor instead') const ReadinessCheck$json = { '1': 'ReadinessCheck', @@ -388,7 +443,14 @@ const ReadinessCheck$json = { /// Descriptor for `ReadinessCheck`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List readinessCheckDescriptor = $convert.base64Decode( - 'Cg5SZWFkaW5lc3NDaGVjaxISCgRwYXRoGAEgASgJUgRwYXRoEhIKBGhvc3QYAiABKAlSBGhvc3QSKwoRZmFpbHVyZV90aHJlc2hvbGQYAyABKA1SEGZhaWx1cmVUaHJlc2hvbGQSKwoRc3VjY2Vzc190aHJlc2hvbGQYBCABKA1SEHN1Y2Nlc3NUaHJlc2hvbGQSQAoOY2hlY2tfaW50ZXJ2YWwYBSABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDWNoZWNrSW50ZXJ2YWwSMwoHdGltZW91dBgGIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIHdGltZW91dBJFChFhcHBfc3RhcnRfdGltZW91dBgHIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIPYXBwU3RhcnRUaW1lb3V0'); + 'Cg5SZWFkaW5lc3NDaGVjaxISCgRwYXRoGAEgASgJUgRwYXRoEhIKBGhvc3QYAiABKAlSBGhvc3' + 'QSKwoRZmFpbHVyZV90aHJlc2hvbGQYAyABKA1SEGZhaWx1cmVUaHJlc2hvbGQSKwoRc3VjY2Vz' + 'c190aHJlc2hvbGQYBCABKA1SEHN1Y2Nlc3NUaHJlc2hvbGQSQAoOY2hlY2tfaW50ZXJ2YWwYBS' + 'ABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDWNoZWNrSW50ZXJ2YWwSMwoHdGltZW91' + 'dBgGIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIHdGltZW91dBJFChFhcHBfc3Rhcn' + 'RfdGltZW91dBgHIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIPYXBwU3RhcnRUaW1l' + 'b3V0'); + @$core.Deprecated('Use livenessCheckDescriptor instead') const LivenessCheck$json = { '1': 'LivenessCheck', @@ -438,7 +500,13 @@ const LivenessCheck$json = { /// Descriptor for `LivenessCheck`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List livenessCheckDescriptor = $convert.base64Decode( - 'Cg1MaXZlbmVzc0NoZWNrEhIKBHBhdGgYASABKAlSBHBhdGgSEgoEaG9zdBgCIAEoCVIEaG9zdBIrChFmYWlsdXJlX3RocmVzaG9sZBgDIAEoDVIQZmFpbHVyZVRocmVzaG9sZBIrChFzdWNjZXNzX3RocmVzaG9sZBgEIAEoDVIQc3VjY2Vzc1RocmVzaG9sZBJACg5jaGVja19pbnRlcnZhbBgFIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblINY2hlY2tJbnRlcnZhbBIzCgd0aW1lb3V0GAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgd0aW1lb3V0Ej4KDWluaXRpYWxfZGVsYXkYByABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDGluaXRpYWxEZWxheQ=='); + 'Cg1MaXZlbmVzc0NoZWNrEhIKBHBhdGgYASABKAlSBHBhdGgSEgoEaG9zdBgCIAEoCVIEaG9zdB' + 'IrChFmYWlsdXJlX3RocmVzaG9sZBgDIAEoDVIQZmFpbHVyZVRocmVzaG9sZBIrChFzdWNjZXNz' + 'X3RocmVzaG9sZBgEIAEoDVIQc3VjY2Vzc1RocmVzaG9sZBJACg5jaGVja19pbnRlcnZhbBgFIA' + 'EoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblINY2hlY2tJbnRlcnZhbBIzCgd0aW1lb3V0' + 'GAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgd0aW1lb3V0Ej4KDWluaXRpYWxfZG' + 'VsYXkYByABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDGluaXRpYWxEZWxheQ=='); + @$core.Deprecated('Use libraryDescriptor instead') const Library$json = { '1': 'Library', @@ -450,4 +518,5 @@ const Library$json = { /// Descriptor for `Library`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List libraryDescriptor = $convert.base64Decode( - 'CgdMaWJyYXJ5EhIKBG5hbWUYASABKAlSBG5hbWUSGAoHdmVyc2lvbhgCIAEoCVIHdmVyc2lvbg=='); + 'CgdMaWJyYXJ5EhIKBG5hbWUYASABKAlSBG5hbWUSGAoHdmVyc2lvbhgCIAEoCVIHdmVyc2lvbg' + '=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pb.dart index cc257f1d..0d571e78 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pb.dart @@ -1,61 +1,58 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/appengine.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'application.pb.dart' as $3; -import '../../protobuf/field_mask.pb.dart' as $10; -import 'service.pb.dart' as $4; -import 'version.pb.dart' as $5; -import 'instance.pb.dart' as $6; -import 'firewall.pb.dart' as $7; -import 'domain.pb.dart' as $11; -import 'certificate.pb.dart' as $8; -import 'domain_mapping.pb.dart' as $9; - +import '../../protobuf/field_mask.pb.dart' as $58; import 'appengine.pbenum.dart'; +import 'application.pb.dart' as $11; +import 'certificate.pb.dart' as $16; +import 'domain.pb.dart' as $63; +import 'domain_mapping.pb.dart' as $17; +import 'firewall.pb.dart' as $15; +import 'instance.pb.dart' as $14; +import 'service.pb.dart' as $12; +import 'version.pb.dart' as $13; export 'appengine.pbenum.dart'; +/// Request message for `Applications.GetApplication`. class GetApplicationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetApplicationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetApplicationRequest._() : super(); factory GetApplicationRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetApplicationRequest._() : super(); factory GetApplicationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetApplicationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetApplicationRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -67,8 +64,10 @@ class GetApplicationRequest extends $pb.GeneratedMessage { GetApplicationRequest copyWith( void Function(GetApplicationRequest) updates) => super.copyWith((message) => updates(message as GetApplicationRequest)) - as GetApplicationRequest; // ignore: deprecated_member_use + as GetApplicationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetApplicationRequest create() => GetApplicationRequest._(); GetApplicationRequest createEmptyInstance() => create(); @@ -79,6 +78,7 @@ class GetApplicationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetApplicationRequest? _defaultInstance; + /// Name of the Application resource to get. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -92,40 +92,34 @@ class GetApplicationRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Applications.CreateApplication`. class CreateApplicationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateApplicationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOM<$3.Application>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'application', - subBuilder: $3.Application.create) - ..hasRequiredFields = false; - - CreateApplicationRequest._() : super(); factory CreateApplicationRequest({ - $3.Application? application, + $11.Application? application, }) { - final _result = create(); + final $result = create(); if (application != null) { - _result.application = application; + $result.application = application; } - return _result; + return $result; } + CreateApplicationRequest._() : super(); factory CreateApplicationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateApplicationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateApplicationRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOM<$11.Application>(2, _omitFieldNames ? '' : 'application', + subBuilder: $11.Application.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') @@ -137,8 +131,10 @@ class CreateApplicationRequest extends $pb.GeneratedMessage { CreateApplicationRequest copyWith( void Function(CreateApplicationRequest) updates) => super.copyWith((message) => updates(message as CreateApplicationRequest)) - as CreateApplicationRequest; // ignore: deprecated_member_use + as CreateApplicationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateApplicationRequest create() => CreateApplicationRequest._(); CreateApplicationRequest createEmptyInstance() => create(); @@ -149,10 +145,11 @@ class CreateApplicationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateApplicationRequest? _defaultInstance; + /// Application configuration. @$pb.TagNumber(2) - $3.Application get application => $_getN(0); + $11.Application get application => $_getN(0); @$pb.TagNumber(2) - set application($3.Application v) { + set application($11.Application v) { setField(2, v); } @@ -161,56 +158,48 @@ class CreateApplicationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearApplication() => clearField(2); @$pb.TagNumber(2) - $3.Application ensureApplication() => $_ensure(0); + $11.Application ensureApplication() => $_ensure(0); } +/// Request message for `Applications.UpdateApplication`. class UpdateApplicationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateApplicationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$3.Application>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'application', - subBuilder: $3.Application.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..hasRequiredFields = false; - - UpdateApplicationRequest._() : super(); factory UpdateApplicationRequest({ $core.String? name, - $3.Application? application, - $10.FieldMask? updateMask, + $11.Application? application, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (application != null) { - _result.application = application; + $result.application = application; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateApplicationRequest._() : super(); factory UpdateApplicationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateApplicationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateApplicationRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$11.Application>(2, _omitFieldNames ? '' : 'application', + subBuilder: $11.Application.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -222,8 +211,10 @@ class UpdateApplicationRequest extends $pb.GeneratedMessage { UpdateApplicationRequest copyWith( void Function(UpdateApplicationRequest) updates) => super.copyWith((message) => updates(message as UpdateApplicationRequest)) - as UpdateApplicationRequest; // ignore: deprecated_member_use + as UpdateApplicationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateApplicationRequest create() => UpdateApplicationRequest._(); UpdateApplicationRequest createEmptyInstance() => create(); @@ -234,6 +225,7 @@ class UpdateApplicationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateApplicationRequest? _defaultInstance; + /// Name of the Application resource to update. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -246,10 +238,11 @@ class UpdateApplicationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// An Application containing the updated resource. @$pb.TagNumber(2) - $3.Application get application => $_getN(1); + $11.Application get application => $_getN(1); @$pb.TagNumber(2) - set application($3.Application v) { + set application($11.Application v) { setField(2, v); } @@ -258,12 +251,13 @@ class UpdateApplicationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearApplication() => clearField(2); @$pb.TagNumber(2) - $3.Application ensureApplication() => $_ensure(1); + $11.Application ensureApplication() => $_ensure(1); + /// Required. Standard field mask for the set of fields to be updated. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -272,42 +266,36 @@ class UpdateApplicationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for 'Applications.RepairApplication'. class RepairApplicationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RepairApplicationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - RepairApplicationRequest._() : super(); factory RepairApplicationRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + RepairApplicationRequest._() : super(); factory RepairApplicationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RepairApplicationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RepairApplicationRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -319,8 +307,10 @@ class RepairApplicationRequest extends $pb.GeneratedMessage { RepairApplicationRequest copyWith( void Function(RepairApplicationRequest) updates) => super.copyWith((message) => updates(message as RepairApplicationRequest)) - as RepairApplicationRequest; // ignore: deprecated_member_use + as RepairApplicationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RepairApplicationRequest create() => RepairApplicationRequest._(); RepairApplicationRequest createEmptyInstance() => create(); @@ -331,6 +321,7 @@ class RepairApplicationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static RepairApplicationRequest? _defaultInstance; + /// Name of the application to repair. Example: `apps/myapp` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -344,58 +335,43 @@ class RepairApplicationRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Services.ListServices`. class ListServicesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServicesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListServicesRequest._() : super(); factory ListServicesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListServicesRequest._() : super(); factory ListServicesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServicesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServicesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -405,8 +381,10 @@ class ListServicesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListServicesRequest copyWith(void Function(ListServicesRequest) updates) => super.copyWith((message) => updates(message as ListServicesRequest)) - as ListServicesRequest; // ignore: deprecated_member_use + as ListServicesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServicesRequest create() => ListServicesRequest._(); ListServicesRequest createEmptyInstance() => create(); @@ -417,6 +395,7 @@ class ListServicesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServicesRequest? _defaultInstance; + /// Name of the parent Application resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -429,6 +408,7 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -441,6 +421,7 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -454,47 +435,39 @@ class ListServicesRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// Response message for `Services.ListServices`. class ListServicesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServicesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..pc<$4.Service>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'services', - $pb.PbFieldType.PM, - subBuilder: $4.Service.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListServicesResponse._() : super(); factory ListServicesResponse({ - $core.Iterable<$4.Service>? services, + $core.Iterable<$12.Service>? services, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (services != null) { - _result.services.addAll(services); + $result.services.addAll(services); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListServicesResponse._() : super(); factory ListServicesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServicesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServicesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..pc<$12.Service>(1, _omitFieldNames ? '' : 'services', $pb.PbFieldType.PM, + subBuilder: $12.Service.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -505,8 +478,10 @@ class ListServicesResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListServicesResponse copyWith(void Function(ListServicesResponse) updates) => super.copyWith((message) => updates(message as ListServicesResponse)) - as ListServicesResponse; // ignore: deprecated_member_use + as ListServicesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServicesResponse create() => ListServicesResponse._(); ListServicesResponse createEmptyInstance() => create(); @@ -517,9 +492,11 @@ class ListServicesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServicesResponse? _defaultInstance; + /// The services belonging to the requested application. @$pb.TagNumber(1) - $core.List<$4.Service> get services => $_getList(0); + $core.List<$12.Service> get services => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -533,39 +510,33 @@ class ListServicesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `Services.GetService`. class GetServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetServiceRequest._() : super(); factory GetServiceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetServiceRequest._() : super(); factory GetServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -575,8 +546,10 @@ class GetServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetServiceRequest copyWith(void Function(GetServiceRequest) updates) => super.copyWith((message) => updates(message as GetServiceRequest)) - as GetServiceRequest; // ignore: deprecated_member_use + as GetServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceRequest create() => GetServiceRequest._(); GetServiceRequest createEmptyInstance() => create(); @@ -587,6 +560,7 @@ class GetServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceRequest? _defaultInstance; + /// Name of the resource requested. Example: `apps/myapp/services/default`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -600,58 +574,50 @@ class GetServiceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Services.UpdateService`. class UpdateServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$4.Service>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'service', - subBuilder: $4.Service.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'migrateTraffic') - ..hasRequiredFields = false; - - UpdateServiceRequest._() : super(); factory UpdateServiceRequest({ $core.String? name, - $4.Service? service, - $10.FieldMask? updateMask, + $12.Service? service, + $58.FieldMask? updateMask, $core.bool? migrateTraffic, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (service != null) { - _result.service = service; + $result.service = service; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } if (migrateTraffic != null) { - _result.migrateTraffic = migrateTraffic; + $result.migrateTraffic = migrateTraffic; } - return _result; + return $result; } + UpdateServiceRequest._() : super(); factory UpdateServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateServiceRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$12.Service>(2, _omitFieldNames ? '' : 'service', + subBuilder: $12.Service.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.create) + ..aOB(4, _omitFieldNames ? '' : 'migrateTraffic') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -662,8 +628,10 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') UpdateServiceRequest copyWith(void Function(UpdateServiceRequest) updates) => super.copyWith((message) => updates(message as UpdateServiceRequest)) - as UpdateServiceRequest; // ignore: deprecated_member_use + as UpdateServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateServiceRequest create() => UpdateServiceRequest._(); UpdateServiceRequest createEmptyInstance() => create(); @@ -674,6 +642,7 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateServiceRequest? _defaultInstance; + /// Name of the resource to update. Example: `apps/myapp/services/default`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -686,10 +655,12 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A Service resource containing the updated service. Only fields set in the + /// field mask will be updated. @$pb.TagNumber(2) - $4.Service get service => $_getN(1); + $12.Service get service => $_getN(1); @$pb.TagNumber(2) - set service($4.Service v) { + set service($12.Service v) { setField(2, v); } @@ -698,12 +669,13 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearService() => clearField(2); @$pb.TagNumber(2) - $4.Service ensureService() => $_ensure(1); + $12.Service ensureService() => $_ensure(1); + /// Required. Standard field mask for the set of fields to be updated. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -712,8 +684,20 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); - + $58.FieldMask ensureUpdateMask() => $_ensure(2); + + /// Set to `true` to gradually shift traffic to one or more versions that you + /// specify. By default, traffic is shifted immediately. + /// For gradual traffic migration, the target versions + /// must be located within instances that are configured for both + /// [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#InboundServiceType) + /// and + /// [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#AutomaticScaling). + /// You must specify the + /// [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#ShardBy) + /// field in the Service resource. Gradual traffic migration is not + /// supported in the App Engine flexible environment. For examples, see + /// [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). @$pb.TagNumber(4) $core.bool get migrateTraffic => $_getBF(3); @$pb.TagNumber(4) @@ -727,39 +711,33 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { void clearMigrateTraffic() => clearField(4); } +/// Request message for `Services.DeleteService`. class DeleteServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteServiceRequest._() : super(); factory DeleteServiceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteServiceRequest._() : super(); factory DeleteServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteServiceRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -770,8 +748,10 @@ class DeleteServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteServiceRequest copyWith(void Function(DeleteServiceRequest) updates) => super.copyWith((message) => updates(message as DeleteServiceRequest)) - as DeleteServiceRequest; // ignore: deprecated_member_use + as DeleteServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteServiceRequest create() => DeleteServiceRequest._(); DeleteServiceRequest createEmptyInstance() => create(); @@ -782,6 +762,7 @@ class DeleteServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteServiceRequest? _defaultInstance; + /// Name of the resource requested. Example: `apps/myapp/services/default`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -795,63 +776,51 @@ class DeleteServiceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Versions.ListVersions`. class ListVersionsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListVersionsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..e( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'view', $pb.PbFieldType.OE, - defaultOrMaker: VersionView.BASIC, - valueOf: VersionView.valueOf, - enumValues: VersionView.values) - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pageToken') - ..hasRequiredFields = false; - - ListVersionsRequest._() : super(); factory ListVersionsRequest({ $core.String? parent, VersionView? view, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (view != null) { - _result.view = view; + $result.view = view; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListVersionsRequest._() : super(); factory ListVersionsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListVersionsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListVersionsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..e(2, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: VersionView.BASIC, + valueOf: VersionView.valueOf, + enumValues: VersionView.values) + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(4, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -861,8 +830,10 @@ class ListVersionsRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListVersionsRequest copyWith(void Function(ListVersionsRequest) updates) => super.copyWith((message) => updates(message as ListVersionsRequest)) - as ListVersionsRequest; // ignore: deprecated_member_use + as ListVersionsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListVersionsRequest create() => ListVersionsRequest._(); ListVersionsRequest createEmptyInstance() => create(); @@ -873,6 +844,8 @@ class ListVersionsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListVersionsRequest? _defaultInstance; + /// Name of the parent Service resource. Example: + /// `apps/myapp/services/default`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -885,6 +858,7 @@ class ListVersionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Controls the set of fields returned in the `List` response. @$pb.TagNumber(2) VersionView get view => $_getN(1); @$pb.TagNumber(2) @@ -897,6 +871,7 @@ class ListVersionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearView() => clearField(2); + /// Maximum results to return per page. @$pb.TagNumber(3) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(3) @@ -909,6 +884,7 @@ class ListVersionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageSize() => clearField(3); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(4) $core.String get pageToken => $_getSZ(3); @$pb.TagNumber(4) @@ -922,47 +898,39 @@ class ListVersionsRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(4); } +/// Response message for `Versions.ListVersions`. class ListVersionsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListVersionsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..pc<$5.Version>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'versions', - $pb.PbFieldType.PM, - subBuilder: $5.Version.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListVersionsResponse._() : super(); factory ListVersionsResponse({ - $core.Iterable<$5.Version>? versions, + $core.Iterable<$13.Version>? versions, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (versions != null) { - _result.versions.addAll(versions); + $result.versions.addAll(versions); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListVersionsResponse._() : super(); factory ListVersionsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListVersionsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListVersionsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..pc<$13.Version>(1, _omitFieldNames ? '' : 'versions', $pb.PbFieldType.PM, + subBuilder: $13.Version.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -973,8 +941,10 @@ class ListVersionsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListVersionsResponse copyWith(void Function(ListVersionsResponse) updates) => super.copyWith((message) => updates(message as ListVersionsResponse)) - as ListVersionsResponse; // ignore: deprecated_member_use + as ListVersionsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListVersionsResponse create() => ListVersionsResponse._(); ListVersionsResponse createEmptyInstance() => create(); @@ -985,9 +955,11 @@ class ListVersionsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListVersionsResponse? _defaultInstance; + /// The versions belonging to the requested service. @$pb.TagNumber(1) - $core.List<$5.Version> get versions => $_getList(0); + $core.List<$13.Version> get versions => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1001,52 +973,41 @@ class ListVersionsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `Versions.GetVersion`. class GetVersionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetVersionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'view', - $pb.PbFieldType.OE, - defaultOrMaker: VersionView.BASIC, - valueOf: VersionView.valueOf, - enumValues: VersionView.values) - ..hasRequiredFields = false; - - GetVersionRequest._() : super(); factory GetVersionRequest({ $core.String? name, VersionView? view, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + GetVersionRequest._() : super(); factory GetVersionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetVersionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetVersionRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e(2, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: VersionView.BASIC, + valueOf: VersionView.valueOf, + enumValues: VersionView.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1056,8 +1017,10 @@ class GetVersionRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetVersionRequest copyWith(void Function(GetVersionRequest) updates) => super.copyWith((message) => updates(message as GetVersionRequest)) - as GetVersionRequest; // ignore: deprecated_member_use + as GetVersionRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetVersionRequest create() => GetVersionRequest._(); GetVersionRequest createEmptyInstance() => create(); @@ -1068,6 +1031,8 @@ class GetVersionRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetVersionRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/services/default/versions/v1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1080,6 +1045,7 @@ class GetVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Controls the set of fields returned in the `Get` response. @$pb.TagNumber(2) VersionView get view => $_getN(1); @$pb.TagNumber(2) @@ -1093,49 +1059,39 @@ class GetVersionRequest extends $pb.GeneratedMessage { void clearView() => clearField(2); } +/// Request message for `Versions.CreateVersion`. class CreateVersionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateVersionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$5.Version>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version', - subBuilder: $5.Version.create) - ..hasRequiredFields = false; - - CreateVersionRequest._() : super(); factory CreateVersionRequest({ $core.String? parent, - $5.Version? version, + $13.Version? version, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (version != null) { - _result.version = version; + $result.version = version; } - return _result; + return $result; } + CreateVersionRequest._() : super(); factory CreateVersionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateVersionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateVersionRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$13.Version>(2, _omitFieldNames ? '' : 'version', + subBuilder: $13.Version.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') @@ -1146,8 +1102,10 @@ class CreateVersionRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CreateVersionRequest copyWith(void Function(CreateVersionRequest) updates) => super.copyWith((message) => updates(message as CreateVersionRequest)) - as CreateVersionRequest; // ignore: deprecated_member_use + as CreateVersionRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateVersionRequest create() => CreateVersionRequest._(); CreateVersionRequest createEmptyInstance() => create(); @@ -1158,6 +1116,8 @@ class CreateVersionRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateVersionRequest? _defaultInstance; + /// Name of the parent resource to create this version under. Example: + /// `apps/myapp/services/default`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1170,10 +1130,11 @@ class CreateVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Application deployment configuration. @$pb.TagNumber(2) - $5.Version get version => $_getN(1); + $13.Version get version => $_getN(1); @$pb.TagNumber(2) - set version($5.Version v) { + set version($13.Version v) { setField(2, v); } @@ -1182,56 +1143,48 @@ class CreateVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearVersion() => clearField(2); @$pb.TagNumber(2) - $5.Version ensureVersion() => $_ensure(1); + $13.Version ensureVersion() => $_ensure(1); } +/// Request message for `Versions.UpdateVersion`. class UpdateVersionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateVersionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$5.Version>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version', - subBuilder: $5.Version.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..hasRequiredFields = false; - - UpdateVersionRequest._() : super(); factory UpdateVersionRequest({ $core.String? name, - $5.Version? version, - $10.FieldMask? updateMask, + $13.Version? version, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (version != null) { - _result.version = version; + $result.version = version; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateVersionRequest._() : super(); factory UpdateVersionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateVersionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateVersionRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$13.Version>(2, _omitFieldNames ? '' : 'version', + subBuilder: $13.Version.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -1242,8 +1195,10 @@ class UpdateVersionRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') UpdateVersionRequest copyWith(void Function(UpdateVersionRequest) updates) => super.copyWith((message) => updates(message as UpdateVersionRequest)) - as UpdateVersionRequest; // ignore: deprecated_member_use + as UpdateVersionRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateVersionRequest create() => UpdateVersionRequest._(); UpdateVersionRequest createEmptyInstance() => create(); @@ -1254,6 +1209,8 @@ class UpdateVersionRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateVersionRequest? _defaultInstance; + /// Name of the resource to update. Example: + /// `apps/myapp/services/default/versions/1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1266,10 +1223,12 @@ class UpdateVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A Version containing the updated resource. Only fields set in the field + /// mask will be updated. @$pb.TagNumber(2) - $5.Version get version => $_getN(1); + $13.Version get version => $_getN(1); @$pb.TagNumber(2) - set version($5.Version v) { + set version($13.Version v) { setField(2, v); } @@ -1278,12 +1237,13 @@ class UpdateVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearVersion() => clearField(2); @$pb.TagNumber(2) - $5.Version ensureVersion() => $_ensure(1); + $13.Version ensureVersion() => $_ensure(1); + /// Standard field mask for the set of fields to be updated. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -1292,42 +1252,36 @@ class UpdateVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for `Versions.DeleteVersion`. class DeleteVersionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteVersionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteVersionRequest._() : super(); factory DeleteVersionRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteVersionRequest._() : super(); factory DeleteVersionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteVersionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteVersionRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1338,8 +1292,10 @@ class DeleteVersionRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteVersionRequest copyWith(void Function(DeleteVersionRequest) updates) => super.copyWith((message) => updates(message as DeleteVersionRequest)) - as DeleteVersionRequest; // ignore: deprecated_member_use + as DeleteVersionRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteVersionRequest create() => DeleteVersionRequest._(); DeleteVersionRequest createEmptyInstance() => create(); @@ -1350,6 +1306,8 @@ class DeleteVersionRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteVersionRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/services/default/versions/v1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1363,58 +1321,43 @@ class DeleteVersionRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Instances.ListInstances`. class ListInstancesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListInstancesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListInstancesRequest._() : super(); factory ListInstancesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListInstancesRequest._() : super(); factory ListInstancesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListInstancesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListInstancesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1425,8 +1368,10 @@ class ListInstancesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListInstancesRequest copyWith(void Function(ListInstancesRequest) updates) => super.copyWith((message) => updates(message as ListInstancesRequest)) - as ListInstancesRequest; // ignore: deprecated_member_use + as ListInstancesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListInstancesRequest create() => ListInstancesRequest._(); ListInstancesRequest createEmptyInstance() => create(); @@ -1437,6 +1382,8 @@ class ListInstancesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListInstancesRequest? _defaultInstance; + /// Name of the parent Version resource. Example: + /// `apps/myapp/services/default/versions/v1`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1449,6 +1396,7 @@ class ListInstancesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -1461,6 +1409,7 @@ class ListInstancesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -1474,47 +1423,40 @@ class ListInstancesRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// Response message for `Instances.ListInstances`. class ListInstancesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListInstancesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..pc<$6.Instance>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'instances', - $pb.PbFieldType.PM, - subBuilder: $6.Instance.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListInstancesResponse._() : super(); factory ListInstancesResponse({ - $core.Iterable<$6.Instance>? instances, + $core.Iterable<$14.Instance>? instances, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (instances != null) { - _result.instances.addAll(instances); + $result.instances.addAll(instances); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListInstancesResponse._() : super(); factory ListInstancesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListInstancesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListInstancesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..pc<$14.Instance>( + 1, _omitFieldNames ? '' : 'instances', $pb.PbFieldType.PM, + subBuilder: $14.Instance.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1526,8 +1468,10 @@ class ListInstancesResponse extends $pb.GeneratedMessage { ListInstancesResponse copyWith( void Function(ListInstancesResponse) updates) => super.copyWith((message) => updates(message as ListInstancesResponse)) - as ListInstancesResponse; // ignore: deprecated_member_use + as ListInstancesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListInstancesResponse create() => ListInstancesResponse._(); ListInstancesResponse createEmptyInstance() => create(); @@ -1538,9 +1482,11 @@ class ListInstancesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListInstancesResponse? _defaultInstance; + /// The instances belonging to the requested version. @$pb.TagNumber(1) - $core.List<$6.Instance> get instances => $_getList(0); + $core.List<$14.Instance> get instances => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1554,39 +1500,33 @@ class ListInstancesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `Instances.GetInstance`. class GetInstanceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetInstanceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetInstanceRequest._() : super(); factory GetInstanceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetInstanceRequest._() : super(); factory GetInstanceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetInstanceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetInstanceRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1596,8 +1536,10 @@ class GetInstanceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetInstanceRequest copyWith(void Function(GetInstanceRequest) updates) => super.copyWith((message) => updates(message as GetInstanceRequest)) - as GetInstanceRequest; // ignore: deprecated_member_use + as GetInstanceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetInstanceRequest create() => GetInstanceRequest._(); GetInstanceRequest createEmptyInstance() => create(); @@ -1608,6 +1550,8 @@ class GetInstanceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetInstanceRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/services/default/versions/v1/instances/instance-1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1621,39 +1565,33 @@ class GetInstanceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Instances.DeleteInstance`. class DeleteInstanceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteInstanceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteInstanceRequest._() : super(); factory DeleteInstanceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteInstanceRequest._() : super(); factory DeleteInstanceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteInstanceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteInstanceRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1665,8 +1603,10 @@ class DeleteInstanceRequest extends $pb.GeneratedMessage { DeleteInstanceRequest copyWith( void Function(DeleteInstanceRequest) updates) => super.copyWith((message) => updates(message as DeleteInstanceRequest)) - as DeleteInstanceRequest; // ignore: deprecated_member_use + as DeleteInstanceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteInstanceRequest create() => DeleteInstanceRequest._(); DeleteInstanceRequest createEmptyInstance() => create(); @@ -1677,6 +1617,8 @@ class DeleteInstanceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteInstanceRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/services/default/versions/v1/instances/instance-1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1690,48 +1632,38 @@ class DeleteInstanceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Instances.DebugInstance`. class DebugInstanceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DebugInstanceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sshKey') - ..hasRequiredFields = false; - - DebugInstanceRequest._() : super(); factory DebugInstanceRequest({ $core.String? name, $core.String? sshKey, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (sshKey != null) { - _result.sshKey = sshKey; + $result.sshKey = sshKey; } - return _result; + return $result; } + DebugInstanceRequest._() : super(); factory DebugInstanceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DebugInstanceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DebugInstanceRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'sshKey') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1742,8 +1674,10 @@ class DebugInstanceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DebugInstanceRequest copyWith(void Function(DebugInstanceRequest) updates) => super.copyWith((message) => updates(message as DebugInstanceRequest)) - as DebugInstanceRequest; // ignore: deprecated_member_use + as DebugInstanceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DebugInstanceRequest create() => DebugInstanceRequest._(); DebugInstanceRequest createEmptyInstance() => create(); @@ -1754,6 +1688,8 @@ class DebugInstanceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DebugInstanceRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/services/default/versions/v1/instances/instance-1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1766,6 +1702,13 @@ class DebugInstanceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Public SSH key to add to the instance. Examples: + /// + /// * `[USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]` + /// * `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}` + /// + /// For more information, see + /// [Adding and Removing SSH Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). @$pb.TagNumber(2) $core.String get sshKey => $_getSZ(1); @$pb.TagNumber(2) @@ -1779,64 +1722,48 @@ class DebugInstanceRequest extends $pb.GeneratedMessage { void clearSshKey() => clearField(2); } +/// Request message for `Firewall.ListIngressRules`. class ListIngressRulesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListIngressRulesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..aOS( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'matchingAddress') - ..hasRequiredFields = false; - - ListIngressRulesRequest._() : super(); factory ListIngressRulesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, $core.String? matchingAddress, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (matchingAddress != null) { - _result.matchingAddress = matchingAddress; + $result.matchingAddress = matchingAddress; } - return _result; + return $result; } + ListIngressRulesRequest._() : super(); factory ListIngressRulesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListIngressRulesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListIngressRulesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..aOS(4, _omitFieldNames ? '' : 'matchingAddress') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1848,8 +1775,10 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { ListIngressRulesRequest copyWith( void Function(ListIngressRulesRequest) updates) => super.copyWith((message) => updates(message as ListIngressRulesRequest)) - as ListIngressRulesRequest; // ignore: deprecated_member_use + as ListIngressRulesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListIngressRulesRequest create() => ListIngressRulesRequest._(); ListIngressRulesRequest createEmptyInstance() => create(); @@ -1860,6 +1789,8 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListIngressRulesRequest? _defaultInstance; + /// Name of the Firewall collection to retrieve. + /// Example: `apps/myapp/firewall/ingressRules`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1872,6 +1803,7 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -1884,6 +1816,7 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -1896,6 +1829,9 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// A valid IP Address. If set, only rules matching this address will be + /// returned. The first returned rule will be the rule that fires on requests + /// from this IP. @$pb.TagNumber(4) $core.String get matchingAddress => $_getSZ(3); @$pb.TagNumber(4) @@ -1909,47 +1845,40 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { void clearMatchingAddress() => clearField(4); } +/// Response message for `Firewall.ListIngressRules`. class ListIngressRulesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListIngressRulesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..pc<$7.FirewallRule>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ingressRules', - $pb.PbFieldType.PM, - subBuilder: $7.FirewallRule.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListIngressRulesResponse._() : super(); factory ListIngressRulesResponse({ - $core.Iterable<$7.FirewallRule>? ingressRules, + $core.Iterable<$15.FirewallRule>? ingressRules, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (ingressRules != null) { - _result.ingressRules.addAll(ingressRules); + $result.ingressRules.addAll(ingressRules); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListIngressRulesResponse._() : super(); factory ListIngressRulesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListIngressRulesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListIngressRulesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..pc<$15.FirewallRule>( + 1, _omitFieldNames ? '' : 'ingressRules', $pb.PbFieldType.PM, + subBuilder: $15.FirewallRule.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1961,8 +1890,10 @@ class ListIngressRulesResponse extends $pb.GeneratedMessage { ListIngressRulesResponse copyWith( void Function(ListIngressRulesResponse) updates) => super.copyWith((message) => updates(message as ListIngressRulesResponse)) - as ListIngressRulesResponse; // ignore: deprecated_member_use + as ListIngressRulesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListIngressRulesResponse create() => ListIngressRulesResponse._(); ListIngressRulesResponse createEmptyInstance() => create(); @@ -1973,9 +1904,11 @@ class ListIngressRulesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListIngressRulesResponse? _defaultInstance; + /// The ingress FirewallRules for this application. @$pb.TagNumber(1) - $core.List<$7.FirewallRule> get ingressRules => $_getList(0); + $core.List<$15.FirewallRule> get ingressRules => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1989,50 +1922,40 @@ class ListIngressRulesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `Firewall.BatchUpdateIngressRules`. class BatchUpdateIngressRulesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchUpdateIngressRulesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc<$7.FirewallRule>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ingressRules', - $pb.PbFieldType.PM, - subBuilder: $7.FirewallRule.create) - ..hasRequiredFields = false; - - BatchUpdateIngressRulesRequest._() : super(); factory BatchUpdateIngressRulesRequest({ $core.String? name, - $core.Iterable<$7.FirewallRule>? ingressRules, + $core.Iterable<$15.FirewallRule>? ingressRules, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (ingressRules != null) { - _result.ingressRules.addAll(ingressRules); + $result.ingressRules.addAll(ingressRules); } - return _result; + return $result; } + BatchUpdateIngressRulesRequest._() : super(); factory BatchUpdateIngressRulesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BatchUpdateIngressRulesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchUpdateIngressRulesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pc<$15.FirewallRule>( + 2, _omitFieldNames ? '' : 'ingressRules', $pb.PbFieldType.PM, + subBuilder: $15.FirewallRule.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') @@ -2045,8 +1968,10 @@ class BatchUpdateIngressRulesRequest extends $pb.GeneratedMessage { void Function(BatchUpdateIngressRulesRequest) updates) => super.copyWith( (message) => updates(message as BatchUpdateIngressRulesRequest)) - as BatchUpdateIngressRulesRequest; // ignore: deprecated_member_use + as BatchUpdateIngressRulesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchUpdateIngressRulesRequest create() => BatchUpdateIngressRulesRequest._(); @@ -2058,6 +1983,8 @@ class BatchUpdateIngressRulesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BatchUpdateIngressRulesRequest? _defaultInstance; + /// Name of the Firewall collection to set. + /// Example: `apps/myapp/firewall/ingressRules`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2070,45 +1997,40 @@ class BatchUpdateIngressRulesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A list of FirewallRules to replace the existing set. @$pb.TagNumber(2) - $core.List<$7.FirewallRule> get ingressRules => $_getList(1); + $core.List<$15.FirewallRule> get ingressRules => $_getList(1); } +/// Response message for `Firewall.UpdateAllIngressRules`. class BatchUpdateIngressRulesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchUpdateIngressRulesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..pc<$7.FirewallRule>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ingressRules', - $pb.PbFieldType.PM, - subBuilder: $7.FirewallRule.create) - ..hasRequiredFields = false; - - BatchUpdateIngressRulesResponse._() : super(); factory BatchUpdateIngressRulesResponse({ - $core.Iterable<$7.FirewallRule>? ingressRules, + $core.Iterable<$15.FirewallRule>? ingressRules, }) { - final _result = create(); + final $result = create(); if (ingressRules != null) { - _result.ingressRules.addAll(ingressRules); + $result.ingressRules.addAll(ingressRules); } - return _result; + return $result; } + BatchUpdateIngressRulesResponse._() : super(); factory BatchUpdateIngressRulesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BatchUpdateIngressRulesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchUpdateIngressRulesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..pc<$15.FirewallRule>( + 1, _omitFieldNames ? '' : 'ingressRules', $pb.PbFieldType.PM, + subBuilder: $15.FirewallRule.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') @@ -2121,8 +2043,10 @@ class BatchUpdateIngressRulesResponse extends $pb.GeneratedMessage { void Function(BatchUpdateIngressRulesResponse) updates) => super.copyWith( (message) => updates(message as BatchUpdateIngressRulesResponse)) - as BatchUpdateIngressRulesResponse; // ignore: deprecated_member_use + as BatchUpdateIngressRulesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchUpdateIngressRulesResponse create() => BatchUpdateIngressRulesResponse._(); @@ -2135,53 +2059,44 @@ class BatchUpdateIngressRulesResponse extends $pb.GeneratedMessage { create); static BatchUpdateIngressRulesResponse? _defaultInstance; + /// The full list of ingress FirewallRules for this application. @$pb.TagNumber(1) - $core.List<$7.FirewallRule> get ingressRules => $_getList(0); + $core.List<$15.FirewallRule> get ingressRules => $_getList(0); } +/// Request message for `Firewall.CreateIngressRule`. class CreateIngressRuleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateIngressRuleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$7.FirewallRule>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rule', - subBuilder: $7.FirewallRule.create) - ..hasRequiredFields = false; - - CreateIngressRuleRequest._() : super(); factory CreateIngressRuleRequest({ $core.String? parent, - $7.FirewallRule? rule, + $15.FirewallRule? rule, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (rule != null) { - _result.rule = rule; + $result.rule = rule; } - return _result; + return $result; } + CreateIngressRuleRequest._() : super(); factory CreateIngressRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateIngressRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateIngressRuleRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$15.FirewallRule>(2, _omitFieldNames ? '' : 'rule', + subBuilder: $15.FirewallRule.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') @@ -2193,8 +2108,10 @@ class CreateIngressRuleRequest extends $pb.GeneratedMessage { CreateIngressRuleRequest copyWith( void Function(CreateIngressRuleRequest) updates) => super.copyWith((message) => updates(message as CreateIngressRuleRequest)) - as CreateIngressRuleRequest; // ignore: deprecated_member_use + as CreateIngressRuleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateIngressRuleRequest create() => CreateIngressRuleRequest._(); CreateIngressRuleRequest createEmptyInstance() => create(); @@ -2205,6 +2122,8 @@ class CreateIngressRuleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateIngressRuleRequest? _defaultInstance; + /// Name of the parent Firewall collection in which to create a new rule. + /// Example: `apps/myapp/firewall/ingressRules`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2217,10 +2136,20 @@ class CreateIngressRuleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// A FirewallRule containing the new resource. + /// + /// The user may optionally provide a position at which the new rule will be + /// placed. The positions define a sequential list starting at 1. If a rule + /// already exists at the given position, rules greater than the provided + /// position will be moved forward by one. + /// + /// If no position is provided, the server will place the rule as the second to + /// last rule in the sequence before the required default allow-all or deny-all + /// rule. @$pb.TagNumber(2) - $7.FirewallRule get rule => $_getN(1); + $15.FirewallRule get rule => $_getN(1); @$pb.TagNumber(2) - set rule($7.FirewallRule v) { + set rule($15.FirewallRule v) { setField(2, v); } @@ -2229,42 +2158,36 @@ class CreateIngressRuleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRule() => clearField(2); @$pb.TagNumber(2) - $7.FirewallRule ensureRule() => $_ensure(1); + $15.FirewallRule ensureRule() => $_ensure(1); } +/// Request message for `Firewall.GetIngressRule`. class GetIngressRuleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetIngressRuleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetIngressRuleRequest._() : super(); factory GetIngressRuleRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetIngressRuleRequest._() : super(); factory GetIngressRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetIngressRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetIngressRuleRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2276,8 +2199,10 @@ class GetIngressRuleRequest extends $pb.GeneratedMessage { GetIngressRuleRequest copyWith( void Function(GetIngressRuleRequest) updates) => super.copyWith((message) => updates(message as GetIngressRuleRequest)) - as GetIngressRuleRequest; // ignore: deprecated_member_use + as GetIngressRuleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetIngressRuleRequest create() => GetIngressRuleRequest._(); GetIngressRuleRequest createEmptyInstance() => create(); @@ -2288,6 +2213,8 @@ class GetIngressRuleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetIngressRuleRequest? _defaultInstance; + /// Name of the Firewall resource to retrieve. + /// Example: `apps/myapp/firewall/ingressRules/100`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2301,53 +2228,45 @@ class GetIngressRuleRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Firewall.UpdateIngressRule`. class UpdateIngressRuleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateIngressRuleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$7.FirewallRule>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rule', - subBuilder: $7.FirewallRule.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..hasRequiredFields = false; - - UpdateIngressRuleRequest._() : super(); factory UpdateIngressRuleRequest({ $core.String? name, - $7.FirewallRule? rule, - $10.FieldMask? updateMask, + $15.FirewallRule? rule, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (rule != null) { - _result.rule = rule; + $result.rule = rule; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateIngressRuleRequest._() : super(); factory UpdateIngressRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateIngressRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateIngressRuleRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$15.FirewallRule>(2, _omitFieldNames ? '' : 'rule', + subBuilder: $15.FirewallRule.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -2359,8 +2278,10 @@ class UpdateIngressRuleRequest extends $pb.GeneratedMessage { UpdateIngressRuleRequest copyWith( void Function(UpdateIngressRuleRequest) updates) => super.copyWith((message) => updates(message as UpdateIngressRuleRequest)) - as UpdateIngressRuleRequest; // ignore: deprecated_member_use + as UpdateIngressRuleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateIngressRuleRequest create() => UpdateIngressRuleRequest._(); UpdateIngressRuleRequest createEmptyInstance() => create(); @@ -2371,6 +2292,8 @@ class UpdateIngressRuleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateIngressRuleRequest? _defaultInstance; + /// Name of the Firewall resource to update. + /// Example: `apps/myapp/firewall/ingressRules/100`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2383,10 +2306,11 @@ class UpdateIngressRuleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A FirewallRule containing the updated resource @$pb.TagNumber(2) - $7.FirewallRule get rule => $_getN(1); + $15.FirewallRule get rule => $_getN(1); @$pb.TagNumber(2) - set rule($7.FirewallRule v) { + set rule($15.FirewallRule v) { setField(2, v); } @@ -2395,12 +2319,13 @@ class UpdateIngressRuleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRule() => clearField(2); @$pb.TagNumber(2) - $7.FirewallRule ensureRule() => $_ensure(1); + $15.FirewallRule ensureRule() => $_ensure(1); + /// Standard field mask for the set of fields to be updated. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -2409,42 +2334,36 @@ class UpdateIngressRuleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for `Firewall.DeleteIngressRule`. class DeleteIngressRuleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteIngressRuleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteIngressRuleRequest._() : super(); factory DeleteIngressRuleRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteIngressRuleRequest._() : super(); factory DeleteIngressRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteIngressRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteIngressRuleRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2456,8 +2375,10 @@ class DeleteIngressRuleRequest extends $pb.GeneratedMessage { DeleteIngressRuleRequest copyWith( void Function(DeleteIngressRuleRequest) updates) => super.copyWith((message) => updates(message as DeleteIngressRuleRequest)) - as DeleteIngressRuleRequest; // ignore: deprecated_member_use + as DeleteIngressRuleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteIngressRuleRequest create() => DeleteIngressRuleRequest._(); DeleteIngressRuleRequest createEmptyInstance() => create(); @@ -2468,6 +2389,8 @@ class DeleteIngressRuleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteIngressRuleRequest? _defaultInstance; + /// Name of the Firewall resource to delete. + /// Example: `apps/myapp/firewall/ingressRules/100`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2481,58 +2404,43 @@ class DeleteIngressRuleRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `AuthorizedDomains.ListAuthorizedDomains`. class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListAuthorizedDomainsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListAuthorizedDomainsRequest._() : super(); factory ListAuthorizedDomainsRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListAuthorizedDomainsRequest._() : super(); factory ListAuthorizedDomainsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListAuthorizedDomainsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListAuthorizedDomainsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2545,8 +2453,10 @@ class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { void Function(ListAuthorizedDomainsRequest) updates) => super.copyWith( (message) => updates(message as ListAuthorizedDomainsRequest)) - as ListAuthorizedDomainsRequest; // ignore: deprecated_member_use + as ListAuthorizedDomainsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListAuthorizedDomainsRequest create() => ListAuthorizedDomainsRequest._(); @@ -2558,6 +2468,7 @@ class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListAuthorizedDomainsRequest? _defaultInstance; + /// Name of the parent Application resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2570,6 +2481,7 @@ class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -2582,6 +2494,7 @@ class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -2595,47 +2508,40 @@ class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// Response message for `AuthorizedDomains.ListAuthorizedDomains`. class ListAuthorizedDomainsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListAuthorizedDomainsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..pc<$11.AuthorizedDomain>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'domains', - $pb.PbFieldType.PM, - subBuilder: $11.AuthorizedDomain.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListAuthorizedDomainsResponse._() : super(); factory ListAuthorizedDomainsResponse({ - $core.Iterable<$11.AuthorizedDomain>? domains, + $core.Iterable<$63.AuthorizedDomain>? domains, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (domains != null) { - _result.domains.addAll(domains); + $result.domains.addAll(domains); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListAuthorizedDomainsResponse._() : super(); factory ListAuthorizedDomainsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListAuthorizedDomainsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListAuthorizedDomainsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..pc<$63.AuthorizedDomain>( + 1, _omitFieldNames ? '' : 'domains', $pb.PbFieldType.PM, + subBuilder: $63.AuthorizedDomain.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2648,8 +2554,10 @@ class ListAuthorizedDomainsResponse extends $pb.GeneratedMessage { void Function(ListAuthorizedDomainsResponse) updates) => super.copyWith( (message) => updates(message as ListAuthorizedDomainsResponse)) - as ListAuthorizedDomainsResponse; // ignore: deprecated_member_use + as ListAuthorizedDomainsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListAuthorizedDomainsResponse create() => ListAuthorizedDomainsResponse._(); @@ -2661,9 +2569,11 @@ class ListAuthorizedDomainsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListAuthorizedDomainsResponse? _defaultInstance; + /// The authorized domains belonging to the user. @$pb.TagNumber(1) - $core.List<$11.AuthorizedDomain> get domains => $_getList(0); + $core.List<$63.AuthorizedDomain> get domains => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -2677,65 +2587,52 @@ class ListAuthorizedDomainsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `AuthorizedCertificates.ListAuthorizedCertificates`. class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListAuthorizedCertificatesRequest', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..e(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'view', $pb.PbFieldType.OE, - defaultOrMaker: AuthorizedCertificateView.BASIC_CERTIFICATE, - valueOf: AuthorizedCertificateView.valueOf, - enumValues: AuthorizedCertificateView.values) - ..hasRequiredFields = false; - - ListAuthorizedCertificatesRequest._() : super(); factory ListAuthorizedCertificatesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, AuthorizedCertificateView? view, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + ListAuthorizedCertificatesRequest._() : super(); factory ListAuthorizedCertificatesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListAuthorizedCertificatesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListAuthorizedCertificatesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..e( + 4, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: AuthorizedCertificateView.BASIC_CERTIFICATE, + valueOf: AuthorizedCertificateView.valueOf, + enumValues: AuthorizedCertificateView.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2748,8 +2645,10 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { void Function(ListAuthorizedCertificatesRequest) updates) => super.copyWith((message) => updates(message as ListAuthorizedCertificatesRequest)) - as ListAuthorizedCertificatesRequest; // ignore: deprecated_member_use + as ListAuthorizedCertificatesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListAuthorizedCertificatesRequest create() => ListAuthorizedCertificatesRequest._(); @@ -2762,6 +2661,7 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { create); static ListAuthorizedCertificatesRequest? _defaultInstance; + /// Name of the parent `Application` resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2774,6 +2674,7 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -2786,6 +2687,7 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -2798,6 +2700,7 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// Controls the set of fields returned in the `LIST` response. @$pb.TagNumber(4) AuthorizedCertificateView get view => $_getN(3); @$pb.TagNumber(4) @@ -2811,47 +2714,40 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { void clearView() => clearField(4); } +/// Response message for `AuthorizedCertificates.ListAuthorizedCertificates`. class ListAuthorizedCertificatesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListAuthorizedCertificatesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..pc<$8.AuthorizedCertificate>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'certificates', - $pb.PbFieldType.PM, - subBuilder: $8.AuthorizedCertificate.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListAuthorizedCertificatesResponse._() : super(); factory ListAuthorizedCertificatesResponse({ - $core.Iterable<$8.AuthorizedCertificate>? certificates, + $core.Iterable<$16.AuthorizedCertificate>? certificates, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (certificates != null) { - _result.certificates.addAll(certificates); + $result.certificates.addAll(certificates); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListAuthorizedCertificatesResponse._() : super(); factory ListAuthorizedCertificatesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListAuthorizedCertificatesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListAuthorizedCertificatesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..pc<$16.AuthorizedCertificate>( + 1, _omitFieldNames ? '' : 'certificates', $pb.PbFieldType.PM, + subBuilder: $16.AuthorizedCertificate.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2864,8 +2760,10 @@ class ListAuthorizedCertificatesResponse extends $pb.GeneratedMessage { void Function(ListAuthorizedCertificatesResponse) updates) => super.copyWith((message) => updates(message as ListAuthorizedCertificatesResponse)) - as ListAuthorizedCertificatesResponse; // ignore: deprecated_member_use + as ListAuthorizedCertificatesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListAuthorizedCertificatesResponse create() => ListAuthorizedCertificatesResponse._(); @@ -2878,9 +2776,11 @@ class ListAuthorizedCertificatesResponse extends $pb.GeneratedMessage { create); static ListAuthorizedCertificatesResponse? _defaultInstance; + /// The SSL certificates the user is authorized to administer. @$pb.TagNumber(1) - $core.List<$8.AuthorizedCertificate> get certificates => $_getList(0); + $core.List<$16.AuthorizedCertificate> get certificates => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -2894,52 +2794,42 @@ class ListAuthorizedCertificatesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `AuthorizedCertificates.GetAuthorizedCertificate`. class GetAuthorizedCertificateRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetAuthorizedCertificateRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'view', - $pb.PbFieldType.OE, - defaultOrMaker: AuthorizedCertificateView.BASIC_CERTIFICATE, - valueOf: AuthorizedCertificateView.valueOf, - enumValues: AuthorizedCertificateView.values) - ..hasRequiredFields = false; - - GetAuthorizedCertificateRequest._() : super(); factory GetAuthorizedCertificateRequest({ $core.String? name, AuthorizedCertificateView? view, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + GetAuthorizedCertificateRequest._() : super(); factory GetAuthorizedCertificateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetAuthorizedCertificateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetAuthorizedCertificateRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e( + 2, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: AuthorizedCertificateView.BASIC_CERTIFICATE, + valueOf: AuthorizedCertificateView.valueOf, + enumValues: AuthorizedCertificateView.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2952,8 +2842,10 @@ class GetAuthorizedCertificateRequest extends $pb.GeneratedMessage { void Function(GetAuthorizedCertificateRequest) updates) => super.copyWith( (message) => updates(message as GetAuthorizedCertificateRequest)) - as GetAuthorizedCertificateRequest; // ignore: deprecated_member_use + as GetAuthorizedCertificateRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetAuthorizedCertificateRequest create() => GetAuthorizedCertificateRequest._(); @@ -2966,6 +2858,8 @@ class GetAuthorizedCertificateRequest extends $pb.GeneratedMessage { create); static GetAuthorizedCertificateRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/authorizedCertificates/12345`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2978,6 +2872,7 @@ class GetAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Controls the set of fields returned in the `GET` response. @$pb.TagNumber(2) AuthorizedCertificateView get view => $_getN(1); @$pb.TagNumber(2) @@ -2991,49 +2886,39 @@ class GetAuthorizedCertificateRequest extends $pb.GeneratedMessage { void clearView() => clearField(2); } +/// Request message for `AuthorizedCertificates.CreateAuthorizedCertificate`. class CreateAuthorizedCertificateRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateAuthorizedCertificateRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$8.AuthorizedCertificate>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'certificate', - subBuilder: $8.AuthorizedCertificate.create) - ..hasRequiredFields = false; - - CreateAuthorizedCertificateRequest._() : super(); factory CreateAuthorizedCertificateRequest({ $core.String? parent, - $8.AuthorizedCertificate? certificate, + $16.AuthorizedCertificate? certificate, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (certificate != null) { - _result.certificate = certificate; + $result.certificate = certificate; } - return _result; + return $result; } + CreateAuthorizedCertificateRequest._() : super(); factory CreateAuthorizedCertificateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateAuthorizedCertificateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateAuthorizedCertificateRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$16.AuthorizedCertificate>(2, _omitFieldNames ? '' : 'certificate', + subBuilder: $16.AuthorizedCertificate.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') @@ -3046,8 +2931,10 @@ class CreateAuthorizedCertificateRequest extends $pb.GeneratedMessage { void Function(CreateAuthorizedCertificateRequest) updates) => super.copyWith((message) => updates(message as CreateAuthorizedCertificateRequest)) - as CreateAuthorizedCertificateRequest; // ignore: deprecated_member_use + as CreateAuthorizedCertificateRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateAuthorizedCertificateRequest create() => CreateAuthorizedCertificateRequest._(); @@ -3060,6 +2947,7 @@ class CreateAuthorizedCertificateRequest extends $pb.GeneratedMessage { create); static CreateAuthorizedCertificateRequest? _defaultInstance; + /// Name of the parent `Application` resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -3072,10 +2960,11 @@ class CreateAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// SSL certificate data. @$pb.TagNumber(2) - $8.AuthorizedCertificate get certificate => $_getN(1); + $16.AuthorizedCertificate get certificate => $_getN(1); @$pb.TagNumber(2) - set certificate($8.AuthorizedCertificate v) { + set certificate($16.AuthorizedCertificate v) { setField(2, v); } @@ -3084,56 +2973,48 @@ class CreateAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearCertificate() => clearField(2); @$pb.TagNumber(2) - $8.AuthorizedCertificate ensureCertificate() => $_ensure(1); + $16.AuthorizedCertificate ensureCertificate() => $_ensure(1); } +/// Request message for `AuthorizedCertificates.UpdateAuthorizedCertificate`. class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateAuthorizedCertificateRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$8.AuthorizedCertificate>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'certificate', - subBuilder: $8.AuthorizedCertificate.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..hasRequiredFields = false; - - UpdateAuthorizedCertificateRequest._() : super(); factory UpdateAuthorizedCertificateRequest({ $core.String? name, - $8.AuthorizedCertificate? certificate, - $10.FieldMask? updateMask, + $16.AuthorizedCertificate? certificate, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (certificate != null) { - _result.certificate = certificate; + $result.certificate = certificate; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateAuthorizedCertificateRequest._() : super(); factory UpdateAuthorizedCertificateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateAuthorizedCertificateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateAuthorizedCertificateRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$16.AuthorizedCertificate>(2, _omitFieldNames ? '' : 'certificate', + subBuilder: $16.AuthorizedCertificate.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -3146,8 +3027,10 @@ class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { void Function(UpdateAuthorizedCertificateRequest) updates) => super.copyWith((message) => updates(message as UpdateAuthorizedCertificateRequest)) - as UpdateAuthorizedCertificateRequest; // ignore: deprecated_member_use + as UpdateAuthorizedCertificateRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateAuthorizedCertificateRequest create() => UpdateAuthorizedCertificateRequest._(); @@ -3160,6 +3043,8 @@ class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { create); static UpdateAuthorizedCertificateRequest? _defaultInstance; + /// Name of the resource to update. Example: + /// `apps/myapp/authorizedCertificates/12345`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3172,10 +3057,12 @@ class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// An `AuthorizedCertificate` containing the updated resource. Only fields set + /// in the field mask will be updated. @$pb.TagNumber(2) - $8.AuthorizedCertificate get certificate => $_getN(1); + $16.AuthorizedCertificate get certificate => $_getN(1); @$pb.TagNumber(2) - set certificate($8.AuthorizedCertificate v) { + set certificate($16.AuthorizedCertificate v) { setField(2, v); } @@ -3184,12 +3071,14 @@ class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearCertificate() => clearField(2); @$pb.TagNumber(2) - $8.AuthorizedCertificate ensureCertificate() => $_ensure(1); + $16.AuthorizedCertificate ensureCertificate() => $_ensure(1); + /// Standard field mask for the set of fields to be updated. Updates are only + /// supported on the `certificate_raw_data` and `display_name` fields. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -3198,42 +3087,36 @@ class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for `AuthorizedCertificates.DeleteAuthorizedCertificate`. class DeleteAuthorizedCertificateRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteAuthorizedCertificateRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteAuthorizedCertificateRequest._() : super(); factory DeleteAuthorizedCertificateRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteAuthorizedCertificateRequest._() : super(); factory DeleteAuthorizedCertificateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteAuthorizedCertificateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteAuthorizedCertificateRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3246,8 +3129,10 @@ class DeleteAuthorizedCertificateRequest extends $pb.GeneratedMessage { void Function(DeleteAuthorizedCertificateRequest) updates) => super.copyWith((message) => updates(message as DeleteAuthorizedCertificateRequest)) - as DeleteAuthorizedCertificateRequest; // ignore: deprecated_member_use + as DeleteAuthorizedCertificateRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteAuthorizedCertificateRequest create() => DeleteAuthorizedCertificateRequest._(); @@ -3260,6 +3145,8 @@ class DeleteAuthorizedCertificateRequest extends $pb.GeneratedMessage { create); static DeleteAuthorizedCertificateRequest? _defaultInstance; + /// Name of the resource to delete. Example: + /// `apps/myapp/authorizedCertificates/12345`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3273,58 +3160,43 @@ class DeleteAuthorizedCertificateRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `DomainMappings.ListDomainMappings`. class ListDomainMappingsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListDomainMappingsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListDomainMappingsRequest._() : super(); factory ListDomainMappingsRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListDomainMappingsRequest._() : super(); factory ListDomainMappingsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListDomainMappingsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListDomainMappingsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3336,8 +3208,10 @@ class ListDomainMappingsRequest extends $pb.GeneratedMessage { ListDomainMappingsRequest copyWith( void Function(ListDomainMappingsRequest) updates) => super.copyWith((message) => updates(message as ListDomainMappingsRequest)) - as ListDomainMappingsRequest; // ignore: deprecated_member_use + as ListDomainMappingsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListDomainMappingsRequest create() => ListDomainMappingsRequest._(); ListDomainMappingsRequest createEmptyInstance() => create(); @@ -3348,6 +3222,7 @@ class ListDomainMappingsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListDomainMappingsRequest? _defaultInstance; + /// Name of the parent Application resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -3360,6 +3235,7 @@ class ListDomainMappingsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -3372,6 +3248,7 @@ class ListDomainMappingsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -3385,47 +3262,40 @@ class ListDomainMappingsRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// Response message for `DomainMappings.ListDomainMappings`. class ListDomainMappingsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListDomainMappingsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..pc<$9.DomainMapping>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'domainMappings', - $pb.PbFieldType.PM, - subBuilder: $9.DomainMapping.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListDomainMappingsResponse._() : super(); factory ListDomainMappingsResponse({ - $core.Iterable<$9.DomainMapping>? domainMappings, + $core.Iterable<$17.DomainMapping>? domainMappings, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (domainMappings != null) { - _result.domainMappings.addAll(domainMappings); + $result.domainMappings.addAll(domainMappings); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListDomainMappingsResponse._() : super(); factory ListDomainMappingsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListDomainMappingsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListDomainMappingsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..pc<$17.DomainMapping>( + 1, _omitFieldNames ? '' : 'domainMappings', $pb.PbFieldType.PM, + subBuilder: $17.DomainMapping.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3438,8 +3308,10 @@ class ListDomainMappingsResponse extends $pb.GeneratedMessage { void Function(ListDomainMappingsResponse) updates) => super.copyWith( (message) => updates(message as ListDomainMappingsResponse)) - as ListDomainMappingsResponse; // ignore: deprecated_member_use + as ListDomainMappingsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListDomainMappingsResponse create() => ListDomainMappingsResponse._(); ListDomainMappingsResponse createEmptyInstance() => create(); @@ -3450,9 +3322,11 @@ class ListDomainMappingsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListDomainMappingsResponse? _defaultInstance; + /// The domain mappings for the application. @$pb.TagNumber(1) - $core.List<$9.DomainMapping> get domainMappings => $_getList(0); + $core.List<$17.DomainMapping> get domainMappings => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -3466,39 +3340,33 @@ class ListDomainMappingsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `DomainMappings.GetDomainMapping`. class GetDomainMappingRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetDomainMappingRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetDomainMappingRequest._() : super(); factory GetDomainMappingRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetDomainMappingRequest._() : super(); factory GetDomainMappingRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetDomainMappingRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetDomainMappingRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3510,8 +3378,10 @@ class GetDomainMappingRequest extends $pb.GeneratedMessage { GetDomainMappingRequest copyWith( void Function(GetDomainMappingRequest) updates) => super.copyWith((message) => updates(message as GetDomainMappingRequest)) - as GetDomainMappingRequest; // ignore: deprecated_member_use + as GetDomainMappingRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetDomainMappingRequest create() => GetDomainMappingRequest._(); GetDomainMappingRequest createEmptyInstance() => create(); @@ -3522,6 +3392,8 @@ class GetDomainMappingRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetDomainMappingRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/domainMappings/example.com`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3535,57 +3407,49 @@ class GetDomainMappingRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `DomainMappings.CreateDomainMapping`. class CreateDomainMappingRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateDomainMappingRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$9.DomainMapping>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'domainMapping', - subBuilder: $9.DomainMapping.create) - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'overrideStrategy', - $pb.PbFieldType.OE, - defaultOrMaker: DomainOverrideStrategy.UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY, - valueOf: DomainOverrideStrategy.valueOf, - enumValues: DomainOverrideStrategy.values) - ..hasRequiredFields = false; - - CreateDomainMappingRequest._() : super(); factory CreateDomainMappingRequest({ $core.String? parent, - $9.DomainMapping? domainMapping, + $17.DomainMapping? domainMapping, DomainOverrideStrategy? overrideStrategy, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (domainMapping != null) { - _result.domainMapping = domainMapping; + $result.domainMapping = domainMapping; } if (overrideStrategy != null) { - _result.overrideStrategy = overrideStrategy; + $result.overrideStrategy = overrideStrategy; } - return _result; + return $result; } + CreateDomainMappingRequest._() : super(); factory CreateDomainMappingRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateDomainMappingRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateDomainMappingRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$17.DomainMapping>(2, _omitFieldNames ? '' : 'domainMapping', + subBuilder: $17.DomainMapping.create) + ..e( + 4, _omitFieldNames ? '' : 'overrideStrategy', $pb.PbFieldType.OE, + defaultOrMaker: + DomainOverrideStrategy.UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY, + valueOf: DomainOverrideStrategy.valueOf, + enumValues: DomainOverrideStrategy.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3598,8 +3462,10 @@ class CreateDomainMappingRequest extends $pb.GeneratedMessage { void Function(CreateDomainMappingRequest) updates) => super.copyWith( (message) => updates(message as CreateDomainMappingRequest)) - as CreateDomainMappingRequest; // ignore: deprecated_member_use + as CreateDomainMappingRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateDomainMappingRequest create() => CreateDomainMappingRequest._(); CreateDomainMappingRequest createEmptyInstance() => create(); @@ -3610,6 +3476,7 @@ class CreateDomainMappingRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateDomainMappingRequest? _defaultInstance; + /// Name of the parent Application resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -3622,10 +3489,11 @@ class CreateDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Domain mapping configuration. @$pb.TagNumber(2) - $9.DomainMapping get domainMapping => $_getN(1); + $17.DomainMapping get domainMapping => $_getN(1); @$pb.TagNumber(2) - set domainMapping($9.DomainMapping v) { + set domainMapping($17.DomainMapping v) { setField(2, v); } @@ -3634,8 +3502,10 @@ class CreateDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDomainMapping() => clearField(2); @$pb.TagNumber(2) - $9.DomainMapping ensureDomainMapping() => $_ensure(1); + $17.DomainMapping ensureDomainMapping() => $_ensure(1); + /// Whether the domain creation should override any existing mappings for this + /// domain. By default, overrides are rejected. @$pb.TagNumber(4) DomainOverrideStrategy get overrideStrategy => $_getN(2); @$pb.TagNumber(4) @@ -3649,53 +3519,45 @@ class CreateDomainMappingRequest extends $pb.GeneratedMessage { void clearOverrideStrategy() => clearField(4); } +/// Request message for `DomainMappings.UpdateDomainMapping`. class UpdateDomainMappingRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateDomainMappingRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$9.DomainMapping>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'domainMapping', - subBuilder: $9.DomainMapping.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..hasRequiredFields = false; - - UpdateDomainMappingRequest._() : super(); factory UpdateDomainMappingRequest({ $core.String? name, - $9.DomainMapping? domainMapping, - $10.FieldMask? updateMask, + $17.DomainMapping? domainMapping, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (domainMapping != null) { - _result.domainMapping = domainMapping; + $result.domainMapping = domainMapping; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateDomainMappingRequest._() : super(); factory UpdateDomainMappingRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateDomainMappingRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateDomainMappingRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$17.DomainMapping>(2, _omitFieldNames ? '' : 'domainMapping', + subBuilder: $17.DomainMapping.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -3708,8 +3570,10 @@ class UpdateDomainMappingRequest extends $pb.GeneratedMessage { void Function(UpdateDomainMappingRequest) updates) => super.copyWith( (message) => updates(message as UpdateDomainMappingRequest)) - as UpdateDomainMappingRequest; // ignore: deprecated_member_use + as UpdateDomainMappingRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateDomainMappingRequest create() => UpdateDomainMappingRequest._(); UpdateDomainMappingRequest createEmptyInstance() => create(); @@ -3720,6 +3584,8 @@ class UpdateDomainMappingRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateDomainMappingRequest? _defaultInstance; + /// Name of the resource to update. Example: + /// `apps/myapp/domainMappings/example.com`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3732,10 +3598,12 @@ class UpdateDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A domain mapping containing the updated resource. Only fields set + /// in the field mask will be updated. @$pb.TagNumber(2) - $9.DomainMapping get domainMapping => $_getN(1); + $17.DomainMapping get domainMapping => $_getN(1); @$pb.TagNumber(2) - set domainMapping($9.DomainMapping v) { + set domainMapping($17.DomainMapping v) { setField(2, v); } @@ -3744,12 +3612,13 @@ class UpdateDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDomainMapping() => clearField(2); @$pb.TagNumber(2) - $9.DomainMapping ensureDomainMapping() => $_ensure(1); + $17.DomainMapping ensureDomainMapping() => $_ensure(1); + /// Required. Standard field mask for the set of fields to be updated. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -3758,42 +3627,36 @@ class UpdateDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for `DomainMappings.DeleteDomainMapping`. class DeleteDomainMappingRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteDomainMappingRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteDomainMappingRequest._() : super(); factory DeleteDomainMappingRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteDomainMappingRequest._() : super(); factory DeleteDomainMappingRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteDomainMappingRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteDomainMappingRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3806,8 +3669,10 @@ class DeleteDomainMappingRequest extends $pb.GeneratedMessage { void Function(DeleteDomainMappingRequest) updates) => super.copyWith( (message) => updates(message as DeleteDomainMappingRequest)) - as DeleteDomainMappingRequest; // ignore: deprecated_member_use + as DeleteDomainMappingRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteDomainMappingRequest create() => DeleteDomainMappingRequest._(); DeleteDomainMappingRequest createEmptyInstance() => create(); @@ -3818,6 +3683,8 @@ class DeleteDomainMappingRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteDomainMappingRequest? _defaultInstance; + /// Name of the resource to delete. Example: + /// `apps/myapp/domainMappings/example.com`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3830,3 +3697,7 @@ class DeleteDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbenum.dart index ec7e7180..6c9f6f64 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbenum.dart @@ -1,19 +1,25 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/appengine.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Fields that should be returned when [Version][google.appengine.v1.Version] resources +/// are retrieved. class VersionView extends $pb.ProtobufEnum { - static const VersionView BASIC = VersionView._( - 0, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BASIC'); - static const VersionView FULL = VersionView._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FULL'); + static const VersionView BASIC = + VersionView._(0, _omitEnumNames ? '' : 'BASIC'); + static const VersionView FULL = + VersionView._(1, _omitEnumNames ? '' : 'FULL'); static const $core.List values = [ BASIC, @@ -27,19 +33,13 @@ class VersionView extends $pb.ProtobufEnum { const VersionView._($core.int v, $core.String n) : super(v, n); } +/// Fields that should be returned when an AuthorizedCertificate resource is +/// retrieved. class AuthorizedCertificateView extends $pb.ProtobufEnum { static const AuthorizedCertificateView BASIC_CERTIFICATE = - AuthorizedCertificateView._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'BASIC_CERTIFICATE'); + AuthorizedCertificateView._(0, _omitEnumNames ? '' : 'BASIC_CERTIFICATE'); static const AuthorizedCertificateView FULL_CERTIFICATE = - AuthorizedCertificateView._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FULL_CERTIFICATE'); + AuthorizedCertificateView._(1, _omitEnumNames ? '' : 'FULL_CERTIFICATE'); static const $core.List values = [ @@ -54,17 +54,15 @@ class AuthorizedCertificateView extends $pb.ProtobufEnum { const AuthorizedCertificateView._($core.int v, $core.String n) : super(v, n); } +/// Override strategy for mutating an existing mapping. class DomainOverrideStrategy extends $pb.ProtobufEnum { static const DomainOverrideStrategy UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY = DomainOverrideStrategy._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY'); - static const DomainOverrideStrategy STRICT = DomainOverrideStrategy._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'STRICT'); - static const DomainOverrideStrategy OVERRIDE = DomainOverrideStrategy._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'OVERRIDE'); + 0, _omitEnumNames ? '' : 'UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY'); + static const DomainOverrideStrategy STRICT = + DomainOverrideStrategy._(1, _omitEnumNames ? '' : 'STRICT'); + static const DomainOverrideStrategy OVERRIDE = + DomainOverrideStrategy._(2, _omitEnumNames ? '' : 'OVERRIDE'); static const $core.List values = [ @@ -79,3 +77,5 @@ class DomainOverrideStrategy extends $pb.ProtobufEnum { const DomainOverrideStrategy._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbgrpc.dart index b93bd24f..dc8d581c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbgrpc.dart @@ -1,47 +1,54 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/appengine.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'appengine.pb.dart' as $2; -import 'application.pb.dart' as $3; +import 'package:protobuf/protobuf.dart' as $pb; + import '../../longrunning/operations.pb.dart' as $0; -import 'service.pb.dart' as $4; -import 'version.pb.dart' as $5; -import 'instance.pb.dart' as $6; -import 'firewall.pb.dart' as $7; import '../../protobuf/empty.pb.dart' as $1; -import 'certificate.pb.dart' as $8; -import 'domain_mapping.pb.dart' as $9; +import 'appengine.pb.dart' as $10; +import 'application.pb.dart' as $11; +import 'certificate.pb.dart' as $16; +import 'domain_mapping.pb.dart' as $17; +import 'firewall.pb.dart' as $15; +import 'instance.pb.dart' as $14; +import 'service.pb.dart' as $12; +import 'version.pb.dart' as $13; + export 'appengine.pb.dart'; +@$pb.GrpcServiceName('google.appengine.v1.Applications') class ApplicationsClient extends $grpc.Client { static final _$getApplication = - $grpc.ClientMethod<$2.GetApplicationRequest, $3.Application>( + $grpc.ClientMethod<$10.GetApplicationRequest, $11.Application>( '/google.appengine.v1.Applications/GetApplication', - ($2.GetApplicationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.Application.fromBuffer(value)); + ($10.GetApplicationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $11.Application.fromBuffer(value)); static final _$createApplication = - $grpc.ClientMethod<$2.CreateApplicationRequest, $0.Operation>( + $grpc.ClientMethod<$10.CreateApplicationRequest, $0.Operation>( '/google.appengine.v1.Applications/CreateApplication', - ($2.CreateApplicationRequest value) => value.writeToBuffer(), + ($10.CreateApplicationRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$updateApplication = - $grpc.ClientMethod<$2.UpdateApplicationRequest, $0.Operation>( + $grpc.ClientMethod<$10.UpdateApplicationRequest, $0.Operation>( '/google.appengine.v1.Applications/UpdateApplication', - ($2.UpdateApplicationRequest value) => value.writeToBuffer(), + ($10.UpdateApplicationRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$repairApplication = - $grpc.ClientMethod<$2.RepairApplicationRequest, $0.Operation>( + $grpc.ClientMethod<$10.RepairApplicationRequest, $0.Operation>( '/google.appengine.v1.Applications/RepairApplication', - ($2.RepairApplicationRequest value) => value.writeToBuffer(), + ($10.RepairApplicationRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); ApplicationsClient($grpc.ClientChannel channel, @@ -49,120 +56,122 @@ class ApplicationsClient extends $grpc.Client { $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$3.Application> getApplication( - $2.GetApplicationRequest request, + $grpc.ResponseFuture<$11.Application> getApplication( + $10.GetApplicationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getApplication, request, options: options); } $grpc.ResponseFuture<$0.Operation> createApplication( - $2.CreateApplicationRequest request, + $10.CreateApplicationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createApplication, request, options: options); } $grpc.ResponseFuture<$0.Operation> updateApplication( - $2.UpdateApplicationRequest request, + $10.UpdateApplicationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateApplication, request, options: options); } $grpc.ResponseFuture<$0.Operation> repairApplication( - $2.RepairApplicationRequest request, + $10.RepairApplicationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$repairApplication, request, options: options); } } +@$pb.GrpcServiceName('google.appengine.v1.Applications') abstract class ApplicationsServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1.Applications'; ApplicationsServiceBase() { - $addMethod($grpc.ServiceMethod<$2.GetApplicationRequest, $3.Application>( + $addMethod($grpc.ServiceMethod<$10.GetApplicationRequest, $11.Application>( 'GetApplication', getApplication_Pre, false, false, ($core.List<$core.int> value) => - $2.GetApplicationRequest.fromBuffer(value), - ($3.Application value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateApplicationRequest, $0.Operation>( + $10.GetApplicationRequest.fromBuffer(value), + ($11.Application value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.CreateApplicationRequest, $0.Operation>( 'CreateApplication', createApplication_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateApplicationRequest.fromBuffer(value), + $10.CreateApplicationRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UpdateApplicationRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$10.UpdateApplicationRequest, $0.Operation>( 'UpdateApplication', updateApplication_Pre, false, false, ($core.List<$core.int> value) => - $2.UpdateApplicationRequest.fromBuffer(value), + $10.UpdateApplicationRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.RepairApplicationRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$10.RepairApplicationRequest, $0.Operation>( 'RepairApplication', repairApplication_Pre, false, false, ($core.List<$core.int> value) => - $2.RepairApplicationRequest.fromBuffer(value), + $10.RepairApplicationRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); } - $async.Future<$3.Application> getApplication_Pre($grpc.ServiceCall call, - $async.Future<$2.GetApplicationRequest> request) async { + $async.Future<$11.Application> getApplication_Pre($grpc.ServiceCall call, + $async.Future<$10.GetApplicationRequest> request) async { return getApplication(call, await request); } $async.Future<$0.Operation> createApplication_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateApplicationRequest> request) async { + $async.Future<$10.CreateApplicationRequest> request) async { return createApplication(call, await request); } $async.Future<$0.Operation> updateApplication_Pre($grpc.ServiceCall call, - $async.Future<$2.UpdateApplicationRequest> request) async { + $async.Future<$10.UpdateApplicationRequest> request) async { return updateApplication(call, await request); } $async.Future<$0.Operation> repairApplication_Pre($grpc.ServiceCall call, - $async.Future<$2.RepairApplicationRequest> request) async { + $async.Future<$10.RepairApplicationRequest> request) async { return repairApplication(call, await request); } - $async.Future<$3.Application> getApplication( - $grpc.ServiceCall call, $2.GetApplicationRequest request); + $async.Future<$11.Application> getApplication( + $grpc.ServiceCall call, $10.GetApplicationRequest request); $async.Future<$0.Operation> createApplication( - $grpc.ServiceCall call, $2.CreateApplicationRequest request); + $grpc.ServiceCall call, $10.CreateApplicationRequest request); $async.Future<$0.Operation> updateApplication( - $grpc.ServiceCall call, $2.UpdateApplicationRequest request); + $grpc.ServiceCall call, $10.UpdateApplicationRequest request); $async.Future<$0.Operation> repairApplication( - $grpc.ServiceCall call, $2.RepairApplicationRequest request); + $grpc.ServiceCall call, $10.RepairApplicationRequest request); } +@$pb.GrpcServiceName('google.appengine.v1.Services') class ServicesClient extends $grpc.Client { static final _$listServices = - $grpc.ClientMethod<$2.ListServicesRequest, $2.ListServicesResponse>( + $grpc.ClientMethod<$10.ListServicesRequest, $10.ListServicesResponse>( '/google.appengine.v1.Services/ListServices', - ($2.ListServicesRequest value) => value.writeToBuffer(), + ($10.ListServicesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListServicesResponse.fromBuffer(value)); + $10.ListServicesResponse.fromBuffer(value)); static final _$getService = - $grpc.ClientMethod<$2.GetServiceRequest, $4.Service>( + $grpc.ClientMethod<$10.GetServiceRequest, $12.Service>( '/google.appengine.v1.Services/GetService', - ($2.GetServiceRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $4.Service.fromBuffer(value)); + ($10.GetServiceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $12.Service.fromBuffer(value)); static final _$updateService = - $grpc.ClientMethod<$2.UpdateServiceRequest, $0.Operation>( + $grpc.ClientMethod<$10.UpdateServiceRequest, $0.Operation>( '/google.appengine.v1.Services/UpdateService', - ($2.UpdateServiceRequest value) => value.writeToBuffer(), + ($10.UpdateServiceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$deleteService = - $grpc.ClientMethod<$2.DeleteServiceRequest, $0.Operation>( + $grpc.ClientMethod<$10.DeleteServiceRequest, $0.Operation>( '/google.appengine.v1.Services/DeleteService', - ($2.DeleteServiceRequest value) => value.writeToBuffer(), + ($10.DeleteServiceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); ServicesClient($grpc.ClientChannel channel, @@ -170,125 +179,128 @@ class ServicesClient extends $grpc.Client { $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.ListServicesResponse> listServices( - $2.ListServicesRequest request, + $grpc.ResponseFuture<$10.ListServicesResponse> listServices( + $10.ListServicesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listServices, request, options: options); } - $grpc.ResponseFuture<$4.Service> getService($2.GetServiceRequest request, + $grpc.ResponseFuture<$12.Service> getService($10.GetServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getService, request, options: options); } $grpc.ResponseFuture<$0.Operation> updateService( - $2.UpdateServiceRequest request, + $10.UpdateServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateService, request, options: options); } $grpc.ResponseFuture<$0.Operation> deleteService( - $2.DeleteServiceRequest request, + $10.DeleteServiceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteService, request, options: options); } } +@$pb.GrpcServiceName('google.appengine.v1.Services') abstract class ServicesServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1.Services'; ServicesServiceBase() { $addMethod( - $grpc.ServiceMethod<$2.ListServicesRequest, $2.ListServicesResponse>( + $grpc.ServiceMethod<$10.ListServicesRequest, $10.ListServicesResponse>( 'ListServices', listServices_Pre, false, false, ($core.List<$core.int> value) => - $2.ListServicesRequest.fromBuffer(value), - ($2.ListServicesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetServiceRequest, $4.Service>( + $10.ListServicesRequest.fromBuffer(value), + ($10.ListServicesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.GetServiceRequest, $12.Service>( 'GetService', getService_Pre, false, false, - ($core.List<$core.int> value) => $2.GetServiceRequest.fromBuffer(value), - ($4.Service value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UpdateServiceRequest, $0.Operation>( + ($core.List<$core.int> value) => + $10.GetServiceRequest.fromBuffer(value), + ($12.Service value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.UpdateServiceRequest, $0.Operation>( 'UpdateService', updateService_Pre, false, false, ($core.List<$core.int> value) => - $2.UpdateServiceRequest.fromBuffer(value), + $10.UpdateServiceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteServiceRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$10.DeleteServiceRequest, $0.Operation>( 'DeleteService', deleteService_Pre, false, false, ($core.List<$core.int> value) => - $2.DeleteServiceRequest.fromBuffer(value), + $10.DeleteServiceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); } - $async.Future<$2.ListServicesResponse> listServices_Pre( + $async.Future<$10.ListServicesResponse> listServices_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListServicesRequest> request) async { + $async.Future<$10.ListServicesRequest> request) async { return listServices(call, await request); } - $async.Future<$4.Service> getService_Pre($grpc.ServiceCall call, - $async.Future<$2.GetServiceRequest> request) async { + $async.Future<$12.Service> getService_Pre($grpc.ServiceCall call, + $async.Future<$10.GetServiceRequest> request) async { return getService(call, await request); } $async.Future<$0.Operation> updateService_Pre($grpc.ServiceCall call, - $async.Future<$2.UpdateServiceRequest> request) async { + $async.Future<$10.UpdateServiceRequest> request) async { return updateService(call, await request); } $async.Future<$0.Operation> deleteService_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteServiceRequest> request) async { + $async.Future<$10.DeleteServiceRequest> request) async { return deleteService(call, await request); } - $async.Future<$2.ListServicesResponse> listServices( - $grpc.ServiceCall call, $2.ListServicesRequest request); - $async.Future<$4.Service> getService( - $grpc.ServiceCall call, $2.GetServiceRequest request); + $async.Future<$10.ListServicesResponse> listServices( + $grpc.ServiceCall call, $10.ListServicesRequest request); + $async.Future<$12.Service> getService( + $grpc.ServiceCall call, $10.GetServiceRequest request); $async.Future<$0.Operation> updateService( - $grpc.ServiceCall call, $2.UpdateServiceRequest request); + $grpc.ServiceCall call, $10.UpdateServiceRequest request); $async.Future<$0.Operation> deleteService( - $grpc.ServiceCall call, $2.DeleteServiceRequest request); + $grpc.ServiceCall call, $10.DeleteServiceRequest request); } +@$pb.GrpcServiceName('google.appengine.v1.Versions') class VersionsClient extends $grpc.Client { static final _$listVersions = - $grpc.ClientMethod<$2.ListVersionsRequest, $2.ListVersionsResponse>( + $grpc.ClientMethod<$10.ListVersionsRequest, $10.ListVersionsResponse>( '/google.appengine.v1.Versions/ListVersions', - ($2.ListVersionsRequest value) => value.writeToBuffer(), + ($10.ListVersionsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListVersionsResponse.fromBuffer(value)); + $10.ListVersionsResponse.fromBuffer(value)); static final _$getVersion = - $grpc.ClientMethod<$2.GetVersionRequest, $5.Version>( + $grpc.ClientMethod<$10.GetVersionRequest, $13.Version>( '/google.appengine.v1.Versions/GetVersion', - ($2.GetVersionRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $5.Version.fromBuffer(value)); + ($10.GetVersionRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.Version.fromBuffer(value)); static final _$createVersion = - $grpc.ClientMethod<$2.CreateVersionRequest, $0.Operation>( + $grpc.ClientMethod<$10.CreateVersionRequest, $0.Operation>( '/google.appengine.v1.Versions/CreateVersion', - ($2.CreateVersionRequest value) => value.writeToBuffer(), + ($10.CreateVersionRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$updateVersion = - $grpc.ClientMethod<$2.UpdateVersionRequest, $0.Operation>( + $grpc.ClientMethod<$10.UpdateVersionRequest, $0.Operation>( '/google.appengine.v1.Versions/UpdateVersion', - ($2.UpdateVersionRequest value) => value.writeToBuffer(), + ($10.UpdateVersionRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$deleteVersion = - $grpc.ClientMethod<$2.DeleteVersionRequest, $0.Operation>( + $grpc.ClientMethod<$10.DeleteVersionRequest, $0.Operation>( '/google.appengine.v1.Versions/DeleteVersion', - ($2.DeleteVersionRequest value) => value.writeToBuffer(), + ($10.DeleteVersionRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); VersionsClient($grpc.ClientChannel channel, @@ -296,141 +308,144 @@ class VersionsClient extends $grpc.Client { $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.ListVersionsResponse> listVersions( - $2.ListVersionsRequest request, + $grpc.ResponseFuture<$10.ListVersionsResponse> listVersions( + $10.ListVersionsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listVersions, request, options: options); } - $grpc.ResponseFuture<$5.Version> getVersion($2.GetVersionRequest request, + $grpc.ResponseFuture<$13.Version> getVersion($10.GetVersionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getVersion, request, options: options); } $grpc.ResponseFuture<$0.Operation> createVersion( - $2.CreateVersionRequest request, + $10.CreateVersionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createVersion, request, options: options); } $grpc.ResponseFuture<$0.Operation> updateVersion( - $2.UpdateVersionRequest request, + $10.UpdateVersionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateVersion, request, options: options); } $grpc.ResponseFuture<$0.Operation> deleteVersion( - $2.DeleteVersionRequest request, + $10.DeleteVersionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteVersion, request, options: options); } } +@$pb.GrpcServiceName('google.appengine.v1.Versions') abstract class VersionsServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1.Versions'; VersionsServiceBase() { $addMethod( - $grpc.ServiceMethod<$2.ListVersionsRequest, $2.ListVersionsResponse>( + $grpc.ServiceMethod<$10.ListVersionsRequest, $10.ListVersionsResponse>( 'ListVersions', listVersions_Pre, false, false, ($core.List<$core.int> value) => - $2.ListVersionsRequest.fromBuffer(value), - ($2.ListVersionsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetVersionRequest, $5.Version>( + $10.ListVersionsRequest.fromBuffer(value), + ($10.ListVersionsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.GetVersionRequest, $13.Version>( 'GetVersion', getVersion_Pre, false, false, - ($core.List<$core.int> value) => $2.GetVersionRequest.fromBuffer(value), - ($5.Version value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateVersionRequest, $0.Operation>( + ($core.List<$core.int> value) => + $10.GetVersionRequest.fromBuffer(value), + ($13.Version value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.CreateVersionRequest, $0.Operation>( 'CreateVersion', createVersion_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateVersionRequest.fromBuffer(value), + $10.CreateVersionRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UpdateVersionRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$10.UpdateVersionRequest, $0.Operation>( 'UpdateVersion', updateVersion_Pre, false, false, ($core.List<$core.int> value) => - $2.UpdateVersionRequest.fromBuffer(value), + $10.UpdateVersionRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteVersionRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$10.DeleteVersionRequest, $0.Operation>( 'DeleteVersion', deleteVersion_Pre, false, false, ($core.List<$core.int> value) => - $2.DeleteVersionRequest.fromBuffer(value), + $10.DeleteVersionRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); } - $async.Future<$2.ListVersionsResponse> listVersions_Pre( + $async.Future<$10.ListVersionsResponse> listVersions_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListVersionsRequest> request) async { + $async.Future<$10.ListVersionsRequest> request) async { return listVersions(call, await request); } - $async.Future<$5.Version> getVersion_Pre($grpc.ServiceCall call, - $async.Future<$2.GetVersionRequest> request) async { + $async.Future<$13.Version> getVersion_Pre($grpc.ServiceCall call, + $async.Future<$10.GetVersionRequest> request) async { return getVersion(call, await request); } $async.Future<$0.Operation> createVersion_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateVersionRequest> request) async { + $async.Future<$10.CreateVersionRequest> request) async { return createVersion(call, await request); } $async.Future<$0.Operation> updateVersion_Pre($grpc.ServiceCall call, - $async.Future<$2.UpdateVersionRequest> request) async { + $async.Future<$10.UpdateVersionRequest> request) async { return updateVersion(call, await request); } $async.Future<$0.Operation> deleteVersion_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteVersionRequest> request) async { + $async.Future<$10.DeleteVersionRequest> request) async { return deleteVersion(call, await request); } - $async.Future<$2.ListVersionsResponse> listVersions( - $grpc.ServiceCall call, $2.ListVersionsRequest request); - $async.Future<$5.Version> getVersion( - $grpc.ServiceCall call, $2.GetVersionRequest request); + $async.Future<$10.ListVersionsResponse> listVersions( + $grpc.ServiceCall call, $10.ListVersionsRequest request); + $async.Future<$13.Version> getVersion( + $grpc.ServiceCall call, $10.GetVersionRequest request); $async.Future<$0.Operation> createVersion( - $grpc.ServiceCall call, $2.CreateVersionRequest request); + $grpc.ServiceCall call, $10.CreateVersionRequest request); $async.Future<$0.Operation> updateVersion( - $grpc.ServiceCall call, $2.UpdateVersionRequest request); + $grpc.ServiceCall call, $10.UpdateVersionRequest request); $async.Future<$0.Operation> deleteVersion( - $grpc.ServiceCall call, $2.DeleteVersionRequest request); + $grpc.ServiceCall call, $10.DeleteVersionRequest request); } +@$pb.GrpcServiceName('google.appengine.v1.Instances') class InstancesClient extends $grpc.Client { static final _$listInstances = - $grpc.ClientMethod<$2.ListInstancesRequest, $2.ListInstancesResponse>( + $grpc.ClientMethod<$10.ListInstancesRequest, $10.ListInstancesResponse>( '/google.appengine.v1.Instances/ListInstances', - ($2.ListInstancesRequest value) => value.writeToBuffer(), + ($10.ListInstancesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListInstancesResponse.fromBuffer(value)); + $10.ListInstancesResponse.fromBuffer(value)); static final _$getInstance = - $grpc.ClientMethod<$2.GetInstanceRequest, $6.Instance>( + $grpc.ClientMethod<$10.GetInstanceRequest, $14.Instance>( '/google.appengine.v1.Instances/GetInstance', - ($2.GetInstanceRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.Instance.fromBuffer(value)); + ($10.GetInstanceRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.Instance.fromBuffer(value)); static final _$deleteInstance = - $grpc.ClientMethod<$2.DeleteInstanceRequest, $0.Operation>( + $grpc.ClientMethod<$10.DeleteInstanceRequest, $0.Operation>( '/google.appengine.v1.Instances/DeleteInstance', - ($2.DeleteInstanceRequest value) => value.writeToBuffer(), + ($10.DeleteInstanceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$debugInstance = - $grpc.ClientMethod<$2.DebugInstanceRequest, $0.Operation>( + $grpc.ClientMethod<$10.DebugInstanceRequest, $0.Operation>( '/google.appengine.v1.Instances/DebugInstance', - ($2.DebugInstanceRequest value) => value.writeToBuffer(), + ($10.DebugInstanceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); InstancesClient($grpc.ClientChannel channel, @@ -438,133 +453,135 @@ class InstancesClient extends $grpc.Client { $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.ListInstancesResponse> listInstances( - $2.ListInstancesRequest request, + $grpc.ResponseFuture<$10.ListInstancesResponse> listInstances( + $10.ListInstancesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listInstances, request, options: options); } - $grpc.ResponseFuture<$6.Instance> getInstance($2.GetInstanceRequest request, + $grpc.ResponseFuture<$14.Instance> getInstance($10.GetInstanceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getInstance, request, options: options); } $grpc.ResponseFuture<$0.Operation> deleteInstance( - $2.DeleteInstanceRequest request, + $10.DeleteInstanceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteInstance, request, options: options); } $grpc.ResponseFuture<$0.Operation> debugInstance( - $2.DebugInstanceRequest request, + $10.DebugInstanceRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$debugInstance, request, options: options); } } +@$pb.GrpcServiceName('google.appengine.v1.Instances') abstract class InstancesServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1.Instances'; InstancesServiceBase() { - $addMethod( - $grpc.ServiceMethod<$2.ListInstancesRequest, $2.ListInstancesResponse>( - 'ListInstances', - listInstances_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.ListInstancesRequest.fromBuffer(value), - ($2.ListInstancesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetInstanceRequest, $6.Instance>( + $addMethod($grpc.ServiceMethod<$10.ListInstancesRequest, + $10.ListInstancesResponse>( + 'ListInstances', + listInstances_Pre, + false, + false, + ($core.List<$core.int> value) => + $10.ListInstancesRequest.fromBuffer(value), + ($10.ListInstancesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.GetInstanceRequest, $14.Instance>( 'GetInstance', getInstance_Pre, false, false, ($core.List<$core.int> value) => - $2.GetInstanceRequest.fromBuffer(value), - ($6.Instance value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteInstanceRequest, $0.Operation>( + $10.GetInstanceRequest.fromBuffer(value), + ($14.Instance value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.DeleteInstanceRequest, $0.Operation>( 'DeleteInstance', deleteInstance_Pre, false, false, ($core.List<$core.int> value) => - $2.DeleteInstanceRequest.fromBuffer(value), + $10.DeleteInstanceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DebugInstanceRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$10.DebugInstanceRequest, $0.Operation>( 'DebugInstance', debugInstance_Pre, false, false, ($core.List<$core.int> value) => - $2.DebugInstanceRequest.fromBuffer(value), + $10.DebugInstanceRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); } - $async.Future<$2.ListInstancesResponse> listInstances_Pre( + $async.Future<$10.ListInstancesResponse> listInstances_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListInstancesRequest> request) async { + $async.Future<$10.ListInstancesRequest> request) async { return listInstances(call, await request); } - $async.Future<$6.Instance> getInstance_Pre($grpc.ServiceCall call, - $async.Future<$2.GetInstanceRequest> request) async { + $async.Future<$14.Instance> getInstance_Pre($grpc.ServiceCall call, + $async.Future<$10.GetInstanceRequest> request) async { return getInstance(call, await request); } $async.Future<$0.Operation> deleteInstance_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteInstanceRequest> request) async { + $async.Future<$10.DeleteInstanceRequest> request) async { return deleteInstance(call, await request); } $async.Future<$0.Operation> debugInstance_Pre($grpc.ServiceCall call, - $async.Future<$2.DebugInstanceRequest> request) async { + $async.Future<$10.DebugInstanceRequest> request) async { return debugInstance(call, await request); } - $async.Future<$2.ListInstancesResponse> listInstances( - $grpc.ServiceCall call, $2.ListInstancesRequest request); - $async.Future<$6.Instance> getInstance( - $grpc.ServiceCall call, $2.GetInstanceRequest request); + $async.Future<$10.ListInstancesResponse> listInstances( + $grpc.ServiceCall call, $10.ListInstancesRequest request); + $async.Future<$14.Instance> getInstance( + $grpc.ServiceCall call, $10.GetInstanceRequest request); $async.Future<$0.Operation> deleteInstance( - $grpc.ServiceCall call, $2.DeleteInstanceRequest request); + $grpc.ServiceCall call, $10.DeleteInstanceRequest request); $async.Future<$0.Operation> debugInstance( - $grpc.ServiceCall call, $2.DebugInstanceRequest request); + $grpc.ServiceCall call, $10.DebugInstanceRequest request); } +@$pb.GrpcServiceName('google.appengine.v1.Firewall') class FirewallClient extends $grpc.Client { static final _$listIngressRules = $grpc.ClientMethod< - $2.ListIngressRulesRequest, $2.ListIngressRulesResponse>( + $10.ListIngressRulesRequest, $10.ListIngressRulesResponse>( '/google.appengine.v1.Firewall/ListIngressRules', - ($2.ListIngressRulesRequest value) => value.writeToBuffer(), + ($10.ListIngressRulesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListIngressRulesResponse.fromBuffer(value)); + $10.ListIngressRulesResponse.fromBuffer(value)); static final _$batchUpdateIngressRules = $grpc.ClientMethod< - $2.BatchUpdateIngressRulesRequest, - $2.BatchUpdateIngressRulesResponse>( + $10.BatchUpdateIngressRulesRequest, + $10.BatchUpdateIngressRulesResponse>( '/google.appengine.v1.Firewall/BatchUpdateIngressRules', - ($2.BatchUpdateIngressRulesRequest value) => value.writeToBuffer(), + ($10.BatchUpdateIngressRulesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.BatchUpdateIngressRulesResponse.fromBuffer(value)); + $10.BatchUpdateIngressRulesResponse.fromBuffer(value)); static final _$createIngressRule = - $grpc.ClientMethod<$2.CreateIngressRuleRequest, $7.FirewallRule>( + $grpc.ClientMethod<$10.CreateIngressRuleRequest, $15.FirewallRule>( '/google.appengine.v1.Firewall/CreateIngressRule', - ($2.CreateIngressRuleRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.FirewallRule.fromBuffer(value)); + ($10.CreateIngressRuleRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $15.FirewallRule.fromBuffer(value)); static final _$getIngressRule = - $grpc.ClientMethod<$2.GetIngressRuleRequest, $7.FirewallRule>( + $grpc.ClientMethod<$10.GetIngressRuleRequest, $15.FirewallRule>( '/google.appengine.v1.Firewall/GetIngressRule', - ($2.GetIngressRuleRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.FirewallRule.fromBuffer(value)); + ($10.GetIngressRuleRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $15.FirewallRule.fromBuffer(value)); static final _$updateIngressRule = - $grpc.ClientMethod<$2.UpdateIngressRuleRequest, $7.FirewallRule>( + $grpc.ClientMethod<$10.UpdateIngressRuleRequest, $15.FirewallRule>( '/google.appengine.v1.Firewall/UpdateIngressRule', - ($2.UpdateIngressRuleRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.FirewallRule.fromBuffer(value)); + ($10.UpdateIngressRuleRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $15.FirewallRule.fromBuffer(value)); static final _$deleteIngressRule = - $grpc.ClientMethod<$2.DeleteIngressRuleRequest, $1.Empty>( + $grpc.ClientMethod<$10.DeleteIngressRuleRequest, $1.Empty>( '/google.appengine.v1.Firewall/DeleteIngressRule', - ($2.DeleteIngressRuleRequest value) => value.writeToBuffer(), + ($10.DeleteIngressRuleRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); FirewallClient($grpc.ClientChannel channel, @@ -572,223 +589,227 @@ class FirewallClient extends $grpc.Client { $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.ListIngressRulesResponse> listIngressRules( - $2.ListIngressRulesRequest request, + $grpc.ResponseFuture<$10.ListIngressRulesResponse> listIngressRules( + $10.ListIngressRulesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listIngressRules, request, options: options); } - $grpc.ResponseFuture<$2.BatchUpdateIngressRulesResponse> - batchUpdateIngressRules($2.BatchUpdateIngressRulesRequest request, + $grpc.ResponseFuture<$10.BatchUpdateIngressRulesResponse> + batchUpdateIngressRules($10.BatchUpdateIngressRulesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$batchUpdateIngressRules, request, options: options); } - $grpc.ResponseFuture<$7.FirewallRule> createIngressRule( - $2.CreateIngressRuleRequest request, + $grpc.ResponseFuture<$15.FirewallRule> createIngressRule( + $10.CreateIngressRuleRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createIngressRule, request, options: options); } - $grpc.ResponseFuture<$7.FirewallRule> getIngressRule( - $2.GetIngressRuleRequest request, + $grpc.ResponseFuture<$15.FirewallRule> getIngressRule( + $10.GetIngressRuleRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getIngressRule, request, options: options); } - $grpc.ResponseFuture<$7.FirewallRule> updateIngressRule( - $2.UpdateIngressRuleRequest request, + $grpc.ResponseFuture<$15.FirewallRule> updateIngressRule( + $10.UpdateIngressRuleRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateIngressRule, request, options: options); } $grpc.ResponseFuture<$1.Empty> deleteIngressRule( - $2.DeleteIngressRuleRequest request, + $10.DeleteIngressRuleRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteIngressRule, request, options: options); } } +@$pb.GrpcServiceName('google.appengine.v1.Firewall') abstract class FirewallServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1.Firewall'; FirewallServiceBase() { - $addMethod($grpc.ServiceMethod<$2.ListIngressRulesRequest, - $2.ListIngressRulesResponse>( + $addMethod($grpc.ServiceMethod<$10.ListIngressRulesRequest, + $10.ListIngressRulesResponse>( 'ListIngressRules', listIngressRules_Pre, false, false, ($core.List<$core.int> value) => - $2.ListIngressRulesRequest.fromBuffer(value), - ($2.ListIngressRulesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.BatchUpdateIngressRulesRequest, - $2.BatchUpdateIngressRulesResponse>( + $10.ListIngressRulesRequest.fromBuffer(value), + ($10.ListIngressRulesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.BatchUpdateIngressRulesRequest, + $10.BatchUpdateIngressRulesResponse>( 'BatchUpdateIngressRules', batchUpdateIngressRules_Pre, false, false, ($core.List<$core.int> value) => - $2.BatchUpdateIngressRulesRequest.fromBuffer(value), - ($2.BatchUpdateIngressRulesResponse value) => value.writeToBuffer())); + $10.BatchUpdateIngressRulesRequest.fromBuffer(value), + ($10.BatchUpdateIngressRulesResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.CreateIngressRuleRequest, $7.FirewallRule>( + $grpc.ServiceMethod<$10.CreateIngressRuleRequest, $15.FirewallRule>( 'CreateIngressRule', createIngressRule_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateIngressRuleRequest.fromBuffer(value), - ($7.FirewallRule value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetIngressRuleRequest, $7.FirewallRule>( + $10.CreateIngressRuleRequest.fromBuffer(value), + ($15.FirewallRule value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.GetIngressRuleRequest, $15.FirewallRule>( 'GetIngressRule', getIngressRule_Pre, false, false, ($core.List<$core.int> value) => - $2.GetIngressRuleRequest.fromBuffer(value), - ($7.FirewallRule value) => value.writeToBuffer())); + $10.GetIngressRuleRequest.fromBuffer(value), + ($15.FirewallRule value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.UpdateIngressRuleRequest, $7.FirewallRule>( + $grpc.ServiceMethod<$10.UpdateIngressRuleRequest, $15.FirewallRule>( 'UpdateIngressRule', updateIngressRule_Pre, false, false, ($core.List<$core.int> value) => - $2.UpdateIngressRuleRequest.fromBuffer(value), - ($7.FirewallRule value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteIngressRuleRequest, $1.Empty>( + $10.UpdateIngressRuleRequest.fromBuffer(value), + ($15.FirewallRule value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.DeleteIngressRuleRequest, $1.Empty>( 'DeleteIngressRule', deleteIngressRule_Pre, false, false, ($core.List<$core.int> value) => - $2.DeleteIngressRuleRequest.fromBuffer(value), + $10.DeleteIngressRuleRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); } - $async.Future<$2.ListIngressRulesResponse> listIngressRules_Pre( + $async.Future<$10.ListIngressRulesResponse> listIngressRules_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListIngressRulesRequest> request) async { + $async.Future<$10.ListIngressRulesRequest> request) async { return listIngressRules(call, await request); } - $async.Future<$2.BatchUpdateIngressRulesResponse> batchUpdateIngressRules_Pre( - $grpc.ServiceCall call, - $async.Future<$2.BatchUpdateIngressRulesRequest> request) async { + $async.Future<$10.BatchUpdateIngressRulesResponse> + batchUpdateIngressRules_Pre($grpc.ServiceCall call, + $async.Future<$10.BatchUpdateIngressRulesRequest> request) async { return batchUpdateIngressRules(call, await request); } - $async.Future<$7.FirewallRule> createIngressRule_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateIngressRuleRequest> request) async { + $async.Future<$15.FirewallRule> createIngressRule_Pre($grpc.ServiceCall call, + $async.Future<$10.CreateIngressRuleRequest> request) async { return createIngressRule(call, await request); } - $async.Future<$7.FirewallRule> getIngressRule_Pre($grpc.ServiceCall call, - $async.Future<$2.GetIngressRuleRequest> request) async { + $async.Future<$15.FirewallRule> getIngressRule_Pre($grpc.ServiceCall call, + $async.Future<$10.GetIngressRuleRequest> request) async { return getIngressRule(call, await request); } - $async.Future<$7.FirewallRule> updateIngressRule_Pre($grpc.ServiceCall call, - $async.Future<$2.UpdateIngressRuleRequest> request) async { + $async.Future<$15.FirewallRule> updateIngressRule_Pre($grpc.ServiceCall call, + $async.Future<$10.UpdateIngressRuleRequest> request) async { return updateIngressRule(call, await request); } $async.Future<$1.Empty> deleteIngressRule_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteIngressRuleRequest> request) async { + $async.Future<$10.DeleteIngressRuleRequest> request) async { return deleteIngressRule(call, await request); } - $async.Future<$2.ListIngressRulesResponse> listIngressRules( - $grpc.ServiceCall call, $2.ListIngressRulesRequest request); - $async.Future<$2.BatchUpdateIngressRulesResponse> batchUpdateIngressRules( - $grpc.ServiceCall call, $2.BatchUpdateIngressRulesRequest request); - $async.Future<$7.FirewallRule> createIngressRule( - $grpc.ServiceCall call, $2.CreateIngressRuleRequest request); - $async.Future<$7.FirewallRule> getIngressRule( - $grpc.ServiceCall call, $2.GetIngressRuleRequest request); - $async.Future<$7.FirewallRule> updateIngressRule( - $grpc.ServiceCall call, $2.UpdateIngressRuleRequest request); + $async.Future<$10.ListIngressRulesResponse> listIngressRules( + $grpc.ServiceCall call, $10.ListIngressRulesRequest request); + $async.Future<$10.BatchUpdateIngressRulesResponse> batchUpdateIngressRules( + $grpc.ServiceCall call, $10.BatchUpdateIngressRulesRequest request); + $async.Future<$15.FirewallRule> createIngressRule( + $grpc.ServiceCall call, $10.CreateIngressRuleRequest request); + $async.Future<$15.FirewallRule> getIngressRule( + $grpc.ServiceCall call, $10.GetIngressRuleRequest request); + $async.Future<$15.FirewallRule> updateIngressRule( + $grpc.ServiceCall call, $10.UpdateIngressRuleRequest request); $async.Future<$1.Empty> deleteIngressRule( - $grpc.ServiceCall call, $2.DeleteIngressRuleRequest request); + $grpc.ServiceCall call, $10.DeleteIngressRuleRequest request); } +@$pb.GrpcServiceName('google.appengine.v1.AuthorizedDomains') class AuthorizedDomainsClient extends $grpc.Client { static final _$listAuthorizedDomains = $grpc.ClientMethod< - $2.ListAuthorizedDomainsRequest, $2.ListAuthorizedDomainsResponse>( + $10.ListAuthorizedDomainsRequest, $10.ListAuthorizedDomainsResponse>( '/google.appengine.v1.AuthorizedDomains/ListAuthorizedDomains', - ($2.ListAuthorizedDomainsRequest value) => value.writeToBuffer(), + ($10.ListAuthorizedDomainsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListAuthorizedDomainsResponse.fromBuffer(value)); + $10.ListAuthorizedDomainsResponse.fromBuffer(value)); AuthorizedDomainsClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.ListAuthorizedDomainsResponse> listAuthorizedDomains( - $2.ListAuthorizedDomainsRequest request, + $grpc.ResponseFuture<$10.ListAuthorizedDomainsResponse> listAuthorizedDomains( + $10.ListAuthorizedDomainsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listAuthorizedDomains, request, options: options); } } +@$pb.GrpcServiceName('google.appengine.v1.AuthorizedDomains') abstract class AuthorizedDomainsServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1.AuthorizedDomains'; AuthorizedDomainsServiceBase() { - $addMethod($grpc.ServiceMethod<$2.ListAuthorizedDomainsRequest, - $2.ListAuthorizedDomainsResponse>( + $addMethod($grpc.ServiceMethod<$10.ListAuthorizedDomainsRequest, + $10.ListAuthorizedDomainsResponse>( 'ListAuthorizedDomains', listAuthorizedDomains_Pre, false, false, ($core.List<$core.int> value) => - $2.ListAuthorizedDomainsRequest.fromBuffer(value), - ($2.ListAuthorizedDomainsResponse value) => value.writeToBuffer())); + $10.ListAuthorizedDomainsRequest.fromBuffer(value), + ($10.ListAuthorizedDomainsResponse value) => value.writeToBuffer())); } - $async.Future<$2.ListAuthorizedDomainsResponse> listAuthorizedDomains_Pre( + $async.Future<$10.ListAuthorizedDomainsResponse> listAuthorizedDomains_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListAuthorizedDomainsRequest> request) async { + $async.Future<$10.ListAuthorizedDomainsRequest> request) async { return listAuthorizedDomains(call, await request); } - $async.Future<$2.ListAuthorizedDomainsResponse> listAuthorizedDomains( - $grpc.ServiceCall call, $2.ListAuthorizedDomainsRequest request); + $async.Future<$10.ListAuthorizedDomainsResponse> listAuthorizedDomains( + $grpc.ServiceCall call, $10.ListAuthorizedDomainsRequest request); } +@$pb.GrpcServiceName('google.appengine.v1.AuthorizedCertificates') class AuthorizedCertificatesClient extends $grpc.Client { static final _$listAuthorizedCertificates = $grpc.ClientMethod< - $2.ListAuthorizedCertificatesRequest, - $2.ListAuthorizedCertificatesResponse>( + $10.ListAuthorizedCertificatesRequest, + $10.ListAuthorizedCertificatesResponse>( '/google.appengine.v1.AuthorizedCertificates/ListAuthorizedCertificates', - ($2.ListAuthorizedCertificatesRequest value) => value.writeToBuffer(), + ($10.ListAuthorizedCertificatesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListAuthorizedCertificatesResponse.fromBuffer(value)); + $10.ListAuthorizedCertificatesResponse.fromBuffer(value)); static final _$getAuthorizedCertificate = $grpc.ClientMethod< - $2.GetAuthorizedCertificateRequest, $8.AuthorizedCertificate>( + $10.GetAuthorizedCertificateRequest, $16.AuthorizedCertificate>( '/google.appengine.v1.AuthorizedCertificates/GetAuthorizedCertificate', - ($2.GetAuthorizedCertificateRequest value) => value.writeToBuffer(), + ($10.GetAuthorizedCertificateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $8.AuthorizedCertificate.fromBuffer(value)); + $16.AuthorizedCertificate.fromBuffer(value)); static final _$createAuthorizedCertificate = $grpc.ClientMethod< - $2.CreateAuthorizedCertificateRequest, $8.AuthorizedCertificate>( + $10.CreateAuthorizedCertificateRequest, $16.AuthorizedCertificate>( '/google.appengine.v1.AuthorizedCertificates/CreateAuthorizedCertificate', - ($2.CreateAuthorizedCertificateRequest value) => value.writeToBuffer(), + ($10.CreateAuthorizedCertificateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $8.AuthorizedCertificate.fromBuffer(value)); + $16.AuthorizedCertificate.fromBuffer(value)); static final _$updateAuthorizedCertificate = $grpc.ClientMethod< - $2.UpdateAuthorizedCertificateRequest, $8.AuthorizedCertificate>( + $10.UpdateAuthorizedCertificateRequest, $16.AuthorizedCertificate>( '/google.appengine.v1.AuthorizedCertificates/UpdateAuthorizedCertificate', - ($2.UpdateAuthorizedCertificateRequest value) => value.writeToBuffer(), + ($10.UpdateAuthorizedCertificateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $8.AuthorizedCertificate.fromBuffer(value)); + $16.AuthorizedCertificate.fromBuffer(value)); static final _$deleteAuthorizedCertificate = $grpc.ClientMethod< - $2.DeleteAuthorizedCertificateRequest, $1.Empty>( + $10.DeleteAuthorizedCertificateRequest, $1.Empty>( '/google.appengine.v1.AuthorizedCertificates/DeleteAuthorizedCertificate', - ($2.DeleteAuthorizedCertificateRequest value) => value.writeToBuffer(), + ($10.DeleteAuthorizedCertificateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); AuthorizedCertificatesClient($grpc.ClientChannel channel, @@ -796,163 +817,165 @@ class AuthorizedCertificatesClient extends $grpc.Client { $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.ListAuthorizedCertificatesResponse> - listAuthorizedCertificates($2.ListAuthorizedCertificatesRequest request, + $grpc.ResponseFuture<$10.ListAuthorizedCertificatesResponse> + listAuthorizedCertificates($10.ListAuthorizedCertificatesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listAuthorizedCertificates, request, options: options); } - $grpc.ResponseFuture<$8.AuthorizedCertificate> getAuthorizedCertificate( - $2.GetAuthorizedCertificateRequest request, + $grpc.ResponseFuture<$16.AuthorizedCertificate> getAuthorizedCertificate( + $10.GetAuthorizedCertificateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getAuthorizedCertificate, request, options: options); } - $grpc.ResponseFuture<$8.AuthorizedCertificate> createAuthorizedCertificate( - $2.CreateAuthorizedCertificateRequest request, + $grpc.ResponseFuture<$16.AuthorizedCertificate> createAuthorizedCertificate( + $10.CreateAuthorizedCertificateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createAuthorizedCertificate, request, options: options); } - $grpc.ResponseFuture<$8.AuthorizedCertificate> updateAuthorizedCertificate( - $2.UpdateAuthorizedCertificateRequest request, + $grpc.ResponseFuture<$16.AuthorizedCertificate> updateAuthorizedCertificate( + $10.UpdateAuthorizedCertificateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateAuthorizedCertificate, request, options: options); } $grpc.ResponseFuture<$1.Empty> deleteAuthorizedCertificate( - $2.DeleteAuthorizedCertificateRequest request, + $10.DeleteAuthorizedCertificateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteAuthorizedCertificate, request, options: options); } } +@$pb.GrpcServiceName('google.appengine.v1.AuthorizedCertificates') abstract class AuthorizedCertificatesServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1.AuthorizedCertificates'; AuthorizedCertificatesServiceBase() { - $addMethod($grpc.ServiceMethod<$2.ListAuthorizedCertificatesRequest, - $2.ListAuthorizedCertificatesResponse>( + $addMethod($grpc.ServiceMethod<$10.ListAuthorizedCertificatesRequest, + $10.ListAuthorizedCertificatesResponse>( 'ListAuthorizedCertificates', listAuthorizedCertificates_Pre, false, false, ($core.List<$core.int> value) => - $2.ListAuthorizedCertificatesRequest.fromBuffer(value), - ($2.ListAuthorizedCertificatesResponse value) => + $10.ListAuthorizedCertificatesRequest.fromBuffer(value), + ($10.ListAuthorizedCertificatesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetAuthorizedCertificateRequest, - $8.AuthorizedCertificate>( + $addMethod($grpc.ServiceMethod<$10.GetAuthorizedCertificateRequest, + $16.AuthorizedCertificate>( 'GetAuthorizedCertificate', getAuthorizedCertificate_Pre, false, false, ($core.List<$core.int> value) => - $2.GetAuthorizedCertificateRequest.fromBuffer(value), - ($8.AuthorizedCertificate value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateAuthorizedCertificateRequest, - $8.AuthorizedCertificate>( + $10.GetAuthorizedCertificateRequest.fromBuffer(value), + ($16.AuthorizedCertificate value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.CreateAuthorizedCertificateRequest, + $16.AuthorizedCertificate>( 'CreateAuthorizedCertificate', createAuthorizedCertificate_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateAuthorizedCertificateRequest.fromBuffer(value), - ($8.AuthorizedCertificate value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UpdateAuthorizedCertificateRequest, - $8.AuthorizedCertificate>( + $10.CreateAuthorizedCertificateRequest.fromBuffer(value), + ($16.AuthorizedCertificate value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.UpdateAuthorizedCertificateRequest, + $16.AuthorizedCertificate>( 'UpdateAuthorizedCertificate', updateAuthorizedCertificate_Pre, false, false, ($core.List<$core.int> value) => - $2.UpdateAuthorizedCertificateRequest.fromBuffer(value), - ($8.AuthorizedCertificate value) => value.writeToBuffer())); + $10.UpdateAuthorizedCertificateRequest.fromBuffer(value), + ($16.AuthorizedCertificate value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.DeleteAuthorizedCertificateRequest, $1.Empty>( + $grpc.ServiceMethod<$10.DeleteAuthorizedCertificateRequest, $1.Empty>( 'DeleteAuthorizedCertificate', deleteAuthorizedCertificate_Pre, false, false, ($core.List<$core.int> value) => - $2.DeleteAuthorizedCertificateRequest.fromBuffer(value), + $10.DeleteAuthorizedCertificateRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); } - $async.Future<$2.ListAuthorizedCertificatesResponse> + $async.Future<$10.ListAuthorizedCertificatesResponse> listAuthorizedCertificates_Pre($grpc.ServiceCall call, - $async.Future<$2.ListAuthorizedCertificatesRequest> request) async { + $async.Future<$10.ListAuthorizedCertificatesRequest> request) async { return listAuthorizedCertificates(call, await request); } - $async.Future<$8.AuthorizedCertificate> getAuthorizedCertificate_Pre( + $async.Future<$16.AuthorizedCertificate> getAuthorizedCertificate_Pre( $grpc.ServiceCall call, - $async.Future<$2.GetAuthorizedCertificateRequest> request) async { + $async.Future<$10.GetAuthorizedCertificateRequest> request) async { return getAuthorizedCertificate(call, await request); } - $async.Future<$8.AuthorizedCertificate> createAuthorizedCertificate_Pre( + $async.Future<$16.AuthorizedCertificate> createAuthorizedCertificate_Pre( $grpc.ServiceCall call, - $async.Future<$2.CreateAuthorizedCertificateRequest> request) async { + $async.Future<$10.CreateAuthorizedCertificateRequest> request) async { return createAuthorizedCertificate(call, await request); } - $async.Future<$8.AuthorizedCertificate> updateAuthorizedCertificate_Pre( + $async.Future<$16.AuthorizedCertificate> updateAuthorizedCertificate_Pre( $grpc.ServiceCall call, - $async.Future<$2.UpdateAuthorizedCertificateRequest> request) async { + $async.Future<$10.UpdateAuthorizedCertificateRequest> request) async { return updateAuthorizedCertificate(call, await request); } $async.Future<$1.Empty> deleteAuthorizedCertificate_Pre( $grpc.ServiceCall call, - $async.Future<$2.DeleteAuthorizedCertificateRequest> request) async { + $async.Future<$10.DeleteAuthorizedCertificateRequest> request) async { return deleteAuthorizedCertificate(call, await request); } - $async.Future<$2.ListAuthorizedCertificatesResponse> - listAuthorizedCertificates( - $grpc.ServiceCall call, $2.ListAuthorizedCertificatesRequest request); - $async.Future<$8.AuthorizedCertificate> getAuthorizedCertificate( - $grpc.ServiceCall call, $2.GetAuthorizedCertificateRequest request); - $async.Future<$8.AuthorizedCertificate> createAuthorizedCertificate( - $grpc.ServiceCall call, $2.CreateAuthorizedCertificateRequest request); - $async.Future<$8.AuthorizedCertificate> updateAuthorizedCertificate( - $grpc.ServiceCall call, $2.UpdateAuthorizedCertificateRequest request); + $async.Future<$10.ListAuthorizedCertificatesResponse> + listAuthorizedCertificates($grpc.ServiceCall call, + $10.ListAuthorizedCertificatesRequest request); + $async.Future<$16.AuthorizedCertificate> getAuthorizedCertificate( + $grpc.ServiceCall call, $10.GetAuthorizedCertificateRequest request); + $async.Future<$16.AuthorizedCertificate> createAuthorizedCertificate( + $grpc.ServiceCall call, $10.CreateAuthorizedCertificateRequest request); + $async.Future<$16.AuthorizedCertificate> updateAuthorizedCertificate( + $grpc.ServiceCall call, $10.UpdateAuthorizedCertificateRequest request); $async.Future<$1.Empty> deleteAuthorizedCertificate( - $grpc.ServiceCall call, $2.DeleteAuthorizedCertificateRequest request); + $grpc.ServiceCall call, $10.DeleteAuthorizedCertificateRequest request); } +@$pb.GrpcServiceName('google.appengine.v1.DomainMappings') class DomainMappingsClient extends $grpc.Client { static final _$listDomainMappings = $grpc.ClientMethod< - $2.ListDomainMappingsRequest, $2.ListDomainMappingsResponse>( + $10.ListDomainMappingsRequest, $10.ListDomainMappingsResponse>( '/google.appengine.v1.DomainMappings/ListDomainMappings', - ($2.ListDomainMappingsRequest value) => value.writeToBuffer(), + ($10.ListDomainMappingsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListDomainMappingsResponse.fromBuffer(value)); + $10.ListDomainMappingsResponse.fromBuffer(value)); static final _$getDomainMapping = - $grpc.ClientMethod<$2.GetDomainMappingRequest, $9.DomainMapping>( + $grpc.ClientMethod<$10.GetDomainMappingRequest, $17.DomainMapping>( '/google.appengine.v1.DomainMappings/GetDomainMapping', - ($2.GetDomainMappingRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $9.DomainMapping.fromBuffer(value)); + ($10.GetDomainMappingRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $17.DomainMapping.fromBuffer(value)); static final _$createDomainMapping = - $grpc.ClientMethod<$2.CreateDomainMappingRequest, $0.Operation>( + $grpc.ClientMethod<$10.CreateDomainMappingRequest, $0.Operation>( '/google.appengine.v1.DomainMappings/CreateDomainMapping', - ($2.CreateDomainMappingRequest value) => value.writeToBuffer(), + ($10.CreateDomainMappingRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$updateDomainMapping = - $grpc.ClientMethod<$2.UpdateDomainMappingRequest, $0.Operation>( + $grpc.ClientMethod<$10.UpdateDomainMappingRequest, $0.Operation>( '/google.appengine.v1.DomainMappings/UpdateDomainMapping', - ($2.UpdateDomainMappingRequest value) => value.writeToBuffer(), + ($10.UpdateDomainMappingRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$deleteDomainMapping = - $grpc.ClientMethod<$2.DeleteDomainMappingRequest, $0.Operation>( + $grpc.ClientMethod<$10.DeleteDomainMappingRequest, $0.Operation>( '/google.appengine.v1.DomainMappings/DeleteDomainMapping', - ($2.DeleteDomainMappingRequest value) => value.writeToBuffer(), + ($10.DeleteDomainMappingRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); DomainMappingsClient($grpc.ClientChannel channel, @@ -960,119 +983,123 @@ class DomainMappingsClient extends $grpc.Client { $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.ListDomainMappingsResponse> listDomainMappings( - $2.ListDomainMappingsRequest request, + $grpc.ResponseFuture<$10.ListDomainMappingsResponse> listDomainMappings( + $10.ListDomainMappingsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listDomainMappings, request, options: options); } - $grpc.ResponseFuture<$9.DomainMapping> getDomainMapping( - $2.GetDomainMappingRequest request, + $grpc.ResponseFuture<$17.DomainMapping> getDomainMapping( + $10.GetDomainMappingRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getDomainMapping, request, options: options); } $grpc.ResponseFuture<$0.Operation> createDomainMapping( - $2.CreateDomainMappingRequest request, + $10.CreateDomainMappingRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createDomainMapping, request, options: options); } $grpc.ResponseFuture<$0.Operation> updateDomainMapping( - $2.UpdateDomainMappingRequest request, + $10.UpdateDomainMappingRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateDomainMapping, request, options: options); } $grpc.ResponseFuture<$0.Operation> deleteDomainMapping( - $2.DeleteDomainMappingRequest request, + $10.DeleteDomainMappingRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteDomainMapping, request, options: options); } } +@$pb.GrpcServiceName('google.appengine.v1.DomainMappings') abstract class DomainMappingsServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1.DomainMappings'; DomainMappingsServiceBase() { - $addMethod($grpc.ServiceMethod<$2.ListDomainMappingsRequest, - $2.ListDomainMappingsResponse>( + $addMethod($grpc.ServiceMethod<$10.ListDomainMappingsRequest, + $10.ListDomainMappingsResponse>( 'ListDomainMappings', listDomainMappings_Pre, false, false, ($core.List<$core.int> value) => - $2.ListDomainMappingsRequest.fromBuffer(value), - ($2.ListDomainMappingsResponse value) => value.writeToBuffer())); + $10.ListDomainMappingsRequest.fromBuffer(value), + ($10.ListDomainMappingsResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.GetDomainMappingRequest, $9.DomainMapping>( + $grpc.ServiceMethod<$10.GetDomainMappingRequest, $17.DomainMapping>( 'GetDomainMapping', getDomainMapping_Pre, false, false, ($core.List<$core.int> value) => - $2.GetDomainMappingRequest.fromBuffer(value), - ($9.DomainMapping value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateDomainMappingRequest, $0.Operation>( - 'CreateDomainMapping', - createDomainMapping_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.CreateDomainMappingRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UpdateDomainMappingRequest, $0.Operation>( - 'UpdateDomainMapping', - updateDomainMapping_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.UpdateDomainMappingRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteDomainMappingRequest, $0.Operation>( - 'DeleteDomainMapping', - deleteDomainMapping_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.DeleteDomainMappingRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); + $10.GetDomainMappingRequest.fromBuffer(value), + ($17.DomainMapping value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$10.CreateDomainMappingRequest, $0.Operation>( + 'CreateDomainMapping', + createDomainMapping_Pre, + false, + false, + ($core.List<$core.int> value) => + $10.CreateDomainMappingRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$10.UpdateDomainMappingRequest, $0.Operation>( + 'UpdateDomainMapping', + updateDomainMapping_Pre, + false, + false, + ($core.List<$core.int> value) => + $10.UpdateDomainMappingRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$10.DeleteDomainMappingRequest, $0.Operation>( + 'DeleteDomainMapping', + deleteDomainMapping_Pre, + false, + false, + ($core.List<$core.int> value) => + $10.DeleteDomainMappingRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); } - $async.Future<$2.ListDomainMappingsResponse> listDomainMappings_Pre( + $async.Future<$10.ListDomainMappingsResponse> listDomainMappings_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListDomainMappingsRequest> request) async { + $async.Future<$10.ListDomainMappingsRequest> request) async { return listDomainMappings(call, await request); } - $async.Future<$9.DomainMapping> getDomainMapping_Pre($grpc.ServiceCall call, - $async.Future<$2.GetDomainMappingRequest> request) async { + $async.Future<$17.DomainMapping> getDomainMapping_Pre($grpc.ServiceCall call, + $async.Future<$10.GetDomainMappingRequest> request) async { return getDomainMapping(call, await request); } $async.Future<$0.Operation> createDomainMapping_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateDomainMappingRequest> request) async { + $async.Future<$10.CreateDomainMappingRequest> request) async { return createDomainMapping(call, await request); } $async.Future<$0.Operation> updateDomainMapping_Pre($grpc.ServiceCall call, - $async.Future<$2.UpdateDomainMappingRequest> request) async { + $async.Future<$10.UpdateDomainMappingRequest> request) async { return updateDomainMapping(call, await request); } $async.Future<$0.Operation> deleteDomainMapping_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteDomainMappingRequest> request) async { + $async.Future<$10.DeleteDomainMappingRequest> request) async { return deleteDomainMapping(call, await request); } - $async.Future<$2.ListDomainMappingsResponse> listDomainMappings( - $grpc.ServiceCall call, $2.ListDomainMappingsRequest request); - $async.Future<$9.DomainMapping> getDomainMapping( - $grpc.ServiceCall call, $2.GetDomainMappingRequest request); + $async.Future<$10.ListDomainMappingsResponse> listDomainMappings( + $grpc.ServiceCall call, $10.ListDomainMappingsRequest request); + $async.Future<$17.DomainMapping> getDomainMapping( + $grpc.ServiceCall call, $10.GetDomainMappingRequest request); $async.Future<$0.Operation> createDomainMapping( - $grpc.ServiceCall call, $2.CreateDomainMappingRequest request); + $grpc.ServiceCall call, $10.CreateDomainMappingRequest request); $async.Future<$0.Operation> updateDomainMapping( - $grpc.ServiceCall call, $2.UpdateDomainMappingRequest request); + $grpc.ServiceCall call, $10.UpdateDomainMappingRequest request); $async.Future<$0.Operation> deleteDomainMapping( - $grpc.ServiceCall call, $2.DeleteDomainMappingRequest request); + $grpc.ServiceCall call, $10.DeleteDomainMappingRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbjson.dart index bbca00f9..79c3b948 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/appengine.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/appengine.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 versionViewDescriptor instead') @@ -21,6 +25,7 @@ const VersionView$json = { /// Descriptor for `VersionView`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List versionViewDescriptor = $convert.base64Decode('CgtWZXJzaW9uVmlldxIJCgVCQVNJQxAAEggKBEZVTEwQAQ=='); + @$core.Deprecated('Use authorizedCertificateViewDescriptor instead') const AuthorizedCertificateView$json = { '1': 'AuthorizedCertificateView', @@ -33,7 +38,9 @@ const AuthorizedCertificateView$json = { /// Descriptor for `AuthorizedCertificateView`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List authorizedCertificateViewDescriptor = $convert.base64Decode( - 'ChlBdXRob3JpemVkQ2VydGlmaWNhdGVWaWV3EhUKEUJBU0lDX0NFUlRJRklDQVRFEAASFAoQRlVMTF9DRVJUSUZJQ0FURRAB'); + 'ChlBdXRob3JpemVkQ2VydGlmaWNhdGVWaWV3EhUKEUJBU0lDX0NFUlRJRklDQVRFEAASFAoQRl' + 'VMTF9DRVJUSUZJQ0FURRAB'); + @$core.Deprecated('Use domainOverrideStrategyDescriptor instead') const DomainOverrideStrategy$json = { '1': 'DomainOverrideStrategy', @@ -47,7 +54,9 @@ const DomainOverrideStrategy$json = { /// Descriptor for `DomainOverrideStrategy`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List domainOverrideStrategyDescriptor = $convert.base64Decode( - 'ChZEb21haW5PdmVycmlkZVN0cmF0ZWd5EigKJFVOU1BFQ0lGSUVEX0RPTUFJTl9PVkVSUklERV9TVFJBVEVHWRAAEgoKBlNUUklDVBABEgwKCE9WRVJSSURFEAI='); + 'ChZEb21haW5PdmVycmlkZVN0cmF0ZWd5EigKJFVOU1BFQ0lGSUVEX0RPTUFJTl9PVkVSUklERV' + '9TVFJBVEVHWRAAEgoKBlNUUklDVBABEgwKCE9WRVJSSURFEAI='); + @$core.Deprecated('Use getApplicationRequestDescriptor instead') const GetApplicationRequest$json = { '1': 'GetApplicationRequest', @@ -60,6 +69,7 @@ const GetApplicationRequest$json = { final $typed_data.Uint8List getApplicationRequestDescriptor = $convert.base64Decode( 'ChVHZXRBcHBsaWNhdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use createApplicationRequestDescriptor instead') const CreateApplicationRequest$json = { '1': 'CreateApplicationRequest', @@ -78,7 +88,9 @@ const CreateApplicationRequest$json = { /// Descriptor for `CreateApplicationRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createApplicationRequestDescriptor = $convert.base64Decode( - 'ChhDcmVhdGVBcHBsaWNhdGlvblJlcXVlc3QSQgoLYXBwbGljYXRpb24YAiABKAsyIC5nb29nbGUuYXBwZW5naW5lLnYxLkFwcGxpY2F0aW9uUgthcHBsaWNhdGlvbg=='); + 'ChhDcmVhdGVBcHBsaWNhdGlvblJlcXVlc3QSQgoLYXBwbGljYXRpb24YAiABKAsyIC5nb29nbG' + 'UuYXBwZW5naW5lLnYxLkFwcGxpY2F0aW9uUgthcHBsaWNhdGlvbg=='); + @$core.Deprecated('Use updateApplicationRequestDescriptor instead') const UpdateApplicationRequest$json = { '1': 'UpdateApplicationRequest', @@ -104,9 +116,12 @@ const UpdateApplicationRequest$json = { }; /// Descriptor for `UpdateApplicationRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateApplicationRequestDescriptor = - $convert.base64Decode( - 'ChhVcGRhdGVBcHBsaWNhdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRJCCgthcHBsaWNhdGlvbhgCIAEoCzIgLmdvb2dsZS5hcHBlbmdpbmUudjEuQXBwbGljYXRpb25SC2FwcGxpY2F0aW9uEjsKC3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IKdXBkYXRlTWFzaw=='); +final $typed_data.Uint8List updateApplicationRequestDescriptor = $convert.base64Decode( + 'ChhVcGRhdGVBcHBsaWNhdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRJCCgthcHBsaW' + 'NhdGlvbhgCIAEoCzIgLmdvb2dsZS5hcHBlbmdpbmUudjEuQXBwbGljYXRpb25SC2FwcGxpY2F0' + 'aW9uEjsKC3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IKdX' + 'BkYXRlTWFzaw=='); + @$core.Deprecated('Use repairApplicationRequestDescriptor instead') const RepairApplicationRequest$json = { '1': 'RepairApplicationRequest', @@ -119,6 +134,7 @@ const RepairApplicationRequest$json = { final $typed_data.Uint8List repairApplicationRequestDescriptor = $convert.base64Decode( 'ChhSZXBhaXJBcHBsaWNhdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use listServicesRequestDescriptor instead') const ListServicesRequest$json = { '1': 'ListServicesRequest', @@ -131,7 +147,9 @@ const ListServicesRequest$json = { /// Descriptor for `ListServicesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServicesRequestDescriptor = $convert.base64Decode( - 'ChNMaXN0U2VydmljZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); + 'ChNMaXN0U2VydmljZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2' + 'l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); + @$core.Deprecated('Use listServicesResponseDescriptor instead') const ListServicesResponse$json = { '1': 'ListServicesResponse', @@ -150,7 +168,10 @@ const ListServicesResponse$json = { /// Descriptor for `ListServicesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServicesResponseDescriptor = $convert.base64Decode( - 'ChRMaXN0U2VydmljZXNSZXNwb25zZRI4CghzZXJ2aWNlcxgBIAMoCzIcLmdvb2dsZS5hcHBlbmdpbmUudjEuU2VydmljZVIIc2VydmljZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + 'ChRMaXN0U2VydmljZXNSZXNwb25zZRI4CghzZXJ2aWNlcxgBIAMoCzIcLmdvb2dsZS5hcHBlbm' + 'dpbmUudjEuU2VydmljZVIIc2VydmljZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0' + 'UGFnZVRva2Vu'); + @$core.Deprecated('Use getServiceRequestDescriptor instead') const GetServiceRequest$json = { '1': 'GetServiceRequest', @@ -162,6 +183,7 @@ const GetServiceRequest$json = { /// Descriptor for `GetServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getServiceRequestDescriptor = $convert .base64Decode('ChFHZXRTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use updateServiceRequestDescriptor instead') const UpdateServiceRequest$json = { '1': 'UpdateServiceRequest', @@ -189,7 +211,11 @@ const UpdateServiceRequest$json = { /// Descriptor for `UpdateServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateServiceRequestDescriptor = $convert.base64Decode( - 'ChRVcGRhdGVTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjYKB3NlcnZpY2UYAiABKAsyHC5nb29nbGUuYXBwZW5naW5lLnYxLlNlcnZpY2VSB3NlcnZpY2USOwoLdXBkYXRlX21hc2sYAyABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNrEicKD21pZ3JhdGVfdHJhZmZpYxgEIAEoCFIObWlncmF0ZVRyYWZmaWM='); + 'ChRVcGRhdGVTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjYKB3NlcnZpY2UYAi' + 'ABKAsyHC5nb29nbGUuYXBwZW5naW5lLnYxLlNlcnZpY2VSB3NlcnZpY2USOwoLdXBkYXRlX21h' + 'c2sYAyABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNrEicKD21pZ3' + 'JhdGVfdHJhZmZpYxgEIAEoCFIObWlncmF0ZVRyYWZmaWM='); + @$core.Deprecated('Use deleteServiceRequestDescriptor instead') const DeleteServiceRequest$json = { '1': 'DeleteServiceRequest', @@ -201,6 +227,7 @@ const DeleteServiceRequest$json = { /// Descriptor for `DeleteServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteServiceRequestDescriptor = $convert .base64Decode('ChREZWxldGVTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use listVersionsRequestDescriptor instead') const ListVersionsRequest$json = { '1': 'ListVersionsRequest', @@ -221,7 +248,10 @@ const ListVersionsRequest$json = { /// Descriptor for `ListVersionsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listVersionsRequestDescriptor = $convert.base64Decode( - 'ChNMaXN0VmVyc2lvbnNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EjQKBHZpZXcYAiABKA4yIC5nb29nbGUuYXBwZW5naW5lLnYxLlZlcnNpb25WaWV3UgR2aWV3EhsKCXBhZ2Vfc2l6ZRgDIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgEIAEoCVIJcGFnZVRva2Vu'); + 'ChNMaXN0VmVyc2lvbnNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EjQKBHZpZXcYAi' + 'ABKA4yIC5nb29nbGUuYXBwZW5naW5lLnYxLlZlcnNpb25WaWV3UgR2aWV3EhsKCXBhZ2Vfc2l6' + 'ZRgDIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgEIAEoCVIJcGFnZVRva2Vu'); + @$core.Deprecated('Use listVersionsResponseDescriptor instead') const ListVersionsResponse$json = { '1': 'ListVersionsResponse', @@ -240,7 +270,10 @@ const ListVersionsResponse$json = { /// Descriptor for `ListVersionsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listVersionsResponseDescriptor = $convert.base64Decode( - 'ChRMaXN0VmVyc2lvbnNSZXNwb25zZRI4Cgh2ZXJzaW9ucxgBIAMoCzIcLmdvb2dsZS5hcHBlbmdpbmUudjEuVmVyc2lvblIIdmVyc2lvbnMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + 'ChRMaXN0VmVyc2lvbnNSZXNwb25zZRI4Cgh2ZXJzaW9ucxgBIAMoCzIcLmdvb2dsZS5hcHBlbm' + 'dpbmUudjEuVmVyc2lvblIIdmVyc2lvbnMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0' + 'UGFnZVRva2Vu'); + @$core.Deprecated('Use getVersionRequestDescriptor instead') const GetVersionRequest$json = { '1': 'GetVersionRequest', @@ -259,7 +292,9 @@ const GetVersionRequest$json = { /// Descriptor for `GetVersionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getVersionRequestDescriptor = $convert.base64Decode( - 'ChFHZXRWZXJzaW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjQKBHZpZXcYAiABKA4yIC5nb29nbGUuYXBwZW5naW5lLnYxLlZlcnNpb25WaWV3UgR2aWV3'); + 'ChFHZXRWZXJzaW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjQKBHZpZXcYAiABKA4yIC' + '5nb29nbGUuYXBwZW5naW5lLnYxLlZlcnNpb25WaWV3UgR2aWV3'); + @$core.Deprecated('Use createVersionRequestDescriptor instead') const CreateVersionRequest$json = { '1': 'CreateVersionRequest', @@ -278,7 +313,9 @@ const CreateVersionRequest$json = { /// Descriptor for `CreateVersionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createVersionRequestDescriptor = $convert.base64Decode( - 'ChRDcmVhdGVWZXJzaW9uUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBI2Cgd2ZXJzaW9uGAIgASgLMhwuZ29vZ2xlLmFwcGVuZ2luZS52MS5WZXJzaW9uUgd2ZXJzaW9u'); + 'ChRDcmVhdGVWZXJzaW9uUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBI2Cgd2ZXJzaW' + '9uGAIgASgLMhwuZ29vZ2xlLmFwcGVuZ2luZS52MS5WZXJzaW9uUgd2ZXJzaW9u'); + @$core.Deprecated('Use updateVersionRequestDescriptor instead') const UpdateVersionRequest$json = { '1': 'UpdateVersionRequest', @@ -305,7 +342,10 @@ const UpdateVersionRequest$json = { /// Descriptor for `UpdateVersionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateVersionRequestDescriptor = $convert.base64Decode( - 'ChRVcGRhdGVWZXJzaW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjYKB3ZlcnNpb24YAiABKAsyHC5nb29nbGUuYXBwZW5naW5lLnYxLlZlcnNpb25SB3ZlcnNpb24SOwoLdXBkYXRlX21hc2sYAyABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNr'); + 'ChRVcGRhdGVWZXJzaW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjYKB3ZlcnNpb24YAi' + 'ABKAsyHC5nb29nbGUuYXBwZW5naW5lLnYxLlZlcnNpb25SB3ZlcnNpb24SOwoLdXBkYXRlX21h' + 'c2sYAyABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNr'); + @$core.Deprecated('Use deleteVersionRequestDescriptor instead') const DeleteVersionRequest$json = { '1': 'DeleteVersionRequest', @@ -317,6 +357,7 @@ const DeleteVersionRequest$json = { /// Descriptor for `DeleteVersionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteVersionRequestDescriptor = $convert .base64Decode('ChREZWxldGVWZXJzaW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use listInstancesRequestDescriptor instead') const ListInstancesRequest$json = { '1': 'ListInstancesRequest', @@ -329,7 +370,9 @@ const ListInstancesRequest$json = { /// Descriptor for `ListInstancesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listInstancesRequestDescriptor = $convert.base64Decode( - 'ChRMaXN0SW5zdGFuY2VzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbg=='); + 'ChRMaXN0SW5zdGFuY2VzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIbCglwYWdlX3' + 'NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbg=='); + @$core.Deprecated('Use listInstancesResponseDescriptor instead') const ListInstancesResponse$json = { '1': 'ListInstancesResponse', @@ -348,7 +391,10 @@ const ListInstancesResponse$json = { /// Descriptor for `ListInstancesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listInstancesResponseDescriptor = $convert.base64Decode( - 'ChVMaXN0SW5zdGFuY2VzUmVzcG9uc2USOwoJaW5zdGFuY2VzGAEgAygLMh0uZ29vZ2xlLmFwcGVuZ2luZS52MS5JbnN0YW5jZVIJaW5zdGFuY2VzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChVMaXN0SW5zdGFuY2VzUmVzcG9uc2USOwoJaW5zdGFuY2VzGAEgAygLMh0uZ29vZ2xlLmFwcG' + 'VuZ2luZS52MS5JbnN0YW5jZVIJaW5zdGFuY2VzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVIN' + 'bmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use getInstanceRequestDescriptor instead') const GetInstanceRequest$json = { '1': 'GetInstanceRequest', @@ -360,6 +406,7 @@ const GetInstanceRequest$json = { /// Descriptor for `GetInstanceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getInstanceRequestDescriptor = $convert .base64Decode('ChJHZXRJbnN0YW5jZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use deleteInstanceRequestDescriptor instead') const DeleteInstanceRequest$json = { '1': 'DeleteInstanceRequest', @@ -372,6 +419,7 @@ const DeleteInstanceRequest$json = { final $typed_data.Uint8List deleteInstanceRequestDescriptor = $convert.base64Decode( 'ChVEZWxldGVJbnN0YW5jZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use debugInstanceRequestDescriptor instead') const DebugInstanceRequest$json = { '1': 'DebugInstanceRequest', @@ -383,7 +431,9 @@ const DebugInstanceRequest$json = { /// Descriptor for `DebugInstanceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List debugInstanceRequestDescriptor = $convert.base64Decode( - 'ChREZWJ1Z0luc3RhbmNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEhcKB3NzaF9rZXkYAiABKAlSBnNzaEtleQ=='); + 'ChREZWJ1Z0luc3RhbmNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEhcKB3NzaF9rZXkYAi' + 'ABKAlSBnNzaEtleQ=='); + @$core.Deprecated('Use listIngressRulesRequestDescriptor instead') const ListIngressRulesRequest$json = { '1': 'ListIngressRulesRequest', @@ -396,9 +446,11 @@ const ListIngressRulesRequest$json = { }; /// Descriptor for `ListIngressRulesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listIngressRulesRequestDescriptor = - $convert.base64Decode( - 'ChdMaXN0SW5ncmVzc1J1bGVzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbhIpChBtYXRjaGluZ19hZGRyZXNzGAQgASgJUg9tYXRjaGluZ0FkZHJlc3M='); +final $typed_data.Uint8List listIngressRulesRequestDescriptor = $convert.base64Decode( + 'ChdMaXN0SW5ncmVzc1J1bGVzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIbCglwYW' + 'dlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbhIp' + 'ChBtYXRjaGluZ19hZGRyZXNzGAQgASgJUg9tYXRjaGluZ0FkZHJlc3M='); + @$core.Deprecated('Use listIngressRulesResponseDescriptor instead') const ListIngressRulesResponse$json = { '1': 'ListIngressRulesResponse', @@ -416,9 +468,11 @@ const ListIngressRulesResponse$json = { }; /// Descriptor for `ListIngressRulesResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listIngressRulesResponseDescriptor = - $convert.base64Decode( - 'ChhMaXN0SW5ncmVzc1J1bGVzUmVzcG9uc2USRgoNaW5ncmVzc19ydWxlcxgBIAMoCzIhLmdvb2dsZS5hcHBlbmdpbmUudjEuRmlyZXdhbGxSdWxlUgxpbmdyZXNzUnVsZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); +final $typed_data.Uint8List listIngressRulesResponseDescriptor = $convert.base64Decode( + 'ChhMaXN0SW5ncmVzc1J1bGVzUmVzcG9uc2USRgoNaW5ncmVzc19ydWxlcxgBIAMoCzIhLmdvb2' + 'dsZS5hcHBlbmdpbmUudjEuRmlyZXdhbGxSdWxlUgxpbmdyZXNzUnVsZXMSJgoPbmV4dF9wYWdl' + 'X3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + @$core.Deprecated('Use batchUpdateIngressRulesRequestDescriptor instead') const BatchUpdateIngressRulesRequest$json = { '1': 'BatchUpdateIngressRulesRequest', @@ -438,7 +492,10 @@ const BatchUpdateIngressRulesRequest$json = { /// Descriptor for `BatchUpdateIngressRulesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List batchUpdateIngressRulesRequestDescriptor = $convert.base64Decode( - 'Ch5CYXRjaFVwZGF0ZUluZ3Jlc3NSdWxlc1JlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRJGCg1pbmdyZXNzX3J1bGVzGAIgAygLMiEuZ29vZ2xlLmFwcGVuZ2luZS52MS5GaXJld2FsbFJ1bGVSDGluZ3Jlc3NSdWxlcw=='); + 'Ch5CYXRjaFVwZGF0ZUluZ3Jlc3NSdWxlc1JlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRJGCg' + '1pbmdyZXNzX3J1bGVzGAIgAygLMiEuZ29vZ2xlLmFwcGVuZ2luZS52MS5GaXJld2FsbFJ1bGVS' + 'DGluZ3Jlc3NSdWxlcw=='); + @$core.Deprecated('Use batchUpdateIngressRulesResponseDescriptor instead') const BatchUpdateIngressRulesResponse$json = { '1': 'BatchUpdateIngressRulesResponse', @@ -457,7 +514,9 @@ const BatchUpdateIngressRulesResponse$json = { /// Descriptor for `BatchUpdateIngressRulesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List batchUpdateIngressRulesResponseDescriptor = $convert.base64Decode( - 'Ch9CYXRjaFVwZGF0ZUluZ3Jlc3NSdWxlc1Jlc3BvbnNlEkYKDWluZ3Jlc3NfcnVsZXMYASADKAsyIS5nb29nbGUuYXBwZW5naW5lLnYxLkZpcmV3YWxsUnVsZVIMaW5ncmVzc1J1bGVz'); + 'Ch9CYXRjaFVwZGF0ZUluZ3Jlc3NSdWxlc1Jlc3BvbnNlEkYKDWluZ3Jlc3NfcnVsZXMYASADKA' + 'syIS5nb29nbGUuYXBwZW5naW5lLnYxLkZpcmV3YWxsUnVsZVIMaW5ncmVzc1J1bGVz'); + @$core.Deprecated('Use createIngressRuleRequestDescriptor instead') const CreateIngressRuleRequest$json = { '1': 'CreateIngressRuleRequest', @@ -477,7 +536,9 @@ const CreateIngressRuleRequest$json = { /// Descriptor for `CreateIngressRuleRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createIngressRuleRequestDescriptor = $convert.base64Decode( - 'ChhDcmVhdGVJbmdyZXNzUnVsZVJlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbnQSNQoEcnVsZRgCIAEoCzIhLmdvb2dsZS5hcHBlbmdpbmUudjEuRmlyZXdhbGxSdWxlUgRydWxl'); + 'ChhDcmVhdGVJbmdyZXNzUnVsZVJlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbnQSNQoEcn' + 'VsZRgCIAEoCzIhLmdvb2dsZS5hcHBlbmdpbmUudjEuRmlyZXdhbGxSdWxlUgRydWxl'); + @$core.Deprecated('Use getIngressRuleRequestDescriptor instead') const GetIngressRuleRequest$json = { '1': 'GetIngressRuleRequest', @@ -490,6 +551,7 @@ const GetIngressRuleRequest$json = { final $typed_data.Uint8List getIngressRuleRequestDescriptor = $convert.base64Decode( 'ChVHZXRJbmdyZXNzUnVsZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use updateIngressRuleRequestDescriptor instead') const UpdateIngressRuleRequest$json = { '1': 'UpdateIngressRuleRequest', @@ -515,9 +577,11 @@ const UpdateIngressRuleRequest$json = { }; /// Descriptor for `UpdateIngressRuleRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateIngressRuleRequestDescriptor = - $convert.base64Decode( - 'ChhVcGRhdGVJbmdyZXNzUnVsZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRI1CgRydWxlGAIgASgLMiEuZ29vZ2xlLmFwcGVuZ2luZS52MS5GaXJld2FsbFJ1bGVSBHJ1bGUSOwoLdXBkYXRlX21hc2sYAyABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNr'); +final $typed_data.Uint8List updateIngressRuleRequestDescriptor = $convert.base64Decode( + 'ChhVcGRhdGVJbmdyZXNzUnVsZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRI1CgRydWxlGA' + 'IgASgLMiEuZ29vZ2xlLmFwcGVuZ2luZS52MS5GaXJld2FsbFJ1bGVSBHJ1bGUSOwoLdXBkYXRl' + 'X21hc2sYAyABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNr'); + @$core.Deprecated('Use deleteIngressRuleRequestDescriptor instead') const DeleteIngressRuleRequest$json = { '1': 'DeleteIngressRuleRequest', @@ -530,6 +594,7 @@ const DeleteIngressRuleRequest$json = { final $typed_data.Uint8List deleteIngressRuleRequestDescriptor = $convert.base64Decode( 'ChhEZWxldGVJbmdyZXNzUnVsZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use listAuthorizedDomainsRequestDescriptor instead') const ListAuthorizedDomainsRequest$json = { '1': 'ListAuthorizedDomainsRequest', @@ -543,7 +608,10 @@ const ListAuthorizedDomainsRequest$json = { /// Descriptor for `ListAuthorizedDomainsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listAuthorizedDomainsRequestDescriptor = $convert.base64Decode( - 'ChxMaXN0QXV0aG9yaXplZERvbWFpbnNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); + 'ChxMaXN0QXV0aG9yaXplZERvbWFpbnNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50Eh' + 'sKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRv' + 'a2Vu'); + @$core.Deprecated('Use listAuthorizedDomainsResponseDescriptor instead') const ListAuthorizedDomainsResponse$json = { '1': 'ListAuthorizedDomainsResponse', @@ -563,7 +631,10 @@ const ListAuthorizedDomainsResponse$json = { /// Descriptor for `ListAuthorizedDomainsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listAuthorizedDomainsResponseDescriptor = $convert.base64Decode( - 'Ch1MaXN0QXV0aG9yaXplZERvbWFpbnNSZXNwb25zZRI/Cgdkb21haW5zGAEgAygLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MS5BdXRob3JpemVkRG9tYWluUgdkb21haW5zEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'Ch1MaXN0QXV0aG9yaXplZERvbWFpbnNSZXNwb25zZRI/Cgdkb21haW5zGAEgAygLMiUuZ29vZ2' + 'xlLmFwcGVuZ2luZS52MS5BdXRob3JpemVkRG9tYWluUgdkb21haW5zEiYKD25leHRfcGFnZV90' + 'b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use listAuthorizedCertificatesRequestDescriptor instead') const ListAuthorizedCertificatesRequest$json = { '1': 'ListAuthorizedCertificatesRequest', @@ -585,7 +656,11 @@ const ListAuthorizedCertificatesRequest$json = { /// Descriptor for `ListAuthorizedCertificatesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listAuthorizedCertificatesRequestDescriptor = $convert.base64Decode( - 'CiFMaXN0QXV0aG9yaXplZENlcnRpZmljYXRlc1JlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbnQSQgoEdmlldxgEIAEoDjIuLmdvb2dsZS5hcHBlbmdpbmUudjEuQXV0aG9yaXplZENlcnRpZmljYXRlVmlld1IEdmlldxIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbg=='); + 'CiFMaXN0QXV0aG9yaXplZENlcnRpZmljYXRlc1JlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYX' + 'JlbnQSQgoEdmlldxgEIAEoDjIuLmdvb2dsZS5hcHBlbmdpbmUudjEuQXV0aG9yaXplZENlcnRp' + 'ZmljYXRlVmlld1IEdmlldxIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG' + '9rZW4YAyABKAlSCXBhZ2VUb2tlbg=='); + @$core.Deprecated('Use listAuthorizedCertificatesResponseDescriptor instead') const ListAuthorizedCertificatesResponse$json = { '1': 'ListAuthorizedCertificatesResponse', @@ -605,7 +680,10 @@ const ListAuthorizedCertificatesResponse$json = { /// Descriptor for `ListAuthorizedCertificatesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listAuthorizedCertificatesResponseDescriptor = $convert.base64Decode( - 'CiJMaXN0QXV0aG9yaXplZENlcnRpZmljYXRlc1Jlc3BvbnNlEk4KDGNlcnRpZmljYXRlcxgBIAMoCzIqLmdvb2dsZS5hcHBlbmdpbmUudjEuQXV0aG9yaXplZENlcnRpZmljYXRlUgxjZXJ0aWZpY2F0ZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + 'CiJMaXN0QXV0aG9yaXplZENlcnRpZmljYXRlc1Jlc3BvbnNlEk4KDGNlcnRpZmljYXRlcxgBIA' + 'MoCzIqLmdvb2dsZS5hcHBlbmdpbmUudjEuQXV0aG9yaXplZENlcnRpZmljYXRlUgxjZXJ0aWZp' + 'Y2F0ZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + @$core.Deprecated('Use getAuthorizedCertificateRequestDescriptor instead') const GetAuthorizedCertificateRequest$json = { '1': 'GetAuthorizedCertificateRequest', @@ -625,7 +703,10 @@ const GetAuthorizedCertificateRequest$json = { /// Descriptor for `GetAuthorizedCertificateRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getAuthorizedCertificateRequestDescriptor = $convert.base64Decode( - 'Ch9HZXRBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSQgoEdmlldxgCIAEoDjIuLmdvb2dsZS5hcHBlbmdpbmUudjEuQXV0aG9yaXplZENlcnRpZmljYXRlVmlld1IEdmlldw=='); + 'Ch9HZXRBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSQg' + 'oEdmlldxgCIAEoDjIuLmdvb2dsZS5hcHBlbmdpbmUudjEuQXV0aG9yaXplZENlcnRpZmljYXRl' + 'Vmlld1IEdmlldw=='); + @$core.Deprecated('Use createAuthorizedCertificateRequestDescriptor instead') const CreateAuthorizedCertificateRequest$json = { '1': 'CreateAuthorizedCertificateRequest', @@ -645,7 +726,10 @@ const CreateAuthorizedCertificateRequest$json = { /// Descriptor for `CreateAuthorizedCertificateRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createAuthorizedCertificateRequestDescriptor = $convert.base64Decode( - 'CiJDcmVhdGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EkwKC2NlcnRpZmljYXRlGAIgASgLMiouZ29vZ2xlLmFwcGVuZ2luZS52MS5BdXRob3JpemVkQ2VydGlmaWNhdGVSC2NlcnRpZmljYXRl'); + 'CiJDcmVhdGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcG' + 'FyZW50EkwKC2NlcnRpZmljYXRlGAIgASgLMiouZ29vZ2xlLmFwcGVuZ2luZS52MS5BdXRob3Jp' + 'emVkQ2VydGlmaWNhdGVSC2NlcnRpZmljYXRl'); + @$core.Deprecated('Use updateAuthorizedCertificateRequestDescriptor instead') const UpdateAuthorizedCertificateRequest$json = { '1': 'UpdateAuthorizedCertificateRequest', @@ -673,7 +757,11 @@ const UpdateAuthorizedCertificateRequest$json = { /// Descriptor for `UpdateAuthorizedCertificateRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateAuthorizedCertificateRequestDescriptor = $convert.base64Decode( - 'CiJVcGRhdGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSTAoLY2VydGlmaWNhdGUYAiABKAsyKi5nb29nbGUuYXBwZW5naW5lLnYxLkF1dGhvcml6ZWRDZXJ0aWZpY2F0ZVILY2VydGlmaWNhdGUSOwoLdXBkYXRlX21hc2sYAyABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNr'); + 'CiJVcGRhdGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbW' + 'USTAoLY2VydGlmaWNhdGUYAiABKAsyKi5nb29nbGUuYXBwZW5naW5lLnYxLkF1dGhvcml6ZWRD' + 'ZXJ0aWZpY2F0ZVILY2VydGlmaWNhdGUSOwoLdXBkYXRlX21hc2sYAyABKAsyGi5nb29nbGUucH' + 'JvdG9idWYuRmllbGRNYXNrUgp1cGRhdGVNYXNr'); + @$core.Deprecated('Use deleteAuthorizedCertificateRequestDescriptor instead') const DeleteAuthorizedCertificateRequest$json = { '1': 'DeleteAuthorizedCertificateRequest', @@ -685,7 +773,9 @@ const DeleteAuthorizedCertificateRequest$json = { /// Descriptor for `DeleteAuthorizedCertificateRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteAuthorizedCertificateRequestDescriptor = $convert.base64Decode( - 'CiJEZWxldGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWU='); + 'CiJEZWxldGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbW' + 'U='); + @$core.Deprecated('Use listDomainMappingsRequestDescriptor instead') const ListDomainMappingsRequest$json = { '1': 'ListDomainMappingsRequest', @@ -697,9 +787,10 @@ const ListDomainMappingsRequest$json = { }; /// Descriptor for `ListDomainMappingsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listDomainMappingsRequestDescriptor = - $convert.base64Decode( - 'ChlMaXN0RG9tYWluTWFwcGluZ3NSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); +final $typed_data.Uint8List listDomainMappingsRequestDescriptor = $convert.base64Decode( + 'ChlMaXN0RG9tYWluTWFwcGluZ3NSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCX' + 'BhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); + @$core.Deprecated('Use listDomainMappingsResponseDescriptor instead') const ListDomainMappingsResponse$json = { '1': 'ListDomainMappingsResponse', @@ -719,7 +810,10 @@ const ListDomainMappingsResponse$json = { /// Descriptor for `ListDomainMappingsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listDomainMappingsResponseDescriptor = $convert.base64Decode( - 'ChpMaXN0RG9tYWluTWFwcGluZ3NSZXNwb25zZRJLCg9kb21haW5fbWFwcGluZ3MYASADKAsyIi5nb29nbGUuYXBwZW5naW5lLnYxLkRvbWFpbk1hcHBpbmdSDmRvbWFpbk1hcHBpbmdzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChpMaXN0RG9tYWluTWFwcGluZ3NSZXNwb25zZRJLCg9kb21haW5fbWFwcGluZ3MYASADKAsyIi' + '5nb29nbGUuYXBwZW5naW5lLnYxLkRvbWFpbk1hcHBpbmdSDmRvbWFpbk1hcHBpbmdzEiYKD25l' + 'eHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use getDomainMappingRequestDescriptor instead') const GetDomainMappingRequest$json = { '1': 'GetDomainMappingRequest', @@ -732,6 +826,7 @@ const GetDomainMappingRequest$json = { final $typed_data.Uint8List getDomainMappingRequestDescriptor = $convert.base64Decode( 'ChdHZXREb21haW5NYXBwaW5nUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use createDomainMappingRequestDescriptor instead') const CreateDomainMappingRequest$json = { '1': 'CreateDomainMappingRequest', @@ -757,9 +852,12 @@ const CreateDomainMappingRequest$json = { }; /// Descriptor for `CreateDomainMappingRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List createDomainMappingRequestDescriptor = - $convert.base64Decode( - 'ChpDcmVhdGVEb21haW5NYXBwaW5nUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBJJCg5kb21haW5fbWFwcGluZxgCIAEoCzIiLmdvb2dsZS5hcHBlbmdpbmUudjEuRG9tYWluTWFwcGluZ1INZG9tYWluTWFwcGluZxJYChFvdmVycmlkZV9zdHJhdGVneRgEIAEoDjIrLmdvb2dsZS5hcHBlbmdpbmUudjEuRG9tYWluT3ZlcnJpZGVTdHJhdGVneVIQb3ZlcnJpZGVTdHJhdGVneQ=='); +final $typed_data.Uint8List createDomainMappingRequestDescriptor = $convert.base64Decode( + 'ChpDcmVhdGVEb21haW5NYXBwaW5nUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBJJCg' + '5kb21haW5fbWFwcGluZxgCIAEoCzIiLmdvb2dsZS5hcHBlbmdpbmUudjEuRG9tYWluTWFwcGlu' + 'Z1INZG9tYWluTWFwcGluZxJYChFvdmVycmlkZV9zdHJhdGVneRgEIAEoDjIrLmdvb2dsZS5hcH' + 'BlbmdpbmUudjEuRG9tYWluT3ZlcnJpZGVTdHJhdGVneVIQb3ZlcnJpZGVTdHJhdGVneQ=='); + @$core.Deprecated('Use updateDomainMappingRequestDescriptor instead') const UpdateDomainMappingRequest$json = { '1': 'UpdateDomainMappingRequest', @@ -785,9 +883,12 @@ const UpdateDomainMappingRequest$json = { }; /// Descriptor for `UpdateDomainMappingRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateDomainMappingRequestDescriptor = - $convert.base64Decode( - 'ChpVcGRhdGVEb21haW5NYXBwaW5nUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEkkKDmRvbWFpbl9tYXBwaW5nGAIgASgLMiIuZ29vZ2xlLmFwcGVuZ2luZS52MS5Eb21haW5NYXBwaW5nUg1kb21haW5NYXBwaW5nEjsKC3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IKdXBkYXRlTWFzaw=='); +final $typed_data.Uint8List updateDomainMappingRequestDescriptor = $convert.base64Decode( + 'ChpVcGRhdGVEb21haW5NYXBwaW5nUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEkkKDmRvbW' + 'Fpbl9tYXBwaW5nGAIgASgLMiIuZ29vZ2xlLmFwcGVuZ2luZS52MS5Eb21haW5NYXBwaW5nUg1k' + 'b21haW5NYXBwaW5nEjsKC3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZW' + 'xkTWFza1IKdXBkYXRlTWFzaw=='); + @$core.Deprecated('Use deleteDomainMappingRequestDescriptor instead') const DeleteDomainMappingRequest$json = { '1': 'DeleteDomainMappingRequest', diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pb.dart index ec5a6ac7..69c97a2b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pb.dart @@ -1,79 +1,65 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/application.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/duration.pb.dart' as $0; - +import '../../protobuf/duration.pb.dart' as $51; import 'application.pbenum.dart'; export 'application.pbenum.dart'; +/// Identity-Aware Proxy class Application_IdentityAwareProxy extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Application.IdentityAwareProxy', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'enabled') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'oauth2ClientId') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'oauth2ClientSecret') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'oauth2ClientSecretSha256') - ..hasRequiredFields = false; - - Application_IdentityAwareProxy._() : super(); factory Application_IdentityAwareProxy({ $core.bool? enabled, $core.String? oauth2ClientId, $core.String? oauth2ClientSecret, $core.String? oauth2ClientSecretSha256, }) { - final _result = create(); + final $result = create(); if (enabled != null) { - _result.enabled = enabled; + $result.enabled = enabled; } if (oauth2ClientId != null) { - _result.oauth2ClientId = oauth2ClientId; + $result.oauth2ClientId = oauth2ClientId; } if (oauth2ClientSecret != null) { - _result.oauth2ClientSecret = oauth2ClientSecret; + $result.oauth2ClientSecret = oauth2ClientSecret; } if (oauth2ClientSecretSha256 != null) { - _result.oauth2ClientSecretSha256 = oauth2ClientSecretSha256; + $result.oauth2ClientSecretSha256 = oauth2ClientSecretSha256; } - return _result; + return $result; } + Application_IdentityAwareProxy._() : super(); factory Application_IdentityAwareProxy.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Application_IdentityAwareProxy.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Application.IdentityAwareProxy', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'enabled') + ..aOS(2, _omitFieldNames ? '' : 'oauth2ClientId') + ..aOS(3, _omitFieldNames ? '' : 'oauth2ClientSecret') + ..aOS(4, _omitFieldNames ? '' : 'oauth2ClientSecretSha256') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -86,8 +72,10 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { void Function(Application_IdentityAwareProxy) updates) => super.copyWith( (message) => updates(message as Application_IdentityAwareProxy)) - as Application_IdentityAwareProxy; // ignore: deprecated_member_use + as Application_IdentityAwareProxy; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Application_IdentityAwareProxy create() => Application_IdentityAwareProxy._(); @@ -99,6 +87,11 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Application_IdentityAwareProxy? _defaultInstance; + /// Whether the serving infrastructure will authenticate and + /// authorize all incoming requests. + /// + /// If true, the `oauth2_client_id` and `oauth2_client_secret` + /// fields must be non-empty. @$pb.TagNumber(1) $core.bool get enabled => $_getBF(0); @$pb.TagNumber(1) @@ -111,6 +104,7 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearEnabled() => clearField(1); + /// OAuth2 client ID to use for the authentication flow. @$pb.TagNumber(2) $core.String get oauth2ClientId => $_getSZ(1); @$pb.TagNumber(2) @@ -123,6 +117,13 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOauth2ClientId() => clearField(2); + /// OAuth2 client secret to use for the authentication flow. + /// + /// For security reasons, this value cannot be retrieved via the API. + /// Instead, the SHA-256 hash of the value is returned in the + /// `oauth2_client_secret_sha256` field. + /// + /// @InputOnly @$pb.TagNumber(3) $core.String get oauth2ClientSecret => $_getSZ(2); @$pb.TagNumber(3) @@ -135,6 +136,9 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearOauth2ClientSecret() => clearField(3); + /// Hex-encoded SHA-256 hash of the client secret. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.String get oauth2ClientSecretSha256 => $_getSZ(3); @$pb.TagNumber(4) @@ -148,48 +152,39 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { void clearOauth2ClientSecretSha256() => clearField(4); } +/// The feature specific settings to be used in the application. These define +/// behaviors that are user configurable. class Application_FeatureSettings extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Application.FeatureSettings', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'splitHealthChecks') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'useContainerOptimizedOs') - ..hasRequiredFields = false; - - Application_FeatureSettings._() : super(); factory Application_FeatureSettings({ $core.bool? splitHealthChecks, $core.bool? useContainerOptimizedOs, }) { - final _result = create(); + final $result = create(); if (splitHealthChecks != null) { - _result.splitHealthChecks = splitHealthChecks; + $result.splitHealthChecks = splitHealthChecks; } if (useContainerOptimizedOs != null) { - _result.useContainerOptimizedOs = useContainerOptimizedOs; + $result.useContainerOptimizedOs = useContainerOptimizedOs; } - return _result; + return $result; } + Application_FeatureSettings._() : super(); factory Application_FeatureSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Application_FeatureSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Application.FeatureSettings', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'splitHealthChecks') + ..aOB(2, _omitFieldNames ? '' : 'useContainerOptimizedOs') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -202,8 +197,10 @@ class Application_FeatureSettings extends $pb.GeneratedMessage { void Function(Application_FeatureSettings) updates) => super.copyWith( (message) => updates(message as Application_FeatureSettings)) - as Application_FeatureSettings; // ignore: deprecated_member_use + as Application_FeatureSettings; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Application_FeatureSettings create() => Application_FeatureSettings._(); @@ -215,6 +212,12 @@ class Application_FeatureSettings extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Application_FeatureSettings? _defaultInstance; + /// Boolean value indicating if split health checks should be used instead + /// of the legacy health checks. At an app.yaml level, this means defaulting + /// to 'readiness_check' and 'liveness_check' values instead of + /// 'health_check' ones. Once the legacy 'health_check' behavior is + /// deprecated, and this value is always true, this setting can + /// be removed. @$pb.TagNumber(1) $core.bool get splitHealthChecks => $_getBF(0); @$pb.TagNumber(1) @@ -227,6 +230,8 @@ class Application_FeatureSettings extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSplitHealthChecks() => clearField(1); + /// If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) + /// base image for VMs, rather than a base Debian image. @$pb.TagNumber(2) $core.bool get useContainerOptimizedOs => $_getBF(1); @$pb.TagNumber(2) @@ -240,47 +245,9 @@ class Application_FeatureSettings extends $pb.GeneratedMessage { void clearUseContainerOptimizedOs() => clearField(2); } +/// An Application resource contains the top-level configuration of an App +/// Engine application. class Application extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Application', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'dispatchRules', - $pb.PbFieldType.PM, - subBuilder: UrlDispatchRule.create) - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authDomain') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'locationId') - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'codeBucket') - ..aOM<$0.Duration>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultCookieExpiration', subBuilder: $0.Duration.create) - ..e(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'servingStatus', $pb.PbFieldType.OE, defaultOrMaker: Application_ServingStatus.UNSPECIFIED, valueOf: Application_ServingStatus.valueOf, enumValues: Application_ServingStatus.values) - ..aOS(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultHostname') - ..aOS(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultBucket') - ..aOM(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'iap', subBuilder: Application_IdentityAwareProxy.create) - ..aOS(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'gcrDomain') - ..e(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'databaseType', $pb.PbFieldType.OE, defaultOrMaker: Application_DatabaseType.DATABASE_TYPE_UNSPECIFIED, valueOf: Application_DatabaseType.valueOf, enumValues: Application_DatabaseType.values) - ..aOM(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'featureSettings', subBuilder: Application_FeatureSettings.create) - ..hasRequiredFields = false; - - Application._() : super(); factory Application({ $core.String? name, $core.String? id, @@ -288,66 +255,108 @@ class Application extends $pb.GeneratedMessage { $core.String? authDomain, $core.String? locationId, $core.String? codeBucket, - $0.Duration? defaultCookieExpiration, + $51.Duration? defaultCookieExpiration, Application_ServingStatus? servingStatus, $core.String? defaultHostname, $core.String? defaultBucket, + $core.String? serviceAccount, Application_IdentityAwareProxy? iap, $core.String? gcrDomain, Application_DatabaseType? databaseType, Application_FeatureSettings? featureSettings, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (dispatchRules != null) { - _result.dispatchRules.addAll(dispatchRules); + $result.dispatchRules.addAll(dispatchRules); } if (authDomain != null) { - _result.authDomain = authDomain; + $result.authDomain = authDomain; } if (locationId != null) { - _result.locationId = locationId; + $result.locationId = locationId; } if (codeBucket != null) { - _result.codeBucket = codeBucket; + $result.codeBucket = codeBucket; } if (defaultCookieExpiration != null) { - _result.defaultCookieExpiration = defaultCookieExpiration; + $result.defaultCookieExpiration = defaultCookieExpiration; } if (servingStatus != null) { - _result.servingStatus = servingStatus; + $result.servingStatus = servingStatus; } if (defaultHostname != null) { - _result.defaultHostname = defaultHostname; + $result.defaultHostname = defaultHostname; } if (defaultBucket != null) { - _result.defaultBucket = defaultBucket; + $result.defaultBucket = defaultBucket; + } + if (serviceAccount != null) { + $result.serviceAccount = serviceAccount; } if (iap != null) { - _result.iap = iap; + $result.iap = iap; } if (gcrDomain != null) { - _result.gcrDomain = gcrDomain; + $result.gcrDomain = gcrDomain; } if (databaseType != null) { - _result.databaseType = databaseType; + $result.databaseType = databaseType; } if (featureSettings != null) { - _result.featureSettings = featureSettings; + $result.featureSettings = featureSettings; } - return _result; + return $result; } + Application._() : super(); factory Application.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Application.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Application', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..pc( + 3, _omitFieldNames ? '' : 'dispatchRules', $pb.PbFieldType.PM, + subBuilder: UrlDispatchRule.create) + ..aOS(6, _omitFieldNames ? '' : 'authDomain') + ..aOS(7, _omitFieldNames ? '' : 'locationId') + ..aOS(8, _omitFieldNames ? '' : 'codeBucket') + ..aOM<$51.Duration>(9, _omitFieldNames ? '' : 'defaultCookieExpiration', + subBuilder: $51.Duration.create) + ..e( + 10, _omitFieldNames ? '' : 'servingStatus', $pb.PbFieldType.OE, + defaultOrMaker: Application_ServingStatus.UNSPECIFIED, + valueOf: Application_ServingStatus.valueOf, + enumValues: Application_ServingStatus.values) + ..aOS(11, _omitFieldNames ? '' : 'defaultHostname') + ..aOS(12, _omitFieldNames ? '' : 'defaultBucket') + ..aOS(13, _omitFieldNames ? '' : 'serviceAccount') + ..aOM(14, _omitFieldNames ? '' : 'iap', + subBuilder: Application_IdentityAwareProxy.create) + ..aOS(16, _omitFieldNames ? '' : 'gcrDomain') + ..e( + 17, _omitFieldNames ? '' : 'databaseType', $pb.PbFieldType.OE, + defaultOrMaker: Application_DatabaseType.DATABASE_TYPE_UNSPECIFIED, + valueOf: Application_DatabaseType.valueOf, + enumValues: Application_DatabaseType.values) + ..aOM( + 18, _omitFieldNames ? '' : 'featureSettings', + subBuilder: Application_FeatureSettings.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') @@ -357,8 +366,10 @@ class Application extends $pb.GeneratedMessage { 'Will be removed in next major version') Application copyWith(void Function(Application) updates) => super.copyWith((message) => updates(message as Application)) - as Application; // ignore: deprecated_member_use + as Application; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Application create() => Application._(); Application createEmptyInstance() => create(); @@ -368,6 +379,10 @@ class Application extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Application? _defaultInstance; + /// Full path to the Application resource in the API. + /// Example: `apps/myapp`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -380,6 +395,10 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Identifier of the Application resource. This identifier is equivalent + /// to the project ID of the Google Cloud Platform project where you want to + /// deploy your application. + /// Example: `myapp`. @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -392,9 +411,16 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// HTTP path dispatch rules for requests to the application that do not + /// explicitly target a service or version. Rules are order-dependent. + /// Up to 20 dispatch rules can be supported. @$pb.TagNumber(3) $core.List get dispatchRules => $_getList(2); + /// Google Apps authentication domain that controls which users can access + /// this application. + /// + /// Defaults to open access for any Google Account. @$pb.TagNumber(6) $core.String get authDomain => $_getSZ(3); @$pb.TagNumber(6) @@ -407,6 +433,14 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearAuthDomain() => clearField(6); + /// Location from which this application runs. Application instances + /// run out of the data centers in the specified location, which is also where + /// all of the application's end user content is stored. + /// + /// Defaults to `us-central`. + /// + /// View the list of + /// [supported locations](https://cloud.google.com/appengine/docs/locations). @$pb.TagNumber(7) $core.String get locationId => $_getSZ(4); @$pb.TagNumber(7) @@ -419,6 +453,11 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearLocationId() => clearField(7); + /// Google Cloud Storage bucket that can be used for storing files + /// associated with this application. This bucket is associated with the + /// application and can be used by the gcloud deployment commands. + /// + /// @OutputOnly @$pb.TagNumber(8) $core.String get codeBucket => $_getSZ(5); @$pb.TagNumber(8) @@ -431,10 +470,11 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearCodeBucket() => clearField(8); + /// Cookie expiration policy for this application. @$pb.TagNumber(9) - $0.Duration get defaultCookieExpiration => $_getN(6); + $51.Duration get defaultCookieExpiration => $_getN(6); @$pb.TagNumber(9) - set defaultCookieExpiration($0.Duration v) { + set defaultCookieExpiration($51.Duration v) { setField(9, v); } @@ -443,8 +483,9 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearDefaultCookieExpiration() => clearField(9); @$pb.TagNumber(9) - $0.Duration ensureDefaultCookieExpiration() => $_ensure(6); + $51.Duration ensureDefaultCookieExpiration() => $_ensure(6); + /// Serving status of this application. @$pb.TagNumber(10) Application_ServingStatus get servingStatus => $_getN(7); @$pb.TagNumber(10) @@ -457,6 +498,9 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearServingStatus() => clearField(10); + /// Hostname used to reach this application, as resolved by App Engine. + /// + /// @OutputOnly @$pb.TagNumber(11) $core.String get defaultHostname => $_getSZ(8); @$pb.TagNumber(11) @@ -469,6 +513,10 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearDefaultHostname() => clearField(11); + /// Google Cloud Storage bucket that can be used by this application to store + /// content. + /// + /// @OutputOnly @$pb.TagNumber(12) $core.String get defaultBucket => $_getSZ(9); @$pb.TagNumber(12) @@ -481,110 +529,116 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearDefaultBucket() => clearField(12); + /// The service account associated with the application. + /// This is the app-level default identity. If no identity provided during + /// create version, Admin API will fallback to this one. + @$pb.TagNumber(13) + $core.String get serviceAccount => $_getSZ(10); + @$pb.TagNumber(13) + set serviceAccount($core.String v) { + $_setString(10, v); + } + + @$pb.TagNumber(13) + $core.bool hasServiceAccount() => $_has(10); + @$pb.TagNumber(13) + void clearServiceAccount() => clearField(13); + @$pb.TagNumber(14) - Application_IdentityAwareProxy get iap => $_getN(10); + Application_IdentityAwareProxy get iap => $_getN(11); @$pb.TagNumber(14) set iap(Application_IdentityAwareProxy v) { setField(14, v); } @$pb.TagNumber(14) - $core.bool hasIap() => $_has(10); + $core.bool hasIap() => $_has(11); @$pb.TagNumber(14) void clearIap() => clearField(14); @$pb.TagNumber(14) - Application_IdentityAwareProxy ensureIap() => $_ensure(10); + Application_IdentityAwareProxy ensureIap() => $_ensure(11); + /// The Google Container Registry domain used for storing managed build docker + /// images for this application. @$pb.TagNumber(16) - $core.String get gcrDomain => $_getSZ(11); + $core.String get gcrDomain => $_getSZ(12); @$pb.TagNumber(16) set gcrDomain($core.String v) { - $_setString(11, v); + $_setString(12, v); } @$pb.TagNumber(16) - $core.bool hasGcrDomain() => $_has(11); + $core.bool hasGcrDomain() => $_has(12); @$pb.TagNumber(16) void clearGcrDomain() => clearField(16); + /// The type of the Cloud Firestore or Cloud Datastore database associated with + /// this application. @$pb.TagNumber(17) - Application_DatabaseType get databaseType => $_getN(12); + Application_DatabaseType get databaseType => $_getN(13); @$pb.TagNumber(17) set databaseType(Application_DatabaseType v) { setField(17, v); } @$pb.TagNumber(17) - $core.bool hasDatabaseType() => $_has(12); + $core.bool hasDatabaseType() => $_has(13); @$pb.TagNumber(17) void clearDatabaseType() => clearField(17); + /// The feature specific settings to be used in the application. @$pb.TagNumber(18) - Application_FeatureSettings get featureSettings => $_getN(13); + Application_FeatureSettings get featureSettings => $_getN(14); @$pb.TagNumber(18) set featureSettings(Application_FeatureSettings v) { setField(18, v); } @$pb.TagNumber(18) - $core.bool hasFeatureSettings() => $_has(13); + $core.bool hasFeatureSettings() => $_has(14); @$pb.TagNumber(18) void clearFeatureSettings() => clearField(18); @$pb.TagNumber(18) - Application_FeatureSettings ensureFeatureSettings() => $_ensure(13); + Application_FeatureSettings ensureFeatureSettings() => $_ensure(14); } +/// Rules to match an HTTP request and dispatch that request to a service. class UrlDispatchRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UrlDispatchRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'domain') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'service') - ..hasRequiredFields = false; - - UrlDispatchRule._() : super(); factory UrlDispatchRule({ $core.String? domain, $core.String? path, $core.String? service, }) { - final _result = create(); + final $result = create(); if (domain != null) { - _result.domain = domain; + $result.domain = domain; } if (path != null) { - _result.path = path; + $result.path = path; } if (service != null) { - _result.service = service; + $result.service = service; } - return _result; + return $result; } + UrlDispatchRule._() : super(); factory UrlDispatchRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UrlDispatchRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UrlDispatchRule', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'domain') + ..aOS(2, _omitFieldNames ? '' : 'path') + ..aOS(3, _omitFieldNames ? '' : 'service') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -594,8 +648,10 @@ class UrlDispatchRule extends $pb.GeneratedMessage { 'Will be removed in next major version') UrlDispatchRule copyWith(void Function(UrlDispatchRule) updates) => super.copyWith((message) => updates(message as UrlDispatchRule)) - as UrlDispatchRule; // ignore: deprecated_member_use + as UrlDispatchRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UrlDispatchRule create() => UrlDispatchRule._(); UrlDispatchRule createEmptyInstance() => create(); @@ -606,6 +662,10 @@ class UrlDispatchRule extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UrlDispatchRule? _defaultInstance; + /// Domain name to match against. The wildcard "`*`" is supported if + /// specified before a period: "`*.`". + /// + /// Defaults to matching all domains: "`*`". @$pb.TagNumber(1) $core.String get domain => $_getSZ(0); @$pb.TagNumber(1) @@ -618,6 +678,11 @@ class UrlDispatchRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearDomain() => clearField(1); + /// Pathname within the host. Must start with a "`/`". A + /// single "`*`" can be included at the end of the path. + /// + /// The sum of the lengths of the domain and path may not + /// exceed 100 characters. @$pb.TagNumber(2) $core.String get path => $_getSZ(1); @$pb.TagNumber(2) @@ -630,6 +695,9 @@ class UrlDispatchRule extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPath() => clearField(2); + /// Resource ID of a service in this application that should + /// serve the matched request. The service must already + /// exist. Example: `default`. @$pb.TagNumber(3) $core.String get service => $_getSZ(2); @$pb.TagNumber(3) @@ -642,3 +710,7 @@ class UrlDispatchRule extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearService() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pbenum.dart index b781ca84..9dc369ea 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pbenum.dart @@ -1,36 +1,27 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/application.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 Application_ServingStatus extends $pb.ProtobufEnum { static const Application_ServingStatus UNSPECIFIED = - Application_ServingStatus._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED'); - static const Application_ServingStatus SERVING = Application_ServingStatus._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SERVING'); + Application_ServingStatus._(0, _omitEnumNames ? '' : 'UNSPECIFIED'); + static const Application_ServingStatus SERVING = + Application_ServingStatus._(1, _omitEnumNames ? '' : 'SERVING'); static const Application_ServingStatus USER_DISABLED = - Application_ServingStatus._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'USER_DISABLED'); + Application_ServingStatus._(2, _omitEnumNames ? '' : 'USER_DISABLED'); static const Application_ServingStatus SYSTEM_DISABLED = - Application_ServingStatus._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SYSTEM_DISABLED'); + Application_ServingStatus._(3, _omitEnumNames ? '' : 'SYSTEM_DISABLED'); static const $core.List values = [ @@ -50,28 +41,14 @@ class Application_ServingStatus extends $pb.ProtobufEnum { class Application_DatabaseType extends $pb.ProtobufEnum { static const Application_DatabaseType DATABASE_TYPE_UNSPECIFIED = Application_DatabaseType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DATABASE_TYPE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'DATABASE_TYPE_UNSPECIFIED'); static const Application_DatabaseType CLOUD_DATASTORE = - Application_DatabaseType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CLOUD_DATASTORE'); + Application_DatabaseType._(1, _omitEnumNames ? '' : 'CLOUD_DATASTORE'); static const Application_DatabaseType CLOUD_FIRESTORE = - Application_DatabaseType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CLOUD_FIRESTORE'); + Application_DatabaseType._(2, _omitEnumNames ? '' : 'CLOUD_FIRESTORE'); static const Application_DatabaseType CLOUD_DATASTORE_COMPATIBILITY = Application_DatabaseType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CLOUD_DATASTORE_COMPATIBILITY'); + 3, _omitEnumNames ? '' : 'CLOUD_DATASTORE_COMPATIBILITY'); static const $core.List values = [ @@ -87,3 +64,5 @@ class Application_DatabaseType extends $pb.ProtobufEnum { const Application_DatabaseType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pbjson.dart index 1cb2c662..47817231 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/application.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/application.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 applicationDescriptor instead') @@ -44,6 +48,7 @@ const Application$json = { }, {'1': 'default_hostname', '3': 11, '4': 1, '5': 9, '10': 'defaultHostname'}, {'1': 'default_bucket', '3': 12, '4': 1, '5': 9, '10': 'defaultBucket'}, + {'1': 'service_account', '3': 13, '4': 1, '5': 9, '10': 'serviceAccount'}, { '1': 'iap', '3': 14, @@ -142,7 +147,32 @@ const Application_DatabaseType$json = { /// Descriptor for `Application`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List applicationDescriptor = $convert.base64Decode( - 'CgtBcHBsaWNhdGlvbhISCgRuYW1lGAEgASgJUgRuYW1lEg4KAmlkGAIgASgJUgJpZBJLCg5kaXNwYXRjaF9ydWxlcxgDIAMoCzIkLmdvb2dsZS5hcHBlbmdpbmUudjEuVXJsRGlzcGF0Y2hSdWxlUg1kaXNwYXRjaFJ1bGVzEh8KC2F1dGhfZG9tYWluGAYgASgJUgphdXRoRG9tYWluEh8KC2xvY2F0aW9uX2lkGAcgASgJUgpsb2NhdGlvbklkEh8KC2NvZGVfYnVja2V0GAggASgJUgpjb2RlQnVja2V0ElUKGWRlZmF1bHRfY29va2llX2V4cGlyYXRpb24YCSABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SF2RlZmF1bHRDb29raWVFeHBpcmF0aW9uElUKDnNlcnZpbmdfc3RhdHVzGAogASgOMi4uZ29vZ2xlLmFwcGVuZ2luZS52MS5BcHBsaWNhdGlvbi5TZXJ2aW5nU3RhdHVzUg1zZXJ2aW5nU3RhdHVzEikKEGRlZmF1bHRfaG9zdG5hbWUYCyABKAlSD2RlZmF1bHRIb3N0bmFtZRIlCg5kZWZhdWx0X2J1Y2tldBgMIAEoCVINZGVmYXVsdEJ1Y2tldBJFCgNpYXAYDiABKAsyMy5nb29nbGUuYXBwZW5naW5lLnYxLkFwcGxpY2F0aW9uLklkZW50aXR5QXdhcmVQcm94eVIDaWFwEh0KCmdjcl9kb21haW4YECABKAlSCWdjckRvbWFpbhJSCg1kYXRhYmFzZV90eXBlGBEgASgOMi0uZ29vZ2xlLmFwcGVuZ2luZS52MS5BcHBsaWNhdGlvbi5EYXRhYmFzZVR5cGVSDGRhdGFiYXNlVHlwZRJbChBmZWF0dXJlX3NldHRpbmdzGBIgASgLMjAuZ29vZ2xlLmFwcGVuZ2luZS52MS5BcHBsaWNhdGlvbi5GZWF0dXJlU2V0dGluZ3NSD2ZlYXR1cmVTZXR0aW5ncxrJAQoSSWRlbnRpdHlBd2FyZVByb3h5EhgKB2VuYWJsZWQYASABKAhSB2VuYWJsZWQSKAoQb2F1dGgyX2NsaWVudF9pZBgCIAEoCVIOb2F1dGgyQ2xpZW50SWQSMAoUb2F1dGgyX2NsaWVudF9zZWNyZXQYAyABKAlSEm9hdXRoMkNsaWVudFNlY3JldBI9ChtvYXV0aDJfY2xpZW50X3NlY3JldF9zaGEyNTYYBCABKAlSGG9hdXRoMkNsaWVudFNlY3JldFNoYTI1Nhp+Cg9GZWF0dXJlU2V0dGluZ3MSLgoTc3BsaXRfaGVhbHRoX2NoZWNrcxgBIAEoCFIRc3BsaXRIZWFsdGhDaGVja3MSOwoadXNlX2NvbnRhaW5lcl9vcHRpbWl6ZWRfb3MYAiABKAhSF3VzZUNvbnRhaW5lck9wdGltaXplZE9zIlUKDVNlcnZpbmdTdGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdTRVJWSU5HEAESEQoNVVNFUl9ESVNBQkxFRBACEhMKD1NZU1RFTV9ESVNBQkxFRBADInoKDERhdGFiYXNlVHlwZRIdChlEQVRBQkFTRV9UWVBFX1VOU1BFQ0lGSUVEEAASEwoPQ0xPVURfREFUQVNUT1JFEAESEwoPQ0xPVURfRklSRVNUT1JFEAISIQodQ0xPVURfREFUQVNUT1JFX0NPTVBBVElCSUxJVFkQAw=='); + 'CgtBcHBsaWNhdGlvbhISCgRuYW1lGAEgASgJUgRuYW1lEg4KAmlkGAIgASgJUgJpZBJLCg5kaX' + 'NwYXRjaF9ydWxlcxgDIAMoCzIkLmdvb2dsZS5hcHBlbmdpbmUudjEuVXJsRGlzcGF0Y2hSdWxl' + 'Ug1kaXNwYXRjaFJ1bGVzEh8KC2F1dGhfZG9tYWluGAYgASgJUgphdXRoRG9tYWluEh8KC2xvY2' + 'F0aW9uX2lkGAcgASgJUgpsb2NhdGlvbklkEh8KC2NvZGVfYnVja2V0GAggASgJUgpjb2RlQnVj' + 'a2V0ElUKGWRlZmF1bHRfY29va2llX2V4cGlyYXRpb24YCSABKAsyGS5nb29nbGUucHJvdG9idW' + 'YuRHVyYXRpb25SF2RlZmF1bHRDb29raWVFeHBpcmF0aW9uElUKDnNlcnZpbmdfc3RhdHVzGAog' + 'ASgOMi4uZ29vZ2xlLmFwcGVuZ2luZS52MS5BcHBsaWNhdGlvbi5TZXJ2aW5nU3RhdHVzUg1zZX' + 'J2aW5nU3RhdHVzEikKEGRlZmF1bHRfaG9zdG5hbWUYCyABKAlSD2RlZmF1bHRIb3N0bmFtZRIl' + 'Cg5kZWZhdWx0X2J1Y2tldBgMIAEoCVINZGVmYXVsdEJ1Y2tldBInCg9zZXJ2aWNlX2FjY291bn' + 'QYDSABKAlSDnNlcnZpY2VBY2NvdW50EkUKA2lhcBgOIAEoCzIzLmdvb2dsZS5hcHBlbmdpbmUu' + 'djEuQXBwbGljYXRpb24uSWRlbnRpdHlBd2FyZVByb3h5UgNpYXASHQoKZ2NyX2RvbWFpbhgQIA' + 'EoCVIJZ2NyRG9tYWluElIKDWRhdGFiYXNlX3R5cGUYESABKA4yLS5nb29nbGUuYXBwZW5naW5l' + 'LnYxLkFwcGxpY2F0aW9uLkRhdGFiYXNlVHlwZVIMZGF0YWJhc2VUeXBlElsKEGZlYXR1cmVfc2' + 'V0dGluZ3MYEiABKAsyMC5nb29nbGUuYXBwZW5naW5lLnYxLkFwcGxpY2F0aW9uLkZlYXR1cmVT' + 'ZXR0aW5nc1IPZmVhdHVyZVNldHRpbmdzGskBChJJZGVudGl0eUF3YXJlUHJveHkSGAoHZW5hYm' + 'xlZBgBIAEoCFIHZW5hYmxlZBIoChBvYXV0aDJfY2xpZW50X2lkGAIgASgJUg5vYXV0aDJDbGll' + 'bnRJZBIwChRvYXV0aDJfY2xpZW50X3NlY3JldBgDIAEoCVISb2F1dGgyQ2xpZW50U2VjcmV0Ej' + '0KG29hdXRoMl9jbGllbnRfc2VjcmV0X3NoYTI1NhgEIAEoCVIYb2F1dGgyQ2xpZW50U2VjcmV0' + 'U2hhMjU2Gn4KD0ZlYXR1cmVTZXR0aW5ncxIuChNzcGxpdF9oZWFsdGhfY2hlY2tzGAEgASgIUh' + 'FzcGxpdEhlYWx0aENoZWNrcxI7Chp1c2VfY29udGFpbmVyX29wdGltaXplZF9vcxgCIAEoCFIX' + 'dXNlQ29udGFpbmVyT3B0aW1pemVkT3MiVQoNU2VydmluZ1N0YXR1cxIPCgtVTlNQRUNJRklFRB' + 'AAEgsKB1NFUlZJTkcQARIRCg1VU0VSX0RJU0FCTEVEEAISEwoPU1lTVEVNX0RJU0FCTEVEEAMi' + 'egoMRGF0YWJhc2VUeXBlEh0KGURBVEFCQVNFX1RZUEVfVU5TUEVDSUZJRUQQABITCg9DTE9VRF' + '9EQVRBU1RPUkUQARITCg9DTE9VRF9GSVJFU1RPUkUQAhIhCh1DTE9VRF9EQVRBU1RPUkVfQ09N' + 'UEFUSUJJTElUWRAD'); + @$core.Deprecated('Use urlDispatchRuleDescriptor instead') const UrlDispatchRule$json = { '1': 'UrlDispatchRule', @@ -155,4 +185,5 @@ const UrlDispatchRule$json = { /// Descriptor for `UrlDispatchRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List urlDispatchRuleDescriptor = $convert.base64Decode( - 'Cg9VcmxEaXNwYXRjaFJ1bGUSFgoGZG9tYWluGAEgASgJUgZkb21haW4SEgoEcGF0aBgCIAEoCVIEcGF0aBIYCgdzZXJ2aWNlGAMgASgJUgdzZXJ2aWNl'); + 'Cg9VcmxEaXNwYXRjaFJ1bGUSFgoGZG9tYWluGAEgASgJUgZkb21haW4SEgoEcGF0aBgCIAEoCV' + 'IEcGF0aBIYCgdzZXJ2aWNlGAMgASgJUgdzZXJ2aWNl'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pb.dart index 45c87d89..5eda34ba 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pb.dart @@ -1,65 +1,62 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'appengine.pb.dart' as $2; +import 'appengine.pb.dart' as $10; enum AuditData_Method { updateService, createVersion, notSet } +/// App Engine admin service audit log. class AuditData extends $pb.GeneratedMessage { - static const $core.Map<$core.int, AuditData_Method> _AuditData_MethodByTag = { - 1: AuditData_Method.updateService, - 2: AuditData_Method.createVersion, - 0: AuditData_Method.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuditData', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateService', - subBuilder: UpdateServiceMethod.create) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'createVersion', - subBuilder: CreateVersionMethod.create) - ..hasRequiredFields = false; - - AuditData._() : super(); factory AuditData({ UpdateServiceMethod? updateService, CreateVersionMethod? createVersion, }) { - final _result = create(); + final $result = create(); if (updateService != null) { - _result.updateService = updateService; + $result.updateService = updateService; } if (createVersion != null) { - _result.createVersion = createVersion; + $result.createVersion = createVersion; } - return _result; + return $result; } + AuditData._() : super(); factory AuditData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuditData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, AuditData_Method> _AuditData_MethodByTag = { + 1: AuditData_Method.updateService, + 2: AuditData_Method.createVersion, + 0: AuditData_Method.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuditData', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..oo(0, [1, 2]) + ..aOM(1, _omitFieldNames ? '' : 'updateService', + subBuilder: UpdateServiceMethod.create) + ..aOM(2, _omitFieldNames ? '' : 'createVersion', + subBuilder: CreateVersionMethod.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') @@ -68,9 +65,10 @@ class AuditData extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') AuditData copyWith(void Function(AuditData) updates) => - super.copyWith((message) => updates(message as AuditData)) - as AuditData; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as AuditData)) as AuditData; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuditData create() => AuditData._(); AuditData createEmptyInstance() => create(); @@ -83,6 +81,7 @@ class AuditData extends $pb.GeneratedMessage { AuditData_Method whichMethod() => _AuditData_MethodByTag[$_whichOneof(0)]!; void clearMethod() => clearField($_whichOneof(0)); + /// Detailed information about UpdateService call. @$pb.TagNumber(1) UpdateServiceMethod get updateService => $_getN(0); @$pb.TagNumber(1) @@ -97,6 +96,7 @@ class AuditData extends $pb.GeneratedMessage { @$pb.TagNumber(1) UpdateServiceMethod ensureUpdateService() => $_ensure(0); + /// Detailed information about CreateVersion call. @$pb.TagNumber(2) CreateVersionMethod get createVersion => $_getN(1); @$pb.TagNumber(2) @@ -112,40 +112,34 @@ class AuditData extends $pb.GeneratedMessage { CreateVersionMethod ensureCreateVersion() => $_ensure(1); } +/// Detailed information about UpdateService call. class UpdateServiceMethod extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateServiceMethod', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOM<$2.UpdateServiceRequest>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'request', - subBuilder: $2.UpdateServiceRequest.create) - ..hasRequiredFields = false; - - UpdateServiceMethod._() : super(); factory UpdateServiceMethod({ - $2.UpdateServiceRequest? request, + $10.UpdateServiceRequest? request, }) { - final _result = create(); + final $result = create(); if (request != null) { - _result.request = request; + $result.request = request; } - return _result; + return $result; } + UpdateServiceMethod._() : super(); factory UpdateServiceMethod.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateServiceMethod.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateServiceMethod', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOM<$10.UpdateServiceRequest>(1, _omitFieldNames ? '' : 'request', + subBuilder: $10.UpdateServiceRequest.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') @@ -155,8 +149,10 @@ class UpdateServiceMethod extends $pb.GeneratedMessage { 'Will be removed in next major version') UpdateServiceMethod copyWith(void Function(UpdateServiceMethod) updates) => super.copyWith((message) => updates(message as UpdateServiceMethod)) - as UpdateServiceMethod; // ignore: deprecated_member_use + as UpdateServiceMethod; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateServiceMethod create() => UpdateServiceMethod._(); UpdateServiceMethod createEmptyInstance() => create(); @@ -167,10 +163,11 @@ class UpdateServiceMethod extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateServiceMethod? _defaultInstance; + /// Update service request. @$pb.TagNumber(1) - $2.UpdateServiceRequest get request => $_getN(0); + $10.UpdateServiceRequest get request => $_getN(0); @$pb.TagNumber(1) - set request($2.UpdateServiceRequest v) { + set request($10.UpdateServiceRequest v) { setField(1, v); } @@ -179,43 +176,37 @@ class UpdateServiceMethod extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearRequest() => clearField(1); @$pb.TagNumber(1) - $2.UpdateServiceRequest ensureRequest() => $_ensure(0); + $10.UpdateServiceRequest ensureRequest() => $_ensure(0); } +/// Detailed information about CreateVersion call. class CreateVersionMethod extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateVersionMethod', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOM<$2.CreateVersionRequest>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'request', - subBuilder: $2.CreateVersionRequest.create) - ..hasRequiredFields = false; - - CreateVersionMethod._() : super(); factory CreateVersionMethod({ - $2.CreateVersionRequest? request, + $10.CreateVersionRequest? request, }) { - final _result = create(); + final $result = create(); if (request != null) { - _result.request = request; + $result.request = request; } - return _result; + return $result; } + CreateVersionMethod._() : super(); factory CreateVersionMethod.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateVersionMethod.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateVersionMethod', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOM<$10.CreateVersionRequest>(1, _omitFieldNames ? '' : 'request', + subBuilder: $10.CreateVersionRequest.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') @@ -225,8 +216,10 @@ class CreateVersionMethod extends $pb.GeneratedMessage { 'Will be removed in next major version') CreateVersionMethod copyWith(void Function(CreateVersionMethod) updates) => super.copyWith((message) => updates(message as CreateVersionMethod)) - as CreateVersionMethod; // ignore: deprecated_member_use + as CreateVersionMethod; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateVersionMethod create() => CreateVersionMethod._(); CreateVersionMethod createEmptyInstance() => create(); @@ -237,10 +230,11 @@ class CreateVersionMethod extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateVersionMethod? _defaultInstance; + /// Create version request. @$pb.TagNumber(1) - $2.CreateVersionRequest get request => $_getN(0); + $10.CreateVersionRequest get request => $_getN(0); @$pb.TagNumber(1) - set request($2.CreateVersionRequest v) { + set request($10.CreateVersionRequest v) { setField(1, v); } @@ -249,5 +243,9 @@ class CreateVersionMethod extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearRequest() => clearField(1); @$pb.TagNumber(1) - $2.CreateVersionRequest ensureRequest() => $_ensure(0); + $10.CreateVersionRequest ensureRequest() => $_ensure(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pbenum.dart index 1e252098..80d467a1 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pbjson.dart index c4f05358..bc1c9226 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/audit_data.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 auditDataDescriptor instead') @@ -39,7 +43,11 @@ const AuditData$json = { /// Descriptor for `AuditData`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List auditDataDescriptor = $convert.base64Decode( - 'CglBdWRpdERhdGESUQoOdXBkYXRlX3NlcnZpY2UYASABKAsyKC5nb29nbGUuYXBwZW5naW5lLnYxLlVwZGF0ZVNlcnZpY2VNZXRob2RIAFINdXBkYXRlU2VydmljZRJRCg5jcmVhdGVfdmVyc2lvbhgCIAEoCzIoLmdvb2dsZS5hcHBlbmdpbmUudjEuQ3JlYXRlVmVyc2lvbk1ldGhvZEgAUg1jcmVhdGVWZXJzaW9uQggKBm1ldGhvZA=='); + 'CglBdWRpdERhdGESUQoOdXBkYXRlX3NlcnZpY2UYASABKAsyKC5nb29nbGUuYXBwZW5naW5lLn' + 'YxLlVwZGF0ZVNlcnZpY2VNZXRob2RIAFINdXBkYXRlU2VydmljZRJRCg5jcmVhdGVfdmVyc2lv' + 'bhgCIAEoCzIoLmdvb2dsZS5hcHBlbmdpbmUudjEuQ3JlYXRlVmVyc2lvbk1ldGhvZEgAUg1jcm' + 'VhdGVWZXJzaW9uQggKBm1ldGhvZA=='); + @$core.Deprecated('Use updateServiceMethodDescriptor instead') const UpdateServiceMethod$json = { '1': 'UpdateServiceMethod', @@ -57,7 +65,9 @@ const UpdateServiceMethod$json = { /// Descriptor for `UpdateServiceMethod`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateServiceMethodDescriptor = $convert.base64Decode( - 'ChNVcGRhdGVTZXJ2aWNlTWV0aG9kEkMKB3JlcXVlc3QYASABKAsyKS5nb29nbGUuYXBwZW5naW5lLnYxLlVwZGF0ZVNlcnZpY2VSZXF1ZXN0UgdyZXF1ZXN0'); + 'ChNVcGRhdGVTZXJ2aWNlTWV0aG9kEkMKB3JlcXVlc3QYASABKAsyKS5nb29nbGUuYXBwZW5naW' + '5lLnYxLlVwZGF0ZVNlcnZpY2VSZXF1ZXN0UgdyZXF1ZXN0'); + @$core.Deprecated('Use createVersionMethodDescriptor instead') const CreateVersionMethod$json = { '1': 'CreateVersionMethod', @@ -75,4 +85,5 @@ const CreateVersionMethod$json = { /// Descriptor for `CreateVersionMethod`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createVersionMethodDescriptor = $convert.base64Decode( - 'ChNDcmVhdGVWZXJzaW9uTWV0aG9kEkMKB3JlcXVlc3QYASABKAsyKS5nb29nbGUuYXBwZW5naW5lLnYxLkNyZWF0ZVZlcnNpb25SZXF1ZXN0UgdyZXF1ZXN0'); + 'ChNDcmVhdGVWZXJzaW9uTWV0aG9kEkMKB3JlcXVlc3QYASABKAsyKS5nb29nbGUuYXBwZW5naW' + '5lLnYxLkNyZWF0ZVZlcnNpb25SZXF1ZXN0UgdyZXF1ZXN0'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pb.dart index 9816c93a..479e9d7a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pb.dart @@ -1,102 +1,96 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/certificate.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/timestamp.pb.dart' as $0; - +import '../../protobuf/timestamp.pb.dart' as $50; import 'certificate.pbenum.dart'; export 'certificate.pbenum.dart'; +/// An SSL certificate that a user has been authorized to administer. A user +/// is authorized to administer any certificate that applies to one of their +/// authorized domains. class AuthorizedCertificate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuthorizedCertificate', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'displayName') - ..pPS(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'domainNames') - ..aOM<$0.Timestamp>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expireTime', subBuilder: $0.Timestamp.create) - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'certificateRawData', subBuilder: CertificateRawData.create) - ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'managedCertificate', subBuilder: ManagedCertificate.create) - ..pPS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'visibleDomainMappings') - ..a<$core.int>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'domainMappingsCount', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - AuthorizedCertificate._() : super(); factory AuthorizedCertificate({ $core.String? name, $core.String? id, $core.String? displayName, $core.Iterable<$core.String>? domainNames, - $0.Timestamp? expireTime, + $50.Timestamp? expireTime, CertificateRawData? certificateRawData, ManagedCertificate? managedCertificate, $core.Iterable<$core.String>? visibleDomainMappings, $core.int? domainMappingsCount, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (displayName != null) { - _result.displayName = displayName; + $result.displayName = displayName; } if (domainNames != null) { - _result.domainNames.addAll(domainNames); + $result.domainNames.addAll(domainNames); } if (expireTime != null) { - _result.expireTime = expireTime; + $result.expireTime = expireTime; } if (certificateRawData != null) { - _result.certificateRawData = certificateRawData; + $result.certificateRawData = certificateRawData; } if (managedCertificate != null) { - _result.managedCertificate = managedCertificate; + $result.managedCertificate = managedCertificate; } if (visibleDomainMappings != null) { - _result.visibleDomainMappings.addAll(visibleDomainMappings); + $result.visibleDomainMappings.addAll(visibleDomainMappings); } if (domainMappingsCount != null) { - _result.domainMappingsCount = domainMappingsCount; + $result.domainMappingsCount = domainMappingsCount; } - return _result; + return $result; } + AuthorizedCertificate._() : super(); factory AuthorizedCertificate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuthorizedCertificate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuthorizedCertificate', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..aOS(3, _omitFieldNames ? '' : 'displayName') + ..pPS(4, _omitFieldNames ? '' : 'domainNames') + ..aOM<$50.Timestamp>(5, _omitFieldNames ? '' : 'expireTime', + subBuilder: $50.Timestamp.create) + ..aOM(6, _omitFieldNames ? '' : 'certificateRawData', + subBuilder: CertificateRawData.create) + ..aOM(7, _omitFieldNames ? '' : 'managedCertificate', + subBuilder: ManagedCertificate.create) + ..pPS(8, _omitFieldNames ? '' : 'visibleDomainMappings') + ..a<$core.int>( + 9, _omitFieldNames ? '' : 'domainMappingsCount', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -108,8 +102,10 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { AuthorizedCertificate copyWith( void Function(AuthorizedCertificate) updates) => super.copyWith((message) => updates(message as AuthorizedCertificate)) - as AuthorizedCertificate; // ignore: deprecated_member_use + as AuthorizedCertificate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuthorizedCertificate create() => AuthorizedCertificate._(); AuthorizedCertificate createEmptyInstance() => create(); @@ -120,6 +116,10 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AuthorizedCertificate? _defaultInstance; + /// Full path to the `AuthorizedCertificate` resource in the API. Example: + /// `apps/myapp/authorizedCertificates/12345`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -132,6 +132,10 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Relative name of the certificate. This is a unique value autogenerated + /// on `AuthorizedCertificate` resource creation. Example: `12345`. + /// + /// @OutputOnly @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -144,6 +148,8 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// The user-specified display name of the certificate. This is not + /// guaranteed to be unique. Example: `My Certificate`. @$pb.TagNumber(3) $core.String get displayName => $_getSZ(2); @$pb.TagNumber(3) @@ -156,13 +162,22 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDisplayName() => clearField(3); + /// Topmost applicable domains of this certificate. This certificate + /// applies to these domains and their subdomains. Example: `example.com`. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.List<$core.String> get domainNames => $_getList(3); + /// The time when this certificate expires. To update the renewal time on this + /// certificate, upload an SSL certificate with a different expiration time + /// using [`AuthorizedCertificates.UpdateAuthorizedCertificate`](). + /// + /// @OutputOnly @$pb.TagNumber(5) - $0.Timestamp get expireTime => $_getN(4); + $50.Timestamp get expireTime => $_getN(4); @$pb.TagNumber(5) - set expireTime($0.Timestamp v) { + set expireTime($50.Timestamp v) { setField(5, v); } @@ -171,8 +186,10 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearExpireTime() => clearField(5); @$pb.TagNumber(5) - $0.Timestamp ensureExpireTime() => $_ensure(4); + $50.Timestamp ensureExpireTime() => $_ensure(4); + /// The SSL certificate serving the `AuthorizedCertificate` resource. This + /// must be obtained independently from a certificate authority. @$pb.TagNumber(6) CertificateRawData get certificateRawData => $_getN(5); @$pb.TagNumber(6) @@ -187,6 +204,12 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(6) CertificateRawData ensureCertificateRawData() => $_ensure(5); + /// Only applicable if this certificate is managed by App Engine. Managed + /// certificates are tied to the lifecycle of a `DomainMapping` and cannot be + /// updated or deleted via the `AuthorizedCertificates` API. If this + /// certificate is manually administered by the user, this field will be empty. + /// + /// @OutputOnly @$pb.TagNumber(7) ManagedCertificate get managedCertificate => $_getN(6); @$pb.TagNumber(7) @@ -201,9 +224,28 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(7) ManagedCertificate ensureManagedCertificate() => $_ensure(6); + /// The full paths to user visible Domain Mapping resources that have this + /// certificate mapped. Example: `apps/myapp/domainMappings/example.com`. + /// + /// This may not represent the full list of mapped domain mappings if the user + /// does not have `VIEWER` permissions on all of the applications that have + /// this certificate mapped. See `domain_mappings_count` for a complete count. + /// + /// Only returned by `GET` or `LIST` requests when specifically requested by + /// the `view=FULL_CERTIFICATE` option. + /// + /// @OutputOnly @$pb.TagNumber(8) $core.List<$core.String> get visibleDomainMappings => $_getList(7); + /// Aggregate count of the domain mappings with this certificate mapped. This + /// count includes domain mappings on applications for which the user does not + /// have `VIEWER` permissions. + /// + /// Only returned by `GET` or `LIST` requests when specifically requested by + /// the `view=FULL_CERTIFICATE` option. + /// + /// @OutputOnly @$pb.TagNumber(9) $core.int get domainMappingsCount => $_getIZ(8); @$pb.TagNumber(9) @@ -217,48 +259,38 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { void clearDomainMappingsCount() => clearField(9); } +/// An SSL certificate obtained from a certificate authority. class CertificateRawData extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CertificateRawData', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'publicCertificate') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'privateKey') - ..hasRequiredFields = false; - - CertificateRawData._() : super(); factory CertificateRawData({ $core.String? publicCertificate, $core.String? privateKey, }) { - final _result = create(); + final $result = create(); if (publicCertificate != null) { - _result.publicCertificate = publicCertificate; + $result.publicCertificate = publicCertificate; } if (privateKey != null) { - _result.privateKey = privateKey; + $result.privateKey = privateKey; } - return _result; + return $result; } + CertificateRawData._() : super(); factory CertificateRawData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CertificateRawData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CertificateRawData', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'publicCertificate') + ..aOS(2, _omitFieldNames ? '' : 'privateKey') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -268,8 +300,10 @@ class CertificateRawData extends $pb.GeneratedMessage { 'Will be removed in next major version') CertificateRawData copyWith(void Function(CertificateRawData) updates) => super.copyWith((message) => updates(message as CertificateRawData)) - as CertificateRawData; // ignore: deprecated_member_use + as CertificateRawData; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CertificateRawData create() => CertificateRawData._(); CertificateRawData createEmptyInstance() => create(); @@ -280,6 +314,13 @@ class CertificateRawData extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CertificateRawData? _defaultInstance; + /// PEM encoded x.509 public key certificate. This field is set once on + /// certificate creation. Must include the header and footer. Example: + ///
+  /// -----BEGIN CERTIFICATE-----
+  /// 
+  /// -----END CERTIFICATE-----
+  /// 
@$pb.TagNumber(1) $core.String get publicCertificate => $_getSZ(0); @$pb.TagNumber(1) @@ -292,6 +333,15 @@ class CertificateRawData extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPublicCertificate() => clearField(1); + /// Unencrypted PEM encoded RSA private key. This field is set once on + /// certificate creation and then encrypted. The key size must be 2048 + /// bits or fewer. Must include the header and footer. Example: + ///
+  /// -----BEGIN RSA PRIVATE KEY-----
+  /// 
+  /// -----END RSA PRIVATE KEY-----
+  /// 
+ /// @InputOnly @$pb.TagNumber(2) $core.String get privateKey => $_getSZ(1); @$pb.TagNumber(2) @@ -305,50 +355,43 @@ class CertificateRawData extends $pb.GeneratedMessage { void clearPrivateKey() => clearField(2); } +/// A certificate managed by App Engine. class ManagedCertificate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ManagedCertificate', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOM<$0.Timestamp>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'lastRenewalTime', - subBuilder: $0.Timestamp.create) - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'status', - $pb.PbFieldType.OE, - defaultOrMaker: ManagementStatus.MANAGEMENT_STATUS_UNSPECIFIED, - valueOf: ManagementStatus.valueOf, - enumValues: ManagementStatus.values) - ..hasRequiredFields = false; - - ManagedCertificate._() : super(); factory ManagedCertificate({ - $0.Timestamp? lastRenewalTime, + $50.Timestamp? lastRenewalTime, ManagementStatus? status, }) { - final _result = create(); + final $result = create(); if (lastRenewalTime != null) { - _result.lastRenewalTime = lastRenewalTime; + $result.lastRenewalTime = lastRenewalTime; } if (status != null) { - _result.status = status; + $result.status = status; } - return _result; + return $result; } + ManagedCertificate._() : super(); factory ManagedCertificate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ManagedCertificate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ManagedCertificate', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'lastRenewalTime', + subBuilder: $50.Timestamp.create) + ..e( + 2, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, + defaultOrMaker: ManagementStatus.MANAGEMENT_STATUS_UNSPECIFIED, + valueOf: ManagementStatus.valueOf, + enumValues: ManagementStatus.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -358,8 +401,10 @@ class ManagedCertificate extends $pb.GeneratedMessage { 'Will be removed in next major version') ManagedCertificate copyWith(void Function(ManagedCertificate) updates) => super.copyWith((message) => updates(message as ManagedCertificate)) - as ManagedCertificate; // ignore: deprecated_member_use + as ManagedCertificate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ManagedCertificate create() => ManagedCertificate._(); ManagedCertificate createEmptyInstance() => create(); @@ -370,10 +415,15 @@ class ManagedCertificate extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ManagedCertificate? _defaultInstance; + /// Time at which the certificate was last renewed. The renewal process is + /// fully managed. Certificate renewal will automatically occur before the + /// certificate expires. Renewal errors can be tracked via `ManagementStatus`. + /// + /// @OutputOnly @$pb.TagNumber(1) - $0.Timestamp get lastRenewalTime => $_getN(0); + $50.Timestamp get lastRenewalTime => $_getN(0); @$pb.TagNumber(1) - set lastRenewalTime($0.Timestamp v) { + set lastRenewalTime($50.Timestamp v) { setField(1, v); } @@ -382,8 +432,12 @@ class ManagedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearLastRenewalTime() => clearField(1); @$pb.TagNumber(1) - $0.Timestamp ensureLastRenewalTime() => $_ensure(0); + $50.Timestamp ensureLastRenewalTime() => $_ensure(0); + /// Status of certificate management. Refers to the most recent certificate + /// acquisition or renewal attempt. + /// + /// @OutputOnly @$pb.TagNumber(2) ManagementStatus get status => $_getN(1); @$pb.TagNumber(2) @@ -396,3 +450,7 @@ class ManagedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearStatus() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pbenum.dart index cc27ee5b..0eaa506b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pbenum.dart @@ -1,48 +1,39 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/certificate.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// State of certificate management. Refers to the most recent certificate +/// acquisition or renewal attempt. class ManagementStatus extends $pb.ProtobufEnum { static const ManagementStatus MANAGEMENT_STATUS_UNSPECIFIED = ManagementStatus._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MANAGEMENT_STATUS_UNSPECIFIED'); - static const ManagementStatus OK = ManagementStatus._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'OK'); - static const ManagementStatus PENDING = ManagementStatus._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'PENDING'); + 0, _omitEnumNames ? '' : 'MANAGEMENT_STATUS_UNSPECIFIED'); + static const ManagementStatus OK = + ManagementStatus._(1, _omitEnumNames ? '' : 'OK'); + static const ManagementStatus PENDING = + ManagementStatus._(2, _omitEnumNames ? '' : 'PENDING'); static const ManagementStatus FAILED_RETRYING_NOT_VISIBLE = ManagementStatus._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FAILED_RETRYING_NOT_VISIBLE'); - static const ManagementStatus FAILED_PERMANENT = ManagementStatus._( - 6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FAILED_PERMANENT'); + 4, _omitEnumNames ? '' : 'FAILED_RETRYING_NOT_VISIBLE'); + static const ManagementStatus FAILED_PERMANENT = + ManagementStatus._(6, _omitEnumNames ? '' : 'FAILED_PERMANENT'); static const ManagementStatus FAILED_RETRYING_CAA_FORBIDDEN = ManagementStatus._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FAILED_RETRYING_CAA_FORBIDDEN'); + 7, _omitEnumNames ? '' : 'FAILED_RETRYING_CAA_FORBIDDEN'); static const ManagementStatus FAILED_RETRYING_CAA_CHECKING = ManagementStatus._( - 8, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FAILED_RETRYING_CAA_CHECKING'); + 8, _omitEnumNames ? '' : 'FAILED_RETRYING_CAA_CHECKING'); static const $core.List values = [ MANAGEMENT_STATUS_UNSPECIFIED, @@ -60,3 +51,5 @@ class ManagementStatus extends $pb.ProtobufEnum { const ManagementStatus._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pbjson.dart index 30392464..96d77c38 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/certificate.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/certificate.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 managementStatusDescriptor instead') @@ -25,7 +29,11 @@ const ManagementStatus$json = { /// Descriptor for `ManagementStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List managementStatusDescriptor = $convert.base64Decode( - 'ChBNYW5hZ2VtZW50U3RhdHVzEiEKHU1BTkFHRU1FTlRfU1RBVFVTX1VOU1BFQ0lGSUVEEAASBgoCT0sQARILCgdQRU5ESU5HEAISHwobRkFJTEVEX1JFVFJZSU5HX05PVF9WSVNJQkxFEAQSFAoQRkFJTEVEX1BFUk1BTkVOVBAGEiEKHUZBSUxFRF9SRVRSWUlOR19DQUFfRk9SQklEREVOEAcSIAocRkFJTEVEX1JFVFJZSU5HX0NBQV9DSEVDS0lORxAI'); + 'ChBNYW5hZ2VtZW50U3RhdHVzEiEKHU1BTkFHRU1FTlRfU1RBVFVTX1VOU1BFQ0lGSUVEEAASBg' + 'oCT0sQARILCgdQRU5ESU5HEAISHwobRkFJTEVEX1JFVFJZSU5HX05PVF9WSVNJQkxFEAQSFAoQ' + 'RkFJTEVEX1BFUk1BTkVOVBAGEiEKHUZBSUxFRF9SRVRSWUlOR19DQUFfRk9SQklEREVOEAcSIA' + 'ocRkFJTEVEX1JFVFJZSU5HX0NBQV9DSEVDS0lORxAI'); + @$core.Deprecated('Use authorizedCertificateDescriptor instead') const AuthorizedCertificate$json = { '1': 'AuthorizedCertificate', @@ -77,7 +85,16 @@ const AuthorizedCertificate$json = { /// Descriptor for `AuthorizedCertificate`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List authorizedCertificateDescriptor = $convert.base64Decode( - 'ChVBdXRob3JpemVkQ2VydGlmaWNhdGUSEgoEbmFtZRgBIAEoCVIEbmFtZRIOCgJpZBgCIAEoCVICaWQSIQoMZGlzcGxheV9uYW1lGAMgASgJUgtkaXNwbGF5TmFtZRIhCgxkb21haW5fbmFtZXMYBCADKAlSC2RvbWFpbk5hbWVzEjsKC2V4cGlyZV90aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKZXhwaXJlVGltZRJZChRjZXJ0aWZpY2F0ZV9yYXdfZGF0YRgGIAEoCzInLmdvb2dsZS5hcHBlbmdpbmUudjEuQ2VydGlmaWNhdGVSYXdEYXRhUhJjZXJ0aWZpY2F0ZVJhd0RhdGESWAoTbWFuYWdlZF9jZXJ0aWZpY2F0ZRgHIAEoCzInLmdvb2dsZS5hcHBlbmdpbmUudjEuTWFuYWdlZENlcnRpZmljYXRlUhJtYW5hZ2VkQ2VydGlmaWNhdGUSNgoXdmlzaWJsZV9kb21haW5fbWFwcGluZ3MYCCADKAlSFXZpc2libGVEb21haW5NYXBwaW5ncxIyChVkb21haW5fbWFwcGluZ3NfY291bnQYCSABKAVSE2RvbWFpbk1hcHBpbmdzQ291bnQ='); + 'ChVBdXRob3JpemVkQ2VydGlmaWNhdGUSEgoEbmFtZRgBIAEoCVIEbmFtZRIOCgJpZBgCIAEoCV' + 'ICaWQSIQoMZGlzcGxheV9uYW1lGAMgASgJUgtkaXNwbGF5TmFtZRIhCgxkb21haW5fbmFtZXMY' + 'BCADKAlSC2RvbWFpbk5hbWVzEjsKC2V4cGlyZV90aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYn' + 'VmLlRpbWVzdGFtcFIKZXhwaXJlVGltZRJZChRjZXJ0aWZpY2F0ZV9yYXdfZGF0YRgGIAEoCzIn' + 'Lmdvb2dsZS5hcHBlbmdpbmUudjEuQ2VydGlmaWNhdGVSYXdEYXRhUhJjZXJ0aWZpY2F0ZVJhd0' + 'RhdGESWAoTbWFuYWdlZF9jZXJ0aWZpY2F0ZRgHIAEoCzInLmdvb2dsZS5hcHBlbmdpbmUudjEu' + 'TWFuYWdlZENlcnRpZmljYXRlUhJtYW5hZ2VkQ2VydGlmaWNhdGUSNgoXdmlzaWJsZV9kb21haW' + '5fbWFwcGluZ3MYCCADKAlSFXZpc2libGVEb21haW5NYXBwaW5ncxIyChVkb21haW5fbWFwcGlu' + 'Z3NfY291bnQYCSABKAVSE2RvbWFpbk1hcHBpbmdzQ291bnQ='); + @$core.Deprecated('Use certificateRawDataDescriptor instead') const CertificateRawData$json = { '1': 'CertificateRawData', @@ -95,7 +112,9 @@ const CertificateRawData$json = { /// Descriptor for `CertificateRawData`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List certificateRawDataDescriptor = $convert.base64Decode( - 'ChJDZXJ0aWZpY2F0ZVJhd0RhdGESLQoScHVibGljX2NlcnRpZmljYXRlGAEgASgJUhFwdWJsaWNDZXJ0aWZpY2F0ZRIfCgtwcml2YXRlX2tleRgCIAEoCVIKcHJpdmF0ZUtleQ=='); + 'ChJDZXJ0aWZpY2F0ZVJhd0RhdGESLQoScHVibGljX2NlcnRpZmljYXRlGAEgASgJUhFwdWJsaW' + 'NDZXJ0aWZpY2F0ZRIfCgtwcml2YXRlX2tleRgCIAEoCVIKcHJpdmF0ZUtleQ=='); + @$core.Deprecated('Use managedCertificateDescriptor instead') const ManagedCertificate$json = { '1': 'ManagedCertificate', @@ -121,4 +140,6 @@ const ManagedCertificate$json = { /// Descriptor for `ManagedCertificate`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List managedCertificateDescriptor = $convert.base64Decode( - 'ChJNYW5hZ2VkQ2VydGlmaWNhdGUSRgoRbGFzdF9yZW5ld2FsX3RpbWUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUg9sYXN0UmVuZXdhbFRpbWUSPQoGc3RhdHVzGAIgASgOMiUuZ29vZ2xlLmFwcGVuZ2luZS52MS5NYW5hZ2VtZW50U3RhdHVzUgZzdGF0dXM='); + 'ChJNYW5hZ2VkQ2VydGlmaWNhdGUSRgoRbGFzdF9yZW5ld2FsX3RpbWUYASABKAsyGi5nb29nbG' + 'UucHJvdG9idWYuVGltZXN0YW1wUg9sYXN0UmVuZXdhbFRpbWUSPQoGc3RhdHVzGAIgASgOMiUu' + 'Z29vZ2xlLmFwcGVuZ2luZS52MS5NYW5hZ2VtZW50U3RhdHVzUgZzdGF0dXM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pb.dart index e95f51ea..cc7513c6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pb.dart @@ -1,68 +1,70 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/deploy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/duration.pb.dart' as $0; +import '../../protobuf/duration.pb.dart' as $51; +/// Code and application artifacts used to deploy a version to App Engine. class Deployment extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Deployment', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..m<$core.String, FileInfo>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'files', - entryClassName: 'Deployment.FilesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: FileInfo.create, - packageName: const $pb.PackageName('google.appengine.v1')) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'container', - subBuilder: ContainerInfo.create) - ..aOM(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'zip', - subBuilder: ZipInfo.create) - ..aOM( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cloudBuildOptions', - subBuilder: CloudBuildOptions.create) - ..hasRequiredFields = false; - - Deployment._() : super(); factory Deployment({ $core.Map<$core.String, FileInfo>? files, ContainerInfo? container, ZipInfo? zip, CloudBuildOptions? cloudBuildOptions, }) { - final _result = create(); + final $result = create(); if (files != null) { - _result.files.addAll(files); + $result.files.addAll(files); } if (container != null) { - _result.container = container; + $result.container = container; } if (zip != null) { - _result.zip = zip; + $result.zip = zip; } if (cloudBuildOptions != null) { - _result.cloudBuildOptions = cloudBuildOptions; + $result.cloudBuildOptions = cloudBuildOptions; } - return _result; + return $result; } + Deployment._() : super(); factory Deployment.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Deployment.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Deployment', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..m<$core.String, FileInfo>(1, _omitFieldNames ? '' : 'files', + entryClassName: 'Deployment.FilesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: FileInfo.create, + valueDefaultOrMaker: FileInfo.getDefault, + packageName: const $pb.PackageName('google.appengine.v1')) + ..aOM(2, _omitFieldNames ? '' : 'container', + subBuilder: ContainerInfo.create) + ..aOM(3, _omitFieldNames ? '' : 'zip', subBuilder: ZipInfo.create) + ..aOM(6, _omitFieldNames ? '' : 'cloudBuildOptions', + subBuilder: CloudBuildOptions.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') @@ -71,9 +73,10 @@ class Deployment extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Deployment copyWith(void Function(Deployment) updates) => - super.copyWith((message) => updates(message as Deployment)) - as Deployment; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Deployment)) as Deployment; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Deployment create() => Deployment._(); Deployment createEmptyInstance() => create(); @@ -83,9 +86,14 @@ class Deployment extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Deployment? _defaultInstance; + /// Manifest of the files stored in Google Cloud Storage that are included + /// as part of this version. All files must be readable using the + /// credentials supplied with this call. @$pb.TagNumber(1) $core.Map<$core.String, FileInfo> get files => $_getMap(0); + /// The Docker image for the container that runs the version. + /// Only applicable for instances running in the App Engine flexible environment. @$pb.TagNumber(2) ContainerInfo get container => $_getN(1); @$pb.TagNumber(2) @@ -100,6 +108,7 @@ class Deployment extends $pb.GeneratedMessage { @$pb.TagNumber(2) ContainerInfo ensureContainer() => $_ensure(1); + /// The zip file for this deployment, if this is a zip deployment. @$pb.TagNumber(3) ZipInfo get zip => $_getN(2); @$pb.TagNumber(3) @@ -114,6 +123,11 @@ class Deployment extends $pb.GeneratedMessage { @$pb.TagNumber(3) ZipInfo ensureZip() => $_ensure(2); + /// Options for any Google Cloud Build builds created as a part of this + /// deployment. + /// + /// These options will only be used if a new build is created, such as when + /// deploying to the App Engine flexible environment using files or zip. @$pb.TagNumber(6) CloudBuildOptions get cloudBuildOptions => $_getN(3); @$pb.TagNumber(6) @@ -129,57 +143,44 @@ class Deployment extends $pb.GeneratedMessage { CloudBuildOptions ensureCloudBuildOptions() => $_ensure(3); } +/// Single source file that is part of the version to be deployed. Each source +/// file that is deployed must be specified separately. class FileInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'FileInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sourceUrl') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sha1Sum') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mimeType') - ..hasRequiredFields = false; - - FileInfo._() : super(); factory FileInfo({ $core.String? sourceUrl, $core.String? sha1Sum, $core.String? mimeType, }) { - final _result = create(); + final $result = create(); if (sourceUrl != null) { - _result.sourceUrl = sourceUrl; + $result.sourceUrl = sourceUrl; } if (sha1Sum != null) { - _result.sha1Sum = sha1Sum; + $result.sha1Sum = sha1Sum; } if (mimeType != null) { - _result.mimeType = mimeType; + $result.mimeType = mimeType; } - return _result; + return $result; } + FileInfo._() : super(); factory FileInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory FileInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FileInfo', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sourceUrl') + ..aOS(2, _omitFieldNames ? '' : 'sha1Sum') + ..aOS(3, _omitFieldNames ? '' : 'mimeType') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -188,9 +189,10 @@ class FileInfo extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') FileInfo copyWith(void Function(FileInfo) updates) => - super.copyWith((message) => updates(message as FileInfo)) - as FileInfo; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as FileInfo)) as FileInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static FileInfo create() => FileInfo._(); FileInfo createEmptyInstance() => create(); @@ -200,6 +202,9 @@ class FileInfo extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static FileInfo? _defaultInstance; + /// URL source to use to fetch this file. Must be a URL to a resource in + /// Google Cloud Storage in the form + /// 'http(s)://storage.googleapis.com/\/\'. @$pb.TagNumber(1) $core.String get sourceUrl => $_getSZ(0); @$pb.TagNumber(1) @@ -212,6 +217,7 @@ class FileInfo extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSourceUrl() => clearField(1); + /// The SHA1 hash of the file, in hex. @$pb.TagNumber(2) $core.String get sha1Sum => $_getSZ(1); @$pb.TagNumber(2) @@ -224,6 +230,9 @@ class FileInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearSha1Sum() => clearField(2); + /// The MIME type of the file. + /// + /// Defaults to the value from Google Cloud Storage. @$pb.TagNumber(3) $core.String get mimeType => $_getSZ(2); @$pb.TagNumber(3) @@ -237,39 +246,35 @@ class FileInfo extends $pb.GeneratedMessage { void clearMimeType() => clearField(3); } +/// Docker image that is used to create a container and start a VM instance for +/// the version that you deploy. Only applicable for instances running in the App +/// Engine flexible environment. class ContainerInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ContainerInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'image') - ..hasRequiredFields = false; - - ContainerInfo._() : super(); factory ContainerInfo({ $core.String? image, }) { - final _result = create(); + final $result = create(); if (image != null) { - _result.image = image; + $result.image = image; } - return _result; + return $result; } + ContainerInfo._() : super(); factory ContainerInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ContainerInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ContainerInfo', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'image') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -279,8 +284,10 @@ class ContainerInfo extends $pb.GeneratedMessage { 'Will be removed in next major version') ContainerInfo copyWith(void Function(ContainerInfo) updates) => super.copyWith((message) => updates(message as ContainerInfo)) - as ContainerInfo; // ignore: deprecated_member_use + as ContainerInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ContainerInfo create() => ContainerInfo._(); ContainerInfo createEmptyInstance() => create(); @@ -291,6 +298,9 @@ class ContainerInfo extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ContainerInfo? _defaultInstance; + /// URI to the hosted container image in Google Container Registry. The URI + /// must be fully qualified and include a tag or digest. + /// Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" @$pb.TagNumber(1) $core.String get image => $_getSZ(0); @$pb.TagNumber(1) @@ -304,49 +314,41 @@ class ContainerInfo extends $pb.GeneratedMessage { void clearImage() => clearField(1); } +/// Options for the build operations performed as a part of the version +/// deployment. Only applicable for App Engine flexible environment when creating +/// a version using source code directly. class CloudBuildOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CloudBuildOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'appYamlPath') - ..aOM<$0.Duration>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cloudBuildTimeout', - subBuilder: $0.Duration.create) - ..hasRequiredFields = false; - - CloudBuildOptions._() : super(); factory CloudBuildOptions({ $core.String? appYamlPath, - $0.Duration? cloudBuildTimeout, + $51.Duration? cloudBuildTimeout, }) { - final _result = create(); + final $result = create(); if (appYamlPath != null) { - _result.appYamlPath = appYamlPath; + $result.appYamlPath = appYamlPath; } if (cloudBuildTimeout != null) { - _result.cloudBuildTimeout = cloudBuildTimeout; + $result.cloudBuildTimeout = cloudBuildTimeout; } - return _result; + return $result; } + CloudBuildOptions._() : super(); factory CloudBuildOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CloudBuildOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CloudBuildOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'appYamlPath') + ..aOM<$51.Duration>(2, _omitFieldNames ? '' : 'cloudBuildTimeout', + subBuilder: $51.Duration.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') @@ -356,8 +358,10 @@ class CloudBuildOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') CloudBuildOptions copyWith(void Function(CloudBuildOptions) updates) => super.copyWith((message) => updates(message as CloudBuildOptions)) - as CloudBuildOptions; // ignore: deprecated_member_use + as CloudBuildOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CloudBuildOptions create() => CloudBuildOptions._(); CloudBuildOptions createEmptyInstance() => create(); @@ -368,6 +372,13 @@ class CloudBuildOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CloudBuildOptions? _defaultInstance; + /// Path to the yaml file used in deployment, used to determine runtime + /// configuration details. + /// + /// Required for flexible environment builds. + /// + /// See https://cloud.google.com/appengine/docs/standard/python/config/appref + /// for more details. @$pb.TagNumber(1) $core.String get appYamlPath => $_getSZ(0); @$pb.TagNumber(1) @@ -380,10 +391,12 @@ class CloudBuildOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearAppYamlPath() => clearField(1); + /// The Cloud Build timeout used as part of any dependent builds performed by + /// version creation. Defaults to 10 minutes. @$pb.TagNumber(2) - $0.Duration get cloudBuildTimeout => $_getN(1); + $51.Duration get cloudBuildTimeout => $_getN(1); @$pb.TagNumber(2) - set cloudBuildTimeout($0.Duration v) { + set cloudBuildTimeout($51.Duration v) { setField(2, v); } @@ -392,52 +405,41 @@ class CloudBuildOptions extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearCloudBuildTimeout() => clearField(2); @$pb.TagNumber(2) - $0.Duration ensureCloudBuildTimeout() => $_ensure(1); + $51.Duration ensureCloudBuildTimeout() => $_ensure(1); } +/// The zip file information for a zip deployment. class ZipInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ZipInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sourceUrl') - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filesCount', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ZipInfo._() : super(); factory ZipInfo({ $core.String? sourceUrl, $core.int? filesCount, }) { - final _result = create(); + final $result = create(); if (sourceUrl != null) { - _result.sourceUrl = sourceUrl; + $result.sourceUrl = sourceUrl; } if (filesCount != null) { - _result.filesCount = filesCount; + $result.filesCount = filesCount; } - return _result; + return $result; } + ZipInfo._() : super(); factory ZipInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ZipInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ZipInfo', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(3, _omitFieldNames ? '' : 'sourceUrl') + ..a<$core.int>(4, _omitFieldNames ? '' : 'filesCount', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -446,9 +448,10 @@ class ZipInfo extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ZipInfo copyWith(void Function(ZipInfo) updates) => - super.copyWith((message) => updates(message as ZipInfo)) - as ZipInfo; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ZipInfo)) as ZipInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ZipInfo create() => ZipInfo._(); ZipInfo createEmptyInstance() => create(); @@ -458,6 +461,9 @@ class ZipInfo extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ZipInfo? _defaultInstance; + /// URL of the zip file to deploy from. Must be a URL to a resource in + /// Google Cloud Storage in the form + /// 'http(s)://storage.googleapis.com/\/\'. @$pb.TagNumber(3) $core.String get sourceUrl => $_getSZ(0); @$pb.TagNumber(3) @@ -470,6 +476,9 @@ class ZipInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSourceUrl() => clearField(3); + /// An estimate of the number of files in a zip for a zip deployment. + /// If set, must be greater than or equal to the actual number of files. + /// Used for optimizing performance; if not provided, deployment may be slow. @$pb.TagNumber(4) $core.int get filesCount => $_getIZ(1); @$pb.TagNumber(4) @@ -482,3 +491,7 @@ class ZipInfo extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearFilesCount() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pbenum.dart index 8bc69d11..777b6a62 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/deploy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pbjson.dart index 219fea68..16a93a81 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deploy.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/deploy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 deploymentDescriptor instead') @@ -68,7 +72,14 @@ const Deployment_FilesEntry$json = { /// Descriptor for `Deployment`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deploymentDescriptor = $convert.base64Decode( - 'CgpEZXBsb3ltZW50EkAKBWZpbGVzGAEgAygLMiouZ29vZ2xlLmFwcGVuZ2luZS52MS5EZXBsb3ltZW50LkZpbGVzRW50cnlSBWZpbGVzEkAKCWNvbnRhaW5lchgCIAEoCzIiLmdvb2dsZS5hcHBlbmdpbmUudjEuQ29udGFpbmVySW5mb1IJY29udGFpbmVyEi4KA3ppcBgDIAEoCzIcLmdvb2dsZS5hcHBlbmdpbmUudjEuWmlwSW5mb1IDemlwElYKE2Nsb3VkX2J1aWxkX29wdGlvbnMYBiABKAsyJi5nb29nbGUuYXBwZW5naW5lLnYxLkNsb3VkQnVpbGRPcHRpb25zUhFjbG91ZEJ1aWxkT3B0aW9ucxpXCgpGaWxlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EjMKBXZhbHVlGAIgASgLMh0uZ29vZ2xlLmFwcGVuZ2luZS52MS5GaWxlSW5mb1IFdmFsdWU6AjgB'); + 'CgpEZXBsb3ltZW50EkAKBWZpbGVzGAEgAygLMiouZ29vZ2xlLmFwcGVuZ2luZS52MS5EZXBsb3' + 'ltZW50LkZpbGVzRW50cnlSBWZpbGVzEkAKCWNvbnRhaW5lchgCIAEoCzIiLmdvb2dsZS5hcHBl' + 'bmdpbmUudjEuQ29udGFpbmVySW5mb1IJY29udGFpbmVyEi4KA3ppcBgDIAEoCzIcLmdvb2dsZS' + '5hcHBlbmdpbmUudjEuWmlwSW5mb1IDemlwElYKE2Nsb3VkX2J1aWxkX29wdGlvbnMYBiABKAsy' + 'Ji5nb29nbGUuYXBwZW5naW5lLnYxLkNsb3VkQnVpbGRPcHRpb25zUhFjbG91ZEJ1aWxkT3B0aW' + '9ucxpXCgpGaWxlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EjMKBXZhbHVlGAIgASgLMh0uZ29v' + 'Z2xlLmFwcGVuZ2luZS52MS5GaWxlSW5mb1IFdmFsdWU6AjgB'); + @$core.Deprecated('Use fileInfoDescriptor instead') const FileInfo$json = { '1': 'FileInfo', @@ -81,7 +92,9 @@ const FileInfo$json = { /// Descriptor for `FileInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List fileInfoDescriptor = $convert.base64Decode( - 'CghGaWxlSW5mbxIdCgpzb3VyY2VfdXJsGAEgASgJUglzb3VyY2VVcmwSGQoIc2hhMV9zdW0YAiABKAlSB3NoYTFTdW0SGwoJbWltZV90eXBlGAMgASgJUghtaW1lVHlwZQ=='); + 'CghGaWxlSW5mbxIdCgpzb3VyY2VfdXJsGAEgASgJUglzb3VyY2VVcmwSGQoIc2hhMV9zdW0YAi' + 'ABKAlSB3NoYTFTdW0SGwoJbWltZV90eXBlGAMgASgJUghtaW1lVHlwZQ=='); + @$core.Deprecated('Use containerInfoDescriptor instead') const ContainerInfo$json = { '1': 'ContainerInfo', @@ -93,6 +106,7 @@ const ContainerInfo$json = { /// Descriptor for `ContainerInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List containerInfoDescriptor = $convert .base64Decode('Cg1Db250YWluZXJJbmZvEhQKBWltYWdlGAEgASgJUgVpbWFnZQ=='); + @$core.Deprecated('Use cloudBuildOptionsDescriptor instead') const CloudBuildOptions$json = { '1': 'CloudBuildOptions', @@ -111,7 +125,10 @@ const CloudBuildOptions$json = { /// Descriptor for `CloudBuildOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List cloudBuildOptionsDescriptor = $convert.base64Decode( - 'ChFDbG91ZEJ1aWxkT3B0aW9ucxIiCg1hcHBfeWFtbF9wYXRoGAEgASgJUgthcHBZYW1sUGF0aBJJChNjbG91ZF9idWlsZF90aW1lb3V0GAIgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhFjbG91ZEJ1aWxkVGltZW91dA=='); + 'ChFDbG91ZEJ1aWxkT3B0aW9ucxIiCg1hcHBfeWFtbF9wYXRoGAEgASgJUgthcHBZYW1sUGF0aB' + 'JJChNjbG91ZF9idWlsZF90aW1lb3V0GAIgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9u' + 'UhFjbG91ZEJ1aWxkVGltZW91dA=='); + @$core.Deprecated('Use zipInfoDescriptor instead') const ZipInfo$json = { '1': 'ZipInfo', @@ -123,4 +140,5 @@ const ZipInfo$json = { /// Descriptor for `ZipInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List zipInfoDescriptor = $convert.base64Decode( - 'CgdaaXBJbmZvEh0KCnNvdXJjZV91cmwYAyABKAlSCXNvdXJjZVVybBIfCgtmaWxlc19jb3VudBgEIAEoBVIKZmlsZXNDb3VudA=='); + 'CgdaaXBJbmZvEh0KCnNvdXJjZV91cmwYAyABKAlSCXNvdXJjZVVybBIfCgtmaWxlc19jb3VudB' + 'gEIAEoBVIKZmlsZXNDb3VudA=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pb.dart index 0f620498..141aaac8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pb.dart @@ -1,8 +1,12 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/deployed_files.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pbenum.dart index 4aeb4530..9a946f7c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/deployed_files.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pbjson.dart index 801300cd..eb0a498a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/deployed_files.pbjson.dart @@ -1,10 +1,14 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/deployed_files.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pb.dart index 1ffc6e8f..b01cfd9c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pb.dart @@ -1,56 +1,52 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/domain.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// A domain that a user has been authorized to administer. To authorize use +/// of a domain, verify ownership via +/// [Search Console](https://search.google.com/search-console/welcome). class AuthorizedDomain extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuthorizedDomain', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..hasRequiredFields = false; - - AuthorizedDomain._() : super(); factory AuthorizedDomain({ $core.String? name, $core.String? id, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } - return _result; + return $result; } + AuthorizedDomain._() : super(); factory AuthorizedDomain.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuthorizedDomain.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuthorizedDomain', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -60,8 +56,10 @@ class AuthorizedDomain extends $pb.GeneratedMessage { 'Will be removed in next major version') AuthorizedDomain copyWith(void Function(AuthorizedDomain) updates) => super.copyWith((message) => updates(message as AuthorizedDomain)) - as AuthorizedDomain; // ignore: deprecated_member_use + as AuthorizedDomain; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuthorizedDomain create() => AuthorizedDomain._(); AuthorizedDomain createEmptyInstance() => create(); @@ -72,6 +70,10 @@ class AuthorizedDomain extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AuthorizedDomain? _defaultInstance; + /// Full path to the `AuthorizedDomain` resource in the API. Example: + /// `apps/myapp/authorizedDomains/example.com`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -84,6 +86,8 @@ class AuthorizedDomain extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Fully qualified domain name of the domain authorized for use. Example: + /// `example.com`. @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -96,3 +100,7 @@ class AuthorizedDomain extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pbenum.dart index 47a45756..ce1ba60d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/domain.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pbjson.dart index 949bc6e1..17b31995 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/domain.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 authorizedDomainDescriptor instead') diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pb.dart index 803141d7..a339585b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/domain_mapping.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,62 +17,51 @@ import 'domain_mapping.pbenum.dart'; export 'domain_mapping.pbenum.dart'; +/// A domain serving an App Engine application. class DomainMapping extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DomainMapping', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sslSettings', - subBuilder: SslSettings.create) - ..pc( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resourceRecords', $pb.PbFieldType.PM, - subBuilder: ResourceRecord.create) - ..hasRequiredFields = false; - - DomainMapping._() : super(); factory DomainMapping({ $core.String? name, $core.String? id, SslSettings? sslSettings, $core.Iterable? resourceRecords, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (sslSettings != null) { - _result.sslSettings = sslSettings; + $result.sslSettings = sslSettings; } if (resourceRecords != null) { - _result.resourceRecords.addAll(resourceRecords); + $result.resourceRecords.addAll(resourceRecords); } - return _result; + return $result; } + DomainMapping._() : super(); factory DomainMapping.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DomainMapping.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DomainMapping', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..aOM(3, _omitFieldNames ? '' : 'sslSettings', + subBuilder: SslSettings.create) + ..pc( + 4, _omitFieldNames ? '' : 'resourceRecords', $pb.PbFieldType.PM, + subBuilder: ResourceRecord.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') @@ -78,8 +71,10 @@ class DomainMapping extends $pb.GeneratedMessage { 'Will be removed in next major version') DomainMapping copyWith(void Function(DomainMapping) updates) => super.copyWith((message) => updates(message as DomainMapping)) - as DomainMapping; // ignore: deprecated_member_use + as DomainMapping; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DomainMapping create() => DomainMapping._(); DomainMapping createEmptyInstance() => create(); @@ -90,6 +85,10 @@ class DomainMapping extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DomainMapping? _defaultInstance; + /// Full path to the `DomainMapping` resource in the API. Example: + /// `apps/myapp/domainMapping/example.com`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -102,6 +101,8 @@ class DomainMapping extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Relative name of the domain serving the application. Example: + /// `example.com`. @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -114,6 +115,8 @@ class DomainMapping extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// SSL configuration for this domain. If unconfigured, this domain will not + /// serve with SSL. @$pb.TagNumber(3) SslSettings get sslSettings => $_getN(2); @$pb.TagNumber(3) @@ -128,62 +131,57 @@ class DomainMapping extends $pb.GeneratedMessage { @$pb.TagNumber(3) SslSettings ensureSslSettings() => $_ensure(2); + /// The resource records required to configure this domain mapping. These + /// records must be added to the domain's DNS configuration in order to + /// serve the application via this domain mapping. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.List get resourceRecords => $_getList(3); } +/// SSL configuration for a `DomainMapping` resource. class SslSettings extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SslSettings', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'certificateId') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sslManagementType', - $pb.PbFieldType.OE, - defaultOrMaker: - SslSettings_SslManagementType.SSL_MANAGEMENT_TYPE_UNSPECIFIED, - valueOf: SslSettings_SslManagementType.valueOf, - enumValues: SslSettings_SslManagementType.values) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pendingManagedCertificateId') - ..hasRequiredFields = false; - - SslSettings._() : super(); factory SslSettings({ $core.String? certificateId, SslSettings_SslManagementType? sslManagementType, $core.String? pendingManagedCertificateId, }) { - final _result = create(); + final $result = create(); if (certificateId != null) { - _result.certificateId = certificateId; + $result.certificateId = certificateId; } if (sslManagementType != null) { - _result.sslManagementType = sslManagementType; + $result.sslManagementType = sslManagementType; } if (pendingManagedCertificateId != null) { - _result.pendingManagedCertificateId = pendingManagedCertificateId; + $result.pendingManagedCertificateId = pendingManagedCertificateId; } - return _result; + return $result; } + SslSettings._() : super(); factory SslSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SslSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SslSettings', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'certificateId') + ..e( + 3, _omitFieldNames ? '' : 'sslManagementType', $pb.PbFieldType.OE, + defaultOrMaker: + SslSettings_SslManagementType.SSL_MANAGEMENT_TYPE_UNSPECIFIED, + valueOf: SslSettings_SslManagementType.valueOf, + enumValues: SslSettings_SslManagementType.values) + ..aOS(4, _omitFieldNames ? '' : 'pendingManagedCertificateId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -193,8 +191,10 @@ class SslSettings extends $pb.GeneratedMessage { 'Will be removed in next major version') SslSettings copyWith(void Function(SslSettings) updates) => super.copyWith((message) => updates(message as SslSettings)) - as SslSettings; // ignore: deprecated_member_use + as SslSettings; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SslSettings create() => SslSettings._(); SslSettings createEmptyInstance() => create(); @@ -204,6 +204,15 @@ class SslSettings extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SslSettings? _defaultInstance; + /// ID of the `AuthorizedCertificate` resource configuring SSL for the + /// application. Clearing this field will remove SSL support. + /// + /// By default, a managed certificate is automatically created for every + /// domain mapping. To omit SSL support or to configure SSL manually, specify + /// `SslManagementType.MANUAL` on a `CREATE` or `UPDATE` request. You must + /// be authorized to administer the `AuthorizedCertificate` resource to + /// manually map it to a `DomainMapping` resource. + /// Example: `12345`. @$pb.TagNumber(1) $core.String get certificateId => $_getSZ(0); @$pb.TagNumber(1) @@ -216,6 +225,9 @@ class SslSettings extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCertificateId() => clearField(1); + /// SSL management type for this domain. If `AUTOMATIC`, a managed certificate + /// is automatically provisioned. If `MANUAL`, `certificate_id` must be + /// manually specified in order to configure SSL for this domain. @$pb.TagNumber(3) SslSettings_SslManagementType get sslManagementType => $_getN(1); @$pb.TagNumber(3) @@ -228,6 +240,15 @@ class SslSettings extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSslManagementType() => clearField(3); + /// ID of the managed `AuthorizedCertificate` resource currently being + /// provisioned, if applicable. Until the new managed certificate has been + /// successfully provisioned, the previous SSL state will be preserved. Once + /// the provisioning process completes, the `certificate_id` field will reflect + /// the new managed certificate and this field will be left empty. To remove + /// SSL support while there is still a pending managed certificate, clear the + /// `certificate_id` field with an `UpdateDomainMappingRequest`. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.String get pendingManagedCertificateId => $_getSZ(2); @$pb.TagNumber(4) @@ -241,61 +262,47 @@ class SslSettings extends $pb.GeneratedMessage { void clearPendingManagedCertificateId() => clearField(4); } +/// A DNS resource record. class ResourceRecord extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ResourceRecord', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rrdata') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type', - $pb.PbFieldType.OE, - defaultOrMaker: ResourceRecord_RecordType.RECORD_TYPE_UNSPECIFIED, - valueOf: ResourceRecord_RecordType.valueOf, - enumValues: ResourceRecord_RecordType.values) - ..hasRequiredFields = false; - - ResourceRecord._() : super(); factory ResourceRecord({ $core.String? name, $core.String? rrdata, ResourceRecord_RecordType? type, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (rrdata != null) { - _result.rrdata = rrdata; + $result.rrdata = rrdata; } if (type != null) { - _result.type = type; + $result.type = type; } - return _result; + return $result; } + ResourceRecord._() : super(); factory ResourceRecord.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ResourceRecord.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ResourceRecord', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'rrdata') + ..e( + 3, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: ResourceRecord_RecordType.RECORD_TYPE_UNSPECIFIED, + valueOf: ResourceRecord_RecordType.valueOf, + enumValues: ResourceRecord_RecordType.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -305,8 +312,10 @@ class ResourceRecord extends $pb.GeneratedMessage { 'Will be removed in next major version') ResourceRecord copyWith(void Function(ResourceRecord) updates) => super.copyWith((message) => updates(message as ResourceRecord)) - as ResourceRecord; // ignore: deprecated_member_use + as ResourceRecord; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ResourceRecord create() => ResourceRecord._(); ResourceRecord createEmptyInstance() => create(); @@ -317,6 +326,8 @@ class ResourceRecord extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ResourceRecord? _defaultInstance; + /// Relative name of the object affected by this record. Only applicable for + /// `CNAME` records. Example: 'www'. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -329,6 +340,8 @@ class ResourceRecord extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Data for this record. Values vary by record type, as defined in RFC 1035 + /// (section 5) and RFC 1034 (section 3.6.1). @$pb.TagNumber(2) $core.String get rrdata => $_getSZ(1); @$pb.TagNumber(2) @@ -341,6 +354,7 @@ class ResourceRecord extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRrdata() => clearField(2); + /// Resource record type. Example: `AAAA`. @$pb.TagNumber(3) ResourceRecord_RecordType get type => $_getN(2); @$pb.TagNumber(3) @@ -353,3 +367,7 @@ class ResourceRecord extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearType() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pbenum.dart index 2c35a84d..0c39316f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pbenum.dart @@ -1,33 +1,27 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/domain_mapping.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The SSL management type for this domain. class SslSettings_SslManagementType extends $pb.ProtobufEnum { static const SslSettings_SslManagementType SSL_MANAGEMENT_TYPE_UNSPECIFIED = SslSettings_SslManagementType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SSL_MANAGEMENT_TYPE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'SSL_MANAGEMENT_TYPE_UNSPECIFIED'); static const SslSettings_SslManagementType AUTOMATIC = - SslSettings_SslManagementType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'AUTOMATIC'); + SslSettings_SslManagementType._(1, _omitEnumNames ? '' : 'AUTOMATIC'); static const SslSettings_SslManagementType MANUAL = - SslSettings_SslManagementType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MANUAL'); + SslSettings_SslManagementType._(2, _omitEnumNames ? '' : 'MANUAL'); static const $core.List values = [ @@ -45,19 +39,17 @@ class SslSettings_SslManagementType extends $pb.ProtobufEnum { : super(v, n); } +/// A resource record type. class ResourceRecord_RecordType extends $pb.ProtobufEnum { static const ResourceRecord_RecordType RECORD_TYPE_UNSPECIFIED = ResourceRecord_RecordType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RECORD_TYPE_UNSPECIFIED'); - static const ResourceRecord_RecordType A = ResourceRecord_RecordType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'A'); - static const ResourceRecord_RecordType AAAA = ResourceRecord_RecordType._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'AAAA'); - static const ResourceRecord_RecordType CNAME = ResourceRecord_RecordType._( - 3, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CNAME'); + 0, _omitEnumNames ? '' : 'RECORD_TYPE_UNSPECIFIED'); + static const ResourceRecord_RecordType A = + ResourceRecord_RecordType._(1, _omitEnumNames ? '' : 'A'); + static const ResourceRecord_RecordType AAAA = + ResourceRecord_RecordType._(2, _omitEnumNames ? '' : 'AAAA'); + static const ResourceRecord_RecordType CNAME = + ResourceRecord_RecordType._(3, _omitEnumNames ? '' : 'CNAME'); static const $core.List values = [ @@ -73,3 +65,5 @@ class ResourceRecord_RecordType extends $pb.ProtobufEnum { const ResourceRecord_RecordType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pbjson.dart index 2ccbd7d7..778a4bb8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/domain_mapping.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/domain_mapping.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 domainMappingDescriptor instead') @@ -36,7 +40,11 @@ const DomainMapping$json = { /// Descriptor for `DomainMapping`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List domainMappingDescriptor = $convert.base64Decode( - 'Cg1Eb21haW5NYXBwaW5nEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkEkMKDHNzbF9zZXR0aW5ncxgDIAEoCzIgLmdvb2dsZS5hcHBlbmdpbmUudjEuU3NsU2V0dGluZ3NSC3NzbFNldHRpbmdzEk4KEHJlc291cmNlX3JlY29yZHMYBCADKAsyIy5nb29nbGUuYXBwZW5naW5lLnYxLlJlc291cmNlUmVjb3JkUg9yZXNvdXJjZVJlY29yZHM='); + 'Cg1Eb21haW5NYXBwaW5nEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkEkMKDH' + 'NzbF9zZXR0aW5ncxgDIAEoCzIgLmdvb2dsZS5hcHBlbmdpbmUudjEuU3NsU2V0dGluZ3NSC3Nz' + 'bFNldHRpbmdzEk4KEHJlc291cmNlX3JlY29yZHMYBCADKAsyIy5nb29nbGUuYXBwZW5naW5lLn' + 'YxLlJlc291cmNlUmVjb3JkUg9yZXNvdXJjZVJlY29yZHM='); + @$core.Deprecated('Use sslSettingsDescriptor instead') const SslSettings$json = { '1': 'SslSettings', @@ -73,7 +81,13 @@ const SslSettings_SslManagementType$json = { /// Descriptor for `SslSettings`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sslSettingsDescriptor = $convert.base64Decode( - 'CgtTc2xTZXR0aW5ncxIlCg5jZXJ0aWZpY2F0ZV9pZBgBIAEoCVINY2VydGlmaWNhdGVJZBJiChNzc2xfbWFuYWdlbWVudF90eXBlGAMgASgOMjIuZ29vZ2xlLmFwcGVuZ2luZS52MS5Tc2xTZXR0aW5ncy5Tc2xNYW5hZ2VtZW50VHlwZVIRc3NsTWFuYWdlbWVudFR5cGUSQwoecGVuZGluZ19tYW5hZ2VkX2NlcnRpZmljYXRlX2lkGAQgASgJUhtwZW5kaW5nTWFuYWdlZENlcnRpZmljYXRlSWQiUwoRU3NsTWFuYWdlbWVudFR5cGUSIwofU1NMX01BTkFHRU1FTlRfVFlQRV9VTlNQRUNJRklFRBAAEg0KCUFVVE9NQVRJQxABEgoKBk1BTlVBTBAC'); + 'CgtTc2xTZXR0aW5ncxIlCg5jZXJ0aWZpY2F0ZV9pZBgBIAEoCVINY2VydGlmaWNhdGVJZBJiCh' + 'Nzc2xfbWFuYWdlbWVudF90eXBlGAMgASgOMjIuZ29vZ2xlLmFwcGVuZ2luZS52MS5Tc2xTZXR0' + 'aW5ncy5Tc2xNYW5hZ2VtZW50VHlwZVIRc3NsTWFuYWdlbWVudFR5cGUSQwoecGVuZGluZ19tYW' + '5hZ2VkX2NlcnRpZmljYXRlX2lkGAQgASgJUhtwZW5kaW5nTWFuYWdlZENlcnRpZmljYXRlSWQi' + 'UwoRU3NsTWFuYWdlbWVudFR5cGUSIwofU1NMX01BTkFHRU1FTlRfVFlQRV9VTlNQRUNJRklFRB' + 'AAEg0KCUFVVE9NQVRJQxABEgoKBk1BTlVBTBAC'); + @$core.Deprecated('Use resourceRecordDescriptor instead') const ResourceRecord$json = { '1': 'ResourceRecord', @@ -105,4 +119,7 @@ const ResourceRecord_RecordType$json = { /// Descriptor for `ResourceRecord`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List resourceRecordDescriptor = $convert.base64Decode( - 'Cg5SZXNvdXJjZVJlY29yZBISCgRuYW1lGAEgASgJUgRuYW1lEhYKBnJyZGF0YRgCIAEoCVIGcnJkYXRhEkIKBHR5cGUYAyABKA4yLi5nb29nbGUuYXBwZW5naW5lLnYxLlJlc291cmNlUmVjb3JkLlJlY29yZFR5cGVSBHR5cGUiRQoKUmVjb3JkVHlwZRIbChdSRUNPUkRfVFlQRV9VTlNQRUNJRklFRBAAEgUKAUEQARIICgRBQUFBEAISCQoFQ05BTUUQAw=='); + 'Cg5SZXNvdXJjZVJlY29yZBISCgRuYW1lGAEgASgJUgRuYW1lEhYKBnJyZGF0YRgCIAEoCVIGcn' + 'JkYXRhEkIKBHR5cGUYAyABKA4yLi5nb29nbGUuYXBwZW5naW5lLnYxLlJlc291cmNlUmVjb3Jk' + 'LlJlY29yZFR5cGVSBHR5cGUiRQoKUmVjb3JkVHlwZRIbChdSRUNPUkRfVFlQRV9VTlNQRUNJRk' + 'lFRBAAEgUKAUEQARIICgRBQUFBEAISCQoFQ05BTUUQAw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pb.dart index 53dead2b..2bd4a2c9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/firewall.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,63 +17,53 @@ import 'firewall.pbenum.dart'; export 'firewall.pbenum.dart'; +/// A single firewall rule that is evaluated against incoming traffic +/// and provides an action to take on matched requests. class FirewallRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'FirewallRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'priority', - $pb.PbFieldType.O3) - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'action', - $pb.PbFieldType.OE, - defaultOrMaker: FirewallRule_Action.UNSPECIFIED_ACTION, - valueOf: FirewallRule_Action.valueOf, - enumValues: FirewallRule_Action.values) - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sourceRange') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'description') - ..hasRequiredFields = false; - - FirewallRule._() : super(); factory FirewallRule({ $core.int? priority, FirewallRule_Action? action, $core.String? sourceRange, $core.String? description, }) { - final _result = create(); + final $result = create(); if (priority != null) { - _result.priority = priority; + $result.priority = priority; } if (action != null) { - _result.action = action; + $result.action = action; } if (sourceRange != null) { - _result.sourceRange = sourceRange; + $result.sourceRange = sourceRange; } if (description != null) { - _result.description = description; + $result.description = description; } - return _result; + return $result; } + FirewallRule._() : super(); factory FirewallRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory FirewallRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FirewallRule', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'priority', $pb.PbFieldType.O3) + ..e( + 2, _omitFieldNames ? '' : 'action', $pb.PbFieldType.OE, + defaultOrMaker: FirewallRule_Action.UNSPECIFIED_ACTION, + valueOf: FirewallRule_Action.valueOf, + enumValues: FirewallRule_Action.values) + ..aOS(3, _omitFieldNames ? '' : 'sourceRange') + ..aOS(4, _omitFieldNames ? '' : 'description') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -79,8 +73,10 @@ class FirewallRule extends $pb.GeneratedMessage { 'Will be removed in next major version') FirewallRule copyWith(void Function(FirewallRule) updates) => super.copyWith((message) => updates(message as FirewallRule)) - as FirewallRule; // ignore: deprecated_member_use + as FirewallRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static FirewallRule create() => FirewallRule._(); FirewallRule createEmptyInstance() => create(); @@ -91,6 +87,12 @@ class FirewallRule extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static FirewallRule? _defaultInstance; + /// A positive integer between [1, Int32.MaxValue-1] that defines the order of + /// rule evaluation. Rules with the lowest priority are evaluated first. + /// + /// A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic + /// when no previous rule matches. Only the action of this rule can be modified + /// by the user. @$pb.TagNumber(1) $core.int get priority => $_getIZ(0); @$pb.TagNumber(1) @@ -103,6 +105,7 @@ class FirewallRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPriority() => clearField(1); + /// The action to take on matched requests. @$pb.TagNumber(2) FirewallRule_Action get action => $_getN(1); @$pb.TagNumber(2) @@ -115,6 +118,17 @@ class FirewallRule extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearAction() => clearField(2); + /// IP address or range, defined using CIDR notation, of requests that this + /// rule applies to. You can use the wildcard character "*" to match all IPs + /// equivalent to "0/0" and "::/0" together. + /// Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32` + /// or `2001:0db8:0000:0042:0000:8a2e:0370:7334`. + /// + /// + ///

Truncation will be silently performed on addresses which are not + /// properly truncated. For example, `1.2.3.4/24` is accepted as the same + /// address as `1.2.3.0/24`. Similarly, for IPv6, `2001:db8::1/32` is accepted + /// as the same address as `2001:db8::/32`. @$pb.TagNumber(3) $core.String get sourceRange => $_getSZ(2); @$pb.TagNumber(3) @@ -127,6 +141,8 @@ class FirewallRule extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSourceRange() => clearField(3); + /// An optional string description of this rule. + /// This field has a maximum length of 100 characters. @$pb.TagNumber(4) $core.String get description => $_getSZ(3); @$pb.TagNumber(4) @@ -139,3 +155,7 @@ class FirewallRule extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearDescription() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pbenum.dart index a53701fe..7ec802b4 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pbenum.dart @@ -1,24 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/firewall.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Available actions to take on matching requests. class FirewallRule_Action extends $pb.ProtobufEnum { - static const FirewallRule_Action UNSPECIFIED_ACTION = FirewallRule_Action._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED_ACTION'); - static const FirewallRule_Action ALLOW = FirewallRule_Action._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ALLOW'); - static const FirewallRule_Action DENY = FirewallRule_Action._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DENY'); + static const FirewallRule_Action UNSPECIFIED_ACTION = + FirewallRule_Action._(0, _omitEnumNames ? '' : 'UNSPECIFIED_ACTION'); + static const FirewallRule_Action ALLOW = + FirewallRule_Action._(1, _omitEnumNames ? '' : 'ALLOW'); + static const FirewallRule_Action DENY = + FirewallRule_Action._(2, _omitEnumNames ? '' : 'DENY'); static const $core.List values = [ UNSPECIFIED_ACTION, @@ -32,3 +34,5 @@ class FirewallRule_Action extends $pb.ProtobufEnum { const FirewallRule_Action._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pbjson.dart index 535c2eb7..7e6cd460 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/firewall.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/firewall.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 firewallRuleDescriptor instead') @@ -40,4 +44,8 @@ const FirewallRule_Action$json = { /// Descriptor for `FirewallRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List firewallRuleDescriptor = $convert.base64Decode( - 'CgxGaXJld2FsbFJ1bGUSGgoIcHJpb3JpdHkYASABKAVSCHByaW9yaXR5EkAKBmFjdGlvbhgCIAEoDjIoLmdvb2dsZS5hcHBlbmdpbmUudjEuRmlyZXdhbGxSdWxlLkFjdGlvblIGYWN0aW9uEiEKDHNvdXJjZV9yYW5nZRgDIAEoCVILc291cmNlUmFuZ2USIAoLZGVzY3JpcHRpb24YBCABKAlSC2Rlc2NyaXB0aW9uIjUKBkFjdGlvbhIWChJVTlNQRUNJRklFRF9BQ1RJT04QABIJCgVBTExPVxABEggKBERFTlkQAg=='); + 'CgxGaXJld2FsbFJ1bGUSGgoIcHJpb3JpdHkYASABKAVSCHByaW9yaXR5EkAKBmFjdGlvbhgCIA' + 'EoDjIoLmdvb2dsZS5hcHBlbmdpbmUudjEuRmlyZXdhbGxSdWxlLkFjdGlvblIGYWN0aW9uEiEK' + 'DHNvdXJjZV9yYW5nZRgDIAEoCVILc291cmNlUmFuZ2USIAoLZGVzY3JpcHRpb24YBCABKAlSC2' + 'Rlc2NyaXB0aW9uIjUKBkFjdGlvbhIWChJVTlNQRUNJRklFRF9BQ1RJT04QABIJCgVBTExPVxAB' + 'EggKBERFTlkQAg=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pb.dart index 147c80c9..8eb56be3 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pb.dart @@ -1,41 +1,42 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/instance.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../protobuf/timestamp.pb.dart' as $0; - +import '../../protobuf/timestamp.pb.dart' as $50; import 'instance.pbenum.dart'; export 'instance.pbenum.dart'; +/// Wrapper for LivenessState enum. class Instance_Liveness extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Instance.Liveness', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - Instance_Liveness._() : super(); factory Instance_Liveness() => create(); + Instance_Liveness._() : super(); factory Instance_Liveness.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Instance_Liveness.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Instance.Liveness', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + 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') @@ -45,8 +46,10 @@ class Instance_Liveness extends $pb.GeneratedMessage { 'Will be removed in next major version') Instance_Liveness copyWith(void Function(Instance_Liveness) updates) => super.copyWith((message) => updates(message as Instance_Liveness)) - as Instance_Liveness; // ignore: deprecated_member_use + as Instance_Liveness; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Instance_Liveness create() => Instance_Liveness._(); Instance_Liveness createEmptyInstance() => create(); @@ -58,53 +61,9 @@ class Instance_Liveness extends $pb.GeneratedMessage { static Instance_Liveness? _defaultInstance; } +/// An Instance resource is the computing unit that App Engine uses to +/// automatically scale an application. class Instance extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Instance', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'appEngineRelease') - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'availability', - $pb.PbFieldType.OE, - defaultOrMaker: Instance_Availability.UNSPECIFIED, - valueOf: Instance_Availability.valueOf, - enumValues: Instance_Availability.values) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmName') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmZoneName') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmId') - ..aOM<$0.Timestamp>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startTime', subBuilder: $0.Timestamp.create) - ..a<$core.int>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'requests', $pb.PbFieldType.O3) - ..a<$core.int>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'errors', $pb.PbFieldType.O3) - ..a<$core.double>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'qps', $pb.PbFieldType.OF) - ..a<$core.int>(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'averageLatency', $pb.PbFieldType.O3) - ..aInt64(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'memoryUsage') - ..aOS(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmStatus') - ..aOB(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmDebugEnabled') - ..aOS(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmIp') - ..e(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmLiveness', $pb.PbFieldType.OE, defaultOrMaker: Instance_Liveness_LivenessState.LIVENESS_STATE_UNSPECIFIED, valueOf: Instance_Liveness_LivenessState.valueOf, enumValues: Instance_Liveness_LivenessState.values) - ..hasRequiredFields = false; - - Instance._() : super(); factory Instance({ $core.String? name, $core.String? id, @@ -113,7 +72,7 @@ class Instance extends $pb.GeneratedMessage { $core.String? vmName, $core.String? vmZoneName, $core.String? vmId, - $0.Timestamp? startTime, + $50.Timestamp? startTime, $core.int? requests, $core.int? errors, $core.double? qps, @@ -124,66 +83,103 @@ class Instance extends $pb.GeneratedMessage { $core.String? vmIp, Instance_Liveness_LivenessState? vmLiveness, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (appEngineRelease != null) { - _result.appEngineRelease = appEngineRelease; + $result.appEngineRelease = appEngineRelease; } if (availability != null) { - _result.availability = availability; + $result.availability = availability; } if (vmName != null) { - _result.vmName = vmName; + $result.vmName = vmName; } if (vmZoneName != null) { - _result.vmZoneName = vmZoneName; + $result.vmZoneName = vmZoneName; } if (vmId != null) { - _result.vmId = vmId; + $result.vmId = vmId; } if (startTime != null) { - _result.startTime = startTime; + $result.startTime = startTime; } if (requests != null) { - _result.requests = requests; + $result.requests = requests; } if (errors != null) { - _result.errors = errors; + $result.errors = errors; } if (qps != null) { - _result.qps = qps; + $result.qps = qps; } if (averageLatency != null) { - _result.averageLatency = averageLatency; + $result.averageLatency = averageLatency; } if (memoryUsage != null) { - _result.memoryUsage = memoryUsage; + $result.memoryUsage = memoryUsage; } if (vmStatus != null) { - _result.vmStatus = vmStatus; + $result.vmStatus = vmStatus; } if (vmDebugEnabled != null) { - _result.vmDebugEnabled = vmDebugEnabled; + $result.vmDebugEnabled = vmDebugEnabled; } if (vmIp != null) { - _result.vmIp = vmIp; + $result.vmIp = vmIp; } if (vmLiveness != null) { - _result.vmLiveness = vmLiveness; + $result.vmLiveness = vmLiveness; } - return _result; + return $result; } + Instance._() : super(); factory Instance.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Instance.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Instance', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..aOS(3, _omitFieldNames ? '' : 'appEngineRelease') + ..e( + 4, _omitFieldNames ? '' : 'availability', $pb.PbFieldType.OE, + defaultOrMaker: Instance_Availability.UNSPECIFIED, + valueOf: Instance_Availability.valueOf, + enumValues: Instance_Availability.values) + ..aOS(5, _omitFieldNames ? '' : 'vmName') + ..aOS(6, _omitFieldNames ? '' : 'vmZoneName') + ..aOS(7, _omitFieldNames ? '' : 'vmId') + ..aOM<$50.Timestamp>(8, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.create) + ..a<$core.int>(9, _omitFieldNames ? '' : 'requests', $pb.PbFieldType.O3) + ..a<$core.int>(10, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.O3) + ..a<$core.double>(11, _omitFieldNames ? '' : 'qps', $pb.PbFieldType.OF) + ..a<$core.int>( + 12, _omitFieldNames ? '' : 'averageLatency', $pb.PbFieldType.O3) + ..aInt64(13, _omitFieldNames ? '' : 'memoryUsage') + ..aOS(14, _omitFieldNames ? '' : 'vmStatus') + ..aOB(15, _omitFieldNames ? '' : 'vmDebugEnabled') + ..aOS(16, _omitFieldNames ? '' : 'vmIp') + ..e( + 17, _omitFieldNames ? '' : 'vmLiveness', $pb.PbFieldType.OE, + defaultOrMaker: + Instance_Liveness_LivenessState.LIVENESS_STATE_UNSPECIFIED, + valueOf: Instance_Liveness_LivenessState.valueOf, + enumValues: Instance_Liveness_LivenessState.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -192,9 +188,10 @@ class Instance extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Instance copyWith(void Function(Instance) updates) => - super.copyWith((message) => updates(message as Instance)) - as Instance; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Instance)) as Instance; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Instance create() => Instance._(); Instance createEmptyInstance() => create(); @@ -204,6 +201,8 @@ class Instance extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Instance? _defaultInstance; + /// Output only. Full path to the Instance resource in the API. + /// Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -216,6 +215,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Output only. Relative name of the instance within the version. + /// Example: `instance-1`. @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -228,6 +229,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// Output only. App Engine release this instance is running on. @$pb.TagNumber(3) $core.String get appEngineRelease => $_getSZ(2); @$pb.TagNumber(3) @@ -240,6 +242,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearAppEngineRelease() => clearField(3); + /// Output only. Availability of the instance. @$pb.TagNumber(4) Instance_Availability get availability => $_getN(3); @$pb.TagNumber(4) @@ -252,6 +255,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearAvailability() => clearField(4); + /// Output only. Name of the virtual machine where this instance lives. Only applicable + /// for instances in App Engine flexible environment. @$pb.TagNumber(5) $core.String get vmName => $_getSZ(4); @$pb.TagNumber(5) @@ -264,6 +269,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearVmName() => clearField(5); + /// Output only. Zone where the virtual machine is located. Only applicable for instances + /// in App Engine flexible environment. @$pb.TagNumber(6) $core.String get vmZoneName => $_getSZ(5); @$pb.TagNumber(6) @@ -276,6 +283,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearVmZoneName() => clearField(6); + /// Output only. Virtual machine ID of this instance. Only applicable for instances in + /// App Engine flexible environment. @$pb.TagNumber(7) $core.String get vmId => $_getSZ(6); @$pb.TagNumber(7) @@ -288,10 +297,13 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearVmId() => clearField(7); + /// Output only. Time that this instance was started. + /// + /// @OutputOnly @$pb.TagNumber(8) - $0.Timestamp get startTime => $_getN(7); + $50.Timestamp get startTime => $_getN(7); @$pb.TagNumber(8) - set startTime($0.Timestamp v) { + set startTime($50.Timestamp v) { setField(8, v); } @@ -300,8 +312,9 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearStartTime() => clearField(8); @$pb.TagNumber(8) - $0.Timestamp ensureStartTime() => $_ensure(7); + $50.Timestamp ensureStartTime() => $_ensure(7); + /// Output only. Number of requests since this instance was started. @$pb.TagNumber(9) $core.int get requests => $_getIZ(8); @$pb.TagNumber(9) @@ -314,6 +327,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearRequests() => clearField(9); + /// Output only. Number of errors since this instance was started. @$pb.TagNumber(10) $core.int get errors => $_getIZ(9); @$pb.TagNumber(10) @@ -326,6 +340,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearErrors() => clearField(10); + /// Output only. Average queries per second (QPS) over the last minute. @$pb.TagNumber(11) $core.double get qps => $_getN(10); @$pb.TagNumber(11) @@ -338,6 +353,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearQps() => clearField(11); + /// Output only. Average latency (ms) over the last minute. @$pb.TagNumber(12) $core.int get averageLatency => $_getIZ(11); @$pb.TagNumber(12) @@ -350,6 +366,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearAverageLatency() => clearField(12); + /// Output only. Total memory in use (bytes). @$pb.TagNumber(13) $fixnum.Int64 get memoryUsage => $_getI64(12); @$pb.TagNumber(13) @@ -362,6 +379,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(13) void clearMemoryUsage() => clearField(13); + /// Output only. Status of the virtual machine where this instance lives. Only applicable + /// for instances in App Engine flexible environment. @$pb.TagNumber(14) $core.String get vmStatus => $_getSZ(13); @$pb.TagNumber(14) @@ -374,6 +393,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearVmStatus() => clearField(14); + /// Output only. Whether this instance is in debug mode. Only applicable for instances in + /// App Engine flexible environment. @$pb.TagNumber(15) $core.bool get vmDebugEnabled => $_getBF(14); @$pb.TagNumber(15) @@ -386,6 +407,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearVmDebugEnabled() => clearField(15); + /// Output only. The IP address of this instance. Only applicable for instances in App + /// Engine flexible environment. @$pb.TagNumber(16) $core.String get vmIp => $_getSZ(15); @$pb.TagNumber(16) @@ -398,6 +421,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(16) void clearVmIp() => clearField(16); + /// Output only. The liveness health check of this instance. Only applicable for instances + /// in App Engine flexible environment. @$pb.TagNumber(17) Instance_Liveness_LivenessState get vmLiveness => $_getN(16); @$pb.TagNumber(17) @@ -410,3 +435,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(17) void clearVmLiveness() => clearField(17); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pbenum.dart index b0e0c96c..adbf9e7e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pbenum.dart @@ -1,24 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/instance.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Availability of the instance. class Instance_Availability extends $pb.ProtobufEnum { - static const Instance_Availability UNSPECIFIED = Instance_Availability._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED'); - static const Instance_Availability RESIDENT = Instance_Availability._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'RESIDENT'); - static const Instance_Availability DYNAMIC = Instance_Availability._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DYNAMIC'); + static const Instance_Availability UNSPECIFIED = + Instance_Availability._(0, _omitEnumNames ? '' : 'UNSPECIFIED'); + static const Instance_Availability RESIDENT = + Instance_Availability._(1, _omitEnumNames ? '' : 'RESIDENT'); + static const Instance_Availability DYNAMIC = + Instance_Availability._(2, _omitEnumNames ? '' : 'DYNAMIC'); static const $core.List values = [ @@ -34,43 +36,21 @@ class Instance_Availability extends $pb.ProtobufEnum { const Instance_Availability._($core.int v, $core.String n) : super(v, n); } +/// Liveness health check status for Flex instances. class Instance_Liveness_LivenessState extends $pb.ProtobufEnum { static const Instance_Liveness_LivenessState LIVENESS_STATE_UNSPECIFIED = Instance_Liveness_LivenessState._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LIVENESS_STATE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'LIVENESS_STATE_UNSPECIFIED'); static const Instance_Liveness_LivenessState UNKNOWN = - Instance_Liveness_LivenessState._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNKNOWN'); + Instance_Liveness_LivenessState._(1, _omitEnumNames ? '' : 'UNKNOWN'); static const Instance_Liveness_LivenessState HEALTHY = - Instance_Liveness_LivenessState._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'HEALTHY'); + Instance_Liveness_LivenessState._(2, _omitEnumNames ? '' : 'HEALTHY'); static const Instance_Liveness_LivenessState UNHEALTHY = - Instance_Liveness_LivenessState._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNHEALTHY'); + Instance_Liveness_LivenessState._(3, _omitEnumNames ? '' : 'UNHEALTHY'); static const Instance_Liveness_LivenessState DRAINING = - Instance_Liveness_LivenessState._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DRAINING'); + Instance_Liveness_LivenessState._(4, _omitEnumNames ? '' : 'DRAINING'); static const Instance_Liveness_LivenessState TIMEOUT = - Instance_Liveness_LivenessState._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TIMEOUT'); + Instance_Liveness_LivenessState._(5, _omitEnumNames ? '' : 'TIMEOUT'); static const $core.List values = [ @@ -90,3 +70,5 @@ class Instance_Liveness_LivenessState extends $pb.ProtobufEnum { const Instance_Liveness_LivenessState._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pbjson.dart index c7130759..c183f60a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/instance.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/instance.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 instanceDescriptor instead') @@ -119,4 +123,22 @@ const Instance_Availability$json = { /// Descriptor for `Instance`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List instanceDescriptor = $convert.base64Decode( - 'CghJbnN0YW5jZRIXCgRuYW1lGAEgASgJQgPgQQNSBG5hbWUSEwoCaWQYAiABKAlCA+BBA1ICaWQSMQoSYXBwX2VuZ2luZV9yZWxlYXNlGAMgASgJQgPgQQNSEGFwcEVuZ2luZVJlbGVhc2USUwoMYXZhaWxhYmlsaXR5GAQgASgOMiouZ29vZ2xlLmFwcGVuZ2luZS52MS5JbnN0YW5jZS5BdmFpbGFiaWxpdHlCA+BBA1IMYXZhaWxhYmlsaXR5EhwKB3ZtX25hbWUYBSABKAlCA+BBA1IGdm1OYW1lEiUKDHZtX3pvbmVfbmFtZRgGIAEoCUID4EEDUgp2bVpvbmVOYW1lEhgKBXZtX2lkGAcgASgJQgPgQQNSBHZtSWQSPgoKc3RhcnRfdGltZRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBA1IJc3RhcnRUaW1lEh8KCHJlcXVlc3RzGAkgASgFQgPgQQNSCHJlcXVlc3RzEhsKBmVycm9ycxgKIAEoBUID4EEDUgZlcnJvcnMSFQoDcXBzGAsgASgCQgPgQQNSA3FwcxIsCg9hdmVyYWdlX2xhdGVuY3kYDCABKAVCA+BBA1IOYXZlcmFnZUxhdGVuY3kSJgoMbWVtb3J5X3VzYWdlGA0gASgDQgPgQQNSC21lbW9yeVVzYWdlEiAKCXZtX3N0YXR1cxgOIAEoCUID4EEDUgh2bVN0YXR1cxItChB2bV9kZWJ1Z19lbmFibGVkGA8gASgIQgPgQQNSDnZtRGVidWdFbmFibGVkEhgKBXZtX2lwGBAgASgJQgPgQQNSBHZtSXASWgoLdm1fbGl2ZW5lc3MYESABKA4yNC5nb29nbGUuYXBwZW5naW5lLnYxLkluc3RhbmNlLkxpdmVuZXNzLkxpdmVuZXNzU3RhdGVCA+BBA1IKdm1MaXZlbmVzcxp/CghMaXZlbmVzcyJzCg1MaXZlbmVzc1N0YXRlEh4KGkxJVkVORVNTX1NUQVRFX1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgsKB0hFQUxUSFkQAhINCglVTkhFQUxUSFkQAxIMCghEUkFJTklORxAEEgsKB1RJTUVPVVQQBSI6CgxBdmFpbGFiaWxpdHkSDwoLVU5TUEVDSUZJRUQQABIMCghSRVNJREVOVBABEgsKB0RZTkFNSUMQAjpt6kFqCiFhcHBlbmdpbmUuZ29vZ2xlYXBpcy5jb20vSW5zdGFuY2USRWFwcHMve2FwcH0vc2VydmljZXMve3NlcnZpY2V9L3ZlcnNpb25zL3t2ZXJzaW9ufS9pbnN0YW5jZXMve2luc3RhbmNlfQ=='); + 'CghJbnN0YW5jZRIXCgRuYW1lGAEgASgJQgPgQQNSBG5hbWUSEwoCaWQYAiABKAlCA+BBA1ICaW' + 'QSMQoSYXBwX2VuZ2luZV9yZWxlYXNlGAMgASgJQgPgQQNSEGFwcEVuZ2luZVJlbGVhc2USUwoM' + 'YXZhaWxhYmlsaXR5GAQgASgOMiouZ29vZ2xlLmFwcGVuZ2luZS52MS5JbnN0YW5jZS5BdmFpbG' + 'FiaWxpdHlCA+BBA1IMYXZhaWxhYmlsaXR5EhwKB3ZtX25hbWUYBSABKAlCA+BBA1IGdm1OYW1l' + 'EiUKDHZtX3pvbmVfbmFtZRgGIAEoCUID4EEDUgp2bVpvbmVOYW1lEhgKBXZtX2lkGAcgASgJQg' + 'PgQQNSBHZtSWQSPgoKc3RhcnRfdGltZRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh' + 'bXBCA+BBA1IJc3RhcnRUaW1lEh8KCHJlcXVlc3RzGAkgASgFQgPgQQNSCHJlcXVlc3RzEhsKBm' + 'Vycm9ycxgKIAEoBUID4EEDUgZlcnJvcnMSFQoDcXBzGAsgASgCQgPgQQNSA3FwcxIsCg9hdmVy' + 'YWdlX2xhdGVuY3kYDCABKAVCA+BBA1IOYXZlcmFnZUxhdGVuY3kSJgoMbWVtb3J5X3VzYWdlGA' + '0gASgDQgPgQQNSC21lbW9yeVVzYWdlEiAKCXZtX3N0YXR1cxgOIAEoCUID4EEDUgh2bVN0YXR1' + 'cxItChB2bV9kZWJ1Z19lbmFibGVkGA8gASgIQgPgQQNSDnZtRGVidWdFbmFibGVkEhgKBXZtX2' + 'lwGBAgASgJQgPgQQNSBHZtSXASWgoLdm1fbGl2ZW5lc3MYESABKA4yNC5nb29nbGUuYXBwZW5n' + 'aW5lLnYxLkluc3RhbmNlLkxpdmVuZXNzLkxpdmVuZXNzU3RhdGVCA+BBA1IKdm1MaXZlbmVzcx' + 'p/CghMaXZlbmVzcyJzCg1MaXZlbmVzc1N0YXRlEh4KGkxJVkVORVNTX1NUQVRFX1VOU1BFQ0lG' + 'SUVEEAASCwoHVU5LTk9XThABEgsKB0hFQUxUSFkQAhINCglVTkhFQUxUSFkQAxIMCghEUkFJTk' + 'lORxAEEgsKB1RJTUVPVVQQBSI6CgxBdmFpbGFiaWxpdHkSDwoLVU5TUEVDSUZJRUQQABIMCghS' + 'RVNJREVOVBABEgsKB0RZTkFNSUMQAjpt6kFqCiFhcHBlbmdpbmUuZ29vZ2xlYXBpcy5jb20vSW' + '5zdGFuY2USRWFwcHMve2FwcH0vc2VydmljZXMve3NlcnZpY2V9L3ZlcnNpb25zL3t2ZXJzaW9u' + 'fS9pbnN0YW5jZXMve2luc3RhbmNlfQ=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pb.dart index a53c67e9..a6e7e587 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pb.dart @@ -1,65 +1,55 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/location.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Metadata for the given [google.cloud.location.Location][google.cloud.location.Location]. class LocationMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LocationMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'standardEnvironmentAvailable') - ..aOB( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'flexibleEnvironmentAvailable') - ..aOB( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'searchApiAvailable') - ..hasRequiredFields = false; - - LocationMetadata._() : super(); factory LocationMetadata({ $core.bool? standardEnvironmentAvailable, $core.bool? flexibleEnvironmentAvailable, $core.bool? searchApiAvailable, }) { - final _result = create(); + final $result = create(); if (standardEnvironmentAvailable != null) { - _result.standardEnvironmentAvailable = standardEnvironmentAvailable; + $result.standardEnvironmentAvailable = standardEnvironmentAvailable; } if (flexibleEnvironmentAvailable != null) { - _result.flexibleEnvironmentAvailable = flexibleEnvironmentAvailable; + $result.flexibleEnvironmentAvailable = flexibleEnvironmentAvailable; } if (searchApiAvailable != null) { - _result.searchApiAvailable = searchApiAvailable; + $result.searchApiAvailable = searchApiAvailable; } - return _result; + return $result; } + LocationMetadata._() : super(); factory LocationMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LocationMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LocationMetadata', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOB(2, _omitFieldNames ? '' : 'standardEnvironmentAvailable') + ..aOB(4, _omitFieldNames ? '' : 'flexibleEnvironmentAvailable') + ..aOB(6, _omitFieldNames ? '' : 'searchApiAvailable') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -69,8 +59,10 @@ class LocationMetadata extends $pb.GeneratedMessage { 'Will be removed in next major version') LocationMetadata copyWith(void Function(LocationMetadata) updates) => super.copyWith((message) => updates(message as LocationMetadata)) - as LocationMetadata; // ignore: deprecated_member_use + as LocationMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LocationMetadata create() => LocationMetadata._(); LocationMetadata createEmptyInstance() => create(); @@ -81,6 +73,9 @@ class LocationMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LocationMetadata? _defaultInstance; + /// App Engine standard environment is available in the given location. + /// + /// @OutputOnly @$pb.TagNumber(2) $core.bool get standardEnvironmentAvailable => $_getBF(0); @$pb.TagNumber(2) @@ -93,6 +88,9 @@ class LocationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearStandardEnvironmentAvailable() => clearField(2); + /// App Engine flexible environment is available in the given location. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.bool get flexibleEnvironmentAvailable => $_getBF(1); @$pb.TagNumber(4) @@ -105,6 +103,8 @@ class LocationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearFlexibleEnvironmentAvailable() => clearField(4); + /// Output only. [Search API](https://cloud.google.com/appengine/docs/standard/python/search) + /// is available in the given location. @$pb.TagNumber(6) $core.bool get searchApiAvailable => $_getBF(2); @$pb.TagNumber(6) @@ -117,3 +117,7 @@ class LocationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearSearchApiAvailable() => clearField(6); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pbenum.dart index e6ca634b..9dd08fa2 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/location.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pbjson.dart index 41a3de13..68f219e9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/location.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/location.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 locationMetadataDescriptor instead') @@ -40,4 +44,7 @@ const LocationMetadata$json = { /// Descriptor for `LocationMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List locationMetadataDescriptor = $convert.base64Decode( - 'ChBMb2NhdGlvbk1ldGFkYXRhEkQKHnN0YW5kYXJkX2Vudmlyb25tZW50X2F2YWlsYWJsZRgCIAEoCFIcc3RhbmRhcmRFbnZpcm9ubWVudEF2YWlsYWJsZRJECh5mbGV4aWJsZV9lbnZpcm9ubWVudF9hdmFpbGFibGUYBCABKAhSHGZsZXhpYmxlRW52aXJvbm1lbnRBdmFpbGFibGUSNQoUc2VhcmNoX2FwaV9hdmFpbGFibGUYBiABKAhCA+BBA1ISc2VhcmNoQXBpQXZhaWxhYmxl'); + 'ChBMb2NhdGlvbk1ldGFkYXRhEkQKHnN0YW5kYXJkX2Vudmlyb25tZW50X2F2YWlsYWJsZRgCIA' + 'EoCFIcc3RhbmRhcmRFbnZpcm9ubWVudEF2YWlsYWJsZRJECh5mbGV4aWJsZV9lbnZpcm9ubWVu' + 'dF9hdmFpbGFibGUYBCABKAhSHGZsZXhpYmxlRW52aXJvbm1lbnRBdmFpbGFibGUSNQoUc2Vhcm' + 'NoX2FwaV9hdmFpbGFibGUYBiABKAhCA+BBA1ISc2VhcmNoQXBpQXZhaWxhYmxl'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pb.dart index 7dc27383..866fcde7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/network_settings.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,44 +17,39 @@ import 'network_settings.pbenum.dart'; export 'network_settings.pbenum.dart'; +/// A NetworkSettings resource is a container for ingress settings for a version +/// or service. class NetworkSettings extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'NetworkSettings', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ingressTrafficAllowed', - $pb.PbFieldType.OE, - defaultOrMaker: NetworkSettings_IngressTrafficAllowed - .INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED, - valueOf: NetworkSettings_IngressTrafficAllowed.valueOf, - enumValues: NetworkSettings_IngressTrafficAllowed.values) - ..hasRequiredFields = false; - - NetworkSettings._() : super(); factory NetworkSettings({ NetworkSettings_IngressTrafficAllowed? ingressTrafficAllowed, }) { - final _result = create(); + final $result = create(); if (ingressTrafficAllowed != null) { - _result.ingressTrafficAllowed = ingressTrafficAllowed; + $result.ingressTrafficAllowed = ingressTrafficAllowed; } - return _result; + return $result; } + NetworkSettings._() : super(); factory NetworkSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory NetworkSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'NetworkSettings', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'ingressTrafficAllowed', $pb.PbFieldType.OE, + defaultOrMaker: NetworkSettings_IngressTrafficAllowed + .INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED, + valueOf: NetworkSettings_IngressTrafficAllowed.valueOf, + enumValues: NetworkSettings_IngressTrafficAllowed.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -60,8 +59,10 @@ class NetworkSettings extends $pb.GeneratedMessage { 'Will be removed in next major version') NetworkSettings copyWith(void Function(NetworkSettings) updates) => super.copyWith((message) => updates(message as NetworkSettings)) - as NetworkSettings; // ignore: deprecated_member_use + as NetworkSettings; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static NetworkSettings create() => NetworkSettings._(); NetworkSettings createEmptyInstance() => create(); @@ -72,6 +73,7 @@ class NetworkSettings extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static NetworkSettings? _defaultInstance; + /// The ingress settings for version or service. @$pb.TagNumber(1) NetworkSettings_IngressTrafficAllowed get ingressTrafficAllowed => $_getN(0); @$pb.TagNumber(1) @@ -84,3 +86,7 @@ class NetworkSettings extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearIngressTrafficAllowed() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pbenum.dart index ea68d401..eec086b0 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pbenum.dart @@ -1,42 +1,35 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/network_settings.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// If unspecified, INGRESS_TRAFFIC_ALLOWED_ALL will be used. class NetworkSettings_IngressTrafficAllowed extends $pb.ProtobufEnum { static const NetworkSettings_IngressTrafficAllowed INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED = NetworkSettings_IngressTrafficAllowed._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED'); static const NetworkSettings_IngressTrafficAllowed INGRESS_TRAFFIC_ALLOWED_ALL = NetworkSettings_IngressTrafficAllowed._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INGRESS_TRAFFIC_ALLOWED_ALL'); + 1, _omitEnumNames ? '' : 'INGRESS_TRAFFIC_ALLOWED_ALL'); static const NetworkSettings_IngressTrafficAllowed INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY = NetworkSettings_IngressTrafficAllowed._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY'); + 2, _omitEnumNames ? '' : 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY'); static const NetworkSettings_IngressTrafficAllowed INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB = NetworkSettings_IngressTrafficAllowed._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB'); + 3, _omitEnumNames ? '' : 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB'); static const $core.List values = [ @@ -54,3 +47,5 @@ class NetworkSettings_IngressTrafficAllowed extends $pb.ProtobufEnum { const NetworkSettings_IngressTrafficAllowed._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pbjson.dart index 7b84e372..58c54316 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/network_settings.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/network_settings.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 networkSettingsDescriptor instead') @@ -38,4 +42,9 @@ const NetworkSettings_IngressTrafficAllowed$json = { /// Descriptor for `NetworkSettings`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List networkSettingsDescriptor = $convert.base64Decode( - 'Cg9OZXR3b3JrU2V0dGluZ3MScgoXaW5ncmVzc190cmFmZmljX2FsbG93ZWQYASABKA4yOi5nb29nbGUuYXBwZW5naW5lLnYxLk5ldHdvcmtTZXR0aW5ncy5JbmdyZXNzVHJhZmZpY0FsbG93ZWRSFWluZ3Jlc3NUcmFmZmljQWxsb3dlZCK5AQoVSW5ncmVzc1RyYWZmaWNBbGxvd2VkEicKI0lOR1JFU1NfVFJBRkZJQ19BTExPV0VEX1VOU1BFQ0lGSUVEEAASHwobSU5HUkVTU19UUkFGRklDX0FMTE9XRURfQUxMEAESKQolSU5HUkVTU19UUkFGRklDX0FMTE9XRURfSU5URVJOQUxfT05MWRACEisKJ0lOR1JFU1NfVFJBRkZJQ19BTExPV0VEX0lOVEVSTkFMX0FORF9MQhAD'); + 'Cg9OZXR3b3JrU2V0dGluZ3MScgoXaW5ncmVzc190cmFmZmljX2FsbG93ZWQYASABKA4yOi5nb2' + '9nbGUuYXBwZW5naW5lLnYxLk5ldHdvcmtTZXR0aW5ncy5JbmdyZXNzVHJhZmZpY0FsbG93ZWRS' + 'FWluZ3Jlc3NUcmFmZmljQWxsb3dlZCK5AQoVSW5ncmVzc1RyYWZmaWNBbGxvd2VkEicKI0lOR1' + 'JFU1NfVFJBRkZJQ19BTExPV0VEX1VOU1BFQ0lGSUVEEAASHwobSU5HUkVTU19UUkFGRklDX0FM' + 'TE9XRURfQUxMEAESKQolSU5HUkVTU19UUkFGRklDX0FMTE9XRURfSU5URVJOQUxfT05MWRACEi' + 'sKJ0lOR1JFU1NfVFJBRkZJQ19BTExPV0VEX0lOVEVSTkFMX0FORF9MQhAD'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pb.dart index 41c4c894..bfdf160f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pb.dart @@ -1,96 +1,94 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/operation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/timestamp.pb.dart' as $0; +import '../../protobuf/timestamp.pb.dart' as $50; enum OperationMetadataV1_MethodMetadata { createVersionMetadata, notSet } +/// Metadata for the given [google.longrunning.Operation][google.longrunning.Operation]. class OperationMetadataV1 extends $pb.GeneratedMessage { - static const $core.Map<$core.int, OperationMetadataV1_MethodMetadata> - _OperationMetadataV1_MethodMetadataByTag = { - 8: OperationMetadataV1_MethodMetadata.createVersionMetadata, - 0: OperationMetadataV1_MethodMetadata.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OperationMetadataV1', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..oo(0, [8]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'method') - ..aOM<$0.Timestamp>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'insertTime', - subBuilder: $0.Timestamp.create) - ..aOM<$0.Timestamp>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endTime', - subBuilder: $0.Timestamp.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'user') - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'target') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ephemeralMessage') - ..pPS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'warning') - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createVersionMetadata', subBuilder: CreateVersionMetadataV1.create) - ..hasRequiredFields = false; - - OperationMetadataV1._() : super(); factory OperationMetadataV1({ $core.String? method, - $0.Timestamp? insertTime, - $0.Timestamp? endTime, + $50.Timestamp? insertTime, + $50.Timestamp? endTime, $core.String? user, $core.String? target, $core.String? ephemeralMessage, $core.Iterable<$core.String>? warning, CreateVersionMetadataV1? createVersionMetadata, }) { - final _result = create(); + final $result = create(); if (method != null) { - _result.method = method; + $result.method = method; } if (insertTime != null) { - _result.insertTime = insertTime; + $result.insertTime = insertTime; } if (endTime != null) { - _result.endTime = endTime; + $result.endTime = endTime; } if (user != null) { - _result.user = user; + $result.user = user; } if (target != null) { - _result.target = target; + $result.target = target; } if (ephemeralMessage != null) { - _result.ephemeralMessage = ephemeralMessage; + $result.ephemeralMessage = ephemeralMessage; } if (warning != null) { - _result.warning.addAll(warning); + $result.warning.addAll(warning); } if (createVersionMetadata != null) { - _result.createVersionMetadata = createVersionMetadata; + $result.createVersionMetadata = createVersionMetadata; } - return _result; + return $result; } + OperationMetadataV1._() : super(); factory OperationMetadataV1.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OperationMetadataV1.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, OperationMetadataV1_MethodMetadata> + _OperationMetadataV1_MethodMetadataByTag = { + 8: OperationMetadataV1_MethodMetadata.createVersionMetadata, + 0: OperationMetadataV1_MethodMetadata.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OperationMetadataV1', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..oo(0, [8]) + ..aOS(1, _omitFieldNames ? '' : 'method') + ..aOM<$50.Timestamp>(2, _omitFieldNames ? '' : 'insertTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(3, _omitFieldNames ? '' : 'endTime', + subBuilder: $50.Timestamp.create) + ..aOS(4, _omitFieldNames ? '' : 'user') + ..aOS(5, _omitFieldNames ? '' : 'target') + ..aOS(6, _omitFieldNames ? '' : 'ephemeralMessage') + ..pPS(7, _omitFieldNames ? '' : 'warning') + ..aOM( + 8, _omitFieldNames ? '' : 'createVersionMetadata', + subBuilder: CreateVersionMetadataV1.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') @@ -100,8 +98,10 @@ class OperationMetadataV1 extends $pb.GeneratedMessage { 'Will be removed in next major version') OperationMetadataV1 copyWith(void Function(OperationMetadataV1) updates) => super.copyWith((message) => updates(message as OperationMetadataV1)) - as OperationMetadataV1; // ignore: deprecated_member_use + as OperationMetadataV1; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OperationMetadataV1 create() => OperationMetadataV1._(); OperationMetadataV1 createEmptyInstance() => create(); @@ -116,6 +116,10 @@ class OperationMetadataV1 extends $pb.GeneratedMessage { _OperationMetadataV1_MethodMetadataByTag[$_whichOneof(0)]!; void clearMethodMetadata() => clearField($_whichOneof(0)); + /// API method that initiated this operation. Example: + /// `google.appengine.v1.Versions.CreateVersion`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get method => $_getSZ(0); @$pb.TagNumber(1) @@ -128,10 +132,13 @@ class OperationMetadataV1 extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMethod() => clearField(1); + /// Time that this operation was created. + /// + /// @OutputOnly @$pb.TagNumber(2) - $0.Timestamp get insertTime => $_getN(1); + $50.Timestamp get insertTime => $_getN(1); @$pb.TagNumber(2) - set insertTime($0.Timestamp v) { + set insertTime($50.Timestamp v) { setField(2, v); } @@ -140,12 +147,15 @@ class OperationMetadataV1 extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearInsertTime() => clearField(2); @$pb.TagNumber(2) - $0.Timestamp ensureInsertTime() => $_ensure(1); + $50.Timestamp ensureInsertTime() => $_ensure(1); + /// Time that this operation completed. + /// + /// @OutputOnly @$pb.TagNumber(3) - $0.Timestamp get endTime => $_getN(2); + $50.Timestamp get endTime => $_getN(2); @$pb.TagNumber(3) - set endTime($0.Timestamp v) { + set endTime($50.Timestamp v) { setField(3, v); } @@ -154,8 +164,11 @@ class OperationMetadataV1 extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearEndTime() => clearField(3); @$pb.TagNumber(3) - $0.Timestamp ensureEndTime() => $_ensure(2); + $50.Timestamp ensureEndTime() => $_ensure(2); + /// User who requested this operation. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.String get user => $_getSZ(3); @$pb.TagNumber(4) @@ -168,6 +181,10 @@ class OperationMetadataV1 extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUser() => clearField(4); + /// Name of the resource that this operation is acting on. Example: + /// `apps/myapp/services/default`. + /// + /// @OutputOnly @$pb.TagNumber(5) $core.String get target => $_getSZ(4); @$pb.TagNumber(5) @@ -180,6 +197,8 @@ class OperationMetadataV1 extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearTarget() => clearField(5); + /// Ephemeral message that may change every time the operation is polled. + /// @OutputOnly @$pb.TagNumber(6) $core.String get ephemeralMessage => $_getSZ(5); @$pb.TagNumber(6) @@ -192,6 +211,8 @@ class OperationMetadataV1 extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearEphemeralMessage() => clearField(6); + /// Durable messages that persist on every operation poll. + /// @OutputOnly @$pb.TagNumber(7) $core.List<$core.String> get warning => $_getList(6); @@ -210,39 +231,34 @@ class OperationMetadataV1 extends $pb.GeneratedMessage { CreateVersionMetadataV1 ensureCreateVersionMetadata() => $_ensure(7); } +/// Metadata for the given [google.longrunning.Operation][google.longrunning.Operation] during a +/// [google.appengine.v1.CreateVersionRequest][google.appengine.v1.CreateVersionRequest]. class CreateVersionMetadataV1 extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateVersionMetadataV1', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cloudBuildId') - ..hasRequiredFields = false; - - CreateVersionMetadataV1._() : super(); factory CreateVersionMetadataV1({ $core.String? cloudBuildId, }) { - final _result = create(); + final $result = create(); if (cloudBuildId != null) { - _result.cloudBuildId = cloudBuildId; + $result.cloudBuildId = cloudBuildId; } - return _result; + return $result; } + CreateVersionMetadataV1._() : super(); factory CreateVersionMetadataV1.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateVersionMetadataV1.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateVersionMetadataV1', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'cloudBuildId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -254,8 +270,10 @@ class CreateVersionMetadataV1 extends $pb.GeneratedMessage { CreateVersionMetadataV1 copyWith( void Function(CreateVersionMetadataV1) updates) => super.copyWith((message) => updates(message as CreateVersionMetadataV1)) - as CreateVersionMetadataV1; // ignore: deprecated_member_use + as CreateVersionMetadataV1; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateVersionMetadataV1 create() => CreateVersionMetadataV1._(); CreateVersionMetadataV1 createEmptyInstance() => create(); @@ -266,6 +284,8 @@ class CreateVersionMetadataV1 extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateVersionMetadataV1? _defaultInstance; + /// The Cloud Build ID if one was created as part of the version create. + /// @OutputOnly @$pb.TagNumber(1) $core.String get cloudBuildId => $_getSZ(0); @$pb.TagNumber(1) @@ -278,3 +298,7 @@ class CreateVersionMetadataV1 extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCloudBuildId() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pbenum.dart index 72488feb..c8a2660f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/operation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pbjson.dart index 6b4d6107..5568bc89 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/operation.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/operation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 operationMetadataV1Descriptor instead') @@ -57,7 +61,15 @@ const OperationMetadataV1$json = { /// Descriptor for `OperationMetadataV1`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List operationMetadataV1Descriptor = $convert.base64Decode( - 'ChNPcGVyYXRpb25NZXRhZGF0YVYxEhYKBm1ldGhvZBgBIAEoCVIGbWV0aG9kEjsKC2luc2VydF90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKaW5zZXJ0VGltZRI1CghlbmRfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSB2VuZFRpbWUSEgoEdXNlchgEIAEoCVIEdXNlchIWCgZ0YXJnZXQYBSABKAlSBnRhcmdldBIrChFlcGhlbWVyYWxfbWVzc2FnZRgGIAEoCVIQZXBoZW1lcmFsTWVzc2FnZRIYCgd3YXJuaW5nGAcgAygJUgd3YXJuaW5nEmYKF2NyZWF0ZV92ZXJzaW9uX21ldGFkYXRhGAggASgLMiwuZ29vZ2xlLmFwcGVuZ2luZS52MS5DcmVhdGVWZXJzaW9uTWV0YWRhdGFWMUgAUhVjcmVhdGVWZXJzaW9uTWV0YWRhdGFCEQoPbWV0aG9kX21ldGFkYXRh'); + 'ChNPcGVyYXRpb25NZXRhZGF0YVYxEhYKBm1ldGhvZBgBIAEoCVIGbWV0aG9kEjsKC2luc2VydF' + '90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKaW5zZXJ0VGltZRI1Cghl' + 'bmRfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSB2VuZFRpbWUSEgoEdX' + 'NlchgEIAEoCVIEdXNlchIWCgZ0YXJnZXQYBSABKAlSBnRhcmdldBIrChFlcGhlbWVyYWxfbWVz' + 'c2FnZRgGIAEoCVIQZXBoZW1lcmFsTWVzc2FnZRIYCgd3YXJuaW5nGAcgAygJUgd3YXJuaW5nEm' + 'YKF2NyZWF0ZV92ZXJzaW9uX21ldGFkYXRhGAggASgLMiwuZ29vZ2xlLmFwcGVuZ2luZS52MS5D' + 'cmVhdGVWZXJzaW9uTWV0YWRhdGFWMUgAUhVjcmVhdGVWZXJzaW9uTWV0YWRhdGFCEQoPbWV0aG' + '9kX21ldGFkYXRh'); + @$core.Deprecated('Use createVersionMetadataV1Descriptor instead') const CreateVersionMetadataV1$json = { '1': 'CreateVersionMetadataV1', @@ -69,4 +81,5 @@ const CreateVersionMetadataV1$json = { /// Descriptor for `CreateVersionMetadataV1`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createVersionMetadataV1Descriptor = $convert.base64Decode( - 'ChdDcmVhdGVWZXJzaW9uTWV0YWRhdGFWMRIkCg5jbG91ZF9idWlsZF9pZBgBIAEoCVIMY2xvdWRCdWlsZElk'); + 'ChdDcmVhdGVWZXJzaW9uTWV0YWRhdGFWMRIkCg5jbG91ZF9idWlsZF9pZBgBIAEoCVIMY2xvdW' + 'RCdWlsZElk'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pb.dart index c1735f7e..6313ac8f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pb.dart @@ -1,76 +1,82 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'network_settings.pb.dart' as $0; - +import 'network_settings.pb.dart' as $62; import 'service.pbenum.dart'; export 'service.pbenum.dart'; +/// A Service resource is a logical component of an application that can share +/// state and communicate in a secure fashion with other services. +/// For example, an application that handles customer requests might +/// include separate services to handle tasks such as backend data +/// analysis or API requests from mobile devices. Each service has a +/// collection of versions that define a specific set of code used to +/// implement the functionality of that service. class Service extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Service', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'split', - subBuilder: TrafficSplit.create) - ..aOM<$0.NetworkSettings>( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'networkSettings', - subBuilder: $0.NetworkSettings.create) - ..hasRequiredFields = false; - - Service._() : super(); factory Service({ $core.String? name, $core.String? id, TrafficSplit? split, - $0.NetworkSettings? networkSettings, + $core.Map<$core.String, $core.String>? labels, + $62.NetworkSettings? networkSettings, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (split != null) { - _result.split = split; + $result.split = split; + } + if (labels != null) { + $result.labels.addAll(labels); } if (networkSettings != null) { - _result.networkSettings = networkSettings; + $result.networkSettings = networkSettings; } - return _result; + return $result; } + Service._() : super(); factory Service.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Service.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Service', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..aOM(3, _omitFieldNames ? '' : 'split', + subBuilder: TrafficSplit.create) + ..m<$core.String, $core.String>(4, _omitFieldNames ? '' : 'labels', + entryClassName: 'Service.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.appengine.v1')) + ..aOM<$62.NetworkSettings>(6, _omitFieldNames ? '' : 'networkSettings', + subBuilder: $62.NetworkSettings.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') @@ -79,9 +85,10 @@ class Service extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Service copyWith(void Function(Service) updates) => - super.copyWith((message) => updates(message as Service)) - as Service; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Service)) as Service; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Service create() => Service._(); Service createEmptyInstance() => create(); @@ -91,6 +98,10 @@ class Service extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Service? _defaultInstance; + /// Full path to the Service resource in the API. + /// Example: `apps/myapp/services/default`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -103,6 +114,10 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Relative name of the service within the application. + /// Example: `default`. + /// + /// @OutputOnly @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -115,6 +130,8 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// Mapping that defines fractional HTTP traffic diversion to + /// different versions within the service. @$pb.TagNumber(3) TrafficSplit get split => $_getN(2); @$pb.TagNumber(3) @@ -129,67 +146,77 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(3) TrafficSplit ensureSplit() => $_ensure(2); + /// A set of labels to apply to this service. Labels are key/value pairs that + /// describe the service and all resources that belong to it (e.g., + /// versions). The labels can be used to search and group resources, and are + /// propagated to the usage and billing reports, enabling fine-grain analysis + /// of costs. An example of using labels is to tag resources belonging to + /// different environments (e.g., "env=prod", "env=qa"). + /// + ///

Label keys and values can be no longer than 63 characters and can only + /// contain lowercase letters, numeric characters, underscores, dashes, and + /// international characters. Label keys must start with a lowercase letter + /// or an international character. Each service can have at most 32 labels. + @$pb.TagNumber(4) + $core.Map<$core.String, $core.String> get labels => $_getMap(3); + + /// Ingress settings for this service. Will apply to all versions. @$pb.TagNumber(6) - $0.NetworkSettings get networkSettings => $_getN(3); + $62.NetworkSettings get networkSettings => $_getN(4); @$pb.TagNumber(6) - set networkSettings($0.NetworkSettings v) { + set networkSettings($62.NetworkSettings v) { setField(6, v); } @$pb.TagNumber(6) - $core.bool hasNetworkSettings() => $_has(3); + $core.bool hasNetworkSettings() => $_has(4); @$pb.TagNumber(6) void clearNetworkSettings() => clearField(6); @$pb.TagNumber(6) - $0.NetworkSettings ensureNetworkSettings() => $_ensure(3); + $62.NetworkSettings ensureNetworkSettings() => $_ensure(4); } +/// Traffic routing configuration for versions within a single service. Traffic +/// splits define how traffic directed to the service is assigned to versions. class TrafficSplit extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TrafficSplit', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'shardBy', - $pb.PbFieldType.OE, - defaultOrMaker: TrafficSplit_ShardBy.UNSPECIFIED, - valueOf: TrafficSplit_ShardBy.valueOf, - enumValues: TrafficSplit_ShardBy.values) - ..m<$core.String, $core.double>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'allocations', - entryClassName: 'TrafficSplit.AllocationsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OD, - packageName: const $pb.PackageName('google.appengine.v1')) - ..hasRequiredFields = false; - - TrafficSplit._() : super(); factory TrafficSplit({ TrafficSplit_ShardBy? shardBy, $core.Map<$core.String, $core.double>? allocations, }) { - final _result = create(); + final $result = create(); if (shardBy != null) { - _result.shardBy = shardBy; + $result.shardBy = shardBy; } if (allocations != null) { - _result.allocations.addAll(allocations); + $result.allocations.addAll(allocations); } - return _result; + return $result; } + TrafficSplit._() : super(); factory TrafficSplit.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TrafficSplit.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TrafficSplit', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'shardBy', $pb.PbFieldType.OE, + defaultOrMaker: TrafficSplit_ShardBy.UNSPECIFIED, + valueOf: TrafficSplit_ShardBy.valueOf, + enumValues: TrafficSplit_ShardBy.values) + ..m<$core.String, $core.double>(2, _omitFieldNames ? '' : 'allocations', + entryClassName: 'TrafficSplit.AllocationsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OD, + packageName: const $pb.PackageName('google.appengine.v1')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -199,8 +226,10 @@ class TrafficSplit extends $pb.GeneratedMessage { 'Will be removed in next major version') TrafficSplit copyWith(void Function(TrafficSplit) updates) => super.copyWith((message) => updates(message as TrafficSplit)) - as TrafficSplit; // ignore: deprecated_member_use + as TrafficSplit; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TrafficSplit create() => TrafficSplit._(); TrafficSplit createEmptyInstance() => create(); @@ -211,6 +240,9 @@ class TrafficSplit extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static TrafficSplit? _defaultInstance; + /// Mechanism used to determine which version a request is sent to. + /// The traffic selection algorithm will + /// be stable for either type until allocations are changed. @$pb.TagNumber(1) TrafficSplit_ShardBy get shardBy => $_getN(0); @$pb.TagNumber(1) @@ -223,6 +255,18 @@ class TrafficSplit extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearShardBy() => clearField(1); + /// Mapping from version IDs within the service to fractional + /// (0.000, 1] allocations of traffic for that version. Each version can + /// be specified only once, but some versions in the service may not + /// have any traffic allocation. Services that have traffic allocated + /// cannot be deleted until either the service is deleted or + /// their traffic allocation is removed. Allocations must sum to 1. + /// Up to two decimal place precision is supported for IP-based splits and + /// up to three decimal places is supported for cookie-based splits. @$pb.TagNumber(2) $core.Map<$core.String, $core.double> get allocations => $_getMap(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pbenum.dart index e84e0038..4889e3e9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pbenum.dart @@ -1,26 +1,28 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Available sharding mechanisms. class TrafficSplit_ShardBy extends $pb.ProtobufEnum { - static const TrafficSplit_ShardBy UNSPECIFIED = TrafficSplit_ShardBy._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED'); - static const TrafficSplit_ShardBy COOKIE = TrafficSplit_ShardBy._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'COOKIE'); - static const TrafficSplit_ShardBy IP = TrafficSplit_ShardBy._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'IP'); - static const TrafficSplit_ShardBy RANDOM = TrafficSplit_ShardBy._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'RANDOM'); + static const TrafficSplit_ShardBy UNSPECIFIED = + TrafficSplit_ShardBy._(0, _omitEnumNames ? '' : 'UNSPECIFIED'); + static const TrafficSplit_ShardBy COOKIE = + TrafficSplit_ShardBy._(1, _omitEnumNames ? '' : 'COOKIE'); + static const TrafficSplit_ShardBy IP = + TrafficSplit_ShardBy._(2, _omitEnumNames ? '' : 'IP'); + static const TrafficSplit_ShardBy RANDOM = + TrafficSplit_ShardBy._(3, _omitEnumNames ? '' : 'RANDOM'); static const $core.List values = [ UNSPECIFIED, @@ -35,3 +37,5 @@ class TrafficSplit_ShardBy extends $pb.ProtobufEnum { const TrafficSplit_ShardBy._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pbjson.dart index 73a36883..518aacd4 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/service.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 serviceDescriptor instead') @@ -23,6 +27,14 @@ const Service$json = { '6': '.google.appengine.v1.TrafficSplit', '10': 'split' }, + { + '1': 'labels', + '3': 4, + '4': 3, + '5': 11, + '6': '.google.appengine.v1.Service.LabelsEntry', + '10': 'labels' + }, { '1': 'network_settings', '3': 6, @@ -32,11 +44,28 @@ const Service$json = { '10': 'networkSettings' }, ], + '3': [Service_LabelsEntry$json], +}; + +@$core.Deprecated('Use serviceDescriptor instead') +const Service_LabelsEntry$json = { + '1': 'LabelsEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, }; /// Descriptor for `Service`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceDescriptor = $convert.base64Decode( - 'CgdTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkEjcKBXNwbGl0GAMgASgLMiEuZ29vZ2xlLmFwcGVuZ2luZS52MS5UcmFmZmljU3BsaXRSBXNwbGl0Ek8KEG5ldHdvcmtfc2V0dGluZ3MYBiABKAsyJC5nb29nbGUuYXBwZW5naW5lLnYxLk5ldHdvcmtTZXR0aW5nc1IPbmV0d29ya1NldHRpbmdz'); + 'CgdTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkEjcKBXNwbGl0GA' + 'MgASgLMiEuZ29vZ2xlLmFwcGVuZ2luZS52MS5UcmFmZmljU3BsaXRSBXNwbGl0EkAKBmxhYmVs' + 'cxgEIAMoCzIoLmdvb2dsZS5hcHBlbmdpbmUudjEuU2VydmljZS5MYWJlbHNFbnRyeVIGbGFiZW' + 'xzEk8KEG5ldHdvcmtfc2V0dGluZ3MYBiABKAsyJC5nb29nbGUuYXBwZW5naW5lLnYxLk5ldHdv' + 'cmtTZXR0aW5nc1IPbmV0d29ya1NldHRpbmdzGjkKC0xhYmVsc0VudHJ5EhAKA2tleRgBIAEoCV' + 'IDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE='); + @$core.Deprecated('Use trafficSplitDescriptor instead') const TrafficSplit$json = { '1': 'TrafficSplit', @@ -85,4 +114,9 @@ const TrafficSplit_ShardBy$json = { /// Descriptor for `TrafficSplit`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List trafficSplitDescriptor = $convert.base64Decode( - 'CgxUcmFmZmljU3BsaXQSRAoIc2hhcmRfYnkYASABKA4yKS5nb29nbGUuYXBwZW5naW5lLnYxLlRyYWZmaWNTcGxpdC5TaGFyZEJ5UgdzaGFyZEJ5ElQKC2FsbG9jYXRpb25zGAIgAygLMjIuZ29vZ2xlLmFwcGVuZ2luZS52MS5UcmFmZmljU3BsaXQuQWxsb2NhdGlvbnNFbnRyeVILYWxsb2NhdGlvbnMaPgoQQWxsb2NhdGlvbnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoAVIFdmFsdWU6AjgBIjoKB1NoYXJkQnkSDwoLVU5TUEVDSUZJRUQQABIKCgZDT09LSUUQARIGCgJJUBACEgoKBlJBTkRPTRAD'); + 'CgxUcmFmZmljU3BsaXQSRAoIc2hhcmRfYnkYASABKA4yKS5nb29nbGUuYXBwZW5naW5lLnYxLl' + 'RyYWZmaWNTcGxpdC5TaGFyZEJ5UgdzaGFyZEJ5ElQKC2FsbG9jYXRpb25zGAIgAygLMjIuZ29v' + 'Z2xlLmFwcGVuZ2luZS52MS5UcmFmZmljU3BsaXQuQWxsb2NhdGlvbnNFbnRyeVILYWxsb2NhdG' + 'lvbnMaPgoQQWxsb2NhdGlvbnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEo' + 'AVIFdmFsdWU6AjgBIjoKB1NoYXJkQnkSDwoLVU5TUEVDSUZJRUQQABIKCgZDT09LSUUQARIGCg' + 'JJUBACEgoKBlJBTkRPTRAD'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pb.dart index 53ae3b5c..7b127b6c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pb.dart @@ -1,96 +1,32 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/version.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../protobuf/timestamp.pb.dart' as $0; -import 'app_yaml.pb.dart' as $1; -import '../../protobuf/duration.pb.dart' as $2; -import 'deploy.pb.dart' as $3; - +import '../../protobuf/duration.pb.dart' as $51; +import '../../protobuf/timestamp.pb.dart' as $50; +import 'app_yaml.pb.dart' as $60; +import 'deploy.pb.dart' as $61; import 'version.pbenum.dart'; export 'version.pbenum.dart'; enum Version_Scaling { automaticScaling, basicScaling, manualScaling, notSet } +/// A Version resource is a specific set of source code and configuration files +/// that are deployed into a service. class Version extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Version_Scaling> _Version_ScalingByTag = { - 3: Version_Scaling.automaticScaling, - 4: Version_Scaling.basicScaling, - 5: Version_Scaling.manualScaling, - 0: Version_Scaling.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Version', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..oo(0, [3, 4, 5]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'automaticScaling', - subBuilder: AutomaticScaling.create) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'basicScaling', - subBuilder: BasicScaling.create) - ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'manualScaling', - subBuilder: ManualScaling.create) - ..pc( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'inboundServices', $pb.PbFieldType.PE, - valueOf: InboundServiceType.valueOf, - enumValues: InboundServiceType.values) - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'instanceClass') - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'network', subBuilder: Network.create) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resources', subBuilder: Resources.create) - ..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'runtime') - ..aOB(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'threadsafe') - ..aOB(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vm') - ..m<$core.String, $core.String>(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'betaSettings', entryClassName: 'Version.BetaSettingsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.appengine.v1')) - ..aOS(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'env') - ..e(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'servingStatus', $pb.PbFieldType.OE, defaultOrMaker: ServingStatus.SERVING_STATUS_UNSPECIFIED, valueOf: ServingStatus.valueOf, enumValues: ServingStatus.values) - ..aOS(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createdBy') - ..aOM<$0.Timestamp>(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createTime', subBuilder: $0.Timestamp.create) - ..aInt64(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'diskUsageBytes') - ..aOS(21, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'runtimeApiVersion') - ..aOS(22, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'runtimeMainExecutablePath') - ..pc<$1.UrlMap>(100, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'handlers', $pb.PbFieldType.PM, subBuilder: $1.UrlMap.create) - ..pc<$1.ErrorHandler>(101, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'errorHandlers', $pb.PbFieldType.PM, subBuilder: $1.ErrorHandler.create) - ..pc<$1.Library>(102, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'libraries', $pb.PbFieldType.PM, subBuilder: $1.Library.create) - ..aOM<$1.ApiConfigHandler>(103, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apiConfig', subBuilder: $1.ApiConfigHandler.create) - ..m<$core.String, $core.String>(104, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'envVariables', entryClassName: 'Version.EnvVariablesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.appengine.v1')) - ..aOM<$2.Duration>(105, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultExpiration', subBuilder: $2.Duration.create) - ..aOM<$1.HealthCheck>(106, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'healthCheck', subBuilder: $1.HealthCheck.create) - ..aOS(107, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nobuildFilesRegex') - ..aOM<$3.Deployment>(108, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'deployment', subBuilder: $3.Deployment.create) - ..aOS(109, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'versionUrl') - ..aOM(110, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endpointsApiService', subBuilder: EndpointsApiService.create) - ..aOM<$1.ReadinessCheck>(112, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'readinessCheck', subBuilder: $1.ReadinessCheck.create) - ..aOM<$1.LivenessCheck>(113, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'livenessCheck', subBuilder: $1.LivenessCheck.create) - ..aOS(117, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'runtimeChannel') - ..pPS(118, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'zones') - ..aOM(121, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vpcAccessConnector', subBuilder: VpcAccessConnector.create) - ..aOM(122, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entrypoint', subBuilder: Entrypoint.create) - ..m<$core.String, $core.String>(125, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'buildEnvVariables', entryClassName: 'Version.BuildEnvVariablesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.appengine.v1')) - ..aOS(127, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceAccount') - ..hasRequiredFields = false; - - Version._() : super(); factory Version({ $core.String? name, $core.String? id, @@ -108,156 +44,258 @@ class Version extends $pb.GeneratedMessage { $core.String? env, ServingStatus? servingStatus, $core.String? createdBy, - $0.Timestamp? createTime, + $50.Timestamp? createTime, $fixnum.Int64? diskUsageBytes, $core.String? runtimeApiVersion, $core.String? runtimeMainExecutablePath, - $core.Iterable<$1.UrlMap>? handlers, - $core.Iterable<$1.ErrorHandler>? errorHandlers, - $core.Iterable<$1.Library>? libraries, - $1.ApiConfigHandler? apiConfig, + $core.Iterable<$60.UrlMap>? handlers, + $core.Iterable<$60.ErrorHandler>? errorHandlers, + $core.Iterable<$60.Library>? libraries, + $60.ApiConfigHandler? apiConfig, $core.Map<$core.String, $core.String>? envVariables, - $2.Duration? defaultExpiration, - $1.HealthCheck? healthCheck, + $51.Duration? defaultExpiration, + $60.HealthCheck? healthCheck, $core.String? nobuildFilesRegex, - $3.Deployment? deployment, + $61.Deployment? deployment, $core.String? versionUrl, EndpointsApiService? endpointsApiService, - $1.ReadinessCheck? readinessCheck, - $1.LivenessCheck? livenessCheck, + $60.ReadinessCheck? readinessCheck, + $60.LivenessCheck? livenessCheck, $core.String? runtimeChannel, $core.Iterable<$core.String>? zones, VpcAccessConnector? vpcAccessConnector, Entrypoint? entrypoint, $core.Map<$core.String, $core.String>? buildEnvVariables, $core.String? serviceAccount, + $core.bool? appEngineApis, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (automaticScaling != null) { - _result.automaticScaling = automaticScaling; + $result.automaticScaling = automaticScaling; } if (basicScaling != null) { - _result.basicScaling = basicScaling; + $result.basicScaling = basicScaling; } if (manualScaling != null) { - _result.manualScaling = manualScaling; + $result.manualScaling = manualScaling; } if (inboundServices != null) { - _result.inboundServices.addAll(inboundServices); + $result.inboundServices.addAll(inboundServices); } if (instanceClass != null) { - _result.instanceClass = instanceClass; + $result.instanceClass = instanceClass; } if (network != null) { - _result.network = network; + $result.network = network; } if (resources != null) { - _result.resources = resources; + $result.resources = resources; } if (runtime != null) { - _result.runtime = runtime; + $result.runtime = runtime; } if (threadsafe != null) { - _result.threadsafe = threadsafe; + $result.threadsafe = threadsafe; } if (vm != null) { - _result.vm = vm; + $result.vm = vm; } if (betaSettings != null) { - _result.betaSettings.addAll(betaSettings); + $result.betaSettings.addAll(betaSettings); } if (env != null) { - _result.env = env; + $result.env = env; } if (servingStatus != null) { - _result.servingStatus = servingStatus; + $result.servingStatus = servingStatus; } if (createdBy != null) { - _result.createdBy = createdBy; + $result.createdBy = createdBy; } if (createTime != null) { - _result.createTime = createTime; + $result.createTime = createTime; } if (diskUsageBytes != null) { - _result.diskUsageBytes = diskUsageBytes; + $result.diskUsageBytes = diskUsageBytes; } if (runtimeApiVersion != null) { - _result.runtimeApiVersion = runtimeApiVersion; + $result.runtimeApiVersion = runtimeApiVersion; } if (runtimeMainExecutablePath != null) { - _result.runtimeMainExecutablePath = runtimeMainExecutablePath; + $result.runtimeMainExecutablePath = runtimeMainExecutablePath; } if (handlers != null) { - _result.handlers.addAll(handlers); + $result.handlers.addAll(handlers); } if (errorHandlers != null) { - _result.errorHandlers.addAll(errorHandlers); + $result.errorHandlers.addAll(errorHandlers); } if (libraries != null) { - _result.libraries.addAll(libraries); + $result.libraries.addAll(libraries); } if (apiConfig != null) { - _result.apiConfig = apiConfig; + $result.apiConfig = apiConfig; } if (envVariables != null) { - _result.envVariables.addAll(envVariables); + $result.envVariables.addAll(envVariables); } if (defaultExpiration != null) { - _result.defaultExpiration = defaultExpiration; + $result.defaultExpiration = defaultExpiration; } if (healthCheck != null) { - _result.healthCheck = healthCheck; + $result.healthCheck = healthCheck; } if (nobuildFilesRegex != null) { - _result.nobuildFilesRegex = nobuildFilesRegex; + $result.nobuildFilesRegex = nobuildFilesRegex; } if (deployment != null) { - _result.deployment = deployment; + $result.deployment = deployment; } if (versionUrl != null) { - _result.versionUrl = versionUrl; + $result.versionUrl = versionUrl; } if (endpointsApiService != null) { - _result.endpointsApiService = endpointsApiService; + $result.endpointsApiService = endpointsApiService; } if (readinessCheck != null) { - _result.readinessCheck = readinessCheck; + $result.readinessCheck = readinessCheck; } if (livenessCheck != null) { - _result.livenessCheck = livenessCheck; + $result.livenessCheck = livenessCheck; } if (runtimeChannel != null) { - _result.runtimeChannel = runtimeChannel; + $result.runtimeChannel = runtimeChannel; } if (zones != null) { - _result.zones.addAll(zones); + $result.zones.addAll(zones); } if (vpcAccessConnector != null) { - _result.vpcAccessConnector = vpcAccessConnector; + $result.vpcAccessConnector = vpcAccessConnector; } if (entrypoint != null) { - _result.entrypoint = entrypoint; + $result.entrypoint = entrypoint; } if (buildEnvVariables != null) { - _result.buildEnvVariables.addAll(buildEnvVariables); + $result.buildEnvVariables.addAll(buildEnvVariables); } if (serviceAccount != null) { - _result.serviceAccount = serviceAccount; + $result.serviceAccount = serviceAccount; } - return _result; + if (appEngineApis != null) { + $result.appEngineApis = appEngineApis; + } + return $result; } + Version._() : super(); factory Version.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Version.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Version_Scaling> _Version_ScalingByTag = { + 3: Version_Scaling.automaticScaling, + 4: Version_Scaling.basicScaling, + 5: Version_Scaling.manualScaling, + 0: Version_Scaling.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Version', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..oo(0, [3, 4, 5]) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..aOM(3, _omitFieldNames ? '' : 'automaticScaling', + subBuilder: AutomaticScaling.create) + ..aOM(4, _omitFieldNames ? '' : 'basicScaling', + subBuilder: BasicScaling.create) + ..aOM(5, _omitFieldNames ? '' : 'manualScaling', + subBuilder: ManualScaling.create) + ..pc( + 6, _omitFieldNames ? '' : 'inboundServices', $pb.PbFieldType.KE, + valueOf: InboundServiceType.valueOf, + enumValues: InboundServiceType.values, + defaultEnumValue: InboundServiceType.INBOUND_SERVICE_UNSPECIFIED) + ..aOS(7, _omitFieldNames ? '' : 'instanceClass') + ..aOM(8, _omitFieldNames ? '' : 'network', + subBuilder: Network.create) + ..aOM(9, _omitFieldNames ? '' : 'resources', + subBuilder: Resources.create) + ..aOS(10, _omitFieldNames ? '' : 'runtime') + ..aOB(11, _omitFieldNames ? '' : 'threadsafe') + ..aOB(12, _omitFieldNames ? '' : 'vm') + ..m<$core.String, $core.String>(13, _omitFieldNames ? '' : 'betaSettings', + entryClassName: 'Version.BetaSettingsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.appengine.v1')) + ..aOS(14, _omitFieldNames ? '' : 'env') + ..e( + 15, _omitFieldNames ? '' : 'servingStatus', $pb.PbFieldType.OE, + defaultOrMaker: ServingStatus.SERVING_STATUS_UNSPECIFIED, + valueOf: ServingStatus.valueOf, + enumValues: ServingStatus.values) + ..aOS(16, _omitFieldNames ? '' : 'createdBy') + ..aOM<$50.Timestamp>(17, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aInt64(18, _omitFieldNames ? '' : 'diskUsageBytes') + ..aOS(21, _omitFieldNames ? '' : 'runtimeApiVersion') + ..aOS(22, _omitFieldNames ? '' : 'runtimeMainExecutablePath') + ..pc<$60.UrlMap>(100, _omitFieldNames ? '' : 'handlers', $pb.PbFieldType.PM, + subBuilder: $60.UrlMap.create) + ..pc<$60.ErrorHandler>( + 101, _omitFieldNames ? '' : 'errorHandlers', $pb.PbFieldType.PM, + subBuilder: $60.ErrorHandler.create) + ..pc<$60.Library>( + 102, _omitFieldNames ? '' : 'libraries', $pb.PbFieldType.PM, + subBuilder: $60.Library.create) + ..aOM<$60.ApiConfigHandler>(103, _omitFieldNames ? '' : 'apiConfig', + subBuilder: $60.ApiConfigHandler.create) + ..m<$core.String, $core.String>(104, _omitFieldNames ? '' : 'envVariables', + entryClassName: 'Version.EnvVariablesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.appengine.v1')) + ..aOM<$51.Duration>(105, _omitFieldNames ? '' : 'defaultExpiration', + subBuilder: $51.Duration.create) + ..aOM<$60.HealthCheck>(106, _omitFieldNames ? '' : 'healthCheck', + subBuilder: $60.HealthCheck.create) + ..aOS(107, _omitFieldNames ? '' : 'nobuildFilesRegex') + ..aOM<$61.Deployment>(108, _omitFieldNames ? '' : 'deployment', + subBuilder: $61.Deployment.create) + ..aOS(109, _omitFieldNames ? '' : 'versionUrl') + ..aOM( + 110, _omitFieldNames ? '' : 'endpointsApiService', + subBuilder: EndpointsApiService.create) + ..aOM<$60.ReadinessCheck>(112, _omitFieldNames ? '' : 'readinessCheck', + subBuilder: $60.ReadinessCheck.create) + ..aOM<$60.LivenessCheck>(113, _omitFieldNames ? '' : 'livenessCheck', + subBuilder: $60.LivenessCheck.create) + ..aOS(117, _omitFieldNames ? '' : 'runtimeChannel') + ..pPS(118, _omitFieldNames ? '' : 'zones') + ..aOM(121, _omitFieldNames ? '' : 'vpcAccessConnector', + subBuilder: VpcAccessConnector.create) + ..aOM(122, _omitFieldNames ? '' : 'entrypoint', + subBuilder: Entrypoint.create) + ..m<$core.String, $core.String>( + 125, _omitFieldNames ? '' : 'buildEnvVariables', + entryClassName: 'Version.BuildEnvVariablesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.appengine.v1')) + ..aOS(127, _omitFieldNames ? '' : 'serviceAccount') + ..aOB(128, _omitFieldNames ? '' : 'appEngineApis') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -266,9 +304,10 @@ class Version extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Version copyWith(void Function(Version) updates) => - super.copyWith((message) => updates(message as Version)) - as Version; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Version)) as Version; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Version create() => Version._(); Version createEmptyInstance() => create(); @@ -281,6 +320,10 @@ class Version extends $pb.GeneratedMessage { Version_Scaling whichScaling() => _Version_ScalingByTag[$_whichOneof(0)]!; void clearScaling() => clearField($_whichOneof(0)); + /// Full path to the Version resource in the API. Example: + /// `apps/myapp/services/default/versions/v1`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -293,6 +336,9 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Relative name of the version within the service. Example: `v1`. + /// Version names can contain only lowercase letters, numbers, or hyphens. + /// Reserved names: "default", "latest", and any name with the prefix "ah-". @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -305,6 +351,9 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// Automatic scaling is based on request rate, response latencies, and other + /// application metrics. Instances are dynamically created and destroyed as + /// needed in order to handle traffic. @$pb.TagNumber(3) AutomaticScaling get automaticScaling => $_getN(2); @$pb.TagNumber(3) @@ -319,6 +368,10 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(3) AutomaticScaling ensureAutomaticScaling() => $_ensure(2); + /// A service with basic scaling will create an instance when the application + /// receives a request. The instance will be turned down when the app becomes + /// idle. Basic scaling is ideal for work that is intermittent or driven by + /// user activity. @$pb.TagNumber(4) BasicScaling get basicScaling => $_getN(3); @$pb.TagNumber(4) @@ -333,6 +386,9 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(4) BasicScaling ensureBasicScaling() => $_ensure(3); + /// A service with manual scaling runs continuously, allowing you to perform + /// complex initialization and rely on the state of its memory over time. + /// Manually scaled versions are sometimes referred to as "backends". @$pb.TagNumber(5) ManualScaling get manualScaling => $_getN(4); @$pb.TagNumber(5) @@ -347,9 +403,18 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(5) ManualScaling ensureManualScaling() => $_ensure(4); + /// Before an application can receive email or XMPP messages, the application + /// must be configured to enable the service. @$pb.TagNumber(6) $core.List get inboundServices => $_getList(5); + /// Instance class that is used to run this version. Valid values are: + /// + /// * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` + /// * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` + /// + /// Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or + /// BasicScaling. @$pb.TagNumber(7) $core.String get instanceClass => $_getSZ(6); @$pb.TagNumber(7) @@ -362,6 +427,8 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearInstanceClass() => clearField(7); + /// Extra network settings. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(8) Network get network => $_getN(7); @$pb.TagNumber(8) @@ -376,6 +443,8 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(8) Network ensureNetwork() => $_ensure(7); + /// Machine resources for this version. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(9) Resources get resources => $_getN(8); @$pb.TagNumber(9) @@ -390,6 +459,7 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(9) Resources ensureResources() => $_ensure(8); + /// Desired runtime. Example: `python27`. @$pb.TagNumber(10) $core.String get runtime => $_getSZ(9); @$pb.TagNumber(10) @@ -402,6 +472,7 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearRuntime() => clearField(10); + /// Whether multiple requests can be dispatched to this version at once. @$pb.TagNumber(11) $core.bool get threadsafe => $_getBF(10); @$pb.TagNumber(11) @@ -414,6 +485,7 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearThreadsafe() => clearField(11); + /// Whether to deploy this version in a container on a virtual machine. @$pb.TagNumber(12) $core.bool get vm => $_getBF(11); @$pb.TagNumber(12) @@ -426,9 +498,14 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearVm() => clearField(12); + /// Metadata settings that are supplied to this version to enable + /// beta runtime features. @$pb.TagNumber(13) $core.Map<$core.String, $core.String> get betaSettings => $_getMap(12); + /// App Engine execution environment for this version. + /// + /// Defaults to `standard`. @$pb.TagNumber(14) $core.String get env => $_getSZ(13); @$pb.TagNumber(14) @@ -441,6 +518,10 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearEnv() => clearField(14); + /// Current serving status of this version. Only the versions with a + /// `SERVING` status create instances and can be billed. + /// + /// `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. @$pb.TagNumber(15) ServingStatus get servingStatus => $_getN(14); @$pb.TagNumber(15) @@ -453,6 +534,9 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearServingStatus() => clearField(15); + /// Email address of the user who created this version. + /// + /// @OutputOnly @$pb.TagNumber(16) $core.String get createdBy => $_getSZ(15); @$pb.TagNumber(16) @@ -465,10 +549,13 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(16) void clearCreatedBy() => clearField(16); + /// Time that this version was created. + /// + /// @OutputOnly @$pb.TagNumber(17) - $0.Timestamp get createTime => $_getN(16); + $50.Timestamp get createTime => $_getN(16); @$pb.TagNumber(17) - set createTime($0.Timestamp v) { + set createTime($50.Timestamp v) { setField(17, v); } @@ -477,8 +564,12 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(17) void clearCreateTime() => clearField(17); @$pb.TagNumber(17) - $0.Timestamp ensureCreateTime() => $_ensure(16); + $50.Timestamp ensureCreateTime() => $_ensure(16); + /// Total size in bytes of all the files that are included in this version + /// and currently hosted on the App Engine disk. + /// + /// @OutputOnly @$pb.TagNumber(18) $fixnum.Int64 get diskUsageBytes => $_getI64(17); @$pb.TagNumber(18) @@ -491,6 +582,9 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(18) void clearDiskUsageBytes() => clearField(18); + /// The version of the API in the given runtime environment. Please see the + /// app.yaml reference for valid values at + /// https://cloud.google.com/appengine/docs/standard//config/appref @$pb.TagNumber(21) $core.String get runtimeApiVersion => $_getSZ(18); @$pb.TagNumber(21) @@ -503,6 +597,7 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(21) void clearRuntimeApiVersion() => clearField(21); + /// The path or name of the app's main executable. @$pb.TagNumber(22) $core.String get runtimeMainExecutablePath => $_getSZ(19); @$pb.TagNumber(22) @@ -515,19 +610,35 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(22) void clearRuntimeMainExecutablePath() => clearField(22); + /// An ordered list of URL-matching patterns that should be applied to incoming + /// requests. The first matching URL handles the request and other request + /// handlers are not attempted. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(100) - $core.List<$1.UrlMap> get handlers => $_getList(20); + $core.List<$60.UrlMap> get handlers => $_getList(20); + /// Custom static error pages. Limited to 10KB per page. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(101) - $core.List<$1.ErrorHandler> get errorHandlers => $_getList(21); + $core.List<$60.ErrorHandler> get errorHandlers => $_getList(21); + /// Configuration for third-party Python runtime libraries that are required + /// by the application. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(102) - $core.List<$1.Library> get libraries => $_getList(22); + $core.List<$60.Library> get libraries => $_getList(22); + /// Serving configuration for + /// [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(103) - $1.ApiConfigHandler get apiConfig => $_getN(23); + $60.ApiConfigHandler get apiConfig => $_getN(23); @$pb.TagNumber(103) - set apiConfig($1.ApiConfigHandler v) { + set apiConfig($60.ApiConfigHandler v) { setField(103, v); } @@ -536,15 +647,24 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(103) void clearApiConfig() => clearField(103); @$pb.TagNumber(103) - $1.ApiConfigHandler ensureApiConfig() => $_ensure(23); + $60.ApiConfigHandler ensureApiConfig() => $_ensure(23); + /// Environment variables available to the application. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(104) $core.Map<$core.String, $core.String> get envVariables => $_getMap(24); + /// Duration that static files should be cached by web proxies and browsers. + /// Only applicable if the corresponding + /// [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) + /// does not specify its own expiration time. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(105) - $2.Duration get defaultExpiration => $_getN(25); + $51.Duration get defaultExpiration => $_getN(25); @$pb.TagNumber(105) - set defaultExpiration($2.Duration v) { + set defaultExpiration($51.Duration v) { setField(105, v); } @@ -553,12 +673,17 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(105) void clearDefaultExpiration() => clearField(105); @$pb.TagNumber(105) - $2.Duration ensureDefaultExpiration() => $_ensure(25); + $51.Duration ensureDefaultExpiration() => $_ensure(25); + /// Configures health checking for instances. Unhealthy instances are + /// stopped and replaced with new instances. + /// Only applicable in the App Engine flexible environment. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(106) - $1.HealthCheck get healthCheck => $_getN(26); + $60.HealthCheck get healthCheck => $_getN(26); @$pb.TagNumber(106) - set healthCheck($1.HealthCheck v) { + set healthCheck($60.HealthCheck v) { setField(106, v); } @@ -567,8 +692,12 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(106) void clearHealthCheck() => clearField(106); @$pb.TagNumber(106) - $1.HealthCheck ensureHealthCheck() => $_ensure(26); + $60.HealthCheck ensureHealthCheck() => $_ensure(26); + /// Files that match this pattern will not be built into this version. + /// Only applicable for Go runtimes. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(107) $core.String get nobuildFilesRegex => $_getSZ(27); @$pb.TagNumber(107) @@ -581,10 +710,13 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(107) void clearNobuildFilesRegex() => clearField(107); + /// Code and application artifacts that make up this version. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(108) - $3.Deployment get deployment => $_getN(28); + $61.Deployment get deployment => $_getN(28); @$pb.TagNumber(108) - set deployment($3.Deployment v) { + set deployment($61.Deployment v) { setField(108, v); } @@ -593,8 +725,12 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(108) void clearDeployment() => clearField(108); @$pb.TagNumber(108) - $3.Deployment ensureDeployment() => $_ensure(28); + $61.Deployment ensureDeployment() => $_ensure(28); + /// Serving URL for this version. Example: + /// "https://myversion-dot-myservice-dot-myapp.appspot.com" + /// + /// @OutputOnly @$pb.TagNumber(109) $core.String get versionUrl => $_getSZ(29); @$pb.TagNumber(109) @@ -607,6 +743,10 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(109) void clearVersionUrl() => clearField(109); + /// Cloud Endpoints configuration. + /// + /// If endpoints_api_service is set, the Cloud Endpoints Extensible Service + /// Proxy will be provided to serve the API implemented by the app. @$pb.TagNumber(110) EndpointsApiService get endpointsApiService => $_getN(30); @$pb.TagNumber(110) @@ -621,10 +761,14 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(110) EndpointsApiService ensureEndpointsApiService() => $_ensure(30); + /// Configures readiness health checking for instances. + /// Unhealthy instances are not put into the backend traffic rotation. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(112) - $1.ReadinessCheck get readinessCheck => $_getN(31); + $60.ReadinessCheck get readinessCheck => $_getN(31); @$pb.TagNumber(112) - set readinessCheck($1.ReadinessCheck v) { + set readinessCheck($60.ReadinessCheck v) { setField(112, v); } @@ -633,12 +777,16 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(112) void clearReadinessCheck() => clearField(112); @$pb.TagNumber(112) - $1.ReadinessCheck ensureReadinessCheck() => $_ensure(31); + $60.ReadinessCheck ensureReadinessCheck() => $_ensure(31); + /// Configures liveness health checking for instances. + /// Unhealthy instances are stopped and replaced with new instances + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(113) - $1.LivenessCheck get livenessCheck => $_getN(32); + $60.LivenessCheck get livenessCheck => $_getN(32); @$pb.TagNumber(113) - set livenessCheck($1.LivenessCheck v) { + set livenessCheck($60.LivenessCheck v) { setField(113, v); } @@ -647,8 +795,10 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(113) void clearLivenessCheck() => clearField(113); @$pb.TagNumber(113) - $1.LivenessCheck ensureLivenessCheck() => $_ensure(32); + $60.LivenessCheck ensureLivenessCheck() => $_ensure(32); + /// The channel of the runtime to use. Only available for some + /// runtimes. Defaults to the `default` channel. @$pb.TagNumber(117) $core.String get runtimeChannel => $_getSZ(33); @$pb.TagNumber(117) @@ -661,9 +811,12 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(117) void clearRuntimeChannel() => clearField(117); + /// The Google Compute Engine zones that are supported by this version in the + /// App Engine flexible environment. Deprecated. @$pb.TagNumber(118) $core.List<$core.String> get zones => $_getList(34); + /// Enables VPC connectivity for standard apps. @$pb.TagNumber(121) VpcAccessConnector get vpcAccessConnector => $_getN(35); @$pb.TagNumber(121) @@ -678,6 +831,7 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(121) VpcAccessConnector ensureVpcAccessConnector() => $_ensure(35); + /// The entrypoint for the application. @$pb.TagNumber(122) Entrypoint get entrypoint => $_getN(36); @$pb.TagNumber(122) @@ -692,9 +846,15 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(122) Entrypoint ensureEntrypoint() => $_ensure(36); + /// Environment variables available to the build environment. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(125) $core.Map<$core.String, $core.String> get buildEnvVariables => $_getMap(37); + /// The identity that the deployed version will run as. + /// Admin API will use the App Engine Appspot service account as default if + /// this field is neither provided in app.yaml file nor through CLI flag. @$pb.TagNumber(127) $core.String get serviceAccount => $_getSZ(38); @$pb.TagNumber(127) @@ -706,68 +866,75 @@ class Version extends $pb.GeneratedMessage { $core.bool hasServiceAccount() => $_has(38); @$pb.TagNumber(127) void clearServiceAccount() => clearField(127); + + /// Allows App Engine second generation runtimes to access the legacy bundled + /// services. + @$pb.TagNumber(128) + $core.bool get appEngineApis => $_getBF(39); + @$pb.TagNumber(128) + set appEngineApis($core.bool v) { + $_setBool(39, v); + } + + @$pb.TagNumber(128) + $core.bool hasAppEngineApis() => $_has(39); + @$pb.TagNumber(128) + void clearAppEngineApis() => clearField(128); } +/// [Cloud Endpoints](https://cloud.google.com/endpoints) configuration. +/// The Endpoints API Service provides tooling for serving Open API and gRPC +/// endpoints via an NGINX proxy. Only valid for App Engine Flexible environment +/// deployments. +/// +/// The fields here refer to the name and configuration ID of a "service" +/// resource in the [Service Management API](https://cloud.google.com/service-management/overview). class EndpointsApiService extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EndpointsApiService', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'configId') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rolloutStrategy', - $pb.PbFieldType.OE, - defaultOrMaker: EndpointsApiService_RolloutStrategy.UNSPECIFIED_ROLLOUT_STRATEGY, - valueOf: EndpointsApiService_RolloutStrategy.valueOf, - enumValues: EndpointsApiService_RolloutStrategy.values) - ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'disableTraceSampling') - ..hasRequiredFields = false; - - EndpointsApiService._() : super(); factory EndpointsApiService({ $core.String? name, $core.String? configId, EndpointsApiService_RolloutStrategy? rolloutStrategy, $core.bool? disableTraceSampling, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (configId != null) { - _result.configId = configId; + $result.configId = configId; } if (rolloutStrategy != null) { - _result.rolloutStrategy = rolloutStrategy; + $result.rolloutStrategy = rolloutStrategy; } if (disableTraceSampling != null) { - _result.disableTraceSampling = disableTraceSampling; + $result.disableTraceSampling = disableTraceSampling; } - return _result; + return $result; } + EndpointsApiService._() : super(); factory EndpointsApiService.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EndpointsApiService.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EndpointsApiService', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'configId') + ..e( + 3, _omitFieldNames ? '' : 'rolloutStrategy', $pb.PbFieldType.OE, + defaultOrMaker: + EndpointsApiService_RolloutStrategy.UNSPECIFIED_ROLLOUT_STRATEGY, + valueOf: EndpointsApiService_RolloutStrategy.valueOf, + enumValues: EndpointsApiService_RolloutStrategy.values) + ..aOB(4, _omitFieldNames ? '' : 'disableTraceSampling') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -777,8 +944,10 @@ class EndpointsApiService extends $pb.GeneratedMessage { 'Will be removed in next major version') EndpointsApiService copyWith(void Function(EndpointsApiService) updates) => super.copyWith((message) => updates(message as EndpointsApiService)) - as EndpointsApiService; // ignore: deprecated_member_use + as EndpointsApiService; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EndpointsApiService create() => EndpointsApiService._(); EndpointsApiService createEmptyInstance() => create(); @@ -789,6 +958,8 @@ class EndpointsApiService extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EndpointsApiService? _defaultInstance; + /// Endpoints service name which is the name of the "service" resource in the + /// Service Management API. For example "myapi.endpoints.myproject.cloud.goog" @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -801,6 +972,18 @@ class EndpointsApiService extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Endpoints service configuration ID as specified by the Service Management + /// API. For example "2016-09-19r1". + /// + /// By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. + /// This means that Endpoints starts up with a particular configuration ID. + /// When a new configuration is rolled out, Endpoints must be given the new + /// configuration ID. The `config_id` field is used to give the configuration + /// ID and is required in this case. + /// + /// Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. + /// When using this, Endpoints fetches the latest configuration and does not + /// need the configuration ID. In this case, `config_id` must be omitted. @$pb.TagNumber(2) $core.String get configId => $_getSZ(1); @$pb.TagNumber(2) @@ -813,6 +996,8 @@ class EndpointsApiService extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearConfigId() => clearField(2); + /// Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If + /// `MANAGED`, `config_id` must be omitted. @$pb.TagNumber(3) EndpointsApiService_RolloutStrategy get rolloutStrategy => $_getN(2); @$pb.TagNumber(3) @@ -825,6 +1010,8 @@ class EndpointsApiService extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearRolloutStrategy() => clearField(3); + /// Enable or disable trace sampling. By default, this is set to false for + /// enabled. @$pb.TagNumber(4) $core.bool get disableTraceSampling => $_getBF(3); @$pb.TagNumber(4) @@ -838,100 +1025,108 @@ class EndpointsApiService extends $pb.GeneratedMessage { void clearDisableTraceSampling() => clearField(4); } +/// Automatic scaling is based on request rate, response latencies, and other +/// application metrics. class AutomaticScaling extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AutomaticScaling', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOM<$2.Duration>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'coolDownPeriod', - subBuilder: $2.Duration.create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cpuUtilization', - subBuilder: CpuUtilization.create) - ..a<$core.int>( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maxConcurrentRequests', $pb.PbFieldType.O3) - ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maxIdleInstances', $pb.PbFieldType.O3) - ..a<$core.int>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maxTotalInstances', $pb.PbFieldType.O3) - ..aOM<$2.Duration>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maxPendingLatency', subBuilder: $2.Duration.create) - ..a<$core.int>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'minIdleInstances', $pb.PbFieldType.O3) - ..a<$core.int>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'minTotalInstances', $pb.PbFieldType.O3) - ..aOM<$2.Duration>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'minPendingLatency', subBuilder: $2.Duration.create) - ..aOM(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'requestUtilization', subBuilder: RequestUtilization.create) - ..aOM(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'diskUtilization', subBuilder: DiskUtilization.create) - ..aOM(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'networkUtilization', subBuilder: NetworkUtilization.create) - ..aOM(20, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'standardSchedulerSettings', subBuilder: StandardSchedulerSettings.create) - ..hasRequiredFields = false; - - AutomaticScaling._() : super(); factory AutomaticScaling({ - $2.Duration? coolDownPeriod, + $51.Duration? coolDownPeriod, CpuUtilization? cpuUtilization, $core.int? maxConcurrentRequests, $core.int? maxIdleInstances, $core.int? maxTotalInstances, - $2.Duration? maxPendingLatency, + $51.Duration? maxPendingLatency, $core.int? minIdleInstances, $core.int? minTotalInstances, - $2.Duration? minPendingLatency, + $51.Duration? minPendingLatency, RequestUtilization? requestUtilization, DiskUtilization? diskUtilization, NetworkUtilization? networkUtilization, StandardSchedulerSettings? standardSchedulerSettings, }) { - final _result = create(); + final $result = create(); if (coolDownPeriod != null) { - _result.coolDownPeriod = coolDownPeriod; + $result.coolDownPeriod = coolDownPeriod; } if (cpuUtilization != null) { - _result.cpuUtilization = cpuUtilization; + $result.cpuUtilization = cpuUtilization; } if (maxConcurrentRequests != null) { - _result.maxConcurrentRequests = maxConcurrentRequests; + $result.maxConcurrentRequests = maxConcurrentRequests; } if (maxIdleInstances != null) { - _result.maxIdleInstances = maxIdleInstances; + $result.maxIdleInstances = maxIdleInstances; } if (maxTotalInstances != null) { - _result.maxTotalInstances = maxTotalInstances; + $result.maxTotalInstances = maxTotalInstances; } if (maxPendingLatency != null) { - _result.maxPendingLatency = maxPendingLatency; + $result.maxPendingLatency = maxPendingLatency; } if (minIdleInstances != null) { - _result.minIdleInstances = minIdleInstances; + $result.minIdleInstances = minIdleInstances; } if (minTotalInstances != null) { - _result.minTotalInstances = minTotalInstances; + $result.minTotalInstances = minTotalInstances; } if (minPendingLatency != null) { - _result.minPendingLatency = minPendingLatency; + $result.minPendingLatency = minPendingLatency; } if (requestUtilization != null) { - _result.requestUtilization = requestUtilization; + $result.requestUtilization = requestUtilization; } if (diskUtilization != null) { - _result.diskUtilization = diskUtilization; + $result.diskUtilization = diskUtilization; } if (networkUtilization != null) { - _result.networkUtilization = networkUtilization; + $result.networkUtilization = networkUtilization; } if (standardSchedulerSettings != null) { - _result.standardSchedulerSettings = standardSchedulerSettings; + $result.standardSchedulerSettings = standardSchedulerSettings; } - return _result; + return $result; } + AutomaticScaling._() : super(); factory AutomaticScaling.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AutomaticScaling.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AutomaticScaling', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOM<$51.Duration>(1, _omitFieldNames ? '' : 'coolDownPeriod', + subBuilder: $51.Duration.create) + ..aOM(2, _omitFieldNames ? '' : 'cpuUtilization', + subBuilder: CpuUtilization.create) + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'maxConcurrentRequests', $pb.PbFieldType.O3) + ..a<$core.int>( + 4, _omitFieldNames ? '' : 'maxIdleInstances', $pb.PbFieldType.O3) + ..a<$core.int>( + 5, _omitFieldNames ? '' : 'maxTotalInstances', $pb.PbFieldType.O3) + ..aOM<$51.Duration>(6, _omitFieldNames ? '' : 'maxPendingLatency', + subBuilder: $51.Duration.create) + ..a<$core.int>( + 7, _omitFieldNames ? '' : 'minIdleInstances', $pb.PbFieldType.O3) + ..a<$core.int>( + 8, _omitFieldNames ? '' : 'minTotalInstances', $pb.PbFieldType.O3) + ..aOM<$51.Duration>(9, _omitFieldNames ? '' : 'minPendingLatency', + subBuilder: $51.Duration.create) + ..aOM(10, _omitFieldNames ? '' : 'requestUtilization', + subBuilder: RequestUtilization.create) + ..aOM(11, _omitFieldNames ? '' : 'diskUtilization', + subBuilder: DiskUtilization.create) + ..aOM(12, _omitFieldNames ? '' : 'networkUtilization', + subBuilder: NetworkUtilization.create) + ..aOM( + 20, _omitFieldNames ? '' : 'standardSchedulerSettings', + subBuilder: StandardSchedulerSettings.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') @@ -941,8 +1136,10 @@ class AutomaticScaling extends $pb.GeneratedMessage { 'Will be removed in next major version') AutomaticScaling copyWith(void Function(AutomaticScaling) updates) => super.copyWith((message) => updates(message as AutomaticScaling)) - as AutomaticScaling; // ignore: deprecated_member_use + as AutomaticScaling; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AutomaticScaling create() => AutomaticScaling._(); AutomaticScaling createEmptyInstance() => create(); @@ -953,10 +1150,16 @@ class AutomaticScaling extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AutomaticScaling? _defaultInstance; + /// The time period that the + /// [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) + /// should wait before it starts collecting information from a new instance. + /// This prevents the autoscaler from collecting information when the instance + /// is initializing, during which the collected usage would not be reliable. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(1) - $2.Duration get coolDownPeriod => $_getN(0); + $51.Duration get coolDownPeriod => $_getN(0); @$pb.TagNumber(1) - set coolDownPeriod($2.Duration v) { + set coolDownPeriod($51.Duration v) { setField(1, v); } @@ -965,8 +1168,9 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCoolDownPeriod() => clearField(1); @$pb.TagNumber(1) - $2.Duration ensureCoolDownPeriod() => $_ensure(0); + $51.Duration ensureCoolDownPeriod() => $_ensure(0); + /// Target scaling by CPU usage. @$pb.TagNumber(2) CpuUtilization get cpuUtilization => $_getN(1); @$pb.TagNumber(2) @@ -981,6 +1185,10 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(2) CpuUtilization ensureCpuUtilization() => $_ensure(1); + /// Number of concurrent requests an automatic scaling instance can accept + /// before the scheduler spawns a new instance. + /// + /// Defaults to a runtime-specific value. @$pb.TagNumber(3) $core.int get maxConcurrentRequests => $_getIZ(2); @$pb.TagNumber(3) @@ -993,6 +1201,8 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearMaxConcurrentRequests() => clearField(3); + /// Maximum number of idle instances that should be maintained for this + /// version. @$pb.TagNumber(4) $core.int get maxIdleInstances => $_getIZ(3); @$pb.TagNumber(4) @@ -1005,6 +1215,8 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearMaxIdleInstances() => clearField(4); + /// Maximum number of instances that should be started to handle requests for + /// this version. @$pb.TagNumber(5) $core.int get maxTotalInstances => $_getIZ(4); @$pb.TagNumber(5) @@ -1017,10 +1229,12 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearMaxTotalInstances() => clearField(5); + /// Maximum amount of time that a request should wait in the pending queue + /// before starting a new instance to handle it. @$pb.TagNumber(6) - $2.Duration get maxPendingLatency => $_getN(5); + $51.Duration get maxPendingLatency => $_getN(5); @$pb.TagNumber(6) - set maxPendingLatency($2.Duration v) { + set maxPendingLatency($51.Duration v) { setField(6, v); } @@ -1029,8 +1243,10 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearMaxPendingLatency() => clearField(6); @$pb.TagNumber(6) - $2.Duration ensureMaxPendingLatency() => $_ensure(5); + $51.Duration ensureMaxPendingLatency() => $_ensure(5); + /// Minimum number of idle instances that should be maintained for + /// this version. Only applicable for the default version of a service. @$pb.TagNumber(7) $core.int get minIdleInstances => $_getIZ(6); @$pb.TagNumber(7) @@ -1043,6 +1259,8 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearMinIdleInstances() => clearField(7); + /// Minimum number of running instances that should be maintained for this + /// version. @$pb.TagNumber(8) $core.int get minTotalInstances => $_getIZ(7); @$pb.TagNumber(8) @@ -1055,10 +1273,12 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearMinTotalInstances() => clearField(8); + /// Minimum amount of time a request should wait in the pending queue before + /// starting a new instance to handle it. @$pb.TagNumber(9) - $2.Duration get minPendingLatency => $_getN(8); + $51.Duration get minPendingLatency => $_getN(8); @$pb.TagNumber(9) - set minPendingLatency($2.Duration v) { + set minPendingLatency($51.Duration v) { setField(9, v); } @@ -1067,8 +1287,9 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearMinPendingLatency() => clearField(9); @$pb.TagNumber(9) - $2.Duration ensureMinPendingLatency() => $_ensure(8); + $51.Duration ensureMinPendingLatency() => $_ensure(8); + /// Target scaling by request utilization. @$pb.TagNumber(10) RequestUtilization get requestUtilization => $_getN(9); @$pb.TagNumber(10) @@ -1083,6 +1304,7 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(10) RequestUtilization ensureRequestUtilization() => $_ensure(9); + /// Target scaling by disk usage. @$pb.TagNumber(11) DiskUtilization get diskUtilization => $_getN(10); @$pb.TagNumber(11) @@ -1097,6 +1319,7 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(11) DiskUtilization ensureDiskUtilization() => $_ensure(10); + /// Target scaling by network usage. @$pb.TagNumber(12) NetworkUtilization get networkUtilization => $_getN(11); @$pb.TagNumber(12) @@ -1111,6 +1334,7 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(12) NetworkUtilization ensureNetworkUtilization() => $_ensure(11); + /// Scheduler settings for standard environment. @$pb.TagNumber(20) StandardSchedulerSettings get standardSchedulerSettings => $_getN(12); @$pb.TagNumber(20) @@ -1126,47 +1350,42 @@ class AutomaticScaling extends $pb.GeneratedMessage { StandardSchedulerSettings ensureStandardSchedulerSettings() => $_ensure(12); } +/// A service with basic scaling will create an instance when the application +/// receives a request. The instance will be turned down when the app becomes +/// idle. Basic scaling is ideal for work that is intermittent or driven by +/// user activity. class BasicScaling extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BasicScaling', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOM<$2.Duration>(1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'idleTimeout', - subBuilder: $2.Duration.create) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'maxInstances', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - BasicScaling._() : super(); factory BasicScaling({ - $2.Duration? idleTimeout, + $51.Duration? idleTimeout, $core.int? maxInstances, }) { - final _result = create(); + final $result = create(); if (idleTimeout != null) { - _result.idleTimeout = idleTimeout; + $result.idleTimeout = idleTimeout; } if (maxInstances != null) { - _result.maxInstances = maxInstances; + $result.maxInstances = maxInstances; } - return _result; + return $result; } + BasicScaling._() : super(); factory BasicScaling.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BasicScaling.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BasicScaling', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOM<$51.Duration>(1, _omitFieldNames ? '' : 'idleTimeout', + subBuilder: $51.Duration.create) + ..a<$core.int>(2, _omitFieldNames ? '' : 'maxInstances', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1176,8 +1395,10 @@ class BasicScaling extends $pb.GeneratedMessage { 'Will be removed in next major version') BasicScaling copyWith(void Function(BasicScaling) updates) => super.copyWith((message) => updates(message as BasicScaling)) - as BasicScaling; // ignore: deprecated_member_use + as BasicScaling; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BasicScaling create() => BasicScaling._(); BasicScaling createEmptyInstance() => create(); @@ -1188,10 +1409,12 @@ class BasicScaling extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BasicScaling? _defaultInstance; + /// Duration of time after the last request that an instance must wait before + /// the instance is shut down. @$pb.TagNumber(1) - $2.Duration get idleTimeout => $_getN(0); + $51.Duration get idleTimeout => $_getN(0); @$pb.TagNumber(1) - set idleTimeout($2.Duration v) { + set idleTimeout($51.Duration v) { setField(1, v); } @@ -1200,8 +1423,9 @@ class BasicScaling extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearIdleTimeout() => clearField(1); @$pb.TagNumber(1) - $2.Duration ensureIdleTimeout() => $_ensure(0); + $51.Duration ensureIdleTimeout() => $_ensure(0); + /// Maximum number of instances to create for this version. @$pb.TagNumber(2) $core.int get maxInstances => $_getIZ(1); @$pb.TagNumber(2) @@ -1215,40 +1439,34 @@ class BasicScaling extends $pb.GeneratedMessage { void clearMaxInstances() => clearField(2); } +/// A service with manual scaling runs continuously, allowing you to perform +/// complex initialization and rely on the state of its memory over time. class ManualScaling extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ManualScaling', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'instances', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ManualScaling._() : super(); factory ManualScaling({ $core.int? instances, }) { - final _result = create(); + final $result = create(); if (instances != null) { - _result.instances = instances; + $result.instances = instances; } - return _result; + return $result; } + ManualScaling._() : super(); factory ManualScaling.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ManualScaling.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ManualScaling', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'instances', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1258,8 +1476,10 @@ class ManualScaling extends $pb.GeneratedMessage { 'Will be removed in next major version') ManualScaling copyWith(void Function(ManualScaling) updates) => super.copyWith((message) => updates(message as ManualScaling)) - as ManualScaling; // ignore: deprecated_member_use + as ManualScaling; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ManualScaling create() => ManualScaling._(); ManualScaling createEmptyInstance() => create(); @@ -1270,6 +1490,10 @@ class ManualScaling extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ManualScaling? _defaultInstance; + /// Number of instances to assign to the service at the start. This number + /// can later be altered by using the + /// [Modules API](https://cloud.google.com/appengine/docs/python/modules/functions) + /// `set_num_instances()` function. @$pb.TagNumber(1) $core.int get instances => $_getIZ(0); @$pb.TagNumber(1) @@ -1283,48 +1507,40 @@ class ManualScaling extends $pb.GeneratedMessage { void clearInstances() => clearField(1); } +/// Target scaling by CPU usage. class CpuUtilization extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CpuUtilization', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOM<$2.Duration>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'aggregationWindowLength', - subBuilder: $2.Duration.create) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'targetUtilization', - $pb.PbFieldType.OD) - ..hasRequiredFields = false; - - CpuUtilization._() : super(); factory CpuUtilization({ - $2.Duration? aggregationWindowLength, + $51.Duration? aggregationWindowLength, $core.double? targetUtilization, }) { - final _result = create(); + final $result = create(); if (aggregationWindowLength != null) { - _result.aggregationWindowLength = aggregationWindowLength; + $result.aggregationWindowLength = aggregationWindowLength; } if (targetUtilization != null) { - _result.targetUtilization = targetUtilization; + $result.targetUtilization = targetUtilization; } - return _result; + return $result; } + CpuUtilization._() : super(); factory CpuUtilization.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CpuUtilization.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CpuUtilization', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOM<$51.Duration>(1, _omitFieldNames ? '' : 'aggregationWindowLength', + subBuilder: $51.Duration.create) + ..a<$core.double>( + 2, _omitFieldNames ? '' : 'targetUtilization', $pb.PbFieldType.OD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1334,8 +1550,10 @@ class CpuUtilization extends $pb.GeneratedMessage { 'Will be removed in next major version') CpuUtilization copyWith(void Function(CpuUtilization) updates) => super.copyWith((message) => updates(message as CpuUtilization)) - as CpuUtilization; // ignore: deprecated_member_use + as CpuUtilization; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CpuUtilization create() => CpuUtilization._(); CpuUtilization createEmptyInstance() => create(); @@ -1346,10 +1564,11 @@ class CpuUtilization extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CpuUtilization? _defaultInstance; + /// Period of time over which CPU utilization is calculated. @$pb.TagNumber(1) - $2.Duration get aggregationWindowLength => $_getN(0); + $51.Duration get aggregationWindowLength => $_getN(0); @$pb.TagNumber(1) - set aggregationWindowLength($2.Duration v) { + set aggregationWindowLength($51.Duration v) { setField(1, v); } @@ -1358,8 +1577,10 @@ class CpuUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearAggregationWindowLength() => clearField(1); @$pb.TagNumber(1) - $2.Duration ensureAggregationWindowLength() => $_ensure(0); + $51.Duration ensureAggregationWindowLength() => $_ensure(0); + /// Target CPU utilization ratio to maintain when scaling. Must be between 0 + /// and 1. @$pb.TagNumber(2) $core.double get targetUtilization => $_getN(1); @$pb.TagNumber(2) @@ -1373,50 +1594,41 @@ class CpuUtilization extends $pb.GeneratedMessage { void clearTargetUtilization() => clearField(2); } +/// Target scaling by request utilization. +/// Only applicable in the App Engine flexible environment. class RequestUtilization extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RequestUtilization', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetRequestCountPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetConcurrentRequests', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - RequestUtilization._() : super(); factory RequestUtilization({ $core.int? targetRequestCountPerSecond, $core.int? targetConcurrentRequests, }) { - final _result = create(); + final $result = create(); if (targetRequestCountPerSecond != null) { - _result.targetRequestCountPerSecond = targetRequestCountPerSecond; + $result.targetRequestCountPerSecond = targetRequestCountPerSecond; } if (targetConcurrentRequests != null) { - _result.targetConcurrentRequests = targetConcurrentRequests; + $result.targetConcurrentRequests = targetConcurrentRequests; } - return _result; + return $result; } + RequestUtilization._() : super(); factory RequestUtilization.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RequestUtilization.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RequestUtilization', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'targetRequestCountPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(2, _omitFieldNames ? '' : 'targetConcurrentRequests', + $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1426,8 +1638,10 @@ class RequestUtilization extends $pb.GeneratedMessage { 'Will be removed in next major version') RequestUtilization copyWith(void Function(RequestUtilization) updates) => super.copyWith((message) => updates(message as RequestUtilization)) - as RequestUtilization; // ignore: deprecated_member_use + as RequestUtilization; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RequestUtilization create() => RequestUtilization._(); RequestUtilization createEmptyInstance() => create(); @@ -1438,6 +1652,7 @@ class RequestUtilization extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static RequestUtilization? _defaultInstance; + /// Target requests per second. @$pb.TagNumber(1) $core.int get targetRequestCountPerSecond => $_getIZ(0); @$pb.TagNumber(1) @@ -1450,6 +1665,7 @@ class RequestUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTargetRequestCountPerSecond() => clearField(1); + /// Target number of concurrent requests. @$pb.TagNumber(2) $core.int get targetConcurrentRequests => $_getIZ(1); @$pb.TagNumber(2) @@ -1463,64 +1679,53 @@ class RequestUtilization extends $pb.GeneratedMessage { void clearTargetConcurrentRequests() => clearField(2); } +/// Target scaling by disk usage. +/// Only applicable in the App Engine flexible environment. class DiskUtilization extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DiskUtilization', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..a<$core.int>( - 14, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetWriteBytesPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>( - 15, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetWriteOpsPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>( - 16, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetReadBytesPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'targetReadOpsPerSecond', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - DiskUtilization._() : super(); factory DiskUtilization({ $core.int? targetWriteBytesPerSecond, $core.int? targetWriteOpsPerSecond, $core.int? targetReadBytesPerSecond, $core.int? targetReadOpsPerSecond, }) { - final _result = create(); + final $result = create(); if (targetWriteBytesPerSecond != null) { - _result.targetWriteBytesPerSecond = targetWriteBytesPerSecond; + $result.targetWriteBytesPerSecond = targetWriteBytesPerSecond; } if (targetWriteOpsPerSecond != null) { - _result.targetWriteOpsPerSecond = targetWriteOpsPerSecond; + $result.targetWriteOpsPerSecond = targetWriteOpsPerSecond; } if (targetReadBytesPerSecond != null) { - _result.targetReadBytesPerSecond = targetReadBytesPerSecond; + $result.targetReadBytesPerSecond = targetReadBytesPerSecond; } if (targetReadOpsPerSecond != null) { - _result.targetReadOpsPerSecond = targetReadOpsPerSecond; + $result.targetReadOpsPerSecond = targetReadOpsPerSecond; } - return _result; + return $result; } + DiskUtilization._() : super(); factory DiskUtilization.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DiskUtilization.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DiskUtilization', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..a<$core.int>(14, _omitFieldNames ? '' : 'targetWriteBytesPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(15, _omitFieldNames ? '' : 'targetWriteOpsPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(16, _omitFieldNames ? '' : 'targetReadBytesPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>( + 17, _omitFieldNames ? '' : 'targetReadOpsPerSecond', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1530,8 +1735,10 @@ class DiskUtilization extends $pb.GeneratedMessage { 'Will be removed in next major version') DiskUtilization copyWith(void Function(DiskUtilization) updates) => super.copyWith((message) => updates(message as DiskUtilization)) - as DiskUtilization; // ignore: deprecated_member_use + as DiskUtilization; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DiskUtilization create() => DiskUtilization._(); DiskUtilization createEmptyInstance() => create(); @@ -1542,6 +1749,7 @@ class DiskUtilization extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DiskUtilization? _defaultInstance; + /// Target bytes written per second. @$pb.TagNumber(14) $core.int get targetWriteBytesPerSecond => $_getIZ(0); @$pb.TagNumber(14) @@ -1554,6 +1762,7 @@ class DiskUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearTargetWriteBytesPerSecond() => clearField(14); + /// Target ops written per second. @$pb.TagNumber(15) $core.int get targetWriteOpsPerSecond => $_getIZ(1); @$pb.TagNumber(15) @@ -1566,6 +1775,7 @@ class DiskUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearTargetWriteOpsPerSecond() => clearField(15); + /// Target bytes read per second. @$pb.TagNumber(16) $core.int get targetReadBytesPerSecond => $_getIZ(2); @$pb.TagNumber(16) @@ -1578,6 +1788,7 @@ class DiskUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(16) void clearTargetReadBytesPerSecond() => clearField(16); + /// Target ops read per seconds. @$pb.TagNumber(17) $core.int get targetReadOpsPerSecond => $_getIZ(3); @$pb.TagNumber(17) @@ -1591,63 +1802,53 @@ class DiskUtilization extends $pb.GeneratedMessage { void clearTargetReadOpsPerSecond() => clearField(17); } +/// Target scaling by network usage. +/// Only applicable in the App Engine flexible environment. class NetworkUtilization extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'NetworkUtilization', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetSentBytesPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>( - 11, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetSentPacketsPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>( - 12, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'targetReceivedBytesPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'targetReceivedPacketsPerSecond', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - NetworkUtilization._() : super(); factory NetworkUtilization({ $core.int? targetSentBytesPerSecond, $core.int? targetSentPacketsPerSecond, $core.int? targetReceivedBytesPerSecond, $core.int? targetReceivedPacketsPerSecond, }) { - final _result = create(); + final $result = create(); if (targetSentBytesPerSecond != null) { - _result.targetSentBytesPerSecond = targetSentBytesPerSecond; + $result.targetSentBytesPerSecond = targetSentBytesPerSecond; } if (targetSentPacketsPerSecond != null) { - _result.targetSentPacketsPerSecond = targetSentPacketsPerSecond; + $result.targetSentPacketsPerSecond = targetSentPacketsPerSecond; } if (targetReceivedBytesPerSecond != null) { - _result.targetReceivedBytesPerSecond = targetReceivedBytesPerSecond; + $result.targetReceivedBytesPerSecond = targetReceivedBytesPerSecond; } if (targetReceivedPacketsPerSecond != null) { - _result.targetReceivedPacketsPerSecond = targetReceivedPacketsPerSecond; + $result.targetReceivedPacketsPerSecond = targetReceivedPacketsPerSecond; } - return _result; + return $result; } + NetworkUtilization._() : super(); factory NetworkUtilization.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory NetworkUtilization.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'NetworkUtilization', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'targetSentBytesPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(11, _omitFieldNames ? '' : 'targetSentPacketsPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(12, _omitFieldNames ? '' : 'targetReceivedBytesPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(13, _omitFieldNames ? '' : 'targetReceivedPacketsPerSecond', + $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1657,8 +1858,10 @@ class NetworkUtilization extends $pb.GeneratedMessage { 'Will be removed in next major version') NetworkUtilization copyWith(void Function(NetworkUtilization) updates) => super.copyWith((message) => updates(message as NetworkUtilization)) - as NetworkUtilization; // ignore: deprecated_member_use + as NetworkUtilization; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static NetworkUtilization create() => NetworkUtilization._(); NetworkUtilization createEmptyInstance() => create(); @@ -1669,6 +1872,7 @@ class NetworkUtilization extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static NetworkUtilization? _defaultInstance; + /// Target bytes sent per second. @$pb.TagNumber(1) $core.int get targetSentBytesPerSecond => $_getIZ(0); @$pb.TagNumber(1) @@ -1681,6 +1885,7 @@ class NetworkUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTargetSentBytesPerSecond() => clearField(1); + /// Target packets sent per second. @$pb.TagNumber(11) $core.int get targetSentPacketsPerSecond => $_getIZ(1); @$pb.TagNumber(11) @@ -1693,6 +1898,7 @@ class NetworkUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearTargetSentPacketsPerSecond() => clearField(11); + /// Target bytes received per second. @$pb.TagNumber(12) $core.int get targetReceivedBytesPerSecond => $_getIZ(2); @$pb.TagNumber(12) @@ -1705,6 +1911,7 @@ class NetworkUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearTargetReceivedBytesPerSecond() => clearField(12); + /// Target packets received per second. @$pb.TagNumber(13) $core.int get targetReceivedPacketsPerSecond => $_getIZ(3); @$pb.TagNumber(13) @@ -1718,63 +1925,50 @@ class NetworkUtilization extends $pb.GeneratedMessage { void clearTargetReceivedPacketsPerSecond() => clearField(13); } +/// Scheduler settings for standard environment. class StandardSchedulerSettings extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'StandardSchedulerSettings', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..a<$core.double>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetCpuUtilization', - $pb.PbFieldType.OD) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetThroughputUtilization', - $pb.PbFieldType.OD) - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'minInstances', - $pb.PbFieldType.O3) - ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maxInstances', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - StandardSchedulerSettings._() : super(); factory StandardSchedulerSettings({ $core.double? targetCpuUtilization, $core.double? targetThroughputUtilization, $core.int? minInstances, $core.int? maxInstances, }) { - final _result = create(); + final $result = create(); if (targetCpuUtilization != null) { - _result.targetCpuUtilization = targetCpuUtilization; + $result.targetCpuUtilization = targetCpuUtilization; } if (targetThroughputUtilization != null) { - _result.targetThroughputUtilization = targetThroughputUtilization; + $result.targetThroughputUtilization = targetThroughputUtilization; } if (minInstances != null) { - _result.minInstances = minInstances; + $result.minInstances = minInstances; } if (maxInstances != null) { - _result.maxInstances = maxInstances; + $result.maxInstances = maxInstances; } - return _result; + return $result; } + StandardSchedulerSettings._() : super(); factory StandardSchedulerSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory StandardSchedulerSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StandardSchedulerSettings', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..a<$core.double>( + 1, _omitFieldNames ? '' : 'targetCpuUtilization', $pb.PbFieldType.OD) + ..a<$core.double>(2, _omitFieldNames ? '' : 'targetThroughputUtilization', + $pb.PbFieldType.OD) + ..a<$core.int>(3, _omitFieldNames ? '' : 'minInstances', $pb.PbFieldType.O3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'maxInstances', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1786,8 +1980,10 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { StandardSchedulerSettings copyWith( void Function(StandardSchedulerSettings) updates) => super.copyWith((message) => updates(message as StandardSchedulerSettings)) - as StandardSchedulerSettings; // ignore: deprecated_member_use + as StandardSchedulerSettings; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static StandardSchedulerSettings create() => StandardSchedulerSettings._(); StandardSchedulerSettings createEmptyInstance() => create(); @@ -1798,6 +1994,7 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static StandardSchedulerSettings? _defaultInstance; + /// Target CPU utilization ratio to maintain when scaling. @$pb.TagNumber(1) $core.double get targetCpuUtilization => $_getN(0); @$pb.TagNumber(1) @@ -1810,6 +2007,7 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTargetCpuUtilization() => clearField(1); + /// Target throughput utilization ratio to maintain when scaling @$pb.TagNumber(2) $core.double get targetThroughputUtilization => $_getN(1); @$pb.TagNumber(2) @@ -1822,6 +2020,8 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearTargetThroughputUtilization() => clearField(2); + /// Minimum number of instances to run for this version. Set to zero to disable + /// `min_instances` configuration. @$pb.TagNumber(3) $core.int get minInstances => $_getIZ(2); @$pb.TagNumber(3) @@ -1834,6 +2034,8 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearMinInstances() => clearField(3); + /// Maximum number of instances to run for this version. Set to zero to disable + /// `max_instances` configuration. @$pb.TagNumber(4) $core.int get maxInstances => $_getIZ(3); @$pb.TagNumber(4) @@ -1847,40 +2049,9 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { void clearMaxInstances() => clearField(4); } +/// Extra network settings. +/// Only applicable in the App Engine flexible environment. class Network extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Network', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'forwardedPorts') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'instanceTag') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subnetworkName') - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sessionAffinity') - ..hasRequiredFields = false; - - Network._() : super(); factory Network({ $core.Iterable<$core.String>? forwardedPorts, $core.String? instanceTag, @@ -1888,30 +2059,44 @@ class Network extends $pb.GeneratedMessage { $core.String? subnetworkName, $core.bool? sessionAffinity, }) { - final _result = create(); + final $result = create(); if (forwardedPorts != null) { - _result.forwardedPorts.addAll(forwardedPorts); + $result.forwardedPorts.addAll(forwardedPorts); } if (instanceTag != null) { - _result.instanceTag = instanceTag; + $result.instanceTag = instanceTag; } if (name != null) { - _result.name = name; + $result.name = name; } if (subnetworkName != null) { - _result.subnetworkName = subnetworkName; + $result.subnetworkName = subnetworkName; } if (sessionAffinity != null) { - _result.sessionAffinity = sessionAffinity; + $result.sessionAffinity = sessionAffinity; } - return _result; + return $result; } + Network._() : super(); factory Network.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Network.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Network', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'forwardedPorts') + ..aOS(2, _omitFieldNames ? '' : 'instanceTag') + ..aOS(3, _omitFieldNames ? '' : 'name') + ..aOS(4, _omitFieldNames ? '' : 'subnetworkName') + ..aOB(5, _omitFieldNames ? '' : 'sessionAffinity') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1920,9 +2105,10 @@ class Network extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Network copyWith(void Function(Network) updates) => - super.copyWith((message) => updates(message as Network)) - as Network; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Network)) as Network; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Network create() => Network._(); Network createEmptyInstance() => create(); @@ -1932,9 +2118,14 @@ class Network extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Network? _defaultInstance; + /// List of ports, or port pairs, to forward from the virtual machine to the + /// application container. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(1) $core.List<$core.String> get forwardedPorts => $_getList(0); + /// Tag to apply to the instance during creation. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(2) $core.String get instanceTag => $_getSZ(1); @$pb.TagNumber(2) @@ -1947,6 +2138,10 @@ class Network extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearInstanceTag() => clearField(2); + /// Google Compute Engine network where the virtual machines are created. + /// Specify the short name, not the resource path. + /// + /// Defaults to `default`. @$pb.TagNumber(3) $core.String get name => $_getSZ(2); @$pb.TagNumber(3) @@ -1959,6 +2154,24 @@ class Network extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearName() => clearField(3); + /// Google Cloud Platform sub-network where the virtual machines are created. + /// Specify the short name, not the resource path. + /// + /// If a subnetwork name is specified, a network name will also be required + /// unless it is for the default network. + /// + /// * If the network that the instance is being created in is a Legacy network, + /// then the IP address is allocated from the IPv4Range. + /// * If the network that the instance is being created in is an auto Subnet + /// Mode Network, then only network name should be specified (not the + /// subnetwork_name) and the IP address is created from the IPCidrRange of the + /// subnetwork that exists in that zone for that network. + /// * If the network that the instance is being created in is a custom Subnet + /// Mode Network, then the subnetwork_name must be specified and the + /// IP address is created from the IPCidrRange of the subnetwork. + /// + /// If specified, the subnetwork must exist in the same region as the + /// App Engine flexible environment application. @$pb.TagNumber(4) $core.String get subnetworkName => $_getSZ(3); @$pb.TagNumber(4) @@ -1971,6 +2184,8 @@ class Network extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearSubnetworkName() => clearField(4); + /// Enable session affinity. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(5) $core.bool get sessionAffinity => $_getBF(4); @$pb.TagNumber(5) @@ -1984,58 +2199,44 @@ class Network extends $pb.GeneratedMessage { void clearSessionAffinity() => clearField(5); } +/// Volumes mounted within the app container. +/// Only applicable in the App Engine flexible environment. class Volume extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Volume', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'volumeType') - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sizeGb', - $pb.PbFieldType.OD) - ..hasRequiredFields = false; - - Volume._() : super(); factory Volume({ $core.String? name, $core.String? volumeType, $core.double? sizeGb, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (volumeType != null) { - _result.volumeType = volumeType; + $result.volumeType = volumeType; } if (sizeGb != null) { - _result.sizeGb = sizeGb; + $result.sizeGb = sizeGb; } - return _result; + return $result; } + Volume._() : super(); factory Volume.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Volume.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Volume', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'volumeType') + ..a<$core.double>(3, _omitFieldNames ? '' : 'sizeGb', $pb.PbFieldType.OD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2044,9 +2245,10 @@ class Volume extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Volume copyWith(void Function(Volume) updates) => - super.copyWith((message) => updates(message as Volume)) - as Volume; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Volume)) as Volume; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Volume create() => Volume._(); Volume createEmptyInstance() => create(); @@ -2056,6 +2258,7 @@ class Volume extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Volume? _defaultInstance; + /// Unique name for the volume. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2068,6 +2271,7 @@ class Volume extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Underlying volume type, e.g. 'tmpfs'. @$pb.TagNumber(2) $core.String get volumeType => $_getSZ(1); @$pb.TagNumber(2) @@ -2080,6 +2284,7 @@ class Volume extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearVolumeType() => clearField(2); + /// Volume size in gigabytes. @$pb.TagNumber(3) $core.double get sizeGb => $_getN(2); @$pb.TagNumber(3) @@ -2093,37 +2298,8 @@ class Volume extends $pb.GeneratedMessage { void clearSizeGb() => clearField(3); } +/// Machine resources for a version. class Resources extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Resources', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..a<$core.double>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cpu', - $pb.PbFieldType.OD) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'diskGb', - $pb.PbFieldType.OD) - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'memoryGb', - $pb.PbFieldType.OD) - ..pc(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'volumes', $pb.PbFieldType.PM, subBuilder: Volume.create) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'kmsKeyReference') - ..hasRequiredFields = false; - - Resources._() : super(); factory Resources({ $core.double? cpu, $core.double? diskGb, @@ -2131,30 +2307,45 @@ class Resources extends $pb.GeneratedMessage { $core.Iterable? volumes, $core.String? kmsKeyReference, }) { - final _result = create(); + final $result = create(); if (cpu != null) { - _result.cpu = cpu; + $result.cpu = cpu; } if (diskGb != null) { - _result.diskGb = diskGb; + $result.diskGb = diskGb; } if (memoryGb != null) { - _result.memoryGb = memoryGb; + $result.memoryGb = memoryGb; } if (volumes != null) { - _result.volumes.addAll(volumes); + $result.volumes.addAll(volumes); } if (kmsKeyReference != null) { - _result.kmsKeyReference = kmsKeyReference; + $result.kmsKeyReference = kmsKeyReference; } - return _result; + return $result; } + Resources._() : super(); factory Resources.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Resources.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Resources', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..a<$core.double>(1, _omitFieldNames ? '' : 'cpu', $pb.PbFieldType.OD) + ..a<$core.double>(2, _omitFieldNames ? '' : 'diskGb', $pb.PbFieldType.OD) + ..a<$core.double>(3, _omitFieldNames ? '' : 'memoryGb', $pb.PbFieldType.OD) + ..pc(4, _omitFieldNames ? '' : 'volumes', $pb.PbFieldType.PM, + subBuilder: Volume.create) + ..aOS(5, _omitFieldNames ? '' : 'kmsKeyReference') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2163,9 +2354,10 @@ class Resources extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Resources copyWith(void Function(Resources) updates) => - super.copyWith((message) => updates(message as Resources)) - as Resources; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Resources)) as Resources; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Resources create() => Resources._(); Resources createEmptyInstance() => create(); @@ -2175,6 +2367,7 @@ class Resources extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Resources? _defaultInstance; + /// Number of CPU cores needed. @$pb.TagNumber(1) $core.double get cpu => $_getN(0); @$pb.TagNumber(1) @@ -2187,6 +2380,7 @@ class Resources extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCpu() => clearField(1); + /// Disk size (GB) needed. @$pb.TagNumber(2) $core.double get diskGb => $_getN(1); @$pb.TagNumber(2) @@ -2199,6 +2393,7 @@ class Resources extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDiskGb() => clearField(2); + /// Memory (GB) needed. @$pb.TagNumber(3) $core.double get memoryGb => $_getN(2); @$pb.TagNumber(3) @@ -2211,9 +2406,12 @@ class Resources extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearMemoryGb() => clearField(3); + /// User specified volumes. @$pb.TagNumber(4) $core.List get volumes => $_getList(3); + /// The name of the encryption key that is stored in Google Cloud KMS. + /// Only should be used by Cloud Composer to encrypt the vm disk @$pb.TagNumber(5) $core.String get kmsKeyReference => $_getSZ(4); @$pb.TagNumber(5) @@ -2227,39 +2425,43 @@ class Resources extends $pb.GeneratedMessage { void clearKmsKeyReference() => clearField(5); } +/// VPC access connector specification. class VpcAccessConnector extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'VpcAccessConnector', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - VpcAccessConnector._() : super(); factory VpcAccessConnector({ $core.String? name, + VpcAccessConnector_EgressSetting? egressSetting, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + if (egressSetting != null) { + $result.egressSetting = egressSetting; + } + return $result; } + VpcAccessConnector._() : super(); factory VpcAccessConnector.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory VpcAccessConnector.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'VpcAccessConnector', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e( + 2, _omitFieldNames ? '' : 'egressSetting', $pb.PbFieldType.OE, + defaultOrMaker: + VpcAccessConnector_EgressSetting.EGRESS_SETTING_UNSPECIFIED, + valueOf: VpcAccessConnector_EgressSetting.valueOf, + enumValues: VpcAccessConnector_EgressSetting.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2269,8 +2471,10 @@ class VpcAccessConnector extends $pb.GeneratedMessage { 'Will be removed in next major version') VpcAccessConnector copyWith(void Function(VpcAccessConnector) updates) => super.copyWith((message) => updates(message as VpcAccessConnector)) - as VpcAccessConnector; // ignore: deprecated_member_use + as VpcAccessConnector; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static VpcAccessConnector create() => VpcAccessConnector._(); VpcAccessConnector createEmptyInstance() => create(); @@ -2281,6 +2485,8 @@ class VpcAccessConnector extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static VpcAccessConnector? _defaultInstance; + /// Full Serverless VPC Access Connector name e.g. + /// /projects/my-project/locations/us-central1/connectors/c1. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2292,49 +2498,57 @@ class VpcAccessConnector extends $pb.GeneratedMessage { $core.bool hasName() => $_has(0); @$pb.TagNumber(1) void clearName() => clearField(1); + + /// The egress setting for the connector, controlling what traffic is diverted + /// through it. + @$pb.TagNumber(2) + VpcAccessConnector_EgressSetting get egressSetting => $_getN(1); + @$pb.TagNumber(2) + set egressSetting(VpcAccessConnector_EgressSetting v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasEgressSetting() => $_has(1); + @$pb.TagNumber(2) + void clearEgressSetting() => clearField(2); } enum Entrypoint_Command { shell, notSet } +/// The entrypoint for the application. class Entrypoint extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Entrypoint_Command> - _Entrypoint_CommandByTag = { - 1: Entrypoint_Command.shell, - 0: Entrypoint_Command.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Entrypoint', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1'), - createEmptyInstance: create) - ..oo(0, [1]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'shell') - ..hasRequiredFields = false; - - Entrypoint._() : super(); factory Entrypoint({ $core.String? shell, }) { - final _result = create(); + final $result = create(); if (shell != null) { - _result.shell = shell; + $result.shell = shell; } - return _result; + return $result; } + Entrypoint._() : super(); factory Entrypoint.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Entrypoint.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Entrypoint_Command> + _Entrypoint_CommandByTag = { + 1: Entrypoint_Command.shell, + 0: Entrypoint_Command.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Entrypoint', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.appengine.v1'), + createEmptyInstance: create) + ..oo(0, [1]) + ..aOS(1, _omitFieldNames ? '' : 'shell') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2343,9 +2557,10 @@ class Entrypoint extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Entrypoint copyWith(void Function(Entrypoint) updates) => - super.copyWith((message) => updates(message as Entrypoint)) - as Entrypoint; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Entrypoint)) as Entrypoint; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Entrypoint create() => Entrypoint._(); Entrypoint createEmptyInstance() => create(); @@ -2359,6 +2574,7 @@ class Entrypoint extends $pb.GeneratedMessage { _Entrypoint_CommandByTag[$_whichOneof(0)]!; void clearCommand() => clearField($_whichOneof(0)); + /// The format should be a shell command that can be fed to `bash -c`. @$pb.TagNumber(1) $core.String get shell => $_getSZ(0); @$pb.TagNumber(1) @@ -2371,3 +2587,7 @@ class Entrypoint extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearShell() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pbenum.dart index f8756b20..1d1cd5d2 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pbenum.dart @@ -1,67 +1,45 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/version.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Available inbound services. class InboundServiceType extends $pb.ProtobufEnum { static const InboundServiceType INBOUND_SERVICE_UNSPECIFIED = InboundServiceType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_UNSPECIFIED'); - static const InboundServiceType INBOUND_SERVICE_MAIL = InboundServiceType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_MAIL'); + 0, _omitEnumNames ? '' : 'INBOUND_SERVICE_UNSPECIFIED'); + static const InboundServiceType INBOUND_SERVICE_MAIL = + InboundServiceType._(1, _omitEnumNames ? '' : 'INBOUND_SERVICE_MAIL'); static const InboundServiceType INBOUND_SERVICE_MAIL_BOUNCE = InboundServiceType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_MAIL_BOUNCE'); + 2, _omitEnumNames ? '' : 'INBOUND_SERVICE_MAIL_BOUNCE'); static const InboundServiceType INBOUND_SERVICE_XMPP_ERROR = InboundServiceType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_XMPP_ERROR'); + 3, _omitEnumNames ? '' : 'INBOUND_SERVICE_XMPP_ERROR'); static const InboundServiceType INBOUND_SERVICE_XMPP_MESSAGE = InboundServiceType._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_XMPP_MESSAGE'); + 4, _omitEnumNames ? '' : 'INBOUND_SERVICE_XMPP_MESSAGE'); static const InboundServiceType INBOUND_SERVICE_XMPP_SUBSCRIBE = InboundServiceType._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_XMPP_SUBSCRIBE'); + 5, _omitEnumNames ? '' : 'INBOUND_SERVICE_XMPP_SUBSCRIBE'); static const InboundServiceType INBOUND_SERVICE_XMPP_PRESENCE = InboundServiceType._( - 6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_XMPP_PRESENCE'); + 6, _omitEnumNames ? '' : 'INBOUND_SERVICE_XMPP_PRESENCE'); static const InboundServiceType INBOUND_SERVICE_CHANNEL_PRESENCE = InboundServiceType._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_CHANNEL_PRESENCE'); - static const InboundServiceType INBOUND_SERVICE_WARMUP = InboundServiceType._( - 9, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_WARMUP'); + 7, _omitEnumNames ? '' : 'INBOUND_SERVICE_CHANNEL_PRESENCE'); + static const InboundServiceType INBOUND_SERVICE_WARMUP = + InboundServiceType._(9, _omitEnumNames ? '' : 'INBOUND_SERVICE_WARMUP'); static const $core.List values = [ INBOUND_SERVICE_UNSPECIFIED, @@ -82,16 +60,14 @@ class InboundServiceType extends $pb.ProtobufEnum { const InboundServiceType._($core.int v, $core.String n) : super(v, n); } +/// Run states of a version. class ServingStatus extends $pb.ProtobufEnum { - static const ServingStatus SERVING_STATUS_UNSPECIFIED = ServingStatus._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SERVING_STATUS_UNSPECIFIED'); - static const ServingStatus SERVING = ServingStatus._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SERVING'); - static const ServingStatus STOPPED = ServingStatus._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'STOPPED'); + static const ServingStatus SERVING_STATUS_UNSPECIFIED = + ServingStatus._(0, _omitEnumNames ? '' : 'SERVING_STATUS_UNSPECIFIED'); + static const ServingStatus SERVING = + ServingStatus._(1, _omitEnumNames ? '' : 'SERVING'); + static const ServingStatus STOPPED = + ServingStatus._(2, _omitEnumNames ? '' : 'STOPPED'); static const $core.List values = [ SERVING_STATUS_UNSPECIFIED, @@ -106,25 +82,15 @@ class ServingStatus extends $pb.ProtobufEnum { const ServingStatus._($core.int v, $core.String n) : super(v, n); } +/// Available rollout strategies. class EndpointsApiService_RolloutStrategy extends $pb.ProtobufEnum { static const EndpointsApiService_RolloutStrategy UNSPECIFIED_ROLLOUT_STRATEGY = EndpointsApiService_RolloutStrategy._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED_ROLLOUT_STRATEGY'); + 0, _omitEnumNames ? '' : 'UNSPECIFIED_ROLLOUT_STRATEGY'); static const EndpointsApiService_RolloutStrategy FIXED = - EndpointsApiService_RolloutStrategy._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FIXED'); + EndpointsApiService_RolloutStrategy._(1, _omitEnumNames ? '' : 'FIXED'); static const EndpointsApiService_RolloutStrategy MANAGED = - EndpointsApiService_RolloutStrategy._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MANAGED'); + EndpointsApiService_RolloutStrategy._(2, _omitEnumNames ? '' : 'MANAGED'); static const $core.List values = [ @@ -141,3 +107,36 @@ class EndpointsApiService_RolloutStrategy extends $pb.ProtobufEnum { const EndpointsApiService_RolloutStrategy._($core.int v, $core.String n) : super(v, n); } + +/// Available egress settings. +/// +/// This controls what traffic is diverted through the VPC Access Connector +/// resource. By default PRIVATE_IP_RANGES will be used. +class VpcAccessConnector_EgressSetting extends $pb.ProtobufEnum { + static const VpcAccessConnector_EgressSetting EGRESS_SETTING_UNSPECIFIED = + VpcAccessConnector_EgressSetting._( + 0, _omitEnumNames ? '' : 'EGRESS_SETTING_UNSPECIFIED'); + static const VpcAccessConnector_EgressSetting ALL_TRAFFIC = + VpcAccessConnector_EgressSetting._( + 1, _omitEnumNames ? '' : 'ALL_TRAFFIC'); + static const VpcAccessConnector_EgressSetting PRIVATE_IP_RANGES = + VpcAccessConnector_EgressSetting._( + 2, _omitEnumNames ? '' : 'PRIVATE_IP_RANGES'); + + static const $core.List values = + [ + EGRESS_SETTING_UNSPECIFIED, + ALL_TRAFFIC, + PRIVATE_IP_RANGES, + ]; + + static final $core.Map<$core.int, VpcAccessConnector_EgressSetting> _byValue = + $pb.ProtobufEnum.initByValue(values); + static VpcAccessConnector_EgressSetting? valueOf($core.int value) => + _byValue[value]; + + const VpcAccessConnector_EgressSetting._($core.int v, $core.String n) + : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pbjson.dart index 0114aca5..1f14fc41 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1/version.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1/version.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 inboundServiceTypeDescriptor instead') @@ -27,7 +31,13 @@ const InboundServiceType$json = { /// Descriptor for `InboundServiceType`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List inboundServiceTypeDescriptor = $convert.base64Decode( - 'ChJJbmJvdW5kU2VydmljZVR5cGUSHwobSU5CT1VORF9TRVJWSUNFX1VOU1BFQ0lGSUVEEAASGAoUSU5CT1VORF9TRVJWSUNFX01BSUwQARIfChtJTkJPVU5EX1NFUlZJQ0VfTUFJTF9CT1VOQ0UQAhIeChpJTkJPVU5EX1NFUlZJQ0VfWE1QUF9FUlJPUhADEiAKHElOQk9VTkRfU0VSVklDRV9YTVBQX01FU1NBR0UQBBIiCh5JTkJPVU5EX1NFUlZJQ0VfWE1QUF9TVUJTQ1JJQkUQBRIhCh1JTkJPVU5EX1NFUlZJQ0VfWE1QUF9QUkVTRU5DRRAGEiQKIElOQk9VTkRfU0VSVklDRV9DSEFOTkVMX1BSRVNFTkNFEAcSGgoWSU5CT1VORF9TRVJWSUNFX1dBUk1VUBAJ'); + 'ChJJbmJvdW5kU2VydmljZVR5cGUSHwobSU5CT1VORF9TRVJWSUNFX1VOU1BFQ0lGSUVEEAASGA' + 'oUSU5CT1VORF9TRVJWSUNFX01BSUwQARIfChtJTkJPVU5EX1NFUlZJQ0VfTUFJTF9CT1VOQ0UQ' + 'AhIeChpJTkJPVU5EX1NFUlZJQ0VfWE1QUF9FUlJPUhADEiAKHElOQk9VTkRfU0VSVklDRV9YTV' + 'BQX01FU1NBR0UQBBIiCh5JTkJPVU5EX1NFUlZJQ0VfWE1QUF9TVUJTQ1JJQkUQBRIhCh1JTkJP' + 'VU5EX1NFUlZJQ0VfWE1QUF9QUkVTRU5DRRAGEiQKIElOQk9VTkRfU0VSVklDRV9DSEFOTkVMX1' + 'BSRVNFTkNFEAcSGgoWSU5CT1VORF9TRVJWSUNFX1dBUk1VUBAJ'); + @$core.Deprecated('Use servingStatusDescriptor instead') const ServingStatus$json = { '1': 'ServingStatus', @@ -40,7 +50,9 @@ const ServingStatus$json = { /// Descriptor for `ServingStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List servingStatusDescriptor = $convert.base64Decode( - 'Cg1TZXJ2aW5nU3RhdHVzEh4KGlNFUlZJTkdfU1RBVFVTX1VOU1BFQ0lGSUVEEAASCwoHU0VSVklORxABEgsKB1NUT1BQRUQQAg=='); + 'Cg1TZXJ2aW5nU3RhdHVzEh4KGlNFUlZJTkdfU1RBVFVTX1VOU1BFQ0lGSUVEEAASCwoHU0VSVk' + 'lORxABEgsKB1NUT1BQRUQQAg=='); + @$core.Deprecated('Use versionDescriptor instead') const Version$json = { '1': 'Version', @@ -104,6 +116,7 @@ const Version$json = { {'1': 'runtime_channel', '3': 117, '4': 1, '5': 9, '10': 'runtimeChannel'}, {'1': 'threadsafe', '3': 11, '4': 1, '5': 8, '10': 'threadsafe'}, {'1': 'vm', '3': 12, '4': 1, '5': 8, '10': 'vm'}, + {'1': 'app_engine_apis', '3': 128, '4': 1, '5': 8, '10': 'appEngineApis'}, { '1': 'beta_settings', '3': 13, @@ -309,7 +322,53 @@ const Version_BuildEnvVariablesEntry$json = { /// Descriptor for `Version`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List versionDescriptor = $convert.base64Decode( - 'CgdWZXJzaW9uEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkElQKEWF1dG9tYXRpY19zY2FsaW5nGAMgASgLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MS5BdXRvbWF0aWNTY2FsaW5nSABSEGF1dG9tYXRpY1NjYWxpbmcSSAoNYmFzaWNfc2NhbGluZxgEIAEoCzIhLmdvb2dsZS5hcHBlbmdpbmUudjEuQmFzaWNTY2FsaW5nSABSDGJhc2ljU2NhbGluZxJLCg5tYW51YWxfc2NhbGluZxgFIAEoCzIiLmdvb2dsZS5hcHBlbmdpbmUudjEuTWFudWFsU2NhbGluZ0gAUg1tYW51YWxTY2FsaW5nElIKEGluYm91bmRfc2VydmljZXMYBiADKA4yJy5nb29nbGUuYXBwZW5naW5lLnYxLkluYm91bmRTZXJ2aWNlVHlwZVIPaW5ib3VuZFNlcnZpY2VzEiUKDmluc3RhbmNlX2NsYXNzGAcgASgJUg1pbnN0YW5jZUNsYXNzEjYKB25ldHdvcmsYCCABKAsyHC5nb29nbGUuYXBwZW5naW5lLnYxLk5ldHdvcmtSB25ldHdvcmsSFAoFem9uZXMYdiADKAlSBXpvbmVzEjwKCXJlc291cmNlcxgJIAEoCzIeLmdvb2dsZS5hcHBlbmdpbmUudjEuUmVzb3VyY2VzUglyZXNvdXJjZXMSGAoHcnVudGltZRgKIAEoCVIHcnVudGltZRInCg9ydW50aW1lX2NoYW5uZWwYdSABKAlSDnJ1bnRpbWVDaGFubmVsEh4KCnRocmVhZHNhZmUYCyABKAhSCnRocmVhZHNhZmUSDgoCdm0YDCABKAhSAnZtElMKDWJldGFfc2V0dGluZ3MYDSADKAsyLi5nb29nbGUuYXBwZW5naW5lLnYxLlZlcnNpb24uQmV0YVNldHRpbmdzRW50cnlSDGJldGFTZXR0aW5ncxIQCgNlbnYYDiABKAlSA2VudhJJCg5zZXJ2aW5nX3N0YXR1cxgPIAEoDjIiLmdvb2dsZS5hcHBlbmdpbmUudjEuU2VydmluZ1N0YXR1c1INc2VydmluZ1N0YXR1cxIdCgpjcmVhdGVkX2J5GBAgASgJUgljcmVhdGVkQnkSOwoLY3JlYXRlX3RpbWUYESABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgpjcmVhdGVUaW1lEigKEGRpc2tfdXNhZ2VfYnl0ZXMYEiABKANSDmRpc2tVc2FnZUJ5dGVzEi4KE3J1bnRpbWVfYXBpX3ZlcnNpb24YFSABKAlSEXJ1bnRpbWVBcGlWZXJzaW9uEj8KHHJ1bnRpbWVfbWFpbl9leGVjdXRhYmxlX3BhdGgYFiABKAlSGXJ1bnRpbWVNYWluRXhlY3V0YWJsZVBhdGgSJwoPc2VydmljZV9hY2NvdW50GH8gASgJUg5zZXJ2aWNlQWNjb3VudBI3CghoYW5kbGVycxhkIAMoCzIbLmdvb2dsZS5hcHBlbmdpbmUudjEuVXJsTWFwUghoYW5kbGVycxJICg5lcnJvcl9oYW5kbGVycxhlIAMoCzIhLmdvb2dsZS5hcHBlbmdpbmUudjEuRXJyb3JIYW5kbGVyUg1lcnJvckhhbmRsZXJzEjoKCWxpYnJhcmllcxhmIAMoCzIcLmdvb2dsZS5hcHBlbmdpbmUudjEuTGlicmFyeVIJbGlicmFyaWVzEkQKCmFwaV9jb25maWcYZyABKAsyJS5nb29nbGUuYXBwZW5naW5lLnYxLkFwaUNvbmZpZ0hhbmRsZXJSCWFwaUNvbmZpZxJTCg1lbnZfdmFyaWFibGVzGGggAygLMi4uZ29vZ2xlLmFwcGVuZ2luZS52MS5WZXJzaW9uLkVudlZhcmlhYmxlc0VudHJ5UgxlbnZWYXJpYWJsZXMSYwoTYnVpbGRfZW52X3ZhcmlhYmxlcxh9IAMoCzIzLmdvb2dsZS5hcHBlbmdpbmUudjEuVmVyc2lvbi5CdWlsZEVudlZhcmlhYmxlc0VudHJ5UhFidWlsZEVudlZhcmlhYmxlcxJIChJkZWZhdWx0X2V4cGlyYXRpb24YaSABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SEWRlZmF1bHRFeHBpcmF0aW9uEkMKDGhlYWx0aF9jaGVjaxhqIAEoCzIgLmdvb2dsZS5hcHBlbmdpbmUudjEuSGVhbHRoQ2hlY2tSC2hlYWx0aENoZWNrEkwKD3JlYWRpbmVzc19jaGVjaxhwIAEoCzIjLmdvb2dsZS5hcHBlbmdpbmUudjEuUmVhZGluZXNzQ2hlY2tSDnJlYWRpbmVzc0NoZWNrEkkKDmxpdmVuZXNzX2NoZWNrGHEgASgLMiIuZ29vZ2xlLmFwcGVuZ2luZS52MS5MaXZlbmVzc0NoZWNrUg1saXZlbmVzc0NoZWNrEi4KE25vYnVpbGRfZmlsZXNfcmVnZXgYayABKAlSEW5vYnVpbGRGaWxlc1JlZ2V4Ej8KCmRlcGxveW1lbnQYbCABKAsyHy5nb29nbGUuYXBwZW5naW5lLnYxLkRlcGxveW1lbnRSCmRlcGxveW1lbnQSHwoLdmVyc2lvbl91cmwYbSABKAlSCnZlcnNpb25VcmwSXAoVZW5kcG9pbnRzX2FwaV9zZXJ2aWNlGG4gASgLMiguZ29vZ2xlLmFwcGVuZ2luZS52MS5FbmRwb2ludHNBcGlTZXJ2aWNlUhNlbmRwb2ludHNBcGlTZXJ2aWNlEj8KCmVudHJ5cG9pbnQYeiABKAsyHy5nb29nbGUuYXBwZW5naW5lLnYxLkVudHJ5cG9pbnRSCmVudHJ5cG9pbnQSWQoUdnBjX2FjY2Vzc19jb25uZWN0b3IYeSABKAsyJy5nb29nbGUuYXBwZW5naW5lLnYxLlZwY0FjY2Vzc0Nvbm5lY3RvclISdnBjQWNjZXNzQ29ubmVjdG9yGj8KEUJldGFTZXR0aW5nc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAEaPwoRRW52VmFyaWFibGVzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4ARpEChZCdWlsZEVudlZhcmlhYmxlc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAFCCQoHc2NhbGluZw=='); + 'CgdWZXJzaW9uEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkElQKEWF1dG9tYX' + 'RpY19zY2FsaW5nGAMgASgLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MS5BdXRvbWF0aWNTY2FsaW5n' + 'SABSEGF1dG9tYXRpY1NjYWxpbmcSSAoNYmFzaWNfc2NhbGluZxgEIAEoCzIhLmdvb2dsZS5hcH' + 'BlbmdpbmUudjEuQmFzaWNTY2FsaW5nSABSDGJhc2ljU2NhbGluZxJLCg5tYW51YWxfc2NhbGlu' + 'ZxgFIAEoCzIiLmdvb2dsZS5hcHBlbmdpbmUudjEuTWFudWFsU2NhbGluZ0gAUg1tYW51YWxTY2' + 'FsaW5nElIKEGluYm91bmRfc2VydmljZXMYBiADKA4yJy5nb29nbGUuYXBwZW5naW5lLnYxLklu' + 'Ym91bmRTZXJ2aWNlVHlwZVIPaW5ib3VuZFNlcnZpY2VzEiUKDmluc3RhbmNlX2NsYXNzGAcgAS' + 'gJUg1pbnN0YW5jZUNsYXNzEjYKB25ldHdvcmsYCCABKAsyHC5nb29nbGUuYXBwZW5naW5lLnYx' + 'Lk5ldHdvcmtSB25ldHdvcmsSFAoFem9uZXMYdiADKAlSBXpvbmVzEjwKCXJlc291cmNlcxgJIA' + 'EoCzIeLmdvb2dsZS5hcHBlbmdpbmUudjEuUmVzb3VyY2VzUglyZXNvdXJjZXMSGAoHcnVudGlt' + 'ZRgKIAEoCVIHcnVudGltZRInCg9ydW50aW1lX2NoYW5uZWwYdSABKAlSDnJ1bnRpbWVDaGFubm' + 'VsEh4KCnRocmVhZHNhZmUYCyABKAhSCnRocmVhZHNhZmUSDgoCdm0YDCABKAhSAnZtEicKD2Fw' + 'cF9lbmdpbmVfYXBpcxiAASABKAhSDWFwcEVuZ2luZUFwaXMSUwoNYmV0YV9zZXR0aW5ncxgNIA' + 'MoCzIuLmdvb2dsZS5hcHBlbmdpbmUudjEuVmVyc2lvbi5CZXRhU2V0dGluZ3NFbnRyeVIMYmV0' + 'YVNldHRpbmdzEhAKA2VudhgOIAEoCVIDZW52EkkKDnNlcnZpbmdfc3RhdHVzGA8gASgOMiIuZ2' + '9vZ2xlLmFwcGVuZ2luZS52MS5TZXJ2aW5nU3RhdHVzUg1zZXJ2aW5nU3RhdHVzEh0KCmNyZWF0' + 'ZWRfYnkYECABKAlSCWNyZWF0ZWRCeRI7CgtjcmVhdGVfdGltZRgRIAEoCzIaLmdvb2dsZS5wcm' + '90b2J1Zi5UaW1lc3RhbXBSCmNyZWF0ZVRpbWUSKAoQZGlza191c2FnZV9ieXRlcxgSIAEoA1IO' + 'ZGlza1VzYWdlQnl0ZXMSLgoTcnVudGltZV9hcGlfdmVyc2lvbhgVIAEoCVIRcnVudGltZUFwaV' + 'ZlcnNpb24SPwoccnVudGltZV9tYWluX2V4ZWN1dGFibGVfcGF0aBgWIAEoCVIZcnVudGltZU1h' + 'aW5FeGVjdXRhYmxlUGF0aBInCg9zZXJ2aWNlX2FjY291bnQYfyABKAlSDnNlcnZpY2VBY2NvdW' + '50EjcKCGhhbmRsZXJzGGQgAygLMhsuZ29vZ2xlLmFwcGVuZ2luZS52MS5VcmxNYXBSCGhhbmRs' + 'ZXJzEkgKDmVycm9yX2hhbmRsZXJzGGUgAygLMiEuZ29vZ2xlLmFwcGVuZ2luZS52MS5FcnJvck' + 'hhbmRsZXJSDWVycm9ySGFuZGxlcnMSOgoJbGlicmFyaWVzGGYgAygLMhwuZ29vZ2xlLmFwcGVu' + 'Z2luZS52MS5MaWJyYXJ5UglsaWJyYXJpZXMSRAoKYXBpX2NvbmZpZxhnIAEoCzIlLmdvb2dsZS' + '5hcHBlbmdpbmUudjEuQXBpQ29uZmlnSGFuZGxlclIJYXBpQ29uZmlnElMKDWVudl92YXJpYWJs' + 'ZXMYaCADKAsyLi5nb29nbGUuYXBwZW5naW5lLnYxLlZlcnNpb24uRW52VmFyaWFibGVzRW50cn' + 'lSDGVudlZhcmlhYmxlcxJjChNidWlsZF9lbnZfdmFyaWFibGVzGH0gAygLMjMuZ29vZ2xlLmFw' + 'cGVuZ2luZS52MS5WZXJzaW9uLkJ1aWxkRW52VmFyaWFibGVzRW50cnlSEWJ1aWxkRW52VmFyaW' + 'FibGVzEkgKEmRlZmF1bHRfZXhwaXJhdGlvbhhpIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJh' + 'dGlvblIRZGVmYXVsdEV4cGlyYXRpb24SQwoMaGVhbHRoX2NoZWNrGGogASgLMiAuZ29vZ2xlLm' + 'FwcGVuZ2luZS52MS5IZWFsdGhDaGVja1ILaGVhbHRoQ2hlY2sSTAoPcmVhZGluZXNzX2NoZWNr' + 'GHAgASgLMiMuZ29vZ2xlLmFwcGVuZ2luZS52MS5SZWFkaW5lc3NDaGVja1IOcmVhZGluZXNzQ2' + 'hlY2sSSQoObGl2ZW5lc3NfY2hlY2sYcSABKAsyIi5nb29nbGUuYXBwZW5naW5lLnYxLkxpdmVu' + 'ZXNzQ2hlY2tSDWxpdmVuZXNzQ2hlY2sSLgoTbm9idWlsZF9maWxlc19yZWdleBhrIAEoCVIRbm' + '9idWlsZEZpbGVzUmVnZXgSPwoKZGVwbG95bWVudBhsIAEoCzIfLmdvb2dsZS5hcHBlbmdpbmUu' + 'djEuRGVwbG95bWVudFIKZGVwbG95bWVudBIfCgt2ZXJzaW9uX3VybBhtIAEoCVIKdmVyc2lvbl' + 'VybBJcChVlbmRwb2ludHNfYXBpX3NlcnZpY2UYbiABKAsyKC5nb29nbGUuYXBwZW5naW5lLnYx' + 'LkVuZHBvaW50c0FwaVNlcnZpY2VSE2VuZHBvaW50c0FwaVNlcnZpY2USPwoKZW50cnlwb2ludB' + 'h6IAEoCzIfLmdvb2dsZS5hcHBlbmdpbmUudjEuRW50cnlwb2ludFIKZW50cnlwb2ludBJZChR2' + 'cGNfYWNjZXNzX2Nvbm5lY3Rvchh5IAEoCzInLmdvb2dsZS5hcHBlbmdpbmUudjEuVnBjQWNjZX' + 'NzQ29ubmVjdG9yUhJ2cGNBY2Nlc3NDb25uZWN0b3IaPwoRQmV0YVNldHRpbmdzRW50cnkSEAoD' + 'a2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4ARo/ChFFbnZWYXJpYWJsZX' + 'NFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBGkQKFkJ1' + 'aWxkRW52VmFyaWFibGVzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBX' + 'ZhbHVlOgI4AUIJCgdzY2FsaW5n'); + @$core.Deprecated('Use endpointsApiServiceDescriptor instead') const EndpointsApiService$json = { '1': 'EndpointsApiService', @@ -347,7 +406,13 @@ const EndpointsApiService_RolloutStrategy$json = { /// Descriptor for `EndpointsApiService`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List endpointsApiServiceDescriptor = $convert.base64Decode( - 'ChNFbmRwb2ludHNBcGlTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSGwoJY29uZmlnX2lkGAIgASgJUghjb25maWdJZBJjChByb2xsb3V0X3N0cmF0ZWd5GAMgASgOMjguZ29vZ2xlLmFwcGVuZ2luZS52MS5FbmRwb2ludHNBcGlTZXJ2aWNlLlJvbGxvdXRTdHJhdGVneVIPcm9sbG91dFN0cmF0ZWd5EjQKFmRpc2FibGVfdHJhY2Vfc2FtcGxpbmcYBCABKAhSFGRpc2FibGVUcmFjZVNhbXBsaW5nIksKD1JvbGxvdXRTdHJhdGVneRIgChxVTlNQRUNJRklFRF9ST0xMT1VUX1NUUkFURUdZEAASCQoFRklYRUQQARILCgdNQU5BR0VEEAI='); + 'ChNFbmRwb2ludHNBcGlTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSGwoJY29uZmlnX2lkGA' + 'IgASgJUghjb25maWdJZBJjChByb2xsb3V0X3N0cmF0ZWd5GAMgASgOMjguZ29vZ2xlLmFwcGVu' + 'Z2luZS52MS5FbmRwb2ludHNBcGlTZXJ2aWNlLlJvbGxvdXRTdHJhdGVneVIPcm9sbG91dFN0cm' + 'F0ZWd5EjQKFmRpc2FibGVfdHJhY2Vfc2FtcGxpbmcYBCABKAhSFGRpc2FibGVUcmFjZVNhbXBs' + 'aW5nIksKD1JvbGxvdXRTdHJhdGVneRIgChxVTlNQRUNJRklFRF9ST0xMT1VUX1NUUkFURUdZEA' + 'ASCQoFRklYRUQQARILCgdNQU5BR0VEEAI='); + @$core.Deprecated('Use automaticScalingDescriptor instead') const AutomaticScaling$json = { '1': 'AutomaticScaling', @@ -456,7 +521,24 @@ const AutomaticScaling$json = { /// Descriptor for `AutomaticScaling`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List automaticScalingDescriptor = $convert.base64Decode( - 'ChBBdXRvbWF0aWNTY2FsaW5nEkMKEGNvb2xfZG93bl9wZXJpb2QYASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDmNvb2xEb3duUGVyaW9kEkwKD2NwdV91dGlsaXphdGlvbhgCIAEoCzIjLmdvb2dsZS5hcHBlbmdpbmUudjEuQ3B1VXRpbGl6YXRpb25SDmNwdVV0aWxpemF0aW9uEjYKF21heF9jb25jdXJyZW50X3JlcXVlc3RzGAMgASgFUhVtYXhDb25jdXJyZW50UmVxdWVzdHMSLAoSbWF4X2lkbGVfaW5zdGFuY2VzGAQgASgFUhBtYXhJZGxlSW5zdGFuY2VzEi4KE21heF90b3RhbF9pbnN0YW5jZXMYBSABKAVSEW1heFRvdGFsSW5zdGFuY2VzEkkKE21heF9wZW5kaW5nX2xhdGVuY3kYBiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SEW1heFBlbmRpbmdMYXRlbmN5EiwKEm1pbl9pZGxlX2luc3RhbmNlcxgHIAEoBVIQbWluSWRsZUluc3RhbmNlcxIuChNtaW5fdG90YWxfaW5zdGFuY2VzGAggASgFUhFtaW5Ub3RhbEluc3RhbmNlcxJJChNtaW5fcGVuZGluZ19sYXRlbmN5GAkgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhFtaW5QZW5kaW5nTGF0ZW5jeRJYChNyZXF1ZXN0X3V0aWxpemF0aW9uGAogASgLMicuZ29vZ2xlLmFwcGVuZ2luZS52MS5SZXF1ZXN0VXRpbGl6YXRpb25SEnJlcXVlc3RVdGlsaXphdGlvbhJPChBkaXNrX3V0aWxpemF0aW9uGAsgASgLMiQuZ29vZ2xlLmFwcGVuZ2luZS52MS5EaXNrVXRpbGl6YXRpb25SD2Rpc2tVdGlsaXphdGlvbhJYChNuZXR3b3JrX3V0aWxpemF0aW9uGAwgASgLMicuZ29vZ2xlLmFwcGVuZ2luZS52MS5OZXR3b3JrVXRpbGl6YXRpb25SEm5ldHdvcmtVdGlsaXphdGlvbhJuChtzdGFuZGFyZF9zY2hlZHVsZXJfc2V0dGluZ3MYFCABKAsyLi5nb29nbGUuYXBwZW5naW5lLnYxLlN0YW5kYXJkU2NoZWR1bGVyU2V0dGluZ3NSGXN0YW5kYXJkU2NoZWR1bGVyU2V0dGluZ3M='); + 'ChBBdXRvbWF0aWNTY2FsaW5nEkMKEGNvb2xfZG93bl9wZXJpb2QYASABKAsyGS5nb29nbGUucH' + 'JvdG9idWYuRHVyYXRpb25SDmNvb2xEb3duUGVyaW9kEkwKD2NwdV91dGlsaXphdGlvbhgCIAEo' + 'CzIjLmdvb2dsZS5hcHBlbmdpbmUudjEuQ3B1VXRpbGl6YXRpb25SDmNwdVV0aWxpemF0aW9uEj' + 'YKF21heF9jb25jdXJyZW50X3JlcXVlc3RzGAMgASgFUhVtYXhDb25jdXJyZW50UmVxdWVzdHMS' + 'LAoSbWF4X2lkbGVfaW5zdGFuY2VzGAQgASgFUhBtYXhJZGxlSW5zdGFuY2VzEi4KE21heF90b3' + 'RhbF9pbnN0YW5jZXMYBSABKAVSEW1heFRvdGFsSW5zdGFuY2VzEkkKE21heF9wZW5kaW5nX2xh' + 'dGVuY3kYBiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SEW1heFBlbmRpbmdMYXRlbm' + 'N5EiwKEm1pbl9pZGxlX2luc3RhbmNlcxgHIAEoBVIQbWluSWRsZUluc3RhbmNlcxIuChNtaW5f' + 'dG90YWxfaW5zdGFuY2VzGAggASgFUhFtaW5Ub3RhbEluc3RhbmNlcxJJChNtaW5fcGVuZGluZ1' + '9sYXRlbmN5GAkgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhFtaW5QZW5kaW5nTGF0' + 'ZW5jeRJYChNyZXF1ZXN0X3V0aWxpemF0aW9uGAogASgLMicuZ29vZ2xlLmFwcGVuZ2luZS52MS' + '5SZXF1ZXN0VXRpbGl6YXRpb25SEnJlcXVlc3RVdGlsaXphdGlvbhJPChBkaXNrX3V0aWxpemF0' + 'aW9uGAsgASgLMiQuZ29vZ2xlLmFwcGVuZ2luZS52MS5EaXNrVXRpbGl6YXRpb25SD2Rpc2tVdG' + 'lsaXphdGlvbhJYChNuZXR3b3JrX3V0aWxpemF0aW9uGAwgASgLMicuZ29vZ2xlLmFwcGVuZ2lu' + 'ZS52MS5OZXR3b3JrVXRpbGl6YXRpb25SEm5ldHdvcmtVdGlsaXphdGlvbhJuChtzdGFuZGFyZF' + '9zY2hlZHVsZXJfc2V0dGluZ3MYFCABKAsyLi5nb29nbGUuYXBwZW5naW5lLnYxLlN0YW5kYXJk' + 'U2NoZWR1bGVyU2V0dGluZ3NSGXN0YW5kYXJkU2NoZWR1bGVyU2V0dGluZ3M='); + @$core.Deprecated('Use basicScalingDescriptor instead') const BasicScaling$json = { '1': 'BasicScaling', @@ -475,7 +557,10 @@ const BasicScaling$json = { /// Descriptor for `BasicScaling`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List basicScalingDescriptor = $convert.base64Decode( - 'CgxCYXNpY1NjYWxpbmcSPAoMaWRsZV90aW1lb3V0GAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgtpZGxlVGltZW91dBIjCg1tYXhfaW5zdGFuY2VzGAIgASgFUgxtYXhJbnN0YW5jZXM='); + 'CgxCYXNpY1NjYWxpbmcSPAoMaWRsZV90aW1lb3V0GAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLk' + 'R1cmF0aW9uUgtpZGxlVGltZW91dBIjCg1tYXhfaW5zdGFuY2VzGAIgASgFUgxtYXhJbnN0YW5j' + 'ZXM='); + @$core.Deprecated('Use manualScalingDescriptor instead') const ManualScaling$json = { '1': 'ManualScaling', @@ -487,6 +572,7 @@ const ManualScaling$json = { /// Descriptor for `ManualScaling`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List manualScalingDescriptor = $convert.base64Decode( 'Cg1NYW51YWxTY2FsaW5nEhwKCWluc3RhbmNlcxgBIAEoBVIJaW5zdGFuY2Vz'); + @$core.Deprecated('Use cpuUtilizationDescriptor instead') const CpuUtilization$json = { '1': 'CpuUtilization', @@ -511,7 +597,10 @@ const CpuUtilization$json = { /// Descriptor for `CpuUtilization`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List cpuUtilizationDescriptor = $convert.base64Decode( - 'Cg5DcHVVdGlsaXphdGlvbhJVChlhZ2dyZWdhdGlvbl93aW5kb3dfbGVuZ3RoGAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhdhZ2dyZWdhdGlvbldpbmRvd0xlbmd0aBItChJ0YXJnZXRfdXRpbGl6YXRpb24YAiABKAFSEXRhcmdldFV0aWxpemF0aW9u'); + 'Cg5DcHVVdGlsaXphdGlvbhJVChlhZ2dyZWdhdGlvbl93aW5kb3dfbGVuZ3RoGAEgASgLMhkuZ2' + '9vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhdhZ2dyZWdhdGlvbldpbmRvd0xlbmd0aBItChJ0YXJn' + 'ZXRfdXRpbGl6YXRpb24YAiABKAFSEXRhcmdldFV0aWxpemF0aW9u'); + @$core.Deprecated('Use requestUtilizationDescriptor instead') const RequestUtilization$json = { '1': 'RequestUtilization', @@ -535,7 +624,10 @@ const RequestUtilization$json = { /// Descriptor for `RequestUtilization`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List requestUtilizationDescriptor = $convert.base64Decode( - 'ChJSZXF1ZXN0VXRpbGl6YXRpb24SRAofdGFyZ2V0X3JlcXVlc3RfY291bnRfcGVyX3NlY29uZBgBIAEoBVIbdGFyZ2V0UmVxdWVzdENvdW50UGVyU2Vjb25kEjwKGnRhcmdldF9jb25jdXJyZW50X3JlcXVlc3RzGAIgASgFUhh0YXJnZXRDb25jdXJyZW50UmVxdWVzdHM='); + 'ChJSZXF1ZXN0VXRpbGl6YXRpb24SRAofdGFyZ2V0X3JlcXVlc3RfY291bnRfcGVyX3NlY29uZB' + 'gBIAEoBVIbdGFyZ2V0UmVxdWVzdENvdW50UGVyU2Vjb25kEjwKGnRhcmdldF9jb25jdXJyZW50' + 'X3JlcXVlc3RzGAIgASgFUhh0YXJnZXRDb25jdXJyZW50UmVxdWVzdHM='); + @$core.Deprecated('Use diskUtilizationDescriptor instead') const DiskUtilization$json = { '1': 'DiskUtilization', @@ -573,7 +665,12 @@ const DiskUtilization$json = { /// Descriptor for `DiskUtilization`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List diskUtilizationDescriptor = $convert.base64Decode( - 'Cg9EaXNrVXRpbGl6YXRpb24SQAoddGFyZ2V0X3dyaXRlX2J5dGVzX3Blcl9zZWNvbmQYDiABKAVSGXRhcmdldFdyaXRlQnl0ZXNQZXJTZWNvbmQSPAobdGFyZ2V0X3dyaXRlX29wc19wZXJfc2Vjb25kGA8gASgFUhd0YXJnZXRXcml0ZU9wc1BlclNlY29uZBI+Chx0YXJnZXRfcmVhZF9ieXRlc19wZXJfc2Vjb25kGBAgASgFUhh0YXJnZXRSZWFkQnl0ZXNQZXJTZWNvbmQSOgoadGFyZ2V0X3JlYWRfb3BzX3Blcl9zZWNvbmQYESABKAVSFnRhcmdldFJlYWRPcHNQZXJTZWNvbmQ='); + 'Cg9EaXNrVXRpbGl6YXRpb24SQAoddGFyZ2V0X3dyaXRlX2J5dGVzX3Blcl9zZWNvbmQYDiABKA' + 'VSGXRhcmdldFdyaXRlQnl0ZXNQZXJTZWNvbmQSPAobdGFyZ2V0X3dyaXRlX29wc19wZXJfc2Vj' + 'b25kGA8gASgFUhd0YXJnZXRXcml0ZU9wc1BlclNlY29uZBI+Chx0YXJnZXRfcmVhZF9ieXRlc1' + '9wZXJfc2Vjb25kGBAgASgFUhh0YXJnZXRSZWFkQnl0ZXNQZXJTZWNvbmQSOgoadGFyZ2V0X3Jl' + 'YWRfb3BzX3Blcl9zZWNvbmQYESABKAVSFnRhcmdldFJlYWRPcHNQZXJTZWNvbmQ='); + @$core.Deprecated('Use networkUtilizationDescriptor instead') const NetworkUtilization$json = { '1': 'NetworkUtilization', @@ -611,7 +708,13 @@ const NetworkUtilization$json = { /// Descriptor for `NetworkUtilization`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List networkUtilizationDescriptor = $convert.base64Decode( - 'ChJOZXR3b3JrVXRpbGl6YXRpb24SPgocdGFyZ2V0X3NlbnRfYnl0ZXNfcGVyX3NlY29uZBgBIAEoBVIYdGFyZ2V0U2VudEJ5dGVzUGVyU2Vjb25kEkIKHnRhcmdldF9zZW50X3BhY2tldHNfcGVyX3NlY29uZBgLIAEoBVIadGFyZ2V0U2VudFBhY2tldHNQZXJTZWNvbmQSRgogdGFyZ2V0X3JlY2VpdmVkX2J5dGVzX3Blcl9zZWNvbmQYDCABKAVSHHRhcmdldFJlY2VpdmVkQnl0ZXNQZXJTZWNvbmQSSgoidGFyZ2V0X3JlY2VpdmVkX3BhY2tldHNfcGVyX3NlY29uZBgNIAEoBVIedGFyZ2V0UmVjZWl2ZWRQYWNrZXRzUGVyU2Vjb25k'); + 'ChJOZXR3b3JrVXRpbGl6YXRpb24SPgocdGFyZ2V0X3NlbnRfYnl0ZXNfcGVyX3NlY29uZBgBIA' + 'EoBVIYdGFyZ2V0U2VudEJ5dGVzUGVyU2Vjb25kEkIKHnRhcmdldF9zZW50X3BhY2tldHNfcGVy' + 'X3NlY29uZBgLIAEoBVIadGFyZ2V0U2VudFBhY2tldHNQZXJTZWNvbmQSRgogdGFyZ2V0X3JlY2' + 'VpdmVkX2J5dGVzX3Blcl9zZWNvbmQYDCABKAVSHHRhcmdldFJlY2VpdmVkQnl0ZXNQZXJTZWNv' + 'bmQSSgoidGFyZ2V0X3JlY2VpdmVkX3BhY2tldHNfcGVyX3NlY29uZBgNIAEoBVIedGFyZ2V0Um' + 'VjZWl2ZWRQYWNrZXRzUGVyU2Vjb25k'); + @$core.Deprecated('Use standardSchedulerSettingsDescriptor instead') const StandardSchedulerSettings$json = { '1': 'StandardSchedulerSettings', @@ -636,9 +739,13 @@ const StandardSchedulerSettings$json = { }; /// Descriptor for `StandardSchedulerSettings`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List standardSchedulerSettingsDescriptor = - $convert.base64Decode( - 'ChlTdGFuZGFyZFNjaGVkdWxlclNldHRpbmdzEjQKFnRhcmdldF9jcHVfdXRpbGl6YXRpb24YASABKAFSFHRhcmdldENwdVV0aWxpemF0aW9uEkIKHXRhcmdldF90aHJvdWdocHV0X3V0aWxpemF0aW9uGAIgASgBUht0YXJnZXRUaHJvdWdocHV0VXRpbGl6YXRpb24SIwoNbWluX2luc3RhbmNlcxgDIAEoBVIMbWluSW5zdGFuY2VzEiMKDW1heF9pbnN0YW5jZXMYBCABKAVSDG1heEluc3RhbmNlcw=='); +final $typed_data.Uint8List standardSchedulerSettingsDescriptor = $convert.base64Decode( + 'ChlTdGFuZGFyZFNjaGVkdWxlclNldHRpbmdzEjQKFnRhcmdldF9jcHVfdXRpbGl6YXRpb24YAS' + 'ABKAFSFHRhcmdldENwdVV0aWxpemF0aW9uEkIKHXRhcmdldF90aHJvdWdocHV0X3V0aWxpemF0' + 'aW9uGAIgASgBUht0YXJnZXRUaHJvdWdocHV0VXRpbGl6YXRpb24SIwoNbWluX2luc3RhbmNlcx' + 'gDIAEoBVIMbWluSW5zdGFuY2VzEiMKDW1heF9pbnN0YW5jZXMYBCABKAVSDG1heEluc3RhbmNl' + 'cw=='); + @$core.Deprecated('Use networkDescriptor instead') const Network$json = { '1': 'Network', @@ -653,7 +760,11 @@ const Network$json = { /// Descriptor for `Network`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List networkDescriptor = $convert.base64Decode( - 'CgdOZXR3b3JrEicKD2ZvcndhcmRlZF9wb3J0cxgBIAMoCVIOZm9yd2FyZGVkUG9ydHMSIQoMaW5zdGFuY2VfdGFnGAIgASgJUgtpbnN0YW5jZVRhZxISCgRuYW1lGAMgASgJUgRuYW1lEicKD3N1Ym5ldHdvcmtfbmFtZRgEIAEoCVIOc3VibmV0d29ya05hbWUSKQoQc2Vzc2lvbl9hZmZpbml0eRgFIAEoCFIPc2Vzc2lvbkFmZmluaXR5'); + 'CgdOZXR3b3JrEicKD2ZvcndhcmRlZF9wb3J0cxgBIAMoCVIOZm9yd2FyZGVkUG9ydHMSIQoMaW' + '5zdGFuY2VfdGFnGAIgASgJUgtpbnN0YW5jZVRhZxISCgRuYW1lGAMgASgJUgRuYW1lEicKD3N1' + 'Ym5ldHdvcmtfbmFtZRgEIAEoCVIOc3VibmV0d29ya05hbWUSKQoQc2Vzc2lvbl9hZmZpbml0eR' + 'gFIAEoCFIPc2Vzc2lvbkFmZmluaXR5'); + @$core.Deprecated('Use volumeDescriptor instead') const Volume$json = { '1': 'Volume', @@ -666,7 +777,9 @@ const Volume$json = { /// Descriptor for `Volume`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List volumeDescriptor = $convert.base64Decode( - 'CgZWb2x1bWUSEgoEbmFtZRgBIAEoCVIEbmFtZRIfCgt2b2x1bWVfdHlwZRgCIAEoCVIKdm9sdW1lVHlwZRIXCgdzaXplX2diGAMgASgBUgZzaXplR2I='); + 'CgZWb2x1bWUSEgoEbmFtZRgBIAEoCVIEbmFtZRIfCgt2b2x1bWVfdHlwZRgCIAEoCVIKdm9sdW' + '1lVHlwZRIXCgdzaXplX2diGAMgASgBUgZzaXplR2I='); + @$core.Deprecated('Use resourcesDescriptor instead') const Resources$json = { '1': 'Resources', @@ -688,18 +801,46 @@ const Resources$json = { /// Descriptor for `Resources`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List resourcesDescriptor = $convert.base64Decode( - 'CglSZXNvdXJjZXMSEAoDY3B1GAEgASgBUgNjcHUSFwoHZGlza19nYhgCIAEoAVIGZGlza0diEhsKCW1lbW9yeV9nYhgDIAEoAVIIbWVtb3J5R2ISNQoHdm9sdW1lcxgEIAMoCzIbLmdvb2dsZS5hcHBlbmdpbmUudjEuVm9sdW1lUgd2b2x1bWVzEioKEWttc19rZXlfcmVmZXJlbmNlGAUgASgJUg9rbXNLZXlSZWZlcmVuY2U='); + 'CglSZXNvdXJjZXMSEAoDY3B1GAEgASgBUgNjcHUSFwoHZGlza19nYhgCIAEoAVIGZGlza0diEh' + 'sKCW1lbW9yeV9nYhgDIAEoAVIIbWVtb3J5R2ISNQoHdm9sdW1lcxgEIAMoCzIbLmdvb2dsZS5h' + 'cHBlbmdpbmUudjEuVm9sdW1lUgd2b2x1bWVzEioKEWttc19rZXlfcmVmZXJlbmNlGAUgASgJUg' + '9rbXNLZXlSZWZlcmVuY2U='); + @$core.Deprecated('Use vpcAccessConnectorDescriptor instead') const VpcAccessConnector$json = { '1': 'VpcAccessConnector', '2': [ {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + { + '1': 'egress_setting', + '3': 2, + '4': 1, + '5': 14, + '6': '.google.appengine.v1.VpcAccessConnector.EgressSetting', + '10': 'egressSetting' + }, + ], + '4': [VpcAccessConnector_EgressSetting$json], +}; + +@$core.Deprecated('Use vpcAccessConnectorDescriptor instead') +const VpcAccessConnector_EgressSetting$json = { + '1': 'EgressSetting', + '2': [ + {'1': 'EGRESS_SETTING_UNSPECIFIED', '2': 0}, + {'1': 'ALL_TRAFFIC', '2': 1}, + {'1': 'PRIVATE_IP_RANGES', '2': 2}, ], }; /// Descriptor for `VpcAccessConnector`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List vpcAccessConnectorDescriptor = $convert - .base64Decode('ChJWcGNBY2Nlc3NDb25uZWN0b3ISEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); +final $typed_data.Uint8List vpcAccessConnectorDescriptor = $convert.base64Decode( + 'ChJWcGNBY2Nlc3NDb25uZWN0b3ISEgoEbmFtZRgBIAEoCVIEbmFtZRJcCg5lZ3Jlc3Nfc2V0dG' + 'luZxgCIAEoDjI1Lmdvb2dsZS5hcHBlbmdpbmUudjEuVnBjQWNjZXNzQ29ubmVjdG9yLkVncmVz' + 'c1NldHRpbmdSDWVncmVzc1NldHRpbmciVwoNRWdyZXNzU2V0dGluZxIeChpFR1JFU1NfU0VUVE' + 'lOR19VTlNQRUNJRklFRBAAEg8KC0FMTF9UUkFGRklDEAESFQoRUFJJVkFURV9JUF9SQU5HRVMQ' + 'Ag=='); + @$core.Deprecated('Use entrypointDescriptor instead') const Entrypoint$json = { '1': 'Entrypoint', diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pb.dart index 41b3bc69..40d6bf84 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pb.dart @@ -1,48 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/app_yaml.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/duration.pb.dart' as $0; - +import '../../protobuf/duration.pb.dart' as $51; import 'app_yaml.pbenum.dart'; export 'app_yaml.pbenum.dart'; +/// [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) +/// configuration for API handlers. class ApiConfigHandler extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ApiConfigHandler', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..e(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authFailAction', $pb.PbFieldType.OE, - defaultOrMaker: AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED, - valueOf: AuthFailAction.valueOf, - enumValues: AuthFailAction.values) - ..e( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'login', $pb.PbFieldType.OE, - defaultOrMaker: LoginRequirement.LOGIN_UNSPECIFIED, - valueOf: LoginRequirement.valueOf, - enumValues: LoginRequirement.values) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'script') - ..e(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'securityLevel', $pb.PbFieldType.OE, - defaultOrMaker: SecurityLevel.SECURE_UNSPECIFIED, - valueOf: SecurityLevel.valueOf, - enumValues: SecurityLevel.values) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'url') - ..hasRequiredFields = false; - - ApiConfigHandler._() : super(); factory ApiConfigHandler({ AuthFailAction? authFailAction, LoginRequirement? login, @@ -50,30 +28,55 @@ class ApiConfigHandler extends $pb.GeneratedMessage { SecurityLevel? securityLevel, $core.String? url, }) { - final _result = create(); + final $result = create(); if (authFailAction != null) { - _result.authFailAction = authFailAction; + $result.authFailAction = authFailAction; } if (login != null) { - _result.login = login; + $result.login = login; } if (script != null) { - _result.script = script; + $result.script = script; } if (securityLevel != null) { - _result.securityLevel = securityLevel; + $result.securityLevel = securityLevel; } if (url != null) { - _result.url = url; + $result.url = url; } - return _result; + return $result; } + ApiConfigHandler._() : super(); factory ApiConfigHandler.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ApiConfigHandler.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApiConfigHandler', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'authFailAction', $pb.PbFieldType.OE, + defaultOrMaker: AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED, + valueOf: AuthFailAction.valueOf, + enumValues: AuthFailAction.values) + ..e(2, _omitFieldNames ? '' : 'login', $pb.PbFieldType.OE, + defaultOrMaker: LoginRequirement.LOGIN_UNSPECIFIED, + valueOf: LoginRequirement.valueOf, + enumValues: LoginRequirement.values) + ..aOS(3, _omitFieldNames ? '' : 'script') + ..e( + 4, _omitFieldNames ? '' : 'securityLevel', $pb.PbFieldType.OE, + defaultOrMaker: SecurityLevel.SECURE_UNSPECIFIED, + valueOf: SecurityLevel.valueOf, + enumValues: SecurityLevel.values) + ..aOS(5, _omitFieldNames ? '' : 'url') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -83,8 +86,10 @@ class ApiConfigHandler extends $pb.GeneratedMessage { 'Will be removed in next major version') ApiConfigHandler copyWith(void Function(ApiConfigHandler) updates) => super.copyWith((message) => updates(message as ApiConfigHandler)) - as ApiConfigHandler; // ignore: deprecated_member_use + as ApiConfigHandler; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ApiConfigHandler create() => ApiConfigHandler._(); ApiConfigHandler createEmptyInstance() => create(); @@ -95,6 +100,8 @@ class ApiConfigHandler extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ApiConfigHandler? _defaultInstance; + /// Action to take when users access resources that require + /// authentication. Defaults to `redirect`. @$pb.TagNumber(1) AuthFailAction get authFailAction => $_getN(0); @$pb.TagNumber(1) @@ -107,6 +114,8 @@ class ApiConfigHandler extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearAuthFailAction() => clearField(1); + /// Level of login required to access this resource. Defaults to + /// `optional`. @$pb.TagNumber(2) LoginRequirement get login => $_getN(1); @$pb.TagNumber(2) @@ -119,6 +128,7 @@ class ApiConfigHandler extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearLogin() => clearField(2); + /// Path to the script from the application root directory. @$pb.TagNumber(3) $core.String get script => $_getSZ(2); @$pb.TagNumber(3) @@ -131,6 +141,7 @@ class ApiConfigHandler extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearScript() => clearField(3); + /// Security (HTTPS) enforcement for this URL. @$pb.TagNumber(4) SecurityLevel get securityLevel => $_getN(3); @$pb.TagNumber(4) @@ -143,6 +154,7 @@ class ApiConfigHandler extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearSecurityLevel() => clearField(4); + /// URL to serve the endpoint at. @$pb.TagNumber(5) $core.String get url => $_getSZ(4); @$pb.TagNumber(5) @@ -156,54 +168,47 @@ class ApiConfigHandler extends $pb.GeneratedMessage { void clearUrl() => clearField(5); } +/// Custom static error page to be served when an error occurs. class ErrorHandler extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ErrorHandler', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'errorCode', - $pb.PbFieldType.OE, - defaultOrMaker: ErrorHandler_ErrorCode.ERROR_CODE_UNSPECIFIED, - valueOf: ErrorHandler_ErrorCode.valueOf, - enumValues: ErrorHandler_ErrorCode.values) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'staticFile') - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mimeType') - ..hasRequiredFields = false; - - ErrorHandler._() : super(); factory ErrorHandler({ ErrorHandler_ErrorCode? errorCode, $core.String? staticFile, $core.String? mimeType, }) { - final _result = create(); + final $result = create(); if (errorCode != null) { - _result.errorCode = errorCode; + $result.errorCode = errorCode; } if (staticFile != null) { - _result.staticFile = staticFile; + $result.staticFile = staticFile; } if (mimeType != null) { - _result.mimeType = mimeType; + $result.mimeType = mimeType; } - return _result; + return $result; } + ErrorHandler._() : super(); factory ErrorHandler.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ErrorHandler.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ErrorHandler', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'errorCode', $pb.PbFieldType.OE, + defaultOrMaker: ErrorHandler_ErrorCode.ERROR_CODE_UNSPECIFIED, + valueOf: ErrorHandler_ErrorCode.valueOf, + enumValues: ErrorHandler_ErrorCode.values) + ..aOS(2, _omitFieldNames ? '' : 'staticFile') + ..aOS(3, _omitFieldNames ? '' : 'mimeType') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -213,8 +218,10 @@ class ErrorHandler extends $pb.GeneratedMessage { 'Will be removed in next major version') ErrorHandler copyWith(void Function(ErrorHandler) updates) => super.copyWith((message) => updates(message as ErrorHandler)) - as ErrorHandler; // ignore: deprecated_member_use + as ErrorHandler; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ErrorHandler create() => ErrorHandler._(); ErrorHandler createEmptyInstance() => create(); @@ -225,6 +232,7 @@ class ErrorHandler extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ErrorHandler? _defaultInstance; + /// Error condition this handler applies to. @$pb.TagNumber(1) ErrorHandler_ErrorCode get errorCode => $_getN(0); @$pb.TagNumber(1) @@ -237,6 +245,7 @@ class ErrorHandler extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearErrorCode() => clearField(1); + /// Static file content to be served for this error. @$pb.TagNumber(2) $core.String get staticFile => $_getSZ(1); @$pb.TagNumber(2) @@ -249,6 +258,7 @@ class ErrorHandler extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearStaticFile() => clearField(2); + /// MIME type of file. Defaults to `text/html`. @$pb.TagNumber(3) $core.String get mimeType => $_getSZ(2); @$pb.TagNumber(3) @@ -264,45 +274,10 @@ class ErrorHandler extends $pb.GeneratedMessage { enum UrlMap_HandlerType { staticFiles, script, apiEndpoint, notSet } +/// URL pattern and description of how the URL should be handled. App Engine can +/// handle URLs by executing application code or by serving static files +/// uploaded with the version, such as images, CSS, or JavaScript. class UrlMap extends $pb.GeneratedMessage { - static const $core.Map<$core.int, UrlMap_HandlerType> - _UrlMap_HandlerTypeByTag = { - 2: UrlMap_HandlerType.staticFiles, - 3: UrlMap_HandlerType.script, - 4: UrlMap_HandlerType.apiEndpoint, - 0: UrlMap_HandlerType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'UrlMap', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..oo(0, [2, 3, 4]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'urlRegex') - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'staticFiles', - subBuilder: StaticFilesHandler.create) - ..aOM(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'script', - subBuilder: ScriptHandler.create) - ..aOM( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apiEndpoint', - subBuilder: ApiEndpointHandler.create) - ..e(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'securityLevel', $pb.PbFieldType.OE, - defaultOrMaker: SecurityLevel.SECURE_UNSPECIFIED, - valueOf: SecurityLevel.valueOf, - enumValues: SecurityLevel.values) - ..e(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'login', $pb.PbFieldType.OE, - defaultOrMaker: LoginRequirement.LOGIN_UNSPECIFIED, - valueOf: LoginRequirement.valueOf, - enumValues: LoginRequirement.values) - ..e(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authFailAction', $pb.PbFieldType.OE, defaultOrMaker: AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED, valueOf: AuthFailAction.valueOf, enumValues: AuthFailAction.values) - ..e(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'redirectHttpResponseCode', $pb.PbFieldType.OE, defaultOrMaker: UrlMap_RedirectHttpResponseCode.REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED, valueOf: UrlMap_RedirectHttpResponseCode.valueOf, enumValues: UrlMap_RedirectHttpResponseCode.values) - ..hasRequiredFields = false; - - UrlMap._() : super(); factory UrlMap({ $core.String? urlRegex, StaticFilesHandler? staticFiles, @@ -313,39 +288,83 @@ class UrlMap extends $pb.GeneratedMessage { AuthFailAction? authFailAction, UrlMap_RedirectHttpResponseCode? redirectHttpResponseCode, }) { - final _result = create(); + final $result = create(); if (urlRegex != null) { - _result.urlRegex = urlRegex; + $result.urlRegex = urlRegex; } if (staticFiles != null) { - _result.staticFiles = staticFiles; + $result.staticFiles = staticFiles; } if (script != null) { - _result.script = script; + $result.script = script; } if (apiEndpoint != null) { - _result.apiEndpoint = apiEndpoint; + $result.apiEndpoint = apiEndpoint; } if (securityLevel != null) { - _result.securityLevel = securityLevel; + $result.securityLevel = securityLevel; } if (login != null) { - _result.login = login; + $result.login = login; } if (authFailAction != null) { - _result.authFailAction = authFailAction; + $result.authFailAction = authFailAction; } if (redirectHttpResponseCode != null) { - _result.redirectHttpResponseCode = redirectHttpResponseCode; + $result.redirectHttpResponseCode = redirectHttpResponseCode; } - return _result; + return $result; } + UrlMap._() : super(); factory UrlMap.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UrlMap.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, UrlMap_HandlerType> + _UrlMap_HandlerTypeByTag = { + 2: UrlMap_HandlerType.staticFiles, + 3: UrlMap_HandlerType.script, + 4: UrlMap_HandlerType.apiEndpoint, + 0: UrlMap_HandlerType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UrlMap', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..oo(0, [2, 3, 4]) + ..aOS(1, _omitFieldNames ? '' : 'urlRegex') + ..aOM(2, _omitFieldNames ? '' : 'staticFiles', + subBuilder: StaticFilesHandler.create) + ..aOM(3, _omitFieldNames ? '' : 'script', + subBuilder: ScriptHandler.create) + ..aOM(4, _omitFieldNames ? '' : 'apiEndpoint', + subBuilder: ApiEndpointHandler.create) + ..e( + 5, _omitFieldNames ? '' : 'securityLevel', $pb.PbFieldType.OE, + defaultOrMaker: SecurityLevel.SECURE_UNSPECIFIED, + valueOf: SecurityLevel.valueOf, + enumValues: SecurityLevel.values) + ..e(6, _omitFieldNames ? '' : 'login', $pb.PbFieldType.OE, + defaultOrMaker: LoginRequirement.LOGIN_UNSPECIFIED, + valueOf: LoginRequirement.valueOf, + enumValues: LoginRequirement.values) + ..e( + 7, _omitFieldNames ? '' : 'authFailAction', $pb.PbFieldType.OE, + defaultOrMaker: AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED, + valueOf: AuthFailAction.valueOf, + enumValues: AuthFailAction.values) + ..e(8, + _omitFieldNames ? '' : 'redirectHttpResponseCode', $pb.PbFieldType.OE, + defaultOrMaker: UrlMap_RedirectHttpResponseCode + .REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED, + valueOf: UrlMap_RedirectHttpResponseCode.valueOf, + enumValues: UrlMap_RedirectHttpResponseCode.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -354,9 +373,10 @@ class UrlMap extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') UrlMap copyWith(void Function(UrlMap) updates) => - super.copyWith((message) => updates(message as UrlMap)) - as UrlMap; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as UrlMap)) as UrlMap; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UrlMap create() => UrlMap._(); UrlMap createEmptyInstance() => create(); @@ -370,6 +390,10 @@ class UrlMap extends $pb.GeneratedMessage { _UrlMap_HandlerTypeByTag[$_whichOneof(0)]!; void clearHandlerType() => clearField($_whichOneof(0)); + /// URL prefix. Uses regular expression syntax, which means regexp + /// special characters must be escaped, but should not contain groupings. + /// All URLs that begin with this prefix are handled by this handler, using the + /// portion of the URL after the prefix as part of the file path. @$pb.TagNumber(1) $core.String get urlRegex => $_getSZ(0); @$pb.TagNumber(1) @@ -382,6 +406,7 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearUrlRegex() => clearField(1); + /// Returns the contents of a file, such as an image, as the response. @$pb.TagNumber(2) StaticFilesHandler get staticFiles => $_getN(1); @$pb.TagNumber(2) @@ -396,6 +421,9 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(2) StaticFilesHandler ensureStaticFiles() => $_ensure(1); + /// Executes a script to handle the requests that match this URL + /// pattern. Only the `auto` value is supported for Node.js in the + /// App Engine standard environment, for example `"script": "auto"`. @$pb.TagNumber(3) ScriptHandler get script => $_getN(2); @$pb.TagNumber(3) @@ -410,6 +438,7 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(3) ScriptHandler ensureScript() => $_ensure(2); + /// Uses API Endpoints to handle requests. @$pb.TagNumber(4) ApiEndpointHandler get apiEndpoint => $_getN(3); @$pb.TagNumber(4) @@ -424,6 +453,7 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(4) ApiEndpointHandler ensureApiEndpoint() => $_ensure(3); + /// Security (HTTPS) enforcement for this URL. @$pb.TagNumber(5) SecurityLevel get securityLevel => $_getN(4); @$pb.TagNumber(5) @@ -436,6 +466,8 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearSecurityLevel() => clearField(5); + /// Level of login required to access this resource. Not supported for Node.js + /// in the App Engine standard environment. @$pb.TagNumber(6) LoginRequirement get login => $_getN(5); @$pb.TagNumber(6) @@ -448,6 +480,8 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearLogin() => clearField(6); + /// Action to take when users access resources that require + /// authentication. Defaults to `redirect`. @$pb.TagNumber(7) AuthFailAction get authFailAction => $_getN(6); @$pb.TagNumber(7) @@ -460,6 +494,8 @@ class UrlMap extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearAuthFailAction() => clearField(7); + /// `30x` code to use when performing redirects for the `secure` field. + /// Defaults to `302`. @$pb.TagNumber(8) UrlMap_RedirectHttpResponseCode get redirectHttpResponseCode => $_getN(7); @$pb.TagNumber(8) @@ -473,81 +509,71 @@ class UrlMap extends $pb.GeneratedMessage { void clearRedirectHttpResponseCode() => clearField(8); } +/// Files served directly to the user for a given URL, such as images, CSS +/// stylesheets, or JavaScript source files. Static file handlers describe which +/// files in the application directory are static files, and which URLs serve +/// them. class StaticFilesHandler extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'StaticFilesHandler', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uploadPathRegex') - ..m<$core.String, $core.String>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'httpHeaders', - entryClassName: 'StaticFilesHandler.HttpHeadersEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.appengine.v1beta')) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mimeType') - ..aOM<$0.Duration>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expiration', subBuilder: $0.Duration.create) - ..aOB(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'requireMatchingFile') - ..aOB(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'applicationReadable') - ..hasRequiredFields = false; - - StaticFilesHandler._() : super(); factory StaticFilesHandler({ $core.String? path, $core.String? uploadPathRegex, $core.Map<$core.String, $core.String>? httpHeaders, $core.String? mimeType, - $0.Duration? expiration, + $51.Duration? expiration, $core.bool? requireMatchingFile, $core.bool? applicationReadable, }) { - final _result = create(); + final $result = create(); if (path != null) { - _result.path = path; + $result.path = path; } if (uploadPathRegex != null) { - _result.uploadPathRegex = uploadPathRegex; + $result.uploadPathRegex = uploadPathRegex; } if (httpHeaders != null) { - _result.httpHeaders.addAll(httpHeaders); + $result.httpHeaders.addAll(httpHeaders); } if (mimeType != null) { - _result.mimeType = mimeType; + $result.mimeType = mimeType; } if (expiration != null) { - _result.expiration = expiration; + $result.expiration = expiration; } if (requireMatchingFile != null) { - _result.requireMatchingFile = requireMatchingFile; + $result.requireMatchingFile = requireMatchingFile; } if (applicationReadable != null) { - _result.applicationReadable = applicationReadable; + $result.applicationReadable = applicationReadable; } - return _result; + return $result; } + StaticFilesHandler._() : super(); factory StaticFilesHandler.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory StaticFilesHandler.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StaticFilesHandler', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'path') + ..aOS(2, _omitFieldNames ? '' : 'uploadPathRegex') + ..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'httpHeaders', + entryClassName: 'StaticFilesHandler.HttpHeadersEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.appengine.v1beta')) + ..aOS(4, _omitFieldNames ? '' : 'mimeType') + ..aOM<$51.Duration>(5, _omitFieldNames ? '' : 'expiration', + subBuilder: $51.Duration.create) + ..aOB(6, _omitFieldNames ? '' : 'requireMatchingFile') + ..aOB(7, _omitFieldNames ? '' : 'applicationReadable') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -557,8 +583,10 @@ class StaticFilesHandler extends $pb.GeneratedMessage { 'Will be removed in next major version') StaticFilesHandler copyWith(void Function(StaticFilesHandler) updates) => super.copyWith((message) => updates(message as StaticFilesHandler)) - as StaticFilesHandler; // ignore: deprecated_member_use + as StaticFilesHandler; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static StaticFilesHandler create() => StaticFilesHandler._(); StaticFilesHandler createEmptyInstance() => create(); @@ -569,6 +597,9 @@ class StaticFilesHandler extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static StaticFilesHandler? _defaultInstance; + /// Path to the static files matched by the URL pattern, from the + /// application root directory. The path can refer to text matched in groupings + /// in the URL pattern. @$pb.TagNumber(1) $core.String get path => $_getSZ(0); @$pb.TagNumber(1) @@ -581,6 +612,8 @@ class StaticFilesHandler extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPath() => clearField(1); + /// Regular expression that matches the file paths for all files that should be + /// referenced by this handler. @$pb.TagNumber(2) $core.String get uploadPathRegex => $_getSZ(1); @$pb.TagNumber(2) @@ -593,9 +626,14 @@ class StaticFilesHandler extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearUploadPathRegex() => clearField(2); + /// HTTP headers to use for all responses from these URLs. @$pb.TagNumber(3) $core.Map<$core.String, $core.String> get httpHeaders => $_getMap(2); + /// MIME type used to serve all files served by this handler. + /// + /// Defaults to file-specific MIME types, which are derived from each file's + /// filename extension. @$pb.TagNumber(4) $core.String get mimeType => $_getSZ(3); @$pb.TagNumber(4) @@ -608,10 +646,12 @@ class StaticFilesHandler extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearMimeType() => clearField(4); + /// Time a static file served by this handler should be cached + /// by web proxies and browsers. @$pb.TagNumber(5) - $0.Duration get expiration => $_getN(4); + $51.Duration get expiration => $_getN(4); @$pb.TagNumber(5) - set expiration($0.Duration v) { + set expiration($51.Duration v) { setField(5, v); } @@ -620,8 +660,10 @@ class StaticFilesHandler extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearExpiration() => clearField(5); @$pb.TagNumber(5) - $0.Duration ensureExpiration() => $_ensure(4); + $51.Duration ensureExpiration() => $_ensure(4); + /// Whether this handler should match the request if the file + /// referenced by the handler does not exist. @$pb.TagNumber(6) $core.bool get requireMatchingFile => $_getBF(5); @$pb.TagNumber(6) @@ -634,6 +676,11 @@ class StaticFilesHandler extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearRequireMatchingFile() => clearField(6); + /// Whether files should also be uploaded as code data. By default, files + /// declared in static file handlers are uploaded as static + /// data and are only served to end users; they cannot be read by the + /// application. If enabled, uploads are charged against both your code and + /// static data storage resource quotas. @$pb.TagNumber(7) $core.bool get applicationReadable => $_getBF(6); @$pb.TagNumber(7) @@ -647,39 +694,33 @@ class StaticFilesHandler extends $pb.GeneratedMessage { void clearApplicationReadable() => clearField(7); } +/// Executes a script to handle the request that matches the URL pattern. class ScriptHandler extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ScriptHandler', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'scriptPath') - ..hasRequiredFields = false; - - ScriptHandler._() : super(); factory ScriptHandler({ $core.String? scriptPath, }) { - final _result = create(); + final $result = create(); if (scriptPath != null) { - _result.scriptPath = scriptPath; + $result.scriptPath = scriptPath; } - return _result; + return $result; } + ScriptHandler._() : super(); factory ScriptHandler.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ScriptHandler.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ScriptHandler', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'scriptPath') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -689,8 +730,10 @@ class ScriptHandler extends $pb.GeneratedMessage { 'Will be removed in next major version') ScriptHandler copyWith(void Function(ScriptHandler) updates) => super.copyWith((message) => updates(message as ScriptHandler)) - as ScriptHandler; // ignore: deprecated_member_use + as ScriptHandler; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ScriptHandler create() => ScriptHandler._(); ScriptHandler createEmptyInstance() => create(); @@ -701,6 +744,7 @@ class ScriptHandler extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ScriptHandler? _defaultInstance; + /// Path to the script from the application root directory. @$pb.TagNumber(1) $core.String get scriptPath => $_getSZ(0); @$pb.TagNumber(1) @@ -714,39 +758,33 @@ class ScriptHandler extends $pb.GeneratedMessage { void clearScriptPath() => clearField(1); } +/// Uses Google Cloud Endpoints to handle requests. class ApiEndpointHandler extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ApiEndpointHandler', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'scriptPath') - ..hasRequiredFields = false; - - ApiEndpointHandler._() : super(); factory ApiEndpointHandler({ $core.String? scriptPath, }) { - final _result = create(); + final $result = create(); if (scriptPath != null) { - _result.scriptPath = scriptPath; + $result.scriptPath = scriptPath; } - return _result; + return $result; } + ApiEndpointHandler._() : super(); factory ApiEndpointHandler.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ApiEndpointHandler.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ApiEndpointHandler', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'scriptPath') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -756,8 +794,10 @@ class ApiEndpointHandler extends $pb.GeneratedMessage { 'Will be removed in next major version') ApiEndpointHandler copyWith(void Function(ApiEndpointHandler) updates) => super.copyWith((message) => updates(message as ApiEndpointHandler)) - as ApiEndpointHandler; // ignore: deprecated_member_use + as ApiEndpointHandler; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ApiEndpointHandler create() => ApiEndpointHandler._(); ApiEndpointHandler createEmptyInstance() => create(); @@ -768,6 +808,7 @@ class ApiEndpointHandler extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ApiEndpointHandler? _defaultInstance; + /// Path to the script from the application root directory. @$pb.TagNumber(1) $core.String get scriptPath => $_getSZ(0); @$pb.TagNumber(1) @@ -781,81 +822,70 @@ class ApiEndpointHandler extends $pb.GeneratedMessage { void clearScriptPath() => clearField(1); } +/// Health checking configuration for VM instances. Unhealthy instances +/// are killed and replaced with new instances. Only applicable for +/// instances in App Engine flexible environment. class HealthCheck extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'HealthCheck', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'disableHealthCheck') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'host') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'healthyThreshold', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unhealthyThreshold', - $pb.PbFieldType.OU3) - ..a<$core.int>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'restartThreshold', $pb.PbFieldType.OU3) - ..aOM<$0.Duration>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'checkInterval', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timeout', subBuilder: $0.Duration.create) - ..hasRequiredFields = false; - - HealthCheck._() : super(); factory HealthCheck({ $core.bool? disableHealthCheck, $core.String? host, $core.int? healthyThreshold, $core.int? unhealthyThreshold, $core.int? restartThreshold, - $0.Duration? checkInterval, - $0.Duration? timeout, + $51.Duration? checkInterval, + $51.Duration? timeout, }) { - final _result = create(); + final $result = create(); if (disableHealthCheck != null) { - _result.disableHealthCheck = disableHealthCheck; + $result.disableHealthCheck = disableHealthCheck; } if (host != null) { - _result.host = host; + $result.host = host; } if (healthyThreshold != null) { - _result.healthyThreshold = healthyThreshold; + $result.healthyThreshold = healthyThreshold; } if (unhealthyThreshold != null) { - _result.unhealthyThreshold = unhealthyThreshold; + $result.unhealthyThreshold = unhealthyThreshold; } if (restartThreshold != null) { - _result.restartThreshold = restartThreshold; + $result.restartThreshold = restartThreshold; } if (checkInterval != null) { - _result.checkInterval = checkInterval; + $result.checkInterval = checkInterval; } if (timeout != null) { - _result.timeout = timeout; + $result.timeout = timeout; } - return _result; + return $result; } + HealthCheck._() : super(); factory HealthCheck.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory HealthCheck.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'HealthCheck', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'disableHealthCheck') + ..aOS(2, _omitFieldNames ? '' : 'host') + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'healthyThreshold', $pb.PbFieldType.OU3) + ..a<$core.int>( + 4, _omitFieldNames ? '' : 'unhealthyThreshold', $pb.PbFieldType.OU3) + ..a<$core.int>( + 5, _omitFieldNames ? '' : 'restartThreshold', $pb.PbFieldType.OU3) + ..aOM<$51.Duration>(6, _omitFieldNames ? '' : 'checkInterval', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(7, _omitFieldNames ? '' : 'timeout', + subBuilder: $51.Duration.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') @@ -865,8 +895,10 @@ class HealthCheck extends $pb.GeneratedMessage { 'Will be removed in next major version') HealthCheck copyWith(void Function(HealthCheck) updates) => super.copyWith((message) => updates(message as HealthCheck)) - as HealthCheck; // ignore: deprecated_member_use + as HealthCheck; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static HealthCheck create() => HealthCheck._(); HealthCheck createEmptyInstance() => create(); @@ -876,6 +908,7 @@ class HealthCheck extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static HealthCheck? _defaultInstance; + /// Whether to explicitly disable health checks for this instance. @$pb.TagNumber(1) $core.bool get disableHealthCheck => $_getBF(0); @$pb.TagNumber(1) @@ -888,6 +921,8 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearDisableHealthCheck() => clearField(1); + /// Host header to send when performing an HTTP health check. + /// Example: "myapp.appspot.com" @$pb.TagNumber(2) $core.String get host => $_getSZ(1); @$pb.TagNumber(2) @@ -900,6 +935,8 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearHost() => clearField(2); + /// Number of consecutive successful health checks required before receiving + /// traffic. @$pb.TagNumber(3) $core.int get healthyThreshold => $_getIZ(2); @$pb.TagNumber(3) @@ -912,6 +949,8 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearHealthyThreshold() => clearField(3); + /// Number of consecutive failed health checks required before removing + /// traffic. @$pb.TagNumber(4) $core.int get unhealthyThreshold => $_getIZ(3); @$pb.TagNumber(4) @@ -924,6 +963,8 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUnhealthyThreshold() => clearField(4); + /// Number of consecutive failed health checks required before an instance is + /// restarted. @$pb.TagNumber(5) $core.int get restartThreshold => $_getIZ(4); @$pb.TagNumber(5) @@ -936,10 +977,11 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearRestartThreshold() => clearField(5); + /// Interval between health checks. @$pb.TagNumber(6) - $0.Duration get checkInterval => $_getN(5); + $51.Duration get checkInterval => $_getN(5); @$pb.TagNumber(6) - set checkInterval($0.Duration v) { + set checkInterval($51.Duration v) { setField(6, v); } @@ -948,12 +990,13 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearCheckInterval() => clearField(6); @$pb.TagNumber(6) - $0.Duration ensureCheckInterval() => $_ensure(5); + $51.Duration ensureCheckInterval() => $_ensure(5); + /// Time before the health check is considered failed. @$pb.TagNumber(7) - $0.Duration get timeout => $_getN(6); + $51.Duration get timeout => $_getN(6); @$pb.TagNumber(7) - set timeout($0.Duration v) { + set timeout($51.Duration v) { setField(7, v); } @@ -962,84 +1005,72 @@ class HealthCheck extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearTimeout() => clearField(7); @$pb.TagNumber(7) - $0.Duration ensureTimeout() => $_ensure(6); + $51.Duration ensureTimeout() => $_ensure(6); } +/// Readiness checking configuration for VM instances. Unhealthy instances +/// are removed from traffic rotation. class ReadinessCheck extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReadinessCheck', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'host') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'failureThreshold', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'successThreshold', - $pb.PbFieldType.OU3) - ..aOM<$0.Duration>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'checkInterval', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timeout', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appStartTimeout', subBuilder: $0.Duration.create) - ..hasRequiredFields = false; - - ReadinessCheck._() : super(); factory ReadinessCheck({ $core.String? path, $core.String? host, $core.int? failureThreshold, $core.int? successThreshold, - $0.Duration? checkInterval, - $0.Duration? timeout, - $0.Duration? appStartTimeout, + $51.Duration? checkInterval, + $51.Duration? timeout, + $51.Duration? appStartTimeout, }) { - final _result = create(); + final $result = create(); if (path != null) { - _result.path = path; + $result.path = path; } if (host != null) { - _result.host = host; + $result.host = host; } if (failureThreshold != null) { - _result.failureThreshold = failureThreshold; + $result.failureThreshold = failureThreshold; } if (successThreshold != null) { - _result.successThreshold = successThreshold; + $result.successThreshold = successThreshold; } if (checkInterval != null) { - _result.checkInterval = checkInterval; + $result.checkInterval = checkInterval; } if (timeout != null) { - _result.timeout = timeout; + $result.timeout = timeout; } if (appStartTimeout != null) { - _result.appStartTimeout = appStartTimeout; + $result.appStartTimeout = appStartTimeout; } - return _result; + return $result; } + ReadinessCheck._() : super(); factory ReadinessCheck.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ReadinessCheck.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReadinessCheck', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'path') + ..aOS(2, _omitFieldNames ? '' : 'host') + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'failureThreshold', $pb.PbFieldType.OU3) + ..a<$core.int>( + 4, _omitFieldNames ? '' : 'successThreshold', $pb.PbFieldType.OU3) + ..aOM<$51.Duration>(5, _omitFieldNames ? '' : 'checkInterval', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(6, _omitFieldNames ? '' : 'timeout', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(7, _omitFieldNames ? '' : 'appStartTimeout', + subBuilder: $51.Duration.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') @@ -1049,8 +1080,10 @@ class ReadinessCheck extends $pb.GeneratedMessage { 'Will be removed in next major version') ReadinessCheck copyWith(void Function(ReadinessCheck) updates) => super.copyWith((message) => updates(message as ReadinessCheck)) - as ReadinessCheck; // ignore: deprecated_member_use + as ReadinessCheck; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReadinessCheck create() => ReadinessCheck._(); ReadinessCheck createEmptyInstance() => create(); @@ -1061,6 +1094,7 @@ class ReadinessCheck extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ReadinessCheck? _defaultInstance; + /// The request path. @$pb.TagNumber(1) $core.String get path => $_getSZ(0); @$pb.TagNumber(1) @@ -1073,6 +1107,8 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPath() => clearField(1); + /// Host header to send when performing a HTTP Readiness check. + /// Example: "myapp.appspot.com" @$pb.TagNumber(2) $core.String get host => $_getSZ(1); @$pb.TagNumber(2) @@ -1085,6 +1121,8 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearHost() => clearField(2); + /// Number of consecutive failed checks required before removing + /// traffic. @$pb.TagNumber(3) $core.int get failureThreshold => $_getIZ(2); @$pb.TagNumber(3) @@ -1097,6 +1135,8 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFailureThreshold() => clearField(3); + /// Number of consecutive successful checks required before receiving + /// traffic. @$pb.TagNumber(4) $core.int get successThreshold => $_getIZ(3); @$pb.TagNumber(4) @@ -1109,10 +1149,11 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearSuccessThreshold() => clearField(4); + /// Interval between health checks. @$pb.TagNumber(5) - $0.Duration get checkInterval => $_getN(4); + $51.Duration get checkInterval => $_getN(4); @$pb.TagNumber(5) - set checkInterval($0.Duration v) { + set checkInterval($51.Duration v) { setField(5, v); } @@ -1121,12 +1162,13 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearCheckInterval() => clearField(5); @$pb.TagNumber(5) - $0.Duration ensureCheckInterval() => $_ensure(4); + $51.Duration ensureCheckInterval() => $_ensure(4); + /// Time before the check is considered failed. @$pb.TagNumber(6) - $0.Duration get timeout => $_getN(5); + $51.Duration get timeout => $_getN(5); @$pb.TagNumber(6) - set timeout($0.Duration v) { + set timeout($51.Duration v) { setField(6, v); } @@ -1135,12 +1177,15 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearTimeout() => clearField(6); @$pb.TagNumber(6) - $0.Duration ensureTimeout() => $_ensure(5); + $51.Duration ensureTimeout() => $_ensure(5); + /// A maximum time limit on application initialization, measured from moment + /// the application successfully replies to a healthcheck until it is ready to + /// serve traffic. @$pb.TagNumber(7) - $0.Duration get appStartTimeout => $_getN(6); + $51.Duration get appStartTimeout => $_getN(6); @$pb.TagNumber(7) - set appStartTimeout($0.Duration v) { + set appStartTimeout($51.Duration v) { setField(7, v); } @@ -1149,83 +1194,72 @@ class ReadinessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearAppStartTimeout() => clearField(7); @$pb.TagNumber(7) - $0.Duration ensureAppStartTimeout() => $_ensure(6); + $51.Duration ensureAppStartTimeout() => $_ensure(6); } +/// Health checking configuration for VM instances. Unhealthy instances +/// are killed and replaced with new instances. class LivenessCheck extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LivenessCheck', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'host') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'failureThreshold', - $pb.PbFieldType.OU3) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'successThreshold', - $pb.PbFieldType.OU3) - ..aOM<$0.Duration>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'checkInterval', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timeout', subBuilder: $0.Duration.create) - ..aOM<$0.Duration>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'initialDelay', subBuilder: $0.Duration.create) - ..hasRequiredFields = false; - - LivenessCheck._() : super(); factory LivenessCheck({ $core.String? path, $core.String? host, $core.int? failureThreshold, $core.int? successThreshold, - $0.Duration? checkInterval, - $0.Duration? timeout, - $0.Duration? initialDelay, + $51.Duration? checkInterval, + $51.Duration? timeout, + $51.Duration? initialDelay, }) { - final _result = create(); + final $result = create(); if (path != null) { - _result.path = path; + $result.path = path; } if (host != null) { - _result.host = host; + $result.host = host; } if (failureThreshold != null) { - _result.failureThreshold = failureThreshold; + $result.failureThreshold = failureThreshold; } if (successThreshold != null) { - _result.successThreshold = successThreshold; + $result.successThreshold = successThreshold; } if (checkInterval != null) { - _result.checkInterval = checkInterval; + $result.checkInterval = checkInterval; } if (timeout != null) { - _result.timeout = timeout; + $result.timeout = timeout; } if (initialDelay != null) { - _result.initialDelay = initialDelay; + $result.initialDelay = initialDelay; } - return _result; + return $result; } + LivenessCheck._() : super(); factory LivenessCheck.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LivenessCheck.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LivenessCheck', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'path') + ..aOS(2, _omitFieldNames ? '' : 'host') + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'failureThreshold', $pb.PbFieldType.OU3) + ..a<$core.int>( + 4, _omitFieldNames ? '' : 'successThreshold', $pb.PbFieldType.OU3) + ..aOM<$51.Duration>(5, _omitFieldNames ? '' : 'checkInterval', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(6, _omitFieldNames ? '' : 'timeout', + subBuilder: $51.Duration.create) + ..aOM<$51.Duration>(7, _omitFieldNames ? '' : 'initialDelay', + subBuilder: $51.Duration.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') @@ -1235,8 +1269,10 @@ class LivenessCheck extends $pb.GeneratedMessage { 'Will be removed in next major version') LivenessCheck copyWith(void Function(LivenessCheck) updates) => super.copyWith((message) => updates(message as LivenessCheck)) - as LivenessCheck; // ignore: deprecated_member_use + as LivenessCheck; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LivenessCheck create() => LivenessCheck._(); LivenessCheck createEmptyInstance() => create(); @@ -1247,6 +1283,7 @@ class LivenessCheck extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LivenessCheck? _defaultInstance; + /// The request path. @$pb.TagNumber(1) $core.String get path => $_getSZ(0); @$pb.TagNumber(1) @@ -1259,6 +1296,8 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPath() => clearField(1); + /// Host header to send when performing a HTTP Liveness check. + /// Example: "myapp.appspot.com" @$pb.TagNumber(2) $core.String get host => $_getSZ(1); @$pb.TagNumber(2) @@ -1271,6 +1310,8 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearHost() => clearField(2); + /// Number of consecutive failed checks required before considering the + /// VM unhealthy. @$pb.TagNumber(3) $core.int get failureThreshold => $_getIZ(2); @$pb.TagNumber(3) @@ -1283,6 +1324,8 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFailureThreshold() => clearField(3); + /// Number of consecutive successful checks required before considering + /// the VM healthy. @$pb.TagNumber(4) $core.int get successThreshold => $_getIZ(3); @$pb.TagNumber(4) @@ -1295,10 +1338,11 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearSuccessThreshold() => clearField(4); + /// Interval between health checks. @$pb.TagNumber(5) - $0.Duration get checkInterval => $_getN(4); + $51.Duration get checkInterval => $_getN(4); @$pb.TagNumber(5) - set checkInterval($0.Duration v) { + set checkInterval($51.Duration v) { setField(5, v); } @@ -1307,12 +1351,13 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearCheckInterval() => clearField(5); @$pb.TagNumber(5) - $0.Duration ensureCheckInterval() => $_ensure(4); + $51.Duration ensureCheckInterval() => $_ensure(4); + /// Time before the check is considered failed. @$pb.TagNumber(6) - $0.Duration get timeout => $_getN(5); + $51.Duration get timeout => $_getN(5); @$pb.TagNumber(6) - set timeout($0.Duration v) { + set timeout($51.Duration v) { setField(6, v); } @@ -1321,12 +1366,13 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearTimeout() => clearField(6); @$pb.TagNumber(6) - $0.Duration ensureTimeout() => $_ensure(5); + $51.Duration ensureTimeout() => $_ensure(5); + /// The initial delay before starting to execute the checks. @$pb.TagNumber(7) - $0.Duration get initialDelay => $_getN(6); + $51.Duration get initialDelay => $_getN(6); @$pb.TagNumber(7) - set initialDelay($0.Duration v) { + set initialDelay($51.Duration v) { setField(7, v); } @@ -1335,51 +1381,41 @@ class LivenessCheck extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearInitialDelay() => clearField(7); @$pb.TagNumber(7) - $0.Duration ensureInitialDelay() => $_ensure(6); + $51.Duration ensureInitialDelay() => $_ensure(6); } +/// Third-party Python runtime library that is required by the application. class Library extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Library', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version') - ..hasRequiredFields = false; - - Library._() : super(); factory Library({ $core.String? name, $core.String? version, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (version != null) { - _result.version = version; + $result.version = version; } - return _result; + return $result; } + Library._() : super(); factory Library.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Library.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Library', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'version') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1388,9 +1424,10 @@ class Library extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Library copyWith(void Function(Library) updates) => - super.copyWith((message) => updates(message as Library)) - as Library; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Library)) as Library; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Library create() => Library._(); Library createEmptyInstance() => create(); @@ -1400,6 +1437,7 @@ class Library extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Library? _defaultInstance; + /// Name of the library. Example: "django". @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1412,6 +1450,7 @@ class Library extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Version of the library to select, or "latest". @$pb.TagNumber(2) $core.String get version => $_getSZ(1); @$pb.TagNumber(2) @@ -1424,3 +1463,7 @@ class Library extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearVersion() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pbenum.dart index c60895df..82a5a76f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pbenum.dart @@ -1,30 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/app_yaml.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Actions to take when the user is not logged in. class AuthFailAction extends $pb.ProtobufEnum { - static const AuthFailAction AUTH_FAIL_ACTION_UNSPECIFIED = AuthFailAction._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'AUTH_FAIL_ACTION_UNSPECIFIED'); - static const AuthFailAction AUTH_FAIL_ACTION_REDIRECT = AuthFailAction._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'AUTH_FAIL_ACTION_REDIRECT'); + static const AuthFailAction AUTH_FAIL_ACTION_UNSPECIFIED = + AuthFailAction._(0, _omitEnumNames ? '' : 'AUTH_FAIL_ACTION_UNSPECIFIED'); + static const AuthFailAction AUTH_FAIL_ACTION_REDIRECT = + AuthFailAction._(1, _omitEnumNames ? '' : 'AUTH_FAIL_ACTION_REDIRECT'); static const AuthFailAction AUTH_FAIL_ACTION_UNAUTHORIZED = AuthFailAction._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'AUTH_FAIL_ACTION_UNAUTHORIZED'); + 2, _omitEnumNames ? '' : 'AUTH_FAIL_ACTION_UNAUTHORIZED'); static const $core.List values = [ AUTH_FAIL_ACTION_UNSPECIFIED, @@ -39,27 +35,16 @@ class AuthFailAction extends $pb.ProtobufEnum { const AuthFailAction._($core.int v, $core.String n) : super(v, n); } +/// Methods to restrict access to a URL based on login status. class LoginRequirement extends $pb.ProtobufEnum { - static const LoginRequirement LOGIN_UNSPECIFIED = LoginRequirement._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOGIN_UNSPECIFIED'); - static const LoginRequirement LOGIN_OPTIONAL = LoginRequirement._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOGIN_OPTIONAL'); - static const LoginRequirement LOGIN_ADMIN = LoginRequirement._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOGIN_ADMIN'); - static const LoginRequirement LOGIN_REQUIRED = LoginRequirement._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LOGIN_REQUIRED'); + static const LoginRequirement LOGIN_UNSPECIFIED = + LoginRequirement._(0, _omitEnumNames ? '' : 'LOGIN_UNSPECIFIED'); + static const LoginRequirement LOGIN_OPTIONAL = + LoginRequirement._(1, _omitEnumNames ? '' : 'LOGIN_OPTIONAL'); + static const LoginRequirement LOGIN_ADMIN = + LoginRequirement._(2, _omitEnumNames ? '' : 'LOGIN_ADMIN'); + static const LoginRequirement LOGIN_REQUIRED = + LoginRequirement._(3, _omitEnumNames ? '' : 'LOGIN_REQUIRED'); static const $core.List values = [ LOGIN_UNSPECIFIED, @@ -75,27 +60,16 @@ class LoginRequirement extends $pb.ProtobufEnum { const LoginRequirement._($core.int v, $core.String n) : super(v, n); } +/// Methods to enforce security (HTTPS) on a URL. class SecurityLevel extends $pb.ProtobufEnum { - static const SecurityLevel SECURE_UNSPECIFIED = SecurityLevel._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SECURE_UNSPECIFIED'); - static const SecurityLevel SECURE_NEVER = SecurityLevel._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SECURE_NEVER'); - static const SecurityLevel SECURE_OPTIONAL = SecurityLevel._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SECURE_OPTIONAL'); - static const SecurityLevel SECURE_ALWAYS = SecurityLevel._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SECURE_ALWAYS'); + static const SecurityLevel SECURE_UNSPECIFIED = + SecurityLevel._(0, _omitEnumNames ? '' : 'SECURE_UNSPECIFIED'); + static const SecurityLevel SECURE_NEVER = + SecurityLevel._(1, _omitEnumNames ? '' : 'SECURE_NEVER'); + static const SecurityLevel SECURE_OPTIONAL = + SecurityLevel._(2, _omitEnumNames ? '' : 'SECURE_OPTIONAL'); + static const SecurityLevel SECURE_ALWAYS = + SecurityLevel._(3, _omitEnumNames ? '' : 'SECURE_ALWAYS'); static const SecurityLevel SECURE_DEFAULT = SECURE_UNSPECIFIED; @@ -113,31 +87,19 @@ class SecurityLevel extends $pb.ProtobufEnum { const SecurityLevel._($core.int v, $core.String n) : super(v, n); } +/// Error codes. class ErrorHandler_ErrorCode extends $pb.ProtobufEnum { static const ErrorHandler_ErrorCode ERROR_CODE_UNSPECIFIED = ErrorHandler_ErrorCode._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ERROR_CODE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'ERROR_CODE_UNSPECIFIED'); static const ErrorHandler_ErrorCode ERROR_CODE_OVER_QUOTA = ErrorHandler_ErrorCode._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ERROR_CODE_OVER_QUOTA'); + 1, _omitEnumNames ? '' : 'ERROR_CODE_OVER_QUOTA'); static const ErrorHandler_ErrorCode ERROR_CODE_DOS_API_DENIAL = ErrorHandler_ErrorCode._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ERROR_CODE_DOS_API_DENIAL'); + 2, _omitEnumNames ? '' : 'ERROR_CODE_DOS_API_DENIAL'); static const ErrorHandler_ErrorCode ERROR_CODE_TIMEOUT = - ErrorHandler_ErrorCode._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ERROR_CODE_TIMEOUT'); + ErrorHandler_ErrorCode._(3, _omitEnumNames ? '' : 'ERROR_CODE_TIMEOUT'); static const ErrorHandler_ErrorCode ERROR_CODE_DEFAULT = ERROR_CODE_UNSPECIFIED; @@ -157,38 +119,24 @@ class ErrorHandler_ErrorCode extends $pb.ProtobufEnum { const ErrorHandler_ErrorCode._($core.int v, $core.String n) : super(v, n); } +/// Redirect codes. class UrlMap_RedirectHttpResponseCode extends $pb.ProtobufEnum { static const UrlMap_RedirectHttpResponseCode REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED = UrlMap_RedirectHttpResponseCode._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED'); static const UrlMap_RedirectHttpResponseCode REDIRECT_HTTP_RESPONSE_CODE_301 = UrlMap_RedirectHttpResponseCode._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_HTTP_RESPONSE_CODE_301'); + 1, _omitEnumNames ? '' : 'REDIRECT_HTTP_RESPONSE_CODE_301'); static const UrlMap_RedirectHttpResponseCode REDIRECT_HTTP_RESPONSE_CODE_302 = UrlMap_RedirectHttpResponseCode._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_HTTP_RESPONSE_CODE_302'); + 2, _omitEnumNames ? '' : 'REDIRECT_HTTP_RESPONSE_CODE_302'); static const UrlMap_RedirectHttpResponseCode REDIRECT_HTTP_RESPONSE_CODE_303 = UrlMap_RedirectHttpResponseCode._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_HTTP_RESPONSE_CODE_303'); + 3, _omitEnumNames ? '' : 'REDIRECT_HTTP_RESPONSE_CODE_303'); static const UrlMap_RedirectHttpResponseCode REDIRECT_HTTP_RESPONSE_CODE_307 = UrlMap_RedirectHttpResponseCode._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_HTTP_RESPONSE_CODE_307'); + 4, _omitEnumNames ? '' : 'REDIRECT_HTTP_RESPONSE_CODE_307'); static const $core.List values = [ @@ -207,3 +155,5 @@ class UrlMap_RedirectHttpResponseCode extends $pb.ProtobufEnum { const UrlMap_RedirectHttpResponseCode._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pbjson.dart index 9ab93df7..8fe4ba80 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/app_yaml.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/app_yaml.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 authFailActionDescriptor instead') @@ -21,7 +25,10 @@ const AuthFailAction$json = { /// Descriptor for `AuthFailAction`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List authFailActionDescriptor = $convert.base64Decode( - 'Cg5BdXRoRmFpbEFjdGlvbhIgChxBVVRIX0ZBSUxfQUNUSU9OX1VOU1BFQ0lGSUVEEAASHQoZQVVUSF9GQUlMX0FDVElPTl9SRURJUkVDVBABEiEKHUFVVEhfRkFJTF9BQ1RJT05fVU5BVVRIT1JJWkVEEAI='); + 'Cg5BdXRoRmFpbEFjdGlvbhIgChxBVVRIX0ZBSUxfQUNUSU9OX1VOU1BFQ0lGSUVEEAASHQoZQV' + 'VUSF9GQUlMX0FDVElPTl9SRURJUkVDVBABEiEKHUFVVEhfRkFJTF9BQ1RJT05fVU5BVVRIT1JJ' + 'WkVEEAI='); + @$core.Deprecated('Use loginRequirementDescriptor instead') const LoginRequirement$json = { '1': 'LoginRequirement', @@ -35,7 +42,9 @@ const LoginRequirement$json = { /// Descriptor for `LoginRequirement`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List loginRequirementDescriptor = $convert.base64Decode( - 'ChBMb2dpblJlcXVpcmVtZW50EhUKEUxPR0lOX1VOU1BFQ0lGSUVEEAASEgoOTE9HSU5fT1BUSU9OQUwQARIPCgtMT0dJTl9BRE1JThACEhIKDkxPR0lOX1JFUVVJUkVEEAM='); + 'ChBMb2dpblJlcXVpcmVtZW50EhUKEUxPR0lOX1VOU1BFQ0lGSUVEEAASEgoOTE9HSU5fT1BUSU' + '9OQUwQARIPCgtMT0dJTl9BRE1JThACEhIKDkxPR0lOX1JFUVVJUkVEEAM='); + @$core.Deprecated('Use securityLevelDescriptor instead') const SecurityLevel$json = { '1': 'SecurityLevel', @@ -51,7 +60,10 @@ const SecurityLevel$json = { /// Descriptor for `SecurityLevel`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List securityLevelDescriptor = $convert.base64Decode( - 'Cg1TZWN1cml0eUxldmVsEhYKElNFQ1VSRV9VTlNQRUNJRklFRBAAEhIKDlNFQ1VSRV9ERUZBVUxUEAASEAoMU0VDVVJFX05FVkVSEAESEwoPU0VDVVJFX09QVElPTkFMEAISEQoNU0VDVVJFX0FMV0FZUxADGgIQAQ=='); + 'Cg1TZWN1cml0eUxldmVsEhYKElNFQ1VSRV9VTlNQRUNJRklFRBAAEhIKDlNFQ1VSRV9ERUZBVU' + 'xUEAASEAoMU0VDVVJFX05FVkVSEAESEwoPU0VDVVJFX09QVElPTkFMEAISEQoNU0VDVVJFX0FM' + 'V0FZUxADGgIQAQ=='); + @$core.Deprecated('Use apiConfigHandlerDescriptor instead') const ApiConfigHandler$json = { '1': 'ApiConfigHandler', @@ -87,7 +99,13 @@ const ApiConfigHandler$json = { /// Descriptor for `ApiConfigHandler`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List apiConfigHandlerDescriptor = $convert.base64Decode( - 'ChBBcGlDb25maWdIYW5kbGVyElEKEGF1dGhfZmFpbF9hY3Rpb24YASABKA4yJy5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5BdXRoRmFpbEFjdGlvblIOYXV0aEZhaWxBY3Rpb24SPwoFbG9naW4YAiABKA4yKS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5Mb2dpblJlcXVpcmVtZW50UgVsb2dpbhIWCgZzY3JpcHQYAyABKAlSBnNjcmlwdBJNCg5zZWN1cml0eV9sZXZlbBgEIAEoDjImLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlNlY3VyaXR5TGV2ZWxSDXNlY3VyaXR5TGV2ZWwSEAoDdXJsGAUgASgJUgN1cmw='); + 'ChBBcGlDb25maWdIYW5kbGVyElEKEGF1dGhfZmFpbF9hY3Rpb24YASABKA4yJy5nb29nbGUuYX' + 'BwZW5naW5lLnYxYmV0YS5BdXRoRmFpbEFjdGlvblIOYXV0aEZhaWxBY3Rpb24SPwoFbG9naW4Y' + 'AiABKA4yKS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5Mb2dpblJlcXVpcmVtZW50UgVsb2dpbh' + 'IWCgZzY3JpcHQYAyABKAlSBnNjcmlwdBJNCg5zZWN1cml0eV9sZXZlbBgEIAEoDjImLmdvb2ds' + 'ZS5hcHBlbmdpbmUudjFiZXRhLlNlY3VyaXR5TGV2ZWxSDXNlY3VyaXR5TGV2ZWwSEAoDdXJsGA' + 'UgASgJUgN1cmw='); + @$core.Deprecated('Use errorHandlerDescriptor instead') const ErrorHandler$json = { '1': 'ErrorHandler', @@ -121,7 +139,13 @@ const ErrorHandler_ErrorCode$json = { /// Descriptor for `ErrorHandler`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List errorHandlerDescriptor = $convert.base64Decode( - 'CgxFcnJvckhhbmRsZXISTgoKZXJyb3JfY29kZRgBIAEoDjIvLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkVycm9ySGFuZGxlci5FcnJvckNvZGVSCWVycm9yQ29kZRIfCgtzdGF0aWNfZmlsZRgCIAEoCVIKc3RhdGljRmlsZRIbCgltaW1lX3R5cGUYAyABKAlSCG1pbWVUeXBlIpUBCglFcnJvckNvZGUSGgoWRVJST1JfQ09ERV9VTlNQRUNJRklFRBAAEhYKEkVSUk9SX0NPREVfREVGQVVMVBAAEhkKFUVSUk9SX0NPREVfT1ZFUl9RVU9UQRABEh0KGUVSUk9SX0NPREVfRE9TX0FQSV9ERU5JQUwQAhIWChJFUlJPUl9DT0RFX1RJTUVPVVQQAxoCEAE='); + 'CgxFcnJvckhhbmRsZXISTgoKZXJyb3JfY29kZRgBIAEoDjIvLmdvb2dsZS5hcHBlbmdpbmUudj' + 'FiZXRhLkVycm9ySGFuZGxlci5FcnJvckNvZGVSCWVycm9yQ29kZRIfCgtzdGF0aWNfZmlsZRgC' + 'IAEoCVIKc3RhdGljRmlsZRIbCgltaW1lX3R5cGUYAyABKAlSCG1pbWVUeXBlIpUBCglFcnJvck' + 'NvZGUSGgoWRVJST1JfQ09ERV9VTlNQRUNJRklFRBAAEhYKEkVSUk9SX0NPREVfREVGQVVMVBAA' + 'EhkKFUVSUk9SX0NPREVfT1ZFUl9RVU9UQRABEh0KGUVSUk9SX0NPREVfRE9TX0FQSV9ERU5JQU' + 'wQAhIWChJFUlJPUl9DT0RFX1RJTUVPVVQQAxoCEAE='); + @$core.Deprecated('Use urlMapDescriptor instead') const UrlMap$json = { '1': 'UrlMap', @@ -207,7 +231,23 @@ const UrlMap_RedirectHttpResponseCode$json = { /// Descriptor for `UrlMap`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List urlMapDescriptor = $convert.base64Decode( - 'CgZVcmxNYXASGwoJdXJsX3JlZ2V4GAEgASgJUgh1cmxSZWdleBJQCgxzdGF0aWNfZmlsZXMYAiABKAsyKy5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5TdGF0aWNGaWxlc0hhbmRsZXJIAFILc3RhdGljRmlsZXMSQAoGc2NyaXB0GAMgASgLMiYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuU2NyaXB0SGFuZGxlckgAUgZzY3JpcHQSUAoMYXBpX2VuZHBvaW50GAQgASgLMisuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQXBpRW5kcG9pbnRIYW5kbGVySABSC2FwaUVuZHBvaW50Ek0KDnNlY3VyaXR5X2xldmVsGAUgASgOMiYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuU2VjdXJpdHlMZXZlbFINc2VjdXJpdHlMZXZlbBI/CgVsb2dpbhgGIAEoDjIpLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkxvZ2luUmVxdWlyZW1lbnRSBWxvZ2luElEKEGF1dGhfZmFpbF9hY3Rpb24YByABKA4yJy5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5BdXRoRmFpbEFjdGlvblIOYXV0aEZhaWxBY3Rpb24SdwobcmVkaXJlY3RfaHR0cF9yZXNwb25zZV9jb2RlGAggASgOMjguZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuVXJsTWFwLlJlZGlyZWN0SHR0cFJlc3BvbnNlQ29kZVIYcmVkaXJlY3RIdHRwUmVzcG9uc2VDb2RlItsBChhSZWRpcmVjdEh0dHBSZXNwb25zZUNvZGUSKwonUkVESVJFQ1RfSFRUUF9SRVNQT05TRV9DT0RFX1VOU1BFQ0lGSUVEEAASIwofUkVESVJFQ1RfSFRUUF9SRVNQT05TRV9DT0RFXzMwMRABEiMKH1JFRElSRUNUX0hUVFBfUkVTUE9OU0VfQ09ERV8zMDIQAhIjCh9SRURJUkVDVF9IVFRQX1JFU1BPTlNFX0NPREVfMzAzEAMSIwofUkVESVJFQ1RfSFRUUF9SRVNQT05TRV9DT0RFXzMwNxAEQg4KDGhhbmRsZXJfdHlwZQ=='); + 'CgZVcmxNYXASGwoJdXJsX3JlZ2V4GAEgASgJUgh1cmxSZWdleBJQCgxzdGF0aWNfZmlsZXMYAi' + 'ABKAsyKy5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5TdGF0aWNGaWxlc0hhbmRsZXJIAFILc3Rh' + 'dGljRmlsZXMSQAoGc2NyaXB0GAMgASgLMiYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuU2NyaX' + 'B0SGFuZGxlckgAUgZzY3JpcHQSUAoMYXBpX2VuZHBvaW50GAQgASgLMisuZ29vZ2xlLmFwcGVu' + 'Z2luZS52MWJldGEuQXBpRW5kcG9pbnRIYW5kbGVySABSC2FwaUVuZHBvaW50Ek0KDnNlY3VyaX' + 'R5X2xldmVsGAUgASgOMiYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuU2VjdXJpdHlMZXZlbFIN' + 'c2VjdXJpdHlMZXZlbBI/CgVsb2dpbhgGIAEoDjIpLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLk' + 'xvZ2luUmVxdWlyZW1lbnRSBWxvZ2luElEKEGF1dGhfZmFpbF9hY3Rpb24YByABKA4yJy5nb29n' + 'bGUuYXBwZW5naW5lLnYxYmV0YS5BdXRoRmFpbEFjdGlvblIOYXV0aEZhaWxBY3Rpb24Sdwobcm' + 'VkaXJlY3RfaHR0cF9yZXNwb25zZV9jb2RlGAggASgOMjguZ29vZ2xlLmFwcGVuZ2luZS52MWJl' + 'dGEuVXJsTWFwLlJlZGlyZWN0SHR0cFJlc3BvbnNlQ29kZVIYcmVkaXJlY3RIdHRwUmVzcG9uc2' + 'VDb2RlItsBChhSZWRpcmVjdEh0dHBSZXNwb25zZUNvZGUSKwonUkVESVJFQ1RfSFRUUF9SRVNQ' + 'T05TRV9DT0RFX1VOU1BFQ0lGSUVEEAASIwofUkVESVJFQ1RfSFRUUF9SRVNQT05TRV9DT0RFXz' + 'MwMRABEiMKH1JFRElSRUNUX0hUVFBfUkVTUE9OU0VfQ09ERV8zMDIQAhIjCh9SRURJUkVDVF9I' + 'VFRQX1JFU1BPTlNFX0NPREVfMzAzEAMSIwofUkVESVJFQ1RfSFRUUF9SRVNQT05TRV9DT0RFXz' + 'MwNxAEQg4KDGhhbmRsZXJfdHlwZQ=='); + @$core.Deprecated('Use staticFilesHandlerDescriptor instead') const StaticFilesHandler$json = { '1': 'StaticFilesHandler', @@ -261,7 +301,15 @@ const StaticFilesHandler_HttpHeadersEntry$json = { /// Descriptor for `StaticFilesHandler`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List staticFilesHandlerDescriptor = $convert.base64Decode( - 'ChJTdGF0aWNGaWxlc0hhbmRsZXISEgoEcGF0aBgBIAEoCVIEcGF0aBIqChF1cGxvYWRfcGF0aF9yZWdleBgCIAEoCVIPdXBsb2FkUGF0aFJlZ2V4El8KDGh0dHBfaGVhZGVycxgDIAMoCzI8Lmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlN0YXRpY0ZpbGVzSGFuZGxlci5IdHRwSGVhZGVyc0VudHJ5UgtodHRwSGVhZGVycxIbCgltaW1lX3R5cGUYBCABKAlSCG1pbWVUeXBlEjkKCmV4cGlyYXRpb24YBSABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SCmV4cGlyYXRpb24SMgoVcmVxdWlyZV9tYXRjaGluZ19maWxlGAYgASgIUhNyZXF1aXJlTWF0Y2hpbmdGaWxlEjEKFGFwcGxpY2F0aW9uX3JlYWRhYmxlGAcgASgIUhNhcHBsaWNhdGlvblJlYWRhYmxlGj4KEEh0dHBIZWFkZXJzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + 'ChJTdGF0aWNGaWxlc0hhbmRsZXISEgoEcGF0aBgBIAEoCVIEcGF0aBIqChF1cGxvYWRfcGF0aF' + '9yZWdleBgCIAEoCVIPdXBsb2FkUGF0aFJlZ2V4El8KDGh0dHBfaGVhZGVycxgDIAMoCzI8Lmdv' + 'b2dsZS5hcHBlbmdpbmUudjFiZXRhLlN0YXRpY0ZpbGVzSGFuZGxlci5IdHRwSGVhZGVyc0VudH' + 'J5UgtodHRwSGVhZGVycxIbCgltaW1lX3R5cGUYBCABKAlSCG1pbWVUeXBlEjkKCmV4cGlyYXRp' + 'b24YBSABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SCmV4cGlyYXRpb24SMgoVcmVxdW' + 'lyZV9tYXRjaGluZ19maWxlGAYgASgIUhNyZXF1aXJlTWF0Y2hpbmdGaWxlEjEKFGFwcGxpY2F0' + 'aW9uX3JlYWRhYmxlGAcgASgIUhNhcHBsaWNhdGlvblJlYWRhYmxlGj4KEEh0dHBIZWFkZXJzRW' + '50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + @$core.Deprecated('Use scriptHandlerDescriptor instead') const ScriptHandler$json = { '1': 'ScriptHandler', @@ -273,6 +321,7 @@ const ScriptHandler$json = { /// Descriptor for `ScriptHandler`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List scriptHandlerDescriptor = $convert.base64Decode( 'Cg1TY3JpcHRIYW5kbGVyEh8KC3NjcmlwdF9wYXRoGAEgASgJUgpzY3JpcHRQYXRo'); + @$core.Deprecated('Use apiEndpointHandlerDescriptor instead') const ApiEndpointHandler$json = { '1': 'ApiEndpointHandler', @@ -284,6 +333,7 @@ const ApiEndpointHandler$json = { /// Descriptor for `ApiEndpointHandler`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List apiEndpointHandlerDescriptor = $convert.base64Decode( 'ChJBcGlFbmRwb2ludEhhbmRsZXISHwoLc2NyaXB0X3BhdGgYASABKAlSCnNjcmlwdFBhdGg='); + @$core.Deprecated('Use healthCheckDescriptor instead') const HealthCheck$json = { '1': 'HealthCheck', @@ -338,7 +388,14 @@ const HealthCheck$json = { /// Descriptor for `HealthCheck`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List healthCheckDescriptor = $convert.base64Decode( - 'CgtIZWFsdGhDaGVjaxIwChRkaXNhYmxlX2hlYWx0aF9jaGVjaxgBIAEoCFISZGlzYWJsZUhlYWx0aENoZWNrEhIKBGhvc3QYAiABKAlSBGhvc3QSKwoRaGVhbHRoeV90aHJlc2hvbGQYAyABKA1SEGhlYWx0aHlUaHJlc2hvbGQSLwoTdW5oZWFsdGh5X3RocmVzaG9sZBgEIAEoDVISdW5oZWFsdGh5VGhyZXNob2xkEisKEXJlc3RhcnRfdGhyZXNob2xkGAUgASgNUhByZXN0YXJ0VGhyZXNob2xkEkAKDmNoZWNrX2ludGVydmFsGAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUg1jaGVja0ludGVydmFsEjMKB3RpbWVvdXQYByABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SB3RpbWVvdXQ='); + 'CgtIZWFsdGhDaGVjaxIwChRkaXNhYmxlX2hlYWx0aF9jaGVjaxgBIAEoCFISZGlzYWJsZUhlYW' + 'x0aENoZWNrEhIKBGhvc3QYAiABKAlSBGhvc3QSKwoRaGVhbHRoeV90aHJlc2hvbGQYAyABKA1S' + 'EGhlYWx0aHlUaHJlc2hvbGQSLwoTdW5oZWFsdGh5X3RocmVzaG9sZBgEIAEoDVISdW5oZWFsdG' + 'h5VGhyZXNob2xkEisKEXJlc3RhcnRfdGhyZXNob2xkGAUgASgNUhByZXN0YXJ0VGhyZXNob2xk' + 'EkAKDmNoZWNrX2ludGVydmFsGAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUg1jaG' + 'Vja0ludGVydmFsEjMKB3RpbWVvdXQYByABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25S' + 'B3RpbWVvdXQ='); + @$core.Deprecated('Use readinessCheckDescriptor instead') const ReadinessCheck$json = { '1': 'ReadinessCheck', @@ -388,7 +445,14 @@ const ReadinessCheck$json = { /// Descriptor for `ReadinessCheck`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List readinessCheckDescriptor = $convert.base64Decode( - 'Cg5SZWFkaW5lc3NDaGVjaxISCgRwYXRoGAEgASgJUgRwYXRoEhIKBGhvc3QYAiABKAlSBGhvc3QSKwoRZmFpbHVyZV90aHJlc2hvbGQYAyABKA1SEGZhaWx1cmVUaHJlc2hvbGQSKwoRc3VjY2Vzc190aHJlc2hvbGQYBCABKA1SEHN1Y2Nlc3NUaHJlc2hvbGQSQAoOY2hlY2tfaW50ZXJ2YWwYBSABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDWNoZWNrSW50ZXJ2YWwSMwoHdGltZW91dBgGIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIHdGltZW91dBJFChFhcHBfc3RhcnRfdGltZW91dBgHIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIPYXBwU3RhcnRUaW1lb3V0'); + 'Cg5SZWFkaW5lc3NDaGVjaxISCgRwYXRoGAEgASgJUgRwYXRoEhIKBGhvc3QYAiABKAlSBGhvc3' + 'QSKwoRZmFpbHVyZV90aHJlc2hvbGQYAyABKA1SEGZhaWx1cmVUaHJlc2hvbGQSKwoRc3VjY2Vz' + 'c190aHJlc2hvbGQYBCABKA1SEHN1Y2Nlc3NUaHJlc2hvbGQSQAoOY2hlY2tfaW50ZXJ2YWwYBS' + 'ABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDWNoZWNrSW50ZXJ2YWwSMwoHdGltZW91' + 'dBgGIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIHdGltZW91dBJFChFhcHBfc3Rhcn' + 'RfdGltZW91dBgHIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIPYXBwU3RhcnRUaW1l' + 'b3V0'); + @$core.Deprecated('Use livenessCheckDescriptor instead') const LivenessCheck$json = { '1': 'LivenessCheck', @@ -438,7 +502,13 @@ const LivenessCheck$json = { /// Descriptor for `LivenessCheck`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List livenessCheckDescriptor = $convert.base64Decode( - 'Cg1MaXZlbmVzc0NoZWNrEhIKBHBhdGgYASABKAlSBHBhdGgSEgoEaG9zdBgCIAEoCVIEaG9zdBIrChFmYWlsdXJlX3RocmVzaG9sZBgDIAEoDVIQZmFpbHVyZVRocmVzaG9sZBIrChFzdWNjZXNzX3RocmVzaG9sZBgEIAEoDVIQc3VjY2Vzc1RocmVzaG9sZBJACg5jaGVja19pbnRlcnZhbBgFIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblINY2hlY2tJbnRlcnZhbBIzCgd0aW1lb3V0GAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgd0aW1lb3V0Ej4KDWluaXRpYWxfZGVsYXkYByABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDGluaXRpYWxEZWxheQ=='); + 'Cg1MaXZlbmVzc0NoZWNrEhIKBHBhdGgYASABKAlSBHBhdGgSEgoEaG9zdBgCIAEoCVIEaG9zdB' + 'IrChFmYWlsdXJlX3RocmVzaG9sZBgDIAEoDVIQZmFpbHVyZVRocmVzaG9sZBIrChFzdWNjZXNz' + 'X3RocmVzaG9sZBgEIAEoDVIQc3VjY2Vzc1RocmVzaG9sZBJACg5jaGVja19pbnRlcnZhbBgFIA' + 'EoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblINY2hlY2tJbnRlcnZhbBIzCgd0aW1lb3V0' + 'GAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgd0aW1lb3V0Ej4KDWluaXRpYWxfZG' + 'VsYXkYByABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDGluaXRpYWxEZWxheQ=='); + @$core.Deprecated('Use libraryDescriptor instead') const Library$json = { '1': 'Library', @@ -450,4 +520,5 @@ const Library$json = { /// Descriptor for `Library`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List libraryDescriptor = $convert.base64Decode( - 'CgdMaWJyYXJ5EhIKBG5hbWUYASABKAlSBG5hbWUSGAoHdmVyc2lvbhgCIAEoCVIHdmVyc2lvbg=='); + 'CgdMaWJyYXJ5EhIKBG5hbWUYASABKAlSBG5hbWUSGAoHdmVyc2lvbhgCIAEoCVIHdmVyc2lvbg' + '=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pb.dart index fa7c5c35..e7ed9bb9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pb.dart @@ -1,61 +1,58 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/appengine.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/field_mask.pb.dart' as $58; +import 'appengine.pbenum.dart'; import 'application.pb.dart' as $3; -import '../../protobuf/field_mask.pb.dart' as $10; -import 'service.pb.dart' as $4; -import 'version.pb.dart' as $5; -import 'instance.pb.dart' as $6; -import 'firewall.pb.dart' as $7; -import 'domain.pb.dart' as $11; import 'certificate.pb.dart' as $8; +import 'domain.pb.dart' as $59; import 'domain_mapping.pb.dart' as $9; - -import 'appengine.pbenum.dart'; +import 'firewall.pb.dart' as $7; +import 'instance.pb.dart' as $6; +import 'service.pb.dart' as $4; +import 'version.pb.dart' as $5; export 'appengine.pbenum.dart'; +/// Request message for `Applications.GetApplication`. class GetApplicationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetApplicationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetApplicationRequest._() : super(); factory GetApplicationRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetApplicationRequest._() : super(); factory GetApplicationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetApplicationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetApplicationRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -67,8 +64,10 @@ class GetApplicationRequest extends $pb.GeneratedMessage { GetApplicationRequest copyWith( void Function(GetApplicationRequest) updates) => super.copyWith((message) => updates(message as GetApplicationRequest)) - as GetApplicationRequest; // ignore: deprecated_member_use + as GetApplicationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetApplicationRequest create() => GetApplicationRequest._(); GetApplicationRequest createEmptyInstance() => create(); @@ -79,6 +78,7 @@ class GetApplicationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetApplicationRequest? _defaultInstance; + /// Name of the Application resource to get. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -92,40 +92,34 @@ class GetApplicationRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Applications.CreateApplication`. class CreateApplicationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateApplicationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOM<$3.Application>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'application', - subBuilder: $3.Application.create) - ..hasRequiredFields = false; - - CreateApplicationRequest._() : super(); factory CreateApplicationRequest({ $3.Application? application, }) { - final _result = create(); + final $result = create(); if (application != null) { - _result.application = application; + $result.application = application; } - return _result; + return $result; } + CreateApplicationRequest._() : super(); factory CreateApplicationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateApplicationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateApplicationRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOM<$3.Application>(2, _omitFieldNames ? '' : 'application', + subBuilder: $3.Application.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') @@ -137,8 +131,10 @@ class CreateApplicationRequest extends $pb.GeneratedMessage { CreateApplicationRequest copyWith( void Function(CreateApplicationRequest) updates) => super.copyWith((message) => updates(message as CreateApplicationRequest)) - as CreateApplicationRequest; // ignore: deprecated_member_use + as CreateApplicationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateApplicationRequest create() => CreateApplicationRequest._(); CreateApplicationRequest createEmptyInstance() => create(); @@ -149,6 +145,7 @@ class CreateApplicationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateApplicationRequest? _defaultInstance; + /// Application configuration. @$pb.TagNumber(2) $3.Application get application => $_getN(0); @$pb.TagNumber(2) @@ -164,53 +161,45 @@ class CreateApplicationRequest extends $pb.GeneratedMessage { $3.Application ensureApplication() => $_ensure(0); } +/// Request message for `Applications.UpdateApplication`. class UpdateApplicationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateApplicationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$3.Application>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'application', - subBuilder: $3.Application.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..hasRequiredFields = false; - - UpdateApplicationRequest._() : super(); factory UpdateApplicationRequest({ $core.String? name, $3.Application? application, - $10.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (application != null) { - _result.application = application; + $result.application = application; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateApplicationRequest._() : super(); factory UpdateApplicationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateApplicationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateApplicationRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$3.Application>(2, _omitFieldNames ? '' : 'application', + subBuilder: $3.Application.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -222,8 +211,10 @@ class UpdateApplicationRequest extends $pb.GeneratedMessage { UpdateApplicationRequest copyWith( void Function(UpdateApplicationRequest) updates) => super.copyWith((message) => updates(message as UpdateApplicationRequest)) - as UpdateApplicationRequest; // ignore: deprecated_member_use + as UpdateApplicationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateApplicationRequest create() => UpdateApplicationRequest._(); UpdateApplicationRequest createEmptyInstance() => create(); @@ -234,6 +225,7 @@ class UpdateApplicationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateApplicationRequest? _defaultInstance; + /// Name of the Application resource to update. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -246,6 +238,7 @@ class UpdateApplicationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// An Application containing the updated resource. @$pb.TagNumber(2) $3.Application get application => $_getN(1); @$pb.TagNumber(2) @@ -260,10 +253,11 @@ class UpdateApplicationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $3.Application ensureApplication() => $_ensure(1); + /// Standard field mask for the set of fields to be updated. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -272,42 +266,36 @@ class UpdateApplicationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for 'Applications.RepairApplication'. class RepairApplicationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RepairApplicationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - RepairApplicationRequest._() : super(); factory RepairApplicationRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + RepairApplicationRequest._() : super(); factory RepairApplicationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RepairApplicationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RepairApplicationRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -319,8 +307,10 @@ class RepairApplicationRequest extends $pb.GeneratedMessage { RepairApplicationRequest copyWith( void Function(RepairApplicationRequest) updates) => super.copyWith((message) => updates(message as RepairApplicationRequest)) - as RepairApplicationRequest; // ignore: deprecated_member_use + as RepairApplicationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RepairApplicationRequest create() => RepairApplicationRequest._(); RepairApplicationRequest createEmptyInstance() => create(); @@ -331,6 +321,7 @@ class RepairApplicationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static RepairApplicationRequest? _defaultInstance; + /// Name of the application to repair. Example: `apps/myapp` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -344,58 +335,43 @@ class RepairApplicationRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Services.ListServices`. class ListServicesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServicesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListServicesRequest._() : super(); factory ListServicesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListServicesRequest._() : super(); factory ListServicesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServicesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServicesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -405,8 +381,10 @@ class ListServicesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListServicesRequest copyWith(void Function(ListServicesRequest) updates) => super.copyWith((message) => updates(message as ListServicesRequest)) - as ListServicesRequest; // ignore: deprecated_member_use + as ListServicesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServicesRequest create() => ListServicesRequest._(); ListServicesRequest createEmptyInstance() => create(); @@ -417,6 +395,7 @@ class ListServicesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServicesRequest? _defaultInstance; + /// Name of the parent Application resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -429,6 +408,7 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -441,6 +421,7 @@ class ListServicesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -454,47 +435,39 @@ class ListServicesRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// Response message for `Services.ListServices`. class ListServicesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServicesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..pc<$4.Service>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'services', - $pb.PbFieldType.PM, - subBuilder: $4.Service.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListServicesResponse._() : super(); factory ListServicesResponse({ $core.Iterable<$4.Service>? services, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (services != null) { - _result.services.addAll(services); + $result.services.addAll(services); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListServicesResponse._() : super(); factory ListServicesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServicesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServicesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..pc<$4.Service>(1, _omitFieldNames ? '' : 'services', $pb.PbFieldType.PM, + subBuilder: $4.Service.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -505,8 +478,10 @@ class ListServicesResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListServicesResponse copyWith(void Function(ListServicesResponse) updates) => super.copyWith((message) => updates(message as ListServicesResponse)) - as ListServicesResponse; // ignore: deprecated_member_use + as ListServicesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServicesResponse create() => ListServicesResponse._(); ListServicesResponse createEmptyInstance() => create(); @@ -517,9 +492,11 @@ class ListServicesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServicesResponse? _defaultInstance; + /// The services belonging to the requested application. @$pb.TagNumber(1) $core.List<$4.Service> get services => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -533,39 +510,33 @@ class ListServicesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `Services.GetService`. class GetServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetServiceRequest._() : super(); factory GetServiceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetServiceRequest._() : super(); factory GetServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -575,8 +546,10 @@ class GetServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetServiceRequest copyWith(void Function(GetServiceRequest) updates) => super.copyWith((message) => updates(message as GetServiceRequest)) - as GetServiceRequest; // ignore: deprecated_member_use + as GetServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceRequest create() => GetServiceRequest._(); GetServiceRequest createEmptyInstance() => create(); @@ -587,6 +560,7 @@ class GetServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceRequest? _defaultInstance; + /// Name of the resource requested. Example: `apps/myapp/services/default`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -600,58 +574,50 @@ class GetServiceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Services.UpdateService`. class UpdateServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$4.Service>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'service', - subBuilder: $4.Service.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'migrateTraffic') - ..hasRequiredFields = false; - - UpdateServiceRequest._() : super(); factory UpdateServiceRequest({ $core.String? name, $4.Service? service, - $10.FieldMask? updateMask, + $58.FieldMask? updateMask, $core.bool? migrateTraffic, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (service != null) { - _result.service = service; + $result.service = service; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } if (migrateTraffic != null) { - _result.migrateTraffic = migrateTraffic; + $result.migrateTraffic = migrateTraffic; } - return _result; + return $result; } + UpdateServiceRequest._() : super(); factory UpdateServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$4.Service>(2, _omitFieldNames ? '' : 'service', + subBuilder: $4.Service.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.create) + ..aOB(4, _omitFieldNames ? '' : 'migrateTraffic') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -662,8 +628,10 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') UpdateServiceRequest copyWith(void Function(UpdateServiceRequest) updates) => super.copyWith((message) => updates(message as UpdateServiceRequest)) - as UpdateServiceRequest; // ignore: deprecated_member_use + as UpdateServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateServiceRequest create() => UpdateServiceRequest._(); UpdateServiceRequest createEmptyInstance() => create(); @@ -674,6 +642,7 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateServiceRequest? _defaultInstance; + /// Name of the resource to update. Example: `apps/myapp/services/default`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -686,6 +655,8 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A Service resource containing the updated service. Only fields set in the + /// field mask will be updated. @$pb.TagNumber(2) $4.Service get service => $_getN(1); @$pb.TagNumber(2) @@ -700,10 +671,11 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $4.Service ensureService() => $_ensure(1); + /// Standard field mask for the set of fields to be updated. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -712,8 +684,20 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); - + $58.FieldMask ensureUpdateMask() => $_ensure(2); + + /// Set to `true` to gradually shift traffic to one or more versions that you + /// specify. By default, traffic is shifted immediately. + /// For gradual traffic migration, the target versions + /// must be located within instances that are configured for both + /// [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#InboundServiceType) + /// and + /// [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#AutomaticScaling). + /// You must specify the + /// [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services#ShardBy) + /// field in the Service resource. Gradual traffic migration is not + /// supported in the App Engine flexible environment. For examples, see + /// [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). @$pb.TagNumber(4) $core.bool get migrateTraffic => $_getBF(3); @$pb.TagNumber(4) @@ -727,39 +711,33 @@ class UpdateServiceRequest extends $pb.GeneratedMessage { void clearMigrateTraffic() => clearField(4); } +/// Request message for `Services.DeleteService`. class DeleteServiceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteServiceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteServiceRequest._() : super(); factory DeleteServiceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteServiceRequest._() : super(); factory DeleteServiceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteServiceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteServiceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -770,8 +748,10 @@ class DeleteServiceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteServiceRequest copyWith(void Function(DeleteServiceRequest) updates) => super.copyWith((message) => updates(message as DeleteServiceRequest)) - as DeleteServiceRequest; // ignore: deprecated_member_use + as DeleteServiceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteServiceRequest create() => DeleteServiceRequest._(); DeleteServiceRequest createEmptyInstance() => create(); @@ -782,6 +762,7 @@ class DeleteServiceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteServiceRequest? _defaultInstance; + /// Name of the resource requested. Example: `apps/myapp/services/default`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -795,63 +776,51 @@ class DeleteServiceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Versions.ListVersions`. class ListVersionsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListVersionsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..e( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'view', $pb.PbFieldType.OE, - defaultOrMaker: VersionView.BASIC, - valueOf: VersionView.valueOf, - enumValues: VersionView.values) - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pageToken') - ..hasRequiredFields = false; - - ListVersionsRequest._() : super(); factory ListVersionsRequest({ $core.String? parent, VersionView? view, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (view != null) { - _result.view = view; + $result.view = view; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListVersionsRequest._() : super(); factory ListVersionsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListVersionsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListVersionsRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..e(2, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: VersionView.BASIC, + valueOf: VersionView.valueOf, + enumValues: VersionView.values) + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(4, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -861,8 +830,10 @@ class ListVersionsRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListVersionsRequest copyWith(void Function(ListVersionsRequest) updates) => super.copyWith((message) => updates(message as ListVersionsRequest)) - as ListVersionsRequest; // ignore: deprecated_member_use + as ListVersionsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListVersionsRequest create() => ListVersionsRequest._(); ListVersionsRequest createEmptyInstance() => create(); @@ -873,6 +844,8 @@ class ListVersionsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListVersionsRequest? _defaultInstance; + /// Name of the parent Service resource. Example: + /// `apps/myapp/services/default`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -885,6 +858,7 @@ class ListVersionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Controls the set of fields returned in the `List` response. @$pb.TagNumber(2) VersionView get view => $_getN(1); @$pb.TagNumber(2) @@ -897,6 +871,7 @@ class ListVersionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearView() => clearField(2); + /// Maximum results to return per page. @$pb.TagNumber(3) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(3) @@ -909,6 +884,7 @@ class ListVersionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageSize() => clearField(3); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(4) $core.String get pageToken => $_getSZ(3); @$pb.TagNumber(4) @@ -922,47 +898,39 @@ class ListVersionsRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(4); } +/// Response message for `Versions.ListVersions`. class ListVersionsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListVersionsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..pc<$5.Version>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'versions', - $pb.PbFieldType.PM, - subBuilder: $5.Version.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListVersionsResponse._() : super(); factory ListVersionsResponse({ $core.Iterable<$5.Version>? versions, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (versions != null) { - _result.versions.addAll(versions); + $result.versions.addAll(versions); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListVersionsResponse._() : super(); factory ListVersionsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListVersionsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListVersionsResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..pc<$5.Version>(1, _omitFieldNames ? '' : 'versions', $pb.PbFieldType.PM, + subBuilder: $5.Version.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -973,8 +941,10 @@ class ListVersionsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListVersionsResponse copyWith(void Function(ListVersionsResponse) updates) => super.copyWith((message) => updates(message as ListVersionsResponse)) - as ListVersionsResponse; // ignore: deprecated_member_use + as ListVersionsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListVersionsResponse create() => ListVersionsResponse._(); ListVersionsResponse createEmptyInstance() => create(); @@ -985,9 +955,11 @@ class ListVersionsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListVersionsResponse? _defaultInstance; + /// The versions belonging to the requested service. @$pb.TagNumber(1) $core.List<$5.Version> get versions => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1001,52 +973,41 @@ class ListVersionsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `Versions.GetVersion`. class GetVersionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetVersionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'view', - $pb.PbFieldType.OE, - defaultOrMaker: VersionView.BASIC, - valueOf: VersionView.valueOf, - enumValues: VersionView.values) - ..hasRequiredFields = false; - - GetVersionRequest._() : super(); factory GetVersionRequest({ $core.String? name, VersionView? view, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + GetVersionRequest._() : super(); factory GetVersionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetVersionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetVersionRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e(2, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: VersionView.BASIC, + valueOf: VersionView.valueOf, + enumValues: VersionView.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1056,8 +1017,10 @@ class GetVersionRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetVersionRequest copyWith(void Function(GetVersionRequest) updates) => super.copyWith((message) => updates(message as GetVersionRequest)) - as GetVersionRequest; // ignore: deprecated_member_use + as GetVersionRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetVersionRequest create() => GetVersionRequest._(); GetVersionRequest createEmptyInstance() => create(); @@ -1068,6 +1031,8 @@ class GetVersionRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetVersionRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/services/default/versions/v1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1080,6 +1045,7 @@ class GetVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Controls the set of fields returned in the `Get` response. @$pb.TagNumber(2) VersionView get view => $_getN(1); @$pb.TagNumber(2) @@ -1093,49 +1059,39 @@ class GetVersionRequest extends $pb.GeneratedMessage { void clearView() => clearField(2); } +/// Request message for `Versions.CreateVersion`. class CreateVersionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateVersionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$5.Version>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version', - subBuilder: $5.Version.create) - ..hasRequiredFields = false; - - CreateVersionRequest._() : super(); factory CreateVersionRequest({ $core.String? parent, $5.Version? version, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (version != null) { - _result.version = version; + $result.version = version; } - return _result; + return $result; } + CreateVersionRequest._() : super(); factory CreateVersionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateVersionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateVersionRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$5.Version>(2, _omitFieldNames ? '' : 'version', + subBuilder: $5.Version.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') @@ -1146,8 +1102,10 @@ class CreateVersionRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CreateVersionRequest copyWith(void Function(CreateVersionRequest) updates) => super.copyWith((message) => updates(message as CreateVersionRequest)) - as CreateVersionRequest; // ignore: deprecated_member_use + as CreateVersionRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateVersionRequest create() => CreateVersionRequest._(); CreateVersionRequest createEmptyInstance() => create(); @@ -1158,6 +1116,8 @@ class CreateVersionRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateVersionRequest? _defaultInstance; + /// Name of the parent resource to create this version under. Example: + /// `apps/myapp/services/default`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1170,6 +1130,7 @@ class CreateVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Application deployment configuration. @$pb.TagNumber(2) $5.Version get version => $_getN(1); @$pb.TagNumber(2) @@ -1185,53 +1146,45 @@ class CreateVersionRequest extends $pb.GeneratedMessage { $5.Version ensureVersion() => $_ensure(1); } +/// Request message for `Versions.UpdateVersion`. class UpdateVersionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateVersionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$5.Version>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version', - subBuilder: $5.Version.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..hasRequiredFields = false; - - UpdateVersionRequest._() : super(); factory UpdateVersionRequest({ $core.String? name, $5.Version? version, - $10.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (version != null) { - _result.version = version; + $result.version = version; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateVersionRequest._() : super(); factory UpdateVersionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateVersionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateVersionRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$5.Version>(2, _omitFieldNames ? '' : 'version', + subBuilder: $5.Version.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -1242,8 +1195,10 @@ class UpdateVersionRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') UpdateVersionRequest copyWith(void Function(UpdateVersionRequest) updates) => super.copyWith((message) => updates(message as UpdateVersionRequest)) - as UpdateVersionRequest; // ignore: deprecated_member_use + as UpdateVersionRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateVersionRequest create() => UpdateVersionRequest._(); UpdateVersionRequest createEmptyInstance() => create(); @@ -1254,6 +1209,8 @@ class UpdateVersionRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateVersionRequest? _defaultInstance; + /// Name of the resource to update. Example: + /// `apps/myapp/services/default/versions/1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1266,6 +1223,8 @@ class UpdateVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A Version containing the updated resource. Only fields set in the field + /// mask will be updated. @$pb.TagNumber(2) $5.Version get version => $_getN(1); @$pb.TagNumber(2) @@ -1280,10 +1239,11 @@ class UpdateVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $5.Version ensureVersion() => $_ensure(1); + /// Standard field mask for the set of fields to be updated. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -1292,42 +1252,36 @@ class UpdateVersionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for `Versions.DeleteVersion`. class DeleteVersionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteVersionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteVersionRequest._() : super(); factory DeleteVersionRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteVersionRequest._() : super(); factory DeleteVersionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteVersionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteVersionRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1338,8 +1292,10 @@ class DeleteVersionRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteVersionRequest copyWith(void Function(DeleteVersionRequest) updates) => super.copyWith((message) => updates(message as DeleteVersionRequest)) - as DeleteVersionRequest; // ignore: deprecated_member_use + as DeleteVersionRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteVersionRequest create() => DeleteVersionRequest._(); DeleteVersionRequest createEmptyInstance() => create(); @@ -1350,6 +1306,8 @@ class DeleteVersionRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteVersionRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/services/default/versions/v1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1363,58 +1321,43 @@ class DeleteVersionRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Instances.ListInstances`. class ListInstancesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListInstancesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListInstancesRequest._() : super(); factory ListInstancesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListInstancesRequest._() : super(); factory ListInstancesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListInstancesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListInstancesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1425,8 +1368,10 @@ class ListInstancesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListInstancesRequest copyWith(void Function(ListInstancesRequest) updates) => super.copyWith((message) => updates(message as ListInstancesRequest)) - as ListInstancesRequest; // ignore: deprecated_member_use + as ListInstancesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListInstancesRequest create() => ListInstancesRequest._(); ListInstancesRequest createEmptyInstance() => create(); @@ -1437,6 +1382,8 @@ class ListInstancesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListInstancesRequest? _defaultInstance; + /// Name of the parent Version resource. Example: + /// `apps/myapp/services/default/versions/v1`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1449,6 +1396,7 @@ class ListInstancesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -1461,6 +1409,7 @@ class ListInstancesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -1474,47 +1423,39 @@ class ListInstancesRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// Response message for `Instances.ListInstances`. class ListInstancesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListInstancesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..pc<$6.Instance>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'instances', - $pb.PbFieldType.PM, - subBuilder: $6.Instance.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListInstancesResponse._() : super(); factory ListInstancesResponse({ $core.Iterable<$6.Instance>? instances, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (instances != null) { - _result.instances.addAll(instances); + $result.instances.addAll(instances); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListInstancesResponse._() : super(); factory ListInstancesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListInstancesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListInstancesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..pc<$6.Instance>(1, _omitFieldNames ? '' : 'instances', $pb.PbFieldType.PM, + subBuilder: $6.Instance.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1526,8 +1467,10 @@ class ListInstancesResponse extends $pb.GeneratedMessage { ListInstancesResponse copyWith( void Function(ListInstancesResponse) updates) => super.copyWith((message) => updates(message as ListInstancesResponse)) - as ListInstancesResponse; // ignore: deprecated_member_use + as ListInstancesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListInstancesResponse create() => ListInstancesResponse._(); ListInstancesResponse createEmptyInstance() => create(); @@ -1538,9 +1481,11 @@ class ListInstancesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListInstancesResponse? _defaultInstance; + /// The instances belonging to the requested version. @$pb.TagNumber(1) $core.List<$6.Instance> get instances => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1554,39 +1499,33 @@ class ListInstancesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `Instances.GetInstance`. class GetInstanceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetInstanceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetInstanceRequest._() : super(); factory GetInstanceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetInstanceRequest._() : super(); factory GetInstanceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetInstanceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetInstanceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1596,8 +1535,10 @@ class GetInstanceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetInstanceRequest copyWith(void Function(GetInstanceRequest) updates) => super.copyWith((message) => updates(message as GetInstanceRequest)) - as GetInstanceRequest; // ignore: deprecated_member_use + as GetInstanceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetInstanceRequest create() => GetInstanceRequest._(); GetInstanceRequest createEmptyInstance() => create(); @@ -1608,6 +1549,8 @@ class GetInstanceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetInstanceRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/services/default/versions/v1/instances/instance-1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1621,39 +1564,33 @@ class GetInstanceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Instances.DeleteInstance`. class DeleteInstanceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteInstanceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteInstanceRequest._() : super(); factory DeleteInstanceRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteInstanceRequest._() : super(); factory DeleteInstanceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteInstanceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteInstanceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1665,8 +1602,10 @@ class DeleteInstanceRequest extends $pb.GeneratedMessage { DeleteInstanceRequest copyWith( void Function(DeleteInstanceRequest) updates) => super.copyWith((message) => updates(message as DeleteInstanceRequest)) - as DeleteInstanceRequest; // ignore: deprecated_member_use + as DeleteInstanceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteInstanceRequest create() => DeleteInstanceRequest._(); DeleteInstanceRequest createEmptyInstance() => create(); @@ -1677,6 +1616,8 @@ class DeleteInstanceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteInstanceRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/services/default/versions/v1/instances/instance-1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1690,48 +1631,38 @@ class DeleteInstanceRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Instances.DebugInstance`. class DebugInstanceRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DebugInstanceRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sshKey') - ..hasRequiredFields = false; - - DebugInstanceRequest._() : super(); factory DebugInstanceRequest({ $core.String? name, $core.String? sshKey, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (sshKey != null) { - _result.sshKey = sshKey; + $result.sshKey = sshKey; } - return _result; + return $result; } + DebugInstanceRequest._() : super(); factory DebugInstanceRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DebugInstanceRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DebugInstanceRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'sshKey') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1742,8 +1673,10 @@ class DebugInstanceRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DebugInstanceRequest copyWith(void Function(DebugInstanceRequest) updates) => super.copyWith((message) => updates(message as DebugInstanceRequest)) - as DebugInstanceRequest; // ignore: deprecated_member_use + as DebugInstanceRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DebugInstanceRequest create() => DebugInstanceRequest._(); DebugInstanceRequest createEmptyInstance() => create(); @@ -1754,6 +1687,8 @@ class DebugInstanceRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DebugInstanceRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/services/default/versions/v1/instances/instance-1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1766,6 +1701,13 @@ class DebugInstanceRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Public SSH key to add to the instance. Examples: + /// + /// * `[USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]` + /// * `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}` + /// + /// For more information, see + /// [Adding and Removing SSH Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). @$pb.TagNumber(2) $core.String get sshKey => $_getSZ(1); @$pb.TagNumber(2) @@ -1779,64 +1721,48 @@ class DebugInstanceRequest extends $pb.GeneratedMessage { void clearSshKey() => clearField(2); } +/// Request message for `Firewall.ListIngressRules`. class ListIngressRulesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListIngressRulesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..aOS( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'matchingAddress') - ..hasRequiredFields = false; - - ListIngressRulesRequest._() : super(); factory ListIngressRulesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, $core.String? matchingAddress, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (matchingAddress != null) { - _result.matchingAddress = matchingAddress; + $result.matchingAddress = matchingAddress; } - return _result; + return $result; } + ListIngressRulesRequest._() : super(); factory ListIngressRulesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListIngressRulesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListIngressRulesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..aOS(4, _omitFieldNames ? '' : 'matchingAddress') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1848,8 +1774,10 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { ListIngressRulesRequest copyWith( void Function(ListIngressRulesRequest) updates) => super.copyWith((message) => updates(message as ListIngressRulesRequest)) - as ListIngressRulesRequest; // ignore: deprecated_member_use + as ListIngressRulesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListIngressRulesRequest create() => ListIngressRulesRequest._(); ListIngressRulesRequest createEmptyInstance() => create(); @@ -1860,6 +1788,8 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListIngressRulesRequest? _defaultInstance; + /// Name of the Firewall collection to retrieve. + /// Example: `apps/myapp/firewall/ingressRules`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1872,6 +1802,7 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -1884,6 +1815,7 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -1896,6 +1828,9 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// A valid IP Address. If set, only rules matching this address will be + /// returned. The first returned rule will be the rule that fires on requests + /// from this IP. @$pb.TagNumber(4) $core.String get matchingAddress => $_getSZ(3); @$pb.TagNumber(4) @@ -1909,47 +1844,40 @@ class ListIngressRulesRequest extends $pb.GeneratedMessage { void clearMatchingAddress() => clearField(4); } +/// Response message for `Firewall.ListIngressRules`. class ListIngressRulesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListIngressRulesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..pc<$7.FirewallRule>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ingressRules', - $pb.PbFieldType.PM, - subBuilder: $7.FirewallRule.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListIngressRulesResponse._() : super(); factory ListIngressRulesResponse({ $core.Iterable<$7.FirewallRule>? ingressRules, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (ingressRules != null) { - _result.ingressRules.addAll(ingressRules); + $result.ingressRules.addAll(ingressRules); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListIngressRulesResponse._() : super(); factory ListIngressRulesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListIngressRulesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListIngressRulesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..pc<$7.FirewallRule>( + 1, _omitFieldNames ? '' : 'ingressRules', $pb.PbFieldType.PM, + subBuilder: $7.FirewallRule.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1961,8 +1889,10 @@ class ListIngressRulesResponse extends $pb.GeneratedMessage { ListIngressRulesResponse copyWith( void Function(ListIngressRulesResponse) updates) => super.copyWith((message) => updates(message as ListIngressRulesResponse)) - as ListIngressRulesResponse; // ignore: deprecated_member_use + as ListIngressRulesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListIngressRulesResponse create() => ListIngressRulesResponse._(); ListIngressRulesResponse createEmptyInstance() => create(); @@ -1973,9 +1903,11 @@ class ListIngressRulesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListIngressRulesResponse? _defaultInstance; + /// The ingress FirewallRules for this application. @$pb.TagNumber(1) $core.List<$7.FirewallRule> get ingressRules => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1989,50 +1921,40 @@ class ListIngressRulesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `Firewall.BatchUpdateIngressRules`. class BatchUpdateIngressRulesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchUpdateIngressRulesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc<$7.FirewallRule>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ingressRules', - $pb.PbFieldType.PM, - subBuilder: $7.FirewallRule.create) - ..hasRequiredFields = false; - - BatchUpdateIngressRulesRequest._() : super(); factory BatchUpdateIngressRulesRequest({ $core.String? name, $core.Iterable<$7.FirewallRule>? ingressRules, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (ingressRules != null) { - _result.ingressRules.addAll(ingressRules); + $result.ingressRules.addAll(ingressRules); } - return _result; + return $result; } + BatchUpdateIngressRulesRequest._() : super(); factory BatchUpdateIngressRulesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BatchUpdateIngressRulesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchUpdateIngressRulesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pc<$7.FirewallRule>( + 2, _omitFieldNames ? '' : 'ingressRules', $pb.PbFieldType.PM, + subBuilder: $7.FirewallRule.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') @@ -2045,8 +1967,10 @@ class BatchUpdateIngressRulesRequest extends $pb.GeneratedMessage { void Function(BatchUpdateIngressRulesRequest) updates) => super.copyWith( (message) => updates(message as BatchUpdateIngressRulesRequest)) - as BatchUpdateIngressRulesRequest; // ignore: deprecated_member_use + as BatchUpdateIngressRulesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchUpdateIngressRulesRequest create() => BatchUpdateIngressRulesRequest._(); @@ -2058,6 +1982,8 @@ class BatchUpdateIngressRulesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BatchUpdateIngressRulesRequest? _defaultInstance; + /// Name of the Firewall collection to set. + /// Example: `apps/myapp/firewall/ingressRules`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2070,45 +1996,40 @@ class BatchUpdateIngressRulesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A list of FirewallRules to replace the existing set. @$pb.TagNumber(2) $core.List<$7.FirewallRule> get ingressRules => $_getList(1); } +/// Response message for `Firewall.UpdateAllIngressRules`. class BatchUpdateIngressRulesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BatchUpdateIngressRulesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..pc<$7.FirewallRule>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ingressRules', - $pb.PbFieldType.PM, - subBuilder: $7.FirewallRule.create) - ..hasRequiredFields = false; - - BatchUpdateIngressRulesResponse._() : super(); factory BatchUpdateIngressRulesResponse({ $core.Iterable<$7.FirewallRule>? ingressRules, }) { - final _result = create(); + final $result = create(); if (ingressRules != null) { - _result.ingressRules.addAll(ingressRules); + $result.ingressRules.addAll(ingressRules); } - return _result; + return $result; } + BatchUpdateIngressRulesResponse._() : super(); factory BatchUpdateIngressRulesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BatchUpdateIngressRulesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BatchUpdateIngressRulesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..pc<$7.FirewallRule>( + 1, _omitFieldNames ? '' : 'ingressRules', $pb.PbFieldType.PM, + subBuilder: $7.FirewallRule.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') @@ -2121,8 +2042,10 @@ class BatchUpdateIngressRulesResponse extends $pb.GeneratedMessage { void Function(BatchUpdateIngressRulesResponse) updates) => super.copyWith( (message) => updates(message as BatchUpdateIngressRulesResponse)) - as BatchUpdateIngressRulesResponse; // ignore: deprecated_member_use + as BatchUpdateIngressRulesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BatchUpdateIngressRulesResponse create() => BatchUpdateIngressRulesResponse._(); @@ -2135,53 +2058,44 @@ class BatchUpdateIngressRulesResponse extends $pb.GeneratedMessage { create); static BatchUpdateIngressRulesResponse? _defaultInstance; + /// The full list of ingress FirewallRules for this application. @$pb.TagNumber(1) $core.List<$7.FirewallRule> get ingressRules => $_getList(0); } +/// Request message for `Firewall.CreateIngressRule`. class CreateIngressRuleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateIngressRuleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$7.FirewallRule>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rule', - subBuilder: $7.FirewallRule.create) - ..hasRequiredFields = false; - - CreateIngressRuleRequest._() : super(); factory CreateIngressRuleRequest({ $core.String? parent, $7.FirewallRule? rule, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (rule != null) { - _result.rule = rule; + $result.rule = rule; } - return _result; + return $result; } + CreateIngressRuleRequest._() : super(); factory CreateIngressRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateIngressRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateIngressRuleRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$7.FirewallRule>(2, _omitFieldNames ? '' : 'rule', + subBuilder: $7.FirewallRule.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') @@ -2193,8 +2107,10 @@ class CreateIngressRuleRequest extends $pb.GeneratedMessage { CreateIngressRuleRequest copyWith( void Function(CreateIngressRuleRequest) updates) => super.copyWith((message) => updates(message as CreateIngressRuleRequest)) - as CreateIngressRuleRequest; // ignore: deprecated_member_use + as CreateIngressRuleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateIngressRuleRequest create() => CreateIngressRuleRequest._(); CreateIngressRuleRequest createEmptyInstance() => create(); @@ -2205,6 +2121,8 @@ class CreateIngressRuleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateIngressRuleRequest? _defaultInstance; + /// Name of the parent Firewall collection in which to create a new rule. + /// Example: `apps/myapp/firewall/ingressRules`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2217,6 +2135,16 @@ class CreateIngressRuleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// A FirewallRule containing the new resource. + /// + /// The user may optionally provide a position at which the new rule will be + /// placed. The positions define a sequential list starting at 1. If a rule + /// already exists at the given position, rules greater than the provided + /// position will be moved forward by one. + /// + /// If no position is provided, the server will place the rule as the second to + /// last rule in the sequence before the required default allow-all or deny-all + /// rule. @$pb.TagNumber(2) $7.FirewallRule get rule => $_getN(1); @$pb.TagNumber(2) @@ -2232,39 +2160,33 @@ class CreateIngressRuleRequest extends $pb.GeneratedMessage { $7.FirewallRule ensureRule() => $_ensure(1); } +/// Request message for `Firewall.GetIngressRule`. class GetIngressRuleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetIngressRuleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetIngressRuleRequest._() : super(); factory GetIngressRuleRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetIngressRuleRequest._() : super(); factory GetIngressRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetIngressRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetIngressRuleRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2276,8 +2198,10 @@ class GetIngressRuleRequest extends $pb.GeneratedMessage { GetIngressRuleRequest copyWith( void Function(GetIngressRuleRequest) updates) => super.copyWith((message) => updates(message as GetIngressRuleRequest)) - as GetIngressRuleRequest; // ignore: deprecated_member_use + as GetIngressRuleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetIngressRuleRequest create() => GetIngressRuleRequest._(); GetIngressRuleRequest createEmptyInstance() => create(); @@ -2288,6 +2212,8 @@ class GetIngressRuleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetIngressRuleRequest? _defaultInstance; + /// Name of the Firewall resource to retrieve. + /// Example: `apps/myapp/firewall/ingressRules/100`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2301,53 +2227,45 @@ class GetIngressRuleRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `Firewall.UpdateIngressRule`. class UpdateIngressRuleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateIngressRuleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$7.FirewallRule>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rule', - subBuilder: $7.FirewallRule.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..hasRequiredFields = false; - - UpdateIngressRuleRequest._() : super(); factory UpdateIngressRuleRequest({ $core.String? name, $7.FirewallRule? rule, - $10.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (rule != null) { - _result.rule = rule; + $result.rule = rule; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateIngressRuleRequest._() : super(); factory UpdateIngressRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateIngressRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateIngressRuleRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$7.FirewallRule>(2, _omitFieldNames ? '' : 'rule', + subBuilder: $7.FirewallRule.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -2359,8 +2277,10 @@ class UpdateIngressRuleRequest extends $pb.GeneratedMessage { UpdateIngressRuleRequest copyWith( void Function(UpdateIngressRuleRequest) updates) => super.copyWith((message) => updates(message as UpdateIngressRuleRequest)) - as UpdateIngressRuleRequest; // ignore: deprecated_member_use + as UpdateIngressRuleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateIngressRuleRequest create() => UpdateIngressRuleRequest._(); UpdateIngressRuleRequest createEmptyInstance() => create(); @@ -2371,6 +2291,8 @@ class UpdateIngressRuleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateIngressRuleRequest? _defaultInstance; + /// Name of the Firewall resource to update. + /// Example: `apps/myapp/firewall/ingressRules/100`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2383,6 +2305,7 @@ class UpdateIngressRuleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A FirewallRule containing the updated resource @$pb.TagNumber(2) $7.FirewallRule get rule => $_getN(1); @$pb.TagNumber(2) @@ -2397,10 +2320,11 @@ class UpdateIngressRuleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $7.FirewallRule ensureRule() => $_ensure(1); + /// Standard field mask for the set of fields to be updated. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -2409,42 +2333,36 @@ class UpdateIngressRuleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for `Firewall.DeleteIngressRule`. class DeleteIngressRuleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteIngressRuleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteIngressRuleRequest._() : super(); factory DeleteIngressRuleRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteIngressRuleRequest._() : super(); factory DeleteIngressRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteIngressRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteIngressRuleRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2456,8 +2374,10 @@ class DeleteIngressRuleRequest extends $pb.GeneratedMessage { DeleteIngressRuleRequest copyWith( void Function(DeleteIngressRuleRequest) updates) => super.copyWith((message) => updates(message as DeleteIngressRuleRequest)) - as DeleteIngressRuleRequest; // ignore: deprecated_member_use + as DeleteIngressRuleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteIngressRuleRequest create() => DeleteIngressRuleRequest._(); DeleteIngressRuleRequest createEmptyInstance() => create(); @@ -2468,6 +2388,8 @@ class DeleteIngressRuleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteIngressRuleRequest? _defaultInstance; + /// Name of the Firewall resource to delete. + /// Example: `apps/myapp/firewall/ingressRules/100`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2481,58 +2403,43 @@ class DeleteIngressRuleRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `AuthorizedDomains.ListAuthorizedDomains`. class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListAuthorizedDomainsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListAuthorizedDomainsRequest._() : super(); factory ListAuthorizedDomainsRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListAuthorizedDomainsRequest._() : super(); factory ListAuthorizedDomainsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListAuthorizedDomainsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListAuthorizedDomainsRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2545,8 +2452,10 @@ class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { void Function(ListAuthorizedDomainsRequest) updates) => super.copyWith( (message) => updates(message as ListAuthorizedDomainsRequest)) - as ListAuthorizedDomainsRequest; // ignore: deprecated_member_use + as ListAuthorizedDomainsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListAuthorizedDomainsRequest create() => ListAuthorizedDomainsRequest._(); @@ -2558,6 +2467,7 @@ class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListAuthorizedDomainsRequest? _defaultInstance; + /// Name of the parent Application resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2570,6 +2480,7 @@ class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -2582,6 +2493,7 @@ class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -2595,47 +2507,40 @@ class ListAuthorizedDomainsRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// Response message for `AuthorizedDomains.ListAuthorizedDomains`. class ListAuthorizedDomainsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListAuthorizedDomainsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..pc<$11.AuthorizedDomain>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'domains', - $pb.PbFieldType.PM, - subBuilder: $11.AuthorizedDomain.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListAuthorizedDomainsResponse._() : super(); factory ListAuthorizedDomainsResponse({ - $core.Iterable<$11.AuthorizedDomain>? domains, + $core.Iterable<$59.AuthorizedDomain>? domains, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (domains != null) { - _result.domains.addAll(domains); + $result.domains.addAll(domains); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListAuthorizedDomainsResponse._() : super(); factory ListAuthorizedDomainsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListAuthorizedDomainsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListAuthorizedDomainsResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..pc<$59.AuthorizedDomain>( + 1, _omitFieldNames ? '' : 'domains', $pb.PbFieldType.PM, + subBuilder: $59.AuthorizedDomain.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2648,8 +2553,10 @@ class ListAuthorizedDomainsResponse extends $pb.GeneratedMessage { void Function(ListAuthorizedDomainsResponse) updates) => super.copyWith( (message) => updates(message as ListAuthorizedDomainsResponse)) - as ListAuthorizedDomainsResponse; // ignore: deprecated_member_use + as ListAuthorizedDomainsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListAuthorizedDomainsResponse create() => ListAuthorizedDomainsResponse._(); @@ -2661,9 +2568,11 @@ class ListAuthorizedDomainsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListAuthorizedDomainsResponse? _defaultInstance; + /// The authorized domains belonging to the user. @$pb.TagNumber(1) - $core.List<$11.AuthorizedDomain> get domains => $_getList(0); + $core.List<$59.AuthorizedDomain> get domains => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -2677,65 +2586,52 @@ class ListAuthorizedDomainsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `AuthorizedCertificates.ListAuthorizedCertificates`. class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListAuthorizedCertificatesRequest', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..e(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'view', $pb.PbFieldType.OE, - defaultOrMaker: AuthorizedCertificateView.BASIC_CERTIFICATE, - valueOf: AuthorizedCertificateView.valueOf, - enumValues: AuthorizedCertificateView.values) - ..hasRequiredFields = false; - - ListAuthorizedCertificatesRequest._() : super(); factory ListAuthorizedCertificatesRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, AuthorizedCertificateView? view, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + ListAuthorizedCertificatesRequest._() : super(); factory ListAuthorizedCertificatesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListAuthorizedCertificatesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListAuthorizedCertificatesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..e( + 4, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: AuthorizedCertificateView.BASIC_CERTIFICATE, + valueOf: AuthorizedCertificateView.valueOf, + enumValues: AuthorizedCertificateView.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2748,8 +2644,10 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { void Function(ListAuthorizedCertificatesRequest) updates) => super.copyWith((message) => updates(message as ListAuthorizedCertificatesRequest)) - as ListAuthorizedCertificatesRequest; // ignore: deprecated_member_use + as ListAuthorizedCertificatesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListAuthorizedCertificatesRequest create() => ListAuthorizedCertificatesRequest._(); @@ -2762,6 +2660,7 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { create); static ListAuthorizedCertificatesRequest? _defaultInstance; + /// Name of the parent `Application` resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2774,6 +2673,7 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -2786,6 +2686,7 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -2798,6 +2699,7 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// Controls the set of fields returned in the `LIST` response. @$pb.TagNumber(4) AuthorizedCertificateView get view => $_getN(3); @$pb.TagNumber(4) @@ -2811,47 +2713,40 @@ class ListAuthorizedCertificatesRequest extends $pb.GeneratedMessage { void clearView() => clearField(4); } +/// Response message for `AuthorizedCertificates.ListAuthorizedCertificates`. class ListAuthorizedCertificatesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListAuthorizedCertificatesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..pc<$8.AuthorizedCertificate>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'certificates', - $pb.PbFieldType.PM, - subBuilder: $8.AuthorizedCertificate.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListAuthorizedCertificatesResponse._() : super(); factory ListAuthorizedCertificatesResponse({ $core.Iterable<$8.AuthorizedCertificate>? certificates, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (certificates != null) { - _result.certificates.addAll(certificates); + $result.certificates.addAll(certificates); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListAuthorizedCertificatesResponse._() : super(); factory ListAuthorizedCertificatesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListAuthorizedCertificatesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListAuthorizedCertificatesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..pc<$8.AuthorizedCertificate>( + 1, _omitFieldNames ? '' : 'certificates', $pb.PbFieldType.PM, + subBuilder: $8.AuthorizedCertificate.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2864,8 +2759,10 @@ class ListAuthorizedCertificatesResponse extends $pb.GeneratedMessage { void Function(ListAuthorizedCertificatesResponse) updates) => super.copyWith((message) => updates(message as ListAuthorizedCertificatesResponse)) - as ListAuthorizedCertificatesResponse; // ignore: deprecated_member_use + as ListAuthorizedCertificatesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListAuthorizedCertificatesResponse create() => ListAuthorizedCertificatesResponse._(); @@ -2878,9 +2775,11 @@ class ListAuthorizedCertificatesResponse extends $pb.GeneratedMessage { create); static ListAuthorizedCertificatesResponse? _defaultInstance; + /// The SSL certificates the user is authorized to administer. @$pb.TagNumber(1) $core.List<$8.AuthorizedCertificate> get certificates => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -2894,52 +2793,42 @@ class ListAuthorizedCertificatesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `AuthorizedCertificates.GetAuthorizedCertificate`. class GetAuthorizedCertificateRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetAuthorizedCertificateRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'view', - $pb.PbFieldType.OE, - defaultOrMaker: AuthorizedCertificateView.BASIC_CERTIFICATE, - valueOf: AuthorizedCertificateView.valueOf, - enumValues: AuthorizedCertificateView.values) - ..hasRequiredFields = false; - - GetAuthorizedCertificateRequest._() : super(); factory GetAuthorizedCertificateRequest({ $core.String? name, AuthorizedCertificateView? view, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + GetAuthorizedCertificateRequest._() : super(); factory GetAuthorizedCertificateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetAuthorizedCertificateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetAuthorizedCertificateRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e( + 2, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: AuthorizedCertificateView.BASIC_CERTIFICATE, + valueOf: AuthorizedCertificateView.valueOf, + enumValues: AuthorizedCertificateView.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2952,8 +2841,10 @@ class GetAuthorizedCertificateRequest extends $pb.GeneratedMessage { void Function(GetAuthorizedCertificateRequest) updates) => super.copyWith( (message) => updates(message as GetAuthorizedCertificateRequest)) - as GetAuthorizedCertificateRequest; // ignore: deprecated_member_use + as GetAuthorizedCertificateRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetAuthorizedCertificateRequest create() => GetAuthorizedCertificateRequest._(); @@ -2966,6 +2857,8 @@ class GetAuthorizedCertificateRequest extends $pb.GeneratedMessage { create); static GetAuthorizedCertificateRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/authorizedCertificates/12345`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2978,6 +2871,7 @@ class GetAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Controls the set of fields returned in the `GET` response. @$pb.TagNumber(2) AuthorizedCertificateView get view => $_getN(1); @$pb.TagNumber(2) @@ -2991,49 +2885,39 @@ class GetAuthorizedCertificateRequest extends $pb.GeneratedMessage { void clearView() => clearField(2); } +/// Request message for `AuthorizedCertificates.CreateAuthorizedCertificate`. class CreateAuthorizedCertificateRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateAuthorizedCertificateRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$8.AuthorizedCertificate>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'certificate', - subBuilder: $8.AuthorizedCertificate.create) - ..hasRequiredFields = false; - - CreateAuthorizedCertificateRequest._() : super(); factory CreateAuthorizedCertificateRequest({ $core.String? parent, $8.AuthorizedCertificate? certificate, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (certificate != null) { - _result.certificate = certificate; + $result.certificate = certificate; } - return _result; + return $result; } + CreateAuthorizedCertificateRequest._() : super(); factory CreateAuthorizedCertificateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateAuthorizedCertificateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateAuthorizedCertificateRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$8.AuthorizedCertificate>(2, _omitFieldNames ? '' : 'certificate', + subBuilder: $8.AuthorizedCertificate.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') @@ -3046,8 +2930,10 @@ class CreateAuthorizedCertificateRequest extends $pb.GeneratedMessage { void Function(CreateAuthorizedCertificateRequest) updates) => super.copyWith((message) => updates(message as CreateAuthorizedCertificateRequest)) - as CreateAuthorizedCertificateRequest; // ignore: deprecated_member_use + as CreateAuthorizedCertificateRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateAuthorizedCertificateRequest create() => CreateAuthorizedCertificateRequest._(); @@ -3060,6 +2946,7 @@ class CreateAuthorizedCertificateRequest extends $pb.GeneratedMessage { create); static CreateAuthorizedCertificateRequest? _defaultInstance; + /// Name of the parent `Application` resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -3072,6 +2959,7 @@ class CreateAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// SSL certificate data. @$pb.TagNumber(2) $8.AuthorizedCertificate get certificate => $_getN(1); @$pb.TagNumber(2) @@ -3087,53 +2975,45 @@ class CreateAuthorizedCertificateRequest extends $pb.GeneratedMessage { $8.AuthorizedCertificate ensureCertificate() => $_ensure(1); } +/// Request message for `AuthorizedCertificates.UpdateAuthorizedCertificate`. class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateAuthorizedCertificateRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$8.AuthorizedCertificate>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'certificate', - subBuilder: $8.AuthorizedCertificate.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..hasRequiredFields = false; - - UpdateAuthorizedCertificateRequest._() : super(); factory UpdateAuthorizedCertificateRequest({ $core.String? name, $8.AuthorizedCertificate? certificate, - $10.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (certificate != null) { - _result.certificate = certificate; + $result.certificate = certificate; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateAuthorizedCertificateRequest._() : super(); factory UpdateAuthorizedCertificateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateAuthorizedCertificateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateAuthorizedCertificateRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$8.AuthorizedCertificate>(2, _omitFieldNames ? '' : 'certificate', + subBuilder: $8.AuthorizedCertificate.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -3146,8 +3026,10 @@ class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { void Function(UpdateAuthorizedCertificateRequest) updates) => super.copyWith((message) => updates(message as UpdateAuthorizedCertificateRequest)) - as UpdateAuthorizedCertificateRequest; // ignore: deprecated_member_use + as UpdateAuthorizedCertificateRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateAuthorizedCertificateRequest create() => UpdateAuthorizedCertificateRequest._(); @@ -3160,6 +3042,8 @@ class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { create); static UpdateAuthorizedCertificateRequest? _defaultInstance; + /// Name of the resource to update. Example: + /// `apps/myapp/authorizedCertificates/12345`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3172,6 +3056,8 @@ class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// An `AuthorizedCertificate` containing the updated resource. Only fields set + /// in the field mask will be updated. @$pb.TagNumber(2) $8.AuthorizedCertificate get certificate => $_getN(1); @$pb.TagNumber(2) @@ -3186,10 +3072,12 @@ class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $8.AuthorizedCertificate ensureCertificate() => $_ensure(1); + /// Standard field mask for the set of fields to be updated. Updates are only + /// supported on the `certificate_raw_data` and `display_name` fields. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -3198,42 +3086,36 @@ class UpdateAuthorizedCertificateRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for `AuthorizedCertificates.DeleteAuthorizedCertificate`. class DeleteAuthorizedCertificateRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteAuthorizedCertificateRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteAuthorizedCertificateRequest._() : super(); factory DeleteAuthorizedCertificateRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteAuthorizedCertificateRequest._() : super(); factory DeleteAuthorizedCertificateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteAuthorizedCertificateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteAuthorizedCertificateRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3246,8 +3128,10 @@ class DeleteAuthorizedCertificateRequest extends $pb.GeneratedMessage { void Function(DeleteAuthorizedCertificateRequest) updates) => super.copyWith((message) => updates(message as DeleteAuthorizedCertificateRequest)) - as DeleteAuthorizedCertificateRequest; // ignore: deprecated_member_use + as DeleteAuthorizedCertificateRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteAuthorizedCertificateRequest create() => DeleteAuthorizedCertificateRequest._(); @@ -3260,6 +3144,8 @@ class DeleteAuthorizedCertificateRequest extends $pb.GeneratedMessage { create); static DeleteAuthorizedCertificateRequest? _defaultInstance; + /// Name of the resource to delete. Example: + /// `apps/myapp/authorizedCertificates/12345`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3273,58 +3159,43 @@ class DeleteAuthorizedCertificateRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `DomainMappings.ListDomainMappings`. class ListDomainMappingsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListDomainMappingsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListDomainMappingsRequest._() : super(); factory ListDomainMappingsRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListDomainMappingsRequest._() : super(); factory ListDomainMappingsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListDomainMappingsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListDomainMappingsRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3336,8 +3207,10 @@ class ListDomainMappingsRequest extends $pb.GeneratedMessage { ListDomainMappingsRequest copyWith( void Function(ListDomainMappingsRequest) updates) => super.copyWith((message) => updates(message as ListDomainMappingsRequest)) - as ListDomainMappingsRequest; // ignore: deprecated_member_use + as ListDomainMappingsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListDomainMappingsRequest create() => ListDomainMappingsRequest._(); ListDomainMappingsRequest createEmptyInstance() => create(); @@ -3348,6 +3221,7 @@ class ListDomainMappingsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListDomainMappingsRequest? _defaultInstance; + /// Name of the parent Application resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -3360,6 +3234,7 @@ class ListDomainMappingsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Maximum results to return per page. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -3372,6 +3247,7 @@ class ListDomainMappingsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -3385,47 +3261,40 @@ class ListDomainMappingsRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// Response message for `DomainMappings.ListDomainMappings`. class ListDomainMappingsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListDomainMappingsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..pc<$9.DomainMapping>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'domainMappings', - $pb.PbFieldType.PM, - subBuilder: $9.DomainMapping.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListDomainMappingsResponse._() : super(); factory ListDomainMappingsResponse({ $core.Iterable<$9.DomainMapping>? domainMappings, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (domainMappings != null) { - _result.domainMappings.addAll(domainMappings); + $result.domainMappings.addAll(domainMappings); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListDomainMappingsResponse._() : super(); factory ListDomainMappingsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListDomainMappingsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListDomainMappingsResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..pc<$9.DomainMapping>( + 1, _omitFieldNames ? '' : 'domainMappings', $pb.PbFieldType.PM, + subBuilder: $9.DomainMapping.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3438,8 +3307,10 @@ class ListDomainMappingsResponse extends $pb.GeneratedMessage { void Function(ListDomainMappingsResponse) updates) => super.copyWith( (message) => updates(message as ListDomainMappingsResponse)) - as ListDomainMappingsResponse; // ignore: deprecated_member_use + as ListDomainMappingsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListDomainMappingsResponse create() => ListDomainMappingsResponse._(); ListDomainMappingsResponse createEmptyInstance() => create(); @@ -3450,9 +3321,11 @@ class ListDomainMappingsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListDomainMappingsResponse? _defaultInstance; + /// The domain mappings for the application. @$pb.TagNumber(1) $core.List<$9.DomainMapping> get domainMappings => $_getList(0); + /// Continuation token for fetching the next page of results. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -3466,39 +3339,33 @@ class ListDomainMappingsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for `DomainMappings.GetDomainMapping`. class GetDomainMappingRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetDomainMappingRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetDomainMappingRequest._() : super(); factory GetDomainMappingRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetDomainMappingRequest._() : super(); factory GetDomainMappingRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetDomainMappingRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetDomainMappingRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3510,8 +3377,10 @@ class GetDomainMappingRequest extends $pb.GeneratedMessage { GetDomainMappingRequest copyWith( void Function(GetDomainMappingRequest) updates) => super.copyWith((message) => updates(message as GetDomainMappingRequest)) - as GetDomainMappingRequest; // ignore: deprecated_member_use + as GetDomainMappingRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetDomainMappingRequest create() => GetDomainMappingRequest._(); GetDomainMappingRequest createEmptyInstance() => create(); @@ -3522,6 +3391,8 @@ class GetDomainMappingRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetDomainMappingRequest? _defaultInstance; + /// Name of the resource requested. Example: + /// `apps/myapp/domainMappings/example.com`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3535,57 +3406,49 @@ class GetDomainMappingRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for `DomainMappings.CreateDomainMapping`. class CreateDomainMappingRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateDomainMappingRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM<$9.DomainMapping>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'domainMapping', - subBuilder: $9.DomainMapping.create) - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'overrideStrategy', - $pb.PbFieldType.OE, - defaultOrMaker: DomainOverrideStrategy.UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY, - valueOf: DomainOverrideStrategy.valueOf, - enumValues: DomainOverrideStrategy.values) - ..hasRequiredFields = false; - - CreateDomainMappingRequest._() : super(); factory CreateDomainMappingRequest({ $core.String? parent, $9.DomainMapping? domainMapping, DomainOverrideStrategy? overrideStrategy, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (domainMapping != null) { - _result.domainMapping = domainMapping; + $result.domainMapping = domainMapping; } if (overrideStrategy != null) { - _result.overrideStrategy = overrideStrategy; + $result.overrideStrategy = overrideStrategy; } - return _result; + return $result; } + CreateDomainMappingRequest._() : super(); factory CreateDomainMappingRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateDomainMappingRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateDomainMappingRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM<$9.DomainMapping>(2, _omitFieldNames ? '' : 'domainMapping', + subBuilder: $9.DomainMapping.create) + ..e( + 4, _omitFieldNames ? '' : 'overrideStrategy', $pb.PbFieldType.OE, + defaultOrMaker: + DomainOverrideStrategy.UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY, + valueOf: DomainOverrideStrategy.valueOf, + enumValues: DomainOverrideStrategy.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3598,8 +3461,10 @@ class CreateDomainMappingRequest extends $pb.GeneratedMessage { void Function(CreateDomainMappingRequest) updates) => super.copyWith( (message) => updates(message as CreateDomainMappingRequest)) - as CreateDomainMappingRequest; // ignore: deprecated_member_use + as CreateDomainMappingRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateDomainMappingRequest create() => CreateDomainMappingRequest._(); CreateDomainMappingRequest createEmptyInstance() => create(); @@ -3610,6 +3475,7 @@ class CreateDomainMappingRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateDomainMappingRequest? _defaultInstance; + /// Name of the parent Application resource. Example: `apps/myapp`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -3622,6 +3488,7 @@ class CreateDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Domain mapping configuration. @$pb.TagNumber(2) $9.DomainMapping get domainMapping => $_getN(1); @$pb.TagNumber(2) @@ -3636,6 +3503,8 @@ class CreateDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $9.DomainMapping ensureDomainMapping() => $_ensure(1); + /// Whether the domain creation should override any existing mappings for this + /// domain. By default, overrides are rejected. @$pb.TagNumber(4) DomainOverrideStrategy get overrideStrategy => $_getN(2); @$pb.TagNumber(4) @@ -3649,53 +3518,45 @@ class CreateDomainMappingRequest extends $pb.GeneratedMessage { void clearOverrideStrategy() => clearField(4); } +/// Request message for `DomainMappings.UpdateDomainMapping`. class UpdateDomainMappingRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateDomainMappingRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$9.DomainMapping>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'domainMapping', - subBuilder: $9.DomainMapping.create) - ..aOM<$10.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $10.FieldMask.create) - ..hasRequiredFields = false; - - UpdateDomainMappingRequest._() : super(); factory UpdateDomainMappingRequest({ $core.String? name, $9.DomainMapping? domainMapping, - $10.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (domainMapping != null) { - _result.domainMapping = domainMapping; + $result.domainMapping = domainMapping; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateDomainMappingRequest._() : super(); factory UpdateDomainMappingRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateDomainMappingRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateDomainMappingRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$9.DomainMapping>(2, _omitFieldNames ? '' : 'domainMapping', + subBuilder: $9.DomainMapping.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -3708,8 +3569,10 @@ class UpdateDomainMappingRequest extends $pb.GeneratedMessage { void Function(UpdateDomainMappingRequest) updates) => super.copyWith( (message) => updates(message as UpdateDomainMappingRequest)) - as UpdateDomainMappingRequest; // ignore: deprecated_member_use + as UpdateDomainMappingRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateDomainMappingRequest create() => UpdateDomainMappingRequest._(); UpdateDomainMappingRequest createEmptyInstance() => create(); @@ -3720,6 +3583,8 @@ class UpdateDomainMappingRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateDomainMappingRequest? _defaultInstance; + /// Name of the resource to update. Example: + /// `apps/myapp/domainMappings/example.com`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3732,6 +3597,8 @@ class UpdateDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A domain mapping containing the updated resource. Only fields set + /// in the field mask will be updated. @$pb.TagNumber(2) $9.DomainMapping get domainMapping => $_getN(1); @$pb.TagNumber(2) @@ -3746,10 +3613,11 @@ class UpdateDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) $9.DomainMapping ensureDomainMapping() => $_ensure(1); + /// Standard field mask for the set of fields to be updated. @$pb.TagNumber(3) - $10.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($10.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -3758,42 +3626,36 @@ class UpdateDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $10.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for `DomainMappings.DeleteDomainMapping`. class DeleteDomainMappingRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteDomainMappingRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteDomainMappingRequest._() : super(); factory DeleteDomainMappingRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteDomainMappingRequest._() : super(); factory DeleteDomainMappingRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteDomainMappingRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteDomainMappingRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3806,8 +3668,10 @@ class DeleteDomainMappingRequest extends $pb.GeneratedMessage { void Function(DeleteDomainMappingRequest) updates) => super.copyWith( (message) => updates(message as DeleteDomainMappingRequest)) - as DeleteDomainMappingRequest; // ignore: deprecated_member_use + as DeleteDomainMappingRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteDomainMappingRequest create() => DeleteDomainMappingRequest._(); DeleteDomainMappingRequest createEmptyInstance() => create(); @@ -3818,6 +3682,8 @@ class DeleteDomainMappingRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteDomainMappingRequest? _defaultInstance; + /// Name of the resource to delete. Example: + /// `apps/myapp/domainMappings/example.com`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3830,3 +3696,7 @@ class DeleteDomainMappingRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbenum.dart index feb9029a..369ed296 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbenum.dart @@ -1,19 +1,25 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/appengine.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Fields that should be returned when [Version][google.appengine.v1beta.Version] resources +/// are retrieved. class VersionView extends $pb.ProtobufEnum { - static const VersionView BASIC = VersionView._( - 0, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BASIC'); - static const VersionView FULL = VersionView._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FULL'); + static const VersionView BASIC = + VersionView._(0, _omitEnumNames ? '' : 'BASIC'); + static const VersionView FULL = + VersionView._(1, _omitEnumNames ? '' : 'FULL'); static const $core.List values = [ BASIC, @@ -27,19 +33,13 @@ class VersionView extends $pb.ProtobufEnum { const VersionView._($core.int v, $core.String n) : super(v, n); } +/// Fields that should be returned when an AuthorizedCertificate resource is +/// retrieved. class AuthorizedCertificateView extends $pb.ProtobufEnum { static const AuthorizedCertificateView BASIC_CERTIFICATE = - AuthorizedCertificateView._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'BASIC_CERTIFICATE'); + AuthorizedCertificateView._(0, _omitEnumNames ? '' : 'BASIC_CERTIFICATE'); static const AuthorizedCertificateView FULL_CERTIFICATE = - AuthorizedCertificateView._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FULL_CERTIFICATE'); + AuthorizedCertificateView._(1, _omitEnumNames ? '' : 'FULL_CERTIFICATE'); static const $core.List values = [ @@ -54,17 +54,15 @@ class AuthorizedCertificateView extends $pb.ProtobufEnum { const AuthorizedCertificateView._($core.int v, $core.String n) : super(v, n); } +/// Override strategy for mutating an existing mapping. class DomainOverrideStrategy extends $pb.ProtobufEnum { static const DomainOverrideStrategy UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY = DomainOverrideStrategy._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY'); - static const DomainOverrideStrategy STRICT = DomainOverrideStrategy._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'STRICT'); - static const DomainOverrideStrategy OVERRIDE = DomainOverrideStrategy._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'OVERRIDE'); + 0, _omitEnumNames ? '' : 'UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY'); + static const DomainOverrideStrategy STRICT = + DomainOverrideStrategy._(1, _omitEnumNames ? '' : 'STRICT'); + static const DomainOverrideStrategy OVERRIDE = + DomainOverrideStrategy._(2, _omitEnumNames ? '' : 'OVERRIDE'); static const $core.List values = [ @@ -79,3 +77,5 @@ class DomainOverrideStrategy extends $pb.ProtobufEnum { const DomainOverrideStrategy._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbgrpc.dart index b1e67af4..3d22910f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbgrpc.dart @@ -1,27 +1,34 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/appengine.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'appengine.pb.dart' as $2; -import 'application.pb.dart' as $3; +import 'package:protobuf/protobuf.dart' as $pb; + import '../../longrunning/operations.pb.dart' as $0; -import 'service.pb.dart' as $4; -import 'version.pb.dart' as $5; -import 'instance.pb.dart' as $6; -import 'firewall.pb.dart' as $7; import '../../protobuf/empty.pb.dart' as $1; +import 'appengine.pb.dart' as $2; +import 'application.pb.dart' as $3; import 'certificate.pb.dart' as $8; import 'domain_mapping.pb.dart' as $9; +import 'firewall.pb.dart' as $7; +import 'instance.pb.dart' as $6; +import 'service.pb.dart' as $4; +import 'version.pb.dart' as $5; + export 'appengine.pb.dart'; +@$pb.GrpcServiceName('google.appengine.v1beta.Applications') class ApplicationsClient extends $grpc.Client { static final _$getApplication = $grpc.ClientMethod<$2.GetApplicationRequest, $3.Application>( @@ -74,6 +81,7 @@ class ApplicationsClient extends $grpc.Client { } } +@$pb.GrpcServiceName('google.appengine.v1beta.Applications') abstract class ApplicationsServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1beta.Applications'; @@ -142,6 +150,7 @@ abstract class ApplicationsServiceBase extends $grpc.Service { $grpc.ServiceCall call, $2.RepairApplicationRequest request); } +@$pb.GrpcServiceName('google.appengine.v1beta.Services') class ServicesClient extends $grpc.Client { static final _$listServices = $grpc.ClientMethod<$2.ListServicesRequest, $2.ListServicesResponse>( @@ -194,6 +203,7 @@ class ServicesClient extends $grpc.Client { } } +@$pb.GrpcServiceName('google.appengine.v1beta.Services') abstract class ServicesServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1beta.Services'; @@ -263,6 +273,7 @@ abstract class ServicesServiceBase extends $grpc.Service { $grpc.ServiceCall call, $2.DeleteServiceRequest request); } +@$pb.GrpcServiceName('google.appengine.v1beta.Versions') class VersionsClient extends $grpc.Client { static final _$listVersions = $grpc.ClientMethod<$2.ListVersionsRequest, $2.ListVersionsResponse>( @@ -326,6 +337,7 @@ class VersionsClient extends $grpc.Client { } } +@$pb.GrpcServiceName('google.appengine.v1beta.Versions') abstract class VersionsServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1beta.Versions'; @@ -410,6 +422,7 @@ abstract class VersionsServiceBase extends $grpc.Service { $grpc.ServiceCall call, $2.DeleteVersionRequest request); } +@$pb.GrpcServiceName('google.appengine.v1beta.Instances') class InstancesClient extends $grpc.Client { static final _$listInstances = $grpc.ClientMethod<$2.ListInstancesRequest, $2.ListInstancesResponse>( @@ -462,6 +475,7 @@ class InstancesClient extends $grpc.Client { } } +@$pb.GrpcServiceName('google.appengine.v1beta.Instances') abstract class InstancesServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1beta.Instances'; @@ -532,6 +546,7 @@ abstract class InstancesServiceBase extends $grpc.Service { $grpc.ServiceCall call, $2.DebugInstanceRequest request); } +@$pb.GrpcServiceName('google.appengine.v1beta.Firewall') class FirewallClient extends $grpc.Client { static final _$listIngressRules = $grpc.ClientMethod< $2.ListIngressRulesRequest, $2.ListIngressRulesResponse>( @@ -610,6 +625,7 @@ class FirewallClient extends $grpc.Client { } } +@$pb.GrpcServiceName('google.appengine.v1beta.Firewall') abstract class FirewallServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1beta.Firewall'; @@ -714,6 +730,7 @@ abstract class FirewallServiceBase extends $grpc.Service { $grpc.ServiceCall call, $2.DeleteIngressRuleRequest request); } +@$pb.GrpcServiceName('google.appengine.v1beta.AuthorizedDomains') class AuthorizedDomainsClient extends $grpc.Client { static final _$listAuthorizedDomains = $grpc.ClientMethod< $2.ListAuthorizedDomainsRequest, $2.ListAuthorizedDomainsResponse>( @@ -734,6 +751,7 @@ class AuthorizedDomainsClient extends $grpc.Client { } } +@$pb.GrpcServiceName('google.appengine.v1beta.AuthorizedDomains') abstract class AuthorizedDomainsServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1beta.AuthorizedDomains'; @@ -759,6 +777,7 @@ abstract class AuthorizedDomainsServiceBase extends $grpc.Service { $grpc.ServiceCall call, $2.ListAuthorizedDomainsRequest request); } +@$pb.GrpcServiceName('google.appengine.v1beta.AuthorizedCertificates') class AuthorizedCertificatesClient extends $grpc.Client { static final _$listAuthorizedCertificates = $grpc.ClientMethod< $2.ListAuthorizedCertificatesRequest, @@ -832,6 +851,7 @@ class AuthorizedCertificatesClient extends $grpc.Client { } } +@$pb.GrpcServiceName('google.appengine.v1beta.AuthorizedCertificates') abstract class AuthorizedCertificatesServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1beta.AuthorizedCertificates'; @@ -927,6 +947,7 @@ abstract class AuthorizedCertificatesServiceBase extends $grpc.Service { $grpc.ServiceCall call, $2.DeleteAuthorizedCertificateRequest request); } +@$pb.GrpcServiceName('google.appengine.v1beta.DomainMappings') class DomainMappingsClient extends $grpc.Client { static final _$listDomainMappings = $grpc.ClientMethod< $2.ListDomainMappingsRequest, $2.ListDomainMappingsResponse>( @@ -991,6 +1012,7 @@ class DomainMappingsClient extends $grpc.Client { } } +@$pb.GrpcServiceName('google.appengine.v1beta.DomainMappings') abstract class DomainMappingsServiceBase extends $grpc.Service { $core.String get $name => 'google.appengine.v1beta.DomainMappings'; diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbjson.dart index 22e48ca6..4cbc6f0b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/appengine.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/appengine.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 versionViewDescriptor instead') @@ -21,6 +25,7 @@ const VersionView$json = { /// Descriptor for `VersionView`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List versionViewDescriptor = $convert.base64Decode('CgtWZXJzaW9uVmlldxIJCgVCQVNJQxAAEggKBEZVTEwQAQ=='); + @$core.Deprecated('Use authorizedCertificateViewDescriptor instead') const AuthorizedCertificateView$json = { '1': 'AuthorizedCertificateView', @@ -33,7 +38,9 @@ const AuthorizedCertificateView$json = { /// Descriptor for `AuthorizedCertificateView`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List authorizedCertificateViewDescriptor = $convert.base64Decode( - 'ChlBdXRob3JpemVkQ2VydGlmaWNhdGVWaWV3EhUKEUJBU0lDX0NFUlRJRklDQVRFEAASFAoQRlVMTF9DRVJUSUZJQ0FURRAB'); + 'ChlBdXRob3JpemVkQ2VydGlmaWNhdGVWaWV3EhUKEUJBU0lDX0NFUlRJRklDQVRFEAASFAoQRl' + 'VMTF9DRVJUSUZJQ0FURRAB'); + @$core.Deprecated('Use domainOverrideStrategyDescriptor instead') const DomainOverrideStrategy$json = { '1': 'DomainOverrideStrategy', @@ -47,7 +54,9 @@ const DomainOverrideStrategy$json = { /// Descriptor for `DomainOverrideStrategy`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List domainOverrideStrategyDescriptor = $convert.base64Decode( - 'ChZEb21haW5PdmVycmlkZVN0cmF0ZWd5EigKJFVOU1BFQ0lGSUVEX0RPTUFJTl9PVkVSUklERV9TVFJBVEVHWRAAEgoKBlNUUklDVBABEgwKCE9WRVJSSURFEAI='); + 'ChZEb21haW5PdmVycmlkZVN0cmF0ZWd5EigKJFVOU1BFQ0lGSUVEX0RPTUFJTl9PVkVSUklERV' + '9TVFJBVEVHWRAAEgoKBlNUUklDVBABEgwKCE9WRVJSSURFEAI='); + @$core.Deprecated('Use getApplicationRequestDescriptor instead') const GetApplicationRequest$json = { '1': 'GetApplicationRequest', @@ -60,6 +69,7 @@ const GetApplicationRequest$json = { final $typed_data.Uint8List getApplicationRequestDescriptor = $convert.base64Decode( 'ChVHZXRBcHBsaWNhdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use createApplicationRequestDescriptor instead') const CreateApplicationRequest$json = { '1': 'CreateApplicationRequest', @@ -78,7 +88,9 @@ const CreateApplicationRequest$json = { /// Descriptor for `CreateApplicationRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createApplicationRequestDescriptor = $convert.base64Decode( - 'ChhDcmVhdGVBcHBsaWNhdGlvblJlcXVlc3QSRgoLYXBwbGljYXRpb24YAiABKAsyJC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5BcHBsaWNhdGlvblILYXBwbGljYXRpb24='); + 'ChhDcmVhdGVBcHBsaWNhdGlvblJlcXVlc3QSRgoLYXBwbGljYXRpb24YAiABKAsyJC5nb29nbG' + 'UuYXBwZW5naW5lLnYxYmV0YS5BcHBsaWNhdGlvblILYXBwbGljYXRpb24='); + @$core.Deprecated('Use updateApplicationRequestDescriptor instead') const UpdateApplicationRequest$json = { '1': 'UpdateApplicationRequest', @@ -104,9 +116,12 @@ const UpdateApplicationRequest$json = { }; /// Descriptor for `UpdateApplicationRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateApplicationRequestDescriptor = - $convert.base64Decode( - 'ChhVcGRhdGVBcHBsaWNhdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRJGCgthcHBsaWNhdGlvbhgCIAEoCzIkLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkFwcGxpY2F0aW9uUgthcHBsaWNhdGlvbhI7Cgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tSCnVwZGF0ZU1hc2s='); +final $typed_data.Uint8List updateApplicationRequestDescriptor = $convert.base64Decode( + 'ChhVcGRhdGVBcHBsaWNhdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRJGCgthcHBsaW' + 'NhdGlvbhgCIAEoCzIkLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkFwcGxpY2F0aW9uUgthcHBs' + 'aWNhdGlvbhI7Cgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2' + 'tSCnVwZGF0ZU1hc2s='); + @$core.Deprecated('Use repairApplicationRequestDescriptor instead') const RepairApplicationRequest$json = { '1': 'RepairApplicationRequest', @@ -119,6 +134,7 @@ const RepairApplicationRequest$json = { final $typed_data.Uint8List repairApplicationRequestDescriptor = $convert.base64Decode( 'ChhSZXBhaXJBcHBsaWNhdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use listServicesRequestDescriptor instead') const ListServicesRequest$json = { '1': 'ListServicesRequest', @@ -131,7 +147,9 @@ const ListServicesRequest$json = { /// Descriptor for `ListServicesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServicesRequestDescriptor = $convert.base64Decode( - 'ChNMaXN0U2VydmljZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); + 'ChNMaXN0U2VydmljZXNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2' + 'l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); + @$core.Deprecated('Use listServicesResponseDescriptor instead') const ListServicesResponse$json = { '1': 'ListServicesResponse', @@ -150,7 +168,10 @@ const ListServicesResponse$json = { /// Descriptor for `ListServicesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServicesResponseDescriptor = $convert.base64Decode( - 'ChRMaXN0U2VydmljZXNSZXNwb25zZRI8CghzZXJ2aWNlcxgBIAMoCzIgLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlNlcnZpY2VSCHNlcnZpY2VzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChRMaXN0U2VydmljZXNSZXNwb25zZRI8CghzZXJ2aWNlcxgBIAMoCzIgLmdvb2dsZS5hcHBlbm' + 'dpbmUudjFiZXRhLlNlcnZpY2VSCHNlcnZpY2VzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVIN' + 'bmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use getServiceRequestDescriptor instead') const GetServiceRequest$json = { '1': 'GetServiceRequest', @@ -162,6 +183,7 @@ const GetServiceRequest$json = { /// Descriptor for `GetServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getServiceRequestDescriptor = $convert .base64Decode('ChFHZXRTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use updateServiceRequestDescriptor instead') const UpdateServiceRequest$json = { '1': 'UpdateServiceRequest', @@ -189,7 +211,11 @@ const UpdateServiceRequest$json = { /// Descriptor for `UpdateServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateServiceRequestDescriptor = $convert.base64Decode( - 'ChRVcGRhdGVTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjoKB3NlcnZpY2UYAiABKAsyIC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5TZXJ2aWNlUgdzZXJ2aWNlEjsKC3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IKdXBkYXRlTWFzaxInCg9taWdyYXRlX3RyYWZmaWMYBCABKAhSDm1pZ3JhdGVUcmFmZmlj'); + 'ChRVcGRhdGVTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjoKB3NlcnZpY2UYAi' + 'ABKAsyIC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5TZXJ2aWNlUgdzZXJ2aWNlEjsKC3VwZGF0' + 'ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IKdXBkYXRlTWFzaxInCg' + '9taWdyYXRlX3RyYWZmaWMYBCABKAhSDm1pZ3JhdGVUcmFmZmlj'); + @$core.Deprecated('Use deleteServiceRequestDescriptor instead') const DeleteServiceRequest$json = { '1': 'DeleteServiceRequest', @@ -201,6 +227,7 @@ const DeleteServiceRequest$json = { /// Descriptor for `DeleteServiceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteServiceRequestDescriptor = $convert .base64Decode('ChREZWxldGVTZXJ2aWNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use listVersionsRequestDescriptor instead') const ListVersionsRequest$json = { '1': 'ListVersionsRequest', @@ -221,7 +248,10 @@ const ListVersionsRequest$json = { /// Descriptor for `ListVersionsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listVersionsRequestDescriptor = $convert.base64Decode( - 'ChNMaXN0VmVyc2lvbnNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EjgKBHZpZXcYAiABKA4yJC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5WZXJzaW9uVmlld1IEdmlldxIbCglwYWdlX3NpemUYAyABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YBCABKAlSCXBhZ2VUb2tlbg=='); + 'ChNMaXN0VmVyc2lvbnNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EjgKBHZpZXcYAi' + 'ABKA4yJC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5WZXJzaW9uVmlld1IEdmlldxIbCglwYWdl' + 'X3NpemUYAyABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YBCABKAlSCXBhZ2VUb2tlbg=='); + @$core.Deprecated('Use listVersionsResponseDescriptor instead') const ListVersionsResponse$json = { '1': 'ListVersionsResponse', @@ -240,7 +270,10 @@ const ListVersionsResponse$json = { /// Descriptor for `ListVersionsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listVersionsResponseDescriptor = $convert.base64Decode( - 'ChRMaXN0VmVyc2lvbnNSZXNwb25zZRI8Cgh2ZXJzaW9ucxgBIAMoCzIgLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlZlcnNpb25SCHZlcnNpb25zEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChRMaXN0VmVyc2lvbnNSZXNwb25zZRI8Cgh2ZXJzaW9ucxgBIAMoCzIgLmdvb2dsZS5hcHBlbm' + 'dpbmUudjFiZXRhLlZlcnNpb25SCHZlcnNpb25zEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVIN' + 'bmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use getVersionRequestDescriptor instead') const GetVersionRequest$json = { '1': 'GetVersionRequest', @@ -259,7 +292,9 @@ const GetVersionRequest$json = { /// Descriptor for `GetVersionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getVersionRequestDescriptor = $convert.base64Decode( - 'ChFHZXRWZXJzaW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjgKBHZpZXcYAiABKA4yJC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5WZXJzaW9uVmlld1IEdmlldw=='); + 'ChFHZXRWZXJzaW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjgKBHZpZXcYAiABKA4yJC' + '5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5WZXJzaW9uVmlld1IEdmlldw=='); + @$core.Deprecated('Use createVersionRequestDescriptor instead') const CreateVersionRequest$json = { '1': 'CreateVersionRequest', @@ -278,7 +313,9 @@ const CreateVersionRequest$json = { /// Descriptor for `CreateVersionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createVersionRequestDescriptor = $convert.base64Decode( - 'ChRDcmVhdGVWZXJzaW9uUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBI6Cgd2ZXJzaW9uGAIgASgLMiAuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuVmVyc2lvblIHdmVyc2lvbg=='); + 'ChRDcmVhdGVWZXJzaW9uUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBI6Cgd2ZXJzaW' + '9uGAIgASgLMiAuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuVmVyc2lvblIHdmVyc2lvbg=='); + @$core.Deprecated('Use updateVersionRequestDescriptor instead') const UpdateVersionRequest$json = { '1': 'UpdateVersionRequest', @@ -305,7 +342,10 @@ const UpdateVersionRequest$json = { /// Descriptor for `UpdateVersionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateVersionRequestDescriptor = $convert.base64Decode( - 'ChRVcGRhdGVWZXJzaW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjoKB3ZlcnNpb24YAiABKAsyIC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5WZXJzaW9uUgd2ZXJzaW9uEjsKC3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IKdXBkYXRlTWFzaw=='); + 'ChRVcGRhdGVWZXJzaW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjoKB3ZlcnNpb24YAi' + 'ABKAsyIC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5WZXJzaW9uUgd2ZXJzaW9uEjsKC3VwZGF0' + 'ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IKdXBkYXRlTWFzaw=='); + @$core.Deprecated('Use deleteVersionRequestDescriptor instead') const DeleteVersionRequest$json = { '1': 'DeleteVersionRequest', @@ -317,6 +357,7 @@ const DeleteVersionRequest$json = { /// Descriptor for `DeleteVersionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteVersionRequestDescriptor = $convert .base64Decode('ChREZWxldGVWZXJzaW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use listInstancesRequestDescriptor instead') const ListInstancesRequest$json = { '1': 'ListInstancesRequest', @@ -329,7 +370,9 @@ const ListInstancesRequest$json = { /// Descriptor for `ListInstancesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listInstancesRequestDescriptor = $convert.base64Decode( - 'ChRMaXN0SW5zdGFuY2VzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbg=='); + 'ChRMaXN0SW5zdGFuY2VzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIbCglwYWdlX3' + 'NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbg=='); + @$core.Deprecated('Use listInstancesResponseDescriptor instead') const ListInstancesResponse$json = { '1': 'ListInstancesResponse', @@ -348,7 +391,10 @@ const ListInstancesResponse$json = { /// Descriptor for `ListInstancesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listInstancesResponseDescriptor = $convert.base64Decode( - 'ChVMaXN0SW5zdGFuY2VzUmVzcG9uc2USPwoJaW5zdGFuY2VzGAEgAygLMiEuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuSW5zdGFuY2VSCWluc3RhbmNlcxImCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + 'ChVMaXN0SW5zdGFuY2VzUmVzcG9uc2USPwoJaW5zdGFuY2VzGAEgAygLMiEuZ29vZ2xlLmFwcG' + 'VuZ2luZS52MWJldGEuSW5zdGFuY2VSCWluc3RhbmNlcxImCg9uZXh0X3BhZ2VfdG9rZW4YAiAB' + 'KAlSDW5leHRQYWdlVG9rZW4='); + @$core.Deprecated('Use getInstanceRequestDescriptor instead') const GetInstanceRequest$json = { '1': 'GetInstanceRequest', @@ -360,6 +406,7 @@ const GetInstanceRequest$json = { /// Descriptor for `GetInstanceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getInstanceRequestDescriptor = $convert .base64Decode('ChJHZXRJbnN0YW5jZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use deleteInstanceRequestDescriptor instead') const DeleteInstanceRequest$json = { '1': 'DeleteInstanceRequest', @@ -372,6 +419,7 @@ const DeleteInstanceRequest$json = { final $typed_data.Uint8List deleteInstanceRequestDescriptor = $convert.base64Decode( 'ChVEZWxldGVJbnN0YW5jZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use debugInstanceRequestDescriptor instead') const DebugInstanceRequest$json = { '1': 'DebugInstanceRequest', @@ -383,7 +431,9 @@ const DebugInstanceRequest$json = { /// Descriptor for `DebugInstanceRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List debugInstanceRequestDescriptor = $convert.base64Decode( - 'ChREZWJ1Z0luc3RhbmNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEhcKB3NzaF9rZXkYAiABKAlSBnNzaEtleQ=='); + 'ChREZWJ1Z0luc3RhbmNlUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEhcKB3NzaF9rZXkYAi' + 'ABKAlSBnNzaEtleQ=='); + @$core.Deprecated('Use listIngressRulesRequestDescriptor instead') const ListIngressRulesRequest$json = { '1': 'ListIngressRulesRequest', @@ -396,9 +446,11 @@ const ListIngressRulesRequest$json = { }; /// Descriptor for `ListIngressRulesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listIngressRulesRequestDescriptor = - $convert.base64Decode( - 'ChdMaXN0SW5ncmVzc1J1bGVzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbhIpChBtYXRjaGluZ19hZGRyZXNzGAQgASgJUg9tYXRjaGluZ0FkZHJlc3M='); +final $typed_data.Uint8List listIngressRulesRequestDescriptor = $convert.base64Decode( + 'ChdMaXN0SW5ncmVzc1J1bGVzUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBIbCglwYW' + 'dlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbhIp' + 'ChBtYXRjaGluZ19hZGRyZXNzGAQgASgJUg9tYXRjaGluZ0FkZHJlc3M='); + @$core.Deprecated('Use listIngressRulesResponseDescriptor instead') const ListIngressRulesResponse$json = { '1': 'ListIngressRulesResponse', @@ -416,9 +468,11 @@ const ListIngressRulesResponse$json = { }; /// Descriptor for `ListIngressRulesResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listIngressRulesResponseDescriptor = - $convert.base64Decode( - 'ChhMaXN0SW5ncmVzc1J1bGVzUmVzcG9uc2USSgoNaW5ncmVzc19ydWxlcxgBIAMoCzIlLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkZpcmV3YWxsUnVsZVIMaW5ncmVzc1J1bGVzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); +final $typed_data.Uint8List listIngressRulesResponseDescriptor = $convert.base64Decode( + 'ChhMaXN0SW5ncmVzc1J1bGVzUmVzcG9uc2USSgoNaW5ncmVzc19ydWxlcxgBIAMoCzIlLmdvb2' + 'dsZS5hcHBlbmdpbmUudjFiZXRhLkZpcmV3YWxsUnVsZVIMaW5ncmVzc1J1bGVzEiYKD25leHRf' + 'cGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use batchUpdateIngressRulesRequestDescriptor instead') const BatchUpdateIngressRulesRequest$json = { '1': 'BatchUpdateIngressRulesRequest', @@ -438,7 +492,10 @@ const BatchUpdateIngressRulesRequest$json = { /// Descriptor for `BatchUpdateIngressRulesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List batchUpdateIngressRulesRequestDescriptor = $convert.base64Decode( - 'Ch5CYXRjaFVwZGF0ZUluZ3Jlc3NSdWxlc1JlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRJKCg1pbmdyZXNzX3J1bGVzGAIgAygLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRmlyZXdhbGxSdWxlUgxpbmdyZXNzUnVsZXM='); + 'Ch5CYXRjaFVwZGF0ZUluZ3Jlc3NSdWxlc1JlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRJKCg' + '1pbmdyZXNzX3J1bGVzGAIgAygLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRmlyZXdhbGxS' + 'dWxlUgxpbmdyZXNzUnVsZXM='); + @$core.Deprecated('Use batchUpdateIngressRulesResponseDescriptor instead') const BatchUpdateIngressRulesResponse$json = { '1': 'BatchUpdateIngressRulesResponse', @@ -457,7 +514,9 @@ const BatchUpdateIngressRulesResponse$json = { /// Descriptor for `BatchUpdateIngressRulesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List batchUpdateIngressRulesResponseDescriptor = $convert.base64Decode( - 'Ch9CYXRjaFVwZGF0ZUluZ3Jlc3NSdWxlc1Jlc3BvbnNlEkoKDWluZ3Jlc3NfcnVsZXMYASADKAsyJS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5GaXJld2FsbFJ1bGVSDGluZ3Jlc3NSdWxlcw=='); + 'Ch9CYXRjaFVwZGF0ZUluZ3Jlc3NSdWxlc1Jlc3BvbnNlEkoKDWluZ3Jlc3NfcnVsZXMYASADKA' + 'syJS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5GaXJld2FsbFJ1bGVSDGluZ3Jlc3NSdWxlcw=='); + @$core.Deprecated('Use createIngressRuleRequestDescriptor instead') const CreateIngressRuleRequest$json = { '1': 'CreateIngressRuleRequest', @@ -475,9 +534,10 @@ const CreateIngressRuleRequest$json = { }; /// Descriptor for `CreateIngressRuleRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List createIngressRuleRequestDescriptor = - $convert.base64Decode( - 'ChhDcmVhdGVJbmdyZXNzUnVsZVJlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbnQSOQoEcnVsZRgCIAEoCzIlLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkZpcmV3YWxsUnVsZVIEcnVsZQ=='); +final $typed_data.Uint8List createIngressRuleRequestDescriptor = $convert.base64Decode( + 'ChhDcmVhdGVJbmdyZXNzUnVsZVJlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbnQSOQoEcn' + 'VsZRgCIAEoCzIlLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkZpcmV3YWxsUnVsZVIEcnVsZQ=='); + @$core.Deprecated('Use getIngressRuleRequestDescriptor instead') const GetIngressRuleRequest$json = { '1': 'GetIngressRuleRequest', @@ -490,6 +550,7 @@ const GetIngressRuleRequest$json = { final $typed_data.Uint8List getIngressRuleRequestDescriptor = $convert.base64Decode( 'ChVHZXRJbmdyZXNzUnVsZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use updateIngressRuleRequestDescriptor instead') const UpdateIngressRuleRequest$json = { '1': 'UpdateIngressRuleRequest', @@ -515,9 +576,12 @@ const UpdateIngressRuleRequest$json = { }; /// Descriptor for `UpdateIngressRuleRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateIngressRuleRequestDescriptor = - $convert.base64Decode( - 'ChhVcGRhdGVJbmdyZXNzUnVsZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRI5CgRydWxlGAIgASgLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRmlyZXdhbGxSdWxlUgRydWxlEjsKC3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IKdXBkYXRlTWFzaw=='); +final $typed_data.Uint8List updateIngressRuleRequestDescriptor = $convert.base64Decode( + 'ChhVcGRhdGVJbmdyZXNzUnVsZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRI5CgRydWxlGA' + 'IgASgLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRmlyZXdhbGxSdWxlUgRydWxlEjsKC3Vw' + 'ZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IKdXBkYXRlTWFzaw' + '=='); + @$core.Deprecated('Use deleteIngressRuleRequestDescriptor instead') const DeleteIngressRuleRequest$json = { '1': 'DeleteIngressRuleRequest', @@ -530,6 +594,7 @@ const DeleteIngressRuleRequest$json = { final $typed_data.Uint8List deleteIngressRuleRequestDescriptor = $convert.base64Decode( 'ChhEZWxldGVJbmdyZXNzUnVsZVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use listAuthorizedDomainsRequestDescriptor instead') const ListAuthorizedDomainsRequest$json = { '1': 'ListAuthorizedDomainsRequest', @@ -543,7 +608,10 @@ const ListAuthorizedDomainsRequest$json = { /// Descriptor for `ListAuthorizedDomainsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listAuthorizedDomainsRequestDescriptor = $convert.base64Decode( - 'ChxMaXN0QXV0aG9yaXplZERvbWFpbnNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); + 'ChxMaXN0QXV0aG9yaXplZERvbWFpbnNSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50Eh' + 'sKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRv' + 'a2Vu'); + @$core.Deprecated('Use listAuthorizedDomainsResponseDescriptor instead') const ListAuthorizedDomainsResponse$json = { '1': 'ListAuthorizedDomainsResponse', @@ -563,7 +631,10 @@ const ListAuthorizedDomainsResponse$json = { /// Descriptor for `ListAuthorizedDomainsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listAuthorizedDomainsResponseDescriptor = $convert.base64Decode( - 'Ch1MaXN0QXV0aG9yaXplZERvbWFpbnNSZXNwb25zZRJDCgdkb21haW5zGAEgAygLMikuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQXV0aG9yaXplZERvbWFpblIHZG9tYWlucxImCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + 'Ch1MaXN0QXV0aG9yaXplZERvbWFpbnNSZXNwb25zZRJDCgdkb21haW5zGAEgAygLMikuZ29vZ2' + 'xlLmFwcGVuZ2luZS52MWJldGEuQXV0aG9yaXplZERvbWFpblIHZG9tYWlucxImCg9uZXh0X3Bh' + 'Z2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + @$core.Deprecated('Use listAuthorizedCertificatesRequestDescriptor instead') const ListAuthorizedCertificatesRequest$json = { '1': 'ListAuthorizedCertificatesRequest', @@ -585,7 +656,11 @@ const ListAuthorizedCertificatesRequest$json = { /// Descriptor for `ListAuthorizedCertificatesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listAuthorizedCertificatesRequestDescriptor = $convert.base64Decode( - 'CiFMaXN0QXV0aG9yaXplZENlcnRpZmljYXRlc1JlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYXJlbnQSRgoEdmlldxgEIAEoDjIyLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkF1dGhvcml6ZWRDZXJ0aWZpY2F0ZVZpZXdSBHZpZXcSGwoJcGFnZV9zaXplGAIgASgFUghwYWdlU2l6ZRIdCgpwYWdlX3Rva2VuGAMgASgJUglwYWdlVG9rZW4='); + 'CiFMaXN0QXV0aG9yaXplZENlcnRpZmljYXRlc1JlcXVlc3QSFgoGcGFyZW50GAEgASgJUgZwYX' + 'JlbnQSRgoEdmlldxgEIAEoDjIyLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkF1dGhvcml6ZWRD' + 'ZXJ0aWZpY2F0ZVZpZXdSBHZpZXcSGwoJcGFnZV9zaXplGAIgASgFUghwYWdlU2l6ZRIdCgpwYW' + 'dlX3Rva2VuGAMgASgJUglwYWdlVG9rZW4='); + @$core.Deprecated('Use listAuthorizedCertificatesResponseDescriptor instead') const ListAuthorizedCertificatesResponse$json = { '1': 'ListAuthorizedCertificatesResponse', @@ -605,7 +680,10 @@ const ListAuthorizedCertificatesResponse$json = { /// Descriptor for `ListAuthorizedCertificatesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listAuthorizedCertificatesResponseDescriptor = $convert.base64Decode( - 'CiJMaXN0QXV0aG9yaXplZENlcnRpZmljYXRlc1Jlc3BvbnNlElIKDGNlcnRpZmljYXRlcxgBIAMoCzIuLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkF1dGhvcml6ZWRDZXJ0aWZpY2F0ZVIMY2VydGlmaWNhdGVzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'CiJMaXN0QXV0aG9yaXplZENlcnRpZmljYXRlc1Jlc3BvbnNlElIKDGNlcnRpZmljYXRlcxgBIA' + 'MoCzIuLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkF1dGhvcml6ZWRDZXJ0aWZpY2F0ZVIMY2Vy' + 'dGlmaWNhdGVzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use getAuthorizedCertificateRequestDescriptor instead') const GetAuthorizedCertificateRequest$json = { '1': 'GetAuthorizedCertificateRequest', @@ -625,7 +703,10 @@ const GetAuthorizedCertificateRequest$json = { /// Descriptor for `GetAuthorizedCertificateRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getAuthorizedCertificateRequestDescriptor = $convert.base64Decode( - 'Ch9HZXRBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSRgoEdmlldxgCIAEoDjIyLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkF1dGhvcml6ZWRDZXJ0aWZpY2F0ZVZpZXdSBHZpZXc='); + 'Ch9HZXRBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSRg' + 'oEdmlldxgCIAEoDjIyLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkF1dGhvcml6ZWRDZXJ0aWZp' + 'Y2F0ZVZpZXdSBHZpZXc='); + @$core.Deprecated('Use createAuthorizedCertificateRequestDescriptor instead') const CreateAuthorizedCertificateRequest$json = { '1': 'CreateAuthorizedCertificateRequest', @@ -645,7 +726,10 @@ const CreateAuthorizedCertificateRequest$json = { /// Descriptor for `CreateAuthorizedCertificateRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createAuthorizedCertificateRequestDescriptor = $convert.base64Decode( - 'CiJDcmVhdGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50ElAKC2NlcnRpZmljYXRlGAIgASgLMi4uZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQXV0aG9yaXplZENlcnRpZmljYXRlUgtjZXJ0aWZpY2F0ZQ=='); + 'CiJDcmVhdGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcG' + 'FyZW50ElAKC2NlcnRpZmljYXRlGAIgASgLMi4uZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQXV0' + 'aG9yaXplZENlcnRpZmljYXRlUgtjZXJ0aWZpY2F0ZQ=='); + @$core.Deprecated('Use updateAuthorizedCertificateRequestDescriptor instead') const UpdateAuthorizedCertificateRequest$json = { '1': 'UpdateAuthorizedCertificateRequest', @@ -673,7 +757,11 @@ const UpdateAuthorizedCertificateRequest$json = { /// Descriptor for `UpdateAuthorizedCertificateRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateAuthorizedCertificateRequestDescriptor = $convert.base64Decode( - 'CiJVcGRhdGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSUAoLY2VydGlmaWNhdGUYAiABKAsyLi5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5BdXRob3JpemVkQ2VydGlmaWNhdGVSC2NlcnRpZmljYXRlEjsKC3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IKdXBkYXRlTWFzaw=='); + 'CiJVcGRhdGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbW' + 'USUAoLY2VydGlmaWNhdGUYAiABKAsyLi5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5BdXRob3Jp' + 'emVkQ2VydGlmaWNhdGVSC2NlcnRpZmljYXRlEjsKC3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2' + 'xlLnByb3RvYnVmLkZpZWxkTWFza1IKdXBkYXRlTWFzaw=='); + @$core.Deprecated('Use deleteAuthorizedCertificateRequestDescriptor instead') const DeleteAuthorizedCertificateRequest$json = { '1': 'DeleteAuthorizedCertificateRequest', @@ -685,7 +773,9 @@ const DeleteAuthorizedCertificateRequest$json = { /// Descriptor for `DeleteAuthorizedCertificateRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteAuthorizedCertificateRequestDescriptor = $convert.base64Decode( - 'CiJEZWxldGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWU='); + 'CiJEZWxldGVBdXRob3JpemVkQ2VydGlmaWNhdGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbW' + 'U='); + @$core.Deprecated('Use listDomainMappingsRequestDescriptor instead') const ListDomainMappingsRequest$json = { '1': 'ListDomainMappingsRequest', @@ -697,9 +787,10 @@ const ListDomainMappingsRequest$json = { }; /// Descriptor for `ListDomainMappingsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listDomainMappingsRequestDescriptor = - $convert.base64Decode( - 'ChlMaXN0RG9tYWluTWFwcGluZ3NSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); +final $typed_data.Uint8List listDomainMappingsRequestDescriptor = $convert.base64Decode( + 'ChlMaXN0RG9tYWluTWFwcGluZ3NSZXF1ZXN0EhYKBnBhcmVudBgBIAEoCVIGcGFyZW50EhsKCX' + 'BhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2Vu'); + @$core.Deprecated('Use listDomainMappingsResponseDescriptor instead') const ListDomainMappingsResponse$json = { '1': 'ListDomainMappingsResponse', @@ -719,7 +810,10 @@ const ListDomainMappingsResponse$json = { /// Descriptor for `ListDomainMappingsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listDomainMappingsResponseDescriptor = $convert.base64Decode( - 'ChpMaXN0RG9tYWluTWFwcGluZ3NSZXNwb25zZRJPCg9kb21haW5fbWFwcGluZ3MYASADKAsyJi5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5Eb21haW5NYXBwaW5nUg5kb21haW5NYXBwaW5ncxImCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + 'ChpMaXN0RG9tYWluTWFwcGluZ3NSZXNwb25zZRJPCg9kb21haW5fbWFwcGluZ3MYASADKAsyJi' + '5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5Eb21haW5NYXBwaW5nUg5kb21haW5NYXBwaW5ncxIm' + 'Cg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + @$core.Deprecated('Use getDomainMappingRequestDescriptor instead') const GetDomainMappingRequest$json = { '1': 'GetDomainMappingRequest', @@ -732,6 +826,7 @@ const GetDomainMappingRequest$json = { final $typed_data.Uint8List getDomainMappingRequestDescriptor = $convert.base64Decode( 'ChdHZXREb21haW5NYXBwaW5nUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use createDomainMappingRequestDescriptor instead') const CreateDomainMappingRequest$json = { '1': 'CreateDomainMappingRequest', @@ -757,9 +852,13 @@ const CreateDomainMappingRequest$json = { }; /// Descriptor for `CreateDomainMappingRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List createDomainMappingRequestDescriptor = - $convert.base64Decode( - 'ChpDcmVhdGVEb21haW5NYXBwaW5nUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBJNCg5kb21haW5fbWFwcGluZxgCIAEoCzImLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkRvbWFpbk1hcHBpbmdSDWRvbWFpbk1hcHBpbmcSXAoRb3ZlcnJpZGVfc3RyYXRlZ3kYBCABKA4yLy5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5Eb21haW5PdmVycmlkZVN0cmF0ZWd5UhBvdmVycmlkZVN0cmF0ZWd5'); +final $typed_data.Uint8List createDomainMappingRequestDescriptor = $convert.base64Decode( + 'ChpDcmVhdGVEb21haW5NYXBwaW5nUmVxdWVzdBIWCgZwYXJlbnQYASABKAlSBnBhcmVudBJNCg' + '5kb21haW5fbWFwcGluZxgCIAEoCzImLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkRvbWFpbk1h' + 'cHBpbmdSDWRvbWFpbk1hcHBpbmcSXAoRb3ZlcnJpZGVfc3RyYXRlZ3kYBCABKA4yLy5nb29nbG' + 'UuYXBwZW5naW5lLnYxYmV0YS5Eb21haW5PdmVycmlkZVN0cmF0ZWd5UhBvdmVycmlkZVN0cmF0' + 'ZWd5'); + @$core.Deprecated('Use updateDomainMappingRequestDescriptor instead') const UpdateDomainMappingRequest$json = { '1': 'UpdateDomainMappingRequest', @@ -785,9 +884,12 @@ const UpdateDomainMappingRequest$json = { }; /// Descriptor for `UpdateDomainMappingRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateDomainMappingRequestDescriptor = - $convert.base64Decode( - 'ChpVcGRhdGVEb21haW5NYXBwaW5nUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEk0KDmRvbWFpbl9tYXBwaW5nGAIgASgLMiYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRG9tYWluTWFwcGluZ1INZG9tYWluTWFwcGluZxI7Cgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tSCnVwZGF0ZU1hc2s='); +final $typed_data.Uint8List updateDomainMappingRequestDescriptor = $convert.base64Decode( + 'ChpVcGRhdGVEb21haW5NYXBwaW5nUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEk0KDmRvbW' + 'Fpbl9tYXBwaW5nGAIgASgLMiYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRG9tYWluTWFwcGlu' + 'Z1INZG9tYWluTWFwcGluZxI7Cgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi' + '5GaWVsZE1hc2tSCnVwZGF0ZU1hc2s='); + @$core.Deprecated('Use deleteDomainMappingRequestDescriptor instead') const DeleteDomainMappingRequest$json = { '1': 'DeleteDomainMappingRequest', diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pb.dart index cb19a29a..f42b20ec 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pb.dart @@ -1,79 +1,65 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/application.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/duration.pb.dart' as $0; - +import '../../protobuf/duration.pb.dart' as $51; import 'application.pbenum.dart'; export 'application.pbenum.dart'; +/// Identity-Aware Proxy class Application_IdentityAwareProxy extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Application.IdentityAwareProxy', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'enabled') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'oauth2ClientId') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'oauth2ClientSecret') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'oauth2ClientSecretSha256') - ..hasRequiredFields = false; - - Application_IdentityAwareProxy._() : super(); factory Application_IdentityAwareProxy({ $core.bool? enabled, $core.String? oauth2ClientId, $core.String? oauth2ClientSecret, $core.String? oauth2ClientSecretSha256, }) { - final _result = create(); + final $result = create(); if (enabled != null) { - _result.enabled = enabled; + $result.enabled = enabled; } if (oauth2ClientId != null) { - _result.oauth2ClientId = oauth2ClientId; + $result.oauth2ClientId = oauth2ClientId; } if (oauth2ClientSecret != null) { - _result.oauth2ClientSecret = oauth2ClientSecret; + $result.oauth2ClientSecret = oauth2ClientSecret; } if (oauth2ClientSecretSha256 != null) { - _result.oauth2ClientSecretSha256 = oauth2ClientSecretSha256; + $result.oauth2ClientSecretSha256 = oauth2ClientSecretSha256; } - return _result; + return $result; } + Application_IdentityAwareProxy._() : super(); factory Application_IdentityAwareProxy.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Application_IdentityAwareProxy.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Application.IdentityAwareProxy', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'enabled') + ..aOS(2, _omitFieldNames ? '' : 'oauth2ClientId') + ..aOS(3, _omitFieldNames ? '' : 'oauth2ClientSecret') + ..aOS(4, _omitFieldNames ? '' : 'oauth2ClientSecretSha256') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -86,8 +72,10 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { void Function(Application_IdentityAwareProxy) updates) => super.copyWith( (message) => updates(message as Application_IdentityAwareProxy)) - as Application_IdentityAwareProxy; // ignore: deprecated_member_use + as Application_IdentityAwareProxy; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Application_IdentityAwareProxy create() => Application_IdentityAwareProxy._(); @@ -99,6 +87,11 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Application_IdentityAwareProxy? _defaultInstance; + /// Whether the serving infrastructure will authenticate and + /// authorize all incoming requests. + /// + /// If true, the `oauth2_client_id` and `oauth2_client_secret` + /// fields must be non-empty. @$pb.TagNumber(1) $core.bool get enabled => $_getBF(0); @$pb.TagNumber(1) @@ -111,6 +104,7 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearEnabled() => clearField(1); + /// OAuth2 client ID to use for the authentication flow. @$pb.TagNumber(2) $core.String get oauth2ClientId => $_getSZ(1); @$pb.TagNumber(2) @@ -123,6 +117,13 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOauth2ClientId() => clearField(2); + /// OAuth2 client secret to use for the authentication flow. + /// + /// For security reasons, this value cannot be retrieved via the API. + /// Instead, the SHA-256 hash of the value is returned in the + /// `oauth2_client_secret_sha256` field. + /// + /// @InputOnly @$pb.TagNumber(3) $core.String get oauth2ClientSecret => $_getSZ(2); @$pb.TagNumber(3) @@ -135,6 +136,9 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearOauth2ClientSecret() => clearField(3); + /// Hex-encoded SHA-256 hash of the client secret. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.String get oauth2ClientSecretSha256 => $_getSZ(3); @$pb.TagNumber(4) @@ -148,48 +152,39 @@ class Application_IdentityAwareProxy extends $pb.GeneratedMessage { void clearOauth2ClientSecretSha256() => clearField(4); } +/// The feature specific settings to be used in the application. These define +/// behaviors that are user configurable. class Application_FeatureSettings extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Application.FeatureSettings', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'splitHealthChecks') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'useContainerOptimizedOs') - ..hasRequiredFields = false; - - Application_FeatureSettings._() : super(); factory Application_FeatureSettings({ $core.bool? splitHealthChecks, $core.bool? useContainerOptimizedOs, }) { - final _result = create(); + final $result = create(); if (splitHealthChecks != null) { - _result.splitHealthChecks = splitHealthChecks; + $result.splitHealthChecks = splitHealthChecks; } if (useContainerOptimizedOs != null) { - _result.useContainerOptimizedOs = useContainerOptimizedOs; + $result.useContainerOptimizedOs = useContainerOptimizedOs; } - return _result; + return $result; } + Application_FeatureSettings._() : super(); factory Application_FeatureSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Application_FeatureSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Application.FeatureSettings', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'splitHealthChecks') + ..aOB(2, _omitFieldNames ? '' : 'useContainerOptimizedOs') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -202,8 +197,10 @@ class Application_FeatureSettings extends $pb.GeneratedMessage { void Function(Application_FeatureSettings) updates) => super.copyWith( (message) => updates(message as Application_FeatureSettings)) - as Application_FeatureSettings; // ignore: deprecated_member_use + as Application_FeatureSettings; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Application_FeatureSettings create() => Application_FeatureSettings._(); @@ -215,6 +212,12 @@ class Application_FeatureSettings extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Application_FeatureSettings? _defaultInstance; + /// Boolean value indicating if split health checks should be used instead + /// of the legacy health checks. At an app.yaml level, this means defaulting + /// to 'readiness_check' and 'liveness_check' values instead of + /// 'health_check' ones. Once the legacy 'health_check' behavior is + /// deprecated, and this value is always true, this setting can + /// be removed. @$pb.TagNumber(1) $core.bool get splitHealthChecks => $_getBF(0); @$pb.TagNumber(1) @@ -227,6 +230,8 @@ class Application_FeatureSettings extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSplitHealthChecks() => clearField(1); + /// If true, use [Container-Optimized OS](https://cloud.google.com/container-optimized-os/) + /// base image for VMs, rather than a base Debian image. @$pb.TagNumber(2) $core.bool get useContainerOptimizedOs => $_getBF(1); @$pb.TagNumber(2) @@ -240,47 +245,9 @@ class Application_FeatureSettings extends $pb.GeneratedMessage { void clearUseContainerOptimizedOs() => clearField(2); } +/// An Application resource contains the top-level configuration of an App +/// Engine application. class Application extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Application', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'dispatchRules', - $pb.PbFieldType.PM, - subBuilder: UrlDispatchRule.create) - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'authDomain') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'locationId') - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'codeBucket') - ..aOM<$0.Duration>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultCookieExpiration', subBuilder: $0.Duration.create) - ..e(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'servingStatus', $pb.PbFieldType.OE, defaultOrMaker: Application_ServingStatus.UNSPECIFIED, valueOf: Application_ServingStatus.valueOf, enumValues: Application_ServingStatus.values) - ..aOS(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultHostname') - ..aOS(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultBucket') - ..aOM(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'iap', subBuilder: Application_IdentityAwareProxy.create) - ..aOS(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'gcrDomain') - ..e(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'databaseType', $pb.PbFieldType.OE, defaultOrMaker: Application_DatabaseType.DATABASE_TYPE_UNSPECIFIED, valueOf: Application_DatabaseType.valueOf, enumValues: Application_DatabaseType.values) - ..aOM(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'featureSettings', subBuilder: Application_FeatureSettings.create) - ..hasRequiredFields = false; - - Application._() : super(); factory Application({ $core.String? name, $core.String? id, @@ -288,7 +255,7 @@ class Application extends $pb.GeneratedMessage { $core.String? authDomain, $core.String? locationId, $core.String? codeBucket, - $0.Duration? defaultCookieExpiration, + $51.Duration? defaultCookieExpiration, Application_ServingStatus? servingStatus, $core.String? defaultHostname, $core.String? defaultBucket, @@ -297,57 +264,94 @@ class Application extends $pb.GeneratedMessage { Application_DatabaseType? databaseType, Application_FeatureSettings? featureSettings, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (dispatchRules != null) { - _result.dispatchRules.addAll(dispatchRules); + $result.dispatchRules.addAll(dispatchRules); } if (authDomain != null) { - _result.authDomain = authDomain; + $result.authDomain = authDomain; } if (locationId != null) { - _result.locationId = locationId; + $result.locationId = locationId; } if (codeBucket != null) { - _result.codeBucket = codeBucket; + $result.codeBucket = codeBucket; } if (defaultCookieExpiration != null) { - _result.defaultCookieExpiration = defaultCookieExpiration; + $result.defaultCookieExpiration = defaultCookieExpiration; } if (servingStatus != null) { - _result.servingStatus = servingStatus; + $result.servingStatus = servingStatus; } if (defaultHostname != null) { - _result.defaultHostname = defaultHostname; + $result.defaultHostname = defaultHostname; } if (defaultBucket != null) { - _result.defaultBucket = defaultBucket; + $result.defaultBucket = defaultBucket; } if (iap != null) { - _result.iap = iap; + $result.iap = iap; } if (gcrDomain != null) { - _result.gcrDomain = gcrDomain; + $result.gcrDomain = gcrDomain; } if (databaseType != null) { - _result.databaseType = databaseType; + $result.databaseType = databaseType; } if (featureSettings != null) { - _result.featureSettings = featureSettings; + $result.featureSettings = featureSettings; } - return _result; + return $result; } + Application._() : super(); factory Application.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Application.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Application', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..pc( + 3, _omitFieldNames ? '' : 'dispatchRules', $pb.PbFieldType.PM, + subBuilder: UrlDispatchRule.create) + ..aOS(6, _omitFieldNames ? '' : 'authDomain') + ..aOS(7, _omitFieldNames ? '' : 'locationId') + ..aOS(8, _omitFieldNames ? '' : 'codeBucket') + ..aOM<$51.Duration>(9, _omitFieldNames ? '' : 'defaultCookieExpiration', + subBuilder: $51.Duration.create) + ..e( + 10, _omitFieldNames ? '' : 'servingStatus', $pb.PbFieldType.OE, + defaultOrMaker: Application_ServingStatus.UNSPECIFIED, + valueOf: Application_ServingStatus.valueOf, + enumValues: Application_ServingStatus.values) + ..aOS(11, _omitFieldNames ? '' : 'defaultHostname') + ..aOS(12, _omitFieldNames ? '' : 'defaultBucket') + ..aOM(14, _omitFieldNames ? '' : 'iap', + subBuilder: Application_IdentityAwareProxy.create) + ..aOS(16, _omitFieldNames ? '' : 'gcrDomain') + ..e( + 17, _omitFieldNames ? '' : 'databaseType', $pb.PbFieldType.OE, + defaultOrMaker: Application_DatabaseType.DATABASE_TYPE_UNSPECIFIED, + valueOf: Application_DatabaseType.valueOf, + enumValues: Application_DatabaseType.values) + ..aOM( + 18, _omitFieldNames ? '' : 'featureSettings', + subBuilder: Application_FeatureSettings.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') @@ -357,8 +361,10 @@ class Application extends $pb.GeneratedMessage { 'Will be removed in next major version') Application copyWith(void Function(Application) updates) => super.copyWith((message) => updates(message as Application)) - as Application; // ignore: deprecated_member_use + as Application; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Application create() => Application._(); Application createEmptyInstance() => create(); @@ -368,6 +374,10 @@ class Application extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Application? _defaultInstance; + /// Full path to the Application resource in the API. + /// Example: `apps/myapp`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -380,6 +390,10 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Identifier of the Application resource. This identifier is equivalent + /// to the project ID of the Google Cloud Platform project where you want to + /// deploy your application. + /// Example: `myapp`. @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -392,9 +406,16 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// HTTP path dispatch rules for requests to the application that do not + /// explicitly target a service or version. Rules are order-dependent. + /// Up to 20 dispatch rules can be supported. @$pb.TagNumber(3) $core.List get dispatchRules => $_getList(2); + /// Google Apps authentication domain that controls which users can access + /// this application. + /// + /// Defaults to open access for any Google Account. @$pb.TagNumber(6) $core.String get authDomain => $_getSZ(3); @$pb.TagNumber(6) @@ -407,6 +428,14 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearAuthDomain() => clearField(6); + /// Location from which this application runs. Application instances + /// run out of the data centers in the specified location, which is also where + /// all of the application's end user content is stored. + /// + /// Defaults to `us-central`. + /// + /// View the list of + /// [supported locations](https://cloud.google.com/appengine/docs/locations). @$pb.TagNumber(7) $core.String get locationId => $_getSZ(4); @$pb.TagNumber(7) @@ -419,6 +448,11 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearLocationId() => clearField(7); + /// Google Cloud Storage bucket that can be used for storing files + /// associated with this application. This bucket is associated with the + /// application and can be used by the gcloud deployment commands. + /// + /// @OutputOnly @$pb.TagNumber(8) $core.String get codeBucket => $_getSZ(5); @$pb.TagNumber(8) @@ -431,10 +465,11 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearCodeBucket() => clearField(8); + /// Cookie expiration policy for this application. @$pb.TagNumber(9) - $0.Duration get defaultCookieExpiration => $_getN(6); + $51.Duration get defaultCookieExpiration => $_getN(6); @$pb.TagNumber(9) - set defaultCookieExpiration($0.Duration v) { + set defaultCookieExpiration($51.Duration v) { setField(9, v); } @@ -443,8 +478,9 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearDefaultCookieExpiration() => clearField(9); @$pb.TagNumber(9) - $0.Duration ensureDefaultCookieExpiration() => $_ensure(6); + $51.Duration ensureDefaultCookieExpiration() => $_ensure(6); + /// Serving status of this application. @$pb.TagNumber(10) Application_ServingStatus get servingStatus => $_getN(7); @$pb.TagNumber(10) @@ -457,6 +493,9 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearServingStatus() => clearField(10); + /// Hostname used to reach this application, as resolved by App Engine. + /// + /// @OutputOnly @$pb.TagNumber(11) $core.String get defaultHostname => $_getSZ(8); @$pb.TagNumber(11) @@ -469,6 +508,10 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearDefaultHostname() => clearField(11); + /// Google Cloud Storage bucket that can be used by this application to store + /// content. + /// + /// @OutputOnly @$pb.TagNumber(12) $core.String get defaultBucket => $_getSZ(9); @$pb.TagNumber(12) @@ -495,6 +538,8 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(14) Application_IdentityAwareProxy ensureIap() => $_ensure(10); + /// The Google Container Registry domain used for storing managed build docker + /// images for this application. @$pb.TagNumber(16) $core.String get gcrDomain => $_getSZ(11); @$pb.TagNumber(16) @@ -507,6 +552,8 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(16) void clearGcrDomain() => clearField(16); + /// The type of the Cloud Firestore or Cloud Datastore database associated with + /// this application. @$pb.TagNumber(17) Application_DatabaseType get databaseType => $_getN(12); @$pb.TagNumber(17) @@ -519,6 +566,7 @@ class Application extends $pb.GeneratedMessage { @$pb.TagNumber(17) void clearDatabaseType() => clearField(17); + /// The feature specific settings to be used in the application. @$pb.TagNumber(18) Application_FeatureSettings get featureSettings => $_getN(13); @$pb.TagNumber(18) @@ -534,57 +582,43 @@ class Application extends $pb.GeneratedMessage { Application_FeatureSettings ensureFeatureSettings() => $_ensure(13); } +/// Rules to match an HTTP request and dispatch that request to a service. class UrlDispatchRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UrlDispatchRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'domain') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'service') - ..hasRequiredFields = false; - - UrlDispatchRule._() : super(); factory UrlDispatchRule({ $core.String? domain, $core.String? path, $core.String? service, }) { - final _result = create(); + final $result = create(); if (domain != null) { - _result.domain = domain; + $result.domain = domain; } if (path != null) { - _result.path = path; + $result.path = path; } if (service != null) { - _result.service = service; + $result.service = service; } - return _result; + return $result; } + UrlDispatchRule._() : super(); factory UrlDispatchRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UrlDispatchRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UrlDispatchRule', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'domain') + ..aOS(2, _omitFieldNames ? '' : 'path') + ..aOS(3, _omitFieldNames ? '' : 'service') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -594,8 +628,10 @@ class UrlDispatchRule extends $pb.GeneratedMessage { 'Will be removed in next major version') UrlDispatchRule copyWith(void Function(UrlDispatchRule) updates) => super.copyWith((message) => updates(message as UrlDispatchRule)) - as UrlDispatchRule; // ignore: deprecated_member_use + as UrlDispatchRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UrlDispatchRule create() => UrlDispatchRule._(); UrlDispatchRule createEmptyInstance() => create(); @@ -606,6 +642,10 @@ class UrlDispatchRule extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UrlDispatchRule? _defaultInstance; + /// Domain name to match against. The wildcard "`*`" is supported if + /// specified before a period: "`*.`". + /// + /// Defaults to matching all domains: "`*`". @$pb.TagNumber(1) $core.String get domain => $_getSZ(0); @$pb.TagNumber(1) @@ -618,6 +658,11 @@ class UrlDispatchRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearDomain() => clearField(1); + /// Pathname within the host. Must start with a "`/`". A + /// single "`*`" can be included at the end of the path. + /// + /// The sum of the lengths of the domain and path may not + /// exceed 100 characters. @$pb.TagNumber(2) $core.String get path => $_getSZ(1); @$pb.TagNumber(2) @@ -630,6 +675,9 @@ class UrlDispatchRule extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPath() => clearField(2); + /// Resource ID of a service in this application that should + /// serve the matched request. The service must already + /// exist. Example: `default`. @$pb.TagNumber(3) $core.String get service => $_getSZ(2); @$pb.TagNumber(3) @@ -642,3 +690,7 @@ class UrlDispatchRule extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearService() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pbenum.dart index 63ec19d8..613f75c7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pbenum.dart @@ -1,36 +1,27 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/application.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 Application_ServingStatus extends $pb.ProtobufEnum { static const Application_ServingStatus UNSPECIFIED = - Application_ServingStatus._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED'); - static const Application_ServingStatus SERVING = Application_ServingStatus._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SERVING'); + Application_ServingStatus._(0, _omitEnumNames ? '' : 'UNSPECIFIED'); + static const Application_ServingStatus SERVING = + Application_ServingStatus._(1, _omitEnumNames ? '' : 'SERVING'); static const Application_ServingStatus USER_DISABLED = - Application_ServingStatus._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'USER_DISABLED'); + Application_ServingStatus._(2, _omitEnumNames ? '' : 'USER_DISABLED'); static const Application_ServingStatus SYSTEM_DISABLED = - Application_ServingStatus._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SYSTEM_DISABLED'); + Application_ServingStatus._(3, _omitEnumNames ? '' : 'SYSTEM_DISABLED'); static const $core.List values = [ @@ -50,28 +41,14 @@ class Application_ServingStatus extends $pb.ProtobufEnum { class Application_DatabaseType extends $pb.ProtobufEnum { static const Application_DatabaseType DATABASE_TYPE_UNSPECIFIED = Application_DatabaseType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DATABASE_TYPE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'DATABASE_TYPE_UNSPECIFIED'); static const Application_DatabaseType CLOUD_DATASTORE = - Application_DatabaseType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CLOUD_DATASTORE'); + Application_DatabaseType._(1, _omitEnumNames ? '' : 'CLOUD_DATASTORE'); static const Application_DatabaseType CLOUD_FIRESTORE = - Application_DatabaseType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CLOUD_FIRESTORE'); + Application_DatabaseType._(2, _omitEnumNames ? '' : 'CLOUD_FIRESTORE'); static const Application_DatabaseType CLOUD_DATASTORE_COMPATIBILITY = Application_DatabaseType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CLOUD_DATASTORE_COMPATIBILITY'); + 3, _omitEnumNames ? '' : 'CLOUD_DATASTORE_COMPATIBILITY'); static const $core.List values = [ @@ -87,3 +64,5 @@ class Application_DatabaseType extends $pb.ProtobufEnum { const Application_DatabaseType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pbjson.dart index 8dc76cf4..df81dafa 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/application.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/application.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 applicationDescriptor instead') @@ -142,7 +146,31 @@ const Application_DatabaseType$json = { /// Descriptor for `Application`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List applicationDescriptor = $convert.base64Decode( - 'CgtBcHBsaWNhdGlvbhISCgRuYW1lGAEgASgJUgRuYW1lEg4KAmlkGAIgASgJUgJpZBJPCg5kaXNwYXRjaF9ydWxlcxgDIAMoCzIoLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlVybERpc3BhdGNoUnVsZVINZGlzcGF0Y2hSdWxlcxIfCgthdXRoX2RvbWFpbhgGIAEoCVIKYXV0aERvbWFpbhIfCgtsb2NhdGlvbl9pZBgHIAEoCVIKbG9jYXRpb25JZBIfCgtjb2RlX2J1Y2tldBgIIAEoCVIKY29kZUJ1Y2tldBJVChlkZWZhdWx0X2Nvb2tpZV9leHBpcmF0aW9uGAkgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhdkZWZhdWx0Q29va2llRXhwaXJhdGlvbhJZCg5zZXJ2aW5nX3N0YXR1cxgKIAEoDjIyLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkFwcGxpY2F0aW9uLlNlcnZpbmdTdGF0dXNSDXNlcnZpbmdTdGF0dXMSKQoQZGVmYXVsdF9ob3N0bmFtZRgLIAEoCVIPZGVmYXVsdEhvc3RuYW1lEiUKDmRlZmF1bHRfYnVja2V0GAwgASgJUg1kZWZhdWx0QnVja2V0EkkKA2lhcBgOIAEoCzI3Lmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkFwcGxpY2F0aW9uLklkZW50aXR5QXdhcmVQcm94eVIDaWFwEh0KCmdjcl9kb21haW4YECABKAlSCWdjckRvbWFpbhJWCg1kYXRhYmFzZV90eXBlGBEgASgOMjEuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQXBwbGljYXRpb24uRGF0YWJhc2VUeXBlUgxkYXRhYmFzZVR5cGUSXwoQZmVhdHVyZV9zZXR0aW5ncxgSIAEoCzI0Lmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkFwcGxpY2F0aW9uLkZlYXR1cmVTZXR0aW5nc1IPZmVhdHVyZVNldHRpbmdzGskBChJJZGVudGl0eUF3YXJlUHJveHkSGAoHZW5hYmxlZBgBIAEoCFIHZW5hYmxlZBIoChBvYXV0aDJfY2xpZW50X2lkGAIgASgJUg5vYXV0aDJDbGllbnRJZBIwChRvYXV0aDJfY2xpZW50X3NlY3JldBgDIAEoCVISb2F1dGgyQ2xpZW50U2VjcmV0Ej0KG29hdXRoMl9jbGllbnRfc2VjcmV0X3NoYTI1NhgEIAEoCVIYb2F1dGgyQ2xpZW50U2VjcmV0U2hhMjU2Gn4KD0ZlYXR1cmVTZXR0aW5ncxIuChNzcGxpdF9oZWFsdGhfY2hlY2tzGAEgASgIUhFzcGxpdEhlYWx0aENoZWNrcxI7Chp1c2VfY29udGFpbmVyX29wdGltaXplZF9vcxgCIAEoCFIXdXNlQ29udGFpbmVyT3B0aW1pemVkT3MiVQoNU2VydmluZ1N0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1NFUlZJTkcQARIRCg1VU0VSX0RJU0FCTEVEEAISEwoPU1lTVEVNX0RJU0FCTEVEEAMiegoMRGF0YWJhc2VUeXBlEh0KGURBVEFCQVNFX1RZUEVfVU5TUEVDSUZJRUQQABITCg9DTE9VRF9EQVRBU1RPUkUQARITCg9DTE9VRF9GSVJFU1RPUkUQAhIhCh1DTE9VRF9EQVRBU1RPUkVfQ09NUEFUSUJJTElUWRAD'); + 'CgtBcHBsaWNhdGlvbhISCgRuYW1lGAEgASgJUgRuYW1lEg4KAmlkGAIgASgJUgJpZBJPCg5kaX' + 'NwYXRjaF9ydWxlcxgDIAMoCzIoLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlVybERpc3BhdGNo' + 'UnVsZVINZGlzcGF0Y2hSdWxlcxIfCgthdXRoX2RvbWFpbhgGIAEoCVIKYXV0aERvbWFpbhIfCg' + 'tsb2NhdGlvbl9pZBgHIAEoCVIKbG9jYXRpb25JZBIfCgtjb2RlX2J1Y2tldBgIIAEoCVIKY29k' + 'ZUJ1Y2tldBJVChlkZWZhdWx0X2Nvb2tpZV9leHBpcmF0aW9uGAkgASgLMhkuZ29vZ2xlLnByb3' + 'RvYnVmLkR1cmF0aW9uUhdkZWZhdWx0Q29va2llRXhwaXJhdGlvbhJZCg5zZXJ2aW5nX3N0YXR1' + 'cxgKIAEoDjIyLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkFwcGxpY2F0aW9uLlNlcnZpbmdTdG' + 'F0dXNSDXNlcnZpbmdTdGF0dXMSKQoQZGVmYXVsdF9ob3N0bmFtZRgLIAEoCVIPZGVmYXVsdEhv' + 'c3RuYW1lEiUKDmRlZmF1bHRfYnVja2V0GAwgASgJUg1kZWZhdWx0QnVja2V0EkkKA2lhcBgOIA' + 'EoCzI3Lmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkFwcGxpY2F0aW9uLklkZW50aXR5QXdhcmVQ' + 'cm94eVIDaWFwEh0KCmdjcl9kb21haW4YECABKAlSCWdjckRvbWFpbhJWCg1kYXRhYmFzZV90eX' + 'BlGBEgASgOMjEuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQXBwbGljYXRpb24uRGF0YWJhc2VU' + 'eXBlUgxkYXRhYmFzZVR5cGUSXwoQZmVhdHVyZV9zZXR0aW5ncxgSIAEoCzI0Lmdvb2dsZS5hcH' + 'BlbmdpbmUudjFiZXRhLkFwcGxpY2F0aW9uLkZlYXR1cmVTZXR0aW5nc1IPZmVhdHVyZVNldHRp' + 'bmdzGskBChJJZGVudGl0eUF3YXJlUHJveHkSGAoHZW5hYmxlZBgBIAEoCFIHZW5hYmxlZBIoCh' + 'BvYXV0aDJfY2xpZW50X2lkGAIgASgJUg5vYXV0aDJDbGllbnRJZBIwChRvYXV0aDJfY2xpZW50' + 'X3NlY3JldBgDIAEoCVISb2F1dGgyQ2xpZW50U2VjcmV0Ej0KG29hdXRoMl9jbGllbnRfc2Vjcm' + 'V0X3NoYTI1NhgEIAEoCVIYb2F1dGgyQ2xpZW50U2VjcmV0U2hhMjU2Gn4KD0ZlYXR1cmVTZXR0' + 'aW5ncxIuChNzcGxpdF9oZWFsdGhfY2hlY2tzGAEgASgIUhFzcGxpdEhlYWx0aENoZWNrcxI7Ch' + 'p1c2VfY29udGFpbmVyX29wdGltaXplZF9vcxgCIAEoCFIXdXNlQ29udGFpbmVyT3B0aW1pemVk' + 'T3MiVQoNU2VydmluZ1N0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1NFUlZJTkcQARIRCg1VU0' + 'VSX0RJU0FCTEVEEAISEwoPU1lTVEVNX0RJU0FCTEVEEAMiegoMRGF0YWJhc2VUeXBlEh0KGURB' + 'VEFCQVNFX1RZUEVfVU5TUEVDSUZJRUQQABITCg9DTE9VRF9EQVRBU1RPUkUQARITCg9DTE9VRF' + '9GSVJFU1RPUkUQAhIhCh1DTE9VRF9EQVRBU1RPUkVfQ09NUEFUSUJJTElUWRAD'); + @$core.Deprecated('Use urlDispatchRuleDescriptor instead') const UrlDispatchRule$json = { '1': 'UrlDispatchRule', @@ -155,4 +183,5 @@ const UrlDispatchRule$json = { /// Descriptor for `UrlDispatchRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List urlDispatchRuleDescriptor = $convert.base64Decode( - 'Cg9VcmxEaXNwYXRjaFJ1bGUSFgoGZG9tYWluGAEgASgJUgZkb21haW4SEgoEcGF0aBgCIAEoCVIEcGF0aBIYCgdzZXJ2aWNlGAMgASgJUgdzZXJ2aWNl'); + 'Cg9VcmxEaXNwYXRjaFJ1bGUSFgoGZG9tYWluGAEgASgJUgZkb21haW4SEgoEcGF0aBgCIAEoCV' + 'IEcGF0aBIYCgdzZXJ2aWNlGAMgASgJUgdzZXJ2aWNl'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pb.dart index 1e873a90..9f920b8a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,53 +17,46 @@ import 'appengine.pb.dart' as $2; enum AuditData_Method { updateService, createVersion, notSet } +/// App Engine admin service audit log. class AuditData extends $pb.GeneratedMessage { - static const $core.Map<$core.int, AuditData_Method> _AuditData_MethodByTag = { - 1: AuditData_Method.updateService, - 2: AuditData_Method.createVersion, - 0: AuditData_Method.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuditData', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateService', - subBuilder: UpdateServiceMethod.create) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'createVersion', - subBuilder: CreateVersionMethod.create) - ..hasRequiredFields = false; - - AuditData._() : super(); factory AuditData({ UpdateServiceMethod? updateService, CreateVersionMethod? createVersion, }) { - final _result = create(); + final $result = create(); if (updateService != null) { - _result.updateService = updateService; + $result.updateService = updateService; } if (createVersion != null) { - _result.createVersion = createVersion; + $result.createVersion = createVersion; } - return _result; + return $result; } + AuditData._() : super(); factory AuditData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuditData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, AuditData_Method> _AuditData_MethodByTag = { + 1: AuditData_Method.updateService, + 2: AuditData_Method.createVersion, + 0: AuditData_Method.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuditData', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..oo(0, [1, 2]) + ..aOM(1, _omitFieldNames ? '' : 'updateService', + subBuilder: UpdateServiceMethod.create) + ..aOM(2, _omitFieldNames ? '' : 'createVersion', + subBuilder: CreateVersionMethod.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') @@ -68,9 +65,10 @@ class AuditData extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') AuditData copyWith(void Function(AuditData) updates) => - super.copyWith((message) => updates(message as AuditData)) - as AuditData; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as AuditData)) as AuditData; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuditData create() => AuditData._(); AuditData createEmptyInstance() => create(); @@ -83,6 +81,7 @@ class AuditData extends $pb.GeneratedMessage { AuditData_Method whichMethod() => _AuditData_MethodByTag[$_whichOneof(0)]!; void clearMethod() => clearField($_whichOneof(0)); + /// Detailed information about UpdateService call. @$pb.TagNumber(1) UpdateServiceMethod get updateService => $_getN(0); @$pb.TagNumber(1) @@ -97,6 +96,7 @@ class AuditData extends $pb.GeneratedMessage { @$pb.TagNumber(1) UpdateServiceMethod ensureUpdateService() => $_ensure(0); + /// Detailed information about CreateVersion call. @$pb.TagNumber(2) CreateVersionMethod get createVersion => $_getN(1); @$pb.TagNumber(2) @@ -112,40 +112,34 @@ class AuditData extends $pb.GeneratedMessage { CreateVersionMethod ensureCreateVersion() => $_ensure(1); } +/// Detailed information about UpdateService call. class UpdateServiceMethod extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateServiceMethod', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOM<$2.UpdateServiceRequest>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'request', - subBuilder: $2.UpdateServiceRequest.create) - ..hasRequiredFields = false; - - UpdateServiceMethod._() : super(); factory UpdateServiceMethod({ $2.UpdateServiceRequest? request, }) { - final _result = create(); + final $result = create(); if (request != null) { - _result.request = request; + $result.request = request; } - return _result; + return $result; } + UpdateServiceMethod._() : super(); factory UpdateServiceMethod.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateServiceMethod.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateServiceMethod', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOM<$2.UpdateServiceRequest>(1, _omitFieldNames ? '' : 'request', + subBuilder: $2.UpdateServiceRequest.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') @@ -155,8 +149,10 @@ class UpdateServiceMethod extends $pb.GeneratedMessage { 'Will be removed in next major version') UpdateServiceMethod copyWith(void Function(UpdateServiceMethod) updates) => super.copyWith((message) => updates(message as UpdateServiceMethod)) - as UpdateServiceMethod; // ignore: deprecated_member_use + as UpdateServiceMethod; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateServiceMethod create() => UpdateServiceMethod._(); UpdateServiceMethod createEmptyInstance() => create(); @@ -167,6 +163,7 @@ class UpdateServiceMethod extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateServiceMethod? _defaultInstance; + /// Update service request. @$pb.TagNumber(1) $2.UpdateServiceRequest get request => $_getN(0); @$pb.TagNumber(1) @@ -182,40 +179,34 @@ class UpdateServiceMethod extends $pb.GeneratedMessage { $2.UpdateServiceRequest ensureRequest() => $_ensure(0); } +/// Detailed information about CreateVersion call. class CreateVersionMethod extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateVersionMethod', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOM<$2.CreateVersionRequest>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'request', - subBuilder: $2.CreateVersionRequest.create) - ..hasRequiredFields = false; - - CreateVersionMethod._() : super(); factory CreateVersionMethod({ $2.CreateVersionRequest? request, }) { - final _result = create(); + final $result = create(); if (request != null) { - _result.request = request; + $result.request = request; } - return _result; + return $result; } + CreateVersionMethod._() : super(); factory CreateVersionMethod.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateVersionMethod.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateVersionMethod', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOM<$2.CreateVersionRequest>(1, _omitFieldNames ? '' : 'request', + subBuilder: $2.CreateVersionRequest.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') @@ -225,8 +216,10 @@ class CreateVersionMethod extends $pb.GeneratedMessage { 'Will be removed in next major version') CreateVersionMethod copyWith(void Function(CreateVersionMethod) updates) => super.copyWith((message) => updates(message as CreateVersionMethod)) - as CreateVersionMethod; // ignore: deprecated_member_use + as CreateVersionMethod; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateVersionMethod create() => CreateVersionMethod._(); CreateVersionMethod createEmptyInstance() => create(); @@ -237,6 +230,7 @@ class CreateVersionMethod extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateVersionMethod? _defaultInstance; + /// Create version request. @$pb.TagNumber(1) $2.CreateVersionRequest get request => $_getN(0); @$pb.TagNumber(1) @@ -251,3 +245,7 @@ class CreateVersionMethod extends $pb.GeneratedMessage { @$pb.TagNumber(1) $2.CreateVersionRequest ensureRequest() => $_ensure(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pbenum.dart index 367a6bd2..1f848070 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pbjson.dart index 56a253ec..962e608e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/audit_data.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 auditDataDescriptor instead') @@ -39,7 +43,11 @@ const AuditData$json = { /// Descriptor for `AuditData`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List auditDataDescriptor = $convert.base64Decode( - 'CglBdWRpdERhdGESVQoOdXBkYXRlX3NlcnZpY2UYASABKAsyLC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5VcGRhdGVTZXJ2aWNlTWV0aG9kSABSDXVwZGF0ZVNlcnZpY2USVQoOY3JlYXRlX3ZlcnNpb24YAiABKAsyLC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5DcmVhdGVWZXJzaW9uTWV0aG9kSABSDWNyZWF0ZVZlcnNpb25CCAoGbWV0aG9k'); + 'CglBdWRpdERhdGESVQoOdXBkYXRlX3NlcnZpY2UYASABKAsyLC5nb29nbGUuYXBwZW5naW5lLn' + 'YxYmV0YS5VcGRhdGVTZXJ2aWNlTWV0aG9kSABSDXVwZGF0ZVNlcnZpY2USVQoOY3JlYXRlX3Zl' + 'cnNpb24YAiABKAsyLC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5DcmVhdGVWZXJzaW9uTWV0aG' + '9kSABSDWNyZWF0ZVZlcnNpb25CCAoGbWV0aG9k'); + @$core.Deprecated('Use updateServiceMethodDescriptor instead') const UpdateServiceMethod$json = { '1': 'UpdateServiceMethod', @@ -57,7 +65,9 @@ const UpdateServiceMethod$json = { /// Descriptor for `UpdateServiceMethod`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateServiceMethodDescriptor = $convert.base64Decode( - 'ChNVcGRhdGVTZXJ2aWNlTWV0aG9kEkcKB3JlcXVlc3QYASABKAsyLS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5VcGRhdGVTZXJ2aWNlUmVxdWVzdFIHcmVxdWVzdA=='); + 'ChNVcGRhdGVTZXJ2aWNlTWV0aG9kEkcKB3JlcXVlc3QYASABKAsyLS5nb29nbGUuYXBwZW5naW' + '5lLnYxYmV0YS5VcGRhdGVTZXJ2aWNlUmVxdWVzdFIHcmVxdWVzdA=='); + @$core.Deprecated('Use createVersionMethodDescriptor instead') const CreateVersionMethod$json = { '1': 'CreateVersionMethod', @@ -75,4 +85,5 @@ const CreateVersionMethod$json = { /// Descriptor for `CreateVersionMethod`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createVersionMethodDescriptor = $convert.base64Decode( - 'ChNDcmVhdGVWZXJzaW9uTWV0aG9kEkcKB3JlcXVlc3QYASABKAsyLS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5DcmVhdGVWZXJzaW9uUmVxdWVzdFIHcmVxdWVzdA=='); + 'ChNDcmVhdGVWZXJzaW9uTWV0aG9kEkcKB3JlcXVlc3QYASABKAsyLS5nb29nbGUuYXBwZW5naW' + '5lLnYxYmV0YS5DcmVhdGVWZXJzaW9uUmVxdWVzdFIHcmVxdWVzdA=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pb.dart index 12d17176..9052e047 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pb.dart @@ -1,102 +1,96 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/certificate.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/timestamp.pb.dart' as $0; - +import '../../protobuf/timestamp.pb.dart' as $50; import 'certificate.pbenum.dart'; export 'certificate.pbenum.dart'; +/// An SSL certificate that a user has been authorized to administer. A user +/// is authorized to administer any certificate that applies to one of their +/// authorized domains. class AuthorizedCertificate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuthorizedCertificate', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'displayName') - ..pPS(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'domainNames') - ..aOM<$0.Timestamp>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'expireTime', subBuilder: $0.Timestamp.create) - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'certificateRawData', subBuilder: CertificateRawData.create) - ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'managedCertificate', subBuilder: ManagedCertificate.create) - ..pPS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'visibleDomainMappings') - ..a<$core.int>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'domainMappingsCount', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - AuthorizedCertificate._() : super(); factory AuthorizedCertificate({ $core.String? name, $core.String? id, $core.String? displayName, $core.Iterable<$core.String>? domainNames, - $0.Timestamp? expireTime, + $50.Timestamp? expireTime, CertificateRawData? certificateRawData, ManagedCertificate? managedCertificate, $core.Iterable<$core.String>? visibleDomainMappings, $core.int? domainMappingsCount, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (displayName != null) { - _result.displayName = displayName; + $result.displayName = displayName; } if (domainNames != null) { - _result.domainNames.addAll(domainNames); + $result.domainNames.addAll(domainNames); } if (expireTime != null) { - _result.expireTime = expireTime; + $result.expireTime = expireTime; } if (certificateRawData != null) { - _result.certificateRawData = certificateRawData; + $result.certificateRawData = certificateRawData; } if (managedCertificate != null) { - _result.managedCertificate = managedCertificate; + $result.managedCertificate = managedCertificate; } if (visibleDomainMappings != null) { - _result.visibleDomainMappings.addAll(visibleDomainMappings); + $result.visibleDomainMappings.addAll(visibleDomainMappings); } if (domainMappingsCount != null) { - _result.domainMappingsCount = domainMappingsCount; + $result.domainMappingsCount = domainMappingsCount; } - return _result; + return $result; } + AuthorizedCertificate._() : super(); factory AuthorizedCertificate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuthorizedCertificate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuthorizedCertificate', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..aOS(3, _omitFieldNames ? '' : 'displayName') + ..pPS(4, _omitFieldNames ? '' : 'domainNames') + ..aOM<$50.Timestamp>(5, _omitFieldNames ? '' : 'expireTime', + subBuilder: $50.Timestamp.create) + ..aOM(6, _omitFieldNames ? '' : 'certificateRawData', + subBuilder: CertificateRawData.create) + ..aOM(7, _omitFieldNames ? '' : 'managedCertificate', + subBuilder: ManagedCertificate.create) + ..pPS(8, _omitFieldNames ? '' : 'visibleDomainMappings') + ..a<$core.int>( + 9, _omitFieldNames ? '' : 'domainMappingsCount', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -108,8 +102,10 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { AuthorizedCertificate copyWith( void Function(AuthorizedCertificate) updates) => super.copyWith((message) => updates(message as AuthorizedCertificate)) - as AuthorizedCertificate; // ignore: deprecated_member_use + as AuthorizedCertificate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuthorizedCertificate create() => AuthorizedCertificate._(); AuthorizedCertificate createEmptyInstance() => create(); @@ -120,6 +116,10 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AuthorizedCertificate? _defaultInstance; + /// Full path to the `AuthorizedCertificate` resource in the API. Example: + /// `apps/myapp/authorizedCertificates/12345`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -132,6 +132,10 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Relative name of the certificate. This is a unique value autogenerated + /// on `AuthorizedCertificate` resource creation. Example: `12345`. + /// + /// @OutputOnly @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -144,6 +148,8 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// The user-specified display name of the certificate. This is not + /// guaranteed to be unique. Example: `My Certificate`. @$pb.TagNumber(3) $core.String get displayName => $_getSZ(2); @$pb.TagNumber(3) @@ -156,13 +162,22 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDisplayName() => clearField(3); + /// Topmost applicable domains of this certificate. This certificate + /// applies to these domains and their subdomains. Example: `example.com`. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.List<$core.String> get domainNames => $_getList(3); + /// The time when this certificate expires. To update the renewal time on this + /// certificate, upload an SSL certificate with a different expiration time + /// using [`AuthorizedCertificates.UpdateAuthorizedCertificate`](). + /// + /// @OutputOnly @$pb.TagNumber(5) - $0.Timestamp get expireTime => $_getN(4); + $50.Timestamp get expireTime => $_getN(4); @$pb.TagNumber(5) - set expireTime($0.Timestamp v) { + set expireTime($50.Timestamp v) { setField(5, v); } @@ -171,8 +186,10 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearExpireTime() => clearField(5); @$pb.TagNumber(5) - $0.Timestamp ensureExpireTime() => $_ensure(4); + $50.Timestamp ensureExpireTime() => $_ensure(4); + /// The SSL certificate serving the `AuthorizedCertificate` resource. This + /// must be obtained independently from a certificate authority. @$pb.TagNumber(6) CertificateRawData get certificateRawData => $_getN(5); @$pb.TagNumber(6) @@ -187,6 +204,12 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(6) CertificateRawData ensureCertificateRawData() => $_ensure(5); + /// Only applicable if this certificate is managed by App Engine. Managed + /// certificates are tied to the lifecycle of a `DomainMapping` and cannot be + /// updated or deleted via the `AuthorizedCertificates` API. If this + /// certificate is manually administered by the user, this field will be empty. + /// + /// @OutputOnly @$pb.TagNumber(7) ManagedCertificate get managedCertificate => $_getN(6); @$pb.TagNumber(7) @@ -201,9 +224,28 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(7) ManagedCertificate ensureManagedCertificate() => $_ensure(6); + /// The full paths to user visible Domain Mapping resources that have this + /// certificate mapped. Example: `apps/myapp/domainMappings/example.com`. + /// + /// This may not represent the full list of mapped domain mappings if the user + /// does not have `VIEWER` permissions on all of the applications that have + /// this certificate mapped. See `domain_mappings_count` for a complete count. + /// + /// Only returned by `GET` or `LIST` requests when specifically requested by + /// the `view=FULL_CERTIFICATE` option. + /// + /// @OutputOnly @$pb.TagNumber(8) $core.List<$core.String> get visibleDomainMappings => $_getList(7); + /// Aggregate count of the domain mappings with this certificate mapped. This + /// count includes domain mappings on applications for which the user does not + /// have `VIEWER` permissions. + /// + /// Only returned by `GET` or `LIST` requests when specifically requested by + /// the `view=FULL_CERTIFICATE` option. + /// + /// @OutputOnly @$pb.TagNumber(9) $core.int get domainMappingsCount => $_getIZ(8); @$pb.TagNumber(9) @@ -217,48 +259,38 @@ class AuthorizedCertificate extends $pb.GeneratedMessage { void clearDomainMappingsCount() => clearField(9); } +/// An SSL certificate obtained from a certificate authority. class CertificateRawData extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CertificateRawData', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'publicCertificate') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'privateKey') - ..hasRequiredFields = false; - - CertificateRawData._() : super(); factory CertificateRawData({ $core.String? publicCertificate, $core.String? privateKey, }) { - final _result = create(); + final $result = create(); if (publicCertificate != null) { - _result.publicCertificate = publicCertificate; + $result.publicCertificate = publicCertificate; } if (privateKey != null) { - _result.privateKey = privateKey; + $result.privateKey = privateKey; } - return _result; + return $result; } + CertificateRawData._() : super(); factory CertificateRawData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CertificateRawData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CertificateRawData', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'publicCertificate') + ..aOS(2, _omitFieldNames ? '' : 'privateKey') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -268,8 +300,10 @@ class CertificateRawData extends $pb.GeneratedMessage { 'Will be removed in next major version') CertificateRawData copyWith(void Function(CertificateRawData) updates) => super.copyWith((message) => updates(message as CertificateRawData)) - as CertificateRawData; // ignore: deprecated_member_use + as CertificateRawData; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CertificateRawData create() => CertificateRawData._(); CertificateRawData createEmptyInstance() => create(); @@ -280,6 +314,13 @@ class CertificateRawData extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CertificateRawData? _defaultInstance; + /// PEM encoded x.509 public key certificate. This field is set once on + /// certificate creation. Must include the header and footer. Example: + ///

+  /// -----BEGIN CERTIFICATE-----
+  /// 
+  /// -----END CERTIFICATE-----
+  /// 
@$pb.TagNumber(1) $core.String get publicCertificate => $_getSZ(0); @$pb.TagNumber(1) @@ -292,6 +333,15 @@ class CertificateRawData extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPublicCertificate() => clearField(1); + /// Unencrypted PEM encoded RSA private key. This field is set once on + /// certificate creation and then encrypted. The key size must be 2048 + /// bits or fewer. Must include the header and footer. Example: + ///
+  /// -----BEGIN RSA PRIVATE KEY-----
+  /// 
+  /// -----END RSA PRIVATE KEY-----
+  /// 
+ /// @InputOnly @$pb.TagNumber(2) $core.String get privateKey => $_getSZ(1); @$pb.TagNumber(2) @@ -305,50 +355,43 @@ class CertificateRawData extends $pb.GeneratedMessage { void clearPrivateKey() => clearField(2); } +/// A certificate managed by App Engine. class ManagedCertificate extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ManagedCertificate', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOM<$0.Timestamp>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'lastRenewalTime', - subBuilder: $0.Timestamp.create) - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'status', - $pb.PbFieldType.OE, - defaultOrMaker: ManagementStatus.MANAGEMENT_STATUS_UNSPECIFIED, - valueOf: ManagementStatus.valueOf, - enumValues: ManagementStatus.values) - ..hasRequiredFields = false; - - ManagedCertificate._() : super(); factory ManagedCertificate({ - $0.Timestamp? lastRenewalTime, + $50.Timestamp? lastRenewalTime, ManagementStatus? status, }) { - final _result = create(); + final $result = create(); if (lastRenewalTime != null) { - _result.lastRenewalTime = lastRenewalTime; + $result.lastRenewalTime = lastRenewalTime; } if (status != null) { - _result.status = status; + $result.status = status; } - return _result; + return $result; } + ManagedCertificate._() : super(); factory ManagedCertificate.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ManagedCertificate.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ManagedCertificate', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'lastRenewalTime', + subBuilder: $50.Timestamp.create) + ..e( + 2, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, + defaultOrMaker: ManagementStatus.MANAGEMENT_STATUS_UNSPECIFIED, + valueOf: ManagementStatus.valueOf, + enumValues: ManagementStatus.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -358,8 +401,10 @@ class ManagedCertificate extends $pb.GeneratedMessage { 'Will be removed in next major version') ManagedCertificate copyWith(void Function(ManagedCertificate) updates) => super.copyWith((message) => updates(message as ManagedCertificate)) - as ManagedCertificate; // ignore: deprecated_member_use + as ManagedCertificate; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ManagedCertificate create() => ManagedCertificate._(); ManagedCertificate createEmptyInstance() => create(); @@ -370,10 +415,15 @@ class ManagedCertificate extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ManagedCertificate? _defaultInstance; + /// Time at which the certificate was last renewed. The renewal process is + /// fully managed. Certificate renewal will automatically occur before the + /// certificate expires. Renewal errors can be tracked via `ManagementStatus`. + /// + /// @OutputOnly @$pb.TagNumber(1) - $0.Timestamp get lastRenewalTime => $_getN(0); + $50.Timestamp get lastRenewalTime => $_getN(0); @$pb.TagNumber(1) - set lastRenewalTime($0.Timestamp v) { + set lastRenewalTime($50.Timestamp v) { setField(1, v); } @@ -382,8 +432,12 @@ class ManagedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearLastRenewalTime() => clearField(1); @$pb.TagNumber(1) - $0.Timestamp ensureLastRenewalTime() => $_ensure(0); + $50.Timestamp ensureLastRenewalTime() => $_ensure(0); + /// Status of certificate management. Refers to the most recent certificate + /// acquisition or renewal attempt. + /// + /// @OutputOnly @$pb.TagNumber(2) ManagementStatus get status => $_getN(1); @$pb.TagNumber(2) @@ -396,3 +450,7 @@ class ManagedCertificate extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearStatus() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pbenum.dart index 77104112..a37ed9b7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pbenum.dart @@ -1,48 +1,39 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/certificate.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// State of certificate management. Refers to the most recent certificate +/// acquisition or renewal attempt. class ManagementStatus extends $pb.ProtobufEnum { static const ManagementStatus MANAGEMENT_STATUS_UNSPECIFIED = ManagementStatus._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MANAGEMENT_STATUS_UNSPECIFIED'); - static const ManagementStatus OK = ManagementStatus._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'OK'); - static const ManagementStatus PENDING = ManagementStatus._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'PENDING'); + 0, _omitEnumNames ? '' : 'MANAGEMENT_STATUS_UNSPECIFIED'); + static const ManagementStatus OK = + ManagementStatus._(1, _omitEnumNames ? '' : 'OK'); + static const ManagementStatus PENDING = + ManagementStatus._(2, _omitEnumNames ? '' : 'PENDING'); static const ManagementStatus FAILED_RETRYING_NOT_VISIBLE = ManagementStatus._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FAILED_RETRYING_NOT_VISIBLE'); - static const ManagementStatus FAILED_PERMANENT = ManagementStatus._( - 6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FAILED_PERMANENT'); + 4, _omitEnumNames ? '' : 'FAILED_RETRYING_NOT_VISIBLE'); + static const ManagementStatus FAILED_PERMANENT = + ManagementStatus._(6, _omitEnumNames ? '' : 'FAILED_PERMANENT'); static const ManagementStatus FAILED_RETRYING_CAA_FORBIDDEN = ManagementStatus._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FAILED_RETRYING_CAA_FORBIDDEN'); + 7, _omitEnumNames ? '' : 'FAILED_RETRYING_CAA_FORBIDDEN'); static const ManagementStatus FAILED_RETRYING_CAA_CHECKING = ManagementStatus._( - 8, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FAILED_RETRYING_CAA_CHECKING'); + 8, _omitEnumNames ? '' : 'FAILED_RETRYING_CAA_CHECKING'); static const $core.List values = [ MANAGEMENT_STATUS_UNSPECIFIED, @@ -60,3 +51,5 @@ class ManagementStatus extends $pb.ProtobufEnum { const ManagementStatus._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pbjson.dart index 473c0821..7627f6d1 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/certificate.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/certificate.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 managementStatusDescriptor instead') @@ -25,7 +29,11 @@ const ManagementStatus$json = { /// Descriptor for `ManagementStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List managementStatusDescriptor = $convert.base64Decode( - 'ChBNYW5hZ2VtZW50U3RhdHVzEiEKHU1BTkFHRU1FTlRfU1RBVFVTX1VOU1BFQ0lGSUVEEAASBgoCT0sQARILCgdQRU5ESU5HEAISHwobRkFJTEVEX1JFVFJZSU5HX05PVF9WSVNJQkxFEAQSFAoQRkFJTEVEX1BFUk1BTkVOVBAGEiEKHUZBSUxFRF9SRVRSWUlOR19DQUFfRk9SQklEREVOEAcSIAocRkFJTEVEX1JFVFJZSU5HX0NBQV9DSEVDS0lORxAI'); + 'ChBNYW5hZ2VtZW50U3RhdHVzEiEKHU1BTkFHRU1FTlRfU1RBVFVTX1VOU1BFQ0lGSUVEEAASBg' + 'oCT0sQARILCgdQRU5ESU5HEAISHwobRkFJTEVEX1JFVFJZSU5HX05PVF9WSVNJQkxFEAQSFAoQ' + 'RkFJTEVEX1BFUk1BTkVOVBAGEiEKHUZBSUxFRF9SRVRSWUlOR19DQUFfRk9SQklEREVOEAcSIA' + 'ocRkFJTEVEX1JFVFJZSU5HX0NBQV9DSEVDS0lORxAI'); + @$core.Deprecated('Use authorizedCertificateDescriptor instead') const AuthorizedCertificate$json = { '1': 'AuthorizedCertificate', @@ -77,7 +85,16 @@ const AuthorizedCertificate$json = { /// Descriptor for `AuthorizedCertificate`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List authorizedCertificateDescriptor = $convert.base64Decode( - 'ChVBdXRob3JpemVkQ2VydGlmaWNhdGUSEgoEbmFtZRgBIAEoCVIEbmFtZRIOCgJpZBgCIAEoCVICaWQSIQoMZGlzcGxheV9uYW1lGAMgASgJUgtkaXNwbGF5TmFtZRIhCgxkb21haW5fbmFtZXMYBCADKAlSC2RvbWFpbk5hbWVzEjsKC2V4cGlyZV90aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKZXhwaXJlVGltZRJdChRjZXJ0aWZpY2F0ZV9yYXdfZGF0YRgGIAEoCzIrLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkNlcnRpZmljYXRlUmF3RGF0YVISY2VydGlmaWNhdGVSYXdEYXRhElwKE21hbmFnZWRfY2VydGlmaWNhdGUYByABKAsyKy5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5NYW5hZ2VkQ2VydGlmaWNhdGVSEm1hbmFnZWRDZXJ0aWZpY2F0ZRI2Chd2aXNpYmxlX2RvbWFpbl9tYXBwaW5ncxgIIAMoCVIVdmlzaWJsZURvbWFpbk1hcHBpbmdzEjIKFWRvbWFpbl9tYXBwaW5nc19jb3VudBgJIAEoBVITZG9tYWluTWFwcGluZ3NDb3VudA=='); + 'ChVBdXRob3JpemVkQ2VydGlmaWNhdGUSEgoEbmFtZRgBIAEoCVIEbmFtZRIOCgJpZBgCIAEoCV' + 'ICaWQSIQoMZGlzcGxheV9uYW1lGAMgASgJUgtkaXNwbGF5TmFtZRIhCgxkb21haW5fbmFtZXMY' + 'BCADKAlSC2RvbWFpbk5hbWVzEjsKC2V4cGlyZV90aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYn' + 'VmLlRpbWVzdGFtcFIKZXhwaXJlVGltZRJdChRjZXJ0aWZpY2F0ZV9yYXdfZGF0YRgGIAEoCzIr' + 'Lmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkNlcnRpZmljYXRlUmF3RGF0YVISY2VydGlmaWNhdG' + 'VSYXdEYXRhElwKE21hbmFnZWRfY2VydGlmaWNhdGUYByABKAsyKy5nb29nbGUuYXBwZW5naW5l' + 'LnYxYmV0YS5NYW5hZ2VkQ2VydGlmaWNhdGVSEm1hbmFnZWRDZXJ0aWZpY2F0ZRI2Chd2aXNpYm' + 'xlX2RvbWFpbl9tYXBwaW5ncxgIIAMoCVIVdmlzaWJsZURvbWFpbk1hcHBpbmdzEjIKFWRvbWFp' + 'bl9tYXBwaW5nc19jb3VudBgJIAEoBVITZG9tYWluTWFwcGluZ3NDb3VudA=='); + @$core.Deprecated('Use certificateRawDataDescriptor instead') const CertificateRawData$json = { '1': 'CertificateRawData', @@ -95,7 +112,9 @@ const CertificateRawData$json = { /// Descriptor for `CertificateRawData`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List certificateRawDataDescriptor = $convert.base64Decode( - 'ChJDZXJ0aWZpY2F0ZVJhd0RhdGESLQoScHVibGljX2NlcnRpZmljYXRlGAEgASgJUhFwdWJsaWNDZXJ0aWZpY2F0ZRIfCgtwcml2YXRlX2tleRgCIAEoCVIKcHJpdmF0ZUtleQ=='); + 'ChJDZXJ0aWZpY2F0ZVJhd0RhdGESLQoScHVibGljX2NlcnRpZmljYXRlGAEgASgJUhFwdWJsaW' + 'NDZXJ0aWZpY2F0ZRIfCgtwcml2YXRlX2tleRgCIAEoCVIKcHJpdmF0ZUtleQ=='); + @$core.Deprecated('Use managedCertificateDescriptor instead') const ManagedCertificate$json = { '1': 'ManagedCertificate', @@ -121,4 +140,6 @@ const ManagedCertificate$json = { /// Descriptor for `ManagedCertificate`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List managedCertificateDescriptor = $convert.base64Decode( - 'ChJNYW5hZ2VkQ2VydGlmaWNhdGUSRgoRbGFzdF9yZW5ld2FsX3RpbWUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUg9sYXN0UmVuZXdhbFRpbWUSQQoGc3RhdHVzGAIgASgOMikuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuTWFuYWdlbWVudFN0YXR1c1IGc3RhdHVz'); + 'ChJNYW5hZ2VkQ2VydGlmaWNhdGUSRgoRbGFzdF9yZW5ld2FsX3RpbWUYASABKAsyGi5nb29nbG' + 'UucHJvdG9idWYuVGltZXN0YW1wUg9sYXN0UmVuZXdhbFRpbWUSQQoGc3RhdHVzGAIgASgOMiku' + 'Z29vZ2xlLmFwcGVuZ2luZS52MWJldGEuTWFuYWdlbWVudFN0YXR1c1IGc3RhdHVz'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pb.dart index 367f682c..ca60c8a8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pb.dart @@ -1,42 +1,22 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/deploy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/duration.pb.dart' as $0; +import '../../protobuf/duration.pb.dart' as $51; +/// Code and application artifacts used to deploy a version to App Engine. class Deployment extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Deployment', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..m<$core.String, FileInfo>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'files', - entryClassName: 'Deployment.FilesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: FileInfo.create, - packageName: const $pb.PackageName('google.appengine.v1beta')) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'container', - subBuilder: ContainerInfo.create) - ..aOM(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'zip', - subBuilder: ZipInfo.create) - ..aOM( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'build', - subBuilder: BuildInfo.create) - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cloudBuildOptions', subBuilder: CloudBuildOptions.create) - ..hasRequiredFields = false; - - Deployment._() : super(); factory Deployment({ $core.Map<$core.String, FileInfo>? files, ContainerInfo? container, @@ -44,30 +24,53 @@ class Deployment extends $pb.GeneratedMessage { BuildInfo? build, CloudBuildOptions? cloudBuildOptions, }) { - final _result = create(); + final $result = create(); if (files != null) { - _result.files.addAll(files); + $result.files.addAll(files); } if (container != null) { - _result.container = container; + $result.container = container; } if (zip != null) { - _result.zip = zip; + $result.zip = zip; } if (build != null) { - _result.build = build; + $result.build = build; } if (cloudBuildOptions != null) { - _result.cloudBuildOptions = cloudBuildOptions; + $result.cloudBuildOptions = cloudBuildOptions; } - return _result; + return $result; } + Deployment._() : super(); factory Deployment.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Deployment.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Deployment', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..m<$core.String, FileInfo>(1, _omitFieldNames ? '' : 'files', + entryClassName: 'Deployment.FilesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: FileInfo.create, + valueDefaultOrMaker: FileInfo.getDefault, + packageName: const $pb.PackageName('google.appengine.v1beta')) + ..aOM(2, _omitFieldNames ? '' : 'container', + subBuilder: ContainerInfo.create) + ..aOM(3, _omitFieldNames ? '' : 'zip', subBuilder: ZipInfo.create) + ..aOM(5, _omitFieldNames ? '' : 'build', + subBuilder: BuildInfo.create) + ..aOM(6, _omitFieldNames ? '' : 'cloudBuildOptions', + subBuilder: CloudBuildOptions.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') @@ -76,9 +79,10 @@ class Deployment extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Deployment copyWith(void Function(Deployment) updates) => - super.copyWith((message) => updates(message as Deployment)) - as Deployment; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Deployment)) as Deployment; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Deployment create() => Deployment._(); Deployment createEmptyInstance() => create(); @@ -88,9 +92,14 @@ class Deployment extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Deployment? _defaultInstance; + /// Manifest of the files stored in Google Cloud Storage that are included + /// as part of this version. All files must be readable using the + /// credentials supplied with this call. @$pb.TagNumber(1) $core.Map<$core.String, FileInfo> get files => $_getMap(0); + /// The Docker image for the container that runs the version. + /// Only applicable for instances running in the App Engine flexible environment. @$pb.TagNumber(2) ContainerInfo get container => $_getN(1); @$pb.TagNumber(2) @@ -105,6 +114,7 @@ class Deployment extends $pb.GeneratedMessage { @$pb.TagNumber(2) ContainerInfo ensureContainer() => $_ensure(1); + /// The zip file for this deployment, if this is a zip deployment. @$pb.TagNumber(3) ZipInfo get zip => $_getN(2); @$pb.TagNumber(3) @@ -119,6 +129,8 @@ class Deployment extends $pb.GeneratedMessage { @$pb.TagNumber(3) ZipInfo ensureZip() => $_ensure(2); + /// Google Cloud Build build information. Only applicable for instances running + /// in the App Engine flexible environment. @$pb.TagNumber(5) BuildInfo get build => $_getN(3); @$pb.TagNumber(5) @@ -133,6 +145,11 @@ class Deployment extends $pb.GeneratedMessage { @$pb.TagNumber(5) BuildInfo ensureBuild() => $_ensure(3); + /// Options for any Google Cloud Build builds created as a part of this + /// deployment. + /// + /// These options will only be used if a new build is created, such as when + /// deploying to the App Engine flexible environment using files or zip. @$pb.TagNumber(6) CloudBuildOptions get cloudBuildOptions => $_getN(4); @$pb.TagNumber(6) @@ -148,57 +165,44 @@ class Deployment extends $pb.GeneratedMessage { CloudBuildOptions ensureCloudBuildOptions() => $_ensure(4); } +/// Single source file that is part of the version to be deployed. Each source +/// file that is deployed must be specified separately. class FileInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'FileInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sourceUrl') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sha1Sum') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mimeType') - ..hasRequiredFields = false; - - FileInfo._() : super(); factory FileInfo({ $core.String? sourceUrl, $core.String? sha1Sum, $core.String? mimeType, }) { - final _result = create(); + final $result = create(); if (sourceUrl != null) { - _result.sourceUrl = sourceUrl; + $result.sourceUrl = sourceUrl; } if (sha1Sum != null) { - _result.sha1Sum = sha1Sum; + $result.sha1Sum = sha1Sum; } if (mimeType != null) { - _result.mimeType = mimeType; + $result.mimeType = mimeType; } - return _result; + return $result; } + FileInfo._() : super(); factory FileInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory FileInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FileInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sourceUrl') + ..aOS(2, _omitFieldNames ? '' : 'sha1Sum') + ..aOS(3, _omitFieldNames ? '' : 'mimeType') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -207,9 +211,10 @@ class FileInfo extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') FileInfo copyWith(void Function(FileInfo) updates) => - super.copyWith((message) => updates(message as FileInfo)) - as FileInfo; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as FileInfo)) as FileInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static FileInfo create() => FileInfo._(); FileInfo createEmptyInstance() => create(); @@ -219,6 +224,9 @@ class FileInfo extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static FileInfo? _defaultInstance; + /// URL source to use to fetch this file. Must be a URL to a resource in + /// Google Cloud Storage in the form + /// 'http(s)://storage.googleapis.com/\/\'. @$pb.TagNumber(1) $core.String get sourceUrl => $_getSZ(0); @$pb.TagNumber(1) @@ -231,6 +239,7 @@ class FileInfo extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSourceUrl() => clearField(1); + /// The SHA1 hash of the file, in hex. @$pb.TagNumber(2) $core.String get sha1Sum => $_getSZ(1); @$pb.TagNumber(2) @@ -243,6 +252,9 @@ class FileInfo extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearSha1Sum() => clearField(2); + /// The MIME type of the file. + /// + /// Defaults to the value from Google Cloud Storage. @$pb.TagNumber(3) $core.String get mimeType => $_getSZ(2); @$pb.TagNumber(3) @@ -256,39 +268,35 @@ class FileInfo extends $pb.GeneratedMessage { void clearMimeType() => clearField(3); } +/// Docker image that is used to create a container and start a VM instance for +/// the version that you deploy. Only applicable for instances running in the App +/// Engine flexible environment. class ContainerInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ContainerInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'image') - ..hasRequiredFields = false; - - ContainerInfo._() : super(); factory ContainerInfo({ $core.String? image, }) { - final _result = create(); + final $result = create(); if (image != null) { - _result.image = image; + $result.image = image; } - return _result; + return $result; } + ContainerInfo._() : super(); factory ContainerInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ContainerInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ContainerInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'image') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -298,8 +306,10 @@ class ContainerInfo extends $pb.GeneratedMessage { 'Will be removed in next major version') ContainerInfo copyWith(void Function(ContainerInfo) updates) => super.copyWith((message) => updates(message as ContainerInfo)) - as ContainerInfo; // ignore: deprecated_member_use + as ContainerInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ContainerInfo create() => ContainerInfo._(); ContainerInfo createEmptyInstance() => create(); @@ -310,6 +320,9 @@ class ContainerInfo extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ContainerInfo? _defaultInstance; + /// URI to the hosted container image in Google Container Registry. The URI + /// must be fully qualified and include a tag or digest. + /// Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" @$pb.TagNumber(1) $core.String get image => $_getSZ(0); @$pb.TagNumber(1) @@ -323,39 +336,33 @@ class ContainerInfo extends $pb.GeneratedMessage { void clearImage() => clearField(1); } +/// Google Cloud Build information. class BuildInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BuildInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cloudBuildId') - ..hasRequiredFields = false; - - BuildInfo._() : super(); factory BuildInfo({ $core.String? cloudBuildId, }) { - final _result = create(); + final $result = create(); if (cloudBuildId != null) { - _result.cloudBuildId = cloudBuildId; + $result.cloudBuildId = cloudBuildId; } - return _result; + return $result; } + BuildInfo._() : super(); factory BuildInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BuildInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BuildInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'cloudBuildId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -364,9 +371,10 @@ class BuildInfo extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') BuildInfo copyWith(void Function(BuildInfo) updates) => - super.copyWith((message) => updates(message as BuildInfo)) - as BuildInfo; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as BuildInfo)) as BuildInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BuildInfo create() => BuildInfo._(); BuildInfo createEmptyInstance() => create(); @@ -376,6 +384,8 @@ class BuildInfo extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static BuildInfo? _defaultInstance; + /// The Google Cloud Build id. + /// Example: "f966068f-08b2-42c8-bdfe-74137dff2bf9" @$pb.TagNumber(1) $core.String get cloudBuildId => $_getSZ(0); @$pb.TagNumber(1) @@ -389,49 +399,41 @@ class BuildInfo extends $pb.GeneratedMessage { void clearCloudBuildId() => clearField(1); } +/// Options for the build operations performed as a part of the version +/// deployment. Only applicable for App Engine flexible environment when creating +/// a version using source code directly. class CloudBuildOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CloudBuildOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'appYamlPath') - ..aOM<$0.Duration>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cloudBuildTimeout', - subBuilder: $0.Duration.create) - ..hasRequiredFields = false; - - CloudBuildOptions._() : super(); factory CloudBuildOptions({ $core.String? appYamlPath, - $0.Duration? cloudBuildTimeout, + $51.Duration? cloudBuildTimeout, }) { - final _result = create(); + final $result = create(); if (appYamlPath != null) { - _result.appYamlPath = appYamlPath; + $result.appYamlPath = appYamlPath; } if (cloudBuildTimeout != null) { - _result.cloudBuildTimeout = cloudBuildTimeout; + $result.cloudBuildTimeout = cloudBuildTimeout; } - return _result; + return $result; } + CloudBuildOptions._() : super(); factory CloudBuildOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CloudBuildOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CloudBuildOptions', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'appYamlPath') + ..aOM<$51.Duration>(2, _omitFieldNames ? '' : 'cloudBuildTimeout', + subBuilder: $51.Duration.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') @@ -441,8 +443,10 @@ class CloudBuildOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') CloudBuildOptions copyWith(void Function(CloudBuildOptions) updates) => super.copyWith((message) => updates(message as CloudBuildOptions)) - as CloudBuildOptions; // ignore: deprecated_member_use + as CloudBuildOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CloudBuildOptions create() => CloudBuildOptions._(); CloudBuildOptions createEmptyInstance() => create(); @@ -453,6 +457,13 @@ class CloudBuildOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CloudBuildOptions? _defaultInstance; + /// Path to the yaml file used in deployment, used to determine runtime + /// configuration details. + /// + /// Required for flexible environment builds. + /// + /// See https://cloud.google.com/appengine/docs/standard/python/config/appref + /// for more details. @$pb.TagNumber(1) $core.String get appYamlPath => $_getSZ(0); @$pb.TagNumber(1) @@ -465,10 +476,12 @@ class CloudBuildOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearAppYamlPath() => clearField(1); + /// The Cloud Build timeout used as part of any dependent builds performed by + /// version creation. Defaults to 10 minutes. @$pb.TagNumber(2) - $0.Duration get cloudBuildTimeout => $_getN(1); + $51.Duration get cloudBuildTimeout => $_getN(1); @$pb.TagNumber(2) - set cloudBuildTimeout($0.Duration v) { + set cloudBuildTimeout($51.Duration v) { setField(2, v); } @@ -477,52 +490,41 @@ class CloudBuildOptions extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearCloudBuildTimeout() => clearField(2); @$pb.TagNumber(2) - $0.Duration ensureCloudBuildTimeout() => $_ensure(1); + $51.Duration ensureCloudBuildTimeout() => $_ensure(1); } +/// The zip file information for a zip deployment. class ZipInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ZipInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sourceUrl') - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filesCount', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ZipInfo._() : super(); factory ZipInfo({ $core.String? sourceUrl, $core.int? filesCount, }) { - final _result = create(); + final $result = create(); if (sourceUrl != null) { - _result.sourceUrl = sourceUrl; + $result.sourceUrl = sourceUrl; } if (filesCount != null) { - _result.filesCount = filesCount; + $result.filesCount = filesCount; } - return _result; + return $result; } + ZipInfo._() : super(); factory ZipInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ZipInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ZipInfo', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(3, _omitFieldNames ? '' : 'sourceUrl') + ..a<$core.int>(4, _omitFieldNames ? '' : 'filesCount', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -531,9 +533,10 @@ class ZipInfo extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ZipInfo copyWith(void Function(ZipInfo) updates) => - super.copyWith((message) => updates(message as ZipInfo)) - as ZipInfo; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ZipInfo)) as ZipInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ZipInfo create() => ZipInfo._(); ZipInfo createEmptyInstance() => create(); @@ -543,6 +546,9 @@ class ZipInfo extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ZipInfo? _defaultInstance; + /// URL of the zip file to deploy from. Must be a URL to a resource in + /// Google Cloud Storage in the form + /// 'http(s)://storage.googleapis.com/\/\'. @$pb.TagNumber(3) $core.String get sourceUrl => $_getSZ(0); @$pb.TagNumber(3) @@ -555,6 +561,9 @@ class ZipInfo extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSourceUrl() => clearField(3); + /// An estimate of the number of files in a zip for a zip deployment. + /// If set, must be greater than or equal to the actual number of files. + /// Used for optimizing performance; if not provided, deployment may be slow. @$pb.TagNumber(4) $core.int get filesCount => $_getIZ(1); @$pb.TagNumber(4) @@ -567,3 +576,7 @@ class ZipInfo extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearFilesCount() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pbenum.dart index 179515d8..55a438a7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/deploy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pbjson.dart index 784faad4..206b4936 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/deploy.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/deploy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 deploymentDescriptor instead') @@ -76,7 +80,16 @@ const Deployment_FilesEntry$json = { /// Descriptor for `Deployment`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deploymentDescriptor = $convert.base64Decode( - 'CgpEZXBsb3ltZW50EkQKBWZpbGVzGAEgAygLMi4uZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRGVwbG95bWVudC5GaWxlc0VudHJ5UgVmaWxlcxJECgljb250YWluZXIYAiABKAsyJi5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5Db250YWluZXJJbmZvUgljb250YWluZXISMgoDemlwGAMgASgLMiAuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuWmlwSW5mb1IDemlwEjgKBWJ1aWxkGAUgASgLMiIuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQnVpbGRJbmZvUgVidWlsZBJaChNjbG91ZF9idWlsZF9vcHRpb25zGAYgASgLMiouZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQ2xvdWRCdWlsZE9wdGlvbnNSEWNsb3VkQnVpbGRPcHRpb25zGlsKCkZpbGVzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSNwoFdmFsdWUYAiABKAsyIS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5GaWxlSW5mb1IFdmFsdWU6AjgB'); + 'CgpEZXBsb3ltZW50EkQKBWZpbGVzGAEgAygLMi4uZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRG' + 'VwbG95bWVudC5GaWxlc0VudHJ5UgVmaWxlcxJECgljb250YWluZXIYAiABKAsyJi5nb29nbGUu' + 'YXBwZW5naW5lLnYxYmV0YS5Db250YWluZXJJbmZvUgljb250YWluZXISMgoDemlwGAMgASgLMi' + 'AuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuWmlwSW5mb1IDemlwEjgKBWJ1aWxkGAUgASgLMiIu' + 'Z29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQnVpbGRJbmZvUgVidWlsZBJaChNjbG91ZF9idWlsZF' + '9vcHRpb25zGAYgASgLMiouZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQ2xvdWRCdWlsZE9wdGlv' + 'bnNSEWNsb3VkQnVpbGRPcHRpb25zGlsKCkZpbGVzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSNw' + 'oFdmFsdWUYAiABKAsyIS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5GaWxlSW5mb1IFdmFsdWU6' + 'AjgB'); + @$core.Deprecated('Use fileInfoDescriptor instead') const FileInfo$json = { '1': 'FileInfo', @@ -89,7 +102,9 @@ const FileInfo$json = { /// Descriptor for `FileInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List fileInfoDescriptor = $convert.base64Decode( - 'CghGaWxlSW5mbxIdCgpzb3VyY2VfdXJsGAEgASgJUglzb3VyY2VVcmwSGQoIc2hhMV9zdW0YAiABKAlSB3NoYTFTdW0SGwoJbWltZV90eXBlGAMgASgJUghtaW1lVHlwZQ=='); + 'CghGaWxlSW5mbxIdCgpzb3VyY2VfdXJsGAEgASgJUglzb3VyY2VVcmwSGQoIc2hhMV9zdW0YAi' + 'ABKAlSB3NoYTFTdW0SGwoJbWltZV90eXBlGAMgASgJUghtaW1lVHlwZQ=='); + @$core.Deprecated('Use containerInfoDescriptor instead') const ContainerInfo$json = { '1': 'ContainerInfo', @@ -101,6 +116,7 @@ const ContainerInfo$json = { /// Descriptor for `ContainerInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List containerInfoDescriptor = $convert .base64Decode('Cg1Db250YWluZXJJbmZvEhQKBWltYWdlGAEgASgJUgVpbWFnZQ=='); + @$core.Deprecated('Use buildInfoDescriptor instead') const BuildInfo$json = { '1': 'BuildInfo', @@ -112,6 +128,7 @@ const BuildInfo$json = { /// Descriptor for `BuildInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List buildInfoDescriptor = $convert.base64Decode( 'CglCdWlsZEluZm8SJAoOY2xvdWRfYnVpbGRfaWQYASABKAlSDGNsb3VkQnVpbGRJZA=='); + @$core.Deprecated('Use cloudBuildOptionsDescriptor instead') const CloudBuildOptions$json = { '1': 'CloudBuildOptions', @@ -130,7 +147,10 @@ const CloudBuildOptions$json = { /// Descriptor for `CloudBuildOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List cloudBuildOptionsDescriptor = $convert.base64Decode( - 'ChFDbG91ZEJ1aWxkT3B0aW9ucxIiCg1hcHBfeWFtbF9wYXRoGAEgASgJUgthcHBZYW1sUGF0aBJJChNjbG91ZF9idWlsZF90aW1lb3V0GAIgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhFjbG91ZEJ1aWxkVGltZW91dA=='); + 'ChFDbG91ZEJ1aWxkT3B0aW9ucxIiCg1hcHBfeWFtbF9wYXRoGAEgASgJUgthcHBZYW1sUGF0aB' + 'JJChNjbG91ZF9idWlsZF90aW1lb3V0GAIgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9u' + 'UhFjbG91ZEJ1aWxkVGltZW91dA=='); + @$core.Deprecated('Use zipInfoDescriptor instead') const ZipInfo$json = { '1': 'ZipInfo', @@ -142,4 +162,5 @@ const ZipInfo$json = { /// Descriptor for `ZipInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List zipInfoDescriptor = $convert.base64Decode( - 'CgdaaXBJbmZvEh0KCnNvdXJjZV91cmwYAyABKAlSCXNvdXJjZVVybBIfCgtmaWxlc19jb3VudBgEIAEoBVIKZmlsZXNDb3VudA=='); + 'CgdaaXBJbmZvEh0KCnNvdXJjZV91cmwYAyABKAlSCXNvdXJjZVVybBIfCgtmaWxlc19jb3VudB' + 'gEIAEoBVIKZmlsZXNDb3VudA=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pb.dart index 50d2368a..52d3c4c2 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pb.dart @@ -1,56 +1,52 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/domain.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// A domain that a user has been authorized to administer. To authorize use +/// of a domain, verify ownership via +/// [Search Console](https://search.google.com/search-console/welcome). class AuthorizedDomain extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuthorizedDomain', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..hasRequiredFields = false; - - AuthorizedDomain._() : super(); factory AuthorizedDomain({ $core.String? name, $core.String? id, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } - return _result; + return $result; } + AuthorizedDomain._() : super(); factory AuthorizedDomain.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuthorizedDomain.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuthorizedDomain', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -60,8 +56,10 @@ class AuthorizedDomain extends $pb.GeneratedMessage { 'Will be removed in next major version') AuthorizedDomain copyWith(void Function(AuthorizedDomain) updates) => super.copyWith((message) => updates(message as AuthorizedDomain)) - as AuthorizedDomain; // ignore: deprecated_member_use + as AuthorizedDomain; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuthorizedDomain create() => AuthorizedDomain._(); AuthorizedDomain createEmptyInstance() => create(); @@ -72,6 +70,10 @@ class AuthorizedDomain extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AuthorizedDomain? _defaultInstance; + /// Full path to the `AuthorizedDomain` resource in the API. Example: + /// `apps/myapp/authorizedDomains/example.com`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -84,6 +86,8 @@ class AuthorizedDomain extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Fully qualified domain name of the domain authorized for use. Example: + /// `example.com`. @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -96,3 +100,7 @@ class AuthorizedDomain extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pbenum.dart index aa2cfd46..2101228b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/domain.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pbjson.dart index 8f99294e..7844ce37 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/domain.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 authorizedDomainDescriptor instead') diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pb.dart index 3431af27..a33005c3 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/domain_mapping.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,62 +17,51 @@ import 'domain_mapping.pbenum.dart'; export 'domain_mapping.pbenum.dart'; +/// A domain serving an App Engine application. class DomainMapping extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DomainMapping', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sslSettings', - subBuilder: SslSettings.create) - ..pc( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resourceRecords', $pb.PbFieldType.PM, - subBuilder: ResourceRecord.create) - ..hasRequiredFields = false; - - DomainMapping._() : super(); factory DomainMapping({ $core.String? name, $core.String? id, SslSettings? sslSettings, $core.Iterable? resourceRecords, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (sslSettings != null) { - _result.sslSettings = sslSettings; + $result.sslSettings = sslSettings; } if (resourceRecords != null) { - _result.resourceRecords.addAll(resourceRecords); + $result.resourceRecords.addAll(resourceRecords); } - return _result; + return $result; } + DomainMapping._() : super(); factory DomainMapping.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DomainMapping.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DomainMapping', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..aOM(3, _omitFieldNames ? '' : 'sslSettings', + subBuilder: SslSettings.create) + ..pc( + 4, _omitFieldNames ? '' : 'resourceRecords', $pb.PbFieldType.PM, + subBuilder: ResourceRecord.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') @@ -78,8 +71,10 @@ class DomainMapping extends $pb.GeneratedMessage { 'Will be removed in next major version') DomainMapping copyWith(void Function(DomainMapping) updates) => super.copyWith((message) => updates(message as DomainMapping)) - as DomainMapping; // ignore: deprecated_member_use + as DomainMapping; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DomainMapping create() => DomainMapping._(); DomainMapping createEmptyInstance() => create(); @@ -90,6 +85,10 @@ class DomainMapping extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DomainMapping? _defaultInstance; + /// Full path to the `DomainMapping` resource in the API. Example: + /// `apps/myapp/domainMapping/example.com`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -102,6 +101,8 @@ class DomainMapping extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Relative name of the domain serving the application. Example: + /// `example.com`. @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -114,6 +115,8 @@ class DomainMapping extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// SSL configuration for this domain. If unconfigured, this domain will not + /// serve with SSL. @$pb.TagNumber(3) SslSettings get sslSettings => $_getN(2); @$pb.TagNumber(3) @@ -128,62 +131,56 @@ class DomainMapping extends $pb.GeneratedMessage { @$pb.TagNumber(3) SslSettings ensureSslSettings() => $_ensure(2); + /// The resource records required to configure this domain mapping. These + /// records must be added to the domain's DNS configuration in order to + /// serve the application via this domain mapping. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.List get resourceRecords => $_getList(3); } +/// SSL configuration for a `DomainMapping` resource. class SslSettings extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SslSettings', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'certificateId') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sslManagementType', - $pb.PbFieldType.OE, - defaultOrMaker: SslSettings_SslManagementType.AUTOMATIC, - valueOf: SslSettings_SslManagementType.valueOf, - enumValues: SslSettings_SslManagementType.values) - ..aOS( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pendingManagedCertificateId') - ..hasRequiredFields = false; - - SslSettings._() : super(); factory SslSettings({ $core.String? certificateId, SslSettings_SslManagementType? sslManagementType, $core.String? pendingManagedCertificateId, }) { - final _result = create(); + final $result = create(); if (certificateId != null) { - _result.certificateId = certificateId; + $result.certificateId = certificateId; } if (sslManagementType != null) { - _result.sslManagementType = sslManagementType; + $result.sslManagementType = sslManagementType; } if (pendingManagedCertificateId != null) { - _result.pendingManagedCertificateId = pendingManagedCertificateId; + $result.pendingManagedCertificateId = pendingManagedCertificateId; } - return _result; + return $result; } + SslSettings._() : super(); factory SslSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SslSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SslSettings', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'certificateId') + ..e( + 3, _omitFieldNames ? '' : 'sslManagementType', $pb.PbFieldType.OE, + defaultOrMaker: SslSettings_SslManagementType.AUTOMATIC, + valueOf: SslSettings_SslManagementType.valueOf, + enumValues: SslSettings_SslManagementType.values) + ..aOS(4, _omitFieldNames ? '' : 'pendingManagedCertificateId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -193,8 +190,10 @@ class SslSettings extends $pb.GeneratedMessage { 'Will be removed in next major version') SslSettings copyWith(void Function(SslSettings) updates) => super.copyWith((message) => updates(message as SslSettings)) - as SslSettings; // ignore: deprecated_member_use + as SslSettings; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SslSettings create() => SslSettings._(); SslSettings createEmptyInstance() => create(); @@ -204,6 +203,15 @@ class SslSettings extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SslSettings? _defaultInstance; + /// ID of the `AuthorizedCertificate` resource configuring SSL for the + /// application. Clearing this field will remove SSL support. + /// + /// By default, a managed certificate is automatically created for every + /// domain mapping. To omit SSL support or to configure SSL manually, specify + /// `SslManagementType.MANUAL` on a `CREATE` or `UPDATE` request. You must + /// be authorized to administer the `AuthorizedCertificate` resource to + /// manually map it to a `DomainMapping` resource. + /// Example: `12345`. @$pb.TagNumber(1) $core.String get certificateId => $_getSZ(0); @$pb.TagNumber(1) @@ -216,6 +224,9 @@ class SslSettings extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCertificateId() => clearField(1); + /// SSL management type for this domain. If `AUTOMATIC`, a managed certificate + /// is automatically provisioned. If `MANUAL`, `certificate_id` must be + /// manually specified in order to configure SSL for this domain. @$pb.TagNumber(3) SslSettings_SslManagementType get sslManagementType => $_getN(1); @$pb.TagNumber(3) @@ -228,6 +239,15 @@ class SslSettings extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSslManagementType() => clearField(3); + /// ID of the managed `AuthorizedCertificate` resource currently being + /// provisioned, if applicable. Until the new managed certificate has been + /// successfully provisioned, the previous SSL state will be preserved. Once + /// the provisioning process completes, the `certificate_id` field will reflect + /// the new managed certificate and this field will be left empty. To remove + /// SSL support while there is still a pending managed certificate, clear the + /// `certificate_id` field with an `UpdateDomainMappingRequest`. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.String get pendingManagedCertificateId => $_getSZ(2); @$pb.TagNumber(4) @@ -241,61 +261,47 @@ class SslSettings extends $pb.GeneratedMessage { void clearPendingManagedCertificateId() => clearField(4); } +/// A DNS resource record. class ResourceRecord extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ResourceRecord', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rrdata') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'type', - $pb.PbFieldType.OE, - defaultOrMaker: ResourceRecord_RecordType.A, - valueOf: ResourceRecord_RecordType.valueOf, - enumValues: ResourceRecord_RecordType.values) - ..hasRequiredFields = false; - - ResourceRecord._() : super(); factory ResourceRecord({ $core.String? name, $core.String? rrdata, ResourceRecord_RecordType? type, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (rrdata != null) { - _result.rrdata = rrdata; + $result.rrdata = rrdata; } if (type != null) { - _result.type = type; + $result.type = type; } - return _result; + return $result; } + ResourceRecord._() : super(); factory ResourceRecord.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ResourceRecord.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ResourceRecord', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'rrdata') + ..e( + 3, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: ResourceRecord_RecordType.A, + valueOf: ResourceRecord_RecordType.valueOf, + enumValues: ResourceRecord_RecordType.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -305,8 +311,10 @@ class ResourceRecord extends $pb.GeneratedMessage { 'Will be removed in next major version') ResourceRecord copyWith(void Function(ResourceRecord) updates) => super.copyWith((message) => updates(message as ResourceRecord)) - as ResourceRecord; // ignore: deprecated_member_use + as ResourceRecord; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ResourceRecord create() => ResourceRecord._(); ResourceRecord createEmptyInstance() => create(); @@ -317,6 +325,8 @@ class ResourceRecord extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ResourceRecord? _defaultInstance; + /// Relative name of the object affected by this record. Only applicable for + /// `CNAME` records. Example: 'www'. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -329,6 +339,8 @@ class ResourceRecord extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Data for this record. Values vary by record type, as defined in RFC 1035 + /// (section 5) and RFC 1034 (section 3.6.1). @$pb.TagNumber(2) $core.String get rrdata => $_getSZ(1); @$pb.TagNumber(2) @@ -341,6 +353,7 @@ class ResourceRecord extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRrdata() => clearField(2); + /// Resource record type. Example: `AAAA`. @$pb.TagNumber(3) ResourceRecord_RecordType get type => $_getN(2); @$pb.TagNumber(3) @@ -353,3 +366,7 @@ class ResourceRecord extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearType() => clearField(3); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pbenum.dart index 2c650a78..91864f4f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pbenum.dart @@ -1,27 +1,24 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/domain_mapping.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The SSL management type for this domain. class SslSettings_SslManagementType extends $pb.ProtobufEnum { static const SslSettings_SslManagementType AUTOMATIC = - SslSettings_SslManagementType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'AUTOMATIC'); + SslSettings_SslManagementType._(0, _omitEnumNames ? '' : 'AUTOMATIC'); static const SslSettings_SslManagementType MANUAL = - SslSettings_SslManagementType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MANUAL'); + SslSettings_SslManagementType._(1, _omitEnumNames ? '' : 'MANUAL'); static const $core.List values = [ @@ -38,13 +35,14 @@ class SslSettings_SslManagementType extends $pb.ProtobufEnum { : super(v, n); } +/// A resource record type. class ResourceRecord_RecordType extends $pb.ProtobufEnum { - static const ResourceRecord_RecordType A = ResourceRecord_RecordType._( - 0, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'A'); - static const ResourceRecord_RecordType AAAA = ResourceRecord_RecordType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'AAAA'); - static const ResourceRecord_RecordType CNAME = ResourceRecord_RecordType._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CNAME'); + static const ResourceRecord_RecordType A = + ResourceRecord_RecordType._(0, _omitEnumNames ? '' : 'A'); + static const ResourceRecord_RecordType AAAA = + ResourceRecord_RecordType._(1, _omitEnumNames ? '' : 'AAAA'); + static const ResourceRecord_RecordType CNAME = + ResourceRecord_RecordType._(2, _omitEnumNames ? '' : 'CNAME'); static const $core.List values = [ @@ -59,3 +57,5 @@ class ResourceRecord_RecordType extends $pb.ProtobufEnum { const ResourceRecord_RecordType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pbjson.dart index 0db8ee52..c4ba44bb 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/domain_mapping.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/domain_mapping.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 domainMappingDescriptor instead') @@ -36,7 +40,11 @@ const DomainMapping$json = { /// Descriptor for `DomainMapping`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List domainMappingDescriptor = $convert.base64Decode( - 'Cg1Eb21haW5NYXBwaW5nEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkEkcKDHNzbF9zZXR0aW5ncxgDIAEoCzIkLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlNzbFNldHRpbmdzUgtzc2xTZXR0aW5ncxJSChByZXNvdXJjZV9yZWNvcmRzGAQgAygLMicuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuUmVzb3VyY2VSZWNvcmRSD3Jlc291cmNlUmVjb3Jkcw=='); + 'Cg1Eb21haW5NYXBwaW5nEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkEkcKDH' + 'NzbF9zZXR0aW5ncxgDIAEoCzIkLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlNzbFNldHRpbmdz' + 'Ugtzc2xTZXR0aW5ncxJSChByZXNvdXJjZV9yZWNvcmRzGAQgAygLMicuZ29vZ2xlLmFwcGVuZ2' + 'luZS52MWJldGEuUmVzb3VyY2VSZWNvcmRSD3Jlc291cmNlUmVjb3Jkcw=='); + @$core.Deprecated('Use sslSettingsDescriptor instead') const SslSettings$json = { '1': 'SslSettings', @@ -72,7 +80,12 @@ const SslSettings_SslManagementType$json = { /// Descriptor for `SslSettings`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sslSettingsDescriptor = $convert.base64Decode( - 'CgtTc2xTZXR0aW5ncxIlCg5jZXJ0aWZpY2F0ZV9pZBgBIAEoCVINY2VydGlmaWNhdGVJZBJmChNzc2xfbWFuYWdlbWVudF90eXBlGAMgASgOMjYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuU3NsU2V0dGluZ3MuU3NsTWFuYWdlbWVudFR5cGVSEXNzbE1hbmFnZW1lbnRUeXBlEkMKHnBlbmRpbmdfbWFuYWdlZF9jZXJ0aWZpY2F0ZV9pZBgEIAEoCVIbcGVuZGluZ01hbmFnZWRDZXJ0aWZpY2F0ZUlkIi4KEVNzbE1hbmFnZW1lbnRUeXBlEg0KCUFVVE9NQVRJQxAAEgoKBk1BTlVBTBAB'); + 'CgtTc2xTZXR0aW5ncxIlCg5jZXJ0aWZpY2F0ZV9pZBgBIAEoCVINY2VydGlmaWNhdGVJZBJmCh' + 'Nzc2xfbWFuYWdlbWVudF90eXBlGAMgASgOMjYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuU3Ns' + 'U2V0dGluZ3MuU3NsTWFuYWdlbWVudFR5cGVSEXNzbE1hbmFnZW1lbnRUeXBlEkMKHnBlbmRpbm' + 'dfbWFuYWdlZF9jZXJ0aWZpY2F0ZV9pZBgEIAEoCVIbcGVuZGluZ01hbmFnZWRDZXJ0aWZpY2F0' + 'ZUlkIi4KEVNzbE1hbmFnZW1lbnRUeXBlEg0KCUFVVE9NQVRJQxAAEgoKBk1BTlVBTBAB'); + @$core.Deprecated('Use resourceRecordDescriptor instead') const ResourceRecord$json = { '1': 'ResourceRecord', @@ -103,4 +116,7 @@ const ResourceRecord_RecordType$json = { /// Descriptor for `ResourceRecord`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List resourceRecordDescriptor = $convert.base64Decode( - 'Cg5SZXNvdXJjZVJlY29yZBISCgRuYW1lGAEgASgJUgRuYW1lEhYKBnJyZGF0YRgCIAEoCVIGcnJkYXRhEkYKBHR5cGUYAyABKA4yMi5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5SZXNvdXJjZVJlY29yZC5SZWNvcmRUeXBlUgR0eXBlIigKClJlY29yZFR5cGUSBQoBQRAAEggKBEFBQUEQARIJCgVDTkFNRRAC'); + 'Cg5SZXNvdXJjZVJlY29yZBISCgRuYW1lGAEgASgJUgRuYW1lEhYKBnJyZGF0YRgCIAEoCVIGcn' + 'JkYXRhEkYKBHR5cGUYAyABKA4yMi5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5SZXNvdXJjZVJl' + 'Y29yZC5SZWNvcmRUeXBlUgR0eXBlIigKClJlY29yZFR5cGUSBQoBQRAAEggKBEFBQUEQARIJCg' + 'VDTkFNRRAC'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pb.dart index 08659df6..ae80532c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/firewall.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,63 +17,53 @@ import 'firewall.pbenum.dart'; export 'firewall.pbenum.dart'; +/// A single firewall rule that is evaluated against incoming traffic +/// and provides an action to take on matched requests. class FirewallRule extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'FirewallRule', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'priority', - $pb.PbFieldType.O3) - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'action', - $pb.PbFieldType.OE, - defaultOrMaker: FirewallRule_Action.UNSPECIFIED_ACTION, - valueOf: FirewallRule_Action.valueOf, - enumValues: FirewallRule_Action.values) - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sourceRange') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'description') - ..hasRequiredFields = false; - - FirewallRule._() : super(); factory FirewallRule({ $core.int? priority, FirewallRule_Action? action, $core.String? sourceRange, $core.String? description, }) { - final _result = create(); + final $result = create(); if (priority != null) { - _result.priority = priority; + $result.priority = priority; } if (action != null) { - _result.action = action; + $result.action = action; } if (sourceRange != null) { - _result.sourceRange = sourceRange; + $result.sourceRange = sourceRange; } if (description != null) { - _result.description = description; + $result.description = description; } - return _result; + return $result; } + FirewallRule._() : super(); factory FirewallRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory FirewallRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FirewallRule', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'priority', $pb.PbFieldType.O3) + ..e( + 2, _omitFieldNames ? '' : 'action', $pb.PbFieldType.OE, + defaultOrMaker: FirewallRule_Action.UNSPECIFIED_ACTION, + valueOf: FirewallRule_Action.valueOf, + enumValues: FirewallRule_Action.values) + ..aOS(3, _omitFieldNames ? '' : 'sourceRange') + ..aOS(4, _omitFieldNames ? '' : 'description') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -79,8 +73,10 @@ class FirewallRule extends $pb.GeneratedMessage { 'Will be removed in next major version') FirewallRule copyWith(void Function(FirewallRule) updates) => super.copyWith((message) => updates(message as FirewallRule)) - as FirewallRule; // ignore: deprecated_member_use + as FirewallRule; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static FirewallRule create() => FirewallRule._(); FirewallRule createEmptyInstance() => create(); @@ -91,6 +87,12 @@ class FirewallRule extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static FirewallRule? _defaultInstance; + /// A positive integer between [1, Int32.MaxValue-1] that defines the order of + /// rule evaluation. Rules with the lowest priority are evaluated first. + /// + /// A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic + /// when no previous rule matches. Only the action of this rule can be modified + /// by the user. @$pb.TagNumber(1) $core.int get priority => $_getIZ(0); @$pb.TagNumber(1) @@ -103,6 +105,7 @@ class FirewallRule extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPriority() => clearField(1); + /// The action to take on matched requests. @$pb.TagNumber(2) FirewallRule_Action get action => $_getN(1); @$pb.TagNumber(2) @@ -115,6 +118,17 @@ class FirewallRule extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearAction() => clearField(2); + /// IP address or range, defined using CIDR notation, of requests that this + /// rule applies to. You can use the wildcard character "*" to match all IPs + /// equivalent to "0/0" and "::/0" together. + /// Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32` + /// or `2001:0db8:0000:0042:0000:8a2e:0370:7334`. + /// + /// + ///

Truncation will be silently performed on addresses which are not + /// properly truncated. For example, `1.2.3.4/24` is accepted as the same + /// address as `1.2.3.0/24`. Similarly, for IPv6, `2001:db8::1/32` is accepted + /// as the same address as `2001:db8::/32`. @$pb.TagNumber(3) $core.String get sourceRange => $_getSZ(2); @$pb.TagNumber(3) @@ -127,6 +141,8 @@ class FirewallRule extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSourceRange() => clearField(3); + /// An optional string description of this rule. + /// This field has a maximum length of 100 characters. @$pb.TagNumber(4) $core.String get description => $_getSZ(3); @$pb.TagNumber(4) @@ -139,3 +155,7 @@ class FirewallRule extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearDescription() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pbenum.dart index 12a92c09..5c9f7fec 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pbenum.dart @@ -1,24 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/firewall.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Available actions to take on matching requests. class FirewallRule_Action extends $pb.ProtobufEnum { - static const FirewallRule_Action UNSPECIFIED_ACTION = FirewallRule_Action._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED_ACTION'); - static const FirewallRule_Action ALLOW = FirewallRule_Action._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ALLOW'); - static const FirewallRule_Action DENY = FirewallRule_Action._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DENY'); + static const FirewallRule_Action UNSPECIFIED_ACTION = + FirewallRule_Action._(0, _omitEnumNames ? '' : 'UNSPECIFIED_ACTION'); + static const FirewallRule_Action ALLOW = + FirewallRule_Action._(1, _omitEnumNames ? '' : 'ALLOW'); + static const FirewallRule_Action DENY = + FirewallRule_Action._(2, _omitEnumNames ? '' : 'DENY'); static const $core.List values = [ UNSPECIFIED_ACTION, @@ -32,3 +34,5 @@ class FirewallRule_Action extends $pb.ProtobufEnum { const FirewallRule_Action._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pbjson.dart index 6a5ed179..b103c46b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/firewall.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/firewall.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 firewallRuleDescriptor instead') @@ -40,4 +44,8 @@ const FirewallRule_Action$json = { /// Descriptor for `FirewallRule`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List firewallRuleDescriptor = $convert.base64Decode( - 'CgxGaXJld2FsbFJ1bGUSGgoIcHJpb3JpdHkYASABKAVSCHByaW9yaXR5EkQKBmFjdGlvbhgCIAEoDjIsLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkZpcmV3YWxsUnVsZS5BY3Rpb25SBmFjdGlvbhIhCgxzb3VyY2VfcmFuZ2UYAyABKAlSC3NvdXJjZVJhbmdlEiAKC2Rlc2NyaXB0aW9uGAQgASgJUgtkZXNjcmlwdGlvbiI1CgZBY3Rpb24SFgoSVU5TUEVDSUZJRURfQUNUSU9OEAASCQoFQUxMT1cQARIICgRERU5ZEAI='); + 'CgxGaXJld2FsbFJ1bGUSGgoIcHJpb3JpdHkYASABKAVSCHByaW9yaXR5EkQKBmFjdGlvbhgCIA' + 'EoDjIsLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkZpcmV3YWxsUnVsZS5BY3Rpb25SBmFjdGlv' + 'bhIhCgxzb3VyY2VfcmFuZ2UYAyABKAlSC3NvdXJjZVJhbmdlEiAKC2Rlc2NyaXB0aW9uGAQgAS' + 'gJUgtkZXNjcmlwdGlvbiI1CgZBY3Rpb24SFgoSVU5TUEVDSUZJRURfQUNUSU9OEAASCQoFQUxM' + 'T1cQARIICgRERU5ZEAI='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pb.dart index 796bc365..9caa45d6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pb.dart @@ -1,41 +1,42 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/instance.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../protobuf/timestamp.pb.dart' as $0; - +import '../../protobuf/timestamp.pb.dart' as $50; import 'instance.pbenum.dart'; export 'instance.pbenum.dart'; +/// Wrapper for LivenessState enum. class Instance_Liveness extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Instance.Liveness', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - Instance_Liveness._() : super(); factory Instance_Liveness() => create(); + Instance_Liveness._() : super(); factory Instance_Liveness.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Instance_Liveness.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Instance.Liveness', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + 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') @@ -45,8 +46,10 @@ class Instance_Liveness extends $pb.GeneratedMessage { 'Will be removed in next major version') Instance_Liveness copyWith(void Function(Instance_Liveness) updates) => super.copyWith((message) => updates(message as Instance_Liveness)) - as Instance_Liveness; // ignore: deprecated_member_use + as Instance_Liveness; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Instance_Liveness create() => Instance_Liveness._(); Instance_Liveness createEmptyInstance() => create(); @@ -58,53 +61,9 @@ class Instance_Liveness extends $pb.GeneratedMessage { static Instance_Liveness? _defaultInstance; } +/// An Instance resource is the computing unit that App Engine uses to +/// automatically scale an application. class Instance extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Instance', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'appEngineRelease') - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'availability', - $pb.PbFieldType.OE, - defaultOrMaker: Instance_Availability.UNSPECIFIED, - valueOf: Instance_Availability.valueOf, - enumValues: Instance_Availability.values) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmName') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmZoneName') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmId') - ..aOM<$0.Timestamp>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startTime', subBuilder: $0.Timestamp.create) - ..a<$core.int>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'requests', $pb.PbFieldType.O3) - ..a<$core.int>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'errors', $pb.PbFieldType.O3) - ..a<$core.double>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'qps', $pb.PbFieldType.OF) - ..a<$core.int>(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'averageLatency', $pb.PbFieldType.O3) - ..aInt64(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'memoryUsage') - ..aOS(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmStatus') - ..aOB(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmDebugEnabled') - ..aOS(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmIp') - ..e(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vmLiveness', $pb.PbFieldType.OE, defaultOrMaker: Instance_Liveness_LivenessState.LIVENESS_STATE_UNSPECIFIED, valueOf: Instance_Liveness_LivenessState.valueOf, enumValues: Instance_Liveness_LivenessState.values) - ..hasRequiredFields = false; - - Instance._() : super(); factory Instance({ $core.String? name, $core.String? id, @@ -113,7 +72,7 @@ class Instance extends $pb.GeneratedMessage { $core.String? vmName, $core.String? vmZoneName, $core.String? vmId, - $0.Timestamp? startTime, + $50.Timestamp? startTime, $core.int? requests, $core.int? errors, $core.double? qps, @@ -124,66 +83,103 @@ class Instance extends $pb.GeneratedMessage { $core.String? vmIp, Instance_Liveness_LivenessState? vmLiveness, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (appEngineRelease != null) { - _result.appEngineRelease = appEngineRelease; + $result.appEngineRelease = appEngineRelease; } if (availability != null) { - _result.availability = availability; + $result.availability = availability; } if (vmName != null) { - _result.vmName = vmName; + $result.vmName = vmName; } if (vmZoneName != null) { - _result.vmZoneName = vmZoneName; + $result.vmZoneName = vmZoneName; } if (vmId != null) { - _result.vmId = vmId; + $result.vmId = vmId; } if (startTime != null) { - _result.startTime = startTime; + $result.startTime = startTime; } if (requests != null) { - _result.requests = requests; + $result.requests = requests; } if (errors != null) { - _result.errors = errors; + $result.errors = errors; } if (qps != null) { - _result.qps = qps; + $result.qps = qps; } if (averageLatency != null) { - _result.averageLatency = averageLatency; + $result.averageLatency = averageLatency; } if (memoryUsage != null) { - _result.memoryUsage = memoryUsage; + $result.memoryUsage = memoryUsage; } if (vmStatus != null) { - _result.vmStatus = vmStatus; + $result.vmStatus = vmStatus; } if (vmDebugEnabled != null) { - _result.vmDebugEnabled = vmDebugEnabled; + $result.vmDebugEnabled = vmDebugEnabled; } if (vmIp != null) { - _result.vmIp = vmIp; + $result.vmIp = vmIp; } if (vmLiveness != null) { - _result.vmLiveness = vmLiveness; + $result.vmLiveness = vmLiveness; } - return _result; + return $result; } + Instance._() : super(); factory Instance.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Instance.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Instance', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..aOS(3, _omitFieldNames ? '' : 'appEngineRelease') + ..e( + 4, _omitFieldNames ? '' : 'availability', $pb.PbFieldType.OE, + defaultOrMaker: Instance_Availability.UNSPECIFIED, + valueOf: Instance_Availability.valueOf, + enumValues: Instance_Availability.values) + ..aOS(5, _omitFieldNames ? '' : 'vmName') + ..aOS(6, _omitFieldNames ? '' : 'vmZoneName') + ..aOS(7, _omitFieldNames ? '' : 'vmId') + ..aOM<$50.Timestamp>(8, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.create) + ..a<$core.int>(9, _omitFieldNames ? '' : 'requests', $pb.PbFieldType.O3) + ..a<$core.int>(10, _omitFieldNames ? '' : 'errors', $pb.PbFieldType.O3) + ..a<$core.double>(11, _omitFieldNames ? '' : 'qps', $pb.PbFieldType.OF) + ..a<$core.int>( + 12, _omitFieldNames ? '' : 'averageLatency', $pb.PbFieldType.O3) + ..aInt64(13, _omitFieldNames ? '' : 'memoryUsage') + ..aOS(14, _omitFieldNames ? '' : 'vmStatus') + ..aOB(15, _omitFieldNames ? '' : 'vmDebugEnabled') + ..aOS(16, _omitFieldNames ? '' : 'vmIp') + ..e( + 17, _omitFieldNames ? '' : 'vmLiveness', $pb.PbFieldType.OE, + defaultOrMaker: + Instance_Liveness_LivenessState.LIVENESS_STATE_UNSPECIFIED, + valueOf: Instance_Liveness_LivenessState.valueOf, + enumValues: Instance_Liveness_LivenessState.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -192,9 +188,10 @@ class Instance extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Instance copyWith(void Function(Instance) updates) => - super.copyWith((message) => updates(message as Instance)) - as Instance; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Instance)) as Instance; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Instance create() => Instance._(); Instance createEmptyInstance() => create(); @@ -204,6 +201,8 @@ class Instance extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Instance? _defaultInstance; + /// Output only. Full path to the Instance resource in the API. + /// Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -216,6 +215,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Output only. Relative name of the instance within the version. + /// Example: `instance-1`. @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -228,6 +229,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// Output only. App Engine release this instance is running on. @$pb.TagNumber(3) $core.String get appEngineRelease => $_getSZ(2); @$pb.TagNumber(3) @@ -240,6 +242,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearAppEngineRelease() => clearField(3); + /// Output only. Availability of the instance. @$pb.TagNumber(4) Instance_Availability get availability => $_getN(3); @$pb.TagNumber(4) @@ -252,6 +255,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearAvailability() => clearField(4); + /// Output only. Name of the virtual machine where this instance lives. Only applicable + /// for instances in App Engine flexible environment. @$pb.TagNumber(5) $core.String get vmName => $_getSZ(4); @$pb.TagNumber(5) @@ -264,6 +269,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearVmName() => clearField(5); + /// Output only. Zone where the virtual machine is located. Only applicable for instances + /// in App Engine flexible environment. @$pb.TagNumber(6) $core.String get vmZoneName => $_getSZ(5); @$pb.TagNumber(6) @@ -276,6 +283,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearVmZoneName() => clearField(6); + /// Output only. Virtual machine ID of this instance. Only applicable for instances in + /// App Engine flexible environment. @$pb.TagNumber(7) $core.String get vmId => $_getSZ(6); @$pb.TagNumber(7) @@ -288,10 +297,13 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearVmId() => clearField(7); + /// Output only. Time that this instance was started. + /// + /// @OutputOnly @$pb.TagNumber(8) - $0.Timestamp get startTime => $_getN(7); + $50.Timestamp get startTime => $_getN(7); @$pb.TagNumber(8) - set startTime($0.Timestamp v) { + set startTime($50.Timestamp v) { setField(8, v); } @@ -300,8 +312,9 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearStartTime() => clearField(8); @$pb.TagNumber(8) - $0.Timestamp ensureStartTime() => $_ensure(7); + $50.Timestamp ensureStartTime() => $_ensure(7); + /// Output only. Number of requests since this instance was started. @$pb.TagNumber(9) $core.int get requests => $_getIZ(8); @$pb.TagNumber(9) @@ -314,6 +327,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearRequests() => clearField(9); + /// Output only. Number of errors since this instance was started. @$pb.TagNumber(10) $core.int get errors => $_getIZ(9); @$pb.TagNumber(10) @@ -326,6 +340,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearErrors() => clearField(10); + /// Output only. Average queries per second (QPS) over the last minute. @$pb.TagNumber(11) $core.double get qps => $_getN(10); @$pb.TagNumber(11) @@ -338,6 +353,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearQps() => clearField(11); + /// Output only. Average latency (ms) over the last minute. @$pb.TagNumber(12) $core.int get averageLatency => $_getIZ(11); @$pb.TagNumber(12) @@ -350,6 +366,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearAverageLatency() => clearField(12); + /// Output only. Total memory in use (bytes). @$pb.TagNumber(13) $fixnum.Int64 get memoryUsage => $_getI64(12); @$pb.TagNumber(13) @@ -362,6 +379,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(13) void clearMemoryUsage() => clearField(13); + /// Output only. Status of the virtual machine where this instance lives. Only applicable + /// for instances in App Engine flexible environment. @$pb.TagNumber(14) $core.String get vmStatus => $_getSZ(13); @$pb.TagNumber(14) @@ -374,6 +393,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearVmStatus() => clearField(14); + /// Output only. Whether this instance is in debug mode. Only applicable for instances in + /// App Engine flexible environment. @$pb.TagNumber(15) $core.bool get vmDebugEnabled => $_getBF(14); @$pb.TagNumber(15) @@ -386,6 +407,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearVmDebugEnabled() => clearField(15); + /// Output only. The IP address of this instance. Only applicable for instances in App + /// Engine flexible environment. @$pb.TagNumber(16) $core.String get vmIp => $_getSZ(15); @$pb.TagNumber(16) @@ -398,6 +421,8 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(16) void clearVmIp() => clearField(16); + /// Output only. The liveness health check of this instance. Only applicable for instances + /// in App Engine flexible environment. @$pb.TagNumber(17) Instance_Liveness_LivenessState get vmLiveness => $_getN(16); @$pb.TagNumber(17) @@ -410,3 +435,7 @@ class Instance extends $pb.GeneratedMessage { @$pb.TagNumber(17) void clearVmLiveness() => clearField(17); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pbenum.dart index d9430f7a..31b7121c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pbenum.dart @@ -1,24 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/instance.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Availability of the instance. class Instance_Availability extends $pb.ProtobufEnum { - static const Instance_Availability UNSPECIFIED = Instance_Availability._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED'); - static const Instance_Availability RESIDENT = Instance_Availability._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'RESIDENT'); - static const Instance_Availability DYNAMIC = Instance_Availability._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DYNAMIC'); + static const Instance_Availability UNSPECIFIED = + Instance_Availability._(0, _omitEnumNames ? '' : 'UNSPECIFIED'); + static const Instance_Availability RESIDENT = + Instance_Availability._(1, _omitEnumNames ? '' : 'RESIDENT'); + static const Instance_Availability DYNAMIC = + Instance_Availability._(2, _omitEnumNames ? '' : 'DYNAMIC'); static const $core.List values = [ @@ -34,43 +36,21 @@ class Instance_Availability extends $pb.ProtobufEnum { const Instance_Availability._($core.int v, $core.String n) : super(v, n); } +/// Liveness health check status for Flex instances. class Instance_Liveness_LivenessState extends $pb.ProtobufEnum { static const Instance_Liveness_LivenessState LIVENESS_STATE_UNSPECIFIED = Instance_Liveness_LivenessState._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LIVENESS_STATE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'LIVENESS_STATE_UNSPECIFIED'); static const Instance_Liveness_LivenessState UNKNOWN = - Instance_Liveness_LivenessState._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNKNOWN'); + Instance_Liveness_LivenessState._(1, _omitEnumNames ? '' : 'UNKNOWN'); static const Instance_Liveness_LivenessState HEALTHY = - Instance_Liveness_LivenessState._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'HEALTHY'); + Instance_Liveness_LivenessState._(2, _omitEnumNames ? '' : 'HEALTHY'); static const Instance_Liveness_LivenessState UNHEALTHY = - Instance_Liveness_LivenessState._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNHEALTHY'); + Instance_Liveness_LivenessState._(3, _omitEnumNames ? '' : 'UNHEALTHY'); static const Instance_Liveness_LivenessState DRAINING = - Instance_Liveness_LivenessState._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DRAINING'); + Instance_Liveness_LivenessState._(4, _omitEnumNames ? '' : 'DRAINING'); static const Instance_Liveness_LivenessState TIMEOUT = - Instance_Liveness_LivenessState._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TIMEOUT'); + Instance_Liveness_LivenessState._(5, _omitEnumNames ? '' : 'TIMEOUT'); static const $core.List values = [ @@ -90,3 +70,5 @@ class Instance_Liveness_LivenessState extends $pb.ProtobufEnum { const Instance_Liveness_LivenessState._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pbjson.dart index 8665b823..c0154ee5 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/instance.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/instance.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 instanceDescriptor instead') @@ -119,4 +123,22 @@ const Instance_Availability$json = { /// Descriptor for `Instance`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List instanceDescriptor = $convert.base64Decode( - 'CghJbnN0YW5jZRIXCgRuYW1lGAEgASgJQgPgQQNSBG5hbWUSEwoCaWQYAiABKAlCA+BBA1ICaWQSMQoSYXBwX2VuZ2luZV9yZWxlYXNlGAMgASgJQgPgQQNSEGFwcEVuZ2luZVJlbGVhc2USVwoMYXZhaWxhYmlsaXR5GAQgASgOMi4uZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuSW5zdGFuY2UuQXZhaWxhYmlsaXR5QgPgQQNSDGF2YWlsYWJpbGl0eRIcCgd2bV9uYW1lGAUgASgJQgPgQQNSBnZtTmFtZRIlCgx2bV96b25lX25hbWUYBiABKAlCA+BBA1IKdm1ab25lTmFtZRIYCgV2bV9pZBgHIAEoCUID4EEDUgR2bUlkEj4KCnN0YXJ0X3RpbWUYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCXN0YXJ0VGltZRIfCghyZXF1ZXN0cxgJIAEoBUID4EEDUghyZXF1ZXN0cxIbCgZlcnJvcnMYCiABKAVCA+BBA1IGZXJyb3JzEhUKA3FwcxgLIAEoAkID4EEDUgNxcHMSLAoPYXZlcmFnZV9sYXRlbmN5GAwgASgFQgPgQQNSDmF2ZXJhZ2VMYXRlbmN5EiYKDG1lbW9yeV91c2FnZRgNIAEoA0ID4EEDUgttZW1vcnlVc2FnZRIgCgl2bV9zdGF0dXMYDiABKAlCA+BBA1IIdm1TdGF0dXMSLQoQdm1fZGVidWdfZW5hYmxlZBgPIAEoCEID4EEDUg52bURlYnVnRW5hYmxlZBIYCgV2bV9pcBgQIAEoCUID4EEDUgR2bUlwEl4KC3ZtX2xpdmVuZXNzGBEgASgOMjguZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuSW5zdGFuY2UuTGl2ZW5lc3MuTGl2ZW5lc3NTdGF0ZUID4EEDUgp2bUxpdmVuZXNzGn8KCExpdmVuZXNzInMKDUxpdmVuZXNzU3RhdGUSHgoaTElWRU5FU1NfU1RBVEVfVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCwoHSEVBTFRIWRACEg0KCVVOSEVBTFRIWRADEgwKCERSQUlOSU5HEAQSCwoHVElNRU9VVBAFIjoKDEF2YWlsYWJpbGl0eRIPCgtVTlNQRUNJRklFRBAAEgwKCFJFU0lERU5UEAESCwoHRFlOQU1JQxACOm3qQWoKIWFwcGVuZ2luZS5nb29nbGVhcGlzLmNvbS9JbnN0YW5jZRJFYXBwcy97YXBwfS9zZXJ2aWNlcy97c2VydmljZX0vdmVyc2lvbnMve3ZlcnNpb259L2luc3RhbmNlcy97aW5zdGFuY2V9'); + 'CghJbnN0YW5jZRIXCgRuYW1lGAEgASgJQgPgQQNSBG5hbWUSEwoCaWQYAiABKAlCA+BBA1ICaW' + 'QSMQoSYXBwX2VuZ2luZV9yZWxlYXNlGAMgASgJQgPgQQNSEGFwcEVuZ2luZVJlbGVhc2USVwoM' + 'YXZhaWxhYmlsaXR5GAQgASgOMi4uZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuSW5zdGFuY2UuQX' + 'ZhaWxhYmlsaXR5QgPgQQNSDGF2YWlsYWJpbGl0eRIcCgd2bV9uYW1lGAUgASgJQgPgQQNSBnZt' + 'TmFtZRIlCgx2bV96b25lX25hbWUYBiABKAlCA+BBA1IKdm1ab25lTmFtZRIYCgV2bV9pZBgHIA' + 'EoCUID4EEDUgR2bUlkEj4KCnN0YXJ0X3RpbWUYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt' + 'ZXN0YW1wQgPgQQNSCXN0YXJ0VGltZRIfCghyZXF1ZXN0cxgJIAEoBUID4EEDUghyZXF1ZXN0cx' + 'IbCgZlcnJvcnMYCiABKAVCA+BBA1IGZXJyb3JzEhUKA3FwcxgLIAEoAkID4EEDUgNxcHMSLAoP' + 'YXZlcmFnZV9sYXRlbmN5GAwgASgFQgPgQQNSDmF2ZXJhZ2VMYXRlbmN5EiYKDG1lbW9yeV91c2' + 'FnZRgNIAEoA0ID4EEDUgttZW1vcnlVc2FnZRIgCgl2bV9zdGF0dXMYDiABKAlCA+BBA1IIdm1T' + 'dGF0dXMSLQoQdm1fZGVidWdfZW5hYmxlZBgPIAEoCEID4EEDUg52bURlYnVnRW5hYmxlZBIYCg' + 'V2bV9pcBgQIAEoCUID4EEDUgR2bUlwEl4KC3ZtX2xpdmVuZXNzGBEgASgOMjguZ29vZ2xlLmFw' + 'cGVuZ2luZS52MWJldGEuSW5zdGFuY2UuTGl2ZW5lc3MuTGl2ZW5lc3NTdGF0ZUID4EEDUgp2bU' + 'xpdmVuZXNzGn8KCExpdmVuZXNzInMKDUxpdmVuZXNzU3RhdGUSHgoaTElWRU5FU1NfU1RBVEVf' + 'VU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCwoHSEVBTFRIWRACEg0KCVVOSEVBTFRIWRADEg' + 'wKCERSQUlOSU5HEAQSCwoHVElNRU9VVBAFIjoKDEF2YWlsYWJpbGl0eRIPCgtVTlNQRUNJRklF' + 'RBAAEgwKCFJFU0lERU5UEAESCwoHRFlOQU1JQxACOm3qQWoKIWFwcGVuZ2luZS5nb29nbGVhcG' + 'lzLmNvbS9JbnN0YW5jZRJFYXBwcy97YXBwfS9zZXJ2aWNlcy97c2VydmljZX0vdmVyc2lvbnMv' + 'e3ZlcnNpb259L2luc3RhbmNlcy97aW5zdGFuY2V9'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pb.dart index 89d84324..8d185cc5 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pb.dart @@ -1,65 +1,55 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/location.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Metadata for the given [google.cloud.location.Location][google.cloud.location.Location]. class LocationMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LocationMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'standardEnvironmentAvailable') - ..aOB( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'flexibleEnvironmentAvailable') - ..aOB( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'searchApiAvailable') - ..hasRequiredFields = false; - - LocationMetadata._() : super(); factory LocationMetadata({ $core.bool? standardEnvironmentAvailable, $core.bool? flexibleEnvironmentAvailable, $core.bool? searchApiAvailable, }) { - final _result = create(); + final $result = create(); if (standardEnvironmentAvailable != null) { - _result.standardEnvironmentAvailable = standardEnvironmentAvailable; + $result.standardEnvironmentAvailable = standardEnvironmentAvailable; } if (flexibleEnvironmentAvailable != null) { - _result.flexibleEnvironmentAvailable = flexibleEnvironmentAvailable; + $result.flexibleEnvironmentAvailable = flexibleEnvironmentAvailable; } if (searchApiAvailable != null) { - _result.searchApiAvailable = searchApiAvailable; + $result.searchApiAvailable = searchApiAvailable; } - return _result; + return $result; } + LocationMetadata._() : super(); factory LocationMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LocationMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LocationMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOB(2, _omitFieldNames ? '' : 'standardEnvironmentAvailable') + ..aOB(4, _omitFieldNames ? '' : 'flexibleEnvironmentAvailable') + ..aOB(6, _omitFieldNames ? '' : 'searchApiAvailable') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -69,8 +59,10 @@ class LocationMetadata extends $pb.GeneratedMessage { 'Will be removed in next major version') LocationMetadata copyWith(void Function(LocationMetadata) updates) => super.copyWith((message) => updates(message as LocationMetadata)) - as LocationMetadata; // ignore: deprecated_member_use + as LocationMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LocationMetadata create() => LocationMetadata._(); LocationMetadata createEmptyInstance() => create(); @@ -81,6 +73,9 @@ class LocationMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LocationMetadata? _defaultInstance; + /// App Engine standard environment is available in the given location. + /// + /// @OutputOnly @$pb.TagNumber(2) $core.bool get standardEnvironmentAvailable => $_getBF(0); @$pb.TagNumber(2) @@ -93,6 +88,9 @@ class LocationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearStandardEnvironmentAvailable() => clearField(2); + /// App Engine flexible environment is available in the given location. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.bool get flexibleEnvironmentAvailable => $_getBF(1); @$pb.TagNumber(4) @@ -105,6 +103,8 @@ class LocationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearFlexibleEnvironmentAvailable() => clearField(4); + /// Output only. [Search API](https://cloud.google.com/appengine/docs/standard/python/search) + /// is available in the given location. @$pb.TagNumber(6) $core.bool get searchApiAvailable => $_getBF(2); @$pb.TagNumber(6) @@ -117,3 +117,7 @@ class LocationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearSearchApiAvailable() => clearField(6); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pbenum.dart index 48d4bd75..f6748722 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/location.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pbjson.dart index 6e209171..f07bfc17 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/location.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/location.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 locationMetadataDescriptor instead') @@ -40,4 +44,7 @@ const LocationMetadata$json = { /// Descriptor for `LocationMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List locationMetadataDescriptor = $convert.base64Decode( - 'ChBMb2NhdGlvbk1ldGFkYXRhEkQKHnN0YW5kYXJkX2Vudmlyb25tZW50X2F2YWlsYWJsZRgCIAEoCFIcc3RhbmRhcmRFbnZpcm9ubWVudEF2YWlsYWJsZRJECh5mbGV4aWJsZV9lbnZpcm9ubWVudF9hdmFpbGFibGUYBCABKAhSHGZsZXhpYmxlRW52aXJvbm1lbnRBdmFpbGFibGUSNQoUc2VhcmNoX2FwaV9hdmFpbGFibGUYBiABKAhCA+BBA1ISc2VhcmNoQXBpQXZhaWxhYmxl'); + 'ChBMb2NhdGlvbk1ldGFkYXRhEkQKHnN0YW5kYXJkX2Vudmlyb25tZW50X2F2YWlsYWJsZRgCIA' + 'EoCFIcc3RhbmRhcmRFbnZpcm9ubWVudEF2YWlsYWJsZRJECh5mbGV4aWJsZV9lbnZpcm9ubWVu' + 'dF9hdmFpbGFibGUYBCABKAhSHGZsZXhpYmxlRW52aXJvbm1lbnRBdmFpbGFibGUSNQoUc2Vhcm' + 'NoX2FwaV9hdmFpbGFibGUYBiABKAhCA+BBA1ISc2VhcmNoQXBpQXZhaWxhYmxl'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pb.dart index 142e42a1..50d19220 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/network_settings.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,44 +17,39 @@ import 'network_settings.pbenum.dart'; export 'network_settings.pbenum.dart'; +/// A NetworkSettings resource is a container for ingress settings for a version +/// or service. class NetworkSettings extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'NetworkSettings', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ingressTrafficAllowed', - $pb.PbFieldType.OE, - defaultOrMaker: NetworkSettings_IngressTrafficAllowed - .INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED, - valueOf: NetworkSettings_IngressTrafficAllowed.valueOf, - enumValues: NetworkSettings_IngressTrafficAllowed.values) - ..hasRequiredFields = false; - - NetworkSettings._() : super(); factory NetworkSettings({ NetworkSettings_IngressTrafficAllowed? ingressTrafficAllowed, }) { - final _result = create(); + final $result = create(); if (ingressTrafficAllowed != null) { - _result.ingressTrafficAllowed = ingressTrafficAllowed; + $result.ingressTrafficAllowed = ingressTrafficAllowed; } - return _result; + return $result; } + NetworkSettings._() : super(); factory NetworkSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory NetworkSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'NetworkSettings', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'ingressTrafficAllowed', $pb.PbFieldType.OE, + defaultOrMaker: NetworkSettings_IngressTrafficAllowed + .INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED, + valueOf: NetworkSettings_IngressTrafficAllowed.valueOf, + enumValues: NetworkSettings_IngressTrafficAllowed.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -60,8 +59,10 @@ class NetworkSettings extends $pb.GeneratedMessage { 'Will be removed in next major version') NetworkSettings copyWith(void Function(NetworkSettings) updates) => super.copyWith((message) => updates(message as NetworkSettings)) - as NetworkSettings; // ignore: deprecated_member_use + as NetworkSettings; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static NetworkSettings create() => NetworkSettings._(); NetworkSettings createEmptyInstance() => create(); @@ -72,6 +73,7 @@ class NetworkSettings extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static NetworkSettings? _defaultInstance; + /// The ingress settings for version or service. @$pb.TagNumber(1) NetworkSettings_IngressTrafficAllowed get ingressTrafficAllowed => $_getN(0); @$pb.TagNumber(1) @@ -84,3 +86,7 @@ class NetworkSettings extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearIngressTrafficAllowed() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pbenum.dart index e0c5336f..333194d8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pbenum.dart @@ -1,42 +1,35 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/network_settings.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// If unspecified, INGRESS_TRAFFIC_ALLOWED_ALL will be used. class NetworkSettings_IngressTrafficAllowed extends $pb.ProtobufEnum { static const NetworkSettings_IngressTrafficAllowed INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED = NetworkSettings_IngressTrafficAllowed._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED'); static const NetworkSettings_IngressTrafficAllowed INGRESS_TRAFFIC_ALLOWED_ALL = NetworkSettings_IngressTrafficAllowed._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INGRESS_TRAFFIC_ALLOWED_ALL'); + 1, _omitEnumNames ? '' : 'INGRESS_TRAFFIC_ALLOWED_ALL'); static const NetworkSettings_IngressTrafficAllowed INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY = NetworkSettings_IngressTrafficAllowed._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY'); + 2, _omitEnumNames ? '' : 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY'); static const NetworkSettings_IngressTrafficAllowed INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB = NetworkSettings_IngressTrafficAllowed._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB'); + 3, _omitEnumNames ? '' : 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB'); static const $core.List values = [ @@ -54,3 +47,5 @@ class NetworkSettings_IngressTrafficAllowed extends $pb.ProtobufEnum { const NetworkSettings_IngressTrafficAllowed._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pbjson.dart index f9a38475..6f87d375 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/network_settings.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/network_settings.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 networkSettingsDescriptor instead') @@ -38,4 +42,9 @@ const NetworkSettings_IngressTrafficAllowed$json = { /// Descriptor for `NetworkSettings`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List networkSettingsDescriptor = $convert.base64Decode( - 'Cg9OZXR3b3JrU2V0dGluZ3MSdgoXaW5ncmVzc190cmFmZmljX2FsbG93ZWQYASABKA4yPi5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5OZXR3b3JrU2V0dGluZ3MuSW5ncmVzc1RyYWZmaWNBbGxvd2VkUhVpbmdyZXNzVHJhZmZpY0FsbG93ZWQiuQEKFUluZ3Jlc3NUcmFmZmljQWxsb3dlZBInCiNJTkdSRVNTX1RSQUZGSUNfQUxMT1dFRF9VTlNQRUNJRklFRBAAEh8KG0lOR1JFU1NfVFJBRkZJQ19BTExPV0VEX0FMTBABEikKJUlOR1JFU1NfVFJBRkZJQ19BTExPV0VEX0lOVEVSTkFMX09OTFkQAhIrCidJTkdSRVNTX1RSQUZGSUNfQUxMT1dFRF9JTlRFUk5BTF9BTkRfTEIQAw=='); + 'Cg9OZXR3b3JrU2V0dGluZ3MSdgoXaW5ncmVzc190cmFmZmljX2FsbG93ZWQYASABKA4yPi5nb2' + '9nbGUuYXBwZW5naW5lLnYxYmV0YS5OZXR3b3JrU2V0dGluZ3MuSW5ncmVzc1RyYWZmaWNBbGxv' + 'd2VkUhVpbmdyZXNzVHJhZmZpY0FsbG93ZWQiuQEKFUluZ3Jlc3NUcmFmZmljQWxsb3dlZBInCi' + 'NJTkdSRVNTX1RSQUZGSUNfQUxMT1dFRF9VTlNQRUNJRklFRBAAEh8KG0lOR1JFU1NfVFJBRkZJ' + 'Q19BTExPV0VEX0FMTBABEikKJUlOR1JFU1NfVFJBRkZJQ19BTExPV0VEX0lOVEVSTkFMX09OTF' + 'kQAhIrCidJTkdSRVNTX1RSQUZGSUNfQUxMT1dFRF9JTlRFUk5BTF9BTkRfTEIQAw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pb.dart index c2872cee..d1f26957 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pb.dart @@ -1,96 +1,94 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/operation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/timestamp.pb.dart' as $0; +import '../../protobuf/timestamp.pb.dart' as $50; enum OperationMetadataV1Beta_MethodMetadata { createVersionMetadata, notSet } +/// Metadata for the given [google.longrunning.Operation][google.longrunning.Operation]. class OperationMetadataV1Beta extends $pb.GeneratedMessage { - static const $core.Map<$core.int, OperationMetadataV1Beta_MethodMetadata> - _OperationMetadataV1Beta_MethodMetadataByTag = { - 8: OperationMetadataV1Beta_MethodMetadata.createVersionMetadata, - 0: OperationMetadataV1Beta_MethodMetadata.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OperationMetadataV1Beta', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..oo(0, [8]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'method') - ..aOM<$0.Timestamp>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'insertTime', - subBuilder: $0.Timestamp.create) - ..aOM<$0.Timestamp>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endTime', - subBuilder: $0.Timestamp.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'user') - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'target') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ephemeralMessage') - ..pPS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'warning') - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createVersionMetadata', subBuilder: CreateVersionMetadataV1Beta.create) - ..hasRequiredFields = false; - - OperationMetadataV1Beta._() : super(); factory OperationMetadataV1Beta({ $core.String? method, - $0.Timestamp? insertTime, - $0.Timestamp? endTime, + $50.Timestamp? insertTime, + $50.Timestamp? endTime, $core.String? user, $core.String? target, $core.String? ephemeralMessage, $core.Iterable<$core.String>? warning, CreateVersionMetadataV1Beta? createVersionMetadata, }) { - final _result = create(); + final $result = create(); if (method != null) { - _result.method = method; + $result.method = method; } if (insertTime != null) { - _result.insertTime = insertTime; + $result.insertTime = insertTime; } if (endTime != null) { - _result.endTime = endTime; + $result.endTime = endTime; } if (user != null) { - _result.user = user; + $result.user = user; } if (target != null) { - _result.target = target; + $result.target = target; } if (ephemeralMessage != null) { - _result.ephemeralMessage = ephemeralMessage; + $result.ephemeralMessage = ephemeralMessage; } if (warning != null) { - _result.warning.addAll(warning); + $result.warning.addAll(warning); } if (createVersionMetadata != null) { - _result.createVersionMetadata = createVersionMetadata; + $result.createVersionMetadata = createVersionMetadata; } - return _result; + return $result; } + OperationMetadataV1Beta._() : super(); factory OperationMetadataV1Beta.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OperationMetadataV1Beta.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, OperationMetadataV1Beta_MethodMetadata> + _OperationMetadataV1Beta_MethodMetadataByTag = { + 8: OperationMetadataV1Beta_MethodMetadata.createVersionMetadata, + 0: OperationMetadataV1Beta_MethodMetadata.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OperationMetadataV1Beta', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..oo(0, [8]) + ..aOS(1, _omitFieldNames ? '' : 'method') + ..aOM<$50.Timestamp>(2, _omitFieldNames ? '' : 'insertTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(3, _omitFieldNames ? '' : 'endTime', + subBuilder: $50.Timestamp.create) + ..aOS(4, _omitFieldNames ? '' : 'user') + ..aOS(5, _omitFieldNames ? '' : 'target') + ..aOS(6, _omitFieldNames ? '' : 'ephemeralMessage') + ..pPS(7, _omitFieldNames ? '' : 'warning') + ..aOM( + 8, _omitFieldNames ? '' : 'createVersionMetadata', + subBuilder: CreateVersionMetadataV1Beta.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') @@ -102,8 +100,10 @@ class OperationMetadataV1Beta extends $pb.GeneratedMessage { OperationMetadataV1Beta copyWith( void Function(OperationMetadataV1Beta) updates) => super.copyWith((message) => updates(message as OperationMetadataV1Beta)) - as OperationMetadataV1Beta; // ignore: deprecated_member_use + as OperationMetadataV1Beta; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OperationMetadataV1Beta create() => OperationMetadataV1Beta._(); OperationMetadataV1Beta createEmptyInstance() => create(); @@ -118,6 +118,10 @@ class OperationMetadataV1Beta extends $pb.GeneratedMessage { _OperationMetadataV1Beta_MethodMetadataByTag[$_whichOneof(0)]!; void clearMethodMetadata() => clearField($_whichOneof(0)); + /// API method that initiated this operation. Example: + /// `google.appengine.v1beta.Versions.CreateVersion`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get method => $_getSZ(0); @$pb.TagNumber(1) @@ -130,10 +134,13 @@ class OperationMetadataV1Beta extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMethod() => clearField(1); + /// Time that this operation was created. + /// + /// @OutputOnly @$pb.TagNumber(2) - $0.Timestamp get insertTime => $_getN(1); + $50.Timestamp get insertTime => $_getN(1); @$pb.TagNumber(2) - set insertTime($0.Timestamp v) { + set insertTime($50.Timestamp v) { setField(2, v); } @@ -142,12 +149,15 @@ class OperationMetadataV1Beta extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearInsertTime() => clearField(2); @$pb.TagNumber(2) - $0.Timestamp ensureInsertTime() => $_ensure(1); + $50.Timestamp ensureInsertTime() => $_ensure(1); + /// Time that this operation completed. + /// + /// @OutputOnly @$pb.TagNumber(3) - $0.Timestamp get endTime => $_getN(2); + $50.Timestamp get endTime => $_getN(2); @$pb.TagNumber(3) - set endTime($0.Timestamp v) { + set endTime($50.Timestamp v) { setField(3, v); } @@ -156,8 +166,11 @@ class OperationMetadataV1Beta extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearEndTime() => clearField(3); @$pb.TagNumber(3) - $0.Timestamp ensureEndTime() => $_ensure(2); + $50.Timestamp ensureEndTime() => $_ensure(2); + /// User who requested this operation. + /// + /// @OutputOnly @$pb.TagNumber(4) $core.String get user => $_getSZ(3); @$pb.TagNumber(4) @@ -170,6 +183,10 @@ class OperationMetadataV1Beta extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUser() => clearField(4); + /// Name of the resource that this operation is acting on. Example: + /// `apps/myapp/services/default`. + /// + /// @OutputOnly @$pb.TagNumber(5) $core.String get target => $_getSZ(4); @$pb.TagNumber(5) @@ -182,6 +199,8 @@ class OperationMetadataV1Beta extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearTarget() => clearField(5); + /// Ephemeral message that may change every time the operation is polled. + /// @OutputOnly @$pb.TagNumber(6) $core.String get ephemeralMessage => $_getSZ(5); @$pb.TagNumber(6) @@ -194,6 +213,8 @@ class OperationMetadataV1Beta extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearEphemeralMessage() => clearField(6); + /// Durable messages that persist on every operation poll. + /// @OutputOnly @$pb.TagNumber(7) $core.List<$core.String> get warning => $_getList(6); @@ -212,39 +233,34 @@ class OperationMetadataV1Beta extends $pb.GeneratedMessage { CreateVersionMetadataV1Beta ensureCreateVersionMetadata() => $_ensure(7); } +/// Metadata for the given [google.longrunning.Operation][google.longrunning.Operation] during a +/// [google.appengine.v1beta.CreateVersionRequest][google.appengine.v1beta.CreateVersionRequest]. class CreateVersionMetadataV1Beta extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateVersionMetadataV1Beta', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cloudBuildId') - ..hasRequiredFields = false; - - CreateVersionMetadataV1Beta._() : super(); factory CreateVersionMetadataV1Beta({ $core.String? cloudBuildId, }) { - final _result = create(); + final $result = create(); if (cloudBuildId != null) { - _result.cloudBuildId = cloudBuildId; + $result.cloudBuildId = cloudBuildId; } - return _result; + return $result; } + CreateVersionMetadataV1Beta._() : super(); factory CreateVersionMetadataV1Beta.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateVersionMetadataV1Beta.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateVersionMetadataV1Beta', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'cloudBuildId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -257,8 +273,10 @@ class CreateVersionMetadataV1Beta extends $pb.GeneratedMessage { void Function(CreateVersionMetadataV1Beta) updates) => super.copyWith( (message) => updates(message as CreateVersionMetadataV1Beta)) - as CreateVersionMetadataV1Beta; // ignore: deprecated_member_use + as CreateVersionMetadataV1Beta; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateVersionMetadataV1Beta create() => CreateVersionMetadataV1Beta._(); @@ -270,6 +288,8 @@ class CreateVersionMetadataV1Beta extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateVersionMetadataV1Beta? _defaultInstance; + /// The Cloud Build ID if one was created as part of the version create. + /// @OutputOnly @$pb.TagNumber(1) $core.String get cloudBuildId => $_getSZ(0); @$pb.TagNumber(1) @@ -282,3 +302,7 @@ class CreateVersionMetadataV1Beta extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCloudBuildId() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pbenum.dart index cd3c84d1..8e465b31 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/operation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pbjson.dart index 3495a6d9..f25b511c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/operation.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/operation.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 operationMetadataV1BetaDescriptor instead') @@ -56,9 +60,16 @@ const OperationMetadataV1Beta$json = { }; /// Descriptor for `OperationMetadataV1Beta`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List operationMetadataV1BetaDescriptor = - $convert.base64Decode( - 'ChdPcGVyYXRpb25NZXRhZGF0YVYxQmV0YRIWCgZtZXRob2QYASABKAlSBm1ldGhvZBI7CgtpbnNlcnRfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCmluc2VydFRpbWUSNQoIZW5kX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgdlbmRUaW1lEhIKBHVzZXIYBCABKAlSBHVzZXISFgoGdGFyZ2V0GAUgASgJUgZ0YXJnZXQSKwoRZXBoZW1lcmFsX21lc3NhZ2UYBiABKAlSEGVwaGVtZXJhbE1lc3NhZ2USGAoHd2FybmluZxgHIAMoCVIHd2FybmluZxJuChdjcmVhdGVfdmVyc2lvbl9tZXRhZGF0YRgIIAEoCzI0Lmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkNyZWF0ZVZlcnNpb25NZXRhZGF0YVYxQmV0YUgAUhVjcmVhdGVWZXJzaW9uTWV0YWRhdGFCEQoPbWV0aG9kX21ldGFkYXRh'); +final $typed_data.Uint8List operationMetadataV1BetaDescriptor = $convert.base64Decode( + 'ChdPcGVyYXRpb25NZXRhZGF0YVYxQmV0YRIWCgZtZXRob2QYASABKAlSBm1ldGhvZBI7Cgtpbn' + 'NlcnRfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCmluc2VydFRpbWUS' + 'NQoIZW5kX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUgdlbmRUaW1lEh' + 'IKBHVzZXIYBCABKAlSBHVzZXISFgoGdGFyZ2V0GAUgASgJUgZ0YXJnZXQSKwoRZXBoZW1lcmFs' + 'X21lc3NhZ2UYBiABKAlSEGVwaGVtZXJhbE1lc3NhZ2USGAoHd2FybmluZxgHIAMoCVIHd2Fybm' + 'luZxJuChdjcmVhdGVfdmVyc2lvbl9tZXRhZGF0YRgIIAEoCzI0Lmdvb2dsZS5hcHBlbmdpbmUu' + 'djFiZXRhLkNyZWF0ZVZlcnNpb25NZXRhZGF0YVYxQmV0YUgAUhVjcmVhdGVWZXJzaW9uTWV0YW' + 'RhdGFCEQoPbWV0aG9kX21ldGFkYXRh'); + @$core.Deprecated('Use createVersionMetadataV1BetaDescriptor instead') const CreateVersionMetadataV1Beta$json = { '1': 'CreateVersionMetadataV1Beta', @@ -70,4 +81,5 @@ const CreateVersionMetadataV1Beta$json = { /// Descriptor for `CreateVersionMetadataV1Beta`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createVersionMetadataV1BetaDescriptor = $convert.base64Decode( - 'ChtDcmVhdGVWZXJzaW9uTWV0YWRhdGFWMUJldGESJAoOY2xvdWRfYnVpbGRfaWQYASABKAlSDGNsb3VkQnVpbGRJZA=='); + 'ChtDcmVhdGVWZXJzaW9uTWV0YWRhdGFWMUJldGESJAoOY2xvdWRfYnVpbGRfaWQYASABKAlSDG' + 'Nsb3VkQnVpbGRJZA=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pb.dart index 5ba181cd..b0ecb63b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pb.dart @@ -1,76 +1,73 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'network_settings.pb.dart' as $0; - +import 'network_settings.pb.dart' as $54; import 'service.pbenum.dart'; export 'service.pbenum.dart'; +/// A Service resource is a logical component of an application that can share +/// state and communicate in a secure fashion with other services. +/// For example, an application that handles customer requests might +/// include separate services to handle tasks such as backend data +/// analysis or API requests from mobile devices. Each service has a +/// collection of versions that define a specific set of code used to +/// implement the functionality of that service. class Service extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Service', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'split', - subBuilder: TrafficSplit.create) - ..aOM<$0.NetworkSettings>( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'networkSettings', - subBuilder: $0.NetworkSettings.create) - ..hasRequiredFields = false; - - Service._() : super(); factory Service({ $core.String? name, $core.String? id, TrafficSplit? split, - $0.NetworkSettings? networkSettings, + $54.NetworkSettings? networkSettings, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (split != null) { - _result.split = split; + $result.split = split; } if (networkSettings != null) { - _result.networkSettings = networkSettings; + $result.networkSettings = networkSettings; } - return _result; + return $result; } + Service._() : super(); factory Service.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Service.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Service', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..aOM(3, _omitFieldNames ? '' : 'split', + subBuilder: TrafficSplit.create) + ..aOM<$54.NetworkSettings>(6, _omitFieldNames ? '' : 'networkSettings', + subBuilder: $54.NetworkSettings.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') @@ -79,9 +76,10 @@ class Service extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Service copyWith(void Function(Service) updates) => - super.copyWith((message) => updates(message as Service)) - as Service; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Service)) as Service; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Service create() => Service._(); Service createEmptyInstance() => create(); @@ -91,6 +89,10 @@ class Service extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Service? _defaultInstance; + /// Full path to the Service resource in the API. + /// Example: `apps/myapp/services/default`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -103,6 +105,10 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Relative name of the service within the application. + /// Example: `default`. + /// + /// @OutputOnly @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -115,6 +121,8 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// Mapping that defines fractional HTTP traffic diversion to + /// different versions within the service. @$pb.TagNumber(3) TrafficSplit get split => $_getN(2); @$pb.TagNumber(3) @@ -129,10 +137,11 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(3) TrafficSplit ensureSplit() => $_ensure(2); + /// Ingress settings for this service. Will apply to all versions. @$pb.TagNumber(6) - $0.NetworkSettings get networkSettings => $_getN(3); + $54.NetworkSettings get networkSettings => $_getN(3); @$pb.TagNumber(6) - set networkSettings($0.NetworkSettings v) { + set networkSettings($54.NetworkSettings v) { setField(6, v); } @@ -141,55 +150,50 @@ class Service extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearNetworkSettings() => clearField(6); @$pb.TagNumber(6) - $0.NetworkSettings ensureNetworkSettings() => $_ensure(3); + $54.NetworkSettings ensureNetworkSettings() => $_ensure(3); } +/// Traffic routing configuration for versions within a single service. Traffic +/// splits define how traffic directed to the service is assigned to versions. class TrafficSplit extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TrafficSplit', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'shardBy', - $pb.PbFieldType.OE, - defaultOrMaker: TrafficSplit_ShardBy.UNSPECIFIED, - valueOf: TrafficSplit_ShardBy.valueOf, - enumValues: TrafficSplit_ShardBy.values) - ..m<$core.String, $core.double>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'allocations', - entryClassName: 'TrafficSplit.AllocationsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OD, - packageName: const $pb.PackageName('google.appengine.v1beta')) - ..hasRequiredFields = false; - - TrafficSplit._() : super(); factory TrafficSplit({ TrafficSplit_ShardBy? shardBy, $core.Map<$core.String, $core.double>? allocations, }) { - final _result = create(); + final $result = create(); if (shardBy != null) { - _result.shardBy = shardBy; + $result.shardBy = shardBy; } if (allocations != null) { - _result.allocations.addAll(allocations); + $result.allocations.addAll(allocations); } - return _result; + return $result; } + TrafficSplit._() : super(); factory TrafficSplit.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TrafficSplit.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TrafficSplit', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'shardBy', $pb.PbFieldType.OE, + defaultOrMaker: TrafficSplit_ShardBy.UNSPECIFIED, + valueOf: TrafficSplit_ShardBy.valueOf, + enumValues: TrafficSplit_ShardBy.values) + ..m<$core.String, $core.double>(2, _omitFieldNames ? '' : 'allocations', + entryClassName: 'TrafficSplit.AllocationsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OD, + packageName: const $pb.PackageName('google.appengine.v1beta')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -199,8 +203,10 @@ class TrafficSplit extends $pb.GeneratedMessage { 'Will be removed in next major version') TrafficSplit copyWith(void Function(TrafficSplit) updates) => super.copyWith((message) => updates(message as TrafficSplit)) - as TrafficSplit; // ignore: deprecated_member_use + as TrafficSplit; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TrafficSplit create() => TrafficSplit._(); TrafficSplit createEmptyInstance() => create(); @@ -211,6 +217,9 @@ class TrafficSplit extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static TrafficSplit? _defaultInstance; + /// Mechanism used to determine which version a request is sent to. + /// The traffic selection algorithm will + /// be stable for either type until allocations are changed. @$pb.TagNumber(1) TrafficSplit_ShardBy get shardBy => $_getN(0); @$pb.TagNumber(1) @@ -223,6 +232,18 @@ class TrafficSplit extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearShardBy() => clearField(1); + /// Mapping from version IDs within the service to fractional + /// (0.000, 1] allocations of traffic for that version. Each version can + /// be specified only once, but some versions in the service may not + /// have any traffic allocation. Services that have traffic allocated + /// cannot be deleted until either the service is deleted or + /// their traffic allocation is removed. Allocations must sum to 1. + /// Up to two decimal place precision is supported for IP-based splits and + /// up to three decimal places is supported for cookie-based splits. @$pb.TagNumber(2) $core.Map<$core.String, $core.double> get allocations => $_getMap(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pbenum.dart index 7e1f1515..a9c78ca5 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pbenum.dart @@ -1,26 +1,28 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Available sharding mechanisms. class TrafficSplit_ShardBy extends $pb.ProtobufEnum { - static const TrafficSplit_ShardBy UNSPECIFIED = TrafficSplit_ShardBy._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED'); - static const TrafficSplit_ShardBy COOKIE = TrafficSplit_ShardBy._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'COOKIE'); - static const TrafficSplit_ShardBy IP = TrafficSplit_ShardBy._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'IP'); - static const TrafficSplit_ShardBy RANDOM = TrafficSplit_ShardBy._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'RANDOM'); + static const TrafficSplit_ShardBy UNSPECIFIED = + TrafficSplit_ShardBy._(0, _omitEnumNames ? '' : 'UNSPECIFIED'); + static const TrafficSplit_ShardBy COOKIE = + TrafficSplit_ShardBy._(1, _omitEnumNames ? '' : 'COOKIE'); + static const TrafficSplit_ShardBy IP = + TrafficSplit_ShardBy._(2, _omitEnumNames ? '' : 'IP'); + static const TrafficSplit_ShardBy RANDOM = + TrafficSplit_ShardBy._(3, _omitEnumNames ? '' : 'RANDOM'); static const $core.List values = [ UNSPECIFIED, @@ -35,3 +37,5 @@ class TrafficSplit_ShardBy extends $pb.ProtobufEnum { const TrafficSplit_ShardBy._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pbjson.dart index 3608225e..8f1a1276 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/service.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/service.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 serviceDescriptor instead') @@ -36,7 +40,11 @@ const Service$json = { /// Descriptor for `Service`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceDescriptor = $convert.base64Decode( - 'CgdTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkEjsKBXNwbGl0GAMgASgLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuVHJhZmZpY1NwbGl0UgVzcGxpdBJTChBuZXR3b3JrX3NldHRpbmdzGAYgASgLMiguZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuTmV0d29ya1NldHRpbmdzUg9uZXR3b3JrU2V0dGluZ3M='); + 'CgdTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkEjsKBXNwbGl0GA' + 'MgASgLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuVHJhZmZpY1NwbGl0UgVzcGxpdBJTChBu' + 'ZXR3b3JrX3NldHRpbmdzGAYgASgLMiguZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuTmV0d29ya1' + 'NldHRpbmdzUg9uZXR3b3JrU2V0dGluZ3M='); + @$core.Deprecated('Use trafficSplitDescriptor instead') const TrafficSplit$json = { '1': 'TrafficSplit', @@ -85,4 +93,9 @@ const TrafficSplit_ShardBy$json = { /// Descriptor for `TrafficSplit`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List trafficSplitDescriptor = $convert.base64Decode( - 'CgxUcmFmZmljU3BsaXQSSAoIc2hhcmRfYnkYASABKA4yLS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5UcmFmZmljU3BsaXQuU2hhcmRCeVIHc2hhcmRCeRJYCgthbGxvY2F0aW9ucxgCIAMoCzI2Lmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlRyYWZmaWNTcGxpdC5BbGxvY2F0aW9uc0VudHJ5UgthbGxvY2F0aW9ucxo+ChBBbGxvY2F0aW9uc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgBUgV2YWx1ZToCOAEiOgoHU2hhcmRCeRIPCgtVTlNQRUNJRklFRBAAEgoKBkNPT0tJRRABEgYKAklQEAISCgoGUkFORE9NEAM='); + 'CgxUcmFmZmljU3BsaXQSSAoIc2hhcmRfYnkYASABKA4yLS5nb29nbGUuYXBwZW5naW5lLnYxYm' + 'V0YS5UcmFmZmljU3BsaXQuU2hhcmRCeVIHc2hhcmRCeRJYCgthbGxvY2F0aW9ucxgCIAMoCzI2' + 'Lmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlRyYWZmaWNTcGxpdC5BbGxvY2F0aW9uc0VudHJ5Ug' + 'thbGxvY2F0aW9ucxo+ChBBbGxvY2F0aW9uc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZh' + 'bHVlGAIgASgBUgV2YWx1ZToCOAEiOgoHU2hhcmRCeRIPCgtVTlNQRUNJRklFRBAAEgoKBkNPT0' + 'tJRRABEgYKAklQEAISCgoGUkFORE9NEAM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pb.dart index 33cc5273..825d2d4c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pb.dart @@ -1,97 +1,32 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/version.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../protobuf/timestamp.pb.dart' as $0; -import 'app_yaml.pb.dart' as $1; -import '../../protobuf/duration.pb.dart' as $2; -import 'deploy.pb.dart' as $3; - +import '../../protobuf/duration.pb.dart' as $51; +import '../../protobuf/timestamp.pb.dart' as $50; +import 'app_yaml.pb.dart' as $52; +import 'deploy.pb.dart' as $53; import 'version.pbenum.dart'; export 'version.pbenum.dart'; enum Version_Scaling { automaticScaling, basicScaling, manualScaling, notSet } +/// A Version resource is a specific set of source code and configuration files +/// that are deployed into a service. class Version extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Version_Scaling> _Version_ScalingByTag = { - 3: Version_Scaling.automaticScaling, - 4: Version_Scaling.basicScaling, - 5: Version_Scaling.manualScaling, - 0: Version_Scaling.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Version', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..oo(0, [3, 4, 5]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'automaticScaling', - subBuilder: AutomaticScaling.create) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'basicScaling', - subBuilder: BasicScaling.create) - ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'manualScaling', - subBuilder: ManualScaling.create) - ..pc( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'inboundServices', $pb.PbFieldType.PE, - valueOf: InboundServiceType.valueOf, - enumValues: InboundServiceType.values) - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'instanceClass') - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'network', subBuilder: Network.create) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resources', subBuilder: Resources.create) - ..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'runtime') - ..aOB(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'threadsafe') - ..aOB(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vm') - ..m<$core.String, $core.String>(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'betaSettings', entryClassName: 'Version.BetaSettingsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.appengine.v1beta')) - ..aOS(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'env') - ..e(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'servingStatus', $pb.PbFieldType.OE, defaultOrMaker: ServingStatus.SERVING_STATUS_UNSPECIFIED, valueOf: ServingStatus.valueOf, enumValues: ServingStatus.values) - ..aOS(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createdBy') - ..aOM<$0.Timestamp>(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createTime', subBuilder: $0.Timestamp.create) - ..aInt64(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'diskUsageBytes') - ..aOS(21, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'runtimeApiVersion') - ..aOS(22, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'runtimeMainExecutablePath') - ..pc<$1.UrlMap>(100, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'handlers', $pb.PbFieldType.PM, subBuilder: $1.UrlMap.create) - ..pc<$1.ErrorHandler>(101, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'errorHandlers', $pb.PbFieldType.PM, subBuilder: $1.ErrorHandler.create) - ..pc<$1.Library>(102, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'libraries', $pb.PbFieldType.PM, subBuilder: $1.Library.create) - ..aOM<$1.ApiConfigHandler>(103, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apiConfig', subBuilder: $1.ApiConfigHandler.create) - ..m<$core.String, $core.String>(104, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'envVariables', entryClassName: 'Version.EnvVariablesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.appengine.v1beta')) - ..aOM<$2.Duration>(105, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultExpiration', subBuilder: $2.Duration.create) - ..aOM<$1.HealthCheck>(106, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'healthCheck', subBuilder: $1.HealthCheck.create) - ..aOS(107, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nobuildFilesRegex') - ..aOM<$3.Deployment>(108, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'deployment', subBuilder: $3.Deployment.create) - ..aOS(109, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'versionUrl') - ..aOM(110, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endpointsApiService', subBuilder: EndpointsApiService.create) - ..aOM<$1.ReadinessCheck>(112, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'readinessCheck', subBuilder: $1.ReadinessCheck.create) - ..aOM<$1.LivenessCheck>(113, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'livenessCheck', subBuilder: $1.LivenessCheck.create) - ..aOS(117, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'runtimeChannel') - ..pPS(118, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'zones') - ..aOM(121, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'vpcAccessConnector', subBuilder: VpcAccessConnector.create) - ..aOM(122, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entrypoint', subBuilder: Entrypoint.create) - ..m<$core.String, $core.String>(125, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'buildEnvVariables', entryClassName: 'Version.BuildEnvVariablesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.appengine.v1beta')) - ..aOS(127, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serviceAccount') - ..aOB(128, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appEngineApis') - ..hasRequiredFields = false; - - Version._() : super(); factory Version({ $core.String? name, $core.String? id, @@ -109,23 +44,23 @@ class Version extends $pb.GeneratedMessage { $core.String? env, ServingStatus? servingStatus, $core.String? createdBy, - $0.Timestamp? createTime, + $50.Timestamp? createTime, $fixnum.Int64? diskUsageBytes, $core.String? runtimeApiVersion, $core.String? runtimeMainExecutablePath, - $core.Iterable<$1.UrlMap>? handlers, - $core.Iterable<$1.ErrorHandler>? errorHandlers, - $core.Iterable<$1.Library>? libraries, - $1.ApiConfigHandler? apiConfig, + $core.Iterable<$52.UrlMap>? handlers, + $core.Iterable<$52.ErrorHandler>? errorHandlers, + $core.Iterable<$52.Library>? libraries, + $52.ApiConfigHandler? apiConfig, $core.Map<$core.String, $core.String>? envVariables, - $2.Duration? defaultExpiration, - $1.HealthCheck? healthCheck, + $51.Duration? defaultExpiration, + $52.HealthCheck? healthCheck, $core.String? nobuildFilesRegex, - $3.Deployment? deployment, + $53.Deployment? deployment, $core.String? versionUrl, EndpointsApiService? endpointsApiService, - $1.ReadinessCheck? readinessCheck, - $1.LivenessCheck? livenessCheck, + $52.ReadinessCheck? readinessCheck, + $52.LivenessCheck? livenessCheck, $core.String? runtimeChannel, $core.Iterable<$core.String>? zones, VpcAccessConnector? vpcAccessConnector, @@ -134,135 +69,233 @@ class Version extends $pb.GeneratedMessage { $core.String? serviceAccount, $core.bool? appEngineApis, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (id != null) { - _result.id = id; + $result.id = id; } if (automaticScaling != null) { - _result.automaticScaling = automaticScaling; + $result.automaticScaling = automaticScaling; } if (basicScaling != null) { - _result.basicScaling = basicScaling; + $result.basicScaling = basicScaling; } if (manualScaling != null) { - _result.manualScaling = manualScaling; + $result.manualScaling = manualScaling; } if (inboundServices != null) { - _result.inboundServices.addAll(inboundServices); + $result.inboundServices.addAll(inboundServices); } if (instanceClass != null) { - _result.instanceClass = instanceClass; + $result.instanceClass = instanceClass; } if (network != null) { - _result.network = network; + $result.network = network; } if (resources != null) { - _result.resources = resources; + $result.resources = resources; } if (runtime != null) { - _result.runtime = runtime; + $result.runtime = runtime; } if (threadsafe != null) { - _result.threadsafe = threadsafe; + $result.threadsafe = threadsafe; } if (vm != null) { - _result.vm = vm; + $result.vm = vm; } if (betaSettings != null) { - _result.betaSettings.addAll(betaSettings); + $result.betaSettings.addAll(betaSettings); } if (env != null) { - _result.env = env; + $result.env = env; } if (servingStatus != null) { - _result.servingStatus = servingStatus; + $result.servingStatus = servingStatus; } if (createdBy != null) { - _result.createdBy = createdBy; + $result.createdBy = createdBy; } if (createTime != null) { - _result.createTime = createTime; + $result.createTime = createTime; } if (diskUsageBytes != null) { - _result.diskUsageBytes = diskUsageBytes; + $result.diskUsageBytes = diskUsageBytes; } if (runtimeApiVersion != null) { - _result.runtimeApiVersion = runtimeApiVersion; + $result.runtimeApiVersion = runtimeApiVersion; } if (runtimeMainExecutablePath != null) { - _result.runtimeMainExecutablePath = runtimeMainExecutablePath; + $result.runtimeMainExecutablePath = runtimeMainExecutablePath; } if (handlers != null) { - _result.handlers.addAll(handlers); + $result.handlers.addAll(handlers); } if (errorHandlers != null) { - _result.errorHandlers.addAll(errorHandlers); + $result.errorHandlers.addAll(errorHandlers); } if (libraries != null) { - _result.libraries.addAll(libraries); + $result.libraries.addAll(libraries); } if (apiConfig != null) { - _result.apiConfig = apiConfig; + $result.apiConfig = apiConfig; } if (envVariables != null) { - _result.envVariables.addAll(envVariables); + $result.envVariables.addAll(envVariables); } if (defaultExpiration != null) { - _result.defaultExpiration = defaultExpiration; + $result.defaultExpiration = defaultExpiration; } if (healthCheck != null) { - _result.healthCheck = healthCheck; + $result.healthCheck = healthCheck; } if (nobuildFilesRegex != null) { - _result.nobuildFilesRegex = nobuildFilesRegex; + $result.nobuildFilesRegex = nobuildFilesRegex; } if (deployment != null) { - _result.deployment = deployment; + $result.deployment = deployment; } if (versionUrl != null) { - _result.versionUrl = versionUrl; + $result.versionUrl = versionUrl; } if (endpointsApiService != null) { - _result.endpointsApiService = endpointsApiService; + $result.endpointsApiService = endpointsApiService; } if (readinessCheck != null) { - _result.readinessCheck = readinessCheck; + $result.readinessCheck = readinessCheck; } if (livenessCheck != null) { - _result.livenessCheck = livenessCheck; + $result.livenessCheck = livenessCheck; } if (runtimeChannel != null) { - _result.runtimeChannel = runtimeChannel; + $result.runtimeChannel = runtimeChannel; } if (zones != null) { - _result.zones.addAll(zones); + $result.zones.addAll(zones); } if (vpcAccessConnector != null) { - _result.vpcAccessConnector = vpcAccessConnector; + $result.vpcAccessConnector = vpcAccessConnector; } if (entrypoint != null) { - _result.entrypoint = entrypoint; + $result.entrypoint = entrypoint; } if (buildEnvVariables != null) { - _result.buildEnvVariables.addAll(buildEnvVariables); + $result.buildEnvVariables.addAll(buildEnvVariables); } if (serviceAccount != null) { - _result.serviceAccount = serviceAccount; + $result.serviceAccount = serviceAccount; } if (appEngineApis != null) { - _result.appEngineApis = appEngineApis; + $result.appEngineApis = appEngineApis; } - return _result; + return $result; } + Version._() : super(); factory Version.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Version.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Version_Scaling> _Version_ScalingByTag = { + 3: Version_Scaling.automaticScaling, + 4: Version_Scaling.basicScaling, + 5: Version_Scaling.manualScaling, + 0: Version_Scaling.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Version', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..oo(0, [3, 4, 5]) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'id') + ..aOM(3, _omitFieldNames ? '' : 'automaticScaling', + subBuilder: AutomaticScaling.create) + ..aOM(4, _omitFieldNames ? '' : 'basicScaling', + subBuilder: BasicScaling.create) + ..aOM(5, _omitFieldNames ? '' : 'manualScaling', + subBuilder: ManualScaling.create) + ..pc( + 6, _omitFieldNames ? '' : 'inboundServices', $pb.PbFieldType.KE, + valueOf: InboundServiceType.valueOf, + enumValues: InboundServiceType.values, + defaultEnumValue: InboundServiceType.INBOUND_SERVICE_UNSPECIFIED) + ..aOS(7, _omitFieldNames ? '' : 'instanceClass') + ..aOM(8, _omitFieldNames ? '' : 'network', + subBuilder: Network.create) + ..aOM(9, _omitFieldNames ? '' : 'resources', + subBuilder: Resources.create) + ..aOS(10, _omitFieldNames ? '' : 'runtime') + ..aOB(11, _omitFieldNames ? '' : 'threadsafe') + ..aOB(12, _omitFieldNames ? '' : 'vm') + ..m<$core.String, $core.String>(13, _omitFieldNames ? '' : 'betaSettings', + entryClassName: 'Version.BetaSettingsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.appengine.v1beta')) + ..aOS(14, _omitFieldNames ? '' : 'env') + ..e( + 15, _omitFieldNames ? '' : 'servingStatus', $pb.PbFieldType.OE, + defaultOrMaker: ServingStatus.SERVING_STATUS_UNSPECIFIED, + valueOf: ServingStatus.valueOf, + enumValues: ServingStatus.values) + ..aOS(16, _omitFieldNames ? '' : 'createdBy') + ..aOM<$50.Timestamp>(17, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aInt64(18, _omitFieldNames ? '' : 'diskUsageBytes') + ..aOS(21, _omitFieldNames ? '' : 'runtimeApiVersion') + ..aOS(22, _omitFieldNames ? '' : 'runtimeMainExecutablePath') + ..pc<$52.UrlMap>(100, _omitFieldNames ? '' : 'handlers', $pb.PbFieldType.PM, + subBuilder: $52.UrlMap.create) + ..pc<$52.ErrorHandler>( + 101, _omitFieldNames ? '' : 'errorHandlers', $pb.PbFieldType.PM, + subBuilder: $52.ErrorHandler.create) + ..pc<$52.Library>( + 102, _omitFieldNames ? '' : 'libraries', $pb.PbFieldType.PM, + subBuilder: $52.Library.create) + ..aOM<$52.ApiConfigHandler>(103, _omitFieldNames ? '' : 'apiConfig', + subBuilder: $52.ApiConfigHandler.create) + ..m<$core.String, $core.String>(104, _omitFieldNames ? '' : 'envVariables', + entryClassName: 'Version.EnvVariablesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.appengine.v1beta')) + ..aOM<$51.Duration>(105, _omitFieldNames ? '' : 'defaultExpiration', + subBuilder: $51.Duration.create) + ..aOM<$52.HealthCheck>(106, _omitFieldNames ? '' : 'healthCheck', + subBuilder: $52.HealthCheck.create) + ..aOS(107, _omitFieldNames ? '' : 'nobuildFilesRegex') + ..aOM<$53.Deployment>(108, _omitFieldNames ? '' : 'deployment', + subBuilder: $53.Deployment.create) + ..aOS(109, _omitFieldNames ? '' : 'versionUrl') + ..aOM( + 110, _omitFieldNames ? '' : 'endpointsApiService', + subBuilder: EndpointsApiService.create) + ..aOM<$52.ReadinessCheck>(112, _omitFieldNames ? '' : 'readinessCheck', + subBuilder: $52.ReadinessCheck.create) + ..aOM<$52.LivenessCheck>(113, _omitFieldNames ? '' : 'livenessCheck', + subBuilder: $52.LivenessCheck.create) + ..aOS(117, _omitFieldNames ? '' : 'runtimeChannel') + ..pPS(118, _omitFieldNames ? '' : 'zones') + ..aOM(121, _omitFieldNames ? '' : 'vpcAccessConnector', + subBuilder: VpcAccessConnector.create) + ..aOM(122, _omitFieldNames ? '' : 'entrypoint', + subBuilder: Entrypoint.create) + ..m<$core.String, $core.String>( + 125, _omitFieldNames ? '' : 'buildEnvVariables', + entryClassName: 'Version.BuildEnvVariablesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.appengine.v1beta')) + ..aOS(127, _omitFieldNames ? '' : 'serviceAccount') + ..aOB(128, _omitFieldNames ? '' : 'appEngineApis') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -271,9 +304,10 @@ class Version extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Version copyWith(void Function(Version) updates) => - super.copyWith((message) => updates(message as Version)) - as Version; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Version)) as Version; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Version create() => Version._(); Version createEmptyInstance() => create(); @@ -286,6 +320,10 @@ class Version extends $pb.GeneratedMessage { Version_Scaling whichScaling() => _Version_ScalingByTag[$_whichOneof(0)]!; void clearScaling() => clearField($_whichOneof(0)); + /// Full path to the Version resource in the API. Example: + /// `apps/myapp/services/default/versions/v1`. + /// + /// @OutputOnly @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -298,6 +336,9 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Relative name of the version within the service. Example: `v1`. + /// Version names can contain only lowercase letters, numbers, or hyphens. + /// Reserved names: "default", "latest", and any name with the prefix "ah-". @$pb.TagNumber(2) $core.String get id => $_getSZ(1); @$pb.TagNumber(2) @@ -310,6 +351,9 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// Automatic scaling is based on request rate, response latencies, and other + /// application metrics. Instances are dynamically created and destroyed as + /// needed in order to handle traffic. @$pb.TagNumber(3) AutomaticScaling get automaticScaling => $_getN(2); @$pb.TagNumber(3) @@ -324,6 +368,10 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(3) AutomaticScaling ensureAutomaticScaling() => $_ensure(2); + /// A service with basic scaling will create an instance when the application + /// receives a request. The instance will be turned down when the app becomes + /// idle. Basic scaling is ideal for work that is intermittent or driven by + /// user activity. @$pb.TagNumber(4) BasicScaling get basicScaling => $_getN(3); @$pb.TagNumber(4) @@ -338,6 +386,9 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(4) BasicScaling ensureBasicScaling() => $_ensure(3); + /// A service with manual scaling runs continuously, allowing you to perform + /// complex initialization and rely on the state of its memory over time. + /// Manually scaled versions are sometimes referred to as "backends". @$pb.TagNumber(5) ManualScaling get manualScaling => $_getN(4); @$pb.TagNumber(5) @@ -352,9 +403,18 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(5) ManualScaling ensureManualScaling() => $_ensure(4); + /// Before an application can receive email or XMPP messages, the application + /// must be configured to enable the service. @$pb.TagNumber(6) $core.List get inboundServices => $_getList(5); + /// Instance class that is used to run this version. Valid values are: + /// + /// * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` + /// * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` + /// + /// Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or + /// BasicScaling. @$pb.TagNumber(7) $core.String get instanceClass => $_getSZ(6); @$pb.TagNumber(7) @@ -367,6 +427,8 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearInstanceClass() => clearField(7); + /// Extra network settings. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(8) Network get network => $_getN(7); @$pb.TagNumber(8) @@ -381,6 +443,8 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(8) Network ensureNetwork() => $_ensure(7); + /// Machine resources for this version. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(9) Resources get resources => $_getN(8); @$pb.TagNumber(9) @@ -395,6 +459,7 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(9) Resources ensureResources() => $_ensure(8); + /// Desired runtime. Example: `python27`. @$pb.TagNumber(10) $core.String get runtime => $_getSZ(9); @$pb.TagNumber(10) @@ -407,6 +472,7 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearRuntime() => clearField(10); + /// Whether multiple requests can be dispatched to this version at once. @$pb.TagNumber(11) $core.bool get threadsafe => $_getBF(10); @$pb.TagNumber(11) @@ -419,6 +485,7 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearThreadsafe() => clearField(11); + /// Whether to deploy this version in a container on a virtual machine. @$pb.TagNumber(12) $core.bool get vm => $_getBF(11); @$pb.TagNumber(12) @@ -431,9 +498,14 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearVm() => clearField(12); + /// Metadata settings that are supplied to this version to enable + /// beta runtime features. @$pb.TagNumber(13) $core.Map<$core.String, $core.String> get betaSettings => $_getMap(12); + /// App Engine execution environment for this version. + /// + /// Defaults to `standard`. @$pb.TagNumber(14) $core.String get env => $_getSZ(13); @$pb.TagNumber(14) @@ -446,6 +518,10 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearEnv() => clearField(14); + /// Current serving status of this version. Only the versions with a + /// `SERVING` status create instances and can be billed. + /// + /// `SERVING_STATUS_UNSPECIFIED` is an invalid value. Defaults to `SERVING`. @$pb.TagNumber(15) ServingStatus get servingStatus => $_getN(14); @$pb.TagNumber(15) @@ -458,6 +534,9 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearServingStatus() => clearField(15); + /// Email address of the user who created this version. + /// + /// @OutputOnly @$pb.TagNumber(16) $core.String get createdBy => $_getSZ(15); @$pb.TagNumber(16) @@ -470,10 +549,13 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(16) void clearCreatedBy() => clearField(16); + /// Time that this version was created. + /// + /// @OutputOnly @$pb.TagNumber(17) - $0.Timestamp get createTime => $_getN(16); + $50.Timestamp get createTime => $_getN(16); @$pb.TagNumber(17) - set createTime($0.Timestamp v) { + set createTime($50.Timestamp v) { setField(17, v); } @@ -482,8 +564,12 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(17) void clearCreateTime() => clearField(17); @$pb.TagNumber(17) - $0.Timestamp ensureCreateTime() => $_ensure(16); + $50.Timestamp ensureCreateTime() => $_ensure(16); + /// Total size in bytes of all the files that are included in this version + /// and currently hosted on the App Engine disk. + /// + /// @OutputOnly @$pb.TagNumber(18) $fixnum.Int64 get diskUsageBytes => $_getI64(17); @$pb.TagNumber(18) @@ -496,6 +582,9 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(18) void clearDiskUsageBytes() => clearField(18); + /// The version of the API in the given runtime environment. Please see the + /// app.yaml reference for valid values at + /// https://cloud.google.com/appengine/docs/standard//config/appref @$pb.TagNumber(21) $core.String get runtimeApiVersion => $_getSZ(18); @$pb.TagNumber(21) @@ -508,6 +597,7 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(21) void clearRuntimeApiVersion() => clearField(21); + /// The path or name of the app's main executable. @$pb.TagNumber(22) $core.String get runtimeMainExecutablePath => $_getSZ(19); @$pb.TagNumber(22) @@ -520,19 +610,35 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(22) void clearRuntimeMainExecutablePath() => clearField(22); + /// An ordered list of URL-matching patterns that should be applied to incoming + /// requests. The first matching URL handles the request and other request + /// handlers are not attempted. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(100) - $core.List<$1.UrlMap> get handlers => $_getList(20); + $core.List<$52.UrlMap> get handlers => $_getList(20); + /// Custom static error pages. Limited to 10KB per page. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(101) - $core.List<$1.ErrorHandler> get errorHandlers => $_getList(21); + $core.List<$52.ErrorHandler> get errorHandlers => $_getList(21); + /// Configuration for third-party Python runtime libraries that are required + /// by the application. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(102) - $core.List<$1.Library> get libraries => $_getList(22); + $core.List<$52.Library> get libraries => $_getList(22); + /// Serving configuration for + /// [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(103) - $1.ApiConfigHandler get apiConfig => $_getN(23); + $52.ApiConfigHandler get apiConfig => $_getN(23); @$pb.TagNumber(103) - set apiConfig($1.ApiConfigHandler v) { + set apiConfig($52.ApiConfigHandler v) { setField(103, v); } @@ -541,15 +647,24 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(103) void clearApiConfig() => clearField(103); @$pb.TagNumber(103) - $1.ApiConfigHandler ensureApiConfig() => $_ensure(23); + $52.ApiConfigHandler ensureApiConfig() => $_ensure(23); + /// Environment variables available to the application. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(104) $core.Map<$core.String, $core.String> get envVariables => $_getMap(24); + /// Duration that static files should be cached by web proxies and browsers. + /// Only applicable if the corresponding + /// [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StaticFilesHandler) + /// does not specify its own expiration time. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(105) - $2.Duration get defaultExpiration => $_getN(25); + $51.Duration get defaultExpiration => $_getN(25); @$pb.TagNumber(105) - set defaultExpiration($2.Duration v) { + set defaultExpiration($51.Duration v) { setField(105, v); } @@ -558,12 +673,17 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(105) void clearDefaultExpiration() => clearField(105); @$pb.TagNumber(105) - $2.Duration ensureDefaultExpiration() => $_ensure(25); + $51.Duration ensureDefaultExpiration() => $_ensure(25); + /// Configures health checking for instances. Unhealthy instances are + /// stopped and replaced with new instances. + /// Only applicable in the App Engine flexible environment. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(106) - $1.HealthCheck get healthCheck => $_getN(26); + $52.HealthCheck get healthCheck => $_getN(26); @$pb.TagNumber(106) - set healthCheck($1.HealthCheck v) { + set healthCheck($52.HealthCheck v) { setField(106, v); } @@ -572,8 +692,12 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(106) void clearHealthCheck() => clearField(106); @$pb.TagNumber(106) - $1.HealthCheck ensureHealthCheck() => $_ensure(26); + $52.HealthCheck ensureHealthCheck() => $_ensure(26); + /// Files that match this pattern will not be built into this version. + /// Only applicable for Go runtimes. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(107) $core.String get nobuildFilesRegex => $_getSZ(27); @$pb.TagNumber(107) @@ -586,10 +710,13 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(107) void clearNobuildFilesRegex() => clearField(107); + /// Code and application artifacts that make up this version. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(108) - $3.Deployment get deployment => $_getN(28); + $53.Deployment get deployment => $_getN(28); @$pb.TagNumber(108) - set deployment($3.Deployment v) { + set deployment($53.Deployment v) { setField(108, v); } @@ -598,8 +725,12 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(108) void clearDeployment() => clearField(108); @$pb.TagNumber(108) - $3.Deployment ensureDeployment() => $_ensure(28); + $53.Deployment ensureDeployment() => $_ensure(28); + /// Serving URL for this version. Example: + /// "https://myversion-dot-myservice-dot-myapp.appspot.com" + /// + /// @OutputOnly @$pb.TagNumber(109) $core.String get versionUrl => $_getSZ(29); @$pb.TagNumber(109) @@ -612,6 +743,10 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(109) void clearVersionUrl() => clearField(109); + /// Cloud Endpoints configuration. + /// + /// If endpoints_api_service is set, the Cloud Endpoints Extensible Service + /// Proxy will be provided to serve the API implemented by the app. @$pb.TagNumber(110) EndpointsApiService get endpointsApiService => $_getN(30); @$pb.TagNumber(110) @@ -626,10 +761,14 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(110) EndpointsApiService ensureEndpointsApiService() => $_ensure(30); + /// Configures readiness health checking for instances. + /// Unhealthy instances are not put into the backend traffic rotation. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(112) - $1.ReadinessCheck get readinessCheck => $_getN(31); + $52.ReadinessCheck get readinessCheck => $_getN(31); @$pb.TagNumber(112) - set readinessCheck($1.ReadinessCheck v) { + set readinessCheck($52.ReadinessCheck v) { setField(112, v); } @@ -638,12 +777,16 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(112) void clearReadinessCheck() => clearField(112); @$pb.TagNumber(112) - $1.ReadinessCheck ensureReadinessCheck() => $_ensure(31); + $52.ReadinessCheck ensureReadinessCheck() => $_ensure(31); + /// Configures liveness health checking for instances. + /// Unhealthy instances are stopped and replaced with new instances + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(113) - $1.LivenessCheck get livenessCheck => $_getN(32); + $52.LivenessCheck get livenessCheck => $_getN(32); @$pb.TagNumber(113) - set livenessCheck($1.LivenessCheck v) { + set livenessCheck($52.LivenessCheck v) { setField(113, v); } @@ -652,8 +795,10 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(113) void clearLivenessCheck() => clearField(113); @$pb.TagNumber(113) - $1.LivenessCheck ensureLivenessCheck() => $_ensure(32); + $52.LivenessCheck ensureLivenessCheck() => $_ensure(32); + /// The channel of the runtime to use. Only available for some + /// runtimes. Defaults to the `default` channel. @$pb.TagNumber(117) $core.String get runtimeChannel => $_getSZ(33); @$pb.TagNumber(117) @@ -666,9 +811,12 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(117) void clearRuntimeChannel() => clearField(117); + /// The Google Compute Engine zones that are supported by this version in the + /// App Engine flexible environment. Deprecated. @$pb.TagNumber(118) $core.List<$core.String> get zones => $_getList(34); + /// Enables VPC connectivity for standard apps. @$pb.TagNumber(121) VpcAccessConnector get vpcAccessConnector => $_getN(35); @$pb.TagNumber(121) @@ -683,6 +831,7 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(121) VpcAccessConnector ensureVpcAccessConnector() => $_ensure(35); + /// The entrypoint for the application. @$pb.TagNumber(122) Entrypoint get entrypoint => $_getN(36); @$pb.TagNumber(122) @@ -697,9 +846,15 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(122) Entrypoint ensureEntrypoint() => $_ensure(36); + /// Environment variables available to the build environment. + /// + /// Only returned in `GET` requests if `view=FULL` is set. @$pb.TagNumber(125) $core.Map<$core.String, $core.String> get buildEnvVariables => $_getMap(37); + /// The identity that the deployed version will run as. + /// Admin API will use the App Engine Appspot service account as default if + /// this field is neither provided in app.yaml file nor through CLI flag. @$pb.TagNumber(127) $core.String get serviceAccount => $_getSZ(38); @$pb.TagNumber(127) @@ -712,6 +867,8 @@ class Version extends $pb.GeneratedMessage { @$pb.TagNumber(127) void clearServiceAccount() => clearField(127); + /// app_engine_apis allows second generation runtimes to access the + /// App Engine APIs. @$pb.TagNumber(128) $core.bool get appEngineApis => $_getBF(39); @$pb.TagNumber(128) @@ -725,66 +882,59 @@ class Version extends $pb.GeneratedMessage { void clearAppEngineApis() => clearField(128); } +/// [Cloud Endpoints](https://cloud.google.com/endpoints) configuration. +/// The Endpoints API Service provides tooling for serving Open API and gRPC +/// endpoints via an NGINX proxy. Only valid for App Engine Flexible environment +/// deployments. +/// +/// The fields here refer to the name and configuration ID of a "service" +/// resource in the [Service Management API](https://cloud.google.com/service-management/overview). class EndpointsApiService extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EndpointsApiService', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'configId') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'rolloutStrategy', - $pb.PbFieldType.OE, - defaultOrMaker: EndpointsApiService_RolloutStrategy.UNSPECIFIED_ROLLOUT_STRATEGY, - valueOf: EndpointsApiService_RolloutStrategy.valueOf, - enumValues: EndpointsApiService_RolloutStrategy.values) - ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'disableTraceSampling') - ..hasRequiredFields = false; - - EndpointsApiService._() : super(); factory EndpointsApiService({ $core.String? name, $core.String? configId, EndpointsApiService_RolloutStrategy? rolloutStrategy, $core.bool? disableTraceSampling, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (configId != null) { - _result.configId = configId; + $result.configId = configId; } if (rolloutStrategy != null) { - _result.rolloutStrategy = rolloutStrategy; + $result.rolloutStrategy = rolloutStrategy; } if (disableTraceSampling != null) { - _result.disableTraceSampling = disableTraceSampling; + $result.disableTraceSampling = disableTraceSampling; } - return _result; + return $result; } + EndpointsApiService._() : super(); factory EndpointsApiService.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EndpointsApiService.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EndpointsApiService', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'configId') + ..e( + 3, _omitFieldNames ? '' : 'rolloutStrategy', $pb.PbFieldType.OE, + defaultOrMaker: + EndpointsApiService_RolloutStrategy.UNSPECIFIED_ROLLOUT_STRATEGY, + valueOf: EndpointsApiService_RolloutStrategy.valueOf, + enumValues: EndpointsApiService_RolloutStrategy.values) + ..aOB(4, _omitFieldNames ? '' : 'disableTraceSampling') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -794,8 +944,10 @@ class EndpointsApiService extends $pb.GeneratedMessage { 'Will be removed in next major version') EndpointsApiService copyWith(void Function(EndpointsApiService) updates) => super.copyWith((message) => updates(message as EndpointsApiService)) - as EndpointsApiService; // ignore: deprecated_member_use + as EndpointsApiService; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EndpointsApiService create() => EndpointsApiService._(); EndpointsApiService createEmptyInstance() => create(); @@ -806,6 +958,8 @@ class EndpointsApiService extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EndpointsApiService? _defaultInstance; + /// Endpoints service name which is the name of the "service" resource in the + /// Service Management API. For example "myapi.endpoints.myproject.cloud.goog" @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -818,6 +972,18 @@ class EndpointsApiService extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Endpoints service configuration ID as specified by the Service Management + /// API. For example "2016-09-19r1". + /// + /// By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. + /// This means that Endpoints starts up with a particular configuration ID. + /// When a new configuration is rolled out, Endpoints must be given the new + /// configuration ID. The `config_id` field is used to give the configuration + /// ID and is required in this case. + /// + /// Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. + /// When using this, Endpoints fetches the latest configuration and does not + /// need the configuration ID. In this case, `config_id` must be omitted. @$pb.TagNumber(2) $core.String get configId => $_getSZ(1); @$pb.TagNumber(2) @@ -830,6 +996,8 @@ class EndpointsApiService extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearConfigId() => clearField(2); + /// Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If + /// `MANAGED`, `config_id` must be omitted. @$pb.TagNumber(3) EndpointsApiService_RolloutStrategy get rolloutStrategy => $_getN(2); @$pb.TagNumber(3) @@ -842,6 +1010,8 @@ class EndpointsApiService extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearRolloutStrategy() => clearField(3); + /// Enable or disable trace sampling. By default, this is set to false for + /// enabled. @$pb.TagNumber(4) $core.bool get disableTraceSampling => $_getBF(3); @$pb.TagNumber(4) @@ -855,105 +1025,115 @@ class EndpointsApiService extends $pb.GeneratedMessage { void clearDisableTraceSampling() => clearField(4); } +/// Automatic scaling is based on request rate, response latencies, and other +/// application metrics. class AutomaticScaling extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AutomaticScaling', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOM<$2.Duration>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'coolDownPeriod', - subBuilder: $2.Duration.create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cpuUtilization', - subBuilder: CpuUtilization.create) - ..a<$core.int>( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maxConcurrentRequests', $pb.PbFieldType.O3) - ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maxIdleInstances', $pb.PbFieldType.O3) - ..a<$core.int>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maxTotalInstances', $pb.PbFieldType.O3) - ..aOM<$2.Duration>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maxPendingLatency', subBuilder: $2.Duration.create) - ..a<$core.int>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'minIdleInstances', $pb.PbFieldType.O3) - ..a<$core.int>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'minTotalInstances', $pb.PbFieldType.O3) - ..aOM<$2.Duration>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'minPendingLatency', subBuilder: $2.Duration.create) - ..aOM(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'requestUtilization', subBuilder: RequestUtilization.create) - ..aOM(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'diskUtilization', subBuilder: DiskUtilization.create) - ..aOM(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'networkUtilization', subBuilder: NetworkUtilization.create) - ..aOM(20, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'standardSchedulerSettings', subBuilder: StandardSchedulerSettings.create) - ..pc(21, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'customMetrics', $pb.PbFieldType.PM, subBuilder: CustomMetric.create) - ..hasRequiredFields = false; - - AutomaticScaling._() : super(); factory AutomaticScaling({ - $2.Duration? coolDownPeriod, + $51.Duration? coolDownPeriod, CpuUtilization? cpuUtilization, $core.int? maxConcurrentRequests, $core.int? maxIdleInstances, $core.int? maxTotalInstances, - $2.Duration? maxPendingLatency, + $51.Duration? maxPendingLatency, $core.int? minIdleInstances, $core.int? minTotalInstances, - $2.Duration? minPendingLatency, + $51.Duration? minPendingLatency, RequestUtilization? requestUtilization, DiskUtilization? diskUtilization, NetworkUtilization? networkUtilization, StandardSchedulerSettings? standardSchedulerSettings, $core.Iterable? customMetrics, }) { - final _result = create(); + final $result = create(); if (coolDownPeriod != null) { - _result.coolDownPeriod = coolDownPeriod; + $result.coolDownPeriod = coolDownPeriod; } if (cpuUtilization != null) { - _result.cpuUtilization = cpuUtilization; + $result.cpuUtilization = cpuUtilization; } if (maxConcurrentRequests != null) { - _result.maxConcurrentRequests = maxConcurrentRequests; + $result.maxConcurrentRequests = maxConcurrentRequests; } if (maxIdleInstances != null) { - _result.maxIdleInstances = maxIdleInstances; + $result.maxIdleInstances = maxIdleInstances; } if (maxTotalInstances != null) { - _result.maxTotalInstances = maxTotalInstances; + $result.maxTotalInstances = maxTotalInstances; } if (maxPendingLatency != null) { - _result.maxPendingLatency = maxPendingLatency; + $result.maxPendingLatency = maxPendingLatency; } if (minIdleInstances != null) { - _result.minIdleInstances = minIdleInstances; + $result.minIdleInstances = minIdleInstances; } if (minTotalInstances != null) { - _result.minTotalInstances = minTotalInstances; + $result.minTotalInstances = minTotalInstances; } if (minPendingLatency != null) { - _result.minPendingLatency = minPendingLatency; + $result.minPendingLatency = minPendingLatency; } if (requestUtilization != null) { - _result.requestUtilization = requestUtilization; + $result.requestUtilization = requestUtilization; } if (diskUtilization != null) { - _result.diskUtilization = diskUtilization; + $result.diskUtilization = diskUtilization; } if (networkUtilization != null) { - _result.networkUtilization = networkUtilization; + $result.networkUtilization = networkUtilization; } if (standardSchedulerSettings != null) { - _result.standardSchedulerSettings = standardSchedulerSettings; + $result.standardSchedulerSettings = standardSchedulerSettings; } if (customMetrics != null) { - _result.customMetrics.addAll(customMetrics); + $result.customMetrics.addAll(customMetrics); } - return _result; + return $result; } + AutomaticScaling._() : super(); factory AutomaticScaling.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AutomaticScaling.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AutomaticScaling', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOM<$51.Duration>(1, _omitFieldNames ? '' : 'coolDownPeriod', + subBuilder: $51.Duration.create) + ..aOM(2, _omitFieldNames ? '' : 'cpuUtilization', + subBuilder: CpuUtilization.create) + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'maxConcurrentRequests', $pb.PbFieldType.O3) + ..a<$core.int>( + 4, _omitFieldNames ? '' : 'maxIdleInstances', $pb.PbFieldType.O3) + ..a<$core.int>( + 5, _omitFieldNames ? '' : 'maxTotalInstances', $pb.PbFieldType.O3) + ..aOM<$51.Duration>(6, _omitFieldNames ? '' : 'maxPendingLatency', + subBuilder: $51.Duration.create) + ..a<$core.int>( + 7, _omitFieldNames ? '' : 'minIdleInstances', $pb.PbFieldType.O3) + ..a<$core.int>( + 8, _omitFieldNames ? '' : 'minTotalInstances', $pb.PbFieldType.O3) + ..aOM<$51.Duration>(9, _omitFieldNames ? '' : 'minPendingLatency', + subBuilder: $51.Duration.create) + ..aOM(10, _omitFieldNames ? '' : 'requestUtilization', + subBuilder: RequestUtilization.create) + ..aOM(11, _omitFieldNames ? '' : 'diskUtilization', + subBuilder: DiskUtilization.create) + ..aOM(12, _omitFieldNames ? '' : 'networkUtilization', + subBuilder: NetworkUtilization.create) + ..aOM( + 20, _omitFieldNames ? '' : 'standardSchedulerSettings', + subBuilder: StandardSchedulerSettings.create) + ..pc( + 21, _omitFieldNames ? '' : 'customMetrics', $pb.PbFieldType.PM, + subBuilder: CustomMetric.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') @@ -963,8 +1143,10 @@ class AutomaticScaling extends $pb.GeneratedMessage { 'Will be removed in next major version') AutomaticScaling copyWith(void Function(AutomaticScaling) updates) => super.copyWith((message) => updates(message as AutomaticScaling)) - as AutomaticScaling; // ignore: deprecated_member_use + as AutomaticScaling; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AutomaticScaling create() => AutomaticScaling._(); AutomaticScaling createEmptyInstance() => create(); @@ -975,10 +1157,16 @@ class AutomaticScaling extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AutomaticScaling? _defaultInstance; + /// The time period that the + /// [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) + /// should wait before it starts collecting information from a new instance. + /// This prevents the autoscaler from collecting information when the instance + /// is initializing, during which the collected usage would not be reliable. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(1) - $2.Duration get coolDownPeriod => $_getN(0); + $51.Duration get coolDownPeriod => $_getN(0); @$pb.TagNumber(1) - set coolDownPeriod($2.Duration v) { + set coolDownPeriod($51.Duration v) { setField(1, v); } @@ -987,8 +1175,9 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCoolDownPeriod() => clearField(1); @$pb.TagNumber(1) - $2.Duration ensureCoolDownPeriod() => $_ensure(0); + $51.Duration ensureCoolDownPeriod() => $_ensure(0); + /// Target scaling by CPU usage. @$pb.TagNumber(2) CpuUtilization get cpuUtilization => $_getN(1); @$pb.TagNumber(2) @@ -1003,6 +1192,10 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(2) CpuUtilization ensureCpuUtilization() => $_ensure(1); + /// Number of concurrent requests an automatic scaling instance can accept + /// before the scheduler spawns a new instance. + /// + /// Defaults to a runtime-specific value. @$pb.TagNumber(3) $core.int get maxConcurrentRequests => $_getIZ(2); @$pb.TagNumber(3) @@ -1015,6 +1208,8 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearMaxConcurrentRequests() => clearField(3); + /// Maximum number of idle instances that should be maintained for this + /// version. @$pb.TagNumber(4) $core.int get maxIdleInstances => $_getIZ(3); @$pb.TagNumber(4) @@ -1027,6 +1222,8 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearMaxIdleInstances() => clearField(4); + /// Maximum number of instances that should be started to handle requests for + /// this version. @$pb.TagNumber(5) $core.int get maxTotalInstances => $_getIZ(4); @$pb.TagNumber(5) @@ -1039,10 +1236,12 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearMaxTotalInstances() => clearField(5); + /// Maximum amount of time that a request should wait in the pending queue + /// before starting a new instance to handle it. @$pb.TagNumber(6) - $2.Duration get maxPendingLatency => $_getN(5); + $51.Duration get maxPendingLatency => $_getN(5); @$pb.TagNumber(6) - set maxPendingLatency($2.Duration v) { + set maxPendingLatency($51.Duration v) { setField(6, v); } @@ -1051,8 +1250,10 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearMaxPendingLatency() => clearField(6); @$pb.TagNumber(6) - $2.Duration ensureMaxPendingLatency() => $_ensure(5); + $51.Duration ensureMaxPendingLatency() => $_ensure(5); + /// Minimum number of idle instances that should be maintained for + /// this version. Only applicable for the default version of a service. @$pb.TagNumber(7) $core.int get minIdleInstances => $_getIZ(6); @$pb.TagNumber(7) @@ -1065,6 +1266,8 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearMinIdleInstances() => clearField(7); + /// Minimum number of running instances that should be maintained for this + /// version. @$pb.TagNumber(8) $core.int get minTotalInstances => $_getIZ(7); @$pb.TagNumber(8) @@ -1077,10 +1280,12 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearMinTotalInstances() => clearField(8); + /// Minimum amount of time a request should wait in the pending queue before + /// starting a new instance to handle it. @$pb.TagNumber(9) - $2.Duration get minPendingLatency => $_getN(8); + $51.Duration get minPendingLatency => $_getN(8); @$pb.TagNumber(9) - set minPendingLatency($2.Duration v) { + set minPendingLatency($51.Duration v) { setField(9, v); } @@ -1089,8 +1294,9 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearMinPendingLatency() => clearField(9); @$pb.TagNumber(9) - $2.Duration ensureMinPendingLatency() => $_ensure(8); + $51.Duration ensureMinPendingLatency() => $_ensure(8); + /// Target scaling by request utilization. @$pb.TagNumber(10) RequestUtilization get requestUtilization => $_getN(9); @$pb.TagNumber(10) @@ -1105,6 +1311,7 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(10) RequestUtilization ensureRequestUtilization() => $_ensure(9); + /// Target scaling by disk usage. @$pb.TagNumber(11) DiskUtilization get diskUtilization => $_getN(10); @$pb.TagNumber(11) @@ -1119,6 +1326,7 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(11) DiskUtilization ensureDiskUtilization() => $_ensure(10); + /// Target scaling by network usage. @$pb.TagNumber(12) NetworkUtilization get networkUtilization => $_getN(11); @$pb.TagNumber(12) @@ -1133,6 +1341,7 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(12) NetworkUtilization ensureNetworkUtilization() => $_ensure(11); + /// Scheduler settings for standard environment. @$pb.TagNumber(20) StandardSchedulerSettings get standardSchedulerSettings => $_getN(12); @$pb.TagNumber(20) @@ -1147,51 +1356,48 @@ class AutomaticScaling extends $pb.GeneratedMessage { @$pb.TagNumber(20) StandardSchedulerSettings ensureStandardSchedulerSettings() => $_ensure(12); + /// Target scaling by user-provided metrics. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(21) $core.List get customMetrics => $_getList(13); } +/// A service with basic scaling will create an instance when the application +/// receives a request. The instance will be turned down when the app becomes +/// idle. Basic scaling is ideal for work that is intermittent or driven by +/// user activity. class BasicScaling extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BasicScaling', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOM<$2.Duration>(1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'idleTimeout', - subBuilder: $2.Duration.create) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'maxInstances', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - BasicScaling._() : super(); factory BasicScaling({ - $2.Duration? idleTimeout, + $51.Duration? idleTimeout, $core.int? maxInstances, }) { - final _result = create(); + final $result = create(); if (idleTimeout != null) { - _result.idleTimeout = idleTimeout; + $result.idleTimeout = idleTimeout; } if (maxInstances != null) { - _result.maxInstances = maxInstances; + $result.maxInstances = maxInstances; } - return _result; + return $result; } + BasicScaling._() : super(); factory BasicScaling.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BasicScaling.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BasicScaling', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOM<$51.Duration>(1, _omitFieldNames ? '' : 'idleTimeout', + subBuilder: $51.Duration.create) + ..a<$core.int>(2, _omitFieldNames ? '' : 'maxInstances', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1201,8 +1407,10 @@ class BasicScaling extends $pb.GeneratedMessage { 'Will be removed in next major version') BasicScaling copyWith(void Function(BasicScaling) updates) => super.copyWith((message) => updates(message as BasicScaling)) - as BasicScaling; // ignore: deprecated_member_use + as BasicScaling; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BasicScaling create() => BasicScaling._(); BasicScaling createEmptyInstance() => create(); @@ -1213,10 +1421,12 @@ class BasicScaling extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BasicScaling? _defaultInstance; + /// Duration of time after the last request that an instance must wait before + /// the instance is shut down. @$pb.TagNumber(1) - $2.Duration get idleTimeout => $_getN(0); + $51.Duration get idleTimeout => $_getN(0); @$pb.TagNumber(1) - set idleTimeout($2.Duration v) { + set idleTimeout($51.Duration v) { setField(1, v); } @@ -1225,8 +1435,9 @@ class BasicScaling extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearIdleTimeout() => clearField(1); @$pb.TagNumber(1) - $2.Duration ensureIdleTimeout() => $_ensure(0); + $51.Duration ensureIdleTimeout() => $_ensure(0); + /// Maximum number of instances to create for this version. @$pb.TagNumber(2) $core.int get maxInstances => $_getIZ(1); @$pb.TagNumber(2) @@ -1240,40 +1451,34 @@ class BasicScaling extends $pb.GeneratedMessage { void clearMaxInstances() => clearField(2); } +/// A service with manual scaling runs continuously, allowing you to perform +/// complex initialization and rely on the state of its memory over time. class ManualScaling extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ManualScaling', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'instances', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ManualScaling._() : super(); factory ManualScaling({ $core.int? instances, }) { - final _result = create(); + final $result = create(); if (instances != null) { - _result.instances = instances; + $result.instances = instances; } - return _result; + return $result; } + ManualScaling._() : super(); factory ManualScaling.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ManualScaling.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ManualScaling', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'instances', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1283,8 +1488,10 @@ class ManualScaling extends $pb.GeneratedMessage { 'Will be removed in next major version') ManualScaling copyWith(void Function(ManualScaling) updates) => super.copyWith((message) => updates(message as ManualScaling)) - as ManualScaling; // ignore: deprecated_member_use + as ManualScaling; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ManualScaling create() => ManualScaling._(); ManualScaling createEmptyInstance() => create(); @@ -1295,6 +1502,10 @@ class ManualScaling extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ManualScaling? _defaultInstance; + /// Number of instances to assign to the service at the start. This number + /// can later be altered by using the + /// [Modules API](https://cloud.google.com/appengine/docs/python/modules/functions) + /// `set_num_instances()` function. @$pb.TagNumber(1) $core.int get instances => $_getIZ(0); @$pb.TagNumber(1) @@ -1308,48 +1519,40 @@ class ManualScaling extends $pb.GeneratedMessage { void clearInstances() => clearField(1); } +/// Target scaling by CPU usage. class CpuUtilization extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CpuUtilization', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOM<$2.Duration>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'aggregationWindowLength', - subBuilder: $2.Duration.create) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'targetUtilization', - $pb.PbFieldType.OD) - ..hasRequiredFields = false; - - CpuUtilization._() : super(); factory CpuUtilization({ - $2.Duration? aggregationWindowLength, + $51.Duration? aggregationWindowLength, $core.double? targetUtilization, }) { - final _result = create(); + final $result = create(); if (aggregationWindowLength != null) { - _result.aggregationWindowLength = aggregationWindowLength; + $result.aggregationWindowLength = aggregationWindowLength; } if (targetUtilization != null) { - _result.targetUtilization = targetUtilization; + $result.targetUtilization = targetUtilization; } - return _result; + return $result; } + CpuUtilization._() : super(); factory CpuUtilization.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CpuUtilization.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CpuUtilization', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOM<$51.Duration>(1, _omitFieldNames ? '' : 'aggregationWindowLength', + subBuilder: $51.Duration.create) + ..a<$core.double>( + 2, _omitFieldNames ? '' : 'targetUtilization', $pb.PbFieldType.OD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1359,8 +1562,10 @@ class CpuUtilization extends $pb.GeneratedMessage { 'Will be removed in next major version') CpuUtilization copyWith(void Function(CpuUtilization) updates) => super.copyWith((message) => updates(message as CpuUtilization)) - as CpuUtilization; // ignore: deprecated_member_use + as CpuUtilization; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CpuUtilization create() => CpuUtilization._(); CpuUtilization createEmptyInstance() => create(); @@ -1371,10 +1576,11 @@ class CpuUtilization extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CpuUtilization? _defaultInstance; + /// Period of time over which CPU utilization is calculated. @$pb.TagNumber(1) - $2.Duration get aggregationWindowLength => $_getN(0); + $51.Duration get aggregationWindowLength => $_getN(0); @$pb.TagNumber(1) - set aggregationWindowLength($2.Duration v) { + set aggregationWindowLength($51.Duration v) { setField(1, v); } @@ -1383,8 +1589,10 @@ class CpuUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearAggregationWindowLength() => clearField(1); @$pb.TagNumber(1) - $2.Duration ensureAggregationWindowLength() => $_ensure(0); + $51.Duration ensureAggregationWindowLength() => $_ensure(0); + /// Target CPU utilization ratio to maintain when scaling. Must be between 0 + /// and 1. @$pb.TagNumber(2) $core.double get targetUtilization => $_getN(1); @$pb.TagNumber(2) @@ -1398,50 +1606,41 @@ class CpuUtilization extends $pb.GeneratedMessage { void clearTargetUtilization() => clearField(2); } +/// Target scaling by request utilization. +/// Only applicable in the App Engine flexible environment. class RequestUtilization extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RequestUtilization', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetRequestCountPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetConcurrentRequests', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - RequestUtilization._() : super(); factory RequestUtilization({ $core.int? targetRequestCountPerSecond, $core.int? targetConcurrentRequests, }) { - final _result = create(); + final $result = create(); if (targetRequestCountPerSecond != null) { - _result.targetRequestCountPerSecond = targetRequestCountPerSecond; + $result.targetRequestCountPerSecond = targetRequestCountPerSecond; } if (targetConcurrentRequests != null) { - _result.targetConcurrentRequests = targetConcurrentRequests; + $result.targetConcurrentRequests = targetConcurrentRequests; } - return _result; + return $result; } + RequestUtilization._() : super(); factory RequestUtilization.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RequestUtilization.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RequestUtilization', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'targetRequestCountPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(2, _omitFieldNames ? '' : 'targetConcurrentRequests', + $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1451,8 +1650,10 @@ class RequestUtilization extends $pb.GeneratedMessage { 'Will be removed in next major version') RequestUtilization copyWith(void Function(RequestUtilization) updates) => super.copyWith((message) => updates(message as RequestUtilization)) - as RequestUtilization; // ignore: deprecated_member_use + as RequestUtilization; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RequestUtilization create() => RequestUtilization._(); RequestUtilization createEmptyInstance() => create(); @@ -1463,6 +1664,7 @@ class RequestUtilization extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static RequestUtilization? _defaultInstance; + /// Target requests per second. @$pb.TagNumber(1) $core.int get targetRequestCountPerSecond => $_getIZ(0); @$pb.TagNumber(1) @@ -1475,6 +1677,7 @@ class RequestUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTargetRequestCountPerSecond() => clearField(1); + /// Target number of concurrent requests. @$pb.TagNumber(2) $core.int get targetConcurrentRequests => $_getIZ(1); @$pb.TagNumber(2) @@ -1488,63 +1691,53 @@ class RequestUtilization extends $pb.GeneratedMessage { void clearTargetConcurrentRequests() => clearField(2); } +/// Target scaling by disk usage. +/// Only applicable in the App Engine flexible environment. class DiskUtilization extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DiskUtilization', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..a<$core.int>( - 14, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetWriteBytesPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>( - 15, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetWriteOpsPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>( - 16, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'targetReadBytesPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'targetReadOpsPerSecond', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - DiskUtilization._() : super(); factory DiskUtilization({ $core.int? targetWriteBytesPerSecond, $core.int? targetWriteOpsPerSecond, $core.int? targetReadBytesPerSecond, $core.int? targetReadOpsPerSecond, }) { - final _result = create(); + final $result = create(); if (targetWriteBytesPerSecond != null) { - _result.targetWriteBytesPerSecond = targetWriteBytesPerSecond; + $result.targetWriteBytesPerSecond = targetWriteBytesPerSecond; } if (targetWriteOpsPerSecond != null) { - _result.targetWriteOpsPerSecond = targetWriteOpsPerSecond; + $result.targetWriteOpsPerSecond = targetWriteOpsPerSecond; } if (targetReadBytesPerSecond != null) { - _result.targetReadBytesPerSecond = targetReadBytesPerSecond; + $result.targetReadBytesPerSecond = targetReadBytesPerSecond; } if (targetReadOpsPerSecond != null) { - _result.targetReadOpsPerSecond = targetReadOpsPerSecond; + $result.targetReadOpsPerSecond = targetReadOpsPerSecond; } - return _result; + return $result; } + DiskUtilization._() : super(); factory DiskUtilization.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DiskUtilization.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DiskUtilization', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..a<$core.int>(14, _omitFieldNames ? '' : 'targetWriteBytesPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(15, _omitFieldNames ? '' : 'targetWriteOpsPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(16, _omitFieldNames ? '' : 'targetReadBytesPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>( + 17, _omitFieldNames ? '' : 'targetReadOpsPerSecond', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1554,8 +1747,10 @@ class DiskUtilization extends $pb.GeneratedMessage { 'Will be removed in next major version') DiskUtilization copyWith(void Function(DiskUtilization) updates) => super.copyWith((message) => updates(message as DiskUtilization)) - as DiskUtilization; // ignore: deprecated_member_use + as DiskUtilization; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DiskUtilization create() => DiskUtilization._(); DiskUtilization createEmptyInstance() => create(); @@ -1566,6 +1761,7 @@ class DiskUtilization extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DiskUtilization? _defaultInstance; + /// Target bytes written per second. @$pb.TagNumber(14) $core.int get targetWriteBytesPerSecond => $_getIZ(0); @$pb.TagNumber(14) @@ -1578,6 +1774,7 @@ class DiskUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearTargetWriteBytesPerSecond() => clearField(14); + /// Target ops written per second. @$pb.TagNumber(15) $core.int get targetWriteOpsPerSecond => $_getIZ(1); @$pb.TagNumber(15) @@ -1590,6 +1787,7 @@ class DiskUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearTargetWriteOpsPerSecond() => clearField(15); + /// Target bytes read per second. @$pb.TagNumber(16) $core.int get targetReadBytesPerSecond => $_getIZ(2); @$pb.TagNumber(16) @@ -1602,6 +1800,7 @@ class DiskUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(16) void clearTargetReadBytesPerSecond() => clearField(16); + /// Target ops read per seconds. @$pb.TagNumber(17) $core.int get targetReadOpsPerSecond => $_getIZ(3); @$pb.TagNumber(17) @@ -1615,64 +1814,53 @@ class DiskUtilization extends $pb.GeneratedMessage { void clearTargetReadOpsPerSecond() => clearField(17); } +/// Target scaling by network usage. +/// Only applicable in the App Engine flexible environment. class NetworkUtilization extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'NetworkUtilization', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetSentBytesPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>( - 11, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetSentPacketsPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>( - 12, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetReceivedBytesPerSecond', - $pb.PbFieldType.O3) - ..a<$core.int>(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'targetReceivedPacketsPerSecond', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - NetworkUtilization._() : super(); factory NetworkUtilization({ $core.int? targetSentBytesPerSecond, $core.int? targetSentPacketsPerSecond, $core.int? targetReceivedBytesPerSecond, $core.int? targetReceivedPacketsPerSecond, }) { - final _result = create(); + final $result = create(); if (targetSentBytesPerSecond != null) { - _result.targetSentBytesPerSecond = targetSentBytesPerSecond; + $result.targetSentBytesPerSecond = targetSentBytesPerSecond; } if (targetSentPacketsPerSecond != null) { - _result.targetSentPacketsPerSecond = targetSentPacketsPerSecond; + $result.targetSentPacketsPerSecond = targetSentPacketsPerSecond; } if (targetReceivedBytesPerSecond != null) { - _result.targetReceivedBytesPerSecond = targetReceivedBytesPerSecond; + $result.targetReceivedBytesPerSecond = targetReceivedBytesPerSecond; } if (targetReceivedPacketsPerSecond != null) { - _result.targetReceivedPacketsPerSecond = targetReceivedPacketsPerSecond; + $result.targetReceivedPacketsPerSecond = targetReceivedPacketsPerSecond; } - return _result; + return $result; } + NetworkUtilization._() : super(); factory NetworkUtilization.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory NetworkUtilization.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'NetworkUtilization', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'targetSentBytesPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(11, _omitFieldNames ? '' : 'targetSentPacketsPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(12, _omitFieldNames ? '' : 'targetReceivedBytesPerSecond', + $pb.PbFieldType.O3) + ..a<$core.int>(13, _omitFieldNames ? '' : 'targetReceivedPacketsPerSecond', + $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1682,8 +1870,10 @@ class NetworkUtilization extends $pb.GeneratedMessage { 'Will be removed in next major version') NetworkUtilization copyWith(void Function(NetworkUtilization) updates) => super.copyWith((message) => updates(message as NetworkUtilization)) - as NetworkUtilization; // ignore: deprecated_member_use + as NetworkUtilization; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static NetworkUtilization create() => NetworkUtilization._(); NetworkUtilization createEmptyInstance() => create(); @@ -1694,6 +1884,7 @@ class NetworkUtilization extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static NetworkUtilization? _defaultInstance; + /// Target bytes sent per second. @$pb.TagNumber(1) $core.int get targetSentBytesPerSecond => $_getIZ(0); @$pb.TagNumber(1) @@ -1706,6 +1897,7 @@ class NetworkUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTargetSentBytesPerSecond() => clearField(1); + /// Target packets sent per second. @$pb.TagNumber(11) $core.int get targetSentPacketsPerSecond => $_getIZ(1); @$pb.TagNumber(11) @@ -1718,6 +1910,7 @@ class NetworkUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearTargetSentPacketsPerSecond() => clearField(11); + /// Target bytes received per second. @$pb.TagNumber(12) $core.int get targetReceivedBytesPerSecond => $_getIZ(2); @$pb.TagNumber(12) @@ -1730,6 +1923,7 @@ class NetworkUtilization extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearTargetReceivedBytesPerSecond() => clearField(12); + /// Target packets received per second. @$pb.TagNumber(13) $core.int get targetReceivedPacketsPerSecond => $_getIZ(3); @$pb.TagNumber(13) @@ -1749,47 +1943,8 @@ enum CustomMetric_TargetSpec { notSet } +/// Allows autoscaling based on Stackdriver metrics. class CustomMetric extends $pb.GeneratedMessage { - static const $core.Map<$core.int, CustomMetric_TargetSpec> - _CustomMetric_TargetSpecByTag = { - 3: CustomMetric_TargetSpec.targetUtilization, - 4: CustomMetric_TargetSpec.singleInstanceAssignment, - 0: CustomMetric_TargetSpec.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CustomMetric', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..oo(0, [3, 4]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metricName') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetType') - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetUtilization', - $pb.PbFieldType.OD) - ..a<$core.double>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'singleInstanceAssignment', - $pb.PbFieldType.OD) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter') - ..hasRequiredFields = false; - - CustomMetric._() : super(); factory CustomMetric({ $core.String? metricName, $core.String? targetType, @@ -1797,30 +1952,53 @@ class CustomMetric extends $pb.GeneratedMessage { $core.double? singleInstanceAssignment, $core.String? filter, }) { - final _result = create(); + final $result = create(); if (metricName != null) { - _result.metricName = metricName; + $result.metricName = metricName; } if (targetType != null) { - _result.targetType = targetType; + $result.targetType = targetType; } if (targetUtilization != null) { - _result.targetUtilization = targetUtilization; + $result.targetUtilization = targetUtilization; } if (singleInstanceAssignment != null) { - _result.singleInstanceAssignment = singleInstanceAssignment; + $result.singleInstanceAssignment = singleInstanceAssignment; } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } - return _result; + return $result; } + CustomMetric._() : super(); factory CustomMetric.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CustomMetric.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, CustomMetric_TargetSpec> + _CustomMetric_TargetSpecByTag = { + 3: CustomMetric_TargetSpec.targetUtilization, + 4: CustomMetric_TargetSpec.singleInstanceAssignment, + 0: CustomMetric_TargetSpec.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CustomMetric', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..oo(0, [3, 4]) + ..aOS(1, _omitFieldNames ? '' : 'metricName') + ..aOS(2, _omitFieldNames ? '' : 'targetType') + ..a<$core.double>( + 3, _omitFieldNames ? '' : 'targetUtilization', $pb.PbFieldType.OD) + ..a<$core.double>(4, _omitFieldNames ? '' : 'singleInstanceAssignment', + $pb.PbFieldType.OD) + ..aOS(5, _omitFieldNames ? '' : 'filter') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1830,8 +2008,10 @@ class CustomMetric extends $pb.GeneratedMessage { 'Will be removed in next major version') CustomMetric copyWith(void Function(CustomMetric) updates) => super.copyWith((message) => updates(message as CustomMetric)) - as CustomMetric; // ignore: deprecated_member_use + as CustomMetric; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CustomMetric create() => CustomMetric._(); CustomMetric createEmptyInstance() => create(); @@ -1846,6 +2026,7 @@ class CustomMetric extends $pb.GeneratedMessage { _CustomMetric_TargetSpecByTag[$_whichOneof(0)]!; void clearTargetSpec() => clearField($_whichOneof(0)); + /// The name of the metric. @$pb.TagNumber(1) $core.String get metricName => $_getSZ(0); @$pb.TagNumber(1) @@ -1858,6 +2039,8 @@ class CustomMetric extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMetricName() => clearField(1); + /// The type of the metric. Must be a string representing a Stackdriver + /// metric type e.g. GAGUE, DELTA_PER_SECOND, etc. @$pb.TagNumber(2) $core.String get targetType => $_getSZ(1); @$pb.TagNumber(2) @@ -1870,6 +2053,7 @@ class CustomMetric extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearTargetType() => clearField(2); + /// The target value for the metric. @$pb.TagNumber(3) $core.double get targetUtilization => $_getN(2); @$pb.TagNumber(3) @@ -1882,6 +2066,11 @@ class CustomMetric extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearTargetUtilization() => clearField(3); + /// May be used instead of `target_utilization` when an instance can handle a + /// specific amount of work/resources and the metric value is equal to the + /// current amount of work remaining. The autoscaler will try to keep the + /// number of instances equal to the metric value divided by + /// `single_instance_assignment`. @$pb.TagNumber(4) $core.double get singleInstanceAssignment => $_getN(3); @$pb.TagNumber(4) @@ -1894,6 +2083,7 @@ class CustomMetric extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearSingleInstanceAssignment() => clearField(4); + /// Allows filtering on the metric's fields. @$pb.TagNumber(5) $core.String get filter => $_getSZ(4); @$pb.TagNumber(5) @@ -1907,63 +2097,50 @@ class CustomMetric extends $pb.GeneratedMessage { void clearFilter() => clearField(5); } +/// Scheduler settings for standard environment. class StandardSchedulerSettings extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'StandardSchedulerSettings', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..a<$core.double>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetCpuUtilization', - $pb.PbFieldType.OD) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'targetThroughputUtilization', - $pb.PbFieldType.OD) - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'minInstances', - $pb.PbFieldType.O3) - ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'maxInstances', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - StandardSchedulerSettings._() : super(); factory StandardSchedulerSettings({ $core.double? targetCpuUtilization, $core.double? targetThroughputUtilization, $core.int? minInstances, $core.int? maxInstances, }) { - final _result = create(); + final $result = create(); if (targetCpuUtilization != null) { - _result.targetCpuUtilization = targetCpuUtilization; + $result.targetCpuUtilization = targetCpuUtilization; } if (targetThroughputUtilization != null) { - _result.targetThroughputUtilization = targetThroughputUtilization; + $result.targetThroughputUtilization = targetThroughputUtilization; } if (minInstances != null) { - _result.minInstances = minInstances; + $result.minInstances = minInstances; } if (maxInstances != null) { - _result.maxInstances = maxInstances; + $result.maxInstances = maxInstances; } - return _result; + return $result; } + StandardSchedulerSettings._() : super(); factory StandardSchedulerSettings.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory StandardSchedulerSettings.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'StandardSchedulerSettings', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..a<$core.double>( + 1, _omitFieldNames ? '' : 'targetCpuUtilization', $pb.PbFieldType.OD) + ..a<$core.double>(2, _omitFieldNames ? '' : 'targetThroughputUtilization', + $pb.PbFieldType.OD) + ..a<$core.int>(3, _omitFieldNames ? '' : 'minInstances', $pb.PbFieldType.O3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'maxInstances', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1975,8 +2152,10 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { StandardSchedulerSettings copyWith( void Function(StandardSchedulerSettings) updates) => super.copyWith((message) => updates(message as StandardSchedulerSettings)) - as StandardSchedulerSettings; // ignore: deprecated_member_use + as StandardSchedulerSettings; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static StandardSchedulerSettings create() => StandardSchedulerSettings._(); StandardSchedulerSettings createEmptyInstance() => create(); @@ -1987,6 +2166,7 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static StandardSchedulerSettings? _defaultInstance; + /// Target CPU utilization ratio to maintain when scaling. @$pb.TagNumber(1) $core.double get targetCpuUtilization => $_getN(0); @$pb.TagNumber(1) @@ -1999,6 +2179,7 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTargetCpuUtilization() => clearField(1); + /// Target throughput utilization ratio to maintain when scaling @$pb.TagNumber(2) $core.double get targetThroughputUtilization => $_getN(1); @$pb.TagNumber(2) @@ -2011,6 +2192,8 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearTargetThroughputUtilization() => clearField(2); + /// Minimum number of instances to run for this version. Set to zero to disable + /// `min_instances` configuration. @$pb.TagNumber(3) $core.int get minInstances => $_getIZ(2); @$pb.TagNumber(3) @@ -2023,6 +2206,8 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearMinInstances() => clearField(3); + /// Maximum number of instances to run for this version. Set to zero to disable + /// `max_instances` configuration. @$pb.TagNumber(4) $core.int get maxInstances => $_getIZ(3); @$pb.TagNumber(4) @@ -2036,40 +2221,9 @@ class StandardSchedulerSettings extends $pb.GeneratedMessage { void clearMaxInstances() => clearField(4); } +/// Extra network settings. +/// Only applicable in the App Engine flexible environment. class Network extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Network', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'forwardedPorts') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'instanceTag') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'subnetworkName') - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sessionAffinity') - ..hasRequiredFields = false; - - Network._() : super(); factory Network({ $core.Iterable<$core.String>? forwardedPorts, $core.String? instanceTag, @@ -2077,30 +2231,44 @@ class Network extends $pb.GeneratedMessage { $core.String? subnetworkName, $core.bool? sessionAffinity, }) { - final _result = create(); + final $result = create(); if (forwardedPorts != null) { - _result.forwardedPorts.addAll(forwardedPorts); + $result.forwardedPorts.addAll(forwardedPorts); } if (instanceTag != null) { - _result.instanceTag = instanceTag; + $result.instanceTag = instanceTag; } if (name != null) { - _result.name = name; + $result.name = name; } if (subnetworkName != null) { - _result.subnetworkName = subnetworkName; + $result.subnetworkName = subnetworkName; } if (sessionAffinity != null) { - _result.sessionAffinity = sessionAffinity; + $result.sessionAffinity = sessionAffinity; } - return _result; + return $result; } + Network._() : super(); factory Network.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Network.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Network', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'forwardedPorts') + ..aOS(2, _omitFieldNames ? '' : 'instanceTag') + ..aOS(3, _omitFieldNames ? '' : 'name') + ..aOS(4, _omitFieldNames ? '' : 'subnetworkName') + ..aOB(5, _omitFieldNames ? '' : 'sessionAffinity') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2109,9 +2277,10 @@ class Network extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Network copyWith(void Function(Network) updates) => - super.copyWith((message) => updates(message as Network)) - as Network; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Network)) as Network; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Network create() => Network._(); Network createEmptyInstance() => create(); @@ -2121,9 +2290,14 @@ class Network extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Network? _defaultInstance; + /// List of ports, or port pairs, to forward from the virtual machine to the + /// application container. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(1) $core.List<$core.String> get forwardedPorts => $_getList(0); + /// Tag to apply to the instance during creation. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(2) $core.String get instanceTag => $_getSZ(1); @$pb.TagNumber(2) @@ -2136,6 +2310,10 @@ class Network extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearInstanceTag() => clearField(2); + /// Google Compute Engine network where the virtual machines are created. + /// Specify the short name, not the resource path. + /// + /// Defaults to `default`. @$pb.TagNumber(3) $core.String get name => $_getSZ(2); @$pb.TagNumber(3) @@ -2148,6 +2326,24 @@ class Network extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearName() => clearField(3); + /// Google Cloud Platform sub-network where the virtual machines are created. + /// Specify the short name, not the resource path. + /// + /// If a subnetwork name is specified, a network name will also be required + /// unless it is for the default network. + /// + /// * If the network that the instance is being created in is a Legacy network, + /// then the IP address is allocated from the IPv4Range. + /// * If the network that the instance is being created in is an auto Subnet + /// Mode Network, then only network name should be specified (not the + /// subnetwork_name) and the IP address is created from the IPCidrRange of the + /// subnetwork that exists in that zone for that network. + /// * If the network that the instance is being created in is a custom Subnet + /// Mode Network, then the subnetwork_name must be specified and the + /// IP address is created from the IPCidrRange of the subnetwork. + /// + /// If specified, the subnetwork must exist in the same region as the + /// App Engine flexible environment application. @$pb.TagNumber(4) $core.String get subnetworkName => $_getSZ(3); @$pb.TagNumber(4) @@ -2160,6 +2356,8 @@ class Network extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearSubnetworkName() => clearField(4); + /// Enable session affinity. + /// Only applicable in the App Engine flexible environment. @$pb.TagNumber(5) $core.bool get sessionAffinity => $_getBF(4); @$pb.TagNumber(5) @@ -2173,58 +2371,44 @@ class Network extends $pb.GeneratedMessage { void clearSessionAffinity() => clearField(5); } +/// Volumes mounted within the app container. +/// Only applicable in the App Engine flexible environment. class Volume extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Volume', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'volumeType') - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sizeGb', - $pb.PbFieldType.OD) - ..hasRequiredFields = false; - - Volume._() : super(); factory Volume({ $core.String? name, $core.String? volumeType, $core.double? sizeGb, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (volumeType != null) { - _result.volumeType = volumeType; + $result.volumeType = volumeType; } if (sizeGb != null) { - _result.sizeGb = sizeGb; + $result.sizeGb = sizeGb; } - return _result; + return $result; } + Volume._() : super(); factory Volume.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Volume.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Volume', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'volumeType') + ..a<$core.double>(3, _omitFieldNames ? '' : 'sizeGb', $pb.PbFieldType.OD) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2233,9 +2417,10 @@ class Volume extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Volume copyWith(void Function(Volume) updates) => - super.copyWith((message) => updates(message as Volume)) - as Volume; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Volume)) as Volume; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Volume create() => Volume._(); Volume createEmptyInstance() => create(); @@ -2245,6 +2430,7 @@ class Volume extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Volume? _defaultInstance; + /// Unique name for the volume. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2257,6 +2443,7 @@ class Volume extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Underlying volume type, e.g. 'tmpfs'. @$pb.TagNumber(2) $core.String get volumeType => $_getSZ(1); @$pb.TagNumber(2) @@ -2269,6 +2456,7 @@ class Volume extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearVolumeType() => clearField(2); + /// Volume size in gigabytes. @$pb.TagNumber(3) $core.double get sizeGb => $_getN(2); @$pb.TagNumber(3) @@ -2282,37 +2470,8 @@ class Volume extends $pb.GeneratedMessage { void clearSizeGb() => clearField(3); } +/// Machine resources for a version. class Resources extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Resources', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..a<$core.double>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cpu', - $pb.PbFieldType.OD) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'diskGb', - $pb.PbFieldType.OD) - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'memoryGb', - $pb.PbFieldType.OD) - ..pc(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'volumes', $pb.PbFieldType.PM, subBuilder: Volume.create) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'kmsKeyReference') - ..hasRequiredFields = false; - - Resources._() : super(); factory Resources({ $core.double? cpu, $core.double? diskGb, @@ -2320,30 +2479,45 @@ class Resources extends $pb.GeneratedMessage { $core.Iterable? volumes, $core.String? kmsKeyReference, }) { - final _result = create(); + final $result = create(); if (cpu != null) { - _result.cpu = cpu; + $result.cpu = cpu; } if (diskGb != null) { - _result.diskGb = diskGb; + $result.diskGb = diskGb; } if (memoryGb != null) { - _result.memoryGb = memoryGb; + $result.memoryGb = memoryGb; } if (volumes != null) { - _result.volumes.addAll(volumes); + $result.volumes.addAll(volumes); } if (kmsKeyReference != null) { - _result.kmsKeyReference = kmsKeyReference; + $result.kmsKeyReference = kmsKeyReference; } - return _result; + return $result; } + Resources._() : super(); factory Resources.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Resources.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Resources', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..a<$core.double>(1, _omitFieldNames ? '' : 'cpu', $pb.PbFieldType.OD) + ..a<$core.double>(2, _omitFieldNames ? '' : 'diskGb', $pb.PbFieldType.OD) + ..a<$core.double>(3, _omitFieldNames ? '' : 'memoryGb', $pb.PbFieldType.OD) + ..pc(4, _omitFieldNames ? '' : 'volumes', $pb.PbFieldType.PM, + subBuilder: Volume.create) + ..aOS(5, _omitFieldNames ? '' : 'kmsKeyReference') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2352,9 +2526,10 @@ class Resources extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Resources copyWith(void Function(Resources) updates) => - super.copyWith((message) => updates(message as Resources)) - as Resources; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Resources)) as Resources; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Resources create() => Resources._(); Resources createEmptyInstance() => create(); @@ -2364,6 +2539,7 @@ class Resources extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Resources? _defaultInstance; + /// Number of CPU cores needed. @$pb.TagNumber(1) $core.double get cpu => $_getN(0); @$pb.TagNumber(1) @@ -2376,6 +2552,7 @@ class Resources extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearCpu() => clearField(1); + /// Disk size (GB) needed. @$pb.TagNumber(2) $core.double get diskGb => $_getN(1); @$pb.TagNumber(2) @@ -2388,6 +2565,7 @@ class Resources extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDiskGb() => clearField(2); + /// Memory (GB) needed. @$pb.TagNumber(3) $core.double get memoryGb => $_getN(2); @$pb.TagNumber(3) @@ -2400,9 +2578,12 @@ class Resources extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearMemoryGb() => clearField(3); + /// User specified volumes. @$pb.TagNumber(4) $core.List get volumes => $_getList(3); + /// The name of the encryption key that is stored in Google Cloud KMS. + /// Only should be used by Cloud Composer to encrypt the vm disk @$pb.TagNumber(5) $core.String get kmsKeyReference => $_getSZ(4); @$pb.TagNumber(5) @@ -2416,39 +2597,33 @@ class Resources extends $pb.GeneratedMessage { void clearKmsKeyReference() => clearField(5); } +/// VPC access connector specification. class VpcAccessConnector extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'VpcAccessConnector', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - VpcAccessConnector._() : super(); factory VpcAccessConnector({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + VpcAccessConnector._() : super(); factory VpcAccessConnector.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory VpcAccessConnector.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'VpcAccessConnector', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2458,8 +2633,10 @@ class VpcAccessConnector extends $pb.GeneratedMessage { 'Will be removed in next major version') VpcAccessConnector copyWith(void Function(VpcAccessConnector) updates) => super.copyWith((message) => updates(message as VpcAccessConnector)) - as VpcAccessConnector; // ignore: deprecated_member_use + as VpcAccessConnector; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static VpcAccessConnector create() => VpcAccessConnector._(); VpcAccessConnector createEmptyInstance() => create(); @@ -2470,6 +2647,8 @@ class VpcAccessConnector extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static VpcAccessConnector? _defaultInstance; + /// Full Serverless VPC Access Connector name e.g. + /// /projects/my-project/locations/us-central1/connectors/c1. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2485,45 +2664,39 @@ class VpcAccessConnector extends $pb.GeneratedMessage { enum Entrypoint_Command { shell, notSet } +/// The entrypoint for the application. class Entrypoint extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Entrypoint_Command> - _Entrypoint_CommandByTag = { - 1: Entrypoint_Command.shell, - 0: Entrypoint_Command.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Entrypoint', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.appengine.v1beta'), - createEmptyInstance: create) - ..oo(0, [1]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'shell') - ..hasRequiredFields = false; - - Entrypoint._() : super(); factory Entrypoint({ $core.String? shell, }) { - final _result = create(); + final $result = create(); if (shell != null) { - _result.shell = shell; + $result.shell = shell; } - return _result; + return $result; } + Entrypoint._() : super(); factory Entrypoint.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Entrypoint.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Entrypoint_Command> + _Entrypoint_CommandByTag = { + 1: Entrypoint_Command.shell, + 0: Entrypoint_Command.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Entrypoint', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.appengine.v1beta'), + createEmptyInstance: create) + ..oo(0, [1]) + ..aOS(1, _omitFieldNames ? '' : 'shell') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2532,9 +2705,10 @@ class Entrypoint extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Entrypoint copyWith(void Function(Entrypoint) updates) => - super.copyWith((message) => updates(message as Entrypoint)) - as Entrypoint; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Entrypoint)) as Entrypoint; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Entrypoint create() => Entrypoint._(); Entrypoint createEmptyInstance() => create(); @@ -2548,6 +2722,7 @@ class Entrypoint extends $pb.GeneratedMessage { _Entrypoint_CommandByTag[$_whichOneof(0)]!; void clearCommand() => clearField($_whichOneof(0)); + /// The format should be a shell command that can be fed to `bash -c`. @$pb.TagNumber(1) $core.String get shell => $_getSZ(0); @$pb.TagNumber(1) @@ -2560,3 +2735,7 @@ class Entrypoint extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearShell() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pbenum.dart index a7aa26c6..fcfc3adf 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pbenum.dart @@ -1,67 +1,45 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/version.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Available inbound services. class InboundServiceType extends $pb.ProtobufEnum { static const InboundServiceType INBOUND_SERVICE_UNSPECIFIED = InboundServiceType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_UNSPECIFIED'); - static const InboundServiceType INBOUND_SERVICE_MAIL = InboundServiceType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_MAIL'); + 0, _omitEnumNames ? '' : 'INBOUND_SERVICE_UNSPECIFIED'); + static const InboundServiceType INBOUND_SERVICE_MAIL = + InboundServiceType._(1, _omitEnumNames ? '' : 'INBOUND_SERVICE_MAIL'); static const InboundServiceType INBOUND_SERVICE_MAIL_BOUNCE = InboundServiceType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_MAIL_BOUNCE'); + 2, _omitEnumNames ? '' : 'INBOUND_SERVICE_MAIL_BOUNCE'); static const InboundServiceType INBOUND_SERVICE_XMPP_ERROR = InboundServiceType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_XMPP_ERROR'); + 3, _omitEnumNames ? '' : 'INBOUND_SERVICE_XMPP_ERROR'); static const InboundServiceType INBOUND_SERVICE_XMPP_MESSAGE = InboundServiceType._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_XMPP_MESSAGE'); + 4, _omitEnumNames ? '' : 'INBOUND_SERVICE_XMPP_MESSAGE'); static const InboundServiceType INBOUND_SERVICE_XMPP_SUBSCRIBE = InboundServiceType._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_XMPP_SUBSCRIBE'); + 5, _omitEnumNames ? '' : 'INBOUND_SERVICE_XMPP_SUBSCRIBE'); static const InboundServiceType INBOUND_SERVICE_XMPP_PRESENCE = InboundServiceType._( - 6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_XMPP_PRESENCE'); + 6, _omitEnumNames ? '' : 'INBOUND_SERVICE_XMPP_PRESENCE'); static const InboundServiceType INBOUND_SERVICE_CHANNEL_PRESENCE = InboundServiceType._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_CHANNEL_PRESENCE'); - static const InboundServiceType INBOUND_SERVICE_WARMUP = InboundServiceType._( - 9, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INBOUND_SERVICE_WARMUP'); + 7, _omitEnumNames ? '' : 'INBOUND_SERVICE_CHANNEL_PRESENCE'); + static const InboundServiceType INBOUND_SERVICE_WARMUP = + InboundServiceType._(9, _omitEnumNames ? '' : 'INBOUND_SERVICE_WARMUP'); static const $core.List values = [ INBOUND_SERVICE_UNSPECIFIED, @@ -82,16 +60,14 @@ class InboundServiceType extends $pb.ProtobufEnum { const InboundServiceType._($core.int v, $core.String n) : super(v, n); } +/// Run states of a version. class ServingStatus extends $pb.ProtobufEnum { - static const ServingStatus SERVING_STATUS_UNSPECIFIED = ServingStatus._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SERVING_STATUS_UNSPECIFIED'); - static const ServingStatus SERVING = ServingStatus._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SERVING'); - static const ServingStatus STOPPED = ServingStatus._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'STOPPED'); + static const ServingStatus SERVING_STATUS_UNSPECIFIED = + ServingStatus._(0, _omitEnumNames ? '' : 'SERVING_STATUS_UNSPECIFIED'); + static const ServingStatus SERVING = + ServingStatus._(1, _omitEnumNames ? '' : 'SERVING'); + static const ServingStatus STOPPED = + ServingStatus._(2, _omitEnumNames ? '' : 'STOPPED'); static const $core.List values = [ SERVING_STATUS_UNSPECIFIED, @@ -106,25 +82,15 @@ class ServingStatus extends $pb.ProtobufEnum { const ServingStatus._($core.int v, $core.String n) : super(v, n); } +/// Available rollout strategies. class EndpointsApiService_RolloutStrategy extends $pb.ProtobufEnum { static const EndpointsApiService_RolloutStrategy UNSPECIFIED_ROLLOUT_STRATEGY = EndpointsApiService_RolloutStrategy._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'UNSPECIFIED_ROLLOUT_STRATEGY'); + 0, _omitEnumNames ? '' : 'UNSPECIFIED_ROLLOUT_STRATEGY'); static const EndpointsApiService_RolloutStrategy FIXED = - EndpointsApiService_RolloutStrategy._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FIXED'); + EndpointsApiService_RolloutStrategy._(1, _omitEnumNames ? '' : 'FIXED'); static const EndpointsApiService_RolloutStrategy MANAGED = - EndpointsApiService_RolloutStrategy._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MANAGED'); + EndpointsApiService_RolloutStrategy._(2, _omitEnumNames ? '' : 'MANAGED'); static const $core.List values = [ @@ -141,3 +107,5 @@ class EndpointsApiService_RolloutStrategy extends $pb.ProtobufEnum { const EndpointsApiService_RolloutStrategy._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pbjson.dart index f157cb4a..0e246305 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/appengine/v1beta/version.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/appengine/v1beta/version.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 inboundServiceTypeDescriptor instead') @@ -27,7 +31,13 @@ const InboundServiceType$json = { /// Descriptor for `InboundServiceType`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List inboundServiceTypeDescriptor = $convert.base64Decode( - 'ChJJbmJvdW5kU2VydmljZVR5cGUSHwobSU5CT1VORF9TRVJWSUNFX1VOU1BFQ0lGSUVEEAASGAoUSU5CT1VORF9TRVJWSUNFX01BSUwQARIfChtJTkJPVU5EX1NFUlZJQ0VfTUFJTF9CT1VOQ0UQAhIeChpJTkJPVU5EX1NFUlZJQ0VfWE1QUF9FUlJPUhADEiAKHElOQk9VTkRfU0VSVklDRV9YTVBQX01FU1NBR0UQBBIiCh5JTkJPVU5EX1NFUlZJQ0VfWE1QUF9TVUJTQ1JJQkUQBRIhCh1JTkJPVU5EX1NFUlZJQ0VfWE1QUF9QUkVTRU5DRRAGEiQKIElOQk9VTkRfU0VSVklDRV9DSEFOTkVMX1BSRVNFTkNFEAcSGgoWSU5CT1VORF9TRVJWSUNFX1dBUk1VUBAJ'); + 'ChJJbmJvdW5kU2VydmljZVR5cGUSHwobSU5CT1VORF9TRVJWSUNFX1VOU1BFQ0lGSUVEEAASGA' + 'oUSU5CT1VORF9TRVJWSUNFX01BSUwQARIfChtJTkJPVU5EX1NFUlZJQ0VfTUFJTF9CT1VOQ0UQ' + 'AhIeChpJTkJPVU5EX1NFUlZJQ0VfWE1QUF9FUlJPUhADEiAKHElOQk9VTkRfU0VSVklDRV9YTV' + 'BQX01FU1NBR0UQBBIiCh5JTkJPVU5EX1NFUlZJQ0VfWE1QUF9TVUJTQ1JJQkUQBRIhCh1JTkJP' + 'VU5EX1NFUlZJQ0VfWE1QUF9QUkVTRU5DRRAGEiQKIElOQk9VTkRfU0VSVklDRV9DSEFOTkVMX1' + 'BSRVNFTkNFEAcSGgoWSU5CT1VORF9TRVJWSUNFX1dBUk1VUBAJ'); + @$core.Deprecated('Use servingStatusDescriptor instead') const ServingStatus$json = { '1': 'ServingStatus', @@ -40,7 +50,9 @@ const ServingStatus$json = { /// Descriptor for `ServingStatus`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List servingStatusDescriptor = $convert.base64Decode( - 'Cg1TZXJ2aW5nU3RhdHVzEh4KGlNFUlZJTkdfU1RBVFVTX1VOU1BFQ0lGSUVEEAASCwoHU0VSVklORxABEgsKB1NUT1BQRUQQAg=='); + 'Cg1TZXJ2aW5nU3RhdHVzEh4KGlNFUlZJTkdfU1RBVFVTX1VOU1BFQ0lGSUVEEAASCwoHU0VSVk' + 'lORxABEgsKB1NUT1BQRUQQAg=='); + @$core.Deprecated('Use versionDescriptor instead') const Version$json = { '1': 'Version', @@ -310,7 +322,54 @@ const Version_BuildEnvVariablesEntry$json = { /// Descriptor for `Version`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List versionDescriptor = $convert.base64Decode( - 'CgdWZXJzaW9uEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkElgKEWF1dG9tYXRpY19zY2FsaW5nGAMgASgLMikuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQXV0b21hdGljU2NhbGluZ0gAUhBhdXRvbWF0aWNTY2FsaW5nEkwKDWJhc2ljX3NjYWxpbmcYBCABKAsyJS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5CYXNpY1NjYWxpbmdIAFIMYmFzaWNTY2FsaW5nEk8KDm1hbnVhbF9zY2FsaW5nGAUgASgLMiYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuTWFudWFsU2NhbGluZ0gAUg1tYW51YWxTY2FsaW5nElYKEGluYm91bmRfc2VydmljZXMYBiADKA4yKy5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5JbmJvdW5kU2VydmljZVR5cGVSD2luYm91bmRTZXJ2aWNlcxIlCg5pbnN0YW5jZV9jbGFzcxgHIAEoCVINaW5zdGFuY2VDbGFzcxI6CgduZXR3b3JrGAggASgLMiAuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuTmV0d29ya1IHbmV0d29yaxIUCgV6b25lcxh2IAMoCVIFem9uZXMSQAoJcmVzb3VyY2VzGAkgASgLMiIuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuUmVzb3VyY2VzUglyZXNvdXJjZXMSGAoHcnVudGltZRgKIAEoCVIHcnVudGltZRInCg9ydW50aW1lX2NoYW5uZWwYdSABKAlSDnJ1bnRpbWVDaGFubmVsEh4KCnRocmVhZHNhZmUYCyABKAhSCnRocmVhZHNhZmUSDgoCdm0YDCABKAhSAnZtEicKD2FwcF9lbmdpbmVfYXBpcxiAASABKAhSDWFwcEVuZ2luZUFwaXMSVwoNYmV0YV9zZXR0aW5ncxgNIAMoCzIyLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlZlcnNpb24uQmV0YVNldHRpbmdzRW50cnlSDGJldGFTZXR0aW5ncxIQCgNlbnYYDiABKAlSA2VudhJNCg5zZXJ2aW5nX3N0YXR1cxgPIAEoDjImLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlNlcnZpbmdTdGF0dXNSDXNlcnZpbmdTdGF0dXMSHQoKY3JlYXRlZF9ieRgQIAEoCVIJY3JlYXRlZEJ5EjsKC2NyZWF0ZV90aW1lGBEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKY3JlYXRlVGltZRIoChBkaXNrX3VzYWdlX2J5dGVzGBIgASgDUg5kaXNrVXNhZ2VCeXRlcxIuChNydW50aW1lX2FwaV92ZXJzaW9uGBUgASgJUhFydW50aW1lQXBpVmVyc2lvbhI/ChxydW50aW1lX21haW5fZXhlY3V0YWJsZV9wYXRoGBYgASgJUhlydW50aW1lTWFpbkV4ZWN1dGFibGVQYXRoEicKD3NlcnZpY2VfYWNjb3VudBh/IAEoCVIOc2VydmljZUFjY291bnQSOwoIaGFuZGxlcnMYZCADKAsyHy5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5VcmxNYXBSCGhhbmRsZXJzEkwKDmVycm9yX2hhbmRsZXJzGGUgAygLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRXJyb3JIYW5kbGVyUg1lcnJvckhhbmRsZXJzEj4KCWxpYnJhcmllcxhmIAMoCzIgLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkxpYnJhcnlSCWxpYnJhcmllcxJICgphcGlfY29uZmlnGGcgASgLMikuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQXBpQ29uZmlnSGFuZGxlclIJYXBpQ29uZmlnElcKDWVudl92YXJpYWJsZXMYaCADKAsyMi5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5WZXJzaW9uLkVudlZhcmlhYmxlc0VudHJ5UgxlbnZWYXJpYWJsZXMSZwoTYnVpbGRfZW52X3ZhcmlhYmxlcxh9IAMoCzI3Lmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlZlcnNpb24uQnVpbGRFbnZWYXJpYWJsZXNFbnRyeVIRYnVpbGRFbnZWYXJpYWJsZXMSSAoSZGVmYXVsdF9leHBpcmF0aW9uGGkgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhFkZWZhdWx0RXhwaXJhdGlvbhJHCgxoZWFsdGhfY2hlY2sYaiABKAsyJC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5IZWFsdGhDaGVja1ILaGVhbHRoQ2hlY2sSUAoPcmVhZGluZXNzX2NoZWNrGHAgASgLMicuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuUmVhZGluZXNzQ2hlY2tSDnJlYWRpbmVzc0NoZWNrEk0KDmxpdmVuZXNzX2NoZWNrGHEgASgLMiYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuTGl2ZW5lc3NDaGVja1INbGl2ZW5lc3NDaGVjaxIuChNub2J1aWxkX2ZpbGVzX3JlZ2V4GGsgASgJUhFub2J1aWxkRmlsZXNSZWdleBJDCgpkZXBsb3ltZW50GGwgASgLMiMuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRGVwbG95bWVudFIKZGVwbG95bWVudBIfCgt2ZXJzaW9uX3VybBhtIAEoCVIKdmVyc2lvblVybBJgChVlbmRwb2ludHNfYXBpX3NlcnZpY2UYbiABKAsyLC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5FbmRwb2ludHNBcGlTZXJ2aWNlUhNlbmRwb2ludHNBcGlTZXJ2aWNlEkMKCmVudHJ5cG9pbnQYeiABKAsyIy5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5FbnRyeXBvaW50UgplbnRyeXBvaW50El0KFHZwY19hY2Nlc3NfY29ubmVjdG9yGHkgASgLMisuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuVnBjQWNjZXNzQ29ubmVjdG9yUhJ2cGNBY2Nlc3NDb25uZWN0b3IaPwoRQmV0YVNldHRpbmdzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4ARo/ChFFbnZWYXJpYWJsZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBGkQKFkJ1aWxkRW52VmFyaWFibGVzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AUIJCgdzY2FsaW5n'); + 'CgdWZXJzaW9uEhIKBG5hbWUYASABKAlSBG5hbWUSDgoCaWQYAiABKAlSAmlkElgKEWF1dG9tYX' + 'RpY19zY2FsaW5nGAMgASgLMikuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuQXV0b21hdGljU2Nh' + 'bGluZ0gAUhBhdXRvbWF0aWNTY2FsaW5nEkwKDWJhc2ljX3NjYWxpbmcYBCABKAsyJS5nb29nbG' + 'UuYXBwZW5naW5lLnYxYmV0YS5CYXNpY1NjYWxpbmdIAFIMYmFzaWNTY2FsaW5nEk8KDm1hbnVh' + 'bF9zY2FsaW5nGAUgASgLMiYuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuTWFudWFsU2NhbGluZ0' + 'gAUg1tYW51YWxTY2FsaW5nElYKEGluYm91bmRfc2VydmljZXMYBiADKA4yKy5nb29nbGUuYXBw' + 'ZW5naW5lLnYxYmV0YS5JbmJvdW5kU2VydmljZVR5cGVSD2luYm91bmRTZXJ2aWNlcxIlCg5pbn' + 'N0YW5jZV9jbGFzcxgHIAEoCVINaW5zdGFuY2VDbGFzcxI6CgduZXR3b3JrGAggASgLMiAuZ29v' + 'Z2xlLmFwcGVuZ2luZS52MWJldGEuTmV0d29ya1IHbmV0d29yaxIUCgV6b25lcxh2IAMoCVIFem' + '9uZXMSQAoJcmVzb3VyY2VzGAkgASgLMiIuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuUmVzb3Vy' + 'Y2VzUglyZXNvdXJjZXMSGAoHcnVudGltZRgKIAEoCVIHcnVudGltZRInCg9ydW50aW1lX2NoYW' + '5uZWwYdSABKAlSDnJ1bnRpbWVDaGFubmVsEh4KCnRocmVhZHNhZmUYCyABKAhSCnRocmVhZHNh' + 'ZmUSDgoCdm0YDCABKAhSAnZtEicKD2FwcF9lbmdpbmVfYXBpcxiAASABKAhSDWFwcEVuZ2luZU' + 'FwaXMSVwoNYmV0YV9zZXR0aW5ncxgNIAMoCzIyLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlZl' + 'cnNpb24uQmV0YVNldHRpbmdzRW50cnlSDGJldGFTZXR0aW5ncxIQCgNlbnYYDiABKAlSA2Vudh' + 'JNCg5zZXJ2aW5nX3N0YXR1cxgPIAEoDjImLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlNlcnZp' + 'bmdTdGF0dXNSDXNlcnZpbmdTdGF0dXMSHQoKY3JlYXRlZF9ieRgQIAEoCVIJY3JlYXRlZEJ5Ej' + 'sKC2NyZWF0ZV90aW1lGBEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKY3JlYXRl' + 'VGltZRIoChBkaXNrX3VzYWdlX2J5dGVzGBIgASgDUg5kaXNrVXNhZ2VCeXRlcxIuChNydW50aW' + '1lX2FwaV92ZXJzaW9uGBUgASgJUhFydW50aW1lQXBpVmVyc2lvbhI/ChxydW50aW1lX21haW5f' + 'ZXhlY3V0YWJsZV9wYXRoGBYgASgJUhlydW50aW1lTWFpbkV4ZWN1dGFibGVQYXRoEicKD3Nlcn' + 'ZpY2VfYWNjb3VudBh/IAEoCVIOc2VydmljZUFjY291bnQSOwoIaGFuZGxlcnMYZCADKAsyHy5n' + 'b29nbGUuYXBwZW5naW5lLnYxYmV0YS5VcmxNYXBSCGhhbmRsZXJzEkwKDmVycm9yX2hhbmRsZX' + 'JzGGUgAygLMiUuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRXJyb3JIYW5kbGVyUg1lcnJvckhh' + 'bmRsZXJzEj4KCWxpYnJhcmllcxhmIAMoCzIgLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkxpYn' + 'JhcnlSCWxpYnJhcmllcxJICgphcGlfY29uZmlnGGcgASgLMikuZ29vZ2xlLmFwcGVuZ2luZS52' + 'MWJldGEuQXBpQ29uZmlnSGFuZGxlclIJYXBpQ29uZmlnElcKDWVudl92YXJpYWJsZXMYaCADKA' + 'syMi5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5WZXJzaW9uLkVudlZhcmlhYmxlc0VudHJ5Ugxl' + 'bnZWYXJpYWJsZXMSZwoTYnVpbGRfZW52X3ZhcmlhYmxlcxh9IAMoCzI3Lmdvb2dsZS5hcHBlbm' + 'dpbmUudjFiZXRhLlZlcnNpb24uQnVpbGRFbnZWYXJpYWJsZXNFbnRyeVIRYnVpbGRFbnZWYXJp' + 'YWJsZXMSSAoSZGVmYXVsdF9leHBpcmF0aW9uGGkgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cm' + 'F0aW9uUhFkZWZhdWx0RXhwaXJhdGlvbhJHCgxoZWFsdGhfY2hlY2sYaiABKAsyJC5nb29nbGUu' + 'YXBwZW5naW5lLnYxYmV0YS5IZWFsdGhDaGVja1ILaGVhbHRoQ2hlY2sSUAoPcmVhZGluZXNzX2' + 'NoZWNrGHAgASgLMicuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuUmVhZGluZXNzQ2hlY2tSDnJl' + 'YWRpbmVzc0NoZWNrEk0KDmxpdmVuZXNzX2NoZWNrGHEgASgLMiYuZ29vZ2xlLmFwcGVuZ2luZS' + '52MWJldGEuTGl2ZW5lc3NDaGVja1INbGl2ZW5lc3NDaGVjaxIuChNub2J1aWxkX2ZpbGVzX3Jl' + 'Z2V4GGsgASgJUhFub2J1aWxkRmlsZXNSZWdleBJDCgpkZXBsb3ltZW50GGwgASgLMiMuZ29vZ2' + 'xlLmFwcGVuZ2luZS52MWJldGEuRGVwbG95bWVudFIKZGVwbG95bWVudBIfCgt2ZXJzaW9uX3Vy' + 'bBhtIAEoCVIKdmVyc2lvblVybBJgChVlbmRwb2ludHNfYXBpX3NlcnZpY2UYbiABKAsyLC5nb2' + '9nbGUuYXBwZW5naW5lLnYxYmV0YS5FbmRwb2ludHNBcGlTZXJ2aWNlUhNlbmRwb2ludHNBcGlT' + 'ZXJ2aWNlEkMKCmVudHJ5cG9pbnQYeiABKAsyIy5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5Fbn' + 'RyeXBvaW50UgplbnRyeXBvaW50El0KFHZwY19hY2Nlc3NfY29ubmVjdG9yGHkgASgLMisuZ29v' + 'Z2xlLmFwcGVuZ2luZS52MWJldGEuVnBjQWNjZXNzQ29ubmVjdG9yUhJ2cGNBY2Nlc3NDb25uZW' + 'N0b3IaPwoRQmV0YVNldHRpbmdzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiAB' + 'KAlSBXZhbHVlOgI4ARo/ChFFbnZWYXJpYWJsZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCg' + 'V2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBGkQKFkJ1aWxkRW52VmFyaWFibGVzRW50cnkSEAoDa2V5' + 'GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AUIJCgdzY2FsaW5n'); + @$core.Deprecated('Use endpointsApiServiceDescriptor instead') const EndpointsApiService$json = { '1': 'EndpointsApiService', @@ -348,7 +407,13 @@ const EndpointsApiService_RolloutStrategy$json = { /// Descriptor for `EndpointsApiService`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List endpointsApiServiceDescriptor = $convert.base64Decode( - 'ChNFbmRwb2ludHNBcGlTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSGwoJY29uZmlnX2lkGAIgASgJUghjb25maWdJZBJnChByb2xsb3V0X3N0cmF0ZWd5GAMgASgOMjwuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuRW5kcG9pbnRzQXBpU2VydmljZS5Sb2xsb3V0U3RyYXRlZ3lSD3JvbGxvdXRTdHJhdGVneRI0ChZkaXNhYmxlX3RyYWNlX3NhbXBsaW5nGAQgASgIUhRkaXNhYmxlVHJhY2VTYW1wbGluZyJLCg9Sb2xsb3V0U3RyYXRlZ3kSIAocVU5TUEVDSUZJRURfUk9MTE9VVF9TVFJBVEVHWRAAEgkKBUZJWEVEEAESCwoHTUFOQUdFRBAC'); + 'ChNFbmRwb2ludHNBcGlTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWUSGwoJY29uZmlnX2lkGA' + 'IgASgJUghjb25maWdJZBJnChByb2xsb3V0X3N0cmF0ZWd5GAMgASgOMjwuZ29vZ2xlLmFwcGVu' + 'Z2luZS52MWJldGEuRW5kcG9pbnRzQXBpU2VydmljZS5Sb2xsb3V0U3RyYXRlZ3lSD3JvbGxvdX' + 'RTdHJhdGVneRI0ChZkaXNhYmxlX3RyYWNlX3NhbXBsaW5nGAQgASgIUhRkaXNhYmxlVHJhY2VT' + 'YW1wbGluZyJLCg9Sb2xsb3V0U3RyYXRlZ3kSIAocVU5TUEVDSUZJRURfUk9MTE9VVF9TVFJBVE' + 'VHWRAAEgkKBUZJWEVEEAESCwoHTUFOQUdFRBAC'); + @$core.Deprecated('Use automaticScalingDescriptor instead') const AutomaticScaling$json = { '1': 'AutomaticScaling', @@ -465,7 +530,26 @@ const AutomaticScaling$json = { /// Descriptor for `AutomaticScaling`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List automaticScalingDescriptor = $convert.base64Decode( - 'ChBBdXRvbWF0aWNTY2FsaW5nEkMKEGNvb2xfZG93bl9wZXJpb2QYASABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SDmNvb2xEb3duUGVyaW9kElAKD2NwdV91dGlsaXphdGlvbhgCIAEoCzInLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkNwdVV0aWxpemF0aW9uUg5jcHVVdGlsaXphdGlvbhI2ChdtYXhfY29uY3VycmVudF9yZXF1ZXN0cxgDIAEoBVIVbWF4Q29uY3VycmVudFJlcXVlc3RzEiwKEm1heF9pZGxlX2luc3RhbmNlcxgEIAEoBVIQbWF4SWRsZUluc3RhbmNlcxIuChNtYXhfdG90YWxfaW5zdGFuY2VzGAUgASgFUhFtYXhUb3RhbEluc3RhbmNlcxJJChNtYXhfcGVuZGluZ19sYXRlbmN5GAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhFtYXhQZW5kaW5nTGF0ZW5jeRIsChJtaW5faWRsZV9pbnN0YW5jZXMYByABKAVSEG1pbklkbGVJbnN0YW5jZXMSLgoTbWluX3RvdGFsX2luc3RhbmNlcxgIIAEoBVIRbWluVG90YWxJbnN0YW5jZXMSSQoTbWluX3BlbmRpbmdfbGF0ZW5jeRgJIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIRbWluUGVuZGluZ0xhdGVuY3kSXAoTcmVxdWVzdF91dGlsaXphdGlvbhgKIAEoCzIrLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlJlcXVlc3RVdGlsaXphdGlvblIScmVxdWVzdFV0aWxpemF0aW9uElMKEGRpc2tfdXRpbGl6YXRpb24YCyABKAsyKC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5EaXNrVXRpbGl6YXRpb25SD2Rpc2tVdGlsaXphdGlvbhJcChNuZXR3b3JrX3V0aWxpemF0aW9uGAwgASgLMisuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuTmV0d29ya1V0aWxpemF0aW9uUhJuZXR3b3JrVXRpbGl6YXRpb24STAoOY3VzdG9tX21ldHJpY3MYFSADKAsyJS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5DdXN0b21NZXRyaWNSDWN1c3RvbU1ldHJpY3MScgobc3RhbmRhcmRfc2NoZWR1bGVyX3NldHRpbmdzGBQgASgLMjIuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuU3RhbmRhcmRTY2hlZHVsZXJTZXR0aW5nc1IZc3RhbmRhcmRTY2hlZHVsZXJTZXR0aW5ncw=='); + 'ChBBdXRvbWF0aWNTY2FsaW5nEkMKEGNvb2xfZG93bl9wZXJpb2QYASABKAsyGS5nb29nbGUucH' + 'JvdG9idWYuRHVyYXRpb25SDmNvb2xEb3duUGVyaW9kElAKD2NwdV91dGlsaXphdGlvbhgCIAEo' + 'CzInLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLkNwdVV0aWxpemF0aW9uUg5jcHVVdGlsaXphdG' + 'lvbhI2ChdtYXhfY29uY3VycmVudF9yZXF1ZXN0cxgDIAEoBVIVbWF4Q29uY3VycmVudFJlcXVl' + 'c3RzEiwKEm1heF9pZGxlX2luc3RhbmNlcxgEIAEoBVIQbWF4SWRsZUluc3RhbmNlcxIuChNtYX' + 'hfdG90YWxfaW5zdGFuY2VzGAUgASgFUhFtYXhUb3RhbEluc3RhbmNlcxJJChNtYXhfcGVuZGlu' + 'Z19sYXRlbmN5GAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhFtYXhQZW5kaW5nTG' + 'F0ZW5jeRIsChJtaW5faWRsZV9pbnN0YW5jZXMYByABKAVSEG1pbklkbGVJbnN0YW5jZXMSLgoT' + 'bWluX3RvdGFsX2luc3RhbmNlcxgIIAEoBVIRbWluVG90YWxJbnN0YW5jZXMSSQoTbWluX3Blbm' + 'RpbmdfbGF0ZW5jeRgJIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIRbWluUGVuZGlu' + 'Z0xhdGVuY3kSXAoTcmVxdWVzdF91dGlsaXphdGlvbhgKIAEoCzIrLmdvb2dsZS5hcHBlbmdpbm' + 'UudjFiZXRhLlJlcXVlc3RVdGlsaXphdGlvblIScmVxdWVzdFV0aWxpemF0aW9uElMKEGRpc2tf' + 'dXRpbGl6YXRpb24YCyABKAsyKC5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5EaXNrVXRpbGl6YX' + 'Rpb25SD2Rpc2tVdGlsaXphdGlvbhJcChNuZXR3b3JrX3V0aWxpemF0aW9uGAwgASgLMisuZ29v' + 'Z2xlLmFwcGVuZ2luZS52MWJldGEuTmV0d29ya1V0aWxpemF0aW9uUhJuZXR3b3JrVXRpbGl6YX' + 'Rpb24STAoOY3VzdG9tX21ldHJpY3MYFSADKAsyJS5nb29nbGUuYXBwZW5naW5lLnYxYmV0YS5D' + 'dXN0b21NZXRyaWNSDWN1c3RvbU1ldHJpY3MScgobc3RhbmRhcmRfc2NoZWR1bGVyX3NldHRpbm' + 'dzGBQgASgLMjIuZ29vZ2xlLmFwcGVuZ2luZS52MWJldGEuU3RhbmRhcmRTY2hlZHVsZXJTZXR0' + 'aW5nc1IZc3RhbmRhcmRTY2hlZHVsZXJTZXR0aW5ncw=='); + @$core.Deprecated('Use basicScalingDescriptor instead') const BasicScaling$json = { '1': 'BasicScaling', @@ -484,7 +568,10 @@ const BasicScaling$json = { /// Descriptor for `BasicScaling`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List basicScalingDescriptor = $convert.base64Decode( - 'CgxCYXNpY1NjYWxpbmcSPAoMaWRsZV90aW1lb3V0GAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUgtpZGxlVGltZW91dBIjCg1tYXhfaW5zdGFuY2VzGAIgASgFUgxtYXhJbnN0YW5jZXM='); + 'CgxCYXNpY1NjYWxpbmcSPAoMaWRsZV90aW1lb3V0GAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLk' + 'R1cmF0aW9uUgtpZGxlVGltZW91dBIjCg1tYXhfaW5zdGFuY2VzGAIgASgFUgxtYXhJbnN0YW5j' + 'ZXM='); + @$core.Deprecated('Use manualScalingDescriptor instead') const ManualScaling$json = { '1': 'ManualScaling', @@ -496,6 +583,7 @@ const ManualScaling$json = { /// Descriptor for `ManualScaling`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List manualScalingDescriptor = $convert.base64Decode( 'Cg1NYW51YWxTY2FsaW5nEhwKCWluc3RhbmNlcxgBIAEoBVIJaW5zdGFuY2Vz'); + @$core.Deprecated('Use cpuUtilizationDescriptor instead') const CpuUtilization$json = { '1': 'CpuUtilization', @@ -520,7 +608,10 @@ const CpuUtilization$json = { /// Descriptor for `CpuUtilization`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List cpuUtilizationDescriptor = $convert.base64Decode( - 'Cg5DcHVVdGlsaXphdGlvbhJVChlhZ2dyZWdhdGlvbl93aW5kb3dfbGVuZ3RoGAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhdhZ2dyZWdhdGlvbldpbmRvd0xlbmd0aBItChJ0YXJnZXRfdXRpbGl6YXRpb24YAiABKAFSEXRhcmdldFV0aWxpemF0aW9u'); + 'Cg5DcHVVdGlsaXphdGlvbhJVChlhZ2dyZWdhdGlvbl93aW5kb3dfbGVuZ3RoGAEgASgLMhkuZ2' + '9vZ2xlLnByb3RvYnVmLkR1cmF0aW9uUhdhZ2dyZWdhdGlvbldpbmRvd0xlbmd0aBItChJ0YXJn' + 'ZXRfdXRpbGl6YXRpb24YAiABKAFSEXRhcmdldFV0aWxpemF0aW9u'); + @$core.Deprecated('Use requestUtilizationDescriptor instead') const RequestUtilization$json = { '1': 'RequestUtilization', @@ -544,7 +635,10 @@ const RequestUtilization$json = { /// Descriptor for `RequestUtilization`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List requestUtilizationDescriptor = $convert.base64Decode( - 'ChJSZXF1ZXN0VXRpbGl6YXRpb24SRAofdGFyZ2V0X3JlcXVlc3RfY291bnRfcGVyX3NlY29uZBgBIAEoBVIbdGFyZ2V0UmVxdWVzdENvdW50UGVyU2Vjb25kEjwKGnRhcmdldF9jb25jdXJyZW50X3JlcXVlc3RzGAIgASgFUhh0YXJnZXRDb25jdXJyZW50UmVxdWVzdHM='); + 'ChJSZXF1ZXN0VXRpbGl6YXRpb24SRAofdGFyZ2V0X3JlcXVlc3RfY291bnRfcGVyX3NlY29uZB' + 'gBIAEoBVIbdGFyZ2V0UmVxdWVzdENvdW50UGVyU2Vjb25kEjwKGnRhcmdldF9jb25jdXJyZW50' + 'X3JlcXVlc3RzGAIgASgFUhh0YXJnZXRDb25jdXJyZW50UmVxdWVzdHM='); + @$core.Deprecated('Use diskUtilizationDescriptor instead') const DiskUtilization$json = { '1': 'DiskUtilization', @@ -582,7 +676,12 @@ const DiskUtilization$json = { /// Descriptor for `DiskUtilization`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List diskUtilizationDescriptor = $convert.base64Decode( - 'Cg9EaXNrVXRpbGl6YXRpb24SQAoddGFyZ2V0X3dyaXRlX2J5dGVzX3Blcl9zZWNvbmQYDiABKAVSGXRhcmdldFdyaXRlQnl0ZXNQZXJTZWNvbmQSPAobdGFyZ2V0X3dyaXRlX29wc19wZXJfc2Vjb25kGA8gASgFUhd0YXJnZXRXcml0ZU9wc1BlclNlY29uZBI+Chx0YXJnZXRfcmVhZF9ieXRlc19wZXJfc2Vjb25kGBAgASgFUhh0YXJnZXRSZWFkQnl0ZXNQZXJTZWNvbmQSOgoadGFyZ2V0X3JlYWRfb3BzX3Blcl9zZWNvbmQYESABKAVSFnRhcmdldFJlYWRPcHNQZXJTZWNvbmQ='); + 'Cg9EaXNrVXRpbGl6YXRpb24SQAoddGFyZ2V0X3dyaXRlX2J5dGVzX3Blcl9zZWNvbmQYDiABKA' + 'VSGXRhcmdldFdyaXRlQnl0ZXNQZXJTZWNvbmQSPAobdGFyZ2V0X3dyaXRlX29wc19wZXJfc2Vj' + 'b25kGA8gASgFUhd0YXJnZXRXcml0ZU9wc1BlclNlY29uZBI+Chx0YXJnZXRfcmVhZF9ieXRlc1' + '9wZXJfc2Vjb25kGBAgASgFUhh0YXJnZXRSZWFkQnl0ZXNQZXJTZWNvbmQSOgoadGFyZ2V0X3Jl' + 'YWRfb3BzX3Blcl9zZWNvbmQYESABKAVSFnRhcmdldFJlYWRPcHNQZXJTZWNvbmQ='); + @$core.Deprecated('Use networkUtilizationDescriptor instead') const NetworkUtilization$json = { '1': 'NetworkUtilization', @@ -620,7 +719,13 @@ const NetworkUtilization$json = { /// Descriptor for `NetworkUtilization`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List networkUtilizationDescriptor = $convert.base64Decode( - 'ChJOZXR3b3JrVXRpbGl6YXRpb24SPgocdGFyZ2V0X3NlbnRfYnl0ZXNfcGVyX3NlY29uZBgBIAEoBVIYdGFyZ2V0U2VudEJ5dGVzUGVyU2Vjb25kEkIKHnRhcmdldF9zZW50X3BhY2tldHNfcGVyX3NlY29uZBgLIAEoBVIadGFyZ2V0U2VudFBhY2tldHNQZXJTZWNvbmQSRgogdGFyZ2V0X3JlY2VpdmVkX2J5dGVzX3Blcl9zZWNvbmQYDCABKAVSHHRhcmdldFJlY2VpdmVkQnl0ZXNQZXJTZWNvbmQSSgoidGFyZ2V0X3JlY2VpdmVkX3BhY2tldHNfcGVyX3NlY29uZBgNIAEoBVIedGFyZ2V0UmVjZWl2ZWRQYWNrZXRzUGVyU2Vjb25k'); + 'ChJOZXR3b3JrVXRpbGl6YXRpb24SPgocdGFyZ2V0X3NlbnRfYnl0ZXNfcGVyX3NlY29uZBgBIA' + 'EoBVIYdGFyZ2V0U2VudEJ5dGVzUGVyU2Vjb25kEkIKHnRhcmdldF9zZW50X3BhY2tldHNfcGVy' + 'X3NlY29uZBgLIAEoBVIadGFyZ2V0U2VudFBhY2tldHNQZXJTZWNvbmQSRgogdGFyZ2V0X3JlY2' + 'VpdmVkX2J5dGVzX3Blcl9zZWNvbmQYDCABKAVSHHRhcmdldFJlY2VpdmVkQnl0ZXNQZXJTZWNv' + 'bmQSSgoidGFyZ2V0X3JlY2VpdmVkX3BhY2tldHNfcGVyX3NlY29uZBgNIAEoBVIedGFyZ2V0Um' + 'VjZWl2ZWRQYWNrZXRzUGVyU2Vjb25k'); + @$core.Deprecated('Use customMetricDescriptor instead') const CustomMetric$json = { '1': 'CustomMetric', @@ -652,7 +757,12 @@ const CustomMetric$json = { /// Descriptor for `CustomMetric`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List customMetricDescriptor = $convert.base64Decode( - 'CgxDdXN0b21NZXRyaWMSHwoLbWV0cmljX25hbWUYASABKAlSCm1ldHJpY05hbWUSHwoLdGFyZ2V0X3R5cGUYAiABKAlSCnRhcmdldFR5cGUSLwoSdGFyZ2V0X3V0aWxpemF0aW9uGAMgASgBSABSEXRhcmdldFV0aWxpemF0aW9uEj4KGnNpbmdsZV9pbnN0YW5jZV9hc3NpZ25tZW50GAQgASgBSABSGHNpbmdsZUluc3RhbmNlQXNzaWdubWVudBIWCgZmaWx0ZXIYBSABKAlSBmZpbHRlckINCgt0YXJnZXRfc3BlYw=='); + 'CgxDdXN0b21NZXRyaWMSHwoLbWV0cmljX25hbWUYASABKAlSCm1ldHJpY05hbWUSHwoLdGFyZ2' + 'V0X3R5cGUYAiABKAlSCnRhcmdldFR5cGUSLwoSdGFyZ2V0X3V0aWxpemF0aW9uGAMgASgBSABS' + 'EXRhcmdldFV0aWxpemF0aW9uEj4KGnNpbmdsZV9pbnN0YW5jZV9hc3NpZ25tZW50GAQgASgBSA' + 'BSGHNpbmdsZUluc3RhbmNlQXNzaWdubWVudBIWCgZmaWx0ZXIYBSABKAlSBmZpbHRlckINCgt0' + 'YXJnZXRfc3BlYw=='); + @$core.Deprecated('Use standardSchedulerSettingsDescriptor instead') const StandardSchedulerSettings$json = { '1': 'StandardSchedulerSettings', @@ -677,9 +787,13 @@ const StandardSchedulerSettings$json = { }; /// Descriptor for `StandardSchedulerSettings`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List standardSchedulerSettingsDescriptor = - $convert.base64Decode( - 'ChlTdGFuZGFyZFNjaGVkdWxlclNldHRpbmdzEjQKFnRhcmdldF9jcHVfdXRpbGl6YXRpb24YASABKAFSFHRhcmdldENwdVV0aWxpemF0aW9uEkIKHXRhcmdldF90aHJvdWdocHV0X3V0aWxpemF0aW9uGAIgASgBUht0YXJnZXRUaHJvdWdocHV0VXRpbGl6YXRpb24SIwoNbWluX2luc3RhbmNlcxgDIAEoBVIMbWluSW5zdGFuY2VzEiMKDW1heF9pbnN0YW5jZXMYBCABKAVSDG1heEluc3RhbmNlcw=='); +final $typed_data.Uint8List standardSchedulerSettingsDescriptor = $convert.base64Decode( + 'ChlTdGFuZGFyZFNjaGVkdWxlclNldHRpbmdzEjQKFnRhcmdldF9jcHVfdXRpbGl6YXRpb24YAS' + 'ABKAFSFHRhcmdldENwdVV0aWxpemF0aW9uEkIKHXRhcmdldF90aHJvdWdocHV0X3V0aWxpemF0' + 'aW9uGAIgASgBUht0YXJnZXRUaHJvdWdocHV0VXRpbGl6YXRpb24SIwoNbWluX2luc3RhbmNlcx' + 'gDIAEoBVIMbWluSW5zdGFuY2VzEiMKDW1heF9pbnN0YW5jZXMYBCABKAVSDG1heEluc3RhbmNl' + 'cw=='); + @$core.Deprecated('Use networkDescriptor instead') const Network$json = { '1': 'Network', @@ -694,7 +808,11 @@ const Network$json = { /// Descriptor for `Network`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List networkDescriptor = $convert.base64Decode( - 'CgdOZXR3b3JrEicKD2ZvcndhcmRlZF9wb3J0cxgBIAMoCVIOZm9yd2FyZGVkUG9ydHMSIQoMaW5zdGFuY2VfdGFnGAIgASgJUgtpbnN0YW5jZVRhZxISCgRuYW1lGAMgASgJUgRuYW1lEicKD3N1Ym5ldHdvcmtfbmFtZRgEIAEoCVIOc3VibmV0d29ya05hbWUSKQoQc2Vzc2lvbl9hZmZpbml0eRgFIAEoCFIPc2Vzc2lvbkFmZmluaXR5'); + 'CgdOZXR3b3JrEicKD2ZvcndhcmRlZF9wb3J0cxgBIAMoCVIOZm9yd2FyZGVkUG9ydHMSIQoMaW' + '5zdGFuY2VfdGFnGAIgASgJUgtpbnN0YW5jZVRhZxISCgRuYW1lGAMgASgJUgRuYW1lEicKD3N1' + 'Ym5ldHdvcmtfbmFtZRgEIAEoCVIOc3VibmV0d29ya05hbWUSKQoQc2Vzc2lvbl9hZmZpbml0eR' + 'gFIAEoCFIPc2Vzc2lvbkFmZmluaXR5'); + @$core.Deprecated('Use volumeDescriptor instead') const Volume$json = { '1': 'Volume', @@ -707,7 +825,9 @@ const Volume$json = { /// Descriptor for `Volume`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List volumeDescriptor = $convert.base64Decode( - 'CgZWb2x1bWUSEgoEbmFtZRgBIAEoCVIEbmFtZRIfCgt2b2x1bWVfdHlwZRgCIAEoCVIKdm9sdW1lVHlwZRIXCgdzaXplX2diGAMgASgBUgZzaXplR2I='); + 'CgZWb2x1bWUSEgoEbmFtZRgBIAEoCVIEbmFtZRIfCgt2b2x1bWVfdHlwZRgCIAEoCVIKdm9sdW' + '1lVHlwZRIXCgdzaXplX2diGAMgASgBUgZzaXplR2I='); + @$core.Deprecated('Use resourcesDescriptor instead') const Resources$json = { '1': 'Resources', @@ -729,7 +849,11 @@ const Resources$json = { /// Descriptor for `Resources`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List resourcesDescriptor = $convert.base64Decode( - 'CglSZXNvdXJjZXMSEAoDY3B1GAEgASgBUgNjcHUSFwoHZGlza19nYhgCIAEoAVIGZGlza0diEhsKCW1lbW9yeV9nYhgDIAEoAVIIbWVtb3J5R2ISOQoHdm9sdW1lcxgEIAMoCzIfLmdvb2dsZS5hcHBlbmdpbmUudjFiZXRhLlZvbHVtZVIHdm9sdW1lcxIqChFrbXNfa2V5X3JlZmVyZW5jZRgFIAEoCVIPa21zS2V5UmVmZXJlbmNl'); + 'CglSZXNvdXJjZXMSEAoDY3B1GAEgASgBUgNjcHUSFwoHZGlza19nYhgCIAEoAVIGZGlza0diEh' + 'sKCW1lbW9yeV9nYhgDIAEoAVIIbWVtb3J5R2ISOQoHdm9sdW1lcxgEIAMoCzIfLmdvb2dsZS5h' + 'cHBlbmdpbmUudjFiZXRhLlZvbHVtZVIHdm9sdW1lcxIqChFrbXNfa2V5X3JlZmVyZW5jZRgFIA' + 'EoCVIPa21zS2V5UmVmZXJlbmNl'); + @$core.Deprecated('Use vpcAccessConnectorDescriptor instead') const VpcAccessConnector$json = { '1': 'VpcAccessConnector', @@ -741,6 +865,7 @@ const VpcAccessConnector$json = { /// Descriptor for `VpcAccessConnector`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List vpcAccessConnectorDescriptor = $convert .base64Decode('ChJWcGNBY2Nlc3NDb25uZWN0b3ISEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use entrypointDescriptor instead') const Entrypoint$json = { '1': 'Entrypoint', diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pb.dart index ebbc10d9..965e08c7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pb.dart @@ -1,81 +1,87 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1/datastore_admin.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../protobuf/timestamp.pb.dart' as $4; -import 'index.pb.dart' as $3; - +import '../../../protobuf/timestamp.pb.dart' as $50; import 'datastore_admin.pbenum.dart'; +import 'index.pb.dart' as $24; +import 'migration.pbenum.dart' as $79; export 'datastore_admin.pbenum.dart'; +/// Metadata common to all Datastore Admin operations. class CommonMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CommonMetadata', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOM<$4.Timestamp>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startTime', - subBuilder: $4.Timestamp.create) - ..aOM<$4.Timestamp>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endTime', - subBuilder: $4.Timestamp.create) - ..e(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'operationType', $pb.PbFieldType.OE, - defaultOrMaker: OperationType.OPERATION_TYPE_UNSPECIFIED, - valueOf: OperationType.valueOf, - enumValues: OperationType.values) - ..m<$core.String, $core.String>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - entryClassName: 'CommonMetadata.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.datastore.admin.v1')) - ..e( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', $pb.PbFieldType.OE, - defaultOrMaker: CommonMetadata_State.STATE_UNSPECIFIED, - valueOf: CommonMetadata_State.valueOf, - enumValues: CommonMetadata_State.values) - ..hasRequiredFields = false; - - CommonMetadata._() : super(); factory CommonMetadata({ - $4.Timestamp? startTime, - $4.Timestamp? endTime, + $50.Timestamp? startTime, + $50.Timestamp? endTime, OperationType? operationType, $core.Map<$core.String, $core.String>? labels, CommonMetadata_State? state, }) { - final _result = create(); + final $result = create(); if (startTime != null) { - _result.startTime = startTime; + $result.startTime = startTime; } if (endTime != null) { - _result.endTime = endTime; + $result.endTime = endTime; } if (operationType != null) { - _result.operationType = operationType; + $result.operationType = operationType; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (state != null) { - _result.state = state; + $result.state = state; } - return _result; + return $result; } + CommonMetadata._() : super(); factory CommonMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CommonMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CommonMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(2, _omitFieldNames ? '' : 'endTime', + subBuilder: $50.Timestamp.create) + ..e( + 3, _omitFieldNames ? '' : 'operationType', $pb.PbFieldType.OE, + defaultOrMaker: OperationType.OPERATION_TYPE_UNSPECIFIED, + valueOf: OperationType.valueOf, + enumValues: OperationType.values) + ..m<$core.String, $core.String>(4, _omitFieldNames ? '' : 'labels', + entryClassName: 'CommonMetadata.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.datastore.admin.v1')) + ..e( + 5, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: CommonMetadata_State.STATE_UNSPECIFIED, + valueOf: CommonMetadata_State.valueOf, + enumValues: CommonMetadata_State.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -85,8 +91,10 @@ class CommonMetadata extends $pb.GeneratedMessage { 'Will be removed in next major version') CommonMetadata copyWith(void Function(CommonMetadata) updates) => super.copyWith((message) => updates(message as CommonMetadata)) - as CommonMetadata; // ignore: deprecated_member_use + as CommonMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CommonMetadata create() => CommonMetadata._(); CommonMetadata createEmptyInstance() => create(); @@ -97,10 +105,11 @@ class CommonMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CommonMetadata? _defaultInstance; + /// The time that work began on the operation. @$pb.TagNumber(1) - $4.Timestamp get startTime => $_getN(0); + $50.Timestamp get startTime => $_getN(0); @$pb.TagNumber(1) - set startTime($4.Timestamp v) { + set startTime($50.Timestamp v) { setField(1, v); } @@ -109,12 +118,13 @@ class CommonMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearStartTime() => clearField(1); @$pb.TagNumber(1) - $4.Timestamp ensureStartTime() => $_ensure(0); + $50.Timestamp ensureStartTime() => $_ensure(0); + /// The time the operation ended, either successfully or otherwise. @$pb.TagNumber(2) - $4.Timestamp get endTime => $_getN(1); + $50.Timestamp get endTime => $_getN(1); @$pb.TagNumber(2) - set endTime($4.Timestamp v) { + set endTime($50.Timestamp v) { setField(2, v); } @@ -123,8 +133,10 @@ class CommonMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearEndTime() => clearField(2); @$pb.TagNumber(2) - $4.Timestamp ensureEndTime() => $_ensure(1); + $50.Timestamp ensureEndTime() => $_ensure(1); + /// The type of the operation. Can be used as a filter in + /// ListOperationsRequest. @$pb.TagNumber(3) OperationType get operationType => $_getN(2); @$pb.TagNumber(3) @@ -137,9 +149,12 @@ class CommonMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearOperationType() => clearField(3); + /// The client-assigned labels which were provided when the operation was + /// created. May also include additional labels. @$pb.TagNumber(4) $core.Map<$core.String, $core.String> get labels => $_getMap(3); + /// The current state of the Operation. @$pb.TagNumber(5) CommonMetadata_State get state => $_getN(4); @$pb.TagNumber(5) @@ -153,48 +168,38 @@ class CommonMetadata extends $pb.GeneratedMessage { void clearState() => clearField(5); } +/// Measures the progress of a particular metric. class Progress extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Progress', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'workCompleted') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'workEstimated') - ..hasRequiredFields = false; - - Progress._() : super(); factory Progress({ $fixnum.Int64? workCompleted, $fixnum.Int64? workEstimated, }) { - final _result = create(); + final $result = create(); if (workCompleted != null) { - _result.workCompleted = workCompleted; + $result.workCompleted = workCompleted; } if (workEstimated != null) { - _result.workEstimated = workEstimated; + $result.workEstimated = workEstimated; } - return _result; + return $result; } + Progress._() : super(); factory Progress.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Progress.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Progress', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'workCompleted') + ..aInt64(2, _omitFieldNames ? '' : 'workEstimated') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -203,9 +208,10 @@ class Progress extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Progress copyWith(void Function(Progress) updates) => - super.copyWith((message) => updates(message as Progress)) - as Progress; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Progress)) as Progress; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Progress create() => Progress._(); Progress createEmptyInstance() => create(); @@ -215,6 +221,8 @@ class Progress extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Progress? _defaultInstance; + /// The amount of work that has been completed. Note that this may be greater + /// than work_estimated. @$pb.TagNumber(1) $fixnum.Int64 get workCompleted => $_getI64(0); @$pb.TagNumber(1) @@ -227,6 +235,8 @@ class Progress extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearWorkCompleted() => clearField(1); + /// An estimate of how much work needs to be performed. May be zero if the + /// work estimate is unavailable. @$pb.TagNumber(2) $fixnum.Int64 get workEstimated => $_getI64(1); @$pb.TagNumber(2) @@ -240,61 +250,54 @@ class Progress extends $pb.GeneratedMessage { void clearWorkEstimated() => clearField(2); } +/// The request for +/// [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities]. class ExportEntitiesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ExportEntitiesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..m<$core.String, $core.String>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - entryClassName: 'ExportEntitiesRequest.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.datastore.admin.v1')) - ..aOM(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityFilter', - subBuilder: EntityFilter.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputUrlPrefix') - ..hasRequiredFields = false; - - ExportEntitiesRequest._() : super(); factory ExportEntitiesRequest({ $core.String? projectId, $core.Map<$core.String, $core.String>? labels, EntityFilter? entityFilter, $core.String? outputUrlPrefix, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (entityFilter != null) { - _result.entityFilter = entityFilter; + $result.entityFilter = entityFilter; } if (outputUrlPrefix != null) { - _result.outputUrlPrefix = outputUrlPrefix; + $result.outputUrlPrefix = outputUrlPrefix; } - return _result; + return $result; } + ExportEntitiesRequest._() : super(); factory ExportEntitiesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ExportEntitiesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExportEntitiesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'projectId') + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'labels', + entryClassName: 'ExportEntitiesRequest.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.datastore.admin.v1')) + ..aOM(3, _omitFieldNames ? '' : 'entityFilter', + subBuilder: EntityFilter.create) + ..aOS(4, _omitFieldNames ? '' : 'outputUrlPrefix') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -306,8 +309,10 @@ class ExportEntitiesRequest extends $pb.GeneratedMessage { ExportEntitiesRequest copyWith( void Function(ExportEntitiesRequest) updates) => super.copyWith((message) => updates(message as ExportEntitiesRequest)) - as ExportEntitiesRequest; // ignore: deprecated_member_use + as ExportEntitiesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ExportEntitiesRequest create() => ExportEntitiesRequest._(); ExportEntitiesRequest createEmptyInstance() => create(); @@ -318,6 +323,7 @@ class ExportEntitiesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ExportEntitiesRequest? _defaultInstance; + /// Required. Project ID against which to make the request. @$pb.TagNumber(1) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(1) @@ -330,9 +336,11 @@ class ExportEntitiesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProjectId() => clearField(1); + /// Client-assigned labels. @$pb.TagNumber(2) $core.Map<$core.String, $core.String> get labels => $_getMap(1); + /// Description of what data from the project is included in the export. @$pb.TagNumber(3) EntityFilter get entityFilter => $_getN(2); @$pb.TagNumber(3) @@ -347,6 +355,24 @@ class ExportEntitiesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) EntityFilter ensureEntityFilter() => $_ensure(2); + /// Required. Location for the export metadata and data files. + /// + /// The full resource URL of the external storage location. Currently, only + /// Google Cloud Storage is supported. So output_url_prefix should be of the + /// form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the + /// name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud + /// Storage namespace path (this is not a Cloud Datastore namespace). For more + /// information about Cloud Storage namespace paths, see + /// [Object name + /// considerations](https://cloud.google.com/storage/docs/naming#object-considerations). + /// + /// The resulting files will be nested deeper than the specified URL prefix. + /// The final output URL will be provided in the + /// [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] + /// field. That value should be used for subsequent ImportEntities operations. + /// + /// By nesting the data files deeper, the same Cloud Storage bucket can be used + /// in multiple ExportEntities operations without conflict. @$pb.TagNumber(4) $core.String get outputUrlPrefix => $_getSZ(3); @$pb.TagNumber(4) @@ -360,63 +386,54 @@ class ExportEntitiesRequest extends $pb.GeneratedMessage { void clearOutputUrlPrefix() => clearField(4); } +/// The request for +/// [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities]. class ImportEntitiesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = - $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ImportEntitiesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..m<$core.String, $core.String>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - entryClassName: 'ImportEntitiesRequest.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.datastore.admin.v1')) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'inputUrl') - ..aOM( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityFilter', - subBuilder: EntityFilter.create) - ..hasRequiredFields = false; - - ImportEntitiesRequest._() : super(); factory ImportEntitiesRequest({ $core.String? projectId, $core.Map<$core.String, $core.String>? labels, $core.String? inputUrl, EntityFilter? entityFilter, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (inputUrl != null) { - _result.inputUrl = inputUrl; + $result.inputUrl = inputUrl; } if (entityFilter != null) { - _result.entityFilter = entityFilter; + $result.entityFilter = entityFilter; } - return _result; + return $result; } + ImportEntitiesRequest._() : super(); factory ImportEntitiesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportEntitiesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportEntitiesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'projectId') + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'labels', + entryClassName: 'ImportEntitiesRequest.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.datastore.admin.v1')) + ..aOS(3, _omitFieldNames ? '' : 'inputUrl') + ..aOM(4, _omitFieldNames ? '' : 'entityFilter', + subBuilder: EntityFilter.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') @@ -428,8 +445,10 @@ class ImportEntitiesRequest extends $pb.GeneratedMessage { ImportEntitiesRequest copyWith( void Function(ImportEntitiesRequest) updates) => super.copyWith((message) => updates(message as ImportEntitiesRequest)) - as ImportEntitiesRequest; // ignore: deprecated_member_use + as ImportEntitiesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportEntitiesRequest create() => ImportEntitiesRequest._(); ImportEntitiesRequest createEmptyInstance() => create(); @@ -440,6 +459,7 @@ class ImportEntitiesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ImportEntitiesRequest? _defaultInstance; + /// Required. Project ID against which to make the request. @$pb.TagNumber(1) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(1) @@ -452,9 +472,24 @@ class ImportEntitiesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProjectId() => clearField(1); + /// Client-assigned labels. @$pb.TagNumber(2) $core.Map<$core.String, $core.String> get labels => $_getMap(1); + /// Required. The full resource URL of the external storage location. + /// Currently, only Google Cloud Storage is supported. So input_url should be + /// of the form: + /// `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where + /// `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is + /// an optional Cloud Storage namespace path (this is not a Cloud Datastore + /// namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written + /// by the ExportEntities operation. For more information about Cloud Storage + /// namespace paths, see + /// [Object name + /// considerations](https://cloud.google.com/storage/docs/naming#object-considerations). + /// + /// For more information, see + /// [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. @$pb.TagNumber(3) $core.String get inputUrl => $_getSZ(2); @$pb.TagNumber(3) @@ -467,6 +502,10 @@ class ImportEntitiesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearInputUrl() => clearField(3); + /// Optionally specify which kinds/namespaces are to be imported. If provided, + /// the list must be a subset of the EntityFilter used in creating the export, + /// otherwise a FAILED_PRECONDITION error will be returned. If no filter is + /// specified then all entities from the export are imported. @$pb.TagNumber(4) EntityFilter get entityFilter => $_getN(3); @$pb.TagNumber(4) @@ -482,39 +521,34 @@ class ImportEntitiesRequest extends $pb.GeneratedMessage { EntityFilter ensureEntityFilter() => $_ensure(3); } +/// The response for +/// [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities]. class ExportEntitiesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ExportEntitiesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'outputUrl') - ..hasRequiredFields = false; - - ExportEntitiesResponse._() : super(); factory ExportEntitiesResponse({ $core.String? outputUrl, }) { - final _result = create(); + final $result = create(); if (outputUrl != null) { - _result.outputUrl = outputUrl; + $result.outputUrl = outputUrl; } - return _result; + return $result; } + ExportEntitiesResponse._() : super(); factory ExportEntitiesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ExportEntitiesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExportEntitiesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'outputUrl') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -526,8 +560,10 @@ class ExportEntitiesResponse extends $pb.GeneratedMessage { ExportEntitiesResponse copyWith( void Function(ExportEntitiesResponse) updates) => super.copyWith((message) => updates(message as ExportEntitiesResponse)) - as ExportEntitiesResponse; // ignore: deprecated_member_use + as ExportEntitiesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ExportEntitiesResponse create() => ExportEntitiesResponse._(); ExportEntitiesResponse createEmptyInstance() => create(); @@ -538,6 +574,10 @@ class ExportEntitiesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ExportEntitiesResponse? _defaultInstance; + /// Location of the output metadata file. This can be used to begin an import + /// into Cloud Datastore (this project or another project). See + /// [google.datastore.admin.v1.ImportEntitiesRequest.input_url][google.datastore.admin.v1.ImportEntitiesRequest.input_url]. + /// Only present if the operation completed successfully. @$pb.TagNumber(1) $core.String get outputUrl => $_getSZ(0); @$pb.TagNumber(1) @@ -551,29 +591,8 @@ class ExportEntitiesResponse extends $pb.GeneratedMessage { void clearOutputUrl() => clearField(1); } +/// Metadata for ExportEntities operations. class ExportEntitiesMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ExportEntitiesMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'common', - subBuilder: CommonMetadata.create) - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'progressEntities', - subBuilder: Progress.create) - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'progressBytes', - subBuilder: Progress.create) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityFilter', subBuilder: EntityFilter.create) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputUrlPrefix') - ..hasRequiredFields = false; - - ExportEntitiesMetadata._() : super(); factory ExportEntitiesMetadata({ CommonMetadata? common, Progress? progressEntities, @@ -581,30 +600,48 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { EntityFilter? entityFilter, $core.String? outputUrlPrefix, }) { - final _result = create(); + final $result = create(); if (common != null) { - _result.common = common; + $result.common = common; } if (progressEntities != null) { - _result.progressEntities = progressEntities; + $result.progressEntities = progressEntities; } if (progressBytes != null) { - _result.progressBytes = progressBytes; + $result.progressBytes = progressBytes; } if (entityFilter != null) { - _result.entityFilter = entityFilter; + $result.entityFilter = entityFilter; } if (outputUrlPrefix != null) { - _result.outputUrlPrefix = outputUrlPrefix; + $result.outputUrlPrefix = outputUrlPrefix; } - return _result; + return $result; } + ExportEntitiesMetadata._() : super(); factory ExportEntitiesMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ExportEntitiesMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExportEntitiesMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonMetadata.create) + ..aOM(2, _omitFieldNames ? '' : 'progressEntities', + subBuilder: Progress.create) + ..aOM(3, _omitFieldNames ? '' : 'progressBytes', + subBuilder: Progress.create) + ..aOM(4, _omitFieldNames ? '' : 'entityFilter', + subBuilder: EntityFilter.create) + ..aOS(5, _omitFieldNames ? '' : 'outputUrlPrefix') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -616,8 +653,10 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { ExportEntitiesMetadata copyWith( void Function(ExportEntitiesMetadata) updates) => super.copyWith((message) => updates(message as ExportEntitiesMetadata)) - as ExportEntitiesMetadata; // ignore: deprecated_member_use + as ExportEntitiesMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ExportEntitiesMetadata create() => ExportEntitiesMetadata._(); ExportEntitiesMetadata createEmptyInstance() => create(); @@ -628,6 +667,7 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ExportEntitiesMetadata? _defaultInstance; + /// Metadata common to all Datastore Admin operations. @$pb.TagNumber(1) CommonMetadata get common => $_getN(0); @$pb.TagNumber(1) @@ -642,6 +682,7 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(1) CommonMetadata ensureCommon() => $_ensure(0); + /// An estimate of the number of entities processed. @$pb.TagNumber(2) Progress get progressEntities => $_getN(1); @$pb.TagNumber(2) @@ -656,6 +697,7 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) Progress ensureProgressEntities() => $_ensure(1); + /// An estimate of the number of bytes processed. @$pb.TagNumber(3) Progress get progressBytes => $_getN(2); @$pb.TagNumber(3) @@ -670,6 +712,7 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(3) Progress ensureProgressBytes() => $_ensure(2); + /// Description of which entities are being exported. @$pb.TagNumber(4) EntityFilter get entityFilter => $_getN(3); @$pb.TagNumber(4) @@ -684,6 +727,11 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(4) EntityFilter ensureEntityFilter() => $_ensure(3); + /// Location for the export metadata and data files. This will be the same + /// value as the + /// [google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix] + /// field. The final output location is provided in + /// [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. @$pb.TagNumber(5) $core.String get outputUrlPrefix => $_getSZ(4); @$pb.TagNumber(5) @@ -697,29 +745,8 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { void clearOutputUrlPrefix() => clearField(5); } +/// Metadata for ImportEntities operations. class ImportEntitiesMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ImportEntitiesMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'common', - subBuilder: CommonMetadata.create) - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'progressEntities', - subBuilder: Progress.create) - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'progressBytes', - subBuilder: Progress.create) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityFilter', subBuilder: EntityFilter.create) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'inputUrl') - ..hasRequiredFields = false; - - ImportEntitiesMetadata._() : super(); factory ImportEntitiesMetadata({ CommonMetadata? common, Progress? progressEntities, @@ -727,30 +754,48 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { EntityFilter? entityFilter, $core.String? inputUrl, }) { - final _result = create(); + final $result = create(); if (common != null) { - _result.common = common; + $result.common = common; } if (progressEntities != null) { - _result.progressEntities = progressEntities; + $result.progressEntities = progressEntities; } if (progressBytes != null) { - _result.progressBytes = progressBytes; + $result.progressBytes = progressBytes; } if (entityFilter != null) { - _result.entityFilter = entityFilter; + $result.entityFilter = entityFilter; } if (inputUrl != null) { - _result.inputUrl = inputUrl; + $result.inputUrl = inputUrl; } - return _result; + return $result; } + ImportEntitiesMetadata._() : super(); factory ImportEntitiesMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportEntitiesMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportEntitiesMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonMetadata.create) + ..aOM(2, _omitFieldNames ? '' : 'progressEntities', + subBuilder: Progress.create) + ..aOM(3, _omitFieldNames ? '' : 'progressBytes', + subBuilder: Progress.create) + ..aOM(4, _omitFieldNames ? '' : 'entityFilter', + subBuilder: EntityFilter.create) + ..aOS(5, _omitFieldNames ? '' : 'inputUrl') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -762,8 +807,10 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { ImportEntitiesMetadata copyWith( void Function(ImportEntitiesMetadata) updates) => super.copyWith((message) => updates(message as ImportEntitiesMetadata)) - as ImportEntitiesMetadata; // ignore: deprecated_member_use + as ImportEntitiesMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportEntitiesMetadata create() => ImportEntitiesMetadata._(); ImportEntitiesMetadata createEmptyInstance() => create(); @@ -774,6 +821,7 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ImportEntitiesMetadata? _defaultInstance; + /// Metadata common to all Datastore Admin operations. @$pb.TagNumber(1) CommonMetadata get common => $_getN(0); @$pb.TagNumber(1) @@ -788,6 +836,7 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(1) CommonMetadata ensureCommon() => $_ensure(0); + /// An estimate of the number of entities processed. @$pb.TagNumber(2) Progress get progressEntities => $_getN(1); @$pb.TagNumber(2) @@ -802,6 +851,7 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) Progress ensureProgressEntities() => $_ensure(1); + /// An estimate of the number of bytes processed. @$pb.TagNumber(3) Progress get progressBytes => $_getN(2); @$pb.TagNumber(3) @@ -816,6 +866,7 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(3) Progress ensureProgressBytes() => $_ensure(2); + /// Description of which entities are being imported. @$pb.TagNumber(4) EntityFilter get entityFilter => $_getN(3); @$pb.TagNumber(4) @@ -830,6 +881,10 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(4) EntityFilter ensureEntityFilter() => $_ensure(3); + /// The location of the import metadata file. This will be the same value as + /// the + /// [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] + /// field. @$pb.TagNumber(5) $core.String get inputUrl => $_getSZ(4); @$pb.TagNumber(5) @@ -843,48 +898,56 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { void clearInputUrl() => clearField(5); } +/// Identifies a subset of entities in a project. This is specified as +/// combinations of kinds and namespaces (either or both of which may be all, as +/// described in the following examples). +/// Example usage: +/// +/// Entire project: +/// kinds=[], namespace_ids=[] +/// +/// Kinds Foo and Bar in all namespaces: +/// kinds=['Foo', 'Bar'], namespace_ids=[] +/// +/// Kinds Foo and Bar only in the default namespace: +/// kinds=['Foo', 'Bar'], namespace_ids=[''] +/// +/// Kinds Foo and Bar in both the default and Baz namespaces: +/// kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] +/// +/// The entire Baz namespace: +/// kinds=[], namespace_ids=['Baz'] class EntityFilter extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EntityFilter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'kinds') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'namespaceIds') - ..hasRequiredFields = false; - - EntityFilter._() : super(); factory EntityFilter({ $core.Iterable<$core.String>? kinds, $core.Iterable<$core.String>? namespaceIds, }) { - final _result = create(); + final $result = create(); if (kinds != null) { - _result.kinds.addAll(kinds); + $result.kinds.addAll(kinds); } if (namespaceIds != null) { - _result.namespaceIds.addAll(namespaceIds); + $result.namespaceIds.addAll(namespaceIds); } - return _result; + return $result; } + EntityFilter._() : super(); factory EntityFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EntityFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EntityFilter', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'kinds') + ..pPS(2, _omitFieldNames ? '' : 'namespaceIds') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -894,8 +957,10 @@ class EntityFilter extends $pb.GeneratedMessage { 'Will be removed in next major version') EntityFilter copyWith(void Function(EntityFilter) updates) => super.copyWith((message) => updates(message as EntityFilter)) - as EntityFilter; // ignore: deprecated_member_use + as EntityFilter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EntityFilter create() => EntityFilter._(); EntityFilter createEmptyInstance() => create(); @@ -906,56 +971,55 @@ class EntityFilter extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EntityFilter? _defaultInstance; + /// If empty, then this represents all kinds. @$pb.TagNumber(1) $core.List<$core.String> get kinds => $_getList(0); + /// An empty list represents all namespaces. This is the preferred + /// usage for projects that don't use namespaces. + /// + /// An empty string element represents the default namespace. This should be + /// used if the project has data in non-default namespaces, but doesn't want to + /// include them. + /// Each namespace in this list must be unique. @$pb.TagNumber(2) $core.List<$core.String> get namespaceIds => $_getList(1); } +/// The request for +/// [google.datastore.admin.v1.DatastoreAdmin.CreateIndex][google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. class CreateIndexRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateIndexRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..aOM<$3.Index>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'index', - subBuilder: $3.Index.create) - ..hasRequiredFields = false; - - CreateIndexRequest._() : super(); factory CreateIndexRequest({ $core.String? projectId, - $3.Index? index, + $24.Index? index, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (index != null) { - _result.index = index; + $result.index = index; } - return _result; + return $result; } + CreateIndexRequest._() : super(); factory CreateIndexRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateIndexRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateIndexRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'projectId') + ..aOM<$24.Index>(3, _omitFieldNames ? '' : 'index', + subBuilder: $24.Index.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') @@ -965,8 +1029,10 @@ class CreateIndexRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CreateIndexRequest copyWith(void Function(CreateIndexRequest) updates) => super.copyWith((message) => updates(message as CreateIndexRequest)) - as CreateIndexRequest; // ignore: deprecated_member_use + as CreateIndexRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateIndexRequest create() => CreateIndexRequest._(); CreateIndexRequest createEmptyInstance() => create(); @@ -977,6 +1043,7 @@ class CreateIndexRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateIndexRequest? _defaultInstance; + /// Project ID against which to make the request. @$pb.TagNumber(1) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(1) @@ -989,10 +1056,12 @@ class CreateIndexRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProjectId() => clearField(1); + /// The index to create. The name and state fields are output only and will be + /// ignored. Single property indexes cannot be created or deleted. @$pb.TagNumber(3) - $3.Index get index => $_getN(1); + $24.Index get index => $_getN(1); @$pb.TagNumber(3) - set index($3.Index v) { + set index($24.Index v) { setField(3, v); } @@ -1001,51 +1070,42 @@ class CreateIndexRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearIndex() => clearField(3); @$pb.TagNumber(3) - $3.Index ensureIndex() => $_ensure(1); + $24.Index ensureIndex() => $_ensure(1); } +/// The request for +/// [google.datastore.admin.v1.DatastoreAdmin.DeleteIndex][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex]. class DeleteIndexRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteIndexRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'indexId') - ..hasRequiredFields = false; - - DeleteIndexRequest._() : super(); factory DeleteIndexRequest({ $core.String? projectId, $core.String? indexId, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (indexId != null) { - _result.indexId = indexId; + $result.indexId = indexId; } - return _result; + return $result; } + DeleteIndexRequest._() : super(); factory DeleteIndexRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteIndexRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteIndexRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'projectId') + ..aOS(3, _omitFieldNames ? '' : 'indexId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1055,8 +1115,10 @@ class DeleteIndexRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteIndexRequest copyWith(void Function(DeleteIndexRequest) updates) => super.copyWith((message) => updates(message as DeleteIndexRequest)) - as DeleteIndexRequest; // ignore: deprecated_member_use + as DeleteIndexRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteIndexRequest create() => DeleteIndexRequest._(); DeleteIndexRequest createEmptyInstance() => create(); @@ -1067,6 +1129,7 @@ class DeleteIndexRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteIndexRequest? _defaultInstance; + /// Project ID against which to make the request. @$pb.TagNumber(1) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(1) @@ -1079,6 +1142,7 @@ class DeleteIndexRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProjectId() => clearField(1); + /// The resource ID of the index to delete. @$pb.TagNumber(3) $core.String get indexId => $_getSZ(1); @$pb.TagNumber(3) @@ -1092,48 +1156,39 @@ class DeleteIndexRequest extends $pb.GeneratedMessage { void clearIndexId() => clearField(3); } +/// The request for +/// [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex]. class GetIndexRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetIndexRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'indexId') - ..hasRequiredFields = false; - - GetIndexRequest._() : super(); factory GetIndexRequest({ $core.String? projectId, $core.String? indexId, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (indexId != null) { - _result.indexId = indexId; + $result.indexId = indexId; } - return _result; + return $result; } + GetIndexRequest._() : super(); factory GetIndexRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetIndexRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetIndexRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'projectId') + ..aOS(3, _omitFieldNames ? '' : 'indexId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1143,8 +1198,10 @@ class GetIndexRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetIndexRequest copyWith(void Function(GetIndexRequest) updates) => super.copyWith((message) => updates(message as GetIndexRequest)) - as GetIndexRequest; // ignore: deprecated_member_use + as GetIndexRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetIndexRequest create() => GetIndexRequest._(); GetIndexRequest createEmptyInstance() => create(); @@ -1155,6 +1212,7 @@ class GetIndexRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetIndexRequest? _defaultInstance; + /// Project ID against which to make the request. @$pb.TagNumber(1) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(1) @@ -1167,6 +1225,7 @@ class GetIndexRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProjectId() => clearField(1); + /// The resource ID of the index to get. @$pb.TagNumber(3) $core.String get indexId => $_getSZ(1); @$pb.TagNumber(3) @@ -1180,64 +1239,49 @@ class GetIndexRequest extends $pb.GeneratedMessage { void clearIndexId() => clearField(3); } +/// The request for +/// [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes]. class ListIndexesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListIndexesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filter') - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS(5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pageToken') - ..hasRequiredFields = false; - - ListIndexesRequest._() : super(); factory ListIndexesRequest({ $core.String? projectId, $core.String? filter, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListIndexesRequest._() : super(); factory ListIndexesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListIndexesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListIndexesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'projectId') + ..aOS(3, _omitFieldNames ? '' : 'filter') + ..a<$core.int>(4, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(5, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1247,8 +1291,10 @@ class ListIndexesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListIndexesRequest copyWith(void Function(ListIndexesRequest) updates) => super.copyWith((message) => updates(message as ListIndexesRequest)) - as ListIndexesRequest; // ignore: deprecated_member_use + as ListIndexesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListIndexesRequest create() => ListIndexesRequest._(); ListIndexesRequest createEmptyInstance() => create(); @@ -1259,6 +1305,7 @@ class ListIndexesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListIndexesRequest? _defaultInstance; + /// Project ID against which to make the request. @$pb.TagNumber(1) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(1) @@ -1283,6 +1330,8 @@ class ListIndexesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFilter() => clearField(3); + /// The maximum number of items to return. If zero, then all results will be + /// returned. @$pb.TagNumber(4) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(4) @@ -1295,6 +1344,7 @@ class ListIndexesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearPageSize() => clearField(4); + /// The next_page_token value returned from a previous List request, if any. @$pb.TagNumber(5) $core.String get pageToken => $_getSZ(3); @$pb.TagNumber(5) @@ -1308,47 +1358,40 @@ class ListIndexesRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(5); } +/// The response for +/// [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes]. class ListIndexesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListIndexesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..pc<$3.Index>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'indexes', - $pb.PbFieldType.PM, - subBuilder: $3.Index.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListIndexesResponse._() : super(); factory ListIndexesResponse({ - $core.Iterable<$3.Index>? indexes, + $core.Iterable<$24.Index>? indexes, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (indexes != null) { - _result.indexes.addAll(indexes); + $result.indexes.addAll(indexes); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListIndexesResponse._() : super(); factory ListIndexesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListIndexesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListIndexesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..pc<$24.Index>(1, _omitFieldNames ? '' : 'indexes', $pb.PbFieldType.PM, + subBuilder: $24.Index.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1358,8 +1401,10 @@ class ListIndexesResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListIndexesResponse copyWith(void Function(ListIndexesResponse) updates) => super.copyWith((message) => updates(message as ListIndexesResponse)) - as ListIndexesResponse; // ignore: deprecated_member_use + as ListIndexesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListIndexesResponse create() => ListIndexesResponse._(); ListIndexesResponse createEmptyInstance() => create(); @@ -1370,9 +1415,11 @@ class ListIndexesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListIndexesResponse? _defaultInstance; + /// The indexes. @$pb.TagNumber(1) - $core.List<$3.Index> get indexes => $_getList(0); + $core.List<$24.Index> get indexes => $_getList(0); + /// The standard List next-page token. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1386,52 +1433,45 @@ class ListIndexesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Metadata for Index operations. class IndexOperationMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'IndexOperationMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'common', - subBuilder: CommonMetadata.create) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'progressEntities', - subBuilder: Progress.create) - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'indexId') - ..hasRequiredFields = false; - - IndexOperationMetadata._() : super(); factory IndexOperationMetadata({ CommonMetadata? common, Progress? progressEntities, $core.String? indexId, }) { - final _result = create(); + final $result = create(); if (common != null) { - _result.common = common; + $result.common = common; } if (progressEntities != null) { - _result.progressEntities = progressEntities; + $result.progressEntities = progressEntities; } if (indexId != null) { - _result.indexId = indexId; + $result.indexId = indexId; } - return _result; + return $result; } + IndexOperationMetadata._() : super(); factory IndexOperationMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory IndexOperationMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'IndexOperationMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonMetadata.create) + ..aOM(2, _omitFieldNames ? '' : 'progressEntities', + subBuilder: Progress.create) + ..aOS(3, _omitFieldNames ? '' : 'indexId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1443,8 +1483,10 @@ class IndexOperationMetadata extends $pb.GeneratedMessage { IndexOperationMetadata copyWith( void Function(IndexOperationMetadata) updates) => super.copyWith((message) => updates(message as IndexOperationMetadata)) - as IndexOperationMetadata; // ignore: deprecated_member_use + as IndexOperationMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static IndexOperationMetadata create() => IndexOperationMetadata._(); IndexOperationMetadata createEmptyInstance() => create(); @@ -1455,6 +1497,7 @@ class IndexOperationMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static IndexOperationMetadata? _defaultInstance; + /// Metadata common to all Datastore Admin operations. @$pb.TagNumber(1) CommonMetadata get common => $_getN(0); @$pb.TagNumber(1) @@ -1469,6 +1512,7 @@ class IndexOperationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(1) CommonMetadata ensureCommon() => $_ensure(0); + /// An estimate of the number of entities processed. @$pb.TagNumber(2) Progress get progressEntities => $_getN(1); @$pb.TagNumber(2) @@ -1483,6 +1527,7 @@ class IndexOperationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) Progress ensureProgressEntities() => $_ensure(1); + /// The index resource ID that this operation is acting on. @$pb.TagNumber(3) $core.String get indexId => $_getSZ(2); @$pb.TagNumber(3) @@ -1495,3 +1540,112 @@ class IndexOperationMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearIndexId() => clearField(3); } + +/// Metadata for Datastore to Firestore migration operations. +/// +/// The DatastoreFirestoreMigration operation is not started by the end-user via +/// an explicit "creation" method. This is an intentional deviation from the LRO +/// design pattern. +/// +/// This singleton resource can be accessed at: +/// "projects/{project_id}/operations/datastore-firestore-migration" +class DatastoreFirestoreMigrationMetadata extends $pb.GeneratedMessage { + factory DatastoreFirestoreMigrationMetadata({ + $79.MigrationState? migrationState, + $79.MigrationStep? migrationStep, + }) { + final $result = create(); + if (migrationState != null) { + $result.migrationState = migrationState; + } + if (migrationStep != null) { + $result.migrationStep = migrationStep; + } + return $result; + } + DatastoreFirestoreMigrationMetadata._() : super(); + factory DatastoreFirestoreMigrationMetadata.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DatastoreFirestoreMigrationMetadata.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DatastoreFirestoreMigrationMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..e<$79.MigrationState>( + 1, _omitFieldNames ? '' : 'migrationState', $pb.PbFieldType.OE, + defaultOrMaker: $79.MigrationState.MIGRATION_STATE_UNSPECIFIED, + valueOf: $79.MigrationState.valueOf, + enumValues: $79.MigrationState.values) + ..e<$79.MigrationStep>( + 2, _omitFieldNames ? '' : 'migrationStep', $pb.PbFieldType.OE, + defaultOrMaker: $79.MigrationStep.MIGRATION_STEP_UNSPECIFIED, + valueOf: $79.MigrationStep.valueOf, + enumValues: $79.MigrationStep.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DatastoreFirestoreMigrationMetadata clone() => + DatastoreFirestoreMigrationMetadata()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DatastoreFirestoreMigrationMetadata copyWith( + void Function(DatastoreFirestoreMigrationMetadata) updates) => + super.copyWith((message) => + updates(message as DatastoreFirestoreMigrationMetadata)) + as DatastoreFirestoreMigrationMetadata; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DatastoreFirestoreMigrationMetadata create() => + DatastoreFirestoreMigrationMetadata._(); + DatastoreFirestoreMigrationMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DatastoreFirestoreMigrationMetadata getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + DatastoreFirestoreMigrationMetadata>(create); + static DatastoreFirestoreMigrationMetadata? _defaultInstance; + + /// The current state of migration from Cloud Datastore to Cloud Firestore in + /// Datastore mode. + @$pb.TagNumber(1) + $79.MigrationState get migrationState => $_getN(0); + @$pb.TagNumber(1) + set migrationState($79.MigrationState v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasMigrationState() => $_has(0); + @$pb.TagNumber(1) + void clearMigrationState() => clearField(1); + + /// The current step of migration from Cloud Datastore to Cloud Firestore in + /// Datastore mode. + @$pb.TagNumber(2) + $79.MigrationStep get migrationStep => $_getN(1); + @$pb.TagNumber(2) + set migrationStep($79.MigrationStep v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasMigrationStep() => $_has(1); + @$pb.TagNumber(2) + void clearMigrationStep() => clearField(2); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbenum.dart index c3e9cf24..b9b7921b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbenum.dart @@ -1,40 +1,30 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1/datastore_admin.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Operation types. class OperationType extends $pb.ProtobufEnum { - static const OperationType OPERATION_TYPE_UNSPECIFIED = OperationType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OPERATION_TYPE_UNSPECIFIED'); - static const OperationType EXPORT_ENTITIES = OperationType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'EXPORT_ENTITIES'); - static const OperationType IMPORT_ENTITIES = OperationType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'IMPORT_ENTITIES'); - static const OperationType CREATE_INDEX = OperationType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CREATE_INDEX'); - static const OperationType DELETE_INDEX = OperationType._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DELETE_INDEX'); + static const OperationType OPERATION_TYPE_UNSPECIFIED = + OperationType._(0, _omitEnumNames ? '' : 'OPERATION_TYPE_UNSPECIFIED'); + static const OperationType EXPORT_ENTITIES = + OperationType._(1, _omitEnumNames ? '' : 'EXPORT_ENTITIES'); + static const OperationType IMPORT_ENTITIES = + OperationType._(2, _omitEnumNames ? '' : 'IMPORT_ENTITIES'); + static const OperationType CREATE_INDEX = + OperationType._(3, _omitEnumNames ? '' : 'CREATE_INDEX'); + static const OperationType DELETE_INDEX = + OperationType._(4, _omitEnumNames ? '' : 'DELETE_INDEX'); static const $core.List values = [ OPERATION_TYPE_UNSPECIFIED, @@ -51,44 +41,24 @@ class OperationType extends $pb.ProtobufEnum { const OperationType._($core.int v, $core.String n) : super(v, n); } +/// The various possible states for an ongoing Operation. class CommonMetadata_State extends $pb.ProtobufEnum { - static const CommonMetadata_State STATE_UNSPECIFIED = CommonMetadata_State._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STATE_UNSPECIFIED'); - static const CommonMetadata_State INITIALIZING = CommonMetadata_State._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INITIALIZING'); - static const CommonMetadata_State PROCESSING = CommonMetadata_State._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PROCESSING'); - static const CommonMetadata_State CANCELLING = CommonMetadata_State._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CANCELLING'); - static const CommonMetadata_State FINALIZING = CommonMetadata_State._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FINALIZING'); - static const CommonMetadata_State SUCCESSFUL = CommonMetadata_State._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SUCCESSFUL'); - static const CommonMetadata_State FAILED = CommonMetadata_State._(6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FAILED'); - static const CommonMetadata_State CANCELLED = CommonMetadata_State._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CANCELLED'); + static const CommonMetadata_State STATE_UNSPECIFIED = + CommonMetadata_State._(0, _omitEnumNames ? '' : 'STATE_UNSPECIFIED'); + static const CommonMetadata_State INITIALIZING = + CommonMetadata_State._(1, _omitEnumNames ? '' : 'INITIALIZING'); + static const CommonMetadata_State PROCESSING = + CommonMetadata_State._(2, _omitEnumNames ? '' : 'PROCESSING'); + static const CommonMetadata_State CANCELLING = + CommonMetadata_State._(3, _omitEnumNames ? '' : 'CANCELLING'); + static const CommonMetadata_State FINALIZING = + CommonMetadata_State._(4, _omitEnumNames ? '' : 'FINALIZING'); + static const CommonMetadata_State SUCCESSFUL = + CommonMetadata_State._(5, _omitEnumNames ? '' : 'SUCCESSFUL'); + static const CommonMetadata_State FAILED = + CommonMetadata_State._(6, _omitEnumNames ? '' : 'FAILED'); + static const CommonMetadata_State CANCELLED = + CommonMetadata_State._(7, _omitEnumNames ? '' : 'CANCELLED'); static const $core.List values = [ STATE_UNSPECIFIED, @@ -107,3 +77,5 @@ class CommonMetadata_State extends $pb.ProtobufEnum { const CommonMetadata_State._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbgrpc.dart index c7cfab02..b5730dbb 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbgrpc.dart @@ -1,51 +1,58 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1/datastore_admin.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'datastore_admin.pb.dart' as $2; +import 'package:protobuf/protobuf.dart' as $pb; + import '../../../longrunning/operations.pb.dart' as $0; -import 'index.pb.dart' as $3; +import 'datastore_admin.pb.dart' as $23; +import 'index.pb.dart' as $24; + export 'datastore_admin.pb.dart'; +@$pb.GrpcServiceName('google.datastore.admin.v1.DatastoreAdmin') class DatastoreAdminClient extends $grpc.Client { static final _$exportEntities = - $grpc.ClientMethod<$2.ExportEntitiesRequest, $0.Operation>( + $grpc.ClientMethod<$23.ExportEntitiesRequest, $0.Operation>( '/google.datastore.admin.v1.DatastoreAdmin/ExportEntities', - ($2.ExportEntitiesRequest value) => value.writeToBuffer(), + ($23.ExportEntitiesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$importEntities = - $grpc.ClientMethod<$2.ImportEntitiesRequest, $0.Operation>( + $grpc.ClientMethod<$23.ImportEntitiesRequest, $0.Operation>( '/google.datastore.admin.v1.DatastoreAdmin/ImportEntities', - ($2.ImportEntitiesRequest value) => value.writeToBuffer(), + ($23.ImportEntitiesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$createIndex = - $grpc.ClientMethod<$2.CreateIndexRequest, $0.Operation>( + $grpc.ClientMethod<$23.CreateIndexRequest, $0.Operation>( '/google.datastore.admin.v1.DatastoreAdmin/CreateIndex', - ($2.CreateIndexRequest value) => value.writeToBuffer(), + ($23.CreateIndexRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$deleteIndex = - $grpc.ClientMethod<$2.DeleteIndexRequest, $0.Operation>( + $grpc.ClientMethod<$23.DeleteIndexRequest, $0.Operation>( '/google.datastore.admin.v1.DatastoreAdmin/DeleteIndex', - ($2.DeleteIndexRequest value) => value.writeToBuffer(), + ($23.DeleteIndexRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); - static final _$getIndex = $grpc.ClientMethod<$2.GetIndexRequest, $3.Index>( + static final _$getIndex = $grpc.ClientMethod<$23.GetIndexRequest, $24.Index>( '/google.datastore.admin.v1.DatastoreAdmin/GetIndex', - ($2.GetIndexRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.Index.fromBuffer(value)); + ($23.GetIndexRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $24.Index.fromBuffer(value)); static final _$listIndexes = - $grpc.ClientMethod<$2.ListIndexesRequest, $2.ListIndexesResponse>( + $grpc.ClientMethod<$23.ListIndexesRequest, $23.ListIndexesResponse>( '/google.datastore.admin.v1.DatastoreAdmin/ListIndexes', - ($2.ListIndexesRequest value) => value.writeToBuffer(), + ($23.ListIndexesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListIndexesResponse.fromBuffer(value)); + $23.ListIndexesResponse.fromBuffer(value)); DatastoreAdminClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -53,133 +60,134 @@ class DatastoreAdminClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); $grpc.ResponseFuture<$0.Operation> exportEntities( - $2.ExportEntitiesRequest request, + $23.ExportEntitiesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$exportEntities, request, options: options); } $grpc.ResponseFuture<$0.Operation> importEntities( - $2.ImportEntitiesRequest request, + $23.ImportEntitiesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$importEntities, request, options: options); } - $grpc.ResponseFuture<$0.Operation> createIndex($2.CreateIndexRequest request, + $grpc.ResponseFuture<$0.Operation> createIndex($23.CreateIndexRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createIndex, request, options: options); } - $grpc.ResponseFuture<$0.Operation> deleteIndex($2.DeleteIndexRequest request, + $grpc.ResponseFuture<$0.Operation> deleteIndex($23.DeleteIndexRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteIndex, request, options: options); } - $grpc.ResponseFuture<$3.Index> getIndex($2.GetIndexRequest request, + $grpc.ResponseFuture<$24.Index> getIndex($23.GetIndexRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getIndex, request, options: options); } - $grpc.ResponseFuture<$2.ListIndexesResponse> listIndexes( - $2.ListIndexesRequest request, + $grpc.ResponseFuture<$23.ListIndexesResponse> listIndexes( + $23.ListIndexesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listIndexes, request, options: options); } } +@$pb.GrpcServiceName('google.datastore.admin.v1.DatastoreAdmin') abstract class DatastoreAdminServiceBase extends $grpc.Service { $core.String get $name => 'google.datastore.admin.v1.DatastoreAdmin'; DatastoreAdminServiceBase() { - $addMethod($grpc.ServiceMethod<$2.ExportEntitiesRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$23.ExportEntitiesRequest, $0.Operation>( 'ExportEntities', exportEntities_Pre, false, false, ($core.List<$core.int> value) => - $2.ExportEntitiesRequest.fromBuffer(value), + $23.ExportEntitiesRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ImportEntitiesRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$23.ImportEntitiesRequest, $0.Operation>( 'ImportEntities', importEntities_Pre, false, false, ($core.List<$core.int> value) => - $2.ImportEntitiesRequest.fromBuffer(value), + $23.ImportEntitiesRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateIndexRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$23.CreateIndexRequest, $0.Operation>( 'CreateIndex', createIndex_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateIndexRequest.fromBuffer(value), + $23.CreateIndexRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteIndexRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$23.DeleteIndexRequest, $0.Operation>( 'DeleteIndex', deleteIndex_Pre, false, false, ($core.List<$core.int> value) => - $2.DeleteIndexRequest.fromBuffer(value), + $23.DeleteIndexRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetIndexRequest, $3.Index>( + $addMethod($grpc.ServiceMethod<$23.GetIndexRequest, $24.Index>( 'GetIndex', getIndex_Pre, false, false, - ($core.List<$core.int> value) => $2.GetIndexRequest.fromBuffer(value), - ($3.Index value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $23.GetIndexRequest.fromBuffer(value), + ($24.Index value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.ListIndexesRequest, $2.ListIndexesResponse>( + $grpc.ServiceMethod<$23.ListIndexesRequest, $23.ListIndexesResponse>( 'ListIndexes', listIndexes_Pre, false, false, ($core.List<$core.int> value) => - $2.ListIndexesRequest.fromBuffer(value), - ($2.ListIndexesResponse value) => value.writeToBuffer())); + $23.ListIndexesRequest.fromBuffer(value), + ($23.ListIndexesResponse value) => value.writeToBuffer())); } $async.Future<$0.Operation> exportEntities_Pre($grpc.ServiceCall call, - $async.Future<$2.ExportEntitiesRequest> request) async { + $async.Future<$23.ExportEntitiesRequest> request) async { return exportEntities(call, await request); } $async.Future<$0.Operation> importEntities_Pre($grpc.ServiceCall call, - $async.Future<$2.ImportEntitiesRequest> request) async { + $async.Future<$23.ImportEntitiesRequest> request) async { return importEntities(call, await request); } $async.Future<$0.Operation> createIndex_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateIndexRequest> request) async { + $async.Future<$23.CreateIndexRequest> request) async { return createIndex(call, await request); } $async.Future<$0.Operation> deleteIndex_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteIndexRequest> request) async { + $async.Future<$23.DeleteIndexRequest> request) async { return deleteIndex(call, await request); } - $async.Future<$3.Index> getIndex_Pre( - $grpc.ServiceCall call, $async.Future<$2.GetIndexRequest> request) async { + $async.Future<$24.Index> getIndex_Pre($grpc.ServiceCall call, + $async.Future<$23.GetIndexRequest> request) async { return getIndex(call, await request); } - $async.Future<$2.ListIndexesResponse> listIndexes_Pre($grpc.ServiceCall call, - $async.Future<$2.ListIndexesRequest> request) async { + $async.Future<$23.ListIndexesResponse> listIndexes_Pre($grpc.ServiceCall call, + $async.Future<$23.ListIndexesRequest> request) async { return listIndexes(call, await request); } $async.Future<$0.Operation> exportEntities( - $grpc.ServiceCall call, $2.ExportEntitiesRequest request); + $grpc.ServiceCall call, $23.ExportEntitiesRequest request); $async.Future<$0.Operation> importEntities( - $grpc.ServiceCall call, $2.ImportEntitiesRequest request); + $grpc.ServiceCall call, $23.ImportEntitiesRequest request); $async.Future<$0.Operation> createIndex( - $grpc.ServiceCall call, $2.CreateIndexRequest request); + $grpc.ServiceCall call, $23.CreateIndexRequest request); $async.Future<$0.Operation> deleteIndex( - $grpc.ServiceCall call, $2.DeleteIndexRequest request); - $async.Future<$3.Index> getIndex( - $grpc.ServiceCall call, $2.GetIndexRequest request); - $async.Future<$2.ListIndexesResponse> listIndexes( - $grpc.ServiceCall call, $2.ListIndexesRequest request); + $grpc.ServiceCall call, $23.DeleteIndexRequest request); + $async.Future<$24.Index> getIndex( + $grpc.ServiceCall call, $23.GetIndexRequest request); + $async.Future<$23.ListIndexesResponse> listIndexes( + $grpc.ServiceCall call, $23.ListIndexesRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbjson.dart index 01569f1e..a62f1018 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/datastore_admin.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1/datastore_admin.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 operationTypeDescriptor instead') @@ -23,7 +27,10 @@ const OperationType$json = { /// Descriptor for `OperationType`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List operationTypeDescriptor = $convert.base64Decode( - 'Cg1PcGVyYXRpb25UeXBlEh4KGk9QRVJBVElPTl9UWVBFX1VOU1BFQ0lGSUVEEAASEwoPRVhQT1JUX0VOVElUSUVTEAESEwoPSU1QT1JUX0VOVElUSUVTEAISEAoMQ1JFQVRFX0lOREVYEAMSEAoMREVMRVRFX0lOREVYEAQ='); + 'Cg1PcGVyYXRpb25UeXBlEh4KGk9QRVJBVElPTl9UWVBFX1VOU1BFQ0lGSUVEEAASEwoPRVhQT1' + 'JUX0VOVElUSUVTEAESEwoPSU1QT1JUX0VOVElUSUVTEAISEAoMQ1JFQVRFX0lOREVYEAMSEAoM' + 'REVMRVRFX0lOREVYEAQ='); + @$core.Deprecated('Use commonMetadataDescriptor instead') const CommonMetadata$json = { '1': 'CommonMetadata', @@ -100,7 +107,18 @@ const CommonMetadata_State$json = { /// Descriptor for `CommonMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List commonMetadataDescriptor = $convert.base64Decode( - 'Cg5Db21tb25NZXRhZGF0YRI5CgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIHZW5kVGltZRJPCg5vcGVyYXRpb25fdHlwZRgDIAEoDjIoLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuT3BlcmF0aW9uVHlwZVINb3BlcmF0aW9uVHlwZRJNCgZsYWJlbHMYBCADKAsyNS5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLkNvbW1vbk1ldGFkYXRhLkxhYmVsc0VudHJ5UgZsYWJlbHMSRQoFc3RhdGUYBSABKA4yLy5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLkNvbW1vbk1ldGFkYXRhLlN0YXRlUgVzdGF0ZRo5CgtMYWJlbHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBIosBCgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEhAKDElOSVRJQUxJWklORxABEg4KClBST0NFU1NJTkcQAhIOCgpDQU5DRUxMSU5HEAMSDgoKRklOQUxJWklORxAEEg4KClNVQ0NFU1NGVUwQBRIKCgZGQUlMRUQQBhINCglDQU5DRUxMRUQQBw=='); + 'Cg5Db21tb25NZXRhZGF0YRI5CgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLl' + 'RpbWVzdGFtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVm' + 'LlRpbWVzdGFtcFIHZW5kVGltZRJPCg5vcGVyYXRpb25fdHlwZRgDIAEoDjIoLmdvb2dsZS5kYX' + 'Rhc3RvcmUuYWRtaW4udjEuT3BlcmF0aW9uVHlwZVINb3BlcmF0aW9uVHlwZRJNCgZsYWJlbHMY' + 'BCADKAsyNS5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLkNvbW1vbk1ldGFkYXRhLkxhYmVsc0' + 'VudHJ5UgZsYWJlbHMSRQoFc3RhdGUYBSABKA4yLy5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYx' + 'LkNvbW1vbk1ldGFkYXRhLlN0YXRlUgVzdGF0ZRo5CgtMYWJlbHNFbnRyeRIQCgNrZXkYASABKA' + 'lSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBIosBCgVTdGF0ZRIVChFTVEFURV9VTlNQ' + 'RUNJRklFRBAAEhAKDElOSVRJQUxJWklORxABEg4KClBST0NFU1NJTkcQAhIOCgpDQU5DRUxMSU' + '5HEAMSDgoKRklOQUxJWklORxAEEg4KClNVQ0NFU1NGVUwQBRIKCgZGQUlMRUQQBhINCglDQU5D' + 'RUxMRUQQBw=='); + @$core.Deprecated('Use progressDescriptor instead') const Progress$json = { '1': 'Progress', @@ -112,7 +130,9 @@ const Progress$json = { /// Descriptor for `Progress`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List progressDescriptor = $convert.base64Decode( - 'CghQcm9ncmVzcxIlCg53b3JrX2NvbXBsZXRlZBgBIAEoA1INd29ya0NvbXBsZXRlZBIlCg53b3JrX2VzdGltYXRlZBgCIAEoA1INd29ya0VzdGltYXRlZA=='); + 'CghQcm9ncmVzcxIlCg53b3JrX2NvbXBsZXRlZBgBIAEoA1INd29ya0NvbXBsZXRlZBIlCg53b3' + 'JrX2VzdGltYXRlZBgCIAEoA1INd29ya0VzdGltYXRlZA=='); + @$core.Deprecated('Use exportEntitiesRequestDescriptor instead') const ExportEntitiesRequest$json = { '1': 'ExportEntitiesRequest', @@ -158,7 +178,13 @@ const ExportEntitiesRequest_LabelsEntry$json = { /// Descriptor for `ExportEntitiesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List exportEntitiesRequestDescriptor = $convert.base64Decode( - 'ChVFeHBvcnRFbnRpdGllc1JlcXVlc3QSIgoKcHJvamVjdF9pZBgBIAEoCUID4EECUglwcm9qZWN0SWQSVAoGbGFiZWxzGAIgAygLMjwuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5FeHBvcnRFbnRpdGllc1JlcXVlc3QuTGFiZWxzRW50cnlSBmxhYmVscxJMCg1lbnRpdHlfZmlsdGVyGAMgASgLMicuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5FbnRpdHlGaWx0ZXJSDGVudGl0eUZpbHRlchIvChFvdXRwdXRfdXJsX3ByZWZpeBgEIAEoCUID4EECUg9vdXRwdXRVcmxQcmVmaXgaOQoLTGFiZWxzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + 'ChVFeHBvcnRFbnRpdGllc1JlcXVlc3QSIgoKcHJvamVjdF9pZBgBIAEoCUID4EECUglwcm9qZW' + 'N0SWQSVAoGbGFiZWxzGAIgAygLMjwuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5FeHBvcnRF' + 'bnRpdGllc1JlcXVlc3QuTGFiZWxzRW50cnlSBmxhYmVscxJMCg1lbnRpdHlfZmlsdGVyGAMgAS' + 'gLMicuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5FbnRpdHlGaWx0ZXJSDGVudGl0eUZpbHRl' + 'chIvChFvdXRwdXRfdXJsX3ByZWZpeBgEIAEoCUID4EECUg9vdXRwdXRVcmxQcmVmaXgaOQoLTG' + 'FiZWxzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + @$core.Deprecated('Use importEntitiesRequestDescriptor instead') const ImportEntitiesRequest$json = { '1': 'ImportEntitiesRequest', @@ -197,7 +223,13 @@ const ImportEntitiesRequest_LabelsEntry$json = { /// Descriptor for `ImportEntitiesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List importEntitiesRequestDescriptor = $convert.base64Decode( - 'ChVJbXBvcnRFbnRpdGllc1JlcXVlc3QSIgoKcHJvamVjdF9pZBgBIAEoCUID4EECUglwcm9qZWN0SWQSVAoGbGFiZWxzGAIgAygLMjwuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5JbXBvcnRFbnRpdGllc1JlcXVlc3QuTGFiZWxzRW50cnlSBmxhYmVscxIgCglpbnB1dF91cmwYAyABKAlCA+BBAlIIaW5wdXRVcmwSTAoNZW50aXR5X2ZpbHRlchgEIAEoCzInLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuRW50aXR5RmlsdGVyUgxlbnRpdHlGaWx0ZXIaOQoLTGFiZWxzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + 'ChVJbXBvcnRFbnRpdGllc1JlcXVlc3QSIgoKcHJvamVjdF9pZBgBIAEoCUID4EECUglwcm9qZW' + 'N0SWQSVAoGbGFiZWxzGAIgAygLMjwuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5JbXBvcnRF' + 'bnRpdGllc1JlcXVlc3QuTGFiZWxzRW50cnlSBmxhYmVscxIgCglpbnB1dF91cmwYAyABKAlCA+' + 'BBAlIIaW5wdXRVcmwSTAoNZW50aXR5X2ZpbHRlchgEIAEoCzInLmdvb2dsZS5kYXRhc3RvcmUu' + 'YWRtaW4udjEuRW50aXR5RmlsdGVyUgxlbnRpdHlGaWx0ZXIaOQoLTGFiZWxzRW50cnkSEAoDa2' + 'V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + @$core.Deprecated('Use exportEntitiesResponseDescriptor instead') const ExportEntitiesResponse$json = { '1': 'ExportEntitiesResponse', @@ -209,7 +241,9 @@ const ExportEntitiesResponse$json = { /// Descriptor for `ExportEntitiesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List exportEntitiesResponseDescriptor = $convert.base64Decode( - 'ChZFeHBvcnRFbnRpdGllc1Jlc3BvbnNlEh0KCm91dHB1dF91cmwYASABKAlSCW91dHB1dFVybA=='); + 'ChZFeHBvcnRFbnRpdGllc1Jlc3BvbnNlEh0KCm91dHB1dF91cmwYASABKAlSCW91dHB1dFVybA' + '=='); + @$core.Deprecated('Use exportEntitiesMetadataDescriptor instead') const ExportEntitiesMetadata$json = { '1': 'ExportEntitiesMetadata', @@ -251,9 +285,15 @@ const ExportEntitiesMetadata$json = { }; /// Descriptor for `ExportEntitiesMetadata`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List exportEntitiesMetadataDescriptor = - $convert.base64Decode( - 'ChZFeHBvcnRFbnRpdGllc01ldGFkYXRhEkEKBmNvbW1vbhgBIAEoCzIpLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuQ29tbW9uTWV0YWRhdGFSBmNvbW1vbhJQChFwcm9ncmVzc19lbnRpdGllcxgCIAEoCzIjLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuUHJvZ3Jlc3NSEHByb2dyZXNzRW50aXRpZXMSSgoOcHJvZ3Jlc3NfYnl0ZXMYAyABKAsyIy5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLlByb2dyZXNzUg1wcm9ncmVzc0J5dGVzEkwKDWVudGl0eV9maWx0ZXIYBCABKAsyJy5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLkVudGl0eUZpbHRlclIMZW50aXR5RmlsdGVyEioKEW91dHB1dF91cmxfcHJlZml4GAUgASgJUg9vdXRwdXRVcmxQcmVmaXg='); +final $typed_data.Uint8List exportEntitiesMetadataDescriptor = $convert.base64Decode( + 'ChZFeHBvcnRFbnRpdGllc01ldGFkYXRhEkEKBmNvbW1vbhgBIAEoCzIpLmdvb2dsZS5kYXRhc3' + 'RvcmUuYWRtaW4udjEuQ29tbW9uTWV0YWRhdGFSBmNvbW1vbhJQChFwcm9ncmVzc19lbnRpdGll' + 'cxgCIAEoCzIjLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuUHJvZ3Jlc3NSEHByb2dyZXNzRW' + '50aXRpZXMSSgoOcHJvZ3Jlc3NfYnl0ZXMYAyABKAsyIy5nb29nbGUuZGF0YXN0b3JlLmFkbWlu' + 'LnYxLlByb2dyZXNzUg1wcm9ncmVzc0J5dGVzEkwKDWVudGl0eV9maWx0ZXIYBCABKAsyJy5nb2' + '9nbGUuZGF0YXN0b3JlLmFkbWluLnYxLkVudGl0eUZpbHRlclIMZW50aXR5RmlsdGVyEioKEW91' + 'dHB1dF91cmxfcHJlZml4GAUgASgJUg9vdXRwdXRVcmxQcmVmaXg='); + @$core.Deprecated('Use importEntitiesMetadataDescriptor instead') const ImportEntitiesMetadata$json = { '1': 'ImportEntitiesMetadata', @@ -295,9 +335,15 @@ const ImportEntitiesMetadata$json = { }; /// Descriptor for `ImportEntitiesMetadata`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List importEntitiesMetadataDescriptor = - $convert.base64Decode( - 'ChZJbXBvcnRFbnRpdGllc01ldGFkYXRhEkEKBmNvbW1vbhgBIAEoCzIpLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuQ29tbW9uTWV0YWRhdGFSBmNvbW1vbhJQChFwcm9ncmVzc19lbnRpdGllcxgCIAEoCzIjLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuUHJvZ3Jlc3NSEHByb2dyZXNzRW50aXRpZXMSSgoOcHJvZ3Jlc3NfYnl0ZXMYAyABKAsyIy5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLlByb2dyZXNzUg1wcm9ncmVzc0J5dGVzEkwKDWVudGl0eV9maWx0ZXIYBCABKAsyJy5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLkVudGl0eUZpbHRlclIMZW50aXR5RmlsdGVyEhsKCWlucHV0X3VybBgFIAEoCVIIaW5wdXRVcmw='); +final $typed_data.Uint8List importEntitiesMetadataDescriptor = $convert.base64Decode( + 'ChZJbXBvcnRFbnRpdGllc01ldGFkYXRhEkEKBmNvbW1vbhgBIAEoCzIpLmdvb2dsZS5kYXRhc3' + 'RvcmUuYWRtaW4udjEuQ29tbW9uTWV0YWRhdGFSBmNvbW1vbhJQChFwcm9ncmVzc19lbnRpdGll' + 'cxgCIAEoCzIjLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuUHJvZ3Jlc3NSEHByb2dyZXNzRW' + '50aXRpZXMSSgoOcHJvZ3Jlc3NfYnl0ZXMYAyABKAsyIy5nb29nbGUuZGF0YXN0b3JlLmFkbWlu' + 'LnYxLlByb2dyZXNzUg1wcm9ncmVzc0J5dGVzEkwKDWVudGl0eV9maWx0ZXIYBCABKAsyJy5nb2' + '9nbGUuZGF0YXN0b3JlLmFkbWluLnYxLkVudGl0eUZpbHRlclIMZW50aXR5RmlsdGVyEhsKCWlu' + 'cHV0X3VybBgFIAEoCVIIaW5wdXRVcmw='); + @$core.Deprecated('Use entityFilterDescriptor instead') const EntityFilter$json = { '1': 'EntityFilter', @@ -309,7 +355,9 @@ const EntityFilter$json = { /// Descriptor for `EntityFilter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List entityFilterDescriptor = $convert.base64Decode( - 'CgxFbnRpdHlGaWx0ZXISFAoFa2luZHMYASADKAlSBWtpbmRzEiMKDW5hbWVzcGFjZV9pZHMYAiADKAlSDG5hbWVzcGFjZUlkcw=='); + 'CgxFbnRpdHlGaWx0ZXISFAoFa2luZHMYASADKAlSBWtpbmRzEiMKDW5hbWVzcGFjZV9pZHMYAi' + 'ADKAlSDG5hbWVzcGFjZUlkcw=='); + @$core.Deprecated('Use createIndexRequestDescriptor instead') const CreateIndexRequest$json = { '1': 'CreateIndexRequest', @@ -328,7 +376,9 @@ const CreateIndexRequest$json = { /// Descriptor for `CreateIndexRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createIndexRequestDescriptor = $convert.base64Decode( - 'ChJDcmVhdGVJbmRleFJlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkEjYKBWluZGV4GAMgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5JbmRleFIFaW5kZXg='); + 'ChJDcmVhdGVJbmRleFJlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkEjYKBW' + 'luZGV4GAMgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5JbmRleFIFaW5kZXg='); + @$core.Deprecated('Use deleteIndexRequestDescriptor instead') const DeleteIndexRequest$json = { '1': 'DeleteIndexRequest', @@ -340,7 +390,9 @@ const DeleteIndexRequest$json = { /// Descriptor for `DeleteIndexRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteIndexRequestDescriptor = $convert.base64Decode( - 'ChJEZWxldGVJbmRleFJlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkEhkKCGluZGV4X2lkGAMgASgJUgdpbmRleElk'); + 'ChJEZWxldGVJbmRleFJlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkEhkKCG' + 'luZGV4X2lkGAMgASgJUgdpbmRleElk'); + @$core.Deprecated('Use getIndexRequestDescriptor instead') const GetIndexRequest$json = { '1': 'GetIndexRequest', @@ -352,7 +404,9 @@ const GetIndexRequest$json = { /// Descriptor for `GetIndexRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getIndexRequestDescriptor = $convert.base64Decode( - 'Cg9HZXRJbmRleFJlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkEhkKCGluZGV4X2lkGAMgASgJUgdpbmRleElk'); + 'Cg9HZXRJbmRleFJlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkEhkKCGluZG' + 'V4X2lkGAMgASgJUgdpbmRleElk'); + @$core.Deprecated('Use listIndexesRequestDescriptor instead') const ListIndexesRequest$json = { '1': 'ListIndexesRequest', @@ -366,7 +420,10 @@ const ListIndexesRequest$json = { /// Descriptor for `ListIndexesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listIndexesRequestDescriptor = $convert.base64Decode( - 'ChJMaXN0SW5kZXhlc1JlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkEhYKBmZpbHRlchgDIAEoCVIGZmlsdGVyEhsKCXBhZ2Vfc2l6ZRgEIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgFIAEoCVIJcGFnZVRva2Vu'); + 'ChJMaXN0SW5kZXhlc1JlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkEhYKBm' + 'ZpbHRlchgDIAEoCVIGZmlsdGVyEhsKCXBhZ2Vfc2l6ZRgEIAEoBVIIcGFnZVNpemUSHQoKcGFn' + 'ZV90b2tlbhgFIAEoCVIJcGFnZVRva2Vu'); + @$core.Deprecated('Use listIndexesResponseDescriptor instead') const ListIndexesResponse$json = { '1': 'ListIndexesResponse', @@ -385,7 +442,10 @@ const ListIndexesResponse$json = { /// Descriptor for `ListIndexesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listIndexesResponseDescriptor = $convert.base64Decode( - 'ChNMaXN0SW5kZXhlc1Jlc3BvbnNlEjoKB2luZGV4ZXMYASADKAsyIC5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLkluZGV4UgdpbmRleGVzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChNMaXN0SW5kZXhlc1Jlc3BvbnNlEjoKB2luZGV4ZXMYASADKAsyIC5nb29nbGUuZGF0YXN0b3' + 'JlLmFkbWluLnYxLkluZGV4UgdpbmRleGVzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4' + 'dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use indexOperationMetadataDescriptor instead') const IndexOperationMetadata$json = { '1': 'IndexOperationMetadata', @@ -411,6 +471,39 @@ const IndexOperationMetadata$json = { }; /// Descriptor for `IndexOperationMetadata`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List indexOperationMetadataDescriptor = +final $typed_data.Uint8List indexOperationMetadataDescriptor = $convert.base64Decode( + 'ChZJbmRleE9wZXJhdGlvbk1ldGFkYXRhEkEKBmNvbW1vbhgBIAEoCzIpLmdvb2dsZS5kYXRhc3' + 'RvcmUuYWRtaW4udjEuQ29tbW9uTWV0YWRhdGFSBmNvbW1vbhJQChFwcm9ncmVzc19lbnRpdGll' + 'cxgCIAEoCzIjLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuUHJvZ3Jlc3NSEHByb2dyZXNzRW' + '50aXRpZXMSGQoIaW5kZXhfaWQYAyABKAlSB2luZGV4SWQ='); + +@$core.Deprecated('Use datastoreFirestoreMigrationMetadataDescriptor instead') +const DatastoreFirestoreMigrationMetadata$json = { + '1': 'DatastoreFirestoreMigrationMetadata', + '2': [ + { + '1': 'migration_state', + '3': 1, + '4': 1, + '5': 14, + '6': '.google.datastore.admin.v1.MigrationState', + '10': 'migrationState' + }, + { + '1': 'migration_step', + '3': 2, + '4': 1, + '5': 14, + '6': '.google.datastore.admin.v1.MigrationStep', + '10': 'migrationStep' + }, + ], +}; + +/// Descriptor for `DatastoreFirestoreMigrationMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List datastoreFirestoreMigrationMetadataDescriptor = $convert.base64Decode( - 'ChZJbmRleE9wZXJhdGlvbk1ldGFkYXRhEkEKBmNvbW1vbhgBIAEoCzIpLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuQ29tbW9uTWV0YWRhdGFSBmNvbW1vbhJQChFwcm9ncmVzc19lbnRpdGllcxgCIAEoCzIjLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuUHJvZ3Jlc3NSEHByb2dyZXNzRW50aXRpZXMSGQoIaW5kZXhfaWQYAyABKAlSB2luZGV4SWQ='); + 'CiNEYXRhc3RvcmVGaXJlc3RvcmVNaWdyYXRpb25NZXRhZGF0YRJSCg9taWdyYXRpb25fc3RhdG' + 'UYASABKA4yKS5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLk1pZ3JhdGlvblN0YXRlUg5taWdy' + 'YXRpb25TdGF0ZRJPCg5taWdyYXRpb25fc3RlcBgCIAEoDjIoLmdvb2dsZS5kYXRhc3RvcmUuYW' + 'RtaW4udjEuTWlncmF0aW9uU3RlcFINbWlncmF0aW9uU3RlcA=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pb.dart index e6d5febc..76ef497a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1/index.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,52 +17,42 @@ import 'index.pbenum.dart'; export 'index.pbenum.dart'; +/// A property of an index. class Index_IndexedProperty extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Index.IndexedProperty', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'direction', - $pb.PbFieldType.OE, - defaultOrMaker: Index_Direction.DIRECTION_UNSPECIFIED, - valueOf: Index_Direction.valueOf, - enumValues: Index_Direction.values) - ..hasRequiredFields = false; - - Index_IndexedProperty._() : super(); factory Index_IndexedProperty({ $core.String? name, Index_Direction? direction, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (direction != null) { - _result.direction = direction; + $result.direction = direction; } - return _result; + return $result; } + Index_IndexedProperty._() : super(); factory Index_IndexedProperty.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Index_IndexedProperty.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Index.IndexedProperty', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e( + 2, _omitFieldNames ? '' : 'direction', $pb.PbFieldType.OE, + defaultOrMaker: Index_Direction.DIRECTION_UNSPECIFIED, + valueOf: Index_Direction.valueOf, + enumValues: Index_Direction.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -70,8 +64,10 @@ class Index_IndexedProperty extends $pb.GeneratedMessage { Index_IndexedProperty copyWith( void Function(Index_IndexedProperty) updates) => super.copyWith((message) => updates(message as Index_IndexedProperty)) - as Index_IndexedProperty; // ignore: deprecated_member_use + as Index_IndexedProperty; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Index_IndexedProperty create() => Index_IndexedProperty._(); Index_IndexedProperty createEmptyInstance() => create(); @@ -82,6 +78,7 @@ class Index_IndexedProperty extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Index_IndexedProperty? _defaultInstance; + /// Required. The property name to index. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -94,6 +91,8 @@ class Index_IndexedProperty extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Required. The indexed property's direction. Must not be + /// DIRECTION_UNSPECIFIED. @$pb.TagNumber(2) Index_Direction get direction => $_getN(1); @$pb.TagNumber(2) @@ -107,42 +106,8 @@ class Index_IndexedProperty extends $pb.GeneratedMessage { void clearDirection() => clearField(2); } +/// Datastore composite index definition. class Index extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Index', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'indexId') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'kind') - ..e( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ancestor', $pb.PbFieldType.OE, - defaultOrMaker: Index_AncestorMode.ANCESTOR_MODE_UNSPECIFIED, - valueOf: Index_AncestorMode.valueOf, - enumValues: Index_AncestorMode.values) - ..pc( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'properties', $pb.PbFieldType.PM, - subBuilder: Index_IndexedProperty.create) - ..e(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', $pb.PbFieldType.OE, - defaultOrMaker: Index_State.STATE_UNSPECIFIED, - valueOf: Index_State.valueOf, - enumValues: Index_State.values) - ..hasRequiredFields = false; - - Index._() : super(); factory Index({ $core.String? projectId, $core.String? indexId, @@ -151,33 +116,57 @@ class Index extends $pb.GeneratedMessage { $core.Iterable? properties, Index_State? state, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (indexId != null) { - _result.indexId = indexId; + $result.indexId = indexId; } if (kind != null) { - _result.kind = kind; + $result.kind = kind; } if (ancestor != null) { - _result.ancestor = ancestor; + $result.ancestor = ancestor; } if (properties != null) { - _result.properties.addAll(properties); + $result.properties.addAll(properties); } if (state != null) { - _result.state = state; + $result.state = state; } - return _result; + return $result; } + Index._() : super(); factory Index.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Index.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Index', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'projectId') + ..aOS(3, _omitFieldNames ? '' : 'indexId') + ..aOS(4, _omitFieldNames ? '' : 'kind') + ..e( + 5, _omitFieldNames ? '' : 'ancestor', $pb.PbFieldType.OE, + defaultOrMaker: Index_AncestorMode.ANCESTOR_MODE_UNSPECIFIED, + valueOf: Index_AncestorMode.valueOf, + enumValues: Index_AncestorMode.values) + ..pc( + 6, _omitFieldNames ? '' : 'properties', $pb.PbFieldType.PM, + subBuilder: Index_IndexedProperty.create) + ..e(7, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: Index_State.STATE_UNSPECIFIED, + valueOf: Index_State.valueOf, + enumValues: Index_State.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -186,9 +175,10 @@ class Index extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Index copyWith(void Function(Index) updates) => - super.copyWith((message) => updates(message as Index)) - as Index; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Index)) as Index; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Index create() => Index._(); Index createEmptyInstance() => create(); @@ -198,6 +188,7 @@ class Index extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Index? _defaultInstance; + /// Output only. Project ID. @$pb.TagNumber(1) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(1) @@ -210,6 +201,7 @@ class Index extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProjectId() => clearField(1); + /// Output only. The resource ID of the index. @$pb.TagNumber(3) $core.String get indexId => $_getSZ(1); @$pb.TagNumber(3) @@ -222,6 +214,7 @@ class Index extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearIndexId() => clearField(3); + /// Required. The entity kind to which this index applies. @$pb.TagNumber(4) $core.String get kind => $_getSZ(2); @$pb.TagNumber(4) @@ -234,6 +227,8 @@ class Index extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearKind() => clearField(4); + /// Required. The index's ancestor mode. Must not be + /// ANCESTOR_MODE_UNSPECIFIED. @$pb.TagNumber(5) Index_AncestorMode get ancestor => $_getN(3); @$pb.TagNumber(5) @@ -246,9 +241,15 @@ class Index extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearAncestor() => clearField(5); + /// Required. An ordered sequence of property names and their index attributes. + /// + /// Requires: + /// + /// * A maximum of 100 properties. @$pb.TagNumber(6) $core.List get properties => $_getList(4); + /// Output only. The state of the index. @$pb.TagNumber(7) Index_State get state => $_getN(5); @$pb.TagNumber(7) @@ -261,3 +262,7 @@ class Index extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearState() => clearField(7); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pbenum.dart index 61a936c0..26b2ff1d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pbenum.dart @@ -1,28 +1,28 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1/index.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// For an ordered index, specifies whether each of the entity's ancestors +/// will be included. class Index_AncestorMode extends $pb.ProtobufEnum { static const Index_AncestorMode ANCESTOR_MODE_UNSPECIFIED = Index_AncestorMode._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ANCESTOR_MODE_UNSPECIFIED'); - static const Index_AncestorMode NONE = Index_AncestorMode._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'NONE'); - static const Index_AncestorMode ALL_ANCESTORS = Index_AncestorMode._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ALL_ANCESTORS'); + 0, _omitEnumNames ? '' : 'ANCESTOR_MODE_UNSPECIFIED'); + static const Index_AncestorMode NONE = + Index_AncestorMode._(1, _omitEnumNames ? '' : 'NONE'); + static const Index_AncestorMode ALL_ANCESTORS = + Index_AncestorMode._(2, _omitEnumNames ? '' : 'ALL_ANCESTORS'); static const $core.List values = [ ANCESTOR_MODE_UNSPECIFIED, @@ -37,22 +37,14 @@ class Index_AncestorMode extends $pb.ProtobufEnum { const Index_AncestorMode._($core.int v, $core.String n) : super(v, n); } +/// The direction determines how a property is indexed. class Index_Direction extends $pb.ProtobufEnum { - static const Index_Direction DIRECTION_UNSPECIFIED = Index_Direction._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DIRECTION_UNSPECIFIED'); - static const Index_Direction ASCENDING = Index_Direction._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ASCENDING'); - static const Index_Direction DESCENDING = Index_Direction._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DESCENDING'); + static const Index_Direction DIRECTION_UNSPECIFIED = + Index_Direction._(0, _omitEnumNames ? '' : 'DIRECTION_UNSPECIFIED'); + static const Index_Direction ASCENDING = + Index_Direction._(1, _omitEnumNames ? '' : 'ASCENDING'); + static const Index_Direction DESCENDING = + Index_Direction._(2, _omitEnumNames ? '' : 'DESCENDING'); static const $core.List values = [ DIRECTION_UNSPECIFIED, @@ -67,20 +59,18 @@ class Index_Direction extends $pb.ProtobufEnum { const Index_Direction._($core.int v, $core.String n) : super(v, n); } +/// The possible set of states of an index. class Index_State extends $pb.ProtobufEnum { - static const Index_State STATE_UNSPECIFIED = Index_State._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STATE_UNSPECIFIED'); - static const Index_State CREATING = Index_State._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CREATING'); - static const Index_State READY = Index_State._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'READY'); - static const Index_State DELETING = Index_State._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DELETING'); - static const Index_State ERROR = Index_State._( - 4, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ERROR'); + static const Index_State STATE_UNSPECIFIED = + Index_State._(0, _omitEnumNames ? '' : 'STATE_UNSPECIFIED'); + static const Index_State CREATING = + Index_State._(1, _omitEnumNames ? '' : 'CREATING'); + static const Index_State READY = + Index_State._(2, _omitEnumNames ? '' : 'READY'); + static const Index_State DELETING = + Index_State._(3, _omitEnumNames ? '' : 'DELETING'); + static const Index_State ERROR = + Index_State._(4, _omitEnumNames ? '' : 'ERROR'); static const $core.List values = [ STATE_UNSPECIFIED, @@ -96,3 +86,5 @@ class Index_State extends $pb.ProtobufEnum { const Index_State._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pbjson.dart index 8a690934..88b7e355 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/index.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1/index.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 indexDescriptor instead') @@ -99,4 +103,16 @@ const Index_State$json = { /// Descriptor for `Index`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List indexDescriptor = $convert.base64Decode( - 'CgVJbmRleBIiCgpwcm9qZWN0X2lkGAEgASgJQgPgQQNSCXByb2plY3RJZBIeCghpbmRleF9pZBgDIAEoCUID4EEDUgdpbmRleElkEhcKBGtpbmQYBCABKAlCA+BBAlIEa2luZBJOCghhbmNlc3RvchgFIAEoDjItLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuSW5kZXguQW5jZXN0b3JNb2RlQgPgQQJSCGFuY2VzdG9yElUKCnByb3BlcnRpZXMYBiADKAsyMC5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLkluZGV4LkluZGV4ZWRQcm9wZXJ0eUID4EECUgpwcm9wZXJ0aWVzEkEKBXN0YXRlGAcgASgOMiYuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5JbmRleC5TdGF0ZUID4EEDUgVzdGF0ZRp5Cg9JbmRleGVkUHJvcGVydHkSFwoEbmFtZRgBIAEoCUID4EECUgRuYW1lEk0KCWRpcmVjdGlvbhgCIAEoDjIqLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuSW5kZXguRGlyZWN0aW9uQgPgQQJSCWRpcmVjdGlvbiJKCgxBbmNlc3Rvck1vZGUSHQoZQU5DRVNUT1JfTU9ERV9VTlNQRUNJRklFRBAAEggKBE5PTkUQARIRCg1BTExfQU5DRVNUT1JTEAIiRQoJRGlyZWN0aW9uEhkKFURJUkVDVElPTl9VTlNQRUNJRklFRBAAEg0KCUFTQ0VORElORxABEg4KCkRFU0NFTkRJTkcQAiJQCgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgwKCENSRUFUSU5HEAESCQoFUkVBRFkQAhIMCghERUxFVElORxADEgkKBUVSUk9SEAQ='); + 'CgVJbmRleBIiCgpwcm9qZWN0X2lkGAEgASgJQgPgQQNSCXByb2plY3RJZBIeCghpbmRleF9pZB' + 'gDIAEoCUID4EEDUgdpbmRleElkEhcKBGtpbmQYBCABKAlCA+BBAlIEa2luZBJOCghhbmNlc3Rv' + 'chgFIAEoDjItLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuSW5kZXguQW5jZXN0b3JNb2RlQg' + 'PgQQJSCGFuY2VzdG9yElUKCnByb3BlcnRpZXMYBiADKAsyMC5nb29nbGUuZGF0YXN0b3JlLmFk' + 'bWluLnYxLkluZGV4LkluZGV4ZWRQcm9wZXJ0eUID4EECUgpwcm9wZXJ0aWVzEkEKBXN0YXRlGA' + 'cgASgOMiYuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5JbmRleC5TdGF0ZUID4EEDUgVzdGF0' + 'ZRp5Cg9JbmRleGVkUHJvcGVydHkSFwoEbmFtZRgBIAEoCUID4EECUgRuYW1lEk0KCWRpcmVjdG' + 'lvbhgCIAEoDjIqLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuSW5kZXguRGlyZWN0aW9uQgPg' + 'QQJSCWRpcmVjdGlvbiJKCgxBbmNlc3Rvck1vZGUSHQoZQU5DRVNUT1JfTU9ERV9VTlNQRUNJRk' + 'lFRBAAEggKBE5PTkUQARIRCg1BTExfQU5DRVNUT1JTEAIiRQoJRGlyZWN0aW9uEhkKFURJUkVD' + 'VElPTl9VTlNQRUNJRklFRBAAEg0KCUFTQ0VORElORxABEg4KCkRFU0NFTkRJTkcQAiJQCgVTdG' + 'F0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEgwKCENSRUFUSU5HEAESCQoFUkVBRFkQAhIMCghE' + 'RUxFVElORxADEgkKBUVSUk9SEAQ='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pb.dart index 869b9fd9..df007afd 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1/migration.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -13,43 +17,38 @@ import 'migration.pbenum.dart'; export 'migration.pbenum.dart'; +/// An event signifying a change in state of a [migration from Cloud Datastore to +/// Cloud Firestore in Datastore +/// mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore). class MigrationStateEvent extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MigrationStateEvent', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'state', - $pb.PbFieldType.OE, - defaultOrMaker: MigrationState.MIGRATION_STATE_UNSPECIFIED, - valueOf: MigrationState.valueOf, - enumValues: MigrationState.values) - ..hasRequiredFields = false; - - MigrationStateEvent._() : super(); factory MigrationStateEvent({ MigrationState? state, }) { - final _result = create(); + final $result = create(); if (state != null) { - _result.state = state; + $result.state = state; } - return _result; + return $result; } + MigrationStateEvent._() : super(); factory MigrationStateEvent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MigrationStateEvent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MigrationStateEvent', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: MigrationState.MIGRATION_STATE_UNSPECIFIED, + valueOf: MigrationState.valueOf, + enumValues: MigrationState.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -59,8 +58,10 @@ class MigrationStateEvent extends $pb.GeneratedMessage { 'Will be removed in next major version') MigrationStateEvent copyWith(void Function(MigrationStateEvent) updates) => super.copyWith((message) => updates(message as MigrationStateEvent)) - as MigrationStateEvent; // ignore: deprecated_member_use + as MigrationStateEvent; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MigrationStateEvent create() => MigrationStateEvent._(); MigrationStateEvent createEmptyInstance() => create(); @@ -71,6 +72,7 @@ class MigrationStateEvent extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MigrationStateEvent? _defaultInstance; + /// The new state of the migration. @$pb.TagNumber(1) MigrationState get state => $_getN(0); @$pb.TagNumber(1) @@ -84,43 +86,225 @@ class MigrationStateEvent extends $pb.GeneratedMessage { void clearState() => clearField(1); } -class MigrationProgressEvent extends $pb.GeneratedMessage { +/// Details for the `PREPARE` step. +class MigrationProgressEvent_PrepareStepDetails extends $pb.GeneratedMessage { + factory MigrationProgressEvent_PrepareStepDetails({ + MigrationProgressEvent_ConcurrencyMode? concurrencyMode, + }) { + final $result = create(); + if (concurrencyMode != null) { + $result.concurrencyMode = concurrencyMode; + } + return $result; + } + MigrationProgressEvent_PrepareStepDetails._() : super(); + factory MigrationProgressEvent_PrepareStepDetails.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory MigrationProgressEvent_PrepareStepDetails.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') + _omitMessageNames ? '' : 'MigrationProgressEvent.PrepareStepDetails', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'concurrencyMode', $pb.PbFieldType.OE, + defaultOrMaker: + MigrationProgressEvent_ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED, + valueOf: MigrationProgressEvent_ConcurrencyMode.valueOf, + enumValues: MigrationProgressEvent_ConcurrencyMode.values) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MigrationProgressEvent_PrepareStepDetails clone() => + MigrationProgressEvent_PrepareStepDetails()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MigrationProgressEvent_PrepareStepDetails copyWith( + void Function(MigrationProgressEvent_PrepareStepDetails) updates) => + super.copyWith((message) => + updates(message as MigrationProgressEvent_PrepareStepDetails)) + as MigrationProgressEvent_PrepareStepDetails; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static MigrationProgressEvent_PrepareStepDetails create() => + MigrationProgressEvent_PrepareStepDetails._(); + MigrationProgressEvent_PrepareStepDetails createEmptyInstance() => create(); + static $pb.PbList + createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static MigrationProgressEvent_PrepareStepDetails getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + MigrationProgressEvent_PrepareStepDetails>(create); + static MigrationProgressEvent_PrepareStepDetails? _defaultInstance; + + /// The concurrency mode this database will use when it reaches the + /// `REDIRECT_WRITES` step. + @$pb.TagNumber(1) + MigrationProgressEvent_ConcurrencyMode get concurrencyMode => $_getN(0); + @$pb.TagNumber(1) + set concurrencyMode(MigrationProgressEvent_ConcurrencyMode v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasConcurrencyMode() => $_has(0); + @$pb.TagNumber(1) + void clearConcurrencyMode() => clearField(1); +} + +/// Details for the `REDIRECT_WRITES` step. +class MigrationProgressEvent_RedirectWritesStepDetails + extends $pb.GeneratedMessage { + factory MigrationProgressEvent_RedirectWritesStepDetails({ + MigrationProgressEvent_ConcurrencyMode? concurrencyMode, + }) { + final $result = create(); + if (concurrencyMode != null) { + $result.concurrencyMode = concurrencyMode; + } + return $result; + } + MigrationProgressEvent_RedirectWritesStepDetails._() : super(); + factory MigrationProgressEvent_RedirectWritesStepDetails.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory MigrationProgressEvent_RedirectWritesStepDetails.fromJson( + $core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' - : 'MigrationProgressEvent', + : 'MigrationProgressEvent.RedirectWritesStepDetails', package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1'), + _omitMessageNames ? '' : 'google.datastore.admin.v1'), createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'step', - $pb.PbFieldType.OE, - defaultOrMaker: MigrationStep.MIGRATION_STEP_UNSPECIFIED, - valueOf: MigrationStep.valueOf, - enumValues: MigrationStep.values) + ..e( + 1, _omitFieldNames ? '' : 'concurrencyMode', $pb.PbFieldType.OE, + defaultOrMaker: + MigrationProgressEvent_ConcurrencyMode.CONCURRENCY_MODE_UNSPECIFIED, + valueOf: MigrationProgressEvent_ConcurrencyMode.valueOf, + enumValues: MigrationProgressEvent_ConcurrencyMode.values) ..hasRequiredFields = false; - MigrationProgressEvent._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + MigrationProgressEvent_RedirectWritesStepDetails clone() => + MigrationProgressEvent_RedirectWritesStepDetails() + ..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + MigrationProgressEvent_RedirectWritesStepDetails copyWith( + void Function(MigrationProgressEvent_RedirectWritesStepDetails) + updates) => + super.copyWith((message) => updates( + message as MigrationProgressEvent_RedirectWritesStepDetails)) + as MigrationProgressEvent_RedirectWritesStepDetails; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static MigrationProgressEvent_RedirectWritesStepDetails create() => + MigrationProgressEvent_RedirectWritesStepDetails._(); + MigrationProgressEvent_RedirectWritesStepDetails createEmptyInstance() => + create(); + static $pb.PbList + createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static MigrationProgressEvent_RedirectWritesStepDetails getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + MigrationProgressEvent_RedirectWritesStepDetails>(create); + static MigrationProgressEvent_RedirectWritesStepDetails? _defaultInstance; + + /// Ths concurrency mode for this database. + @$pb.TagNumber(1) + MigrationProgressEvent_ConcurrencyMode get concurrencyMode => $_getN(0); + @$pb.TagNumber(1) + set concurrencyMode(MigrationProgressEvent_ConcurrencyMode v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasConcurrencyMode() => $_has(0); + @$pb.TagNumber(1) + void clearConcurrencyMode() => clearField(1); +} + +enum MigrationProgressEvent_StepDetails { + prepareStepDetails, + redirectWritesStepDetails, + notSet +} + +/// An event signifying the start of a new step in a [migration from Cloud +/// Datastore to Cloud Firestore in Datastore +/// mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore). +class MigrationProgressEvent extends $pb.GeneratedMessage { factory MigrationProgressEvent({ MigrationStep? step, + MigrationProgressEvent_PrepareStepDetails? prepareStepDetails, + MigrationProgressEvent_RedirectWritesStepDetails? redirectWritesStepDetails, }) { - final _result = create(); + final $result = create(); if (step != null) { - _result.step = step; + $result.step = step; + } + if (prepareStepDetails != null) { + $result.prepareStepDetails = prepareStepDetails; } - return _result; + if (redirectWritesStepDetails != null) { + $result.redirectWritesStepDetails = redirectWritesStepDetails; + } + return $result; } + MigrationProgressEvent._() : super(); factory MigrationProgressEvent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MigrationProgressEvent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, MigrationProgressEvent_StepDetails> + _MigrationProgressEvent_StepDetailsByTag = { + 2: MigrationProgressEvent_StepDetails.prepareStepDetails, + 3: MigrationProgressEvent_StepDetails.redirectWritesStepDetails, + 0: MigrationProgressEvent_StepDetails.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MigrationProgressEvent', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1'), + createEmptyInstance: create) + ..oo(0, [2, 3]) + ..e(1, _omitFieldNames ? '' : 'step', $pb.PbFieldType.OE, + defaultOrMaker: MigrationStep.MIGRATION_STEP_UNSPECIFIED, + valueOf: MigrationStep.valueOf, + enumValues: MigrationStep.values) + ..aOM( + 2, _omitFieldNames ? '' : 'prepareStepDetails', + subBuilder: MigrationProgressEvent_PrepareStepDetails.create) + ..aOM( + 3, _omitFieldNames ? '' : 'redirectWritesStepDetails', + subBuilder: MigrationProgressEvent_RedirectWritesStepDetails.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') @@ -132,8 +316,10 @@ class MigrationProgressEvent extends $pb.GeneratedMessage { MigrationProgressEvent copyWith( void Function(MigrationProgressEvent) updates) => super.copyWith((message) => updates(message as MigrationProgressEvent)) - as MigrationProgressEvent; // ignore: deprecated_member_use + as MigrationProgressEvent; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MigrationProgressEvent create() => MigrationProgressEvent._(); MigrationProgressEvent createEmptyInstance() => create(); @@ -144,6 +330,14 @@ class MigrationProgressEvent extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MigrationProgressEvent? _defaultInstance; + MigrationProgressEvent_StepDetails whichStepDetails() => + _MigrationProgressEvent_StepDetailsByTag[$_whichOneof(0)]!; + void clearStepDetails() => clearField($_whichOneof(0)); + + /// The step that is starting. + /// + /// An event with step set to `START` indicates that the migration + /// has been reverted back to the initial pre-migration state. @$pb.TagNumber(1) MigrationStep get step => $_getN(0); @$pb.TagNumber(1) @@ -155,4 +349,42 @@ class MigrationProgressEvent extends $pb.GeneratedMessage { $core.bool hasStep() => $_has(0); @$pb.TagNumber(1) void clearStep() => clearField(1); + + /// Details for the `PREPARE` step. + @$pb.TagNumber(2) + MigrationProgressEvent_PrepareStepDetails get prepareStepDetails => $_getN(1); + @$pb.TagNumber(2) + set prepareStepDetails(MigrationProgressEvent_PrepareStepDetails v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasPrepareStepDetails() => $_has(1); + @$pb.TagNumber(2) + void clearPrepareStepDetails() => clearField(2); + @$pb.TagNumber(2) + MigrationProgressEvent_PrepareStepDetails ensurePrepareStepDetails() => + $_ensure(1); + + /// Details for the `REDIRECT_WRITES` step. + @$pb.TagNumber(3) + MigrationProgressEvent_RedirectWritesStepDetails + get redirectWritesStepDetails => $_getN(2); + @$pb.TagNumber(3) + set redirectWritesStepDetails( + MigrationProgressEvent_RedirectWritesStepDetails v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasRedirectWritesStepDetails() => $_has(2); + @$pb.TagNumber(3) + void clearRedirectWritesStepDetails() => clearField(3); + @$pb.TagNumber(3) + MigrationProgressEvent_RedirectWritesStepDetails + ensureRedirectWritesStepDetails() => $_ensure(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pbenum.dart index b0fdaebf..3be7f44e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pbenum.dart @@ -1,26 +1,28 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1/migration.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// States for a migration. class MigrationState extends $pb.ProtobufEnum { - static const MigrationState MIGRATION_STATE_UNSPECIFIED = MigrationState._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MIGRATION_STATE_UNSPECIFIED'); - static const MigrationState RUNNING = MigrationState._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'RUNNING'); - static const MigrationState PAUSED = MigrationState._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'PAUSED'); - static const MigrationState COMPLETE = MigrationState._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'COMPLETE'); + static const MigrationState MIGRATION_STATE_UNSPECIFIED = + MigrationState._(0, _omitEnumNames ? '' : 'MIGRATION_STATE_UNSPECIFIED'); + static const MigrationState RUNNING = + MigrationState._(1, _omitEnumNames ? '' : 'RUNNING'); + static const MigrationState PAUSED = + MigrationState._(2, _omitEnumNames ? '' : 'PAUSED'); + static const MigrationState COMPLETE = + MigrationState._(3, _omitEnumNames ? '' : 'COMPLETE'); static const $core.List values = [ MIGRATION_STATE_UNSPECIFIED, @@ -36,40 +38,32 @@ class MigrationState extends $pb.ProtobufEnum { const MigrationState._($core.int v, $core.String n) : super(v, n); } +/// Steps in a migration. class MigrationStep extends $pb.ProtobufEnum { - static const MigrationStep MIGRATION_STEP_UNSPECIFIED = MigrationStep._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MIGRATION_STEP_UNSPECIFIED'); - static const MigrationStep START = MigrationStep._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'START'); - static const MigrationStep COPY_AND_VERIFY = MigrationStep._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'COPY_AND_VERIFY'); + static const MigrationStep MIGRATION_STEP_UNSPECIFIED = + MigrationStep._(0, _omitEnumNames ? '' : 'MIGRATION_STEP_UNSPECIFIED'); + static const MigrationStep PREPARE = + MigrationStep._(6, _omitEnumNames ? '' : 'PREPARE'); + static const MigrationStep START = + MigrationStep._(1, _omitEnumNames ? '' : 'START'); + static const MigrationStep APPLY_WRITES_SYNCHRONOUSLY = + MigrationStep._(7, _omitEnumNames ? '' : 'APPLY_WRITES_SYNCHRONOUSLY'); + static const MigrationStep COPY_AND_VERIFY = + MigrationStep._(2, _omitEnumNames ? '' : 'COPY_AND_VERIFY'); static const MigrationStep REDIRECT_EVENTUALLY_CONSISTENT_READS = MigrationStep._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_EVENTUALLY_CONSISTENT_READS'); + 3, _omitEnumNames ? '' : 'REDIRECT_EVENTUALLY_CONSISTENT_READS'); static const MigrationStep REDIRECT_STRONGLY_CONSISTENT_READS = MigrationStep._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_STRONGLY_CONSISTENT_READS'); - static const MigrationStep REDIRECT_WRITES = MigrationStep._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REDIRECT_WRITES'); + 4, _omitEnumNames ? '' : 'REDIRECT_STRONGLY_CONSISTENT_READS'); + static const MigrationStep REDIRECT_WRITES = + MigrationStep._(5, _omitEnumNames ? '' : 'REDIRECT_WRITES'); static const $core.List values = [ MIGRATION_STEP_UNSPECIFIED, + PREPARE, START, + APPLY_WRITES_SYNCHRONOUSLY, COPY_AND_VERIFY, REDIRECT_EVENTUALLY_CONSISTENT_READS, REDIRECT_STRONGLY_CONSISTENT_READS, @@ -82,3 +76,37 @@ class MigrationStep extends $pb.ProtobufEnum { const MigrationStep._($core.int v, $core.String n) : super(v, n); } + +/// Concurrency modes for transactions in Cloud Firestore. +class MigrationProgressEvent_ConcurrencyMode extends $pb.ProtobufEnum { + static const MigrationProgressEvent_ConcurrencyMode + CONCURRENCY_MODE_UNSPECIFIED = MigrationProgressEvent_ConcurrencyMode._( + 0, _omitEnumNames ? '' : 'CONCURRENCY_MODE_UNSPECIFIED'); + static const MigrationProgressEvent_ConcurrencyMode PESSIMISTIC = + MigrationProgressEvent_ConcurrencyMode._( + 1, _omitEnumNames ? '' : 'PESSIMISTIC'); + static const MigrationProgressEvent_ConcurrencyMode OPTIMISTIC = + MigrationProgressEvent_ConcurrencyMode._( + 2, _omitEnumNames ? '' : 'OPTIMISTIC'); + static const MigrationProgressEvent_ConcurrencyMode + OPTIMISTIC_WITH_ENTITY_GROUPS = MigrationProgressEvent_ConcurrencyMode._( + 3, _omitEnumNames ? '' : 'OPTIMISTIC_WITH_ENTITY_GROUPS'); + + static const $core.List values = + [ + CONCURRENCY_MODE_UNSPECIFIED, + PESSIMISTIC, + OPTIMISTIC, + OPTIMISTIC_WITH_ENTITY_GROUPS, + ]; + + static final $core.Map<$core.int, MigrationProgressEvent_ConcurrencyMode> + _byValue = $pb.ProtobufEnum.initByValue(values); + static MigrationProgressEvent_ConcurrencyMode? valueOf($core.int value) => + _byValue[value]; + + const MigrationProgressEvent_ConcurrencyMode._($core.int v, $core.String n) + : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pbjson.dart index 4b2bd9f5..47318c63 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1/migration.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1/migration.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 migrationStateDescriptor instead') @@ -22,13 +26,17 @@ const MigrationState$json = { /// Descriptor for `MigrationState`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List migrationStateDescriptor = $convert.base64Decode( - 'Cg5NaWdyYXRpb25TdGF0ZRIfChtNSUdSQVRJT05fU1RBVEVfVU5TUEVDSUZJRUQQABILCgdSVU5OSU5HEAESCgoGUEFVU0VEEAISDAoIQ09NUExFVEUQAw=='); + 'Cg5NaWdyYXRpb25TdGF0ZRIfChtNSUdSQVRJT05fU1RBVEVfVU5TUEVDSUZJRUQQABILCgdSVU' + '5OSU5HEAESCgoGUEFVU0VEEAISDAoIQ09NUExFVEUQAw=='); + @$core.Deprecated('Use migrationStepDescriptor instead') const MigrationStep$json = { '1': 'MigrationStep', '2': [ {'1': 'MIGRATION_STEP_UNSPECIFIED', '2': 0}, + {'1': 'PREPARE', '2': 6}, {'1': 'START', '2': 1}, + {'1': 'APPLY_WRITES_SYNCHRONOUSLY', '2': 7}, {'1': 'COPY_AND_VERIFY', '2': 2}, {'1': 'REDIRECT_EVENTUALLY_CONSISTENT_READS', '2': 3}, {'1': 'REDIRECT_STRONGLY_CONSISTENT_READS', '2': 4}, @@ -38,7 +46,12 @@ const MigrationStep$json = { /// Descriptor for `MigrationStep`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List migrationStepDescriptor = $convert.base64Decode( - 'Cg1NaWdyYXRpb25TdGVwEh4KGk1JR1JBVElPTl9TVEVQX1VOU1BFQ0lGSUVEEAASCQoFU1RBUlQQARITCg9DT1BZX0FORF9WRVJJRlkQAhIoCiRSRURJUkVDVF9FVkVOVFVBTExZX0NPTlNJU1RFTlRfUkVBRFMQAxImCiJSRURJUkVDVF9TVFJPTkdMWV9DT05TSVNURU5UX1JFQURTEAQSEwoPUkVESVJFQ1RfV1JJVEVTEAU='); + 'Cg1NaWdyYXRpb25TdGVwEh4KGk1JR1JBVElPTl9TVEVQX1VOU1BFQ0lGSUVEEAASCwoHUFJFUE' + 'FSRRAGEgkKBVNUQVJUEAESHgoaQVBQTFlfV1JJVEVTX1NZTkNIUk9OT1VTTFkQBxITCg9DT1BZ' + 'X0FORF9WRVJJRlkQAhIoCiRSRURJUkVDVF9FVkVOVFVBTExZX0NPTlNJU1RFTlRfUkVBRFMQAx' + 'ImCiJSRURJUkVDVF9TVFJPTkdMWV9DT05TSVNURU5UX1JFQURTEAQSEwoPUkVESVJFQ1RfV1JJ' + 'VEVTEAU='); + @$core.Deprecated('Use migrationStateEventDescriptor instead') const MigrationStateEvent$json = { '1': 'MigrationStateEvent', @@ -56,7 +69,9 @@ const MigrationStateEvent$json = { /// Descriptor for `MigrationStateEvent`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List migrationStateEventDescriptor = $convert.base64Decode( - 'ChNNaWdyYXRpb25TdGF0ZUV2ZW50Ej8KBXN0YXRlGAEgASgOMikuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5NaWdyYXRpb25TdGF0ZVIFc3RhdGU='); + 'ChNNaWdyYXRpb25TdGF0ZUV2ZW50Ej8KBXN0YXRlGAEgASgOMikuZ29vZ2xlLmRhdGFzdG9yZS' + '5hZG1pbi52MS5NaWdyYXRpb25TdGF0ZVIFc3RhdGU='); + @$core.Deprecated('Use migrationProgressEventDescriptor instead') const MigrationProgressEvent$json = { '1': 'MigrationProgressEvent', @@ -69,10 +84,91 @@ const MigrationProgressEvent$json = { '6': '.google.datastore.admin.v1.MigrationStep', '10': 'step' }, + { + '1': 'prepare_step_details', + '3': 2, + '4': 1, + '5': 11, + '6': + '.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails', + '9': 0, + '10': 'prepareStepDetails' + }, + { + '1': 'redirect_writes_step_details', + '3': 3, + '4': 1, + '5': 11, + '6': + '.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails', + '9': 0, + '10': 'redirectWritesStepDetails' + }, + ], + '3': [ + MigrationProgressEvent_PrepareStepDetails$json, + MigrationProgressEvent_RedirectWritesStepDetails$json + ], + '4': [MigrationProgressEvent_ConcurrencyMode$json], + '8': [ + {'1': 'step_details'}, + ], +}; + +@$core.Deprecated('Use migrationProgressEventDescriptor instead') +const MigrationProgressEvent_PrepareStepDetails$json = { + '1': 'PrepareStepDetails', + '2': [ + { + '1': 'concurrency_mode', + '3': 1, + '4': 1, + '5': 14, + '6': '.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode', + '10': 'concurrencyMode' + }, + ], +}; + +@$core.Deprecated('Use migrationProgressEventDescriptor instead') +const MigrationProgressEvent_RedirectWritesStepDetails$json = { + '1': 'RedirectWritesStepDetails', + '2': [ + { + '1': 'concurrency_mode', + '3': 1, + '4': 1, + '5': 14, + '6': '.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode', + '10': 'concurrencyMode' + }, + ], +}; + +@$core.Deprecated('Use migrationProgressEventDescriptor instead') +const MigrationProgressEvent_ConcurrencyMode$json = { + '1': 'ConcurrencyMode', + '2': [ + {'1': 'CONCURRENCY_MODE_UNSPECIFIED', '2': 0}, + {'1': 'PESSIMISTIC', '2': 1}, + {'1': 'OPTIMISTIC', '2': 2}, + {'1': 'OPTIMISTIC_WITH_ENTITY_GROUPS', '2': 3}, ], }; /// Descriptor for `MigrationProgressEvent`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List migrationProgressEventDescriptor = - $convert.base64Decode( - 'ChZNaWdyYXRpb25Qcm9ncmVzc0V2ZW50EjwKBHN0ZXAYASABKA4yKC5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLk1pZ3JhdGlvblN0ZXBSBHN0ZXA='); +final $typed_data.Uint8List migrationProgressEventDescriptor = $convert.base64Decode( + 'ChZNaWdyYXRpb25Qcm9ncmVzc0V2ZW50EjwKBHN0ZXAYASABKA4yKC5nb29nbGUuZGF0YXN0b3' + 'JlLmFkbWluLnYxLk1pZ3JhdGlvblN0ZXBSBHN0ZXASeAoUcHJlcGFyZV9zdGVwX2RldGFpbHMY' + 'AiABKAsyRC5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxLk1pZ3JhdGlvblByb2dyZXNzRXZlbn' + 'QuUHJlcGFyZVN0ZXBEZXRhaWxzSABSEnByZXBhcmVTdGVwRGV0YWlscxKOAQoccmVkaXJlY3Rf' + 'd3JpdGVzX3N0ZXBfZGV0YWlscxgDIAEoCzJLLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuTW' + 'lncmF0aW9uUHJvZ3Jlc3NFdmVudC5SZWRpcmVjdFdyaXRlc1N0ZXBEZXRhaWxzSABSGXJlZGly' + 'ZWN0V3JpdGVzU3RlcERldGFpbHMaggEKElByZXBhcmVTdGVwRGV0YWlscxJsChBjb25jdXJyZW' + '5jeV9tb2RlGAEgASgOMkEuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MS5NaWdyYXRpb25Qcm9n' + 'cmVzc0V2ZW50LkNvbmN1cnJlbmN5TW9kZVIPY29uY3VycmVuY3lNb2RlGokBChlSZWRpcmVjdF' + 'dyaXRlc1N0ZXBEZXRhaWxzEmwKEGNvbmN1cnJlbmN5X21vZGUYASABKA4yQS5nb29nbGUuZGF0' + 'YXN0b3JlLmFkbWluLnYxLk1pZ3JhdGlvblByb2dyZXNzRXZlbnQuQ29uY3VycmVuY3lNb2RlUg' + '9jb25jdXJyZW5jeU1vZGUidwoPQ29uY3VycmVuY3lNb2RlEiAKHENPTkNVUlJFTkNZX01PREVf' + 'VU5TUEVDSUZJRUQQABIPCgtQRVNTSU1JU1RJQxABEg4KCk9QVElNSVNUSUMQAhIhCh1PUFRJTU' + 'lTVElDX1dJVEhfRU5USVRZX0dST1VQUxADQg4KDHN0ZXBfZGV0YWlscw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pb.dart index 2f27d24a..b8e72dce 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pb.dart @@ -1,80 +1,85 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1beta1/datastore_admin.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../protobuf/timestamp.pb.dart' as $3; - +import '../../../protobuf/timestamp.pb.dart' as $50; import 'datastore_admin.pbenum.dart'; export 'datastore_admin.pbenum.dart'; +/// Metadata common to all Datastore Admin operations. class CommonMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CommonMetadata', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1beta1'), - createEmptyInstance: create) - ..aOM<$3.Timestamp>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startTime', - subBuilder: $3.Timestamp.create) - ..aOM<$3.Timestamp>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endTime', - subBuilder: $3.Timestamp.create) - ..e(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'operationType', $pb.PbFieldType.OE, - defaultOrMaker: OperationType.OPERATION_TYPE_UNSPECIFIED, - valueOf: OperationType.valueOf, - enumValues: OperationType.values) - ..m<$core.String, $core.String>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - entryClassName: 'CommonMetadata.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.datastore.admin.v1beta1')) - ..e( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', $pb.PbFieldType.OE, - defaultOrMaker: CommonMetadata_State.STATE_UNSPECIFIED, - valueOf: CommonMetadata_State.valueOf, - enumValues: CommonMetadata_State.values) - ..hasRequiredFields = false; - - CommonMetadata._() : super(); factory CommonMetadata({ - $3.Timestamp? startTime, - $3.Timestamp? endTime, + $50.Timestamp? startTime, + $50.Timestamp? endTime, OperationType? operationType, $core.Map<$core.String, $core.String>? labels, CommonMetadata_State? state, }) { - final _result = create(); + final $result = create(); if (startTime != null) { - _result.startTime = startTime; + $result.startTime = startTime; } if (endTime != null) { - _result.endTime = endTime; + $result.endTime = endTime; } if (operationType != null) { - _result.operationType = operationType; + $result.operationType = operationType; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (state != null) { - _result.state = state; + $result.state = state; } - return _result; + return $result; } + CommonMetadata._() : super(); factory CommonMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CommonMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CommonMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1beta1'), + createEmptyInstance: create) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(2, _omitFieldNames ? '' : 'endTime', + subBuilder: $50.Timestamp.create) + ..e( + 3, _omitFieldNames ? '' : 'operationType', $pb.PbFieldType.OE, + defaultOrMaker: OperationType.OPERATION_TYPE_UNSPECIFIED, + valueOf: OperationType.valueOf, + enumValues: OperationType.values) + ..m<$core.String, $core.String>(4, _omitFieldNames ? '' : 'labels', + entryClassName: 'CommonMetadata.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.datastore.admin.v1beta1')) + ..e( + 5, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: CommonMetadata_State.STATE_UNSPECIFIED, + valueOf: CommonMetadata_State.valueOf, + enumValues: CommonMetadata_State.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -84,8 +89,10 @@ class CommonMetadata extends $pb.GeneratedMessage { 'Will be removed in next major version') CommonMetadata copyWith(void Function(CommonMetadata) updates) => super.copyWith((message) => updates(message as CommonMetadata)) - as CommonMetadata; // ignore: deprecated_member_use + as CommonMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CommonMetadata create() => CommonMetadata._(); CommonMetadata createEmptyInstance() => create(); @@ -96,10 +103,11 @@ class CommonMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CommonMetadata? _defaultInstance; + /// The time that work began on the operation. @$pb.TagNumber(1) - $3.Timestamp get startTime => $_getN(0); + $50.Timestamp get startTime => $_getN(0); @$pb.TagNumber(1) - set startTime($3.Timestamp v) { + set startTime($50.Timestamp v) { setField(1, v); } @@ -108,12 +116,13 @@ class CommonMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearStartTime() => clearField(1); @$pb.TagNumber(1) - $3.Timestamp ensureStartTime() => $_ensure(0); + $50.Timestamp ensureStartTime() => $_ensure(0); + /// The time the operation ended, either successfully or otherwise. @$pb.TagNumber(2) - $3.Timestamp get endTime => $_getN(1); + $50.Timestamp get endTime => $_getN(1); @$pb.TagNumber(2) - set endTime($3.Timestamp v) { + set endTime($50.Timestamp v) { setField(2, v); } @@ -122,8 +131,10 @@ class CommonMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearEndTime() => clearField(2); @$pb.TagNumber(2) - $3.Timestamp ensureEndTime() => $_ensure(1); + $50.Timestamp ensureEndTime() => $_ensure(1); + /// The type of the operation. Can be used as a filter in + /// ListOperationsRequest. @$pb.TagNumber(3) OperationType get operationType => $_getN(2); @$pb.TagNumber(3) @@ -136,9 +147,12 @@ class CommonMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearOperationType() => clearField(3); + /// The client-assigned labels which were provided when the operation was + /// created. May also include additional labels. @$pb.TagNumber(4) $core.Map<$core.String, $core.String> get labels => $_getMap(3); + /// The current state of the Operation. @$pb.TagNumber(5) CommonMetadata_State get state => $_getN(4); @$pb.TagNumber(5) @@ -152,48 +166,38 @@ class CommonMetadata extends $pb.GeneratedMessage { void clearState() => clearField(5); } +/// Measures the progress of a particular metric. class Progress extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Progress', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1beta1'), - createEmptyInstance: create) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'workCompleted') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'workEstimated') - ..hasRequiredFields = false; - - Progress._() : super(); factory Progress({ $fixnum.Int64? workCompleted, $fixnum.Int64? workEstimated, }) { - final _result = create(); + final $result = create(); if (workCompleted != null) { - _result.workCompleted = workCompleted; + $result.workCompleted = workCompleted; } if (workEstimated != null) { - _result.workEstimated = workEstimated; + $result.workEstimated = workEstimated; } - return _result; + return $result; } + Progress._() : super(); factory Progress.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Progress.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Progress', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1beta1'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'workCompleted') + ..aInt64(2, _omitFieldNames ? '' : 'workEstimated') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -202,9 +206,10 @@ class Progress extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Progress copyWith(void Function(Progress) updates) => - super.copyWith((message) => updates(message as Progress)) - as Progress; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Progress)) as Progress; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Progress create() => Progress._(); Progress createEmptyInstance() => create(); @@ -214,6 +219,8 @@ class Progress extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Progress? _defaultInstance; + /// The amount of work that has been completed. Note that this may be greater + /// than work_estimated. @$pb.TagNumber(1) $fixnum.Int64 get workCompleted => $_getI64(0); @$pb.TagNumber(1) @@ -226,6 +233,8 @@ class Progress extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearWorkCompleted() => clearField(1); + /// An estimate of how much work needs to be performed. May be zero if the + /// work estimate is unavailable. @$pb.TagNumber(2) $fixnum.Int64 get workEstimated => $_getI64(1); @$pb.TagNumber(2) @@ -239,61 +248,54 @@ class Progress extends $pb.GeneratedMessage { void clearWorkEstimated() => clearField(2); } +/// The request for +/// [google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities]. class ExportEntitiesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ExportEntitiesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..m<$core.String, $core.String>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - entryClassName: 'ExportEntitiesRequest.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.datastore.admin.v1beta1')) - ..aOM(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityFilter', - subBuilder: EntityFilter.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputUrlPrefix') - ..hasRequiredFields = false; - - ExportEntitiesRequest._() : super(); factory ExportEntitiesRequest({ $core.String? projectId, $core.Map<$core.String, $core.String>? labels, EntityFilter? entityFilter, $core.String? outputUrlPrefix, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (entityFilter != null) { - _result.entityFilter = entityFilter; + $result.entityFilter = entityFilter; } if (outputUrlPrefix != null) { - _result.outputUrlPrefix = outputUrlPrefix; + $result.outputUrlPrefix = outputUrlPrefix; } - return _result; + return $result; } + ExportEntitiesRequest._() : super(); factory ExportEntitiesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ExportEntitiesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExportEntitiesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'projectId') + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'labels', + entryClassName: 'ExportEntitiesRequest.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.datastore.admin.v1beta1')) + ..aOM(3, _omitFieldNames ? '' : 'entityFilter', + subBuilder: EntityFilter.create) + ..aOS(4, _omitFieldNames ? '' : 'outputUrlPrefix') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -305,8 +307,10 @@ class ExportEntitiesRequest extends $pb.GeneratedMessage { ExportEntitiesRequest copyWith( void Function(ExportEntitiesRequest) updates) => super.copyWith((message) => updates(message as ExportEntitiesRequest)) - as ExportEntitiesRequest; // ignore: deprecated_member_use + as ExportEntitiesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ExportEntitiesRequest create() => ExportEntitiesRequest._(); ExportEntitiesRequest createEmptyInstance() => create(); @@ -317,6 +321,7 @@ class ExportEntitiesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ExportEntitiesRequest? _defaultInstance; + /// Project ID against which to make the request. @$pb.TagNumber(1) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(1) @@ -329,9 +334,11 @@ class ExportEntitiesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProjectId() => clearField(1); + /// Client-assigned labels. @$pb.TagNumber(2) $core.Map<$core.String, $core.String> get labels => $_getMap(1); + /// Description of what data from the project is included in the export. @$pb.TagNumber(3) EntityFilter get entityFilter => $_getN(2); @$pb.TagNumber(3) @@ -346,6 +353,24 @@ class ExportEntitiesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) EntityFilter ensureEntityFilter() => $_ensure(2); + /// Location for the export metadata and data files. + /// + /// The full resource URL of the external storage location. Currently, only + /// Google Cloud Storage is supported. So output_url_prefix should be of the + /// form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the + /// name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud + /// Storage namespace path (this is not a Cloud Datastore namespace). For more + /// information about Cloud Storage namespace paths, see + /// [Object name + /// considerations](https://cloud.google.com/storage/docs/naming#object-considerations). + /// + /// The resulting files will be nested deeper than the specified URL prefix. + /// The final output URL will be provided in the + /// [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url] + /// field. That value should be used for subsequent ImportEntities operations. + /// + /// By nesting the data files deeper, the same Cloud Storage bucket can be used + /// in multiple ExportEntities operations without conflict. @$pb.TagNumber(4) $core.String get outputUrlPrefix => $_getSZ(3); @$pb.TagNumber(4) @@ -359,63 +384,54 @@ class ExportEntitiesRequest extends $pb.GeneratedMessage { void clearOutputUrlPrefix() => clearField(4); } +/// The request for +/// [google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities]. class ImportEntitiesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ImportEntitiesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..m<$core.String, $core.String>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - entryClassName: 'ImportEntitiesRequest.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.datastore.admin.v1beta1')) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'inputUrl') - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityFilter', subBuilder: EntityFilter.create) - ..hasRequiredFields = false; - - ImportEntitiesRequest._() : super(); factory ImportEntitiesRequest({ $core.String? projectId, $core.Map<$core.String, $core.String>? labels, $core.String? inputUrl, EntityFilter? entityFilter, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (inputUrl != null) { - _result.inputUrl = inputUrl; + $result.inputUrl = inputUrl; } if (entityFilter != null) { - _result.entityFilter = entityFilter; + $result.entityFilter = entityFilter; } - return _result; + return $result; } + ImportEntitiesRequest._() : super(); factory ImportEntitiesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportEntitiesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportEntitiesRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'projectId') + ..m<$core.String, $core.String>(2, _omitFieldNames ? '' : 'labels', + entryClassName: 'ImportEntitiesRequest.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.datastore.admin.v1beta1')) + ..aOS(3, _omitFieldNames ? '' : 'inputUrl') + ..aOM(4, _omitFieldNames ? '' : 'entityFilter', + subBuilder: EntityFilter.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') @@ -427,8 +443,10 @@ class ImportEntitiesRequest extends $pb.GeneratedMessage { ImportEntitiesRequest copyWith( void Function(ImportEntitiesRequest) updates) => super.copyWith((message) => updates(message as ImportEntitiesRequest)) - as ImportEntitiesRequest; // ignore: deprecated_member_use + as ImportEntitiesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportEntitiesRequest create() => ImportEntitiesRequest._(); ImportEntitiesRequest createEmptyInstance() => create(); @@ -439,6 +457,7 @@ class ImportEntitiesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ImportEntitiesRequest? _defaultInstance; + /// Project ID against which to make the request. @$pb.TagNumber(1) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(1) @@ -451,9 +470,23 @@ class ImportEntitiesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProjectId() => clearField(1); + /// Client-assigned labels. @$pb.TagNumber(2) $core.Map<$core.String, $core.String> get labels => $_getMap(1); + /// The full resource URL of the external storage location. Currently, only + /// Google Cloud Storage is supported. So input_url should be of the form: + /// `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where + /// `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is + /// an optional Cloud Storage namespace path (this is not a Cloud Datastore + /// namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written + /// by the ExportEntities operation. For more information about Cloud Storage + /// namespace paths, see + /// [Object name + /// considerations](https://cloud.google.com/storage/docs/naming#object-considerations). + /// + /// For more information, see + /// [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url]. @$pb.TagNumber(3) $core.String get inputUrl => $_getSZ(2); @$pb.TagNumber(3) @@ -466,6 +499,10 @@ class ImportEntitiesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearInputUrl() => clearField(3); + /// Optionally specify which kinds/namespaces are to be imported. If provided, + /// the list must be a subset of the EntityFilter used in creating the export, + /// otherwise a FAILED_PRECONDITION error will be returned. If no filter is + /// specified then all entities from the export are imported. @$pb.TagNumber(4) EntityFilter get entityFilter => $_getN(3); @$pb.TagNumber(4) @@ -481,39 +518,34 @@ class ImportEntitiesRequest extends $pb.GeneratedMessage { EntityFilter ensureEntityFilter() => $_ensure(3); } +/// The response for +/// [google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities]. class ExportEntitiesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ExportEntitiesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1beta1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'outputUrl') - ..hasRequiredFields = false; - - ExportEntitiesResponse._() : super(); factory ExportEntitiesResponse({ $core.String? outputUrl, }) { - final _result = create(); + final $result = create(); if (outputUrl != null) { - _result.outputUrl = outputUrl; + $result.outputUrl = outputUrl; } - return _result; + return $result; } + ExportEntitiesResponse._() : super(); factory ExportEntitiesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ExportEntitiesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExportEntitiesResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1beta1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'outputUrl') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -525,8 +557,10 @@ class ExportEntitiesResponse extends $pb.GeneratedMessage { ExportEntitiesResponse copyWith( void Function(ExportEntitiesResponse) updates) => super.copyWith((message) => updates(message as ExportEntitiesResponse)) - as ExportEntitiesResponse; // ignore: deprecated_member_use + as ExportEntitiesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ExportEntitiesResponse create() => ExportEntitiesResponse._(); ExportEntitiesResponse createEmptyInstance() => create(); @@ -537,6 +571,10 @@ class ExportEntitiesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ExportEntitiesResponse? _defaultInstance; + /// Location of the output metadata file. This can be used to begin an import + /// into Cloud Datastore (this project or another project). See + /// [google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url][google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url]. + /// Only present if the operation completed successfully. @$pb.TagNumber(1) $core.String get outputUrl => $_getSZ(0); @$pb.TagNumber(1) @@ -550,29 +588,8 @@ class ExportEntitiesResponse extends $pb.GeneratedMessage { void clearOutputUrl() => clearField(1); } +/// Metadata for ExportEntities operations. class ExportEntitiesMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ExportEntitiesMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1beta1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'common', - subBuilder: CommonMetadata.create) - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'progressEntities', - subBuilder: Progress.create) - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'progressBytes', - subBuilder: Progress.create) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityFilter', subBuilder: EntityFilter.create) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputUrlPrefix') - ..hasRequiredFields = false; - - ExportEntitiesMetadata._() : super(); factory ExportEntitiesMetadata({ CommonMetadata? common, Progress? progressEntities, @@ -580,30 +597,48 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { EntityFilter? entityFilter, $core.String? outputUrlPrefix, }) { - final _result = create(); + final $result = create(); if (common != null) { - _result.common = common; + $result.common = common; } if (progressEntities != null) { - _result.progressEntities = progressEntities; + $result.progressEntities = progressEntities; } if (progressBytes != null) { - _result.progressBytes = progressBytes; + $result.progressBytes = progressBytes; } if (entityFilter != null) { - _result.entityFilter = entityFilter; + $result.entityFilter = entityFilter; } if (outputUrlPrefix != null) { - _result.outputUrlPrefix = outputUrlPrefix; + $result.outputUrlPrefix = outputUrlPrefix; } - return _result; + return $result; } + ExportEntitiesMetadata._() : super(); factory ExportEntitiesMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ExportEntitiesMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExportEntitiesMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1beta1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonMetadata.create) + ..aOM(2, _omitFieldNames ? '' : 'progressEntities', + subBuilder: Progress.create) + ..aOM(3, _omitFieldNames ? '' : 'progressBytes', + subBuilder: Progress.create) + ..aOM(4, _omitFieldNames ? '' : 'entityFilter', + subBuilder: EntityFilter.create) + ..aOS(5, _omitFieldNames ? '' : 'outputUrlPrefix') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -615,8 +650,10 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { ExportEntitiesMetadata copyWith( void Function(ExportEntitiesMetadata) updates) => super.copyWith((message) => updates(message as ExportEntitiesMetadata)) - as ExportEntitiesMetadata; // ignore: deprecated_member_use + as ExportEntitiesMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ExportEntitiesMetadata create() => ExportEntitiesMetadata._(); ExportEntitiesMetadata createEmptyInstance() => create(); @@ -627,6 +664,7 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ExportEntitiesMetadata? _defaultInstance; + /// Metadata common to all Datastore Admin operations. @$pb.TagNumber(1) CommonMetadata get common => $_getN(0); @$pb.TagNumber(1) @@ -641,6 +679,7 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(1) CommonMetadata ensureCommon() => $_ensure(0); + /// An estimate of the number of entities processed. @$pb.TagNumber(2) Progress get progressEntities => $_getN(1); @$pb.TagNumber(2) @@ -655,6 +694,7 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) Progress ensureProgressEntities() => $_ensure(1); + /// An estimate of the number of bytes processed. @$pb.TagNumber(3) Progress get progressBytes => $_getN(2); @$pb.TagNumber(3) @@ -669,6 +709,7 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(3) Progress ensureProgressBytes() => $_ensure(2); + /// Description of which entities are being exported. @$pb.TagNumber(4) EntityFilter get entityFilter => $_getN(3); @$pb.TagNumber(4) @@ -683,6 +724,11 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(4) EntityFilter ensureEntityFilter() => $_ensure(3); + /// Location for the export metadata and data files. This will be the same + /// value as the + /// [google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix] + /// field. The final output location is provided in + /// [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url]. @$pb.TagNumber(5) $core.String get outputUrlPrefix => $_getSZ(4); @$pb.TagNumber(5) @@ -696,29 +742,8 @@ class ExportEntitiesMetadata extends $pb.GeneratedMessage { void clearOutputUrlPrefix() => clearField(5); } +/// Metadata for ImportEntities operations. class ImportEntitiesMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ImportEntitiesMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1beta1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'common', - subBuilder: CommonMetadata.create) - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'progressEntities', - subBuilder: Progress.create) - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'progressBytes', - subBuilder: Progress.create) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityFilter', subBuilder: EntityFilter.create) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'inputUrl') - ..hasRequiredFields = false; - - ImportEntitiesMetadata._() : super(); factory ImportEntitiesMetadata({ CommonMetadata? common, Progress? progressEntities, @@ -726,30 +751,48 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { EntityFilter? entityFilter, $core.String? inputUrl, }) { - final _result = create(); + final $result = create(); if (common != null) { - _result.common = common; + $result.common = common; } if (progressEntities != null) { - _result.progressEntities = progressEntities; + $result.progressEntities = progressEntities; } if (progressBytes != null) { - _result.progressBytes = progressBytes; + $result.progressBytes = progressBytes; } if (entityFilter != null) { - _result.entityFilter = entityFilter; + $result.entityFilter = entityFilter; } if (inputUrl != null) { - _result.inputUrl = inputUrl; + $result.inputUrl = inputUrl; } - return _result; + return $result; } + ImportEntitiesMetadata._() : super(); factory ImportEntitiesMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ImportEntitiesMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ImportEntitiesMetadata', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1beta1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'common', + subBuilder: CommonMetadata.create) + ..aOM(2, _omitFieldNames ? '' : 'progressEntities', + subBuilder: Progress.create) + ..aOM(3, _omitFieldNames ? '' : 'progressBytes', + subBuilder: Progress.create) + ..aOM(4, _omitFieldNames ? '' : 'entityFilter', + subBuilder: EntityFilter.create) + ..aOS(5, _omitFieldNames ? '' : 'inputUrl') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -761,8 +804,10 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { ImportEntitiesMetadata copyWith( void Function(ImportEntitiesMetadata) updates) => super.copyWith((message) => updates(message as ImportEntitiesMetadata)) - as ImportEntitiesMetadata; // ignore: deprecated_member_use + as ImportEntitiesMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ImportEntitiesMetadata create() => ImportEntitiesMetadata._(); ImportEntitiesMetadata createEmptyInstance() => create(); @@ -773,6 +818,7 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ImportEntitiesMetadata? _defaultInstance; + /// Metadata common to all Datastore Admin operations. @$pb.TagNumber(1) CommonMetadata get common => $_getN(0); @$pb.TagNumber(1) @@ -787,6 +833,7 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(1) CommonMetadata ensureCommon() => $_ensure(0); + /// An estimate of the number of entities processed. @$pb.TagNumber(2) Progress get progressEntities => $_getN(1); @$pb.TagNumber(2) @@ -801,6 +848,7 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(2) Progress ensureProgressEntities() => $_ensure(1); + /// An estimate of the number of bytes processed. @$pb.TagNumber(3) Progress get progressBytes => $_getN(2); @$pb.TagNumber(3) @@ -815,6 +863,7 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(3) Progress ensureProgressBytes() => $_ensure(2); + /// Description of which entities are being imported. @$pb.TagNumber(4) EntityFilter get entityFilter => $_getN(3); @$pb.TagNumber(4) @@ -829,6 +878,10 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { @$pb.TagNumber(4) EntityFilter ensureEntityFilter() => $_ensure(3); + /// The location of the import metadata file. This will be the same value as + /// the + /// [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url] + /// field. @$pb.TagNumber(5) $core.String get inputUrl => $_getSZ(4); @$pb.TagNumber(5) @@ -842,48 +895,56 @@ class ImportEntitiesMetadata extends $pb.GeneratedMessage { void clearInputUrl() => clearField(5); } +/// Identifies a subset of entities in a project. This is specified as +/// combinations of kinds and namespaces (either or both of which may be all, as +/// described in the following examples). +/// Example usage: +/// +/// Entire project: +/// kinds=[], namespace_ids=[] +/// +/// Kinds Foo and Bar in all namespaces: +/// kinds=['Foo', 'Bar'], namespace_ids=[] +/// +/// Kinds Foo and Bar only in the default namespace: +/// kinds=['Foo', 'Bar'], namespace_ids=[''] +/// +/// Kinds Foo and Bar in both the default and Baz namespaces: +/// kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] +/// +/// The entire Baz namespace: +/// kinds=[], namespace_ids=['Baz'] class EntityFilter extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EntityFilter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.admin.v1beta1'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'kinds') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'namespaceIds') - ..hasRequiredFields = false; - - EntityFilter._() : super(); factory EntityFilter({ $core.Iterable<$core.String>? kinds, $core.Iterable<$core.String>? namespaceIds, }) { - final _result = create(); + final $result = create(); if (kinds != null) { - _result.kinds.addAll(kinds); + $result.kinds.addAll(kinds); } if (namespaceIds != null) { - _result.namespaceIds.addAll(namespaceIds); + $result.namespaceIds.addAll(namespaceIds); } - return _result; + return $result; } + EntityFilter._() : super(); factory EntityFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EntityFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EntityFilter', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.admin.v1beta1'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'kinds') + ..pPS(2, _omitFieldNames ? '' : 'namespaceIds') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -893,8 +954,10 @@ class EntityFilter extends $pb.GeneratedMessage { 'Will be removed in next major version') EntityFilter copyWith(void Function(EntityFilter) updates) => super.copyWith((message) => updates(message as EntityFilter)) - as EntityFilter; // ignore: deprecated_member_use + as EntityFilter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EntityFilter create() => EntityFilter._(); EntityFilter createEmptyInstance() => create(); @@ -905,9 +968,21 @@ class EntityFilter extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EntityFilter? _defaultInstance; + /// If empty, then this represents all kinds. @$pb.TagNumber(1) $core.List<$core.String> get kinds => $_getList(0); + /// An empty list represents all namespaces. This is the preferred + /// usage for projects that don't use namespaces. + /// + /// An empty string element represents the default namespace. This should be + /// used if the project has data in non-default namespaces, but doesn't want to + /// include them. + /// Each namespace in this list must be unique. @$pb.TagNumber(2) $core.List<$core.String> get namespaceIds => $_getList(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbenum.dart index f9e797db..c4971506 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbenum.dart @@ -1,30 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1beta1/datastore_admin.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Operation types. class OperationType extends $pb.ProtobufEnum { - static const OperationType OPERATION_TYPE_UNSPECIFIED = OperationType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OPERATION_TYPE_UNSPECIFIED'); - static const OperationType EXPORT_ENTITIES = OperationType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'EXPORT_ENTITIES'); - static const OperationType IMPORT_ENTITIES = OperationType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'IMPORT_ENTITIES'); + static const OperationType OPERATION_TYPE_UNSPECIFIED = + OperationType._(0, _omitEnumNames ? '' : 'OPERATION_TYPE_UNSPECIFIED'); + static const OperationType EXPORT_ENTITIES = + OperationType._(1, _omitEnumNames ? '' : 'EXPORT_ENTITIES'); + static const OperationType IMPORT_ENTITIES = + OperationType._(2, _omitEnumNames ? '' : 'IMPORT_ENTITIES'); static const $core.List values = [ OPERATION_TYPE_UNSPECIFIED, @@ -39,44 +35,24 @@ class OperationType extends $pb.ProtobufEnum { const OperationType._($core.int v, $core.String n) : super(v, n); } +/// The various possible states for an ongoing Operation. class CommonMetadata_State extends $pb.ProtobufEnum { - static const CommonMetadata_State STATE_UNSPECIFIED = CommonMetadata_State._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STATE_UNSPECIFIED'); - static const CommonMetadata_State INITIALIZING = CommonMetadata_State._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'INITIALIZING'); - static const CommonMetadata_State PROCESSING = CommonMetadata_State._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PROCESSING'); - static const CommonMetadata_State CANCELLING = CommonMetadata_State._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CANCELLING'); - static const CommonMetadata_State FINALIZING = CommonMetadata_State._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FINALIZING'); - static const CommonMetadata_State SUCCESSFUL = CommonMetadata_State._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SUCCESSFUL'); - static const CommonMetadata_State FAILED = CommonMetadata_State._(6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FAILED'); - static const CommonMetadata_State CANCELLED = CommonMetadata_State._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CANCELLED'); + static const CommonMetadata_State STATE_UNSPECIFIED = + CommonMetadata_State._(0, _omitEnumNames ? '' : 'STATE_UNSPECIFIED'); + static const CommonMetadata_State INITIALIZING = + CommonMetadata_State._(1, _omitEnumNames ? '' : 'INITIALIZING'); + static const CommonMetadata_State PROCESSING = + CommonMetadata_State._(2, _omitEnumNames ? '' : 'PROCESSING'); + static const CommonMetadata_State CANCELLING = + CommonMetadata_State._(3, _omitEnumNames ? '' : 'CANCELLING'); + static const CommonMetadata_State FINALIZING = + CommonMetadata_State._(4, _omitEnumNames ? '' : 'FINALIZING'); + static const CommonMetadata_State SUCCESSFUL = + CommonMetadata_State._(5, _omitEnumNames ? '' : 'SUCCESSFUL'); + static const CommonMetadata_State FAILED = + CommonMetadata_State._(6, _omitEnumNames ? '' : 'FAILED'); + static const CommonMetadata_State CANCELLED = + CommonMetadata_State._(7, _omitEnumNames ? '' : 'CANCELLED'); static const $core.List values = [ STATE_UNSPECIFIED, @@ -95,3 +71,5 @@ class CommonMetadata_State extends $pb.ProtobufEnum { const CommonMetadata_State._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbgrpc.dart index bdb0c575..328c045e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbgrpc.dart @@ -1,29 +1,36 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1beta1/datastore_admin.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'datastore_admin.pb.dart' as $2; +import 'package:protobuf/protobuf.dart' as $pb; + import '../../../longrunning/operations.pb.dart' as $0; +import 'datastore_admin.pb.dart' as $25; + export 'datastore_admin.pb.dart'; +@$pb.GrpcServiceName('google.datastore.admin.v1beta1.DatastoreAdmin') class DatastoreAdminClient extends $grpc.Client { static final _$exportEntities = - $grpc.ClientMethod<$2.ExportEntitiesRequest, $0.Operation>( + $grpc.ClientMethod<$25.ExportEntitiesRequest, $0.Operation>( '/google.datastore.admin.v1beta1.DatastoreAdmin/ExportEntities', - ($2.ExportEntitiesRequest value) => value.writeToBuffer(), + ($25.ExportEntitiesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$importEntities = - $grpc.ClientMethod<$2.ImportEntitiesRequest, $0.Operation>( + $grpc.ClientMethod<$25.ImportEntitiesRequest, $0.Operation>( '/google.datastore.admin.v1beta1.DatastoreAdmin/ImportEntities', - ($2.ImportEntitiesRequest value) => value.writeToBuffer(), + ($25.ImportEntitiesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); DatastoreAdminClient($grpc.ClientChannel channel, @@ -32,52 +39,53 @@ class DatastoreAdminClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); $grpc.ResponseFuture<$0.Operation> exportEntities( - $2.ExportEntitiesRequest request, + $25.ExportEntitiesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$exportEntities, request, options: options); } $grpc.ResponseFuture<$0.Operation> importEntities( - $2.ImportEntitiesRequest request, + $25.ImportEntitiesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$importEntities, request, options: options); } } +@$pb.GrpcServiceName('google.datastore.admin.v1beta1.DatastoreAdmin') abstract class DatastoreAdminServiceBase extends $grpc.Service { $core.String get $name => 'google.datastore.admin.v1beta1.DatastoreAdmin'; DatastoreAdminServiceBase() { - $addMethod($grpc.ServiceMethod<$2.ExportEntitiesRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$25.ExportEntitiesRequest, $0.Operation>( 'ExportEntities', exportEntities_Pre, false, false, ($core.List<$core.int> value) => - $2.ExportEntitiesRequest.fromBuffer(value), + $25.ExportEntitiesRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ImportEntitiesRequest, $0.Operation>( + $addMethod($grpc.ServiceMethod<$25.ImportEntitiesRequest, $0.Operation>( 'ImportEntities', importEntities_Pre, false, false, ($core.List<$core.int> value) => - $2.ImportEntitiesRequest.fromBuffer(value), + $25.ImportEntitiesRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); } $async.Future<$0.Operation> exportEntities_Pre($grpc.ServiceCall call, - $async.Future<$2.ExportEntitiesRequest> request) async { + $async.Future<$25.ExportEntitiesRequest> request) async { return exportEntities(call, await request); } $async.Future<$0.Operation> importEntities_Pre($grpc.ServiceCall call, - $async.Future<$2.ImportEntitiesRequest> request) async { + $async.Future<$25.ImportEntitiesRequest> request) async { return importEntities(call, await request); } $async.Future<$0.Operation> exportEntities( - $grpc.ServiceCall call, $2.ExportEntitiesRequest request); + $grpc.ServiceCall call, $25.ExportEntitiesRequest request); $async.Future<$0.Operation> importEntities( - $grpc.ServiceCall call, $2.ImportEntitiesRequest request); + $grpc.ServiceCall call, $25.ImportEntitiesRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbjson.dart index b4a92b0e..b2398276 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/admin/v1beta1/datastore_admin.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/admin/v1beta1/datastore_admin.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 operationTypeDescriptor instead') @@ -21,7 +25,9 @@ const OperationType$json = { /// Descriptor for `OperationType`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List operationTypeDescriptor = $convert.base64Decode( - 'Cg1PcGVyYXRpb25UeXBlEh4KGk9QRVJBVElPTl9UWVBFX1VOU1BFQ0lGSUVEEAASEwoPRVhQT1JUX0VOVElUSUVTEAESEwoPSU1QT1JUX0VOVElUSUVTEAI='); + 'Cg1PcGVyYXRpb25UeXBlEh4KGk9QRVJBVElPTl9UWVBFX1VOU1BFQ0lGSUVEEAASEwoPRVhQT1' + 'JUX0VOVElUSUVTEAESEwoPSU1QT1JUX0VOVElUSUVTEAI='); + @$core.Deprecated('Use commonMetadataDescriptor instead') const CommonMetadata$json = { '1': 'CommonMetadata', @@ -98,7 +104,18 @@ const CommonMetadata_State$json = { /// Descriptor for `CommonMetadata`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List commonMetadataDescriptor = $convert.base64Decode( - 'Cg5Db21tb25NZXRhZGF0YRI5CgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIHZW5kVGltZRJUCg5vcGVyYXRpb25fdHlwZRgDIAEoDjItLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjFiZXRhMS5PcGVyYXRpb25UeXBlUg1vcGVyYXRpb25UeXBlElIKBmxhYmVscxgEIAMoCzI6Lmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjFiZXRhMS5Db21tb25NZXRhZGF0YS5MYWJlbHNFbnRyeVIGbGFiZWxzEkoKBXN0YXRlGAUgASgOMjQuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MWJldGExLkNvbW1vbk1ldGFkYXRhLlN0YXRlUgVzdGF0ZRo5CgtMYWJlbHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBIosBCgVTdGF0ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEhAKDElOSVRJQUxJWklORxABEg4KClBST0NFU1NJTkcQAhIOCgpDQU5DRUxMSU5HEAMSDgoKRklOQUxJWklORxAEEg4KClNVQ0NFU1NGVUwQBRIKCgZGQUlMRUQQBhINCglDQU5DRUxMRUQQBw=='); + 'Cg5Db21tb25NZXRhZGF0YRI5CgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLl' + 'RpbWVzdGFtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVm' + 'LlRpbWVzdGFtcFIHZW5kVGltZRJUCg5vcGVyYXRpb25fdHlwZRgDIAEoDjItLmdvb2dsZS5kYX' + 'Rhc3RvcmUuYWRtaW4udjFiZXRhMS5PcGVyYXRpb25UeXBlUg1vcGVyYXRpb25UeXBlElIKBmxh' + 'YmVscxgEIAMoCzI6Lmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjFiZXRhMS5Db21tb25NZXRhZG' + 'F0YS5MYWJlbHNFbnRyeVIGbGFiZWxzEkoKBXN0YXRlGAUgASgOMjQuZ29vZ2xlLmRhdGFzdG9y' + 'ZS5hZG1pbi52MWJldGExLkNvbW1vbk1ldGFkYXRhLlN0YXRlUgVzdGF0ZRo5CgtMYWJlbHNFbn' + 'RyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBIosBCgVTdGF0' + 'ZRIVChFTVEFURV9VTlNQRUNJRklFRBAAEhAKDElOSVRJQUxJWklORxABEg4KClBST0NFU1NJTk' + 'cQAhIOCgpDQU5DRUxMSU5HEAMSDgoKRklOQUxJWklORxAEEg4KClNVQ0NFU1NGVUwQBRIKCgZG' + 'QUlMRUQQBhINCglDQU5DRUxMRUQQBw=='); + @$core.Deprecated('Use progressDescriptor instead') const Progress$json = { '1': 'Progress', @@ -110,7 +127,9 @@ const Progress$json = { /// Descriptor for `Progress`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List progressDescriptor = $convert.base64Decode( - 'CghQcm9ncmVzcxIlCg53b3JrX2NvbXBsZXRlZBgBIAEoA1INd29ya0NvbXBsZXRlZBIlCg53b3JrX2VzdGltYXRlZBgCIAEoA1INd29ya0VzdGltYXRlZA=='); + 'CghQcm9ncmVzcxIlCg53b3JrX2NvbXBsZXRlZBgBIAEoA1INd29ya0NvbXBsZXRlZBIlCg53b3' + 'JrX2VzdGltYXRlZBgCIAEoA1INd29ya0VzdGltYXRlZA=='); + @$core.Deprecated('Use exportEntitiesRequestDescriptor instead') const ExportEntitiesRequest$json = { '1': 'ExportEntitiesRequest', @@ -149,7 +168,13 @@ const ExportEntitiesRequest_LabelsEntry$json = { /// Descriptor for `ExportEntitiesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List exportEntitiesRequestDescriptor = $convert.base64Decode( - 'ChVFeHBvcnRFbnRpdGllc1JlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkElkKBmxhYmVscxgCIAMoCzJBLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjFiZXRhMS5FeHBvcnRFbnRpdGllc1JlcXVlc3QuTGFiZWxzRW50cnlSBmxhYmVscxJRCg1lbnRpdHlfZmlsdGVyGAMgASgLMiwuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MWJldGExLkVudGl0eUZpbHRlclIMZW50aXR5RmlsdGVyEioKEW91dHB1dF91cmxfcHJlZml4GAQgASgJUg9vdXRwdXRVcmxQcmVmaXgaOQoLTGFiZWxzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + 'ChVFeHBvcnRFbnRpdGllc1JlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkEl' + 'kKBmxhYmVscxgCIAMoCzJBLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjFiZXRhMS5FeHBvcnRF' + 'bnRpdGllc1JlcXVlc3QuTGFiZWxzRW50cnlSBmxhYmVscxJRCg1lbnRpdHlfZmlsdGVyGAMgAS' + 'gLMiwuZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MWJldGExLkVudGl0eUZpbHRlclIMZW50aXR5' + 'RmlsdGVyEioKEW91dHB1dF91cmxfcHJlZml4GAQgASgJUg9vdXRwdXRVcmxQcmVmaXgaOQoLTG' + 'FiZWxzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + @$core.Deprecated('Use importEntitiesRequestDescriptor instead') const ImportEntitiesRequest$json = { '1': 'ImportEntitiesRequest', @@ -188,7 +213,13 @@ const ImportEntitiesRequest_LabelsEntry$json = { /// Descriptor for `ImportEntitiesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List importEntitiesRequestDescriptor = $convert.base64Decode( - 'ChVJbXBvcnRFbnRpdGllc1JlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkElkKBmxhYmVscxgCIAMoCzJBLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjFiZXRhMS5JbXBvcnRFbnRpdGllc1JlcXVlc3QuTGFiZWxzRW50cnlSBmxhYmVscxIbCglpbnB1dF91cmwYAyABKAlSCGlucHV0VXJsElEKDWVudGl0eV9maWx0ZXIYBCABKAsyLC5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxYmV0YTEuRW50aXR5RmlsdGVyUgxlbnRpdHlGaWx0ZXIaOQoLTGFiZWxzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + 'ChVJbXBvcnRFbnRpdGllc1JlcXVlc3QSHQoKcHJvamVjdF9pZBgBIAEoCVIJcHJvamVjdElkEl' + 'kKBmxhYmVscxgCIAMoCzJBLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjFiZXRhMS5JbXBvcnRF' + 'bnRpdGllc1JlcXVlc3QuTGFiZWxzRW50cnlSBmxhYmVscxIbCglpbnB1dF91cmwYAyABKAlSCG' + 'lucHV0VXJsElEKDWVudGl0eV9maWx0ZXIYBCABKAsyLC5nb29nbGUuZGF0YXN0b3JlLmFkbWlu' + 'LnYxYmV0YTEuRW50aXR5RmlsdGVyUgxlbnRpdHlGaWx0ZXIaOQoLTGFiZWxzRW50cnkSEAoDa2' + 'V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + @$core.Deprecated('Use exportEntitiesResponseDescriptor instead') const ExportEntitiesResponse$json = { '1': 'ExportEntitiesResponse', @@ -200,7 +231,9 @@ const ExportEntitiesResponse$json = { /// Descriptor for `ExportEntitiesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List exportEntitiesResponseDescriptor = $convert.base64Decode( - 'ChZFeHBvcnRFbnRpdGllc1Jlc3BvbnNlEh0KCm91dHB1dF91cmwYASABKAlSCW91dHB1dFVybA=='); + 'ChZFeHBvcnRFbnRpdGllc1Jlc3BvbnNlEh0KCm91dHB1dF91cmwYASABKAlSCW91dHB1dFVybA' + '=='); + @$core.Deprecated('Use exportEntitiesMetadataDescriptor instead') const ExportEntitiesMetadata$json = { '1': 'ExportEntitiesMetadata', @@ -242,9 +275,16 @@ const ExportEntitiesMetadata$json = { }; /// Descriptor for `ExportEntitiesMetadata`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List exportEntitiesMetadataDescriptor = - $convert.base64Decode( - 'ChZFeHBvcnRFbnRpdGllc01ldGFkYXRhEkYKBmNvbW1vbhgBIAEoCzIuLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjFiZXRhMS5Db21tb25NZXRhZGF0YVIGY29tbW9uElUKEXByb2dyZXNzX2VudGl0aWVzGAIgASgLMiguZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MWJldGExLlByb2dyZXNzUhBwcm9ncmVzc0VudGl0aWVzEk8KDnByb2dyZXNzX2J5dGVzGAMgASgLMiguZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MWJldGExLlByb2dyZXNzUg1wcm9ncmVzc0J5dGVzElEKDWVudGl0eV9maWx0ZXIYBCABKAsyLC5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxYmV0YTEuRW50aXR5RmlsdGVyUgxlbnRpdHlGaWx0ZXISKgoRb3V0cHV0X3VybF9wcmVmaXgYBSABKAlSD291dHB1dFVybFByZWZpeA=='); +final $typed_data.Uint8List exportEntitiesMetadataDescriptor = $convert.base64Decode( + 'ChZFeHBvcnRFbnRpdGllc01ldGFkYXRhEkYKBmNvbW1vbhgBIAEoCzIuLmdvb2dsZS5kYXRhc3' + 'RvcmUuYWRtaW4udjFiZXRhMS5Db21tb25NZXRhZGF0YVIGY29tbW9uElUKEXByb2dyZXNzX2Vu' + 'dGl0aWVzGAIgASgLMiguZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MWJldGExLlByb2dyZXNzUh' + 'Bwcm9ncmVzc0VudGl0aWVzEk8KDnByb2dyZXNzX2J5dGVzGAMgASgLMiguZ29vZ2xlLmRhdGFz' + 'dG9yZS5hZG1pbi52MWJldGExLlByb2dyZXNzUg1wcm9ncmVzc0J5dGVzElEKDWVudGl0eV9maW' + 'x0ZXIYBCABKAsyLC5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxYmV0YTEuRW50aXR5RmlsdGVy' + 'UgxlbnRpdHlGaWx0ZXISKgoRb3V0cHV0X3VybF9wcmVmaXgYBSABKAlSD291dHB1dFVybFByZW' + 'ZpeA=='); + @$core.Deprecated('Use importEntitiesMetadataDescriptor instead') const ImportEntitiesMetadata$json = { '1': 'ImportEntitiesMetadata', @@ -286,9 +326,15 @@ const ImportEntitiesMetadata$json = { }; /// Descriptor for `ImportEntitiesMetadata`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List importEntitiesMetadataDescriptor = - $convert.base64Decode( - 'ChZJbXBvcnRFbnRpdGllc01ldGFkYXRhEkYKBmNvbW1vbhgBIAEoCzIuLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjFiZXRhMS5Db21tb25NZXRhZGF0YVIGY29tbW9uElUKEXByb2dyZXNzX2VudGl0aWVzGAIgASgLMiguZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MWJldGExLlByb2dyZXNzUhBwcm9ncmVzc0VudGl0aWVzEk8KDnByb2dyZXNzX2J5dGVzGAMgASgLMiguZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MWJldGExLlByb2dyZXNzUg1wcm9ncmVzc0J5dGVzElEKDWVudGl0eV9maWx0ZXIYBCABKAsyLC5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxYmV0YTEuRW50aXR5RmlsdGVyUgxlbnRpdHlGaWx0ZXISGwoJaW5wdXRfdXJsGAUgASgJUghpbnB1dFVybA=='); +final $typed_data.Uint8List importEntitiesMetadataDescriptor = $convert.base64Decode( + 'ChZJbXBvcnRFbnRpdGllc01ldGFkYXRhEkYKBmNvbW1vbhgBIAEoCzIuLmdvb2dsZS5kYXRhc3' + 'RvcmUuYWRtaW4udjFiZXRhMS5Db21tb25NZXRhZGF0YVIGY29tbW9uElUKEXByb2dyZXNzX2Vu' + 'dGl0aWVzGAIgASgLMiguZ29vZ2xlLmRhdGFzdG9yZS5hZG1pbi52MWJldGExLlByb2dyZXNzUh' + 'Bwcm9ncmVzc0VudGl0aWVzEk8KDnByb2dyZXNzX2J5dGVzGAMgASgLMiguZ29vZ2xlLmRhdGFz' + 'dG9yZS5hZG1pbi52MWJldGExLlByb2dyZXNzUg1wcm9ncmVzc0J5dGVzElEKDWVudGl0eV9maW' + 'x0ZXIYBCABKAsyLC5nb29nbGUuZGF0YXN0b3JlLmFkbWluLnYxYmV0YTEuRW50aXR5RmlsdGVy' + 'UgxlbnRpdHlGaWx0ZXISGwoJaW5wdXRfdXJsGAUgASgJUghpbnB1dFVybA=='); + @$core.Deprecated('Use entityFilterDescriptor instead') const EntityFilter$json = { '1': 'EntityFilter', @@ -300,4 +346,5 @@ const EntityFilter$json = { /// Descriptor for `EntityFilter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List entityFilterDescriptor = $convert.base64Decode( - 'CgxFbnRpdHlGaWx0ZXISFAoFa2luZHMYASADKAlSBWtpbmRzEiMKDW5hbWVzcGFjZV9pZHMYAiADKAlSDG5hbWVzcGFjZUlkcw=='); + 'CgxFbnRpdHlGaWx0ZXISFAoFa2luZHMYASADKAlSBWtpbmRzEiMKDW5hbWVzcGFjZV9pZHMYAi' + 'ADKAlSDG5hbWVzcGFjZUlkcw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/aggregation_result.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/aggregation_result.pb.dart new file mode 100644 index 00000000..88688035 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/aggregation_result.pb.dart @@ -0,0 +1,202 @@ +// +// Generated code. Do not modify. +// source: google/datastore/v1/aggregation_result.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/timestamp.pb.dart' as $50; +import 'entity.pb.dart' as $72; +import 'query.pbenum.dart' as $74; + +/// The result of a single bucket from a Datastore aggregation query. +/// +/// The keys of `aggregate_properties` are the same for all results in an +/// aggregation query, unlike entity queries which can have different fields +/// present for each result. +class AggregationResult extends $pb.GeneratedMessage { + factory AggregationResult({ + $core.Map<$core.String, $72.Value>? aggregateProperties, + }) { + final $result = create(); + if (aggregateProperties != null) { + $result.aggregateProperties.addAll(aggregateProperties); + } + return $result; + } + AggregationResult._() : super(); + factory AggregationResult.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AggregationResult.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AggregationResult', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..m<$core.String, $72.Value>( + 2, _omitFieldNames ? '' : 'aggregateProperties', + entryClassName: 'AggregationResult.AggregatePropertiesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: $72.Value.create, + valueDefaultOrMaker: $72.Value.getDefault, + packageName: const $pb.PackageName('google.datastore.v1')) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AggregationResult clone() => AggregationResult()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AggregationResult copyWith(void Function(AggregationResult) updates) => + super.copyWith((message) => updates(message as AggregationResult)) + as AggregationResult; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AggregationResult create() => AggregationResult._(); + AggregationResult createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AggregationResult getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static AggregationResult? _defaultInstance; + + /// The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. + /// + /// The key is the + /// [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to + /// the aggregation function on input and the size of this map equals the + /// number of aggregation functions in the query. + @$pb.TagNumber(2) + $core.Map<$core.String, $72.Value> get aggregateProperties => $_getMap(0); +} + +/// A batch of aggregation results produced by an aggregation query. +class AggregationResultBatch extends $pb.GeneratedMessage { + factory AggregationResultBatch({ + $core.Iterable? aggregationResults, + $74.QueryResultBatch_MoreResultsType? moreResults, + $50.Timestamp? readTime, + }) { + final $result = create(); + if (aggregationResults != null) { + $result.aggregationResults.addAll(aggregationResults); + } + if (moreResults != null) { + $result.moreResults = moreResults; + } + if (readTime != null) { + $result.readTime = readTime; + } + return $result; + } + AggregationResultBatch._() : super(); + factory AggregationResultBatch.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AggregationResultBatch.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AggregationResultBatch', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'aggregationResults', $pb.PbFieldType.PM, + subBuilder: AggregationResult.create) + ..e<$74.QueryResultBatch_MoreResultsType>( + 2, _omitFieldNames ? '' : 'moreResults', $pb.PbFieldType.OE, + defaultOrMaker: + $74.QueryResultBatch_MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED, + valueOf: $74.QueryResultBatch_MoreResultsType.valueOf, + enumValues: $74.QueryResultBatch_MoreResultsType.values) + ..aOM<$50.Timestamp>(3, _omitFieldNames ? '' : 'readTime', + subBuilder: $50.Timestamp.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') + AggregationResultBatch clone() => + AggregationResultBatch()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AggregationResultBatch copyWith( + void Function(AggregationResultBatch) updates) => + super.copyWith((message) => updates(message as AggregationResultBatch)) + as AggregationResultBatch; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AggregationResultBatch create() => AggregationResultBatch._(); + AggregationResultBatch createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AggregationResultBatch getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static AggregationResultBatch? _defaultInstance; + + /// The aggregation results for this batch. + @$pb.TagNumber(1) + $core.List get aggregationResults => $_getList(0); + + /// The state of the query after the current batch. + /// Only COUNT(*) aggregations are supported in the initial launch. Therefore, + /// expected result type is limited to `NO_MORE_RESULTS`. + @$pb.TagNumber(2) + $74.QueryResultBatch_MoreResultsType get moreResults => $_getN(1); + @$pb.TagNumber(2) + set moreResults($74.QueryResultBatch_MoreResultsType v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasMoreResults() => $_has(1); + @$pb.TagNumber(2) + void clearMoreResults() => clearField(2); + + /// Read timestamp this batch was returned from. + /// + /// In a single transaction, subsequent query result batches for the same query + /// can have a greater timestamp. Each batch's read timestamp + /// is valid for all preceding batches. + @$pb.TagNumber(3) + $50.Timestamp get readTime => $_getN(2); + @$pb.TagNumber(3) + set readTime($50.Timestamp v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasReadTime() => $_has(2); + @$pb.TagNumber(3) + void clearReadTime() => clearField(3); + @$pb.TagNumber(3) + $50.Timestamp ensureReadTime() => $_ensure(2); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/aggregation_result.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/aggregation_result.pbenum.dart new file mode 100644 index 00000000..17026056 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/aggregation_result.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/datastore/v1/aggregation_result.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/aggregation_result.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/aggregation_result.pbjson.dart new file mode 100644 index 00000000..1f979db4 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/aggregation_result.pbjson.dart @@ -0,0 +1,94 @@ +// +// Generated code. Do not modify. +// source: google/datastore/v1/aggregation_result.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 aggregationResultDescriptor instead') +const AggregationResult$json = { + '1': 'AggregationResult', + '2': [ + { + '1': 'aggregate_properties', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.datastore.v1.AggregationResult.AggregatePropertiesEntry', + '10': 'aggregateProperties' + }, + ], + '3': [AggregationResult_AggregatePropertiesEntry$json], +}; + +@$core.Deprecated('Use aggregationResultDescriptor instead') +const AggregationResult_AggregatePropertiesEntry$json = { + '1': 'AggregatePropertiesEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + { + '1': 'value', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.Value', + '10': 'value' + }, + ], + '7': {'7': true}, +}; + +/// Descriptor for `AggregationResult`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List aggregationResultDescriptor = $convert.base64Decode( + 'ChFBZ2dyZWdhdGlvblJlc3VsdBJyChRhZ2dyZWdhdGVfcHJvcGVydGllcxgCIAMoCzI/Lmdvb2' + 'dsZS5kYXRhc3RvcmUudjEuQWdncmVnYXRpb25SZXN1bHQuQWdncmVnYXRlUHJvcGVydGllc0Vu' + 'dHJ5UhNhZ2dyZWdhdGVQcm9wZXJ0aWVzGmIKGEFnZ3JlZ2F0ZVByb3BlcnRpZXNFbnRyeRIQCg' + 'NrZXkYASABKAlSA2tleRIwCgV2YWx1ZRgCIAEoCzIaLmdvb2dsZS5kYXRhc3RvcmUudjEuVmFs' + 'dWVSBXZhbHVlOgI4AQ=='); + +@$core.Deprecated('Use aggregationResultBatchDescriptor instead') +const AggregationResultBatch$json = { + '1': 'AggregationResultBatch', + '2': [ + { + '1': 'aggregation_results', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.datastore.v1.AggregationResult', + '10': 'aggregationResults' + }, + { + '1': 'more_results', + '3': 2, + '4': 1, + '5': 14, + '6': '.google.datastore.v1.QueryResultBatch.MoreResultsType', + '10': 'moreResults' + }, + { + '1': 'read_time', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'readTime' + }, + ], +}; + +/// Descriptor for `AggregationResultBatch`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List aggregationResultBatchDescriptor = $convert.base64Decode( + 'ChZBZ2dyZWdhdGlvblJlc3VsdEJhdGNoElcKE2FnZ3JlZ2F0aW9uX3Jlc3VsdHMYASADKAsyJi' + '5nb29nbGUuZGF0YXN0b3JlLnYxLkFnZ3JlZ2F0aW9uUmVzdWx0UhJhZ2dyZWdhdGlvblJlc3Vs' + 'dHMSWAoMbW9yZV9yZXN1bHRzGAIgASgOMjUuZ29vZ2xlLmRhdGFzdG9yZS52MS5RdWVyeVJlc3' + 'VsdEJhdGNoLk1vcmVSZXN1bHRzVHlwZVILbW9yZVJlc3VsdHMSNwoJcmVhZF90aW1lGAMgASgL' + 'MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIIcmVhZFRpbWU='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pb.dart index 15239778..ef4bd74d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pb.dart @@ -1,69 +1,78 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1/datastore.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'entity.pb.dart' as $1; -import 'query.pb.dart' as $2; - +import '../../protobuf/timestamp.pb.dart' as $50; +import 'aggregation_result.pb.dart' as $76; import 'datastore.pbenum.dart'; +import 'entity.pb.dart' as $72; +import 'query.pb.dart' as $74; +import 'query_profile.pb.dart' as $75; export 'datastore.pbenum.dart'; +/// The request for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup]. class LookupRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LookupRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'readOptions', - subBuilder: ReadOptions.create) - ..pc<$1.Key>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keys', - $pb.PbFieldType.PM, - subBuilder: $1.Key.create) - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projectId') - ..hasRequiredFields = false; - - LookupRequest._() : super(); factory LookupRequest({ ReadOptions? readOptions, - $core.Iterable<$1.Key>? keys, + $core.Iterable<$72.Key>? keys, + PropertyMask? propertyMask, $core.String? projectId, + $core.String? databaseId, }) { - final _result = create(); + final $result = create(); if (readOptions != null) { - _result.readOptions = readOptions; + $result.readOptions = readOptions; } if (keys != null) { - _result.keys.addAll(keys); + $result.keys.addAll(keys); + } + if (propertyMask != null) { + $result.propertyMask = propertyMask; } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; + } + if (databaseId != null) { + $result.databaseId = databaseId; } - return _result; + return $result; } + LookupRequest._() : super(); factory LookupRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LookupRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LookupRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'readOptions', + subBuilder: ReadOptions.create) + ..pc<$72.Key>(3, _omitFieldNames ? '' : 'keys', $pb.PbFieldType.PM, + subBuilder: $72.Key.create) + ..aOM(5, _omitFieldNames ? '' : 'propertyMask', + subBuilder: PropertyMask.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..aOS(9, _omitFieldNames ? '' : 'databaseId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -73,8 +82,10 @@ class LookupRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') LookupRequest copyWith(void Function(LookupRequest) updates) => super.copyWith((message) => updates(message as LookupRequest)) - as LookupRequest; // ignore: deprecated_member_use + as LookupRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LookupRequest create() => LookupRequest._(); LookupRequest createEmptyInstance() => create(); @@ -85,6 +96,7 @@ class LookupRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LookupRequest? _defaultInstance; + /// The options for this lookup request. @$pb.TagNumber(1) ReadOptions get readOptions => $_getN(0); @$pb.TagNumber(1) @@ -99,66 +111,114 @@ class LookupRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) ReadOptions ensureReadOptions() => $_ensure(0); + /// Required. Keys of entities to look up. @$pb.TagNumber(3) - $core.List<$1.Key> get keys => $_getList(1); + $core.List<$72.Key> get keys => $_getList(1); + + /// The properties to return. Defaults to returning all properties. + /// + /// If this field is set and an entity has a property not referenced in the + /// mask, it will be absent from [LookupResponse.found.entity.properties][]. + /// + /// The entity's key is always returned. + @$pb.TagNumber(5) + PropertyMask get propertyMask => $_getN(2); + @$pb.TagNumber(5) + set propertyMask(PropertyMask v) { + setField(5, v); + } + @$pb.TagNumber(5) + $core.bool hasPropertyMask() => $_has(2); + @$pb.TagNumber(5) + void clearPropertyMask() => clearField(5); + @$pb.TagNumber(5) + PropertyMask ensurePropertyMask() => $_ensure(2); + + /// Required. The ID of the project against which to make the request. @$pb.TagNumber(8) - $core.String get projectId => $_getSZ(2); + $core.String get projectId => $_getSZ(3); @$pb.TagNumber(8) set projectId($core.String v) { - $_setString(2, v); + $_setString(3, v); } @$pb.TagNumber(8) - $core.bool hasProjectId() => $_has(2); + $core.bool hasProjectId() => $_has(3); @$pb.TagNumber(8) void clearProjectId() => clearField(8); + + /// The ID of the database against which to make the request. + /// + /// '(default)' is not allowed; please use empty string '' to refer the default + /// database. + @$pb.TagNumber(9) + $core.String get databaseId => $_getSZ(4); + @$pb.TagNumber(9) + set databaseId($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(9) + $core.bool hasDatabaseId() => $_has(4); + @$pb.TagNumber(9) + void clearDatabaseId() => clearField(9); } +/// The response for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup]. class LookupResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LookupResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..pc<$2.EntityResult>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'found', $pb.PbFieldType.PM, - subBuilder: $2.EntityResult.create) - ..pc<$2.EntityResult>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'missing', $pb.PbFieldType.PM, - subBuilder: $2.EntityResult.create) - ..pc<$1.Key>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'deferred', $pb.PbFieldType.PM, - subBuilder: $1.Key.create) - ..hasRequiredFields = false; - - LookupResponse._() : super(); factory LookupResponse({ - $core.Iterable<$2.EntityResult>? found, - $core.Iterable<$2.EntityResult>? missing, - $core.Iterable<$1.Key>? deferred, + $core.Iterable<$74.EntityResult>? found, + $core.Iterable<$74.EntityResult>? missing, + $core.Iterable<$72.Key>? deferred, + $core.List<$core.int>? transaction, + $50.Timestamp? readTime, }) { - final _result = create(); + final $result = create(); if (found != null) { - _result.found.addAll(found); + $result.found.addAll(found); } if (missing != null) { - _result.missing.addAll(missing); + $result.missing.addAll(missing); } if (deferred != null) { - _result.deferred.addAll(deferred); + $result.deferred.addAll(deferred); + } + if (transaction != null) { + $result.transaction = transaction; } - return _result; + if (readTime != null) { + $result.readTime = readTime; + } + return $result; } + LookupResponse._() : super(); factory LookupResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LookupResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LookupResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..pc<$74.EntityResult>( + 1, _omitFieldNames ? '' : 'found', $pb.PbFieldType.PM, + subBuilder: $74.EntityResult.create) + ..pc<$74.EntityResult>( + 2, _omitFieldNames ? '' : 'missing', $pb.PbFieldType.PM, + subBuilder: $74.EntityResult.create) + ..pc<$72.Key>(3, _omitFieldNames ? '' : 'deferred', $pb.PbFieldType.PM, + subBuilder: $72.Key.create) + ..a<$core.List<$core.int>>( + 5, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$50.Timestamp>(7, _omitFieldNames ? '' : 'readTime', + subBuilder: $50.Timestamp.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') @@ -168,8 +228,10 @@ class LookupResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') LookupResponse copyWith(void Function(LookupResponse) updates) => super.copyWith((message) => updates(message as LookupResponse)) - as LookupResponse; // ignore: deprecated_member_use + as LookupResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LookupResponse create() => LookupResponse._(); LookupResponse createEmptyInstance() => create(); @@ -180,79 +242,136 @@ class LookupResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LookupResponse? _defaultInstance; + /// Entities found as `ResultType.FULL` entities. The order of results in this + /// field is undefined and has no relation to the order of the keys in the + /// input. @$pb.TagNumber(1) - $core.List<$2.EntityResult> get found => $_getList(0); + $core.List<$74.EntityResult> get found => $_getList(0); + /// Entities not found as `ResultType.KEY_ONLY` entities. The order of results + /// in this field is undefined and has no relation to the order of the keys + /// in the input. @$pb.TagNumber(2) - $core.List<$2.EntityResult> get missing => $_getList(1); + $core.List<$74.EntityResult> get missing => $_getList(1); + /// A list of keys that were not looked up due to resource constraints. The + /// order of results in this field is undefined and has no relation to the + /// order of the keys in the input. @$pb.TagNumber(3) - $core.List<$1.Key> get deferred => $_getList(2); + $core.List<$72.Key> get deferred => $_getList(2); + + /// The identifier of the transaction that was started as part of this Lookup + /// request. + /// + /// Set only when + /// [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] + /// was set in + /// [LookupRequest.read_options][google.datastore.v1.LookupRequest.read_options]. + @$pb.TagNumber(5) + $core.List<$core.int> get transaction => $_getN(3); + @$pb.TagNumber(5) + set transaction($core.List<$core.int> v) { + $_setBytes(3, v); + } + + @$pb.TagNumber(5) + $core.bool hasTransaction() => $_has(3); + @$pb.TagNumber(5) + void clearTransaction() => clearField(5); + + /// The time at which these entities were read or found missing. + @$pb.TagNumber(7) + $50.Timestamp get readTime => $_getN(4); + @$pb.TagNumber(7) + set readTime($50.Timestamp v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasReadTime() => $_has(4); + @$pb.TagNumber(7) + void clearReadTime() => clearField(7); + @$pb.TagNumber(7) + $50.Timestamp ensureReadTime() => $_ensure(4); } enum RunQueryRequest_QueryType { query, gqlQuery, notSet } +/// The request for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery]. class RunQueryRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, RunQueryRequest_QueryType> - _RunQueryRequest_QueryTypeByTag = { - 3: RunQueryRequest_QueryType.query, - 7: RunQueryRequest_QueryType.gqlQuery, - 0: RunQueryRequest_QueryType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RunQueryRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..oo(0, [3, 7]) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'readOptions', - subBuilder: ReadOptions.create) - ..aOM<$1.PartitionId>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'partitionId', - subBuilder: $1.PartitionId.create) - ..aOM<$2.Query>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'query', - subBuilder: $2.Query.create) - ..aOM<$2.GqlQuery>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'gqlQuery', subBuilder: $2.GqlQuery.create) - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projectId') - ..hasRequiredFields = false; - - RunQueryRequest._() : super(); factory RunQueryRequest({ ReadOptions? readOptions, - $1.PartitionId? partitionId, - $2.Query? query, - $2.GqlQuery? gqlQuery, + $72.PartitionId? partitionId, + $74.Query? query, + $74.GqlQuery? gqlQuery, $core.String? projectId, + $core.String? databaseId, + PropertyMask? propertyMask, + $75.ExplainOptions? explainOptions, }) { - final _result = create(); + final $result = create(); if (readOptions != null) { - _result.readOptions = readOptions; + $result.readOptions = readOptions; } if (partitionId != null) { - _result.partitionId = partitionId; + $result.partitionId = partitionId; } if (query != null) { - _result.query = query; + $result.query = query; } if (gqlQuery != null) { - _result.gqlQuery = gqlQuery; + $result.gqlQuery = gqlQuery; } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; + } + if (databaseId != null) { + $result.databaseId = databaseId; } - return _result; + if (propertyMask != null) { + $result.propertyMask = propertyMask; + } + if (explainOptions != null) { + $result.explainOptions = explainOptions; + } + return $result; } + RunQueryRequest._() : super(); factory RunQueryRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RunQueryRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, RunQueryRequest_QueryType> + _RunQueryRequest_QueryTypeByTag = { + 3: RunQueryRequest_QueryType.query, + 7: RunQueryRequest_QueryType.gqlQuery, + 0: RunQueryRequest_QueryType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RunQueryRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [3, 7]) + ..aOM(1, _omitFieldNames ? '' : 'readOptions', + subBuilder: ReadOptions.create) + ..aOM<$72.PartitionId>(2, _omitFieldNames ? '' : 'partitionId', + subBuilder: $72.PartitionId.create) + ..aOM<$74.Query>(3, _omitFieldNames ? '' : 'query', + subBuilder: $74.Query.create) + ..aOM<$74.GqlQuery>(7, _omitFieldNames ? '' : 'gqlQuery', + subBuilder: $74.GqlQuery.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..aOS(9, _omitFieldNames ? '' : 'databaseId') + ..aOM(10, _omitFieldNames ? '' : 'propertyMask', + subBuilder: PropertyMask.create) + ..aOM<$75.ExplainOptions>(12, _omitFieldNames ? '' : 'explainOptions', + subBuilder: $75.ExplainOptions.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') @@ -262,8 +381,10 @@ class RunQueryRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') RunQueryRequest copyWith(void Function(RunQueryRequest) updates) => super.copyWith((message) => updates(message as RunQueryRequest)) - as RunQueryRequest; // ignore: deprecated_member_use + as RunQueryRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RunQueryRequest create() => RunQueryRequest._(); RunQueryRequest createEmptyInstance() => create(); @@ -278,6 +399,7 @@ class RunQueryRequest extends $pb.GeneratedMessage { _RunQueryRequest_QueryTypeByTag[$_whichOneof(0)]!; void clearQueryType() => clearField($_whichOneof(0)); + /// The options for this query. @$pb.TagNumber(1) ReadOptions get readOptions => $_getN(0); @$pb.TagNumber(1) @@ -292,10 +414,14 @@ class RunQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) ReadOptions ensureReadOptions() => $_ensure(0); + /// Entities are partitioned into subsets, identified by a partition ID. + /// Queries are scoped to a single partition. + /// This partition ID is normalized with the standard default context + /// partition ID. @$pb.TagNumber(2) - $1.PartitionId get partitionId => $_getN(1); + $72.PartitionId get partitionId => $_getN(1); @$pb.TagNumber(2) - set partitionId($1.PartitionId v) { + set partitionId($72.PartitionId v) { setField(2, v); } @@ -304,12 +430,13 @@ class RunQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPartitionId() => clearField(2); @$pb.TagNumber(2) - $1.PartitionId ensurePartitionId() => $_ensure(1); + $72.PartitionId ensurePartitionId() => $_ensure(1); + /// The query to run. @$pb.TagNumber(3) - $2.Query get query => $_getN(2); + $74.Query get query => $_getN(2); @$pb.TagNumber(3) - set query($2.Query v) { + set query($74.Query v) { setField(3, v); } @@ -318,12 +445,13 @@ class RunQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearQuery() => clearField(3); @$pb.TagNumber(3) - $2.Query ensureQuery() => $_ensure(2); + $74.Query ensureQuery() => $_ensure(2); + /// The GQL query to run. This query must be a non-aggregation query. @$pb.TagNumber(7) - $2.GqlQuery get gqlQuery => $_getN(3); + $74.GqlQuery get gqlQuery => $_getN(3); @$pb.TagNumber(7) - set gqlQuery($2.GqlQuery v) { + set gqlQuery($74.GqlQuery v) { setField(7, v); } @@ -332,8 +460,9 @@ class RunQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearGqlQuery() => clearField(7); @$pb.TagNumber(7) - $2.GqlQuery ensureGqlQuery() => $_ensure(3); + $74.GqlQuery ensureGqlQuery() => $_ensure(3); + /// Required. The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(4); @$pb.TagNumber(8) @@ -345,74 +474,486 @@ class RunQueryRequest extends $pb.GeneratedMessage { $core.bool hasProjectId() => $_has(4); @$pb.TagNumber(8) void clearProjectId() => clearField(8); + + /// The ID of the database against which to make the request. + /// + /// '(default)' is not allowed; please use empty string '' to refer the default + /// database. + @$pb.TagNumber(9) + $core.String get databaseId => $_getSZ(5); + @$pb.TagNumber(9) + set databaseId($core.String v) { + $_setString(5, v); + } + + @$pb.TagNumber(9) + $core.bool hasDatabaseId() => $_has(5); + @$pb.TagNumber(9) + void clearDatabaseId() => clearField(9); + + /// The properties to return. + /// This field must not be set for a projection query. + /// + /// See + /// [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask]. + @$pb.TagNumber(10) + PropertyMask get propertyMask => $_getN(6); + @$pb.TagNumber(10) + set propertyMask(PropertyMask v) { + setField(10, v); + } + + @$pb.TagNumber(10) + $core.bool hasPropertyMask() => $_has(6); + @$pb.TagNumber(10) + void clearPropertyMask() => clearField(10); + @$pb.TagNumber(10) + PropertyMask ensurePropertyMask() => $_ensure(6); + + /// Optional. Explain options for the query. If set, additional query + /// statistics will be returned. If not, only query results will be returned. + @$pb.TagNumber(12) + $75.ExplainOptions get explainOptions => $_getN(7); + @$pb.TagNumber(12) + set explainOptions($75.ExplainOptions v) { + setField(12, v); + } + + @$pb.TagNumber(12) + $core.bool hasExplainOptions() => $_has(7); + @$pb.TagNumber(12) + void clearExplainOptions() => clearField(12); + @$pb.TagNumber(12) + $75.ExplainOptions ensureExplainOptions() => $_ensure(7); } +/// The response for +/// [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery]. class RunQueryResponse extends $pb.GeneratedMessage { + factory RunQueryResponse({ + $74.QueryResultBatch? batch, + $74.Query? query, + $core.List<$core.int>? transaction, + $75.ExplainMetrics? explainMetrics, + }) { + final $result = create(); + if (batch != null) { + $result.batch = batch; + } + if (query != null) { + $result.query = query; + } + if (transaction != null) { + $result.transaction = transaction; + } + if (explainMetrics != null) { + $result.explainMetrics = explainMetrics; + } + return $result; + } + RunQueryResponse._() : super(); + factory RunQueryResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RunQueryResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RunQueryResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), + _omitMessageNames ? '' : 'RunQueryResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), createEmptyInstance: create) - ..aOM<$2.QueryResultBatch>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'batch', - subBuilder: $2.QueryResultBatch.create) - ..aOM<$2.Query>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'query', - subBuilder: $2.Query.create) + ..aOM<$74.QueryResultBatch>(1, _omitFieldNames ? '' : 'batch', + subBuilder: $74.QueryResultBatch.create) + ..aOM<$74.Query>(2, _omitFieldNames ? '' : 'query', + subBuilder: $74.Query.create) + ..a<$core.List<$core.int>>( + 5, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$75.ExplainMetrics>(9, _omitFieldNames ? '' : 'explainMetrics', + subBuilder: $75.ExplainMetrics.create) ..hasRequiredFields = false; - RunQueryResponse._() : super(); - factory RunQueryResponse({ - $2.QueryResultBatch? batch, - $2.Query? query, + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RunQueryResponse clone() => RunQueryResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RunQueryResponse copyWith(void Function(RunQueryResponse) updates) => + super.copyWith((message) => updates(message as RunQueryResponse)) + as RunQueryResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RunQueryResponse create() => RunQueryResponse._(); + RunQueryResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RunQueryResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static RunQueryResponse? _defaultInstance; + + /// A batch of query results (always present). + @$pb.TagNumber(1) + $74.QueryResultBatch get batch => $_getN(0); + @$pb.TagNumber(1) + set batch($74.QueryResultBatch v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasBatch() => $_has(0); + @$pb.TagNumber(1) + void clearBatch() => clearField(1); + @$pb.TagNumber(1) + $74.QueryResultBatch ensureBatch() => $_ensure(0); + + /// The parsed form of the `GqlQuery` from the request, if it was set. + @$pb.TagNumber(2) + $74.Query get query => $_getN(1); + @$pb.TagNumber(2) + set query($74.Query v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasQuery() => $_has(1); + @$pb.TagNumber(2) + void clearQuery() => clearField(2); + @$pb.TagNumber(2) + $74.Query ensureQuery() => $_ensure(1); + + /// The identifier of the transaction that was started as part of this + /// RunQuery request. + /// + /// Set only when + /// [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] + /// was set in + /// [RunQueryRequest.read_options][google.datastore.v1.RunQueryRequest.read_options]. + @$pb.TagNumber(5) + $core.List<$core.int> get transaction => $_getN(2); + @$pb.TagNumber(5) + set transaction($core.List<$core.int> v) { + $_setBytes(2, v); + } + + @$pb.TagNumber(5) + $core.bool hasTransaction() => $_has(2); + @$pb.TagNumber(5) + void clearTransaction() => clearField(5); + + /// Query explain metrics. This is only present when the + /// [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] + /// is provided, and it is sent only once with the last response in the stream. + @$pb.TagNumber(9) + $75.ExplainMetrics get explainMetrics => $_getN(3); + @$pb.TagNumber(9) + set explainMetrics($75.ExplainMetrics v) { + setField(9, v); + } + + @$pb.TagNumber(9) + $core.bool hasExplainMetrics() => $_has(3); + @$pb.TagNumber(9) + void clearExplainMetrics() => clearField(9); + @$pb.TagNumber(9) + $75.ExplainMetrics ensureExplainMetrics() => $_ensure(3); +} + +enum RunAggregationQueryRequest_QueryType { aggregationQuery, gqlQuery, notSet } + +/// The request for +/// [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery]. +class RunAggregationQueryRequest extends $pb.GeneratedMessage { + factory RunAggregationQueryRequest({ + ReadOptions? readOptions, + $72.PartitionId? partitionId, + $74.AggregationQuery? aggregationQuery, + $74.GqlQuery? gqlQuery, + $core.String? projectId, + $core.String? databaseId, + $75.ExplainOptions? explainOptions, }) { - final _result = create(); + final $result = create(); + if (readOptions != null) { + $result.readOptions = readOptions; + } + if (partitionId != null) { + $result.partitionId = partitionId; + } + if (aggregationQuery != null) { + $result.aggregationQuery = aggregationQuery; + } + if (gqlQuery != null) { + $result.gqlQuery = gqlQuery; + } + if (projectId != null) { + $result.projectId = projectId; + } + if (databaseId != null) { + $result.databaseId = databaseId; + } + if (explainOptions != null) { + $result.explainOptions = explainOptions; + } + return $result; + } + RunAggregationQueryRequest._() : super(); + factory RunAggregationQueryRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory RunAggregationQueryRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, RunAggregationQueryRequest_QueryType> + _RunAggregationQueryRequest_QueryTypeByTag = { + 3: RunAggregationQueryRequest_QueryType.aggregationQuery, + 7: RunAggregationQueryRequest_QueryType.gqlQuery, + 0: RunAggregationQueryRequest_QueryType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RunAggregationQueryRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [3, 7]) + ..aOM(1, _omitFieldNames ? '' : 'readOptions', + subBuilder: ReadOptions.create) + ..aOM<$72.PartitionId>(2, _omitFieldNames ? '' : 'partitionId', + subBuilder: $72.PartitionId.create) + ..aOM<$74.AggregationQuery>(3, _omitFieldNames ? '' : 'aggregationQuery', + subBuilder: $74.AggregationQuery.create) + ..aOM<$74.GqlQuery>(7, _omitFieldNames ? '' : 'gqlQuery', + subBuilder: $74.GqlQuery.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..aOS(9, _omitFieldNames ? '' : 'databaseId') + ..aOM<$75.ExplainOptions>(11, _omitFieldNames ? '' : 'explainOptions', + subBuilder: $75.ExplainOptions.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') + RunAggregationQueryRequest clone() => + RunAggregationQueryRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RunAggregationQueryRequest copyWith( + void Function(RunAggregationQueryRequest) updates) => + super.copyWith( + (message) => updates(message as RunAggregationQueryRequest)) + as RunAggregationQueryRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RunAggregationQueryRequest create() => RunAggregationQueryRequest._(); + RunAggregationQueryRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RunAggregationQueryRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static RunAggregationQueryRequest? _defaultInstance; + + RunAggregationQueryRequest_QueryType whichQueryType() => + _RunAggregationQueryRequest_QueryTypeByTag[$_whichOneof(0)]!; + void clearQueryType() => clearField($_whichOneof(0)); + + /// The options for this query. + @$pb.TagNumber(1) + ReadOptions get readOptions => $_getN(0); + @$pb.TagNumber(1) + set readOptions(ReadOptions v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasReadOptions() => $_has(0); + @$pb.TagNumber(1) + void clearReadOptions() => clearField(1); + @$pb.TagNumber(1) + ReadOptions ensureReadOptions() => $_ensure(0); + + /// Entities are partitioned into subsets, identified by a partition ID. + /// Queries are scoped to a single partition. + /// This partition ID is normalized with the standard default context + /// partition ID. + @$pb.TagNumber(2) + $72.PartitionId get partitionId => $_getN(1); + @$pb.TagNumber(2) + set partitionId($72.PartitionId v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasPartitionId() => $_has(1); + @$pb.TagNumber(2) + void clearPartitionId() => clearField(2); + @$pb.TagNumber(2) + $72.PartitionId ensurePartitionId() => $_ensure(1); + + /// The query to run. + @$pb.TagNumber(3) + $74.AggregationQuery get aggregationQuery => $_getN(2); + @$pb.TagNumber(3) + set aggregationQuery($74.AggregationQuery v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasAggregationQuery() => $_has(2); + @$pb.TagNumber(3) + void clearAggregationQuery() => clearField(3); + @$pb.TagNumber(3) + $74.AggregationQuery ensureAggregationQuery() => $_ensure(2); + + /// The GQL query to run. This query must be an aggregation query. + @$pb.TagNumber(7) + $74.GqlQuery get gqlQuery => $_getN(3); + @$pb.TagNumber(7) + set gqlQuery($74.GqlQuery v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasGqlQuery() => $_has(3); + @$pb.TagNumber(7) + void clearGqlQuery() => clearField(7); + @$pb.TagNumber(7) + $74.GqlQuery ensureGqlQuery() => $_ensure(3); + + /// Required. The ID of the project against which to make the request. + @$pb.TagNumber(8) + $core.String get projectId => $_getSZ(4); + @$pb.TagNumber(8) + set projectId($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(8) + $core.bool hasProjectId() => $_has(4); + @$pb.TagNumber(8) + void clearProjectId() => clearField(8); + + /// The ID of the database against which to make the request. + /// + /// '(default)' is not allowed; please use empty string '' to refer the default + /// database. + @$pb.TagNumber(9) + $core.String get databaseId => $_getSZ(5); + @$pb.TagNumber(9) + set databaseId($core.String v) { + $_setString(5, v); + } + + @$pb.TagNumber(9) + $core.bool hasDatabaseId() => $_has(5); + @$pb.TagNumber(9) + void clearDatabaseId() => clearField(9); + + /// Optional. Explain options for the query. If set, additional query + /// statistics will be returned. If not, only query results will be returned. + @$pb.TagNumber(11) + $75.ExplainOptions get explainOptions => $_getN(6); + @$pb.TagNumber(11) + set explainOptions($75.ExplainOptions v) { + setField(11, v); + } + + @$pb.TagNumber(11) + $core.bool hasExplainOptions() => $_has(6); + @$pb.TagNumber(11) + void clearExplainOptions() => clearField(11); + @$pb.TagNumber(11) + $75.ExplainOptions ensureExplainOptions() => $_ensure(6); +} + +/// The response for +/// [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery]. +class RunAggregationQueryResponse extends $pb.GeneratedMessage { + factory RunAggregationQueryResponse({ + $76.AggregationResultBatch? batch, + $74.AggregationQuery? query, + $core.List<$core.int>? transaction, + $75.ExplainMetrics? explainMetrics, + }) { + final $result = create(); if (batch != null) { - _result.batch = batch; + $result.batch = batch; + } + if (query != null) { + $result.query = query; + } + if (transaction != null) { + $result.transaction = transaction; } - if (query != null) { - _result.query = query; + if (explainMetrics != null) { + $result.explainMetrics = explainMetrics; } - return _result; + return $result; } - factory RunQueryResponse.fromBuffer($core.List<$core.int> i, + RunAggregationQueryResponse._() : super(); + factory RunAggregationQueryResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory RunQueryResponse.fromJson($core.String i, + factory RunAggregationQueryResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RunAggregationQueryResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM<$76.AggregationResultBatch>(1, _omitFieldNames ? '' : 'batch', + subBuilder: $76.AggregationResultBatch.create) + ..aOM<$74.AggregationQuery>(2, _omitFieldNames ? '' : 'query', + subBuilder: $74.AggregationQuery.create) + ..a<$core.List<$core.int>>( + 5, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM<$75.ExplainMetrics>(9, _omitFieldNames ? '' : 'explainMetrics', + subBuilder: $75.ExplainMetrics.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') - RunQueryResponse clone() => RunQueryResponse()..mergeFromMessage(this); + RunAggregationQueryResponse clone() => + RunAggregationQueryResponse()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - RunQueryResponse copyWith(void Function(RunQueryResponse) updates) => - super.copyWith((message) => updates(message as RunQueryResponse)) - as RunQueryResponse; // ignore: deprecated_member_use + RunAggregationQueryResponse copyWith( + void Function(RunAggregationQueryResponse) updates) => + super.copyWith( + (message) => updates(message as RunAggregationQueryResponse)) + as RunAggregationQueryResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static RunQueryResponse create() => RunQueryResponse._(); - RunQueryResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static RunAggregationQueryResponse create() => + RunAggregationQueryResponse._(); + RunAggregationQueryResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static RunQueryResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static RunQueryResponse? _defaultInstance; + static RunAggregationQueryResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static RunAggregationQueryResponse? _defaultInstance; + /// A batch of aggregation results. Always present. @$pb.TagNumber(1) - $2.QueryResultBatch get batch => $_getN(0); + $76.AggregationResultBatch get batch => $_getN(0); @$pb.TagNumber(1) - set batch($2.QueryResultBatch v) { + set batch($76.AggregationResultBatch v) { setField(1, v); } @@ -421,12 +962,13 @@ class RunQueryResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearBatch() => clearField(1); @$pb.TagNumber(1) - $2.QueryResultBatch ensureBatch() => $_ensure(0); + $76.AggregationResultBatch ensureBatch() => $_ensure(0); + /// The parsed form of the `GqlQuery` from the request, if it was set. @$pb.TagNumber(2) - $2.Query get query => $_getN(1); + $74.AggregationQuery get query => $_getN(1); @$pb.TagNumber(2) - set query($2.Query v) { + set query($74.AggregationQuery v) { setField(2, v); } @@ -435,52 +977,84 @@ class RunQueryResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearQuery() => clearField(2); @$pb.TagNumber(2) - $2.Query ensureQuery() => $_ensure(1); + $74.AggregationQuery ensureQuery() => $_ensure(1); + + /// The identifier of the transaction that was started as part of this + /// RunAggregationQuery request. + /// + /// Set only when + /// [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] + /// was set in + /// [RunAggregationQueryRequest.read_options][google.datastore.v1.RunAggregationQueryRequest.read_options]. + @$pb.TagNumber(5) + $core.List<$core.int> get transaction => $_getN(2); + @$pb.TagNumber(5) + set transaction($core.List<$core.int> v) { + $_setBytes(2, v); + } + + @$pb.TagNumber(5) + $core.bool hasTransaction() => $_has(2); + @$pb.TagNumber(5) + void clearTransaction() => clearField(5); + + /// Query explain metrics. This is only present when the + /// [RunAggregationQueryRequest.explain_options][google.datastore.v1.RunAggregationQueryRequest.explain_options] + /// is provided, and it is sent only once with the last response in the stream. + @$pb.TagNumber(9) + $75.ExplainMetrics get explainMetrics => $_getN(3); + @$pb.TagNumber(9) + set explainMetrics($75.ExplainMetrics v) { + setField(9, v); + } + + @$pb.TagNumber(9) + $core.bool hasExplainMetrics() => $_has(3); + @$pb.TagNumber(9) + void clearExplainMetrics() => clearField(9); + @$pb.TagNumber(9) + $75.ExplainMetrics ensureExplainMetrics() => $_ensure(3); } +/// The request for +/// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. class BeginTransactionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BeginTransactionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOS( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..aOM( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'transactionOptions', - subBuilder: TransactionOptions.create) - ..hasRequiredFields = false; - - BeginTransactionRequest._() : super(); factory BeginTransactionRequest({ $core.String? projectId, + $core.String? databaseId, TransactionOptions? transactionOptions, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; + } + if (databaseId != null) { + $result.databaseId = databaseId; } if (transactionOptions != null) { - _result.transactionOptions = transactionOptions; + $result.transactionOptions = transactionOptions; } - return _result; + return $result; } + BeginTransactionRequest._() : super(); factory BeginTransactionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BeginTransactionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BeginTransactionRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..aOS(9, _omitFieldNames ? '' : 'databaseId') + ..aOM(10, _omitFieldNames ? '' : 'transactionOptions', + subBuilder: TransactionOptions.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') @@ -492,8 +1066,10 @@ class BeginTransactionRequest extends $pb.GeneratedMessage { BeginTransactionRequest copyWith( void Function(BeginTransactionRequest) updates) => super.copyWith((message) => updates(message as BeginTransactionRequest)) - as BeginTransactionRequest; // ignore: deprecated_member_use + as BeginTransactionRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BeginTransactionRequest create() => BeginTransactionRequest._(); BeginTransactionRequest createEmptyInstance() => create(); @@ -504,6 +1080,7 @@ class BeginTransactionRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BeginTransactionRequest? _defaultInstance; + /// Required. The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(8) @@ -516,55 +1093,67 @@ class BeginTransactionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearProjectId() => clearField(8); + /// The ID of the database against which to make the request. + /// + /// '(default)' is not allowed; please use empty string '' to refer the default + /// database. + @$pb.TagNumber(9) + $core.String get databaseId => $_getSZ(1); + @$pb.TagNumber(9) + set databaseId($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(9) + $core.bool hasDatabaseId() => $_has(1); + @$pb.TagNumber(9) + void clearDatabaseId() => clearField(9); + + /// Options for a new transaction. @$pb.TagNumber(10) - TransactionOptions get transactionOptions => $_getN(1); + TransactionOptions get transactionOptions => $_getN(2); @$pb.TagNumber(10) set transactionOptions(TransactionOptions v) { setField(10, v); } @$pb.TagNumber(10) - $core.bool hasTransactionOptions() => $_has(1); + $core.bool hasTransactionOptions() => $_has(2); @$pb.TagNumber(10) void clearTransactionOptions() => clearField(10); @$pb.TagNumber(10) - TransactionOptions ensureTransactionOptions() => $_ensure(1); + TransactionOptions ensureTransactionOptions() => $_ensure(2); } +/// The response for +/// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. class BeginTransactionResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BeginTransactionResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'transaction', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - BeginTransactionResponse._() : super(); factory BeginTransactionResponse({ $core.List<$core.int>? transaction, }) { - final _result = create(); + final $result = create(); if (transaction != null) { - _result.transaction = transaction; + $result.transaction = transaction; } - return _result; + return $result; } + BeginTransactionResponse._() : super(); factory BeginTransactionResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BeginTransactionResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BeginTransactionResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'transaction', $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') @@ -576,8 +1165,10 @@ class BeginTransactionResponse extends $pb.GeneratedMessage { BeginTransactionResponse copyWith( void Function(BeginTransactionResponse) updates) => super.copyWith((message) => updates(message as BeginTransactionResponse)) - as BeginTransactionResponse; // ignore: deprecated_member_use + as BeginTransactionResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BeginTransactionResponse create() => BeginTransactionResponse._(); BeginTransactionResponse createEmptyInstance() => create(); @@ -588,6 +1179,7 @@ class BeginTransactionResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BeginTransactionResponse? _defaultInstance; + /// The transaction identifier (always present). @$pb.TagNumber(1) $core.List<$core.int> get transaction => $_getN(0); @$pb.TagNumber(1) @@ -601,49 +1193,44 @@ class BeginTransactionResponse extends $pb.GeneratedMessage { void clearTransaction() => clearField(1); } +/// The request for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback]. class RollbackRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RollbackRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'transaction', - $pb.PbFieldType.OY) - ..aOS( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..hasRequiredFields = false; - - RollbackRequest._() : super(); factory RollbackRequest({ $core.List<$core.int>? transaction, $core.String? projectId, + $core.String? databaseId, }) { - final _result = create(); + final $result = create(); if (transaction != null) { - _result.transaction = transaction; + $result.transaction = transaction; } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; + } + if (databaseId != null) { + $result.databaseId = databaseId; } - return _result; + return $result; } + RollbackRequest._() : super(); factory RollbackRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RollbackRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RollbackRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..aOS(9, _omitFieldNames ? '' : 'databaseId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -653,8 +1240,10 @@ class RollbackRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') RollbackRequest copyWith(void Function(RollbackRequest) updates) => super.copyWith((message) => updates(message as RollbackRequest)) - as RollbackRequest; // ignore: deprecated_member_use + as RollbackRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RollbackRequest create() => RollbackRequest._(); RollbackRequest createEmptyInstance() => create(); @@ -665,6 +1254,8 @@ class RollbackRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static RollbackRequest? _defaultInstance; + /// Required. The transaction identifier, returned by a call to + /// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. @$pb.TagNumber(1) $core.List<$core.int> get transaction => $_getN(0); @$pb.TagNumber(1) @@ -677,6 +1268,7 @@ class RollbackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTransaction() => clearField(1); + /// Required. The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(1); @$pb.TagNumber(8) @@ -688,28 +1280,44 @@ class RollbackRequest extends $pb.GeneratedMessage { $core.bool hasProjectId() => $_has(1); @$pb.TagNumber(8) void clearProjectId() => clearField(8); + + /// The ID of the database against which to make the request. + /// + /// '(default)' is not allowed; please use empty string '' to refer the default + /// database. + @$pb.TagNumber(9) + $core.String get databaseId => $_getSZ(2); + @$pb.TagNumber(9) + set databaseId($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(9) + $core.bool hasDatabaseId() => $_has(2); + @$pb.TagNumber(9) + void clearDatabaseId() => clearField(9); } +/// The response for +/// [Datastore.Rollback][google.datastore.v1.Datastore.Rollback]. (an empty +/// message). class RollbackResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RollbackResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - RollbackResponse._() : super(); factory RollbackResponse() => create(); + RollbackResponse._() : super(); factory RollbackResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RollbackResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RollbackResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + 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') @@ -719,8 +1327,10 @@ class RollbackResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') RollbackResponse copyWith(void Function(RollbackResponse) updates) => super.copyWith((message) => updates(message as RollbackResponse)) - as RollbackResponse; // ignore: deprecated_member_use + as RollbackResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RollbackResponse create() => RollbackResponse._(); RollbackResponse createEmptyInstance() => create(); @@ -732,69 +1342,78 @@ class RollbackResponse extends $pb.GeneratedMessage { static RollbackResponse? _defaultInstance; } -enum CommitRequest_TransactionSelector { transaction, notSet } +enum CommitRequest_TransactionSelector { + transaction, + singleUseTransaction, + notSet +} +/// The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit]. class CommitRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, CommitRequest_TransactionSelector> - _CommitRequest_TransactionSelectorByTag = { - 1: CommitRequest_TransactionSelector.transaction, - 0: CommitRequest_TransactionSelector.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CommitRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..oo(0, [1]) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'transaction', - $pb.PbFieldType.OY) - ..e( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mode', $pb.PbFieldType.OE, - defaultOrMaker: CommitRequest_Mode.MODE_UNSPECIFIED, - valueOf: CommitRequest_Mode.valueOf, - enumValues: CommitRequest_Mode.values) - ..pc( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mutations', $pb.PbFieldType.PM, - subBuilder: Mutation.create) - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projectId') - ..hasRequiredFields = false; - - CommitRequest._() : super(); factory CommitRequest({ $core.List<$core.int>? transaction, CommitRequest_Mode? mode, $core.Iterable? mutations, $core.String? projectId, + $core.String? databaseId, + TransactionOptions? singleUseTransaction, }) { - final _result = create(); + final $result = create(); if (transaction != null) { - _result.transaction = transaction; + $result.transaction = transaction; } if (mode != null) { - _result.mode = mode; + $result.mode = mode; } if (mutations != null) { - _result.mutations.addAll(mutations); + $result.mutations.addAll(mutations); } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; + } + if (databaseId != null) { + $result.databaseId = databaseId; + } + if (singleUseTransaction != null) { + $result.singleUseTransaction = singleUseTransaction; } - return _result; + return $result; } + CommitRequest._() : super(); factory CommitRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CommitRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, CommitRequest_TransactionSelector> + _CommitRequest_TransactionSelectorByTag = { + 1: CommitRequest_TransactionSelector.transaction, + 10: CommitRequest_TransactionSelector.singleUseTransaction, + 0: CommitRequest_TransactionSelector.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CommitRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [1, 10]) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..e( + 5, _omitFieldNames ? '' : 'mode', $pb.PbFieldType.OE, + defaultOrMaker: CommitRequest_Mode.MODE_UNSPECIFIED, + valueOf: CommitRequest_Mode.valueOf, + enumValues: CommitRequest_Mode.values) + ..pc(6, _omitFieldNames ? '' : 'mutations', $pb.PbFieldType.PM, + subBuilder: Mutation.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..aOS(9, _omitFieldNames ? '' : 'databaseId') + ..aOM(10, _omitFieldNames ? '' : 'singleUseTransaction', + subBuilder: TransactionOptions.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') @@ -804,8 +1423,10 @@ class CommitRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CommitRequest copyWith(void Function(CommitRequest) updates) => super.copyWith((message) => updates(message as CommitRequest)) - as CommitRequest; // ignore: deprecated_member_use + as CommitRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CommitRequest create() => CommitRequest._(); CommitRequest createEmptyInstance() => create(); @@ -820,6 +1441,9 @@ class CommitRequest extends $pb.GeneratedMessage { _CommitRequest_TransactionSelectorByTag[$_whichOneof(0)]!; void clearTransactionSelector() => clearField($_whichOneof(0)); + /// The identifier of the transaction associated with the commit. A + /// transaction identifier is returned by a call to + /// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. @$pb.TagNumber(1) $core.List<$core.int> get transaction => $_getN(0); @$pb.TagNumber(1) @@ -832,6 +1456,7 @@ class CommitRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTransaction() => clearField(1); + /// The type of commit to perform. Defaults to `TRANSACTIONAL`. @$pb.TagNumber(5) CommitRequest_Mode get mode => $_getN(1); @$pb.TagNumber(5) @@ -844,9 +1469,23 @@ class CommitRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearMode() => clearField(5); + /// The mutations to perform. + /// + /// When mode is `TRANSACTIONAL`, mutations affecting a single entity are + /// applied in order. The following sequences of mutations affecting a single + /// entity are not permitted in a single `Commit` request: + /// + /// - `insert` followed by `insert` + /// - `update` followed by `insert` + /// - `upsert` followed by `insert` + /// - `delete` followed by `update` + /// + /// When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single + /// entity. @$pb.TagNumber(6) $core.List get mutations => $_getList(2); + /// Required. The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(3); @$pb.TagNumber(8) @@ -858,51 +1497,82 @@ class CommitRequest extends $pb.GeneratedMessage { $core.bool hasProjectId() => $_has(3); @$pb.TagNumber(8) void clearProjectId() => clearField(8); + + /// The ID of the database against which to make the request. + /// + /// '(default)' is not allowed; please use empty string '' to refer the default + /// database. + @$pb.TagNumber(9) + $core.String get databaseId => $_getSZ(4); + @$pb.TagNumber(9) + set databaseId($core.String v) { + $_setString(4, v); + } + + @$pb.TagNumber(9) + $core.bool hasDatabaseId() => $_has(4); + @$pb.TagNumber(9) + void clearDatabaseId() => clearField(9); + + /// Options for beginning a new transaction for this request. + /// The transaction is committed when the request completes. If specified, + /// [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be + /// [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite]. + @$pb.TagNumber(10) + TransactionOptions get singleUseTransaction => $_getN(5); + @$pb.TagNumber(10) + set singleUseTransaction(TransactionOptions v) { + setField(10, v); + } + + @$pb.TagNumber(10) + $core.bool hasSingleUseTransaction() => $_has(5); + @$pb.TagNumber(10) + void clearSingleUseTransaction() => clearField(10); + @$pb.TagNumber(10) + TransactionOptions ensureSingleUseTransaction() => $_ensure(5); } +/// The response for [Datastore.Commit][google.datastore.v1.Datastore.Commit]. class CommitResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CommitResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mutationResults', - $pb.PbFieldType.PM, - subBuilder: MutationResult.create) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'indexUpdates', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - CommitResponse._() : super(); factory CommitResponse({ $core.Iterable? mutationResults, $core.int? indexUpdates, + $50.Timestamp? commitTime, }) { - final _result = create(); + final $result = create(); if (mutationResults != null) { - _result.mutationResults.addAll(mutationResults); + $result.mutationResults.addAll(mutationResults); } if (indexUpdates != null) { - _result.indexUpdates = indexUpdates; + $result.indexUpdates = indexUpdates; } - return _result; + if (commitTime != null) { + $result.commitTime = commitTime; + } + return $result; } + CommitResponse._() : super(); factory CommitResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CommitResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CommitResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..pc( + 3, _omitFieldNames ? '' : 'mutationResults', $pb.PbFieldType.PM, + subBuilder: MutationResult.create) + ..a<$core.int>(4, _omitFieldNames ? '' : 'indexUpdates', $pb.PbFieldType.O3) + ..aOM<$50.Timestamp>(8, _omitFieldNames ? '' : 'commitTime', + subBuilder: $50.Timestamp.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') @@ -912,8 +1582,10 @@ class CommitResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') CommitResponse copyWith(void Function(CommitResponse) updates) => super.copyWith((message) => updates(message as CommitResponse)) - as CommitResponse; // ignore: deprecated_member_use + as CommitResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CommitResponse create() => CommitResponse._(); CommitResponse createEmptyInstance() => create(); @@ -924,9 +1596,13 @@ class CommitResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CommitResponse? _defaultInstance; + /// The result of performing the mutations. + /// The i-th mutation result corresponds to the i-th mutation in the request. @$pb.TagNumber(3) $core.List get mutationResults => $_getList(0); + /// The number of index entries updated during the commit, or zero if none were + /// updated. @$pb.TagNumber(4) $core.int get indexUpdates => $_getIZ(1); @$pb.TagNumber(4) @@ -938,49 +1614,62 @@ class CommitResponse extends $pb.GeneratedMessage { $core.bool hasIndexUpdates() => $_has(1); @$pb.TagNumber(4) void clearIndexUpdates() => clearField(4); + + /// The transaction commit timestamp. Not set for non-transactional commits. + @$pb.TagNumber(8) + $50.Timestamp get commitTime => $_getN(2); + @$pb.TagNumber(8) + set commitTime($50.Timestamp v) { + setField(8, v); + } + + @$pb.TagNumber(8) + $core.bool hasCommitTime() => $_has(2); + @$pb.TagNumber(8) + void clearCommitTime() => clearField(8); + @$pb.TagNumber(8) + $50.Timestamp ensureCommitTime() => $_ensure(2); } +/// The request for +/// [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds]. class AllocateIdsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AllocateIdsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..pc<$1.Key>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keys', - $pb.PbFieldType.PM, - subBuilder: $1.Key.create) - ..aOS(8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projectId') - ..hasRequiredFields = false; - - AllocateIdsRequest._() : super(); factory AllocateIdsRequest({ - $core.Iterable<$1.Key>? keys, + $core.Iterable<$72.Key>? keys, $core.String? projectId, + $core.String? databaseId, }) { - final _result = create(); + final $result = create(); if (keys != null) { - _result.keys.addAll(keys); + $result.keys.addAll(keys); } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; + } + if (databaseId != null) { + $result.databaseId = databaseId; } - return _result; + return $result; } + AllocateIdsRequest._() : super(); factory AllocateIdsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AllocateIdsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AllocateIdsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..pc<$72.Key>(1, _omitFieldNames ? '' : 'keys', $pb.PbFieldType.PM, + subBuilder: $72.Key.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..aOS(9, _omitFieldNames ? '' : 'databaseId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -990,8 +1679,10 @@ class AllocateIdsRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') AllocateIdsRequest copyWith(void Function(AllocateIdsRequest) updates) => super.copyWith((message) => updates(message as AllocateIdsRequest)) - as AllocateIdsRequest; // ignore: deprecated_member_use + as AllocateIdsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AllocateIdsRequest create() => AllocateIdsRequest._(); AllocateIdsRequest createEmptyInstance() => create(); @@ -1002,9 +1693,12 @@ class AllocateIdsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AllocateIdsRequest? _defaultInstance; + /// Required. A list of keys with incomplete key paths for which to allocate + /// IDs. No key may be reserved/read-only. @$pb.TagNumber(1) - $core.List<$1.Key> get keys => $_getList(0); + $core.List<$72.Key> get keys => $_getList(0); + /// Required. The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(1); @$pb.TagNumber(8) @@ -1016,43 +1710,53 @@ class AllocateIdsRequest extends $pb.GeneratedMessage { $core.bool hasProjectId() => $_has(1); @$pb.TagNumber(8) void clearProjectId() => clearField(8); + + /// The ID of the database against which to make the request. + /// + /// '(default)' is not allowed; please use empty string '' to refer the default + /// database. + @$pb.TagNumber(9) + $core.String get databaseId => $_getSZ(2); + @$pb.TagNumber(9) + set databaseId($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(9) + $core.bool hasDatabaseId() => $_has(2); + @$pb.TagNumber(9) + void clearDatabaseId() => clearField(9); } +/// The response for +/// [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds]. class AllocateIdsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AllocateIdsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..pc<$1.Key>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keys', - $pb.PbFieldType.PM, - subBuilder: $1.Key.create) - ..hasRequiredFields = false; - - AllocateIdsResponse._() : super(); factory AllocateIdsResponse({ - $core.Iterable<$1.Key>? keys, + $core.Iterable<$72.Key>? keys, }) { - final _result = create(); + final $result = create(); if (keys != null) { - _result.keys.addAll(keys); + $result.keys.addAll(keys); } - return _result; + return $result; } + AllocateIdsResponse._() : super(); factory AllocateIdsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AllocateIdsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AllocateIdsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..pc<$72.Key>(1, _omitFieldNames ? '' : 'keys', $pb.PbFieldType.PM, + subBuilder: $72.Key.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') @@ -1062,8 +1766,10 @@ class AllocateIdsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') AllocateIdsResponse copyWith(void Function(AllocateIdsResponse) updates) => super.copyWith((message) => updates(message as AllocateIdsResponse)) - as AllocateIdsResponse; // ignore: deprecated_member_use + as AllocateIdsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AllocateIdsResponse create() => AllocateIdsResponse._(); AllocateIdsResponse createEmptyInstance() => create(); @@ -1074,56 +1780,51 @@ class AllocateIdsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AllocateIdsResponse? _defaultInstance; + /// The keys specified in the request (in the same order), each with + /// its key path completed with a newly allocated ID. @$pb.TagNumber(1) - $core.List<$1.Key> get keys => $_getList(0); + $core.List<$72.Key> get keys => $_getList(0); } +/// The request for +/// [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds]. class ReserveIdsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReserveIdsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..pc<$1.Key>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keys', - $pb.PbFieldType.PM, - subBuilder: $1.Key.create) - ..aOS(8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projectId') - ..aOS(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'databaseId') - ..hasRequiredFields = false; - - ReserveIdsRequest._() : super(); factory ReserveIdsRequest({ - $core.Iterable<$1.Key>? keys, + $core.Iterable<$72.Key>? keys, $core.String? projectId, $core.String? databaseId, }) { - final _result = create(); + final $result = create(); if (keys != null) { - _result.keys.addAll(keys); + $result.keys.addAll(keys); } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (databaseId != null) { - _result.databaseId = databaseId; + $result.databaseId = databaseId; } - return _result; + return $result; } + ReserveIdsRequest._() : super(); factory ReserveIdsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ReserveIdsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReserveIdsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..pc<$72.Key>(1, _omitFieldNames ? '' : 'keys', $pb.PbFieldType.PM, + subBuilder: $72.Key.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..aOS(9, _omitFieldNames ? '' : 'databaseId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1133,8 +1834,10 @@ class ReserveIdsRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ReserveIdsRequest copyWith(void Function(ReserveIdsRequest) updates) => super.copyWith((message) => updates(message as ReserveIdsRequest)) - as ReserveIdsRequest; // ignore: deprecated_member_use + as ReserveIdsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReserveIdsRequest create() => ReserveIdsRequest._(); ReserveIdsRequest createEmptyInstance() => create(); @@ -1145,9 +1848,12 @@ class ReserveIdsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ReserveIdsRequest? _defaultInstance; + /// Required. A list of keys with complete key paths whose numeric IDs should + /// not be auto-allocated. @$pb.TagNumber(1) - $core.List<$1.Key> get keys => $_getList(0); + $core.List<$72.Key> get keys => $_getList(0); + /// Required. The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(1); @$pb.TagNumber(8) @@ -1160,6 +1866,10 @@ class ReserveIdsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearProjectId() => clearField(8); + /// The ID of the database against which to make the request. + /// + /// '(default)' is not allowed; please use empty string '' to refer the default + /// database. @$pb.TagNumber(9) $core.String get databaseId => $_getSZ(2); @$pb.TagNumber(9) @@ -1173,26 +1883,25 @@ class ReserveIdsRequest extends $pb.GeneratedMessage { void clearDatabaseId() => clearField(9); } +/// The response for +/// [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds]. class ReserveIdsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReserveIdsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - ReserveIdsResponse._() : super(); factory ReserveIdsResponse() => create(); + ReserveIdsResponse._() : super(); factory ReserveIdsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ReserveIdsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReserveIdsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + 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') @@ -1202,8 +1911,10 @@ class ReserveIdsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ReserveIdsResponse copyWith(void Function(ReserveIdsResponse) updates) => super.copyWith((message) => updates(message as ReserveIdsResponse)) - as ReserveIdsResponse; // ignore: deprecated_member_use + as ReserveIdsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReserveIdsResponse create() => ReserveIdsResponse._(); ReserveIdsResponse createEmptyInstance() => create(); @@ -1217,77 +1928,87 @@ class ReserveIdsResponse extends $pb.GeneratedMessage { enum Mutation_Operation { insert, update, upsert, delete, notSet } -enum Mutation_ConflictDetectionStrategy { baseVersion, notSet } +enum Mutation_ConflictDetectionStrategy { baseVersion, updateTime, notSet } +/// A mutation to apply to an entity. class Mutation extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Mutation_Operation> - _Mutation_OperationByTag = { - 4: Mutation_Operation.insert, - 5: Mutation_Operation.update, - 6: Mutation_Operation.upsert, - 7: Mutation_Operation.delete, - 0: Mutation_Operation.notSet - }; - static const $core.Map<$core.int, Mutation_ConflictDetectionStrategy> - _Mutation_ConflictDetectionStrategyByTag = { - 8: Mutation_ConflictDetectionStrategy.baseVersion, - 0: Mutation_ConflictDetectionStrategy.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Mutation', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..oo(0, [4, 5, 6, 7]) - ..oo(1, [8]) - ..aOM<$1.Entity>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'insert', - subBuilder: $1.Entity.create) - ..aOM<$1.Entity>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'update', - subBuilder: $1.Entity.create) - ..aOM<$1.Entity>( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'upsert', - subBuilder: $1.Entity.create) - ..aOM<$1.Key>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'delete', subBuilder: $1.Key.create) - ..aInt64(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'baseVersion') - ..hasRequiredFields = false; - - Mutation._() : super(); factory Mutation({ - $1.Entity? insert, - $1.Entity? update, - $1.Entity? upsert, - $1.Key? delete, + $72.Entity? insert, + $72.Entity? update, + $72.Entity? upsert, + $72.Key? delete, $fixnum.Int64? baseVersion, + PropertyMask? propertyMask, + $50.Timestamp? updateTime, }) { - final _result = create(); + final $result = create(); if (insert != null) { - _result.insert = insert; + $result.insert = insert; } if (update != null) { - _result.update = update; + $result.update = update; } if (upsert != null) { - _result.upsert = upsert; + $result.upsert = upsert; } if (delete != null) { - _result.delete = delete; + $result.delete = delete; } if (baseVersion != null) { - _result.baseVersion = baseVersion; + $result.baseVersion = baseVersion; + } + if (propertyMask != null) { + $result.propertyMask = propertyMask; } - return _result; + if (updateTime != null) { + $result.updateTime = updateTime; + } + return $result; } + Mutation._() : super(); factory Mutation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Mutation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Mutation_Operation> + _Mutation_OperationByTag = { + 4: Mutation_Operation.insert, + 5: Mutation_Operation.update, + 6: Mutation_Operation.upsert, + 7: Mutation_Operation.delete, + 0: Mutation_Operation.notSet + }; + static const $core.Map<$core.int, Mutation_ConflictDetectionStrategy> + _Mutation_ConflictDetectionStrategyByTag = { + 8: Mutation_ConflictDetectionStrategy.baseVersion, + 11: Mutation_ConflictDetectionStrategy.updateTime, + 0: Mutation_ConflictDetectionStrategy.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Mutation', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [4, 5, 6, 7]) + ..oo(1, [8, 11]) + ..aOM<$72.Entity>(4, _omitFieldNames ? '' : 'insert', + subBuilder: $72.Entity.create) + ..aOM<$72.Entity>(5, _omitFieldNames ? '' : 'update', + subBuilder: $72.Entity.create) + ..aOM<$72.Entity>(6, _omitFieldNames ? '' : 'upsert', + subBuilder: $72.Entity.create) + ..aOM<$72.Key>(7, _omitFieldNames ? '' : 'delete', + subBuilder: $72.Key.create) + ..aInt64(8, _omitFieldNames ? '' : 'baseVersion') + ..aOM(9, _omitFieldNames ? '' : 'propertyMask', + subBuilder: PropertyMask.create) + ..aOM<$50.Timestamp>(11, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.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') @@ -1296,9 +2017,10 @@ class Mutation extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Mutation copyWith(void Function(Mutation) updates) => - super.copyWith((message) => updates(message as Mutation)) - as Mutation; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Mutation)) as Mutation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Mutation create() => Mutation._(); Mutation createEmptyInstance() => create(); @@ -1316,10 +2038,12 @@ class Mutation extends $pb.GeneratedMessage { _Mutation_ConflictDetectionStrategyByTag[$_whichOneof(1)]!; void clearConflictDetectionStrategy() => clearField($_whichOneof(1)); + /// The entity to insert. The entity must not already exist. + /// The entity key's final path element may be incomplete. @$pb.TagNumber(4) - $1.Entity get insert => $_getN(0); + $72.Entity get insert => $_getN(0); @$pb.TagNumber(4) - set insert($1.Entity v) { + set insert($72.Entity v) { setField(4, v); } @@ -1328,12 +2052,14 @@ class Mutation extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearInsert() => clearField(4); @$pb.TagNumber(4) - $1.Entity ensureInsert() => $_ensure(0); + $72.Entity ensureInsert() => $_ensure(0); + /// The entity to update. The entity must already exist. + /// Must have a complete key path. @$pb.TagNumber(5) - $1.Entity get update => $_getN(1); + $72.Entity get update => $_getN(1); @$pb.TagNumber(5) - set update($1.Entity v) { + set update($72.Entity v) { setField(5, v); } @@ -1342,12 +2068,14 @@ class Mutation extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearUpdate() => clearField(5); @$pb.TagNumber(5) - $1.Entity ensureUpdate() => $_ensure(1); + $72.Entity ensureUpdate() => $_ensure(1); + /// The entity to upsert. The entity may or may not already exist. + /// The entity key's final path element may be incomplete. @$pb.TagNumber(6) - $1.Entity get upsert => $_getN(2); + $72.Entity get upsert => $_getN(2); @$pb.TagNumber(6) - set upsert($1.Entity v) { + set upsert($72.Entity v) { setField(6, v); } @@ -1356,12 +2084,14 @@ class Mutation extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearUpsert() => clearField(6); @$pb.TagNumber(6) - $1.Entity ensureUpsert() => $_ensure(2); + $72.Entity ensureUpsert() => $_ensure(2); + /// The key of the entity to delete. The entity may or may not already exist. + /// Must have a complete key path and must not be reserved/read-only. @$pb.TagNumber(7) - $1.Key get delete => $_getN(3); + $72.Key get delete => $_getN(3); @$pb.TagNumber(7) - set delete($1.Key v) { + set delete($72.Key v) { setField(7, v); } @@ -1370,8 +2100,11 @@ class Mutation extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearDelete() => clearField(7); @$pb.TagNumber(7) - $1.Key ensureDelete() => $_ensure(3); + $72.Key ensureDelete() => $_ensure(3); + /// The version of the entity that this mutation is being applied + /// to. If this does not match the current version on the server, the + /// mutation conflicts. @$pb.TagNumber(8) $fixnum.Int64 get baseVersion => $_getI64(4); @$pb.TagNumber(8) @@ -1383,56 +2116,96 @@ class Mutation extends $pb.GeneratedMessage { $core.bool hasBaseVersion() => $_has(4); @$pb.TagNumber(8) void clearBaseVersion() => clearField(8); + + /// The properties to write in this mutation. + /// None of the properties in the mask may have a reserved name, except for + /// `__key__`. + /// This field is ignored for `delete`. + /// + /// If the entity already exists, only properties referenced in the mask are + /// updated, others are left untouched. + /// Properties referenced in the mask but not in the entity are deleted. + @$pb.TagNumber(9) + PropertyMask get propertyMask => $_getN(5); + @$pb.TagNumber(9) + set propertyMask(PropertyMask v) { + setField(9, v); + } + + @$pb.TagNumber(9) + $core.bool hasPropertyMask() => $_has(5); + @$pb.TagNumber(9) + void clearPropertyMask() => clearField(9); + @$pb.TagNumber(9) + PropertyMask ensurePropertyMask() => $_ensure(5); + + /// The update time of the entity that this mutation is being applied + /// to. If this does not match the current update time on the server, the + /// mutation conflicts. + @$pb.TagNumber(11) + $50.Timestamp get updateTime => $_getN(6); + @$pb.TagNumber(11) + set updateTime($50.Timestamp v) { + setField(11, v); + } + + @$pb.TagNumber(11) + $core.bool hasUpdateTime() => $_has(6); + @$pb.TagNumber(11) + void clearUpdateTime() => clearField(11); + @$pb.TagNumber(11) + $50.Timestamp ensureUpdateTime() => $_ensure(6); } +/// The result of applying a mutation. class MutationResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MutationResult', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOM<$1.Key>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'key', - subBuilder: $1.Key.create) - ..aInt64( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version') - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'conflictDetected') - ..hasRequiredFields = false; - - MutationResult._() : super(); factory MutationResult({ - $1.Key? key, + $72.Key? key, $fixnum.Int64? version, $core.bool? conflictDetected, + $50.Timestamp? updateTime, + $50.Timestamp? createTime, }) { - final _result = create(); + final $result = create(); if (key != null) { - _result.key = key; + $result.key = key; } if (version != null) { - _result.version = version; + $result.version = version; } if (conflictDetected != null) { - _result.conflictDetected = conflictDetected; + $result.conflictDetected = conflictDetected; + } + if (updateTime != null) { + $result.updateTime = updateTime; + } + if (createTime != null) { + $result.createTime = createTime; } - return _result; + return $result; } + MutationResult._() : super(); factory MutationResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MutationResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MutationResult', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM<$72.Key>(3, _omitFieldNames ? '' : 'key', subBuilder: $72.Key.create) + ..aInt64(4, _omitFieldNames ? '' : 'version') + ..aOB(5, _omitFieldNames ? '' : 'conflictDetected') + ..aOM<$50.Timestamp>(6, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(7, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.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') @@ -1442,8 +2215,10 @@ class MutationResult extends $pb.GeneratedMessage { 'Will be removed in next major version') MutationResult copyWith(void Function(MutationResult) updates) => super.copyWith((message) => updates(message as MutationResult)) - as MutationResult; // ignore: deprecated_member_use + as MutationResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MutationResult create() => MutationResult._(); MutationResult createEmptyInstance() => create(); @@ -1454,10 +2229,12 @@ class MutationResult extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MutationResult? _defaultInstance; + /// The automatically allocated key. + /// Set only when the mutation allocated a key. @$pb.TagNumber(3) - $1.Key get key => $_getN(0); + $72.Key get key => $_getN(0); @$pb.TagNumber(3) - set key($1.Key v) { + set key($72.Key v) { setField(3, v); } @@ -1466,8 +2243,13 @@ class MutationResult extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearKey() => clearField(3); @$pb.TagNumber(3) - $1.Key ensureKey() => $_ensure(0); + $72.Key ensureKey() => $_ensure(0); + /// The version of the entity on the server after processing the mutation. If + /// the mutation doesn't change anything on the server, then the version will + /// be the version of the current entity or, if no entity is present, a version + /// that is strictly greater than the version of any previous entity and less + /// than the version of any possible future entity. @$pb.TagNumber(4) $fixnum.Int64 get version => $_getI64(1); @$pb.TagNumber(4) @@ -1480,6 +2262,8 @@ class MutationResult extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearVersion() => clearField(4); + /// Whether a conflict was detected for this mutation. Always false when a + /// conflict detection strategy field is not set in the mutation. @$pb.TagNumber(5) $core.bool get conflictDetected => $_getBF(2); @$pb.TagNumber(5) @@ -1491,61 +2275,174 @@ class MutationResult extends $pb.GeneratedMessage { $core.bool hasConflictDetected() => $_has(2); @$pb.TagNumber(5) void clearConflictDetected() => clearField(5); + + /// The update time of the entity on the server after processing the mutation. + /// If the mutation doesn't change anything on the server, then the timestamp + /// will be the update timestamp of the current entity. This field will not be + /// set after a 'delete'. + @$pb.TagNumber(6) + $50.Timestamp get updateTime => $_getN(3); + @$pb.TagNumber(6) + set updateTime($50.Timestamp v) { + setField(6, v); + } + + @$pb.TagNumber(6) + $core.bool hasUpdateTime() => $_has(3); + @$pb.TagNumber(6) + void clearUpdateTime() => clearField(6); + @$pb.TagNumber(6) + $50.Timestamp ensureUpdateTime() => $_ensure(3); + + /// The create time of the entity. This field will not be set after a 'delete'. + @$pb.TagNumber(7) + $50.Timestamp get createTime => $_getN(4); + @$pb.TagNumber(7) + set createTime($50.Timestamp v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasCreateTime() => $_has(4); + @$pb.TagNumber(7) + void clearCreateTime() => clearField(7); + @$pb.TagNumber(7) + $50.Timestamp ensureCreateTime() => $_ensure(4); } -enum ReadOptions_ConsistencyType { readConsistency, transaction, notSet } +/// The set of arbitrarily nested property paths used to restrict an operation to +/// only a subset of properties in an entity. +class PropertyMask extends $pb.GeneratedMessage { + factory PropertyMask({ + $core.Iterable<$core.String>? paths, + }) { + final $result = create(); + if (paths != null) { + $result.paths.addAll(paths); + } + return $result; + } + PropertyMask._() : super(); + factory PropertyMask.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PropertyMask.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); -class ReadOptions extends $pb.GeneratedMessage { - static const $core.Map<$core.int, ReadOptions_ConsistencyType> - _ReadOptions_ConsistencyTypeByTag = { - 1: ReadOptions_ConsistencyType.readConsistency, - 2: ReadOptions_ConsistencyType.transaction, - 0: ReadOptions_ConsistencyType.notSet - }; static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReadOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), + _omitMessageNames ? '' : 'PropertyMask', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), createEmptyInstance: create) - ..oo(0, [1, 2]) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'readConsistency', - $pb.PbFieldType.OE, - defaultOrMaker: - ReadOptions_ReadConsistency.READ_CONSISTENCY_UNSPECIFIED, - valueOf: ReadOptions_ReadConsistency.valueOf, - enumValues: ReadOptions_ReadConsistency.values) - ..a<$core.List<$core.int>>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'transaction', $pb.PbFieldType.OY) + ..pPS(1, _omitFieldNames ? '' : 'paths') ..hasRequiredFields = false; - ReadOptions._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PropertyMask clone() => PropertyMask()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PropertyMask copyWith(void Function(PropertyMask) updates) => + super.copyWith((message) => updates(message as PropertyMask)) + as PropertyMask; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PropertyMask create() => PropertyMask._(); + PropertyMask createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PropertyMask getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PropertyMask? _defaultInstance; + + /// The paths to the properties covered by this mask. + /// + /// A path is a list of property names separated by dots (`.`), for example + /// `foo.bar` means the property `bar` inside the entity property `foo` inside + /// the entity associated with this path. + /// + /// If a property name contains a dot `.` or a backslash `\`, then that + /// name must be escaped. + /// + /// A path must not be empty, and may not reference a value inside an + /// [array value][google.datastore.v1.Value.array_value]. + @$pb.TagNumber(1) + $core.List<$core.String> get paths => $_getList(0); +} + +enum ReadOptions_ConsistencyType { + readConsistency, + transaction, + newTransaction, + readTime, + notSet +} + +/// The options shared by read requests. +class ReadOptions extends $pb.GeneratedMessage { factory ReadOptions({ ReadOptions_ReadConsistency? readConsistency, $core.List<$core.int>? transaction, + TransactionOptions? newTransaction, + $50.Timestamp? readTime, }) { - final _result = create(); + final $result = create(); if (readConsistency != null) { - _result.readConsistency = readConsistency; + $result.readConsistency = readConsistency; } if (transaction != null) { - _result.transaction = transaction; + $result.transaction = transaction; + } + if (newTransaction != null) { + $result.newTransaction = newTransaction; } - return _result; + if (readTime != null) { + $result.readTime = readTime; + } + return $result; } + ReadOptions._() : super(); factory ReadOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ReadOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, ReadOptions_ConsistencyType> + _ReadOptions_ConsistencyTypeByTag = { + 1: ReadOptions_ConsistencyType.readConsistency, + 2: ReadOptions_ConsistencyType.transaction, + 3: ReadOptions_ConsistencyType.newTransaction, + 4: ReadOptions_ConsistencyType.readTime, + 0: ReadOptions_ConsistencyType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReadOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3, 4]) + ..e( + 1, _omitFieldNames ? '' : 'readConsistency', $pb.PbFieldType.OE, + defaultOrMaker: + ReadOptions_ReadConsistency.READ_CONSISTENCY_UNSPECIFIED, + valueOf: ReadOptions_ReadConsistency.valueOf, + enumValues: ReadOptions_ReadConsistency.values) + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOM(3, _omitFieldNames ? '' : 'newTransaction', + subBuilder: TransactionOptions.create) + ..aOM<$50.Timestamp>(4, _omitFieldNames ? '' : 'readTime', + subBuilder: $50.Timestamp.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') @@ -1555,8 +2452,10 @@ class ReadOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') ReadOptions copyWith(void Function(ReadOptions) updates) => super.copyWith((message) => updates(message as ReadOptions)) - as ReadOptions; // ignore: deprecated_member_use + as ReadOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReadOptions create() => ReadOptions._(); ReadOptions createEmptyInstance() => create(); @@ -1570,6 +2469,7 @@ class ReadOptions extends $pb.GeneratedMessage { _ReadOptions_ConsistencyTypeByTag[$_whichOneof(0)]!; void clearConsistencyType() => clearField($_whichOneof(0)); + /// The non-transactional read consistency to use. @$pb.TagNumber(1) ReadOptions_ReadConsistency get readConsistency => $_getN(0); @$pb.TagNumber(1) @@ -1582,6 +2482,9 @@ class ReadOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearReadConsistency() => clearField(1); + /// The identifier of the transaction in which to read. A + /// transaction identifier is returned by a call to + /// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. @$pb.TagNumber(2) $core.List<$core.int> get transaction => $_getN(1); @$pb.TagNumber(2) @@ -1593,42 +2496,77 @@ class ReadOptions extends $pb.GeneratedMessage { $core.bool hasTransaction() => $_has(1); @$pb.TagNumber(2) void clearTransaction() => clearField(2); + + /// Options for beginning a new transaction for this request. + /// + /// The new transaction identifier will be returned in the corresponding + /// response as either + /// [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] + /// or + /// [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction]. + @$pb.TagNumber(3) + TransactionOptions get newTransaction => $_getN(2); + @$pb.TagNumber(3) + set newTransaction(TransactionOptions v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasNewTransaction() => $_has(2); + @$pb.TagNumber(3) + void clearNewTransaction() => clearField(3); + @$pb.TagNumber(3) + TransactionOptions ensureNewTransaction() => $_ensure(2); + + /// Reads entities as they were at the given time. This value is only + /// supported for Cloud Firestore in Datastore mode. + /// + /// This must be a microsecond precision timestamp within the past one hour, + /// or if Point-in-Time Recovery is enabled, can additionally be a whole + /// minute timestamp within the past 7 days. + @$pb.TagNumber(4) + $50.Timestamp get readTime => $_getN(3); + @$pb.TagNumber(4) + set readTime($50.Timestamp v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasReadTime() => $_has(3); + @$pb.TagNumber(4) + void clearReadTime() => clearField(4); + @$pb.TagNumber(4) + $50.Timestamp ensureReadTime() => $_ensure(3); } +/// Options specific to read / write transactions. class TransactionOptions_ReadWrite extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TransactionOptions.ReadWrite', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'previousTransaction', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - TransactionOptions_ReadWrite._() : super(); factory TransactionOptions_ReadWrite({ $core.List<$core.int>? previousTransaction, }) { - final _result = create(); + final $result = create(); if (previousTransaction != null) { - _result.previousTransaction = previousTransaction; + $result.previousTransaction = previousTransaction; } - return _result; + return $result; } + TransactionOptions_ReadWrite._() : super(); factory TransactionOptions_ReadWrite.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TransactionOptions_ReadWrite.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TransactionOptions.ReadWrite', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'previousTransaction', $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') @@ -1641,8 +2579,10 @@ class TransactionOptions_ReadWrite extends $pb.GeneratedMessage { void Function(TransactionOptions_ReadWrite) updates) => super.copyWith( (message) => updates(message as TransactionOptions_ReadWrite)) - as TransactionOptions_ReadWrite; // ignore: deprecated_member_use + as TransactionOptions_ReadWrite; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TransactionOptions_ReadWrite create() => TransactionOptions_ReadWrite._(); @@ -1654,6 +2594,7 @@ class TransactionOptions_ReadWrite extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static TransactionOptions_ReadWrite? _defaultInstance; + /// The transaction identifier of the transaction being retried. @$pb.TagNumber(1) $core.List<$core.int> get previousTransaction => $_getN(0); @$pb.TagNumber(1) @@ -1667,26 +2608,34 @@ class TransactionOptions_ReadWrite extends $pb.GeneratedMessage { void clearPreviousTransaction() => clearField(1); } +/// Options specific to read-only transactions. class TransactionOptions_ReadOnly extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TransactionOptions.ReadOnly', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..hasRequiredFields = false; - + factory TransactionOptions_ReadOnly({ + $50.Timestamp? readTime, + }) { + final $result = create(); + if (readTime != null) { + $result.readTime = readTime; + } + return $result; + } TransactionOptions_ReadOnly._() : super(); - factory TransactionOptions_ReadOnly() => create(); factory TransactionOptions_ReadOnly.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TransactionOptions_ReadOnly.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TransactionOptions.ReadOnly', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'readTime', + subBuilder: $50.Timestamp.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') @@ -1699,8 +2648,10 @@ class TransactionOptions_ReadOnly extends $pb.GeneratedMessage { void Function(TransactionOptions_ReadOnly) updates) => super.copyWith( (message) => updates(message as TransactionOptions_ReadOnly)) - as TransactionOptions_ReadOnly; // ignore: deprecated_member_use + as TransactionOptions_ReadOnly; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TransactionOptions_ReadOnly create() => TransactionOptions_ReadOnly._(); @@ -1711,58 +2662,76 @@ class TransactionOptions_ReadOnly extends $pb.GeneratedMessage { static TransactionOptions_ReadOnly getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static TransactionOptions_ReadOnly? _defaultInstance; + + /// Reads entities at the given time. + /// + /// This must be a microsecond precision timestamp within the past one hour, + /// or if Point-in-Time Recovery is enabled, can additionally be a whole + /// minute timestamp within the past 7 days. + @$pb.TagNumber(1) + $50.Timestamp get readTime => $_getN(0); + @$pb.TagNumber(1) + set readTime($50.Timestamp v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasReadTime() => $_has(0); + @$pb.TagNumber(1) + void clearReadTime() => clearField(1); + @$pb.TagNumber(1) + $50.Timestamp ensureReadTime() => $_ensure(0); } enum TransactionOptions_Mode { readWrite, readOnly, notSet } +/// Options for beginning a new transaction. +/// +/// Transactions can be created explicitly with calls to +/// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction] +/// or implicitly by setting +/// [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] +/// in read requests. class TransactionOptions extends $pb.GeneratedMessage { - static const $core.Map<$core.int, TransactionOptions_Mode> - _TransactionOptions_ModeByTag = { - 1: TransactionOptions_Mode.readWrite, - 2: TransactionOptions_Mode.readOnly, - 0: TransactionOptions_Mode.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TransactionOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'readWrite', - subBuilder: TransactionOptions_ReadWrite.create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'readOnly', - subBuilder: TransactionOptions_ReadOnly.create) - ..hasRequiredFields = false; - - TransactionOptions._() : super(); factory TransactionOptions({ TransactionOptions_ReadWrite? readWrite, TransactionOptions_ReadOnly? readOnly, }) { - final _result = create(); + final $result = create(); if (readWrite != null) { - _result.readWrite = readWrite; + $result.readWrite = readWrite; } if (readOnly != null) { - _result.readOnly = readOnly; + $result.readOnly = readOnly; } - return _result; + return $result; } + TransactionOptions._() : super(); factory TransactionOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TransactionOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, TransactionOptions_Mode> + _TransactionOptions_ModeByTag = { + 1: TransactionOptions_Mode.readWrite, + 2: TransactionOptions_Mode.readOnly, + 0: TransactionOptions_Mode.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TransactionOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [1, 2]) + ..aOM(1, _omitFieldNames ? '' : 'readWrite', + subBuilder: TransactionOptions_ReadWrite.create) + ..aOM(2, _omitFieldNames ? '' : 'readOnly', + subBuilder: TransactionOptions_ReadOnly.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') @@ -1772,8 +2741,10 @@ class TransactionOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') TransactionOptions copyWith(void Function(TransactionOptions) updates) => super.copyWith((message) => updates(message as TransactionOptions)) - as TransactionOptions; // ignore: deprecated_member_use + as TransactionOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TransactionOptions create() => TransactionOptions._(); TransactionOptions createEmptyInstance() => create(); @@ -1788,6 +2759,7 @@ class TransactionOptions extends $pb.GeneratedMessage { _TransactionOptions_ModeByTag[$_whichOneof(0)]!; void clearMode() => clearField($_whichOneof(0)); + /// The transaction should allow both reads and writes. @$pb.TagNumber(1) TransactionOptions_ReadWrite get readWrite => $_getN(0); @$pb.TagNumber(1) @@ -1802,6 +2774,7 @@ class TransactionOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) TransactionOptions_ReadWrite ensureReadWrite() => $_ensure(0); + /// The transaction should only allow reads. @$pb.TagNumber(2) TransactionOptions_ReadOnly get readOnly => $_getN(1); @$pb.TagNumber(2) @@ -1816,3 +2789,7 @@ class TransactionOptions extends $pb.GeneratedMessage { @$pb.TagNumber(2) TransactionOptions_ReadOnly ensureReadOnly() => $_ensure(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbenum.dart index 4149ab1c..71201a99 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbenum.dart @@ -1,30 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1/datastore.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The modes available for commits. class CommitRequest_Mode extends $pb.ProtobufEnum { - static const CommitRequest_Mode MODE_UNSPECIFIED = CommitRequest_Mode._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MODE_UNSPECIFIED'); - static const CommitRequest_Mode TRANSACTIONAL = CommitRequest_Mode._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TRANSACTIONAL'); - static const CommitRequest_Mode NON_TRANSACTIONAL = CommitRequest_Mode._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NON_TRANSACTIONAL'); + static const CommitRequest_Mode MODE_UNSPECIFIED = + CommitRequest_Mode._(0, _omitEnumNames ? '' : 'MODE_UNSPECIFIED'); + static const CommitRequest_Mode TRANSACTIONAL = + CommitRequest_Mode._(1, _omitEnumNames ? '' : 'TRANSACTIONAL'); + static const CommitRequest_Mode NON_TRANSACTIONAL = + CommitRequest_Mode._(2, _omitEnumNames ? '' : 'NON_TRANSACTIONAL'); static const $core.List values = [ MODE_UNSPECIFIED, @@ -39,25 +35,15 @@ class CommitRequest_Mode extends $pb.ProtobufEnum { const CommitRequest_Mode._($core.int v, $core.String n) : super(v, n); } +/// The possible values for read consistencies. class ReadOptions_ReadConsistency extends $pb.ProtobufEnum { static const ReadOptions_ReadConsistency READ_CONSISTENCY_UNSPECIFIED = ReadOptions_ReadConsistency._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'READ_CONSISTENCY_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'READ_CONSISTENCY_UNSPECIFIED'); static const ReadOptions_ReadConsistency STRONG = - ReadOptions_ReadConsistency._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STRONG'); + ReadOptions_ReadConsistency._(1, _omitEnumNames ? '' : 'STRONG'); static const ReadOptions_ReadConsistency EVENTUAL = - ReadOptions_ReadConsistency._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'EVENTUAL'); + ReadOptions_ReadConsistency._(2, _omitEnumNames ? '' : 'EVENTUAL'); static const $core.List values = [ @@ -74,3 +60,5 @@ class ReadOptions_ReadConsistency extends $pb.ProtobufEnum { const ReadOptions_ReadConsistency._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbgrpc.dart index 74be1967..9e287c23 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbgrpc.dart @@ -1,211 +1,254 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1/datastore.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'datastore.pb.dart' as $0; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'datastore.pb.dart' as $21; + export 'datastore.pb.dart'; +@$pb.GrpcServiceName('google.datastore.v1.Datastore') class DatastoreClient extends $grpc.Client { static final _$lookup = - $grpc.ClientMethod<$0.LookupRequest, $0.LookupResponse>( + $grpc.ClientMethod<$21.LookupRequest, $21.LookupResponse>( '/google.datastore.v1.Datastore/Lookup', - ($0.LookupRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LookupResponse.fromBuffer(value)); + ($21.LookupRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $21.LookupResponse.fromBuffer(value)); static final _$runQuery = - $grpc.ClientMethod<$0.RunQueryRequest, $0.RunQueryResponse>( + $grpc.ClientMethod<$21.RunQueryRequest, $21.RunQueryResponse>( '/google.datastore.v1.Datastore/RunQuery', - ($0.RunQueryRequest value) => value.writeToBuffer(), + ($21.RunQueryRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.RunQueryResponse.fromBuffer(value)); + $21.RunQueryResponse.fromBuffer(value)); + static final _$runAggregationQuery = $grpc.ClientMethod< + $21.RunAggregationQueryRequest, $21.RunAggregationQueryResponse>( + '/google.datastore.v1.Datastore/RunAggregationQuery', + ($21.RunAggregationQueryRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $21.RunAggregationQueryResponse.fromBuffer(value)); static final _$beginTransaction = $grpc.ClientMethod< - $0.BeginTransactionRequest, $0.BeginTransactionResponse>( + $21.BeginTransactionRequest, $21.BeginTransactionResponse>( '/google.datastore.v1.Datastore/BeginTransaction', - ($0.BeginTransactionRequest value) => value.writeToBuffer(), + ($21.BeginTransactionRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.BeginTransactionResponse.fromBuffer(value)); + $21.BeginTransactionResponse.fromBuffer(value)); static final _$commit = - $grpc.ClientMethod<$0.CommitRequest, $0.CommitResponse>( + $grpc.ClientMethod<$21.CommitRequest, $21.CommitResponse>( '/google.datastore.v1.Datastore/Commit', - ($0.CommitRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.CommitResponse.fromBuffer(value)); + ($21.CommitRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $21.CommitResponse.fromBuffer(value)); static final _$rollback = - $grpc.ClientMethod<$0.RollbackRequest, $0.RollbackResponse>( + $grpc.ClientMethod<$21.RollbackRequest, $21.RollbackResponse>( '/google.datastore.v1.Datastore/Rollback', - ($0.RollbackRequest value) => value.writeToBuffer(), + ($21.RollbackRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.RollbackResponse.fromBuffer(value)); + $21.RollbackResponse.fromBuffer(value)); static final _$allocateIds = - $grpc.ClientMethod<$0.AllocateIdsRequest, $0.AllocateIdsResponse>( + $grpc.ClientMethod<$21.AllocateIdsRequest, $21.AllocateIdsResponse>( '/google.datastore.v1.Datastore/AllocateIds', - ($0.AllocateIdsRequest value) => value.writeToBuffer(), + ($21.AllocateIdsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.AllocateIdsResponse.fromBuffer(value)); + $21.AllocateIdsResponse.fromBuffer(value)); static final _$reserveIds = - $grpc.ClientMethod<$0.ReserveIdsRequest, $0.ReserveIdsResponse>( + $grpc.ClientMethod<$21.ReserveIdsRequest, $21.ReserveIdsResponse>( '/google.datastore.v1.Datastore/ReserveIds', - ($0.ReserveIdsRequest value) => value.writeToBuffer(), + ($21.ReserveIdsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.ReserveIdsResponse.fromBuffer(value)); + $21.ReserveIdsResponse.fromBuffer(value)); DatastoreClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.LookupResponse> lookup($0.LookupRequest request, + $grpc.ResponseFuture<$21.LookupResponse> lookup($21.LookupRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$lookup, request, options: options); } - $grpc.ResponseFuture<$0.RunQueryResponse> runQuery($0.RunQueryRequest request, + $grpc.ResponseFuture<$21.RunQueryResponse> runQuery( + $21.RunQueryRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$runQuery, request, options: options); } - $grpc.ResponseFuture<$0.BeginTransactionResponse> beginTransaction( - $0.BeginTransactionRequest request, + $grpc.ResponseFuture<$21.RunAggregationQueryResponse> runAggregationQuery( + $21.RunAggregationQueryRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$runAggregationQuery, request, options: options); + } + + $grpc.ResponseFuture<$21.BeginTransactionResponse> beginTransaction( + $21.BeginTransactionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$beginTransaction, request, options: options); } - $grpc.ResponseFuture<$0.CommitResponse> commit($0.CommitRequest request, + $grpc.ResponseFuture<$21.CommitResponse> commit($21.CommitRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$commit, request, options: options); } - $grpc.ResponseFuture<$0.RollbackResponse> rollback($0.RollbackRequest request, + $grpc.ResponseFuture<$21.RollbackResponse> rollback( + $21.RollbackRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$rollback, request, options: options); } - $grpc.ResponseFuture<$0.AllocateIdsResponse> allocateIds( - $0.AllocateIdsRequest request, + $grpc.ResponseFuture<$21.AllocateIdsResponse> allocateIds( + $21.AllocateIdsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$allocateIds, request, options: options); } - $grpc.ResponseFuture<$0.ReserveIdsResponse> reserveIds( - $0.ReserveIdsRequest request, + $grpc.ResponseFuture<$21.ReserveIdsResponse> reserveIds( + $21.ReserveIdsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$reserveIds, request, options: options); } } +@$pb.GrpcServiceName('google.datastore.v1.Datastore') abstract class DatastoreServiceBase extends $grpc.Service { $core.String get $name => 'google.datastore.v1.Datastore'; DatastoreServiceBase() { - $addMethod($grpc.ServiceMethod<$0.LookupRequest, $0.LookupResponse>( + $addMethod($grpc.ServiceMethod<$21.LookupRequest, $21.LookupResponse>( 'Lookup', lookup_Pre, false, false, - ($core.List<$core.int> value) => $0.LookupRequest.fromBuffer(value), - ($0.LookupResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.RunQueryRequest, $0.RunQueryResponse>( + ($core.List<$core.int> value) => $21.LookupRequest.fromBuffer(value), + ($21.LookupResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$21.RunQueryRequest, $21.RunQueryResponse>( 'RunQuery', runQuery_Pre, false, false, - ($core.List<$core.int> value) => $0.RunQueryRequest.fromBuffer(value), - ($0.RunQueryResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.BeginTransactionRequest, - $0.BeginTransactionResponse>( + ($core.List<$core.int> value) => $21.RunQueryRequest.fromBuffer(value), + ($21.RunQueryResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$21.RunAggregationQueryRequest, + $21.RunAggregationQueryResponse>( + 'RunAggregationQuery', + runAggregationQuery_Pre, + false, + false, + ($core.List<$core.int> value) => + $21.RunAggregationQueryRequest.fromBuffer(value), + ($21.RunAggregationQueryResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$21.BeginTransactionRequest, + $21.BeginTransactionResponse>( 'BeginTransaction', beginTransaction_Pre, false, false, ($core.List<$core.int> value) => - $0.BeginTransactionRequest.fromBuffer(value), - ($0.BeginTransactionResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.CommitRequest, $0.CommitResponse>( + $21.BeginTransactionRequest.fromBuffer(value), + ($21.BeginTransactionResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$21.CommitRequest, $21.CommitResponse>( 'Commit', commit_Pre, false, false, - ($core.List<$core.int> value) => $0.CommitRequest.fromBuffer(value), - ($0.CommitResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.RollbackRequest, $0.RollbackResponse>( + ($core.List<$core.int> value) => $21.CommitRequest.fromBuffer(value), + ($21.CommitResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$21.RollbackRequest, $21.RollbackResponse>( 'Rollback', rollback_Pre, false, false, - ($core.List<$core.int> value) => $0.RollbackRequest.fromBuffer(value), - ($0.RollbackResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $21.RollbackRequest.fromBuffer(value), + ($21.RollbackResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.AllocateIdsRequest, $0.AllocateIdsResponse>( + $grpc.ServiceMethod<$21.AllocateIdsRequest, $21.AllocateIdsResponse>( 'AllocateIds', allocateIds_Pre, false, false, ($core.List<$core.int> value) => - $0.AllocateIdsRequest.fromBuffer(value), - ($0.AllocateIdsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ReserveIdsRequest, $0.ReserveIdsResponse>( - 'ReserveIds', - reserveIds_Pre, - false, - false, - ($core.List<$core.int> value) => $0.ReserveIdsRequest.fromBuffer(value), - ($0.ReserveIdsResponse value) => value.writeToBuffer())); + $21.AllocateIdsRequest.fromBuffer(value), + ($21.AllocateIdsResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$21.ReserveIdsRequest, $21.ReserveIdsResponse>( + 'ReserveIds', + reserveIds_Pre, + false, + false, + ($core.List<$core.int> value) => + $21.ReserveIdsRequest.fromBuffer(value), + ($21.ReserveIdsResponse value) => value.writeToBuffer())); } - $async.Future<$0.LookupResponse> lookup_Pre( - $grpc.ServiceCall call, $async.Future<$0.LookupRequest> request) async { + $async.Future<$21.LookupResponse> lookup_Pre( + $grpc.ServiceCall call, $async.Future<$21.LookupRequest> request) async { return lookup(call, await request); } - $async.Future<$0.RunQueryResponse> runQuery_Pre( - $grpc.ServiceCall call, $async.Future<$0.RunQueryRequest> request) async { + $async.Future<$21.RunQueryResponse> runQuery_Pre($grpc.ServiceCall call, + $async.Future<$21.RunQueryRequest> request) async { return runQuery(call, await request); } - $async.Future<$0.BeginTransactionResponse> beginTransaction_Pre( + $async.Future<$21.RunAggregationQueryResponse> runAggregationQuery_Pre( + $grpc.ServiceCall call, + $async.Future<$21.RunAggregationQueryRequest> request) async { + return runAggregationQuery(call, await request); + } + + $async.Future<$21.BeginTransactionResponse> beginTransaction_Pre( $grpc.ServiceCall call, - $async.Future<$0.BeginTransactionRequest> request) async { + $async.Future<$21.BeginTransactionRequest> request) async { return beginTransaction(call, await request); } - $async.Future<$0.CommitResponse> commit_Pre( - $grpc.ServiceCall call, $async.Future<$0.CommitRequest> request) async { + $async.Future<$21.CommitResponse> commit_Pre( + $grpc.ServiceCall call, $async.Future<$21.CommitRequest> request) async { return commit(call, await request); } - $async.Future<$0.RollbackResponse> rollback_Pre( - $grpc.ServiceCall call, $async.Future<$0.RollbackRequest> request) async { + $async.Future<$21.RollbackResponse> rollback_Pre($grpc.ServiceCall call, + $async.Future<$21.RollbackRequest> request) async { return rollback(call, await request); } - $async.Future<$0.AllocateIdsResponse> allocateIds_Pre($grpc.ServiceCall call, - $async.Future<$0.AllocateIdsRequest> request) async { + $async.Future<$21.AllocateIdsResponse> allocateIds_Pre($grpc.ServiceCall call, + $async.Future<$21.AllocateIdsRequest> request) async { return allocateIds(call, await request); } - $async.Future<$0.ReserveIdsResponse> reserveIds_Pre($grpc.ServiceCall call, - $async.Future<$0.ReserveIdsRequest> request) async { + $async.Future<$21.ReserveIdsResponse> reserveIds_Pre($grpc.ServiceCall call, + $async.Future<$21.ReserveIdsRequest> request) async { return reserveIds(call, await request); } - $async.Future<$0.LookupResponse> lookup( - $grpc.ServiceCall call, $0.LookupRequest request); - $async.Future<$0.RunQueryResponse> runQuery( - $grpc.ServiceCall call, $0.RunQueryRequest request); - $async.Future<$0.BeginTransactionResponse> beginTransaction( - $grpc.ServiceCall call, $0.BeginTransactionRequest request); - $async.Future<$0.CommitResponse> commit( - $grpc.ServiceCall call, $0.CommitRequest request); - $async.Future<$0.RollbackResponse> rollback( - $grpc.ServiceCall call, $0.RollbackRequest request); - $async.Future<$0.AllocateIdsResponse> allocateIds( - $grpc.ServiceCall call, $0.AllocateIdsRequest request); - $async.Future<$0.ReserveIdsResponse> reserveIds( - $grpc.ServiceCall call, $0.ReserveIdsRequest request); + $async.Future<$21.LookupResponse> lookup( + $grpc.ServiceCall call, $21.LookupRequest request); + $async.Future<$21.RunQueryResponse> runQuery( + $grpc.ServiceCall call, $21.RunQueryRequest request); + $async.Future<$21.RunAggregationQueryResponse> runAggregationQuery( + $grpc.ServiceCall call, $21.RunAggregationQueryRequest request); + $async.Future<$21.BeginTransactionResponse> beginTransaction( + $grpc.ServiceCall call, $21.BeginTransactionRequest request); + $async.Future<$21.CommitResponse> commit( + $grpc.ServiceCall call, $21.CommitRequest request); + $async.Future<$21.RollbackResponse> rollback( + $grpc.ServiceCall call, $21.RollbackRequest request); + $async.Future<$21.AllocateIdsResponse> allocateIds( + $grpc.ServiceCall call, $21.AllocateIdsRequest request); + $async.Future<$21.ReserveIdsResponse> reserveIds( + $grpc.ServiceCall call, $21.ReserveIdsRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbjson.dart index 094c0b23..a5e0580d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/datastore.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1/datastore.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 lookupRequestDescriptor instead') @@ -14,6 +18,7 @@ const LookupRequest$json = { '1': 'LookupRequest', '2': [ {'1': 'project_id', '3': 8, '4': 1, '5': 9, '8': {}, '10': 'projectId'}, + {'1': 'database_id', '3': 9, '4': 1, '5': 9, '10': 'databaseId'}, { '1': 'read_options', '3': 1, @@ -31,12 +36,25 @@ const LookupRequest$json = { '8': {}, '10': 'keys' }, + { + '1': 'property_mask', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.PropertyMask', + '10': 'propertyMask' + }, ], }; /// Descriptor for `LookupRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List lookupRequestDescriptor = $convert.base64Decode( - 'Cg1Mb29rdXBSZXF1ZXN0EiIKCnByb2plY3RfaWQYCCABKAlCA+BBAlIJcHJvamVjdElkEkMKDHJlYWRfb3B0aW9ucxgBIAEoCzIgLmdvb2dsZS5kYXRhc3RvcmUudjEuUmVhZE9wdGlvbnNSC3JlYWRPcHRpb25zEjEKBGtleXMYAyADKAsyGC5nb29nbGUuZGF0YXN0b3JlLnYxLktleUID4EECUgRrZXlz'); + 'Cg1Mb29rdXBSZXF1ZXN0EiIKCnByb2plY3RfaWQYCCABKAlCA+BBAlIJcHJvamVjdElkEh8KC2' + 'RhdGFiYXNlX2lkGAkgASgJUgpkYXRhYmFzZUlkEkMKDHJlYWRfb3B0aW9ucxgBIAEoCzIgLmdv' + 'b2dsZS5kYXRhc3RvcmUudjEuUmVhZE9wdGlvbnNSC3JlYWRPcHRpb25zEjEKBGtleXMYAyADKA' + 'syGC5nb29nbGUuZGF0YXN0b3JlLnYxLktleUID4EECUgRrZXlzEkYKDXByb3BlcnR5X21hc2sY' + 'BSABKAsyIS5nb29nbGUuZGF0YXN0b3JlLnYxLlByb3BlcnR5TWFza1IMcHJvcGVydHlNYXNr'); + @$core.Deprecated('Use lookupResponseDescriptor instead') const LookupResponse$json = { '1': 'LookupResponse', @@ -65,17 +83,33 @@ const LookupResponse$json = { '6': '.google.datastore.v1.Key', '10': 'deferred' }, + {'1': 'transaction', '3': 5, '4': 1, '5': 12, '10': 'transaction'}, + { + '1': 'read_time', + '3': 7, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'readTime' + }, ], }; /// Descriptor for `LookupResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List lookupResponseDescriptor = $convert.base64Decode( - 'Cg5Mb29rdXBSZXNwb25zZRI3CgVmb3VuZBgBIAMoCzIhLmdvb2dsZS5kYXRhc3RvcmUudjEuRW50aXR5UmVzdWx0UgVmb3VuZBI7CgdtaXNzaW5nGAIgAygLMiEuZ29vZ2xlLmRhdGFzdG9yZS52MS5FbnRpdHlSZXN1bHRSB21pc3NpbmcSNAoIZGVmZXJyZWQYAyADKAsyGC5nb29nbGUuZGF0YXN0b3JlLnYxLktleVIIZGVmZXJyZWQ='); + 'Cg5Mb29rdXBSZXNwb25zZRI3CgVmb3VuZBgBIAMoCzIhLmdvb2dsZS5kYXRhc3RvcmUudjEuRW' + '50aXR5UmVzdWx0UgVmb3VuZBI7CgdtaXNzaW5nGAIgAygLMiEuZ29vZ2xlLmRhdGFzdG9yZS52' + 'MS5FbnRpdHlSZXN1bHRSB21pc3NpbmcSNAoIZGVmZXJyZWQYAyADKAsyGC5nb29nbGUuZGF0YX' + 'N0b3JlLnYxLktleVIIZGVmZXJyZWQSIAoLdHJhbnNhY3Rpb24YBSABKAxSC3RyYW5zYWN0aW9u' + 'EjcKCXJlYWRfdGltZRgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCHJlYWRUaW' + '1l'); + @$core.Deprecated('Use runQueryRequestDescriptor instead') const RunQueryRequest$json = { '1': 'RunQueryRequest', '2': [ {'1': 'project_id', '3': 8, '4': 1, '5': 9, '8': {}, '10': 'projectId'}, + {'1': 'database_id', '3': 9, '4': 1, '5': 9, '10': 'databaseId'}, { '1': 'partition_id', '3': 2, @@ -110,6 +144,23 @@ const RunQueryRequest$json = { '9': 0, '10': 'gqlQuery' }, + { + '1': 'property_mask', + '3': 10, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.PropertyMask', + '10': 'propertyMask' + }, + { + '1': 'explain_options', + '3': 12, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.ExplainOptions', + '8': {}, + '10': 'explainOptions' + }, ], '8': [ {'1': 'query_type'}, @@ -118,7 +169,17 @@ const RunQueryRequest$json = { /// Descriptor for `RunQueryRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List runQueryRequestDescriptor = $convert.base64Decode( - 'Cg9SdW5RdWVyeVJlcXVlc3QSIgoKcHJvamVjdF9pZBgIIAEoCUID4EECUglwcm9qZWN0SWQSQwoMcGFydGl0aW9uX2lkGAIgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS52MS5QYXJ0aXRpb25JZFILcGFydGl0aW9uSWQSQwoMcmVhZF9vcHRpb25zGAEgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS52MS5SZWFkT3B0aW9uc1ILcmVhZE9wdGlvbnMSMgoFcXVlcnkYAyABKAsyGi5nb29nbGUuZGF0YXN0b3JlLnYxLlF1ZXJ5SABSBXF1ZXJ5EjwKCWdxbF9xdWVyeRgHIAEoCzIdLmdvb2dsZS5kYXRhc3RvcmUudjEuR3FsUXVlcnlIAFIIZ3FsUXVlcnlCDAoKcXVlcnlfdHlwZQ=='); + 'Cg9SdW5RdWVyeVJlcXVlc3QSIgoKcHJvamVjdF9pZBgIIAEoCUID4EECUglwcm9qZWN0SWQSHw' + 'oLZGF0YWJhc2VfaWQYCSABKAlSCmRhdGFiYXNlSWQSQwoMcGFydGl0aW9uX2lkGAIgASgLMiAu' + 'Z29vZ2xlLmRhdGFzdG9yZS52MS5QYXJ0aXRpb25JZFILcGFydGl0aW9uSWQSQwoMcmVhZF9vcH' + 'Rpb25zGAEgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS52MS5SZWFkT3B0aW9uc1ILcmVhZE9wdGlv' + 'bnMSMgoFcXVlcnkYAyABKAsyGi5nb29nbGUuZGF0YXN0b3JlLnYxLlF1ZXJ5SABSBXF1ZXJ5Ej' + 'wKCWdxbF9xdWVyeRgHIAEoCzIdLmdvb2dsZS5kYXRhc3RvcmUudjEuR3FsUXVlcnlIAFIIZ3Fs' + 'UXVlcnkSRgoNcHJvcGVydHlfbWFzaxgKIAEoCzIhLmdvb2dsZS5kYXRhc3RvcmUudjEuUHJvcG' + 'VydHlNYXNrUgxwcm9wZXJ0eU1hc2sSUQoPZXhwbGFpbl9vcHRpb25zGAwgASgLMiMuZ29vZ2xl' + 'LmRhdGFzdG9yZS52MS5FeHBsYWluT3B0aW9uc0ID4EEBUg5leHBsYWluT3B0aW9uc0IMCgpxdW' + 'VyeV90eXBl'); + @$core.Deprecated('Use runQueryResponseDescriptor instead') const RunQueryResponse$json = { '1': 'RunQueryResponse', @@ -139,17 +200,139 @@ const RunQueryResponse$json = { '6': '.google.datastore.v1.Query', '10': 'query' }, + {'1': 'transaction', '3': 5, '4': 1, '5': 12, '10': 'transaction'}, + { + '1': 'explain_metrics', + '3': 9, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.ExplainMetrics', + '10': 'explainMetrics' + }, ], }; /// Descriptor for `RunQueryResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List runQueryResponseDescriptor = $convert.base64Decode( - 'ChBSdW5RdWVyeVJlc3BvbnNlEjsKBWJhdGNoGAEgASgLMiUuZ29vZ2xlLmRhdGFzdG9yZS52MS5RdWVyeVJlc3VsdEJhdGNoUgViYXRjaBIwCgVxdWVyeRgCIAEoCzIaLmdvb2dsZS5kYXRhc3RvcmUudjEuUXVlcnlSBXF1ZXJ5'); + 'ChBSdW5RdWVyeVJlc3BvbnNlEjsKBWJhdGNoGAEgASgLMiUuZ29vZ2xlLmRhdGFzdG9yZS52MS' + '5RdWVyeVJlc3VsdEJhdGNoUgViYXRjaBIwCgVxdWVyeRgCIAEoCzIaLmdvb2dsZS5kYXRhc3Rv' + 'cmUudjEuUXVlcnlSBXF1ZXJ5EiAKC3RyYW5zYWN0aW9uGAUgASgMUgt0cmFuc2FjdGlvbhJMCg' + '9leHBsYWluX21ldHJpY3MYCSABKAsyIy5nb29nbGUuZGF0YXN0b3JlLnYxLkV4cGxhaW5NZXRy' + 'aWNzUg5leHBsYWluTWV0cmljcw=='); + +@$core.Deprecated('Use runAggregationQueryRequestDescriptor instead') +const RunAggregationQueryRequest$json = { + '1': 'RunAggregationQueryRequest', + '2': [ + {'1': 'project_id', '3': 8, '4': 1, '5': 9, '8': {}, '10': 'projectId'}, + {'1': 'database_id', '3': 9, '4': 1, '5': 9, '10': 'databaseId'}, + { + '1': 'partition_id', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.PartitionId', + '10': 'partitionId' + }, + { + '1': 'read_options', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.ReadOptions', + '10': 'readOptions' + }, + { + '1': 'aggregation_query', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.AggregationQuery', + '9': 0, + '10': 'aggregationQuery' + }, + { + '1': 'gql_query', + '3': 7, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.GqlQuery', + '9': 0, + '10': 'gqlQuery' + }, + { + '1': 'explain_options', + '3': 11, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.ExplainOptions', + '8': {}, + '10': 'explainOptions' + }, + ], + '8': [ + {'1': 'query_type'}, + ], +}; + +/// Descriptor for `RunAggregationQueryRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List runAggregationQueryRequestDescriptor = $convert.base64Decode( + 'ChpSdW5BZ2dyZWdhdGlvblF1ZXJ5UmVxdWVzdBIiCgpwcm9qZWN0X2lkGAggASgJQgPgQQJSCX' + 'Byb2plY3RJZBIfCgtkYXRhYmFzZV9pZBgJIAEoCVIKZGF0YWJhc2VJZBJDCgxwYXJ0aXRpb25f' + 'aWQYAiABKAsyIC5nb29nbGUuZGF0YXN0b3JlLnYxLlBhcnRpdGlvbklkUgtwYXJ0aXRpb25JZB' + 'JDCgxyZWFkX29wdGlvbnMYASABKAsyIC5nb29nbGUuZGF0YXN0b3JlLnYxLlJlYWRPcHRpb25z' + 'UgtyZWFkT3B0aW9ucxJUChFhZ2dyZWdhdGlvbl9xdWVyeRgDIAEoCzIlLmdvb2dsZS5kYXRhc3' + 'RvcmUudjEuQWdncmVnYXRpb25RdWVyeUgAUhBhZ2dyZWdhdGlvblF1ZXJ5EjwKCWdxbF9xdWVy' + 'eRgHIAEoCzIdLmdvb2dsZS5kYXRhc3RvcmUudjEuR3FsUXVlcnlIAFIIZ3FsUXVlcnkSUQoPZX' + 'hwbGFpbl9vcHRpb25zGAsgASgLMiMuZ29vZ2xlLmRhdGFzdG9yZS52MS5FeHBsYWluT3B0aW9u' + 'c0ID4EEBUg5leHBsYWluT3B0aW9uc0IMCgpxdWVyeV90eXBl'); + +@$core.Deprecated('Use runAggregationQueryResponseDescriptor instead') +const RunAggregationQueryResponse$json = { + '1': 'RunAggregationQueryResponse', + '2': [ + { + '1': 'batch', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.AggregationResultBatch', + '10': 'batch' + }, + { + '1': 'query', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.AggregationQuery', + '10': 'query' + }, + {'1': 'transaction', '3': 5, '4': 1, '5': 12, '10': 'transaction'}, + { + '1': 'explain_metrics', + '3': 9, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.ExplainMetrics', + '10': 'explainMetrics' + }, + ], +}; + +/// Descriptor for `RunAggregationQueryResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List runAggregationQueryResponseDescriptor = $convert.base64Decode( + 'ChtSdW5BZ2dyZWdhdGlvblF1ZXJ5UmVzcG9uc2USQQoFYmF0Y2gYASABKAsyKy5nb29nbGUuZG' + 'F0YXN0b3JlLnYxLkFnZ3JlZ2F0aW9uUmVzdWx0QmF0Y2hSBWJhdGNoEjsKBXF1ZXJ5GAIgASgL' + 'MiUuZ29vZ2xlLmRhdGFzdG9yZS52MS5BZ2dyZWdhdGlvblF1ZXJ5UgVxdWVyeRIgCgt0cmFuc2' + 'FjdGlvbhgFIAEoDFILdHJhbnNhY3Rpb24STAoPZXhwbGFpbl9tZXRyaWNzGAkgASgLMiMuZ29v' + 'Z2xlLmRhdGFzdG9yZS52MS5FeHBsYWluTWV0cmljc1IOZXhwbGFpbk1ldHJpY3M='); + @$core.Deprecated('Use beginTransactionRequestDescriptor instead') const BeginTransactionRequest$json = { '1': 'BeginTransactionRequest', '2': [ {'1': 'project_id', '3': 8, '4': 1, '5': 9, '8': {}, '10': 'projectId'}, + {'1': 'database_id', '3': 9, '4': 1, '5': 9, '10': 'databaseId'}, { '1': 'transaction_options', '3': 10, @@ -162,9 +345,12 @@ const BeginTransactionRequest$json = { }; /// Descriptor for `BeginTransactionRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List beginTransactionRequestDescriptor = - $convert.base64Decode( - 'ChdCZWdpblRyYW5zYWN0aW9uUmVxdWVzdBIiCgpwcm9qZWN0X2lkGAggASgJQgPgQQJSCXByb2plY3RJZBJYChN0cmFuc2FjdGlvbl9vcHRpb25zGAogASgLMicuZ29vZ2xlLmRhdGFzdG9yZS52MS5UcmFuc2FjdGlvbk9wdGlvbnNSEnRyYW5zYWN0aW9uT3B0aW9ucw=='); +final $typed_data.Uint8List beginTransactionRequestDescriptor = $convert.base64Decode( + 'ChdCZWdpblRyYW5zYWN0aW9uUmVxdWVzdBIiCgpwcm9qZWN0X2lkGAggASgJQgPgQQJSCXByb2' + 'plY3RJZBIfCgtkYXRhYmFzZV9pZBgJIAEoCVIKZGF0YWJhc2VJZBJYChN0cmFuc2FjdGlvbl9v' + 'cHRpb25zGAogASgLMicuZ29vZ2xlLmRhdGFzdG9yZS52MS5UcmFuc2FjdGlvbk9wdGlvbnNSEn' + 'RyYW5zYWN0aW9uT3B0aW9ucw=='); + @$core.Deprecated('Use beginTransactionResponseDescriptor instead') const BeginTransactionResponse$json = { '1': 'BeginTransactionResponse', @@ -176,19 +362,25 @@ const BeginTransactionResponse$json = { /// Descriptor for `BeginTransactionResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List beginTransactionResponseDescriptor = $convert.base64Decode( - 'ChhCZWdpblRyYW5zYWN0aW9uUmVzcG9uc2USIAoLdHJhbnNhY3Rpb24YASABKAxSC3RyYW5zYWN0aW9u'); + 'ChhCZWdpblRyYW5zYWN0aW9uUmVzcG9uc2USIAoLdHJhbnNhY3Rpb24YASABKAxSC3RyYW5zYW' + 'N0aW9u'); + @$core.Deprecated('Use rollbackRequestDescriptor instead') const RollbackRequest$json = { '1': 'RollbackRequest', '2': [ {'1': 'project_id', '3': 8, '4': 1, '5': 9, '8': {}, '10': 'projectId'}, + {'1': 'database_id', '3': 9, '4': 1, '5': 9, '10': 'databaseId'}, {'1': 'transaction', '3': 1, '4': 1, '5': 12, '8': {}, '10': 'transaction'}, ], }; /// Descriptor for `RollbackRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List rollbackRequestDescriptor = $convert.base64Decode( - 'Cg9Sb2xsYmFja1JlcXVlc3QSIgoKcHJvamVjdF9pZBgIIAEoCUID4EECUglwcm9qZWN0SWQSJQoLdHJhbnNhY3Rpb24YASABKAxCA+BBAlILdHJhbnNhY3Rpb24='); + 'Cg9Sb2xsYmFja1JlcXVlc3QSIgoKcHJvamVjdF9pZBgIIAEoCUID4EECUglwcm9qZWN0SWQSHw' + 'oLZGF0YWJhc2VfaWQYCSABKAlSCmRhdGFiYXNlSWQSJQoLdHJhbnNhY3Rpb24YASABKAxCA+BB' + 'AlILdHJhbnNhY3Rpb24='); + @$core.Deprecated('Use rollbackResponseDescriptor instead') const RollbackResponse$json = { '1': 'RollbackResponse', @@ -197,11 +389,13 @@ const RollbackResponse$json = { /// Descriptor for `RollbackResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List rollbackResponseDescriptor = $convert.base64Decode('ChBSb2xsYmFja1Jlc3BvbnNl'); + @$core.Deprecated('Use commitRequestDescriptor instead') const CommitRequest$json = { '1': 'CommitRequest', '2': [ {'1': 'project_id', '3': 8, '4': 1, '5': 9, '8': {}, '10': 'projectId'}, + {'1': 'database_id', '3': 9, '4': 1, '5': 9, '10': 'databaseId'}, { '1': 'mode', '3': 5, @@ -211,6 +405,15 @@ const CommitRequest$json = { '10': 'mode' }, {'1': 'transaction', '3': 1, '4': 1, '5': 12, '9': 0, '10': 'transaction'}, + { + '1': 'single_use_transaction', + '3': 10, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.TransactionOptions', + '9': 0, + '10': 'singleUseTransaction' + }, { '1': 'mutations', '3': 6, @@ -238,7 +441,15 @@ const CommitRequest_Mode$json = { /// Descriptor for `CommitRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List commitRequestDescriptor = $convert.base64Decode( - 'Cg1Db21taXRSZXF1ZXN0EiIKCnByb2plY3RfaWQYCCABKAlCA+BBAlIJcHJvamVjdElkEjsKBG1vZGUYBSABKA4yJy5nb29nbGUuZGF0YXN0b3JlLnYxLkNvbW1pdFJlcXVlc3QuTW9kZVIEbW9kZRIiCgt0cmFuc2FjdGlvbhgBIAEoDEgAUgt0cmFuc2FjdGlvbhI7CgltdXRhdGlvbnMYBiADKAsyHS5nb29nbGUuZGF0YXN0b3JlLnYxLk11dGF0aW9uUgltdXRhdGlvbnMiRgoETW9kZRIUChBNT0RFX1VOU1BFQ0lGSUVEEAASEQoNVFJBTlNBQ1RJT05BTBABEhUKEU5PTl9UUkFOU0FDVElPTkFMEAJCFgoUdHJhbnNhY3Rpb25fc2VsZWN0b3I='); + 'Cg1Db21taXRSZXF1ZXN0EiIKCnByb2plY3RfaWQYCCABKAlCA+BBAlIJcHJvamVjdElkEh8KC2' + 'RhdGFiYXNlX2lkGAkgASgJUgpkYXRhYmFzZUlkEjsKBG1vZGUYBSABKA4yJy5nb29nbGUuZGF0' + 'YXN0b3JlLnYxLkNvbW1pdFJlcXVlc3QuTW9kZVIEbW9kZRIiCgt0cmFuc2FjdGlvbhgBIAEoDE' + 'gAUgt0cmFuc2FjdGlvbhJfChZzaW5nbGVfdXNlX3RyYW5zYWN0aW9uGAogASgLMicuZ29vZ2xl' + 'LmRhdGFzdG9yZS52MS5UcmFuc2FjdGlvbk9wdGlvbnNIAFIUc2luZ2xlVXNlVHJhbnNhY3Rpb2' + '4SOwoJbXV0YXRpb25zGAYgAygLMh0uZ29vZ2xlLmRhdGFzdG9yZS52MS5NdXRhdGlvblIJbXV0' + 'YXRpb25zIkYKBE1vZGUSFAoQTU9ERV9VTlNQRUNJRklFRBAAEhEKDVRSQU5TQUNUSU9OQUwQAR' + 'IVChFOT05fVFJBTlNBQ1RJT05BTBACQhYKFHRyYW5zYWN0aW9uX3NlbGVjdG9y'); + @$core.Deprecated('Use commitResponseDescriptor instead') const CommitResponse$json = { '1': 'CommitResponse', @@ -252,17 +463,30 @@ const CommitResponse$json = { '10': 'mutationResults' }, {'1': 'index_updates', '3': 4, '4': 1, '5': 5, '10': 'indexUpdates'}, + { + '1': 'commit_time', + '3': 8, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'commitTime' + }, ], }; /// Descriptor for `CommitResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List commitResponseDescriptor = $convert.base64Decode( - 'Cg5Db21taXRSZXNwb25zZRJOChBtdXRhdGlvbl9yZXN1bHRzGAMgAygLMiMuZ29vZ2xlLmRhdGFzdG9yZS52MS5NdXRhdGlvblJlc3VsdFIPbXV0YXRpb25SZXN1bHRzEiMKDWluZGV4X3VwZGF0ZXMYBCABKAVSDGluZGV4VXBkYXRlcw=='); + 'Cg5Db21taXRSZXNwb25zZRJOChBtdXRhdGlvbl9yZXN1bHRzGAMgAygLMiMuZ29vZ2xlLmRhdG' + 'FzdG9yZS52MS5NdXRhdGlvblJlc3VsdFIPbXV0YXRpb25SZXN1bHRzEiMKDWluZGV4X3VwZGF0' + 'ZXMYBCABKAVSDGluZGV4VXBkYXRlcxI7Cgtjb21taXRfdGltZRgIIAEoCzIaLmdvb2dsZS5wcm' + '90b2J1Zi5UaW1lc3RhbXBSCmNvbW1pdFRpbWU='); + @$core.Deprecated('Use allocateIdsRequestDescriptor instead') const AllocateIdsRequest$json = { '1': 'AllocateIdsRequest', '2': [ {'1': 'project_id', '3': 8, '4': 1, '5': 9, '8': {}, '10': 'projectId'}, + {'1': 'database_id', '3': 9, '4': 1, '5': 9, '10': 'databaseId'}, { '1': 'keys', '3': 1, @@ -277,7 +501,10 @@ const AllocateIdsRequest$json = { /// Descriptor for `AllocateIdsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List allocateIdsRequestDescriptor = $convert.base64Decode( - 'ChJBbGxvY2F0ZUlkc1JlcXVlc3QSIgoKcHJvamVjdF9pZBgIIAEoCUID4EECUglwcm9qZWN0SWQSMQoEa2V5cxgBIAMoCzIYLmdvb2dsZS5kYXRhc3RvcmUudjEuS2V5QgPgQQJSBGtleXM='); + 'ChJBbGxvY2F0ZUlkc1JlcXVlc3QSIgoKcHJvamVjdF9pZBgIIAEoCUID4EECUglwcm9qZWN0SW' + 'QSHwoLZGF0YWJhc2VfaWQYCSABKAlSCmRhdGFiYXNlSWQSMQoEa2V5cxgBIAMoCzIYLmdvb2ds' + 'ZS5kYXRhc3RvcmUudjEuS2V5QgPgQQJSBGtleXM='); + @$core.Deprecated('Use allocateIdsResponseDescriptor instead') const AllocateIdsResponse$json = { '1': 'AllocateIdsResponse', @@ -295,7 +522,9 @@ const AllocateIdsResponse$json = { /// Descriptor for `AllocateIdsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List allocateIdsResponseDescriptor = $convert.base64Decode( - 'ChNBbGxvY2F0ZUlkc1Jlc3BvbnNlEiwKBGtleXMYASADKAsyGC5nb29nbGUuZGF0YXN0b3JlLnYxLktleVIEa2V5cw=='); + 'ChNBbGxvY2F0ZUlkc1Jlc3BvbnNlEiwKBGtleXMYASADKAsyGC5nb29nbGUuZGF0YXN0b3JlLn' + 'YxLktleVIEa2V5cw=='); + @$core.Deprecated('Use reserveIdsRequestDescriptor instead') const ReserveIdsRequest$json = { '1': 'ReserveIdsRequest', @@ -316,7 +545,10 @@ const ReserveIdsRequest$json = { /// Descriptor for `ReserveIdsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List reserveIdsRequestDescriptor = $convert.base64Decode( - 'ChFSZXNlcnZlSWRzUmVxdWVzdBIiCgpwcm9qZWN0X2lkGAggASgJQgPgQQJSCXByb2plY3RJZBIfCgtkYXRhYmFzZV9pZBgJIAEoCVIKZGF0YWJhc2VJZBIxCgRrZXlzGAEgAygLMhguZ29vZ2xlLmRhdGFzdG9yZS52MS5LZXlCA+BBAlIEa2V5cw=='); + 'ChFSZXNlcnZlSWRzUmVxdWVzdBIiCgpwcm9qZWN0X2lkGAggASgJQgPgQQJSCXByb2plY3RJZB' + 'IfCgtkYXRhYmFzZV9pZBgJIAEoCVIKZGF0YWJhc2VJZBIxCgRrZXlzGAEgAygLMhguZ29vZ2xl' + 'LmRhdGFzdG9yZS52MS5LZXlCA+BBAlIEa2V5cw=='); + @$core.Deprecated('Use reserveIdsResponseDescriptor instead') const ReserveIdsResponse$json = { '1': 'ReserveIdsResponse', @@ -325,6 +557,7 @@ const ReserveIdsResponse$json = { /// Descriptor for `ReserveIdsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List reserveIdsResponseDescriptor = $convert.base64Decode('ChJSZXNlcnZlSWRzUmVzcG9uc2U='); + @$core.Deprecated('Use mutationDescriptor instead') const Mutation$json = { '1': 'Mutation', @@ -366,6 +599,23 @@ const Mutation$json = { '10': 'delete' }, {'1': 'base_version', '3': 8, '4': 1, '5': 3, '9': 1, '10': 'baseVersion'}, + { + '1': 'update_time', + '3': 11, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '9': 1, + '10': 'updateTime' + }, + { + '1': 'property_mask', + '3': 9, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.PropertyMask', + '10': 'propertyMask' + }, ], '8': [ {'1': 'operation'}, @@ -375,7 +625,15 @@ const Mutation$json = { /// Descriptor for `Mutation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List mutationDescriptor = $convert.base64Decode( - 'CghNdXRhdGlvbhI1CgZpbnNlcnQYBCABKAsyGy5nb29nbGUuZGF0YXN0b3JlLnYxLkVudGl0eUgAUgZpbnNlcnQSNQoGdXBkYXRlGAUgASgLMhsuZ29vZ2xlLmRhdGFzdG9yZS52MS5FbnRpdHlIAFIGdXBkYXRlEjUKBnVwc2VydBgGIAEoCzIbLmdvb2dsZS5kYXRhc3RvcmUudjEuRW50aXR5SABSBnVwc2VydBIyCgZkZWxldGUYByABKAsyGC5nb29nbGUuZGF0YXN0b3JlLnYxLktleUgAUgZkZWxldGUSIwoMYmFzZV92ZXJzaW9uGAggASgDSAFSC2Jhc2VWZXJzaW9uQgsKCW9wZXJhdGlvbkIdChtjb25mbGljdF9kZXRlY3Rpb25fc3RyYXRlZ3k='); + 'CghNdXRhdGlvbhI1CgZpbnNlcnQYBCABKAsyGy5nb29nbGUuZGF0YXN0b3JlLnYxLkVudGl0eU' + 'gAUgZpbnNlcnQSNQoGdXBkYXRlGAUgASgLMhsuZ29vZ2xlLmRhdGFzdG9yZS52MS5FbnRpdHlI' + 'AFIGdXBkYXRlEjUKBnVwc2VydBgGIAEoCzIbLmdvb2dsZS5kYXRhc3RvcmUudjEuRW50aXR5SA' + 'BSBnVwc2VydBIyCgZkZWxldGUYByABKAsyGC5nb29nbGUuZGF0YXN0b3JlLnYxLktleUgAUgZk' + 'ZWxldGUSIwoMYmFzZV92ZXJzaW9uGAggASgDSAFSC2Jhc2VWZXJzaW9uEj0KC3VwZGF0ZV90aW' + '1lGAsgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgBUgp1cGRhdGVUaW1lEkYKDXBy' + 'b3BlcnR5X21hc2sYCSABKAsyIS5nb29nbGUuZGF0YXN0b3JlLnYxLlByb3BlcnR5TWFza1IMcH' + 'JvcGVydHlNYXNrQgsKCW9wZXJhdGlvbkIdChtjb25mbGljdF9kZXRlY3Rpb25fc3RyYXRlZ3k='); + @$core.Deprecated('Use mutationResultDescriptor instead') const MutationResult$json = { '1': 'MutationResult', @@ -389,6 +647,22 @@ const MutationResult$json = { '10': 'key' }, {'1': 'version', '3': 4, '4': 1, '5': 3, '10': 'version'}, + { + '1': 'create_time', + '3': 7, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'createTime' + }, + { + '1': 'update_time', + '3': 6, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'updateTime' + }, { '1': 'conflict_detected', '3': 5, @@ -401,7 +675,24 @@ const MutationResult$json = { /// Descriptor for `MutationResult`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List mutationResultDescriptor = $convert.base64Decode( - 'Cg5NdXRhdGlvblJlc3VsdBIqCgNrZXkYAyABKAsyGC5nb29nbGUuZGF0YXN0b3JlLnYxLktleVIDa2V5EhgKB3ZlcnNpb24YBCABKANSB3ZlcnNpb24SKwoRY29uZmxpY3RfZGV0ZWN0ZWQYBSABKAhSEGNvbmZsaWN0RGV0ZWN0ZWQ='); + 'Cg5NdXRhdGlvblJlc3VsdBIqCgNrZXkYAyABKAsyGC5nb29nbGUuZGF0YXN0b3JlLnYxLktleV' + 'IDa2V5EhgKB3ZlcnNpb24YBCABKANSB3ZlcnNpb24SOwoLY3JlYXRlX3RpbWUYByABKAsyGi5n' + 'b29nbGUucHJvdG9idWYuVGltZXN0YW1wUgpjcmVhdGVUaW1lEjsKC3VwZGF0ZV90aW1lGAYgAS' + 'gLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKdXBkYXRlVGltZRIrChFjb25mbGljdF9k' + 'ZXRlY3RlZBgFIAEoCFIQY29uZmxpY3REZXRlY3RlZA=='); + +@$core.Deprecated('Use propertyMaskDescriptor instead') +const PropertyMask$json = { + '1': 'PropertyMask', + '2': [ + {'1': 'paths', '3': 1, '4': 3, '5': 9, '10': 'paths'}, + ], +}; + +/// Descriptor for `PropertyMask`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List propertyMaskDescriptor = + $convert.base64Decode('CgxQcm9wZXJ0eU1hc2sSFAoFcGF0aHMYASADKAlSBXBhdGhz'); + @$core.Deprecated('Use readOptionsDescriptor instead') const ReadOptions$json = { '1': 'ReadOptions', @@ -416,6 +707,24 @@ const ReadOptions$json = { '10': 'readConsistency' }, {'1': 'transaction', '3': 2, '4': 1, '5': 12, '9': 0, '10': 'transaction'}, + { + '1': 'new_transaction', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.TransactionOptions', + '9': 0, + '10': 'newTransaction' + }, + { + '1': 'read_time', + '3': 4, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '9': 0, + '10': 'readTime' + }, ], '4': [ReadOptions_ReadConsistency$json], '8': [ @@ -435,7 +744,14 @@ const ReadOptions_ReadConsistency$json = { /// Descriptor for `ReadOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List readOptionsDescriptor = $convert.base64Decode( - 'CgtSZWFkT3B0aW9ucxJdChByZWFkX2NvbnNpc3RlbmN5GAEgASgOMjAuZ29vZ2xlLmRhdGFzdG9yZS52MS5SZWFkT3B0aW9ucy5SZWFkQ29uc2lzdGVuY3lIAFIPcmVhZENvbnNpc3RlbmN5EiIKC3RyYW5zYWN0aW9uGAIgASgMSABSC3RyYW5zYWN0aW9uIk0KD1JlYWRDb25zaXN0ZW5jeRIgChxSRUFEX0NPTlNJU1RFTkNZX1VOU1BFQ0lGSUVEEAASCgoGU1RST05HEAESDAoIRVZFTlRVQUwQAkISChBjb25zaXN0ZW5jeV90eXBl'); + 'CgtSZWFkT3B0aW9ucxJdChByZWFkX2NvbnNpc3RlbmN5GAEgASgOMjAuZ29vZ2xlLmRhdGFzdG' + '9yZS52MS5SZWFkT3B0aW9ucy5SZWFkQ29uc2lzdGVuY3lIAFIPcmVhZENvbnNpc3RlbmN5EiIK' + 'C3RyYW5zYWN0aW9uGAIgASgMSABSC3RyYW5zYWN0aW9uElIKD25ld190cmFuc2FjdGlvbhgDIA' + 'EoCzInLmdvb2dsZS5kYXRhc3RvcmUudjEuVHJhbnNhY3Rpb25PcHRpb25zSABSDm5ld1RyYW5z' + 'YWN0aW9uEjkKCXJlYWRfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIAF' + 'IIcmVhZFRpbWUiTQoPUmVhZENvbnNpc3RlbmN5EiAKHFJFQURfQ09OU0lTVEVOQ1lfVU5TUEVD' + 'SUZJRUQQABIKCgZTVFJPTkcQARIMCghFVkVOVFVBTBACQhIKEGNvbnNpc3RlbmN5X3R5cGU='); + @$core.Deprecated('Use transactionOptionsDescriptor instead') const TransactionOptions$json = { '1': 'TransactionOptions', @@ -482,8 +798,23 @@ const TransactionOptions_ReadWrite$json = { @$core.Deprecated('Use transactionOptionsDescriptor instead') const TransactionOptions_ReadOnly$json = { '1': 'ReadOnly', + '2': [ + { + '1': 'read_time', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'readTime' + }, + ], }; /// Descriptor for `TransactionOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List transactionOptionsDescriptor = $convert.base64Decode( - 'ChJUcmFuc2FjdGlvbk9wdGlvbnMSUgoKcmVhZF93cml0ZRgBIAEoCzIxLmdvb2dsZS5kYXRhc3RvcmUudjEuVHJhbnNhY3Rpb25PcHRpb25zLlJlYWRXcml0ZUgAUglyZWFkV3JpdGUSTwoJcmVhZF9vbmx5GAIgASgLMjAuZ29vZ2xlLmRhdGFzdG9yZS52MS5UcmFuc2FjdGlvbk9wdGlvbnMuUmVhZE9ubHlIAFIIcmVhZE9ubHkaPgoJUmVhZFdyaXRlEjEKFHByZXZpb3VzX3RyYW5zYWN0aW9uGAEgASgMUhNwcmV2aW91c1RyYW5zYWN0aW9uGgoKCFJlYWRPbmx5QgYKBG1vZGU='); + 'ChJUcmFuc2FjdGlvbk9wdGlvbnMSUgoKcmVhZF93cml0ZRgBIAEoCzIxLmdvb2dsZS5kYXRhc3' + 'RvcmUudjEuVHJhbnNhY3Rpb25PcHRpb25zLlJlYWRXcml0ZUgAUglyZWFkV3JpdGUSTwoJcmVh' + 'ZF9vbmx5GAIgASgLMjAuZ29vZ2xlLmRhdGFzdG9yZS52MS5UcmFuc2FjdGlvbk9wdGlvbnMuUm' + 'VhZE9ubHlIAFIIcmVhZE9ubHkaPgoJUmVhZFdyaXRlEjEKFHByZXZpb3VzX3RyYW5zYWN0aW9u' + 'GAEgASgMUhNwcmV2aW91c1RyYW5zYWN0aW9uGkMKCFJlYWRPbmx5EjcKCXJlYWRfdGltZRgBIA' + 'EoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCHJlYWRUaW1lQgYKBG1vZGU='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pb.dart index ce2402e4..a13c5fa8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pb.dart @@ -1,62 +1,79 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1/entity.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../type/latlng.pb.dart' as $0; -import '../../protobuf/timestamp.pb.dart' as $1; - -import '../../protobuf/struct.pbenum.dart' as $2; +import '../../protobuf/struct.pbenum.dart' as $48; +import '../../protobuf/timestamp.pb.dart' as $50; +import '../../type/latlng.pb.dart' as $71; +/// A partition ID identifies a grouping of entities. The grouping is always +/// by project and namespace, however the namespace ID may be empty. +/// +/// A partition ID contains several dimensions: +/// project ID and namespace ID. +/// +/// Partition dimensions: +/// +/// - May be `""`. +/// - Must be valid UTF-8 bytes. +/// - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` +/// If the value of any dimension matches regex `__.*__`, the partition is +/// reserved/read-only. +/// A reserved/read-only partition ID is forbidden in certain documented +/// contexts. +/// +/// Foreign partition IDs (in which the project ID does +/// not match the context project ID ) are discouraged. +/// Reads and writes of foreign partition IDs may fail if the project is not in +/// an active state. class PartitionId extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PartitionId', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'namespaceId') - ..hasRequiredFields = false; - - PartitionId._() : super(); factory PartitionId({ $core.String? projectId, + $core.String? databaseId, $core.String? namespaceId, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; + } + if (databaseId != null) { + $result.databaseId = databaseId; } if (namespaceId != null) { - _result.namespaceId = namespaceId; + $result.namespaceId = namespaceId; } - return _result; + return $result; } + PartitionId._() : super(); factory PartitionId.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PartitionId.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PartitionId', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'projectId') + ..aOS(3, _omitFieldNames ? '' : 'databaseId') + ..aOS(4, _omitFieldNames ? '' : 'namespaceId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -66,8 +83,10 @@ class PartitionId extends $pb.GeneratedMessage { 'Will be removed in next major version') PartitionId copyWith(void Function(PartitionId) updates) => super.copyWith((message) => updates(message as PartitionId)) - as PartitionId; // ignore: deprecated_member_use + as PartitionId; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PartitionId create() => PartitionId._(); PartitionId createEmptyInstance() => create(); @@ -77,6 +96,7 @@ class PartitionId extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static PartitionId? _defaultInstance; + /// The ID of the project to which the entities belong. @$pb.TagNumber(2) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(2) @@ -89,79 +109,83 @@ class PartitionId extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearProjectId() => clearField(2); + /// If not empty, the ID of the database to which the entities + /// belong. + @$pb.TagNumber(3) + $core.String get databaseId => $_getSZ(1); + @$pb.TagNumber(3) + set databaseId($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(3) + $core.bool hasDatabaseId() => $_has(1); + @$pb.TagNumber(3) + void clearDatabaseId() => clearField(3); + + /// If not empty, the ID of the namespace to which the entities belong. @$pb.TagNumber(4) - $core.String get namespaceId => $_getSZ(1); + $core.String get namespaceId => $_getSZ(2); @$pb.TagNumber(4) set namespaceId($core.String v) { - $_setString(1, v); + $_setString(2, v); } @$pb.TagNumber(4) - $core.bool hasNamespaceId() => $_has(1); + $core.bool hasNamespaceId() => $_has(2); @$pb.TagNumber(4) void clearNamespaceId() => clearField(4); } enum Key_PathElement_IdType { id, name, notSet } +/// A (kind, ID/name) pair used to construct a key path. +/// +/// If either name or ID is set, the element is complete. +/// If neither is set, the element is incomplete. class Key_PathElement extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Key_PathElement_IdType> - _Key_PathElement_IdTypeByTag = { - 2: Key_PathElement_IdType.id, - 3: Key_PathElement_IdType.name, - 0: Key_PathElement_IdType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Key.PathElement', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..oo(0, [2, 3]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'kind') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - Key_PathElement._() : super(); factory Key_PathElement({ $core.String? kind, $fixnum.Int64? id, $core.String? name, }) { - final _result = create(); + final $result = create(); if (kind != null) { - _result.kind = kind; + $result.kind = kind; } if (id != null) { - _result.id = id; + $result.id = id; } if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + Key_PathElement._() : super(); factory Key_PathElement.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Key_PathElement.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Key_PathElement_IdType> + _Key_PathElement_IdTypeByTag = { + 2: Key_PathElement_IdType.id, + 3: Key_PathElement_IdType.name, + 0: Key_PathElement_IdType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Key.PathElement', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [2, 3]) + ..aOS(1, _omitFieldNames ? '' : 'kind') + ..aInt64(2, _omitFieldNames ? '' : 'id') + ..aOS(3, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -171,8 +195,10 @@ class Key_PathElement extends $pb.GeneratedMessage { 'Will be removed in next major version') Key_PathElement copyWith(void Function(Key_PathElement) updates) => super.copyWith((message) => updates(message as Key_PathElement)) - as Key_PathElement; // ignore: deprecated_member_use + as Key_PathElement; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Key_PathElement create() => Key_PathElement._(); Key_PathElement createEmptyInstance() => create(); @@ -187,6 +213,15 @@ class Key_PathElement extends $pb.GeneratedMessage { _Key_PathElement_IdTypeByTag[$_whichOneof(0)]!; void clearIdType() => clearField($_whichOneof(0)); + /// The kind of the entity. + /// + /// A kind matching regex `__.*__` is reserved/read-only. + /// A kind must not contain more than 1500 bytes when UTF-8 encoded. + /// Cannot be `""`. + /// + /// Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are + /// encoded as `__bytes__` where `` is the base-64 encoding of the + /// bytes. @$pb.TagNumber(1) $core.String get kind => $_getSZ(0); @$pb.TagNumber(1) @@ -199,6 +234,10 @@ class Key_PathElement extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearKind() => clearField(1); + /// The auto-allocated ID of the entity. + /// + /// Never equal to zero. Values less than zero are discouraged and may not + /// be supported in the future. @$pb.TagNumber(2) $fixnum.Int64 get id => $_getI64(1); @$pb.TagNumber(2) @@ -211,6 +250,15 @@ class Key_PathElement extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// The name of the entity. + /// + /// A name matching regex `__.*__` is reserved/read-only. + /// A name must not be more than 1500 bytes when UTF-8 encoded. + /// Cannot be `""`. + /// + /// Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are + /// encoded as `__bytes__` where `` is the base-64 encoding of the + /// bytes. @$pb.TagNumber(3) $core.String get name => $_getSZ(2); @$pb.TagNumber(3) @@ -224,48 +272,43 @@ class Key_PathElement extends $pb.GeneratedMessage { void clearName() => clearField(3); } +/// A unique identifier for an entity. +/// If a key's partition ID or any of its path kinds or names are +/// reserved/read-only, the key is reserved/read-only. +/// A reserved/read-only key is forbidden in certain documented contexts. class Key extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Key', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'partitionId', - subBuilder: PartitionId.create) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path', - $pb.PbFieldType.PM, - subBuilder: Key_PathElement.create) - ..hasRequiredFields = false; - - Key._() : super(); factory Key({ PartitionId? partitionId, $core.Iterable? path, }) { - final _result = create(); + final $result = create(); if (partitionId != null) { - _result.partitionId = partitionId; + $result.partitionId = partitionId; } if (path != null) { - _result.path.addAll(path); + $result.path.addAll(path); } - return _result; + return $result; } + Key._() : super(); factory Key.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Key.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Key', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'partitionId', + subBuilder: PartitionId.create) + ..pc(2, _omitFieldNames ? '' : 'path', $pb.PbFieldType.PM, + subBuilder: Key_PathElement.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') @@ -274,9 +317,10 @@ class Key extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Key copyWith(void Function(Key) updates) => - super.copyWith((message) => updates(message as Key)) - as Key; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Key)) as Key; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Key create() => Key._(); Key createEmptyInstance() => create(); @@ -286,6 +330,9 @@ class Key extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Key? _defaultInstance; + /// Entities are partitioned into subsets, currently identified by a project + /// ID and namespace ID. + /// Queries are scoped to a single partition. @$pb.TagNumber(1) PartitionId get partitionId => $_getN(0); @$pb.TagNumber(1) @@ -300,45 +347,54 @@ class Key extends $pb.GeneratedMessage { @$pb.TagNumber(1) PartitionId ensurePartitionId() => $_ensure(0); + /// The entity path. + /// An entity path consists of one or more elements composed of a kind and a + /// string or numerical identifier, which identify entities. The first + /// element identifies a _root entity_, the second element identifies + /// a _child_ of the root entity, the third element identifies a child of the + /// second entity, and so forth. The entities identified by all prefixes of + /// the path are called the element's _ancestors_. + /// + /// An entity path is always fully complete: *all* of the entity's ancestors + /// are required to be in the path along with the entity identifier itself. + /// The only exception is that in some documented cases, the identifier in the + /// last path element (for the entity) itself may be omitted. For example, + /// the last path element of the key of `Mutation.insert` may have no + /// identifier. + /// + /// A path can never be empty, and a path can have at most 100 elements. @$pb.TagNumber(2) $core.List get path => $_getList(1); } +/// An array value. class ArrayValue extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ArrayValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'values', - $pb.PbFieldType.PM, - subBuilder: Value.create) - ..hasRequiredFields = false; - - ArrayValue._() : super(); factory ArrayValue({ $core.Iterable? values, }) { - final _result = create(); + final $result = create(); if (values != null) { - _result.values.addAll(values); + $result.values.addAll(values); } - return _result; + return $result; } + ArrayValue._() : super(); factory ArrayValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ArrayValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ArrayValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: Value.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') @@ -347,9 +403,10 @@ class ArrayValue extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ArrayValue copyWith(void Function(ArrayValue) updates) => - super.copyWith((message) => updates(message as ArrayValue)) - as ArrayValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ArrayValue)) as ArrayValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ArrayValue create() => ArrayValue._(); ArrayValue createEmptyInstance() => create(); @@ -359,6 +416,9 @@ class ArrayValue extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ArrayValue? _defaultInstance; + /// Values in the array. + /// The order of values in an array is preserved as long as all values have + /// identical settings for 'exclude_from_indexes'. @$pb.TagNumber(1) $core.List get values => $_getList(0); } @@ -378,125 +438,119 @@ enum Value_ValueType { notSet } +/// A message that can hold any of the supported value types and associated +/// metadata. class Value extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Value_ValueType> _Value_ValueTypeByTag = { - 1: Value_ValueType.booleanValue, - 2: Value_ValueType.integerValue, - 3: Value_ValueType.doubleValue, - 5: Value_ValueType.keyValue, - 6: Value_ValueType.entityValue, - 8: Value_ValueType.geoPointValue, - 9: Value_ValueType.arrayValue, - 10: Value_ValueType.timestampValue, - 11: Value_ValueType.nullValue, - 17: Value_ValueType.stringValue, - 18: Value_ValueType.blobValue, - 0: Value_ValueType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Value', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3, 5, 6, 8, 9, 10, 11, 17, 18]) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'booleanValue') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'integerValue') - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'doubleValue', - $pb.PbFieldType.OD) - ..aOM( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'keyValue', - subBuilder: Key.create) - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityValue', subBuilder: Entity.create) - ..aOM<$0.LatLng>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'geoPointValue', subBuilder: $0.LatLng.create) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'arrayValue', subBuilder: ArrayValue.create) - ..aOM<$1.Timestamp>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timestampValue', subBuilder: $1.Timestamp.create) - ..e<$2.NullValue>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nullValue', $pb.PbFieldType.OE, defaultOrMaker: $2.NullValue.NULL_VALUE, valueOf: $2.NullValue.valueOf, enumValues: $2.NullValue.values) - ..a<$core.int>(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'meaning', $pb.PbFieldType.O3) - ..aOS(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stringValue') - ..a<$core.List<$core.int>>(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'blobValue', $pb.PbFieldType.OY) - ..aOB(19, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'excludeFromIndexes') - ..hasRequiredFields = false; - - Value._() : super(); factory Value({ $core.bool? booleanValue, $fixnum.Int64? integerValue, $core.double? doubleValue, Key? keyValue, Entity? entityValue, - $0.LatLng? geoPointValue, + $71.LatLng? geoPointValue, ArrayValue? arrayValue, - $1.Timestamp? timestampValue, - $2.NullValue? nullValue, + $50.Timestamp? timestampValue, + $48.NullValue? nullValue, $core.int? meaning, $core.String? stringValue, $core.List<$core.int>? blobValue, $core.bool? excludeFromIndexes, }) { - final _result = create(); + final $result = create(); if (booleanValue != null) { - _result.booleanValue = booleanValue; + $result.booleanValue = booleanValue; } if (integerValue != null) { - _result.integerValue = integerValue; + $result.integerValue = integerValue; } if (doubleValue != null) { - _result.doubleValue = doubleValue; + $result.doubleValue = doubleValue; } if (keyValue != null) { - _result.keyValue = keyValue; + $result.keyValue = keyValue; } if (entityValue != null) { - _result.entityValue = entityValue; + $result.entityValue = entityValue; } if (geoPointValue != null) { - _result.geoPointValue = geoPointValue; + $result.geoPointValue = geoPointValue; } if (arrayValue != null) { - _result.arrayValue = arrayValue; + $result.arrayValue = arrayValue; } if (timestampValue != null) { - _result.timestampValue = timestampValue; + $result.timestampValue = timestampValue; } if (nullValue != null) { - _result.nullValue = nullValue; + $result.nullValue = nullValue; } if (meaning != null) { - _result.meaning = meaning; + $result.meaning = meaning; } if (stringValue != null) { - _result.stringValue = stringValue; + $result.stringValue = stringValue; } if (blobValue != null) { - _result.blobValue = blobValue; + $result.blobValue = blobValue; } if (excludeFromIndexes != null) { - _result.excludeFromIndexes = excludeFromIndexes; + $result.excludeFromIndexes = excludeFromIndexes; } - return _result; + return $result; } + Value._() : super(); factory Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Value_ValueType> _Value_ValueTypeByTag = { + 1: Value_ValueType.booleanValue, + 2: Value_ValueType.integerValue, + 3: Value_ValueType.doubleValue, + 5: Value_ValueType.keyValue, + 6: Value_ValueType.entityValue, + 8: Value_ValueType.geoPointValue, + 9: Value_ValueType.arrayValue, + 10: Value_ValueType.timestampValue, + 11: Value_ValueType.nullValue, + 17: Value_ValueType.stringValue, + 18: Value_ValueType.blobValue, + 0: Value_ValueType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Value', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3, 5, 6, 8, 9, 10, 11, 17, 18]) + ..aOB(1, _omitFieldNames ? '' : 'booleanValue') + ..aInt64(2, _omitFieldNames ? '' : 'integerValue') + ..a<$core.double>( + 3, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD) + ..aOM(5, _omitFieldNames ? '' : 'keyValue', subBuilder: Key.create) + ..aOM(6, _omitFieldNames ? '' : 'entityValue', + subBuilder: Entity.create) + ..aOM<$71.LatLng>(8, _omitFieldNames ? '' : 'geoPointValue', + subBuilder: $71.LatLng.create) + ..aOM(9, _omitFieldNames ? '' : 'arrayValue', + subBuilder: ArrayValue.create) + ..aOM<$50.Timestamp>(10, _omitFieldNames ? '' : 'timestampValue', + subBuilder: $50.Timestamp.create) + ..e<$48.NullValue>( + 11, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, + defaultOrMaker: $48.NullValue.NULL_VALUE, + valueOf: $48.NullValue.valueOf, + enumValues: $48.NullValue.values) + ..a<$core.int>(14, _omitFieldNames ? '' : 'meaning', $pb.PbFieldType.O3) + ..aOS(17, _omitFieldNames ? '' : 'stringValue') + ..a<$core.List<$core.int>>( + 18, _omitFieldNames ? '' : 'blobValue', $pb.PbFieldType.OY) + ..aOB(19, _omitFieldNames ? '' : 'excludeFromIndexes') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -505,9 +559,10 @@ class Value extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Value copyWith(void Function(Value) updates) => - super.copyWith((message) => updates(message as Value)) - as Value; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Value)) as Value; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Value create() => Value._(); Value createEmptyInstance() => create(); @@ -520,6 +575,7 @@ class Value extends $pb.GeneratedMessage { Value_ValueType whichValueType() => _Value_ValueTypeByTag[$_whichOneof(0)]!; void clearValueType() => clearField($_whichOneof(0)); + /// A boolean value. @$pb.TagNumber(1) $core.bool get booleanValue => $_getBF(0); @$pb.TagNumber(1) @@ -532,6 +588,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearBooleanValue() => clearField(1); + /// An integer value. @$pb.TagNumber(2) $fixnum.Int64 get integerValue => $_getI64(1); @$pb.TagNumber(2) @@ -544,6 +601,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearIntegerValue() => clearField(2); + /// A double value. @$pb.TagNumber(3) $core.double get doubleValue => $_getN(2); @$pb.TagNumber(3) @@ -556,6 +614,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDoubleValue() => clearField(3); + /// A key value. @$pb.TagNumber(5) Key get keyValue => $_getN(3); @$pb.TagNumber(5) @@ -570,6 +629,11 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(5) Key ensureKeyValue() => $_ensure(3); + /// An entity value. + /// + /// - May have no key. + /// - May have a key with an incomplete key path. + /// - May have a reserved/read-only key. @$pb.TagNumber(6) Entity get entityValue => $_getN(4); @$pb.TagNumber(6) @@ -584,10 +648,11 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(6) Entity ensureEntityValue() => $_ensure(4); + /// A geo point value representing a point on the surface of Earth. @$pb.TagNumber(8) - $0.LatLng get geoPointValue => $_getN(5); + $71.LatLng get geoPointValue => $_getN(5); @$pb.TagNumber(8) - set geoPointValue($0.LatLng v) { + set geoPointValue($71.LatLng v) { setField(8, v); } @@ -596,8 +661,12 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearGeoPointValue() => clearField(8); @$pb.TagNumber(8) - $0.LatLng ensureGeoPointValue() => $_ensure(5); + $71.LatLng ensureGeoPointValue() => $_ensure(5); + /// An array value. + /// Cannot contain another array value. + /// A `Value` instance that sets field `array_value` must not set fields + /// `meaning` or `exclude_from_indexes`. @$pb.TagNumber(9) ArrayValue get arrayValue => $_getN(6); @$pb.TagNumber(9) @@ -612,10 +681,13 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(9) ArrayValue ensureArrayValue() => $_ensure(6); + /// A timestamp value. + /// When stored in the Datastore, precise only to microseconds; + /// any additional precision is rounded down. @$pb.TagNumber(10) - $1.Timestamp get timestampValue => $_getN(7); + $50.Timestamp get timestampValue => $_getN(7); @$pb.TagNumber(10) - set timestampValue($1.Timestamp v) { + set timestampValue($50.Timestamp v) { setField(10, v); } @@ -624,12 +696,13 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearTimestampValue() => clearField(10); @$pb.TagNumber(10) - $1.Timestamp ensureTimestampValue() => $_ensure(7); + $50.Timestamp ensureTimestampValue() => $_ensure(7); + /// A null value. @$pb.TagNumber(11) - $2.NullValue get nullValue => $_getN(8); + $48.NullValue get nullValue => $_getN(8); @$pb.TagNumber(11) - set nullValue($2.NullValue v) { + set nullValue($48.NullValue v) { setField(11, v); } @@ -638,6 +711,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearNullValue() => clearField(11); + /// The `meaning` field should only be populated for backwards compatibility. @$pb.TagNumber(14) $core.int get meaning => $_getIZ(9); @$pb.TagNumber(14) @@ -650,6 +724,9 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearMeaning() => clearField(14); + /// A UTF-8 encoded string value. + /// When `exclude_from_indexes` is false (it is indexed) , may have at most + /// 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. @$pb.TagNumber(17) $core.String get stringValue => $_getSZ(10); @$pb.TagNumber(17) @@ -662,6 +739,10 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(17) void clearStringValue() => clearField(17); + /// A blob value. + /// May have at most 1,000,000 bytes. + /// When `exclude_from_indexes` is false, may have at most 1500 bytes. + /// In JSON requests, must be base64-encoded. @$pb.TagNumber(18) $core.List<$core.int> get blobValue => $_getN(11); @$pb.TagNumber(18) @@ -674,6 +755,8 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(18) void clearBlobValue() => clearField(18); + /// If the value should be excluded from all indexes including those defined + /// explicitly. @$pb.TagNumber(19) $core.bool get excludeFromIndexes => $_getBF(12); @$pb.TagNumber(19) @@ -687,51 +770,46 @@ class Value extends $pb.GeneratedMessage { void clearExcludeFromIndexes() => clearField(19); } +/// A Datastore data object. +/// +/// Must not exceed 1 MiB - 4 bytes. class Entity extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Entity', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'key', - subBuilder: Key.create) - ..m<$core.String, Value>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'properties', - entryClassName: 'Entity.PropertiesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: Value.create, - packageName: const $pb.PackageName('google.datastore.v1')) - ..hasRequiredFields = false; - - Entity._() : super(); factory Entity({ Key? key, $core.Map<$core.String, Value>? properties, }) { - final _result = create(); + final $result = create(); if (key != null) { - _result.key = key; + $result.key = key; } if (properties != null) { - _result.properties.addAll(properties); + $result.properties.addAll(properties); } - return _result; + return $result; } + Entity._() : super(); factory Entity.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Entity.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Entity', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'key', subBuilder: Key.create) + ..m<$core.String, Value>(3, _omitFieldNames ? '' : 'properties', + entryClassName: 'Entity.PropertiesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: Value.create, + valueDefaultOrMaker: Value.getDefault, + packageName: const $pb.PackageName('google.datastore.v1')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -740,9 +818,10 @@ class Entity extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Entity copyWith(void Function(Entity) updates) => - super.copyWith((message) => updates(message as Entity)) - as Entity; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Entity)) as Entity; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Entity create() => Entity._(); Entity createEmptyInstance() => create(); @@ -752,6 +831,12 @@ class Entity extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Entity? _defaultInstance; + /// The entity's key. + /// + /// An entity must have a key, unless otherwise documented (for example, + /// an entity in `Value.entity_value` may have no key). + /// An entity's kind is its key path's last element's kind, + /// or null if it has no key. @$pb.TagNumber(1) Key get key => $_getN(0); @$pb.TagNumber(1) @@ -766,6 +851,16 @@ class Entity extends $pb.GeneratedMessage { @$pb.TagNumber(1) Key ensureKey() => $_ensure(0); + /// The entity's properties. + /// The map's keys are property names. + /// A property name matching regex `__.*__` is reserved. + /// A reserved property name is forbidden in certain documented contexts. + /// The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot + /// be empty. @$pb.TagNumber(3) $core.Map<$core.String, Value> get properties => $_getMap(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pbenum.dart index 712dfef0..9c6ee11b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1/entity.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pbjson.dart index e8cd68d9..1a6651f7 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/entity.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1/entity.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 partitionIdDescriptor instead') @@ -14,13 +18,17 @@ const PartitionId$json = { '1': 'PartitionId', '2': [ {'1': 'project_id', '3': 2, '4': 1, '5': 9, '10': 'projectId'}, + {'1': 'database_id', '3': 3, '4': 1, '5': 9, '10': 'databaseId'}, {'1': 'namespace_id', '3': 4, '4': 1, '5': 9, '10': 'namespaceId'}, ], }; /// Descriptor for `PartitionId`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List partitionIdDescriptor = $convert.base64Decode( - 'CgtQYXJ0aXRpb25JZBIdCgpwcm9qZWN0X2lkGAIgASgJUglwcm9qZWN0SWQSIQoMbmFtZXNwYWNlX2lkGAQgASgJUgtuYW1lc3BhY2VJZA=='); + 'CgtQYXJ0aXRpb25JZBIdCgpwcm9qZWN0X2lkGAIgASgJUglwcm9qZWN0SWQSHwoLZGF0YWJhc2' + 'VfaWQYAyABKAlSCmRhdGFiYXNlSWQSIQoMbmFtZXNwYWNlX2lkGAQgASgJUgtuYW1lc3BhY2VJ' + 'ZA=='); + @$core.Deprecated('Use keyDescriptor instead') const Key$json = { '1': 'Key', @@ -60,7 +68,11 @@ const Key_PathElement$json = { /// Descriptor for `Key`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List keyDescriptor = $convert.base64Decode( - 'CgNLZXkSQwoMcGFydGl0aW9uX2lkGAEgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS52MS5QYXJ0aXRpb25JZFILcGFydGl0aW9uSWQSOAoEcGF0aBgCIAMoCzIkLmdvb2dsZS5kYXRhc3RvcmUudjEuS2V5LlBhdGhFbGVtZW50UgRwYXRoGlQKC1BhdGhFbGVtZW50EhIKBGtpbmQYASABKAlSBGtpbmQSEAoCaWQYAiABKANIAFICaWQSFAoEbmFtZRgDIAEoCUgAUgRuYW1lQgkKB2lkX3R5cGU='); + 'CgNLZXkSQwoMcGFydGl0aW9uX2lkGAEgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS52MS5QYXJ0aX' + 'Rpb25JZFILcGFydGl0aW9uSWQSOAoEcGF0aBgCIAMoCzIkLmdvb2dsZS5kYXRhc3RvcmUudjEu' + 'S2V5LlBhdGhFbGVtZW50UgRwYXRoGlQKC1BhdGhFbGVtZW50EhIKBGtpbmQYASABKAlSBGtpbm' + 'QSEAoCaWQYAiABKANIAFICaWQSFAoEbmFtZRgDIAEoCUgAUgRuYW1lQgkKB2lkX3R5cGU='); + @$core.Deprecated('Use arrayValueDescriptor instead') const ArrayValue$json = { '1': 'ArrayValue', @@ -78,7 +90,9 @@ const ArrayValue$json = { /// Descriptor for `ArrayValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List arrayValueDescriptor = $convert.base64Decode( - 'CgpBcnJheVZhbHVlEjIKBnZhbHVlcxgBIAMoCzIaLmdvb2dsZS5kYXRhc3RvcmUudjEuVmFsdWVSBnZhbHVlcw=='); + 'CgpBcnJheVZhbHVlEjIKBnZhbHVlcxgBIAMoCzIaLmdvb2dsZS5kYXRhc3RvcmUudjEuVmFsdW' + 'VSBnZhbHVlcw=='); + @$core.Deprecated('Use valueDescriptor instead') const Value$json = { '1': 'Value', @@ -172,7 +186,20 @@ const Value$json = { /// Descriptor for `Value`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List valueDescriptor = $convert.base64Decode( - 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAsgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZUgAUgludWxsVmFsdWUSJQoNYm9vbGVhbl92YWx1ZRgBIAEoCEgAUgxib29sZWFuVmFsdWUSJQoNaW50ZWdlcl92YWx1ZRgCIAEoA0gAUgxpbnRlZ2VyVmFsdWUSIwoMZG91YmxlX3ZhbHVlGAMgASgBSABSC2RvdWJsZVZhbHVlEkUKD3RpbWVzdGFtcF92YWx1ZRgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIAFIOdGltZXN0YW1wVmFsdWUSNwoJa2V5X3ZhbHVlGAUgASgLMhguZ29vZ2xlLmRhdGFzdG9yZS52MS5LZXlIAFIIa2V5VmFsdWUSIwoMc3RyaW5nX3ZhbHVlGBEgASgJSABSC3N0cmluZ1ZhbHVlEh8KCmJsb2JfdmFsdWUYEiABKAxIAFIJYmxvYlZhbHVlEj0KD2dlb19wb2ludF92YWx1ZRgIIAEoCzITLmdvb2dsZS50eXBlLkxhdExuZ0gAUg1nZW9Qb2ludFZhbHVlEkAKDGVudGl0eV92YWx1ZRgGIAEoCzIbLmdvb2dsZS5kYXRhc3RvcmUudjEuRW50aXR5SABSC2VudGl0eVZhbHVlEkIKC2FycmF5X3ZhbHVlGAkgASgLMh8uZ29vZ2xlLmRhdGFzdG9yZS52MS5BcnJheVZhbHVlSABSCmFycmF5VmFsdWUSGAoHbWVhbmluZxgOIAEoBVIHbWVhbmluZxIwChRleGNsdWRlX2Zyb21faW5kZXhlcxgTIAEoCFISZXhjbHVkZUZyb21JbmRleGVzQgwKCnZhbHVlX3R5cGU='); + 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAsgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZU' + 'gAUgludWxsVmFsdWUSJQoNYm9vbGVhbl92YWx1ZRgBIAEoCEgAUgxib29sZWFuVmFsdWUSJQoN' + 'aW50ZWdlcl92YWx1ZRgCIAEoA0gAUgxpbnRlZ2VyVmFsdWUSIwoMZG91YmxlX3ZhbHVlGAMgAS' + 'gBSABSC2RvdWJsZVZhbHVlEkUKD3RpbWVzdGFtcF92YWx1ZRgKIAEoCzIaLmdvb2dsZS5wcm90' + 'b2J1Zi5UaW1lc3RhbXBIAFIOdGltZXN0YW1wVmFsdWUSNwoJa2V5X3ZhbHVlGAUgASgLMhguZ2' + '9vZ2xlLmRhdGFzdG9yZS52MS5LZXlIAFIIa2V5VmFsdWUSIwoMc3RyaW5nX3ZhbHVlGBEgASgJ' + 'SABSC3N0cmluZ1ZhbHVlEh8KCmJsb2JfdmFsdWUYEiABKAxIAFIJYmxvYlZhbHVlEj0KD2dlb1' + '9wb2ludF92YWx1ZRgIIAEoCzITLmdvb2dsZS50eXBlLkxhdExuZ0gAUg1nZW9Qb2ludFZhbHVl' + 'EkAKDGVudGl0eV92YWx1ZRgGIAEoCzIbLmdvb2dsZS5kYXRhc3RvcmUudjEuRW50aXR5SABSC2' + 'VudGl0eVZhbHVlEkIKC2FycmF5X3ZhbHVlGAkgASgLMh8uZ29vZ2xlLmRhdGFzdG9yZS52MS5B' + 'cnJheVZhbHVlSABSCmFycmF5VmFsdWUSGAoHbWVhbmluZxgOIAEoBVIHbWVhbmluZxIwChRleG' + 'NsdWRlX2Zyb21faW5kZXhlcxgTIAEoCFISZXhjbHVkZUZyb21JbmRleGVzQgwKCnZhbHVlX3R5' + 'cGU='); + @$core.Deprecated('Use entityDescriptor instead') const Entity$json = { '1': 'Entity', @@ -216,4 +243,7 @@ const Entity_PropertiesEntry$json = { /// Descriptor for `Entity`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List entityDescriptor = $convert.base64Decode( - 'CgZFbnRpdHkSKgoDa2V5GAEgASgLMhguZ29vZ2xlLmRhdGFzdG9yZS52MS5LZXlSA2tleRJLCgpwcm9wZXJ0aWVzGAMgAygLMisuZ29vZ2xlLmRhdGFzdG9yZS52MS5FbnRpdHkuUHJvcGVydGllc0VudHJ5Ugpwcm9wZXJ0aWVzGlkKD1Byb3BlcnRpZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIwCgV2YWx1ZRgCIAEoCzIaLmdvb2dsZS5kYXRhc3RvcmUudjEuVmFsdWVSBXZhbHVlOgI4AQ=='); + 'CgZFbnRpdHkSKgoDa2V5GAEgASgLMhguZ29vZ2xlLmRhdGFzdG9yZS52MS5LZXlSA2tleRJLCg' + 'pwcm9wZXJ0aWVzGAMgAygLMisuZ29vZ2xlLmRhdGFzdG9yZS52MS5FbnRpdHkuUHJvcGVydGll' + 'c0VudHJ5Ugpwcm9wZXJ0aWVzGlkKD1Byb3BlcnRpZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleR' + 'IwCgV2YWx1ZRgCIAEoCzIaLmdvb2dsZS5kYXRhc3RvcmUudjEuVmFsdWVSBXZhbHVlOgI4AQ=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pb.dart index ad63828f..2adbcd4f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pb.dart @@ -1,69 +1,77 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1/query.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'entity.pb.dart' as $0; -import '../../protobuf/wrappers.pb.dart' as $1; - +import '../../protobuf/timestamp.pb.dart' as $50; +import '../../protobuf/wrappers.pb.dart' as $73; +import 'entity.pb.dart' as $72; import 'query.pbenum.dart'; export 'query.pbenum.dart'; +/// The result of fetching an entity from Datastore. class EntityResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EntityResult', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOM<$0.Entity>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entity', - subBuilder: $0.Entity.create) - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cursor', - $pb.PbFieldType.OY) - ..aInt64( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version') - ..hasRequiredFields = false; - - EntityResult._() : super(); factory EntityResult({ - $0.Entity? entity, + $72.Entity? entity, $core.List<$core.int>? cursor, $fixnum.Int64? version, + $50.Timestamp? updateTime, + $50.Timestamp? createTime, }) { - final _result = create(); + final $result = create(); if (entity != null) { - _result.entity = entity; + $result.entity = entity; } if (cursor != null) { - _result.cursor = cursor; + $result.cursor = cursor; } if (version != null) { - _result.version = version; + $result.version = version; } - return _result; + if (updateTime != null) { + $result.updateTime = updateTime; + } + if (createTime != null) { + $result.createTime = createTime; + } + return $result; } + EntityResult._() : super(); factory EntityResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EntityResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EntityResult', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM<$72.Entity>(1, _omitFieldNames ? '' : 'entity', + subBuilder: $72.Entity.create) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'cursor', $pb.PbFieldType.OY) + ..aInt64(4, _omitFieldNames ? '' : 'version') + ..aOM<$50.Timestamp>(5, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(6, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.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') @@ -73,8 +81,10 @@ class EntityResult extends $pb.GeneratedMessage { 'Will be removed in next major version') EntityResult copyWith(void Function(EntityResult) updates) => super.copyWith((message) => updates(message as EntityResult)) - as EntityResult; // ignore: deprecated_member_use + as EntityResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EntityResult create() => EntityResult._(); EntityResult createEmptyInstance() => create(); @@ -85,10 +95,11 @@ class EntityResult extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EntityResult? _defaultInstance; + /// The resulting entity. @$pb.TagNumber(1) - $0.Entity get entity => $_getN(0); + $72.Entity get entity => $_getN(0); @$pb.TagNumber(1) - set entity($0.Entity v) { + set entity($72.Entity v) { setField(1, v); } @@ -97,8 +108,10 @@ class EntityResult extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearEntity() => clearField(1); @$pb.TagNumber(1) - $0.Entity ensureEntity() => $_ensure(0); + $72.Entity ensureEntity() => $_ensure(0); + /// A cursor that points to the position after the result entity. + /// Set only when the `EntityResult` is part of a `QueryResultBatch` message. @$pb.TagNumber(3) $core.List<$core.int> get cursor => $_getN(1); @$pb.TagNumber(3) @@ -111,6 +124,15 @@ class EntityResult extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearCursor() => clearField(3); + /// The version of the entity, a strictly positive number that monotonically + /// increases with changes to the entity. + /// + /// This field is set for + /// [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. + /// + /// For [missing][google.datastore.v1.LookupResponse.missing] entities in + /// `LookupResponse`, this is the version of the snapshot that was used to look + /// up the entity, and it is always set except for eventually consistent reads. @$pb.TagNumber(4) $fixnum.Int64 get version => $_getI64(2); @$pb.TagNumber(4) @@ -122,34 +144,46 @@ class EntityResult extends $pb.GeneratedMessage { $core.bool hasVersion() => $_has(2); @$pb.TagNumber(4) void clearVersion() => clearField(4); + + /// The time at which the entity was last changed. + /// This field is set for + /// [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. + /// If this entity is missing, this field will not be set. + @$pb.TagNumber(5) + $50.Timestamp get updateTime => $_getN(3); + @$pb.TagNumber(5) + set updateTime($50.Timestamp v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasUpdateTime() => $_has(3); + @$pb.TagNumber(5) + void clearUpdateTime() => clearField(5); + @$pb.TagNumber(5) + $50.Timestamp ensureUpdateTime() => $_ensure(3); + + /// The time at which the entity was created. + /// This field is set for + /// [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. + /// If this entity is missing, this field will not be set. + @$pb.TagNumber(6) + $50.Timestamp get createTime => $_getN(4); + @$pb.TagNumber(6) + set createTime($50.Timestamp v) { + setField(6, v); + } + + @$pb.TagNumber(6) + $core.bool hasCreateTime() => $_has(4); + @$pb.TagNumber(6) + void clearCreateTime() => clearField(6); + @$pb.TagNumber(6) + $50.Timestamp ensureCreateTime() => $_ensure(4); } +/// A query for entities. class Query extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Query', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..pc( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projection', $pb.PbFieldType.PM, - subBuilder: Projection.create) - ..pc( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'kind', $pb.PbFieldType.PM, - subBuilder: KindExpression.create) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter', - subBuilder: Filter.create) - ..pc( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'order', $pb.PbFieldType.PM, - subBuilder: PropertyOrder.create) - ..pc(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'distinctOn', $pb.PbFieldType.PM, subBuilder: PropertyReference.create) - ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startCursor', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endCursor', $pb.PbFieldType.OY) - ..a<$core.int>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.O3) - ..aOM<$1.Int32Value>(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'limit', subBuilder: $1.Int32Value.create) - ..hasRequiredFields = false; - - Query._() : super(); factory Query({ $core.Iterable? projection, $core.Iterable? kind, @@ -159,44 +193,70 @@ class Query extends $pb.GeneratedMessage { $core.List<$core.int>? startCursor, $core.List<$core.int>? endCursor, $core.int? offset, - $1.Int32Value? limit, + $73.Int32Value? limit, }) { - final _result = create(); + final $result = create(); if (projection != null) { - _result.projection.addAll(projection); + $result.projection.addAll(projection); } if (kind != null) { - _result.kind.addAll(kind); + $result.kind.addAll(kind); } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } if (order != null) { - _result.order.addAll(order); + $result.order.addAll(order); } if (distinctOn != null) { - _result.distinctOn.addAll(distinctOn); + $result.distinctOn.addAll(distinctOn); } if (startCursor != null) { - _result.startCursor = startCursor; + $result.startCursor = startCursor; } if (endCursor != null) { - _result.endCursor = endCursor; + $result.endCursor = endCursor; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } if (limit != null) { - _result.limit = limit; + $result.limit = limit; } - return _result; + return $result; } + Query._() : super(); factory Query.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Query.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Query', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..pc(2, _omitFieldNames ? '' : 'projection', $pb.PbFieldType.PM, + subBuilder: Projection.create) + ..pc(3, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.PM, + subBuilder: KindExpression.create) + ..aOM(4, _omitFieldNames ? '' : 'filter', subBuilder: Filter.create) + ..pc(5, _omitFieldNames ? '' : 'order', $pb.PbFieldType.PM, + subBuilder: PropertyOrder.create) + ..pc( + 6, _omitFieldNames ? '' : 'distinctOn', $pb.PbFieldType.PM, + subBuilder: PropertyReference.create) + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'startCursor', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 8, _omitFieldNames ? '' : 'endCursor', $pb.PbFieldType.OY) + ..a<$core.int>(10, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) + ..aOM<$73.Int32Value>(12, _omitFieldNames ? '' : 'limit', + subBuilder: $73.Int32Value.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') @@ -205,9 +265,10 @@ class Query extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Query copyWith(void Function(Query) updates) => - super.copyWith((message) => updates(message as Query)) - as Query; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Query)) as Query; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Query create() => Query._(); Query createEmptyInstance() => create(); @@ -217,12 +278,16 @@ class Query extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Query? _defaultInstance; + /// The projection to return. Defaults to returning all properties. @$pb.TagNumber(2) $core.List get projection => $_getList(0); + /// The kinds to query (if empty, returns entities of all kinds). + /// Currently at most 1 kind may be specified. @$pb.TagNumber(3) $core.List get kind => $_getList(1); + /// The filter to apply. @$pb.TagNumber(4) Filter get filter => $_getN(2); @$pb.TagNumber(4) @@ -237,12 +302,25 @@ class Query extends $pb.GeneratedMessage { @$pb.TagNumber(4) Filter ensureFilter() => $_ensure(2); + /// The order to apply to the query results (if empty, order is unspecified). @$pb.TagNumber(5) $core.List get order => $_getList(3); + /// The properties to make distinct. The query results will contain the first + /// result for each distinct combination of values for the given properties + /// (if empty, all results are returned). + /// + /// Requires: + /// + /// * If `order` is specified, the set of distinct on properties must appear + /// before the non-distinct on properties in `order`. @$pb.TagNumber(6) $core.List get distinctOn => $_getList(4); + /// A starting point for the query results. Query cursors are + /// returned in query result batches and + /// [can only be used to continue the same + /// query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). @$pb.TagNumber(7) $core.List<$core.int> get startCursor => $_getN(5); @$pb.TagNumber(7) @@ -255,6 +333,10 @@ class Query extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearStartCursor() => clearField(7); + /// An ending point for the query results. Query cursors are + /// returned in query result batches and + /// [can only be used to limit the same + /// query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). @$pb.TagNumber(8) $core.List<$core.int> get endCursor => $_getN(6); @$pb.TagNumber(8) @@ -267,6 +349,8 @@ class Query extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearEndCursor() => clearField(8); + /// The number of results to skip. Applies before limit, but after all other + /// constraints. Optional. Must be >= 0 if specified. @$pb.TagNumber(10) $core.int get offset => $_getIZ(7); @$pb.TagNumber(10) @@ -274,59 +358,600 @@ class Query extends $pb.GeneratedMessage { $_setSignedInt32(7, v); } - @$pb.TagNumber(10) - $core.bool hasOffset() => $_has(7); - @$pb.TagNumber(10) - void clearOffset() => clearField(10); + @$pb.TagNumber(10) + $core.bool hasOffset() => $_has(7); + @$pb.TagNumber(10) + void clearOffset() => clearField(10); + + /// The maximum number of results to return. Applies after all other + /// constraints. Optional. + /// Unspecified is interpreted as no limit. + /// Must be >= 0 if specified. + @$pb.TagNumber(12) + $73.Int32Value get limit => $_getN(8); + @$pb.TagNumber(12) + set limit($73.Int32Value v) { + setField(12, v); + } + + @$pb.TagNumber(12) + $core.bool hasLimit() => $_has(8); + @$pb.TagNumber(12) + void clearLimit() => clearField(12); + @$pb.TagNumber(12) + $73.Int32Value ensureLimit() => $_ensure(8); +} + +/// Count of entities that match the query. +/// +/// The `COUNT(*)` aggregation function operates on the entire entity +/// so it does not require a field reference. +class AggregationQuery_Aggregation_Count extends $pb.GeneratedMessage { + factory AggregationQuery_Aggregation_Count({ + $73.Int64Value? upTo, + }) { + final $result = create(); + if (upTo != null) { + $result.upTo = upTo; + } + return $result; + } + AggregationQuery_Aggregation_Count._() : super(); + factory AggregationQuery_Aggregation_Count.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AggregationQuery_Aggregation_Count.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AggregationQuery.Aggregation.Count', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM<$73.Int64Value>(1, _omitFieldNames ? '' : 'upTo', + subBuilder: $73.Int64Value.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') + AggregationQuery_Aggregation_Count clone() => + AggregationQuery_Aggregation_Count()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AggregationQuery_Aggregation_Count copyWith( + void Function(AggregationQuery_Aggregation_Count) updates) => + super.copyWith((message) => + updates(message as AggregationQuery_Aggregation_Count)) + as AggregationQuery_Aggregation_Count; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AggregationQuery_Aggregation_Count create() => + AggregationQuery_Aggregation_Count._(); + AggregationQuery_Aggregation_Count createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AggregationQuery_Aggregation_Count getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); + static AggregationQuery_Aggregation_Count? _defaultInstance; + + /// Optional. Optional constraint on the maximum number of entities to + /// count. + /// + /// This provides a way to set an upper bound on the number of entities + /// to scan, limiting latency, and cost. + /// + /// Unspecified is interpreted as no bound. + /// + /// If a zero value is provided, a count result of zero should always be + /// expected. + /// + /// High-Level Example: + /// + /// ``` + /// AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); + /// ``` + /// + /// Requires: + /// + /// * Must be non-negative when present. + @$pb.TagNumber(1) + $73.Int64Value get upTo => $_getN(0); + @$pb.TagNumber(1) + set upTo($73.Int64Value v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasUpTo() => $_has(0); + @$pb.TagNumber(1) + void clearUpTo() => clearField(1); + @$pb.TagNumber(1) + $73.Int64Value ensureUpTo() => $_ensure(0); +} + +/// Sum of the values of the requested property. +/// +/// * Only numeric values will be aggregated. All non-numeric values +/// including `NULL` are skipped. +/// +/// * If the aggregated values contain `NaN`, returns `NaN`. Infinity math +/// follows IEEE-754 standards. +/// +/// * If the aggregated value set is empty, returns 0. +/// +/// * Returns a 64-bit integer if all aggregated numbers are integers and the +/// sum result does not overflow. Otherwise, the result is returned as a +/// double. Note that even if all the aggregated values are integers, the +/// result is returned as a double if it cannot fit within a 64-bit signed +/// integer. When this occurs, the returned value will lose precision. +/// +/// * When underflow occurs, floating-point aggregation is non-deterministic. +/// This means that running the same query repeatedly without any changes to +/// the underlying values could produce slightly different results each +/// time. In those cases, values should be stored as integers over +/// floating-point numbers. +class AggregationQuery_Aggregation_Sum extends $pb.GeneratedMessage { + factory AggregationQuery_Aggregation_Sum({ + PropertyReference? property, + }) { + final $result = create(); + if (property != null) { + $result.property = property; + } + return $result; + } + AggregationQuery_Aggregation_Sum._() : super(); + factory AggregationQuery_Aggregation_Sum.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AggregationQuery_Aggregation_Sum.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AggregationQuery.Aggregation.Sum', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'property', + subBuilder: PropertyReference.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') + AggregationQuery_Aggregation_Sum clone() => + AggregationQuery_Aggregation_Sum()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AggregationQuery_Aggregation_Sum copyWith( + void Function(AggregationQuery_Aggregation_Sum) updates) => + super.copyWith( + (message) => updates(message as AggregationQuery_Aggregation_Sum)) + as AggregationQuery_Aggregation_Sum; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AggregationQuery_Aggregation_Sum create() => + AggregationQuery_Aggregation_Sum._(); + AggregationQuery_Aggregation_Sum createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AggregationQuery_Aggregation_Sum getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); + static AggregationQuery_Aggregation_Sum? _defaultInstance; + + /// The property to aggregate on. + @$pb.TagNumber(1) + PropertyReference get property => $_getN(0); + @$pb.TagNumber(1) + set property(PropertyReference v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasProperty() => $_has(0); + @$pb.TagNumber(1) + void clearProperty() => clearField(1); + @$pb.TagNumber(1) + PropertyReference ensureProperty() => $_ensure(0); +} + +/// Average of the values of the requested property. +/// +/// * Only numeric values will be aggregated. All non-numeric values +/// including `NULL` are skipped. +/// +/// * If the aggregated values contain `NaN`, returns `NaN`. Infinity math +/// follows IEEE-754 standards. +/// +/// * If the aggregated value set is empty, returns `NULL`. +/// +/// * Always returns the result as a double. +class AggregationQuery_Aggregation_Avg extends $pb.GeneratedMessage { + factory AggregationQuery_Aggregation_Avg({ + PropertyReference? property, + }) { + final $result = create(); + if (property != null) { + $result.property = property; + } + return $result; + } + AggregationQuery_Aggregation_Avg._() : super(); + factory AggregationQuery_Aggregation_Avg.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AggregationQuery_Aggregation_Avg.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AggregationQuery.Aggregation.Avg', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'property', + subBuilder: PropertyReference.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') + AggregationQuery_Aggregation_Avg clone() => + AggregationQuery_Aggregation_Avg()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AggregationQuery_Aggregation_Avg copyWith( + void Function(AggregationQuery_Aggregation_Avg) updates) => + super.copyWith( + (message) => updates(message as AggregationQuery_Aggregation_Avg)) + as AggregationQuery_Aggregation_Avg; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AggregationQuery_Aggregation_Avg create() => + AggregationQuery_Aggregation_Avg._(); + AggregationQuery_Aggregation_Avg createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AggregationQuery_Aggregation_Avg getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); + static AggregationQuery_Aggregation_Avg? _defaultInstance; + + /// The property to aggregate on. + @$pb.TagNumber(1) + PropertyReference get property => $_getN(0); + @$pb.TagNumber(1) + set property(PropertyReference v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasProperty() => $_has(0); + @$pb.TagNumber(1) + void clearProperty() => clearField(1); + @$pb.TagNumber(1) + PropertyReference ensureProperty() => $_ensure(0); +} + +enum AggregationQuery_Aggregation_Operator { count, sum, avg, notSet } + +/// Defines an aggregation that produces a single result. +class AggregationQuery_Aggregation extends $pb.GeneratedMessage { + factory AggregationQuery_Aggregation({ + AggregationQuery_Aggregation_Count? count, + AggregationQuery_Aggregation_Sum? sum, + AggregationQuery_Aggregation_Avg? avg, + $core.String? alias, + }) { + final $result = create(); + if (count != null) { + $result.count = count; + } + if (sum != null) { + $result.sum = sum; + } + if (avg != null) { + $result.avg = avg; + } + if (alias != null) { + $result.alias = alias; + } + return $result; + } + AggregationQuery_Aggregation._() : super(); + factory AggregationQuery_Aggregation.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AggregationQuery_Aggregation.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, AggregationQuery_Aggregation_Operator> + _AggregationQuery_Aggregation_OperatorByTag = { + 1: AggregationQuery_Aggregation_Operator.count, + 2: AggregationQuery_Aggregation_Operator.sum, + 3: AggregationQuery_Aggregation_Operator.avg, + 0: AggregationQuery_Aggregation_Operator.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AggregationQuery.Aggregation', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3]) + ..aOM(1, _omitFieldNames ? '' : 'count', + subBuilder: AggregationQuery_Aggregation_Count.create) + ..aOM(2, _omitFieldNames ? '' : 'sum', + subBuilder: AggregationQuery_Aggregation_Sum.create) + ..aOM(3, _omitFieldNames ? '' : 'avg', + subBuilder: AggregationQuery_Aggregation_Avg.create) + ..aOS(7, _omitFieldNames ? '' : 'alias') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AggregationQuery_Aggregation clone() => + AggregationQuery_Aggregation()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AggregationQuery_Aggregation copyWith( + void Function(AggregationQuery_Aggregation) updates) => + super.copyWith( + (message) => updates(message as AggregationQuery_Aggregation)) + as AggregationQuery_Aggregation; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AggregationQuery_Aggregation create() => + AggregationQuery_Aggregation._(); + AggregationQuery_Aggregation createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AggregationQuery_Aggregation getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static AggregationQuery_Aggregation? _defaultInstance; + + AggregationQuery_Aggregation_Operator whichOperator() => + _AggregationQuery_Aggregation_OperatorByTag[$_whichOneof(0)]!; + void clearOperator() => clearField($_whichOneof(0)); + + /// Count aggregator. + @$pb.TagNumber(1) + AggregationQuery_Aggregation_Count get count => $_getN(0); + @$pb.TagNumber(1) + set count(AggregationQuery_Aggregation_Count v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCount() => $_has(0); + @$pb.TagNumber(1) + void clearCount() => clearField(1); + @$pb.TagNumber(1) + AggregationQuery_Aggregation_Count ensureCount() => $_ensure(0); + + /// Sum aggregator. + @$pb.TagNumber(2) + AggregationQuery_Aggregation_Sum get sum => $_getN(1); + @$pb.TagNumber(2) + set sum(AggregationQuery_Aggregation_Sum v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasSum() => $_has(1); + @$pb.TagNumber(2) + void clearSum() => clearField(2); + @$pb.TagNumber(2) + AggregationQuery_Aggregation_Sum ensureSum() => $_ensure(1); + + /// Average aggregator. + @$pb.TagNumber(3) + AggregationQuery_Aggregation_Avg get avg => $_getN(2); + @$pb.TagNumber(3) + set avg(AggregationQuery_Aggregation_Avg v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasAvg() => $_has(2); + @$pb.TagNumber(3) + void clearAvg() => clearField(3); + @$pb.TagNumber(3) + AggregationQuery_Aggregation_Avg ensureAvg() => $_ensure(2); + + /// Optional. Optional name of the property to store the result of the + /// aggregation. + /// + /// If not provided, Datastore will pick a default name following the format + /// `property_`. For example: + /// + /// ``` + /// AGGREGATE + /// COUNT_UP_TO(1) AS count_up_to_1, + /// COUNT_UP_TO(2), + /// COUNT_UP_TO(3) AS count_up_to_3, + /// COUNT(*) + /// OVER ( + /// ... + /// ); + /// ``` + /// + /// becomes: + /// + /// ``` + /// AGGREGATE + /// COUNT_UP_TO(1) AS count_up_to_1, + /// COUNT_UP_TO(2) AS property_1, + /// COUNT_UP_TO(3) AS count_up_to_3, + /// COUNT(*) AS property_2 + /// OVER ( + /// ... + /// ); + /// ``` + /// + /// Requires: + /// + /// * Must be unique across all aggregation aliases. + /// * Conform to [entity property + /// name][google.datastore.v1.Entity.properties] limitations. + @$pb.TagNumber(7) + $core.String get alias => $_getSZ(3); + @$pb.TagNumber(7) + set alias($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(7) + $core.bool hasAlias() => $_has(3); + @$pb.TagNumber(7) + void clearAlias() => clearField(7); +} + +enum AggregationQuery_QueryType { nestedQuery, notSet } + +/// Datastore query for running an aggregation over a +/// [Query][google.datastore.v1.Query]. +class AggregationQuery extends $pb.GeneratedMessage { + factory AggregationQuery({ + Query? nestedQuery, + $core.Iterable? aggregations, + }) { + final $result = create(); + if (nestedQuery != null) { + $result.nestedQuery = nestedQuery; + } + if (aggregations != null) { + $result.aggregations.addAll(aggregations); + } + return $result; + } + AggregationQuery._() : super(); + factory AggregationQuery.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AggregationQuery.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, AggregationQuery_QueryType> + _AggregationQuery_QueryTypeByTag = { + 1: AggregationQuery_QueryType.nestedQuery, + 0: AggregationQuery_QueryType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AggregationQuery', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [1]) + ..aOM(1, _omitFieldNames ? '' : 'nestedQuery', + subBuilder: Query.create) + ..pc( + 3, _omitFieldNames ? '' : 'aggregations', $pb.PbFieldType.PM, + subBuilder: AggregationQuery_Aggregation.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') + AggregationQuery clone() => AggregationQuery()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AggregationQuery copyWith(void Function(AggregationQuery) updates) => + super.copyWith((message) => updates(message as AggregationQuery)) + as AggregationQuery; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AggregationQuery create() => AggregationQuery._(); + AggregationQuery createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AggregationQuery getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static AggregationQuery? _defaultInstance; + + AggregationQuery_QueryType whichQueryType() => + _AggregationQuery_QueryTypeByTag[$_whichOneof(0)]!; + void clearQueryType() => clearField($_whichOneof(0)); - @$pb.TagNumber(12) - $1.Int32Value get limit => $_getN(8); - @$pb.TagNumber(12) - set limit($1.Int32Value v) { - setField(12, v); + /// Nested query for aggregation + @$pb.TagNumber(1) + Query get nestedQuery => $_getN(0); + @$pb.TagNumber(1) + set nestedQuery(Query v) { + setField(1, v); } - @$pb.TagNumber(12) - $core.bool hasLimit() => $_has(8); - @$pb.TagNumber(12) - void clearLimit() => clearField(12); - @$pb.TagNumber(12) - $1.Int32Value ensureLimit() => $_ensure(8); + @$pb.TagNumber(1) + $core.bool hasNestedQuery() => $_has(0); + @$pb.TagNumber(1) + void clearNestedQuery() => clearField(1); + @$pb.TagNumber(1) + Query ensureNestedQuery() => $_ensure(0); + + /// Optional. Series of aggregations to apply over the results of the + /// `nested_query`. + /// + /// Requires: + /// + /// * A minimum of one and maximum of five aggregations per query. + @$pb.TagNumber(3) + $core.List get aggregations => $_getList(1); } +/// A representation of a kind. class KindExpression extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'KindExpression', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - KindExpression._() : super(); factory KindExpression({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + KindExpression._() : super(); factory KindExpression.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory KindExpression.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'KindExpression', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -336,8 +961,10 @@ class KindExpression extends $pb.GeneratedMessage { 'Will be removed in next major version') KindExpression copyWith(void Function(KindExpression) updates) => super.copyWith((message) => updates(message as KindExpression)) - as KindExpression; // ignore: deprecated_member_use + as KindExpression; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static KindExpression create() => KindExpression._(); KindExpression createEmptyInstance() => create(); @@ -348,6 +975,7 @@ class KindExpression extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static KindExpression? _defaultInstance; + /// The name of the kind. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -361,39 +989,33 @@ class KindExpression extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// A reference to a property relative to the kind expressions. class PropertyReference extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PropertyReference', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - PropertyReference._() : super(); factory PropertyReference({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + PropertyReference._() : super(); factory PropertyReference.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PropertyReference.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PropertyReference', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -403,8 +1025,10 @@ class PropertyReference extends $pb.GeneratedMessage { 'Will be removed in next major version') PropertyReference copyWith(void Function(PropertyReference) updates) => super.copyWith((message) => updates(message as PropertyReference)) - as PropertyReference; // ignore: deprecated_member_use + as PropertyReference; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PropertyReference create() => PropertyReference._(); PropertyReference createEmptyInstance() => create(); @@ -415,6 +1039,13 @@ class PropertyReference extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static PropertyReference? _defaultInstance; + /// A reference to a property. + /// + /// Requires: + /// + /// * MUST be a dot-delimited (`.`) string of segments, where each segment + /// conforms to [entity property name][google.datastore.v1.Entity.properties] + /// limitations. @$pb.TagNumber(2) $core.String get name => $_getSZ(0); @$pb.TagNumber(2) @@ -428,40 +1059,34 @@ class PropertyReference extends $pb.GeneratedMessage { void clearName() => clearField(2); } +/// A representation of a property in a projection. class Projection extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Projection', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'property', - subBuilder: PropertyReference.create) - ..hasRequiredFields = false; - - Projection._() : super(); factory Projection({ PropertyReference? property, }) { - final _result = create(); + final $result = create(); if (property != null) { - _result.property = property; + $result.property = property; } - return _result; + return $result; } + Projection._() : super(); factory Projection.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Projection.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Projection', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'property', + subBuilder: PropertyReference.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') @@ -470,9 +1095,10 @@ class Projection extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Projection copyWith(void Function(Projection) updates) => - super.copyWith((message) => updates(message as Projection)) - as Projection; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Projection)) as Projection; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Projection create() => Projection._(); Projection createEmptyInstance() => create(); @@ -482,6 +1108,7 @@ class Projection extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Projection? _defaultInstance; + /// The property to project. @$pb.TagNumber(1) PropertyReference get property => $_getN(0); @$pb.TagNumber(1) @@ -497,50 +1124,43 @@ class Projection extends $pb.GeneratedMessage { PropertyReference ensureProperty() => $_ensure(0); } +/// The desired order for a specific property. class PropertyOrder extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PropertyOrder', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'property', - subBuilder: PropertyReference.create) - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'direction', - $pb.PbFieldType.OE, - defaultOrMaker: PropertyOrder_Direction.DIRECTION_UNSPECIFIED, - valueOf: PropertyOrder_Direction.valueOf, - enumValues: PropertyOrder_Direction.values) - ..hasRequiredFields = false; - - PropertyOrder._() : super(); factory PropertyOrder({ PropertyReference? property, PropertyOrder_Direction? direction, }) { - final _result = create(); + final $result = create(); if (property != null) { - _result.property = property; + $result.property = property; } if (direction != null) { - _result.direction = direction; + $result.direction = direction; } - return _result; + return $result; } + PropertyOrder._() : super(); factory PropertyOrder.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PropertyOrder.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PropertyOrder', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'property', + subBuilder: PropertyReference.create) + ..e( + 2, _omitFieldNames ? '' : 'direction', $pb.PbFieldType.OE, + defaultOrMaker: PropertyOrder_Direction.DIRECTION_UNSPECIFIED, + valueOf: PropertyOrder_Direction.valueOf, + enumValues: PropertyOrder_Direction.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -550,8 +1170,10 @@ class PropertyOrder extends $pb.GeneratedMessage { 'Will be removed in next major version') PropertyOrder copyWith(void Function(PropertyOrder) updates) => super.copyWith((message) => updates(message as PropertyOrder)) - as PropertyOrder; // ignore: deprecated_member_use + as PropertyOrder; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PropertyOrder create() => PropertyOrder._(); PropertyOrder createEmptyInstance() => create(); @@ -562,6 +1184,7 @@ class PropertyOrder extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static PropertyOrder? _defaultInstance; + /// The property to order by. @$pb.TagNumber(1) PropertyReference get property => $_getN(0); @$pb.TagNumber(1) @@ -576,6 +1199,7 @@ class PropertyOrder extends $pb.GeneratedMessage { @$pb.TagNumber(1) PropertyReference ensureProperty() => $_ensure(0); + /// The direction to order by. Defaults to `ASCENDING`. @$pb.TagNumber(2) PropertyOrder_Direction get direction => $_getN(1); @$pb.TagNumber(2) @@ -591,54 +1215,47 @@ class PropertyOrder extends $pb.GeneratedMessage { enum Filter_FilterType { compositeFilter, propertyFilter, notSet } +/// A holder for any type of filter. class Filter extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Filter_FilterType> _Filter_FilterTypeByTag = - { - 1: Filter_FilterType.compositeFilter, - 2: Filter_FilterType.propertyFilter, - 0: Filter_FilterType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Filter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'compositeFilter', - subBuilder: CompositeFilter.create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'propertyFilter', - subBuilder: PropertyFilter.create) - ..hasRequiredFields = false; - - Filter._() : super(); factory Filter({ CompositeFilter? compositeFilter, PropertyFilter? propertyFilter, }) { - final _result = create(); + final $result = create(); if (compositeFilter != null) { - _result.compositeFilter = compositeFilter; + $result.compositeFilter = compositeFilter; } if (propertyFilter != null) { - _result.propertyFilter = propertyFilter; + $result.propertyFilter = propertyFilter; } - return _result; + return $result; } + Filter._() : super(); factory Filter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Filter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Filter_FilterType> _Filter_FilterTypeByTag = + { + 1: Filter_FilterType.compositeFilter, + 2: Filter_FilterType.propertyFilter, + 0: Filter_FilterType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Filter', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [1, 2]) + ..aOM(1, _omitFieldNames ? '' : 'compositeFilter', + subBuilder: CompositeFilter.create) + ..aOM(2, _omitFieldNames ? '' : 'propertyFilter', + subBuilder: PropertyFilter.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') @@ -647,9 +1264,10 @@ class Filter extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Filter copyWith(void Function(Filter) updates) => - super.copyWith((message) => updates(message as Filter)) - as Filter; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Filter)) as Filter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Filter create() => Filter._(); Filter createEmptyInstance() => create(); @@ -663,6 +1281,7 @@ class Filter extends $pb.GeneratedMessage { _Filter_FilterTypeByTag[$_whichOneof(0)]!; void clearFilterType() => clearField($_whichOneof(0)); + /// A composite filter. @$pb.TagNumber(1) CompositeFilter get compositeFilter => $_getN(0); @$pb.TagNumber(1) @@ -677,6 +1296,7 @@ class Filter extends $pb.GeneratedMessage { @$pb.TagNumber(1) CompositeFilter ensureCompositeFilter() => $_ensure(0); + /// A filter on a property. @$pb.TagNumber(2) PropertyFilter get propertyFilter => $_getN(1); @$pb.TagNumber(2) @@ -692,50 +1312,43 @@ class Filter extends $pb.GeneratedMessage { PropertyFilter ensurePropertyFilter() => $_ensure(1); } +/// A filter that merges multiple other filters using the given operator. class CompositeFilter extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CompositeFilter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..e( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'op', $pb.PbFieldType.OE, - defaultOrMaker: CompositeFilter_Operator.OPERATOR_UNSPECIFIED, - valueOf: CompositeFilter_Operator.valueOf, - enumValues: CompositeFilter_Operator.values) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filters', - $pb.PbFieldType.PM, - subBuilder: Filter.create) - ..hasRequiredFields = false; - - CompositeFilter._() : super(); factory CompositeFilter({ CompositeFilter_Operator? op, $core.Iterable? filters, }) { - final _result = create(); + final $result = create(); if (op != null) { - _result.op = op; + $result.op = op; } if (filters != null) { - _result.filters.addAll(filters); + $result.filters.addAll(filters); } - return _result; + return $result; } + CompositeFilter._() : super(); factory CompositeFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CompositeFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CompositeFilter', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'op', $pb.PbFieldType.OE, + defaultOrMaker: CompositeFilter_Operator.OPERATOR_UNSPECIFIED, + valueOf: CompositeFilter_Operator.valueOf, + enumValues: CompositeFilter_Operator.values) + ..pc(2, _omitFieldNames ? '' : 'filters', $pb.PbFieldType.PM, + subBuilder: Filter.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') @@ -745,8 +1358,10 @@ class CompositeFilter extends $pb.GeneratedMessage { 'Will be removed in next major version') CompositeFilter copyWith(void Function(CompositeFilter) updates) => super.copyWith((message) => updates(message as CompositeFilter)) - as CompositeFilter; // ignore: deprecated_member_use + as CompositeFilter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CompositeFilter create() => CompositeFilter._(); CompositeFilter createEmptyInstance() => create(); @@ -757,6 +1372,7 @@ class CompositeFilter extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CompositeFilter? _defaultInstance; + /// The operator for combining multiple filters. @$pb.TagNumber(1) CompositeFilter_Operator get op => $_getN(0); @$pb.TagNumber(1) @@ -769,56 +1385,58 @@ class CompositeFilter extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearOp() => clearField(1); + /// The list of filters to combine. + /// + /// Requires: + /// + /// * At least one filter is present. @$pb.TagNumber(2) $core.List get filters => $_getList(1); } +/// A filter on a specific property. class PropertyFilter extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PropertyFilter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'property', - subBuilder: PropertyReference.create) - ..e( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'op', $pb.PbFieldType.OE, - defaultOrMaker: PropertyFilter_Operator.OPERATOR_UNSPECIFIED, - valueOf: PropertyFilter_Operator.valueOf, - enumValues: PropertyFilter_Operator.values) - ..aOM<$0.Value>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', - subBuilder: $0.Value.create) - ..hasRequiredFields = false; - - PropertyFilter._() : super(); factory PropertyFilter({ PropertyReference? property, PropertyFilter_Operator? op, - $0.Value? value, + $72.Value? value, }) { - final _result = create(); + final $result = create(); if (property != null) { - _result.property = property; + $result.property = property; } if (op != null) { - _result.op = op; + $result.op = op; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + PropertyFilter._() : super(); factory PropertyFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PropertyFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PropertyFilter', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'property', + subBuilder: PropertyReference.create) + ..e( + 2, _omitFieldNames ? '' : 'op', $pb.PbFieldType.OE, + defaultOrMaker: PropertyFilter_Operator.OPERATOR_UNSPECIFIED, + valueOf: PropertyFilter_Operator.valueOf, + enumValues: PropertyFilter_Operator.values) + ..aOM<$72.Value>(3, _omitFieldNames ? '' : 'value', + subBuilder: $72.Value.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') @@ -828,8 +1446,10 @@ class PropertyFilter extends $pb.GeneratedMessage { 'Will be removed in next major version') PropertyFilter copyWith(void Function(PropertyFilter) updates) => super.copyWith((message) => updates(message as PropertyFilter)) - as PropertyFilter; // ignore: deprecated_member_use + as PropertyFilter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PropertyFilter create() => PropertyFilter._(); PropertyFilter createEmptyInstance() => create(); @@ -840,6 +1460,7 @@ class PropertyFilter extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static PropertyFilter? _defaultInstance; + /// The property to filter by. @$pb.TagNumber(1) PropertyReference get property => $_getN(0); @$pb.TagNumber(1) @@ -854,6 +1475,7 @@ class PropertyFilter extends $pb.GeneratedMessage { @$pb.TagNumber(1) PropertyReference ensureProperty() => $_ensure(0); + /// The operator to filter by. @$pb.TagNumber(2) PropertyFilter_Operator get op => $_getN(1); @$pb.TagNumber(2) @@ -866,10 +1488,11 @@ class PropertyFilter extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOp() => clearField(2); + /// The value to compare the property to. @$pb.TagNumber(3) - $0.Value get value => $_getN(2); + $72.Value get value => $_getN(2); @$pb.TagNumber(3) - set value($0.Value v) { + set value($72.Value v) { setField(3, v); } @@ -878,69 +1501,61 @@ class PropertyFilter extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearValue() => clearField(3); @$pb.TagNumber(3) - $0.Value ensureValue() => $_ensure(2); + $72.Value ensureValue() => $_ensure(2); } +/// A [GQL +/// query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). class GqlQuery extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GqlQuery', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'queryString') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allowLiterals') - ..pc( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'positionalBindings', $pb.PbFieldType.PM, - subBuilder: GqlQueryParameter.create) - ..m<$core.String, GqlQueryParameter>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'namedBindings', - entryClassName: 'GqlQuery.NamedBindingsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: GqlQueryParameter.create, - packageName: const $pb.PackageName('google.datastore.v1')) - ..hasRequiredFields = false; - - GqlQuery._() : super(); factory GqlQuery({ $core.String? queryString, $core.bool? allowLiterals, $core.Iterable? positionalBindings, $core.Map<$core.String, GqlQueryParameter>? namedBindings, }) { - final _result = create(); + final $result = create(); if (queryString != null) { - _result.queryString = queryString; + $result.queryString = queryString; } if (allowLiterals != null) { - _result.allowLiterals = allowLiterals; + $result.allowLiterals = allowLiterals; } if (positionalBindings != null) { - _result.positionalBindings.addAll(positionalBindings); + $result.positionalBindings.addAll(positionalBindings); } if (namedBindings != null) { - _result.namedBindings.addAll(namedBindings); + $result.namedBindings.addAll(namedBindings); } - return _result; + return $result; } + GqlQuery._() : super(); factory GqlQuery.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GqlQuery.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GqlQuery', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'queryString') + ..aOB(2, _omitFieldNames ? '' : 'allowLiterals') + ..pc( + 4, _omitFieldNames ? '' : 'positionalBindings', $pb.PbFieldType.PM, + subBuilder: GqlQueryParameter.create) + ..m<$core.String, GqlQueryParameter>( + 5, _omitFieldNames ? '' : 'namedBindings', + entryClassName: 'GqlQuery.NamedBindingsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: GqlQueryParameter.create, + valueDefaultOrMaker: GqlQueryParameter.getDefault, + packageName: const $pb.PackageName('google.datastore.v1')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -949,9 +1564,10 @@ class GqlQuery extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GqlQuery copyWith(void Function(GqlQuery) updates) => - super.copyWith((message) => updates(message as GqlQuery)) - as GqlQuery; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as GqlQuery)) as GqlQuery; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GqlQuery create() => GqlQuery._(); GqlQuery createEmptyInstance() => create(); @@ -961,6 +1577,8 @@ class GqlQuery extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static GqlQuery? _defaultInstance; + /// A string of the format described + /// [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). @$pb.TagNumber(1) $core.String get queryString => $_getSZ(0); @$pb.TagNumber(1) @@ -973,6 +1591,10 @@ class GqlQuery extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearQueryString() => clearField(1); + /// When false, the query string must not contain any literals and instead must + /// bind all values. For example, + /// `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while + /// `SELECT * FROM Kind WHERE a = @value` is. @$pb.TagNumber(2) $core.bool get allowLiterals => $_getBF(1); @$pb.TagNumber(2) @@ -985,63 +1607,66 @@ class GqlQuery extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearAllowLiterals() => clearField(2); + /// Numbered binding site @1 references the first numbered parameter, + /// effectively using 1-based indexing, rather than the usual 0. + /// + /// For each binding site numbered i in `query_string`, there must be an i-th + /// numbered parameter. The inverse must also be true. @$pb.TagNumber(4) $core.List get positionalBindings => $_getList(2); + /// For each non-reserved named binding site in the query string, there must be + /// a named parameter with that name, but not necessarily the inverse. + /// + /// Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex + /// `__.*__`, and must not be `""`. @$pb.TagNumber(5) $core.Map<$core.String, GqlQueryParameter> get namedBindings => $_getMap(3); } enum GqlQueryParameter_ParameterType { value, cursor, notSet } +/// A binding parameter for a GQL query. class GqlQueryParameter extends $pb.GeneratedMessage { - static const $core.Map<$core.int, GqlQueryParameter_ParameterType> - _GqlQueryParameter_ParameterTypeByTag = { - 2: GqlQueryParameter_ParameterType.value, - 3: GqlQueryParameter_ParameterType.cursor, - 0: GqlQueryParameter_ParameterType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GqlQueryParameter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..oo(0, [2, 3]) - ..aOM<$0.Value>(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', - subBuilder: $0.Value.create) - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cursor', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - GqlQueryParameter._() : super(); factory GqlQueryParameter({ - $0.Value? value, + $72.Value? value, $core.List<$core.int>? cursor, }) { - final _result = create(); + final $result = create(); if (value != null) { - _result.value = value; + $result.value = value; } if (cursor != null) { - _result.cursor = cursor; + $result.cursor = cursor; } - return _result; + return $result; } + GqlQueryParameter._() : super(); factory GqlQueryParameter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GqlQueryParameter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, GqlQueryParameter_ParameterType> + _GqlQueryParameter_ParameterTypeByTag = { + 2: GqlQueryParameter_ParameterType.value, + 3: GqlQueryParameter_ParameterType.cursor, + 0: GqlQueryParameter_ParameterType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GqlQueryParameter', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..oo(0, [2, 3]) + ..aOM<$72.Value>(2, _omitFieldNames ? '' : 'value', + subBuilder: $72.Value.create) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'cursor', $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') @@ -1051,8 +1676,10 @@ class GqlQueryParameter extends $pb.GeneratedMessage { 'Will be removed in next major version') GqlQueryParameter copyWith(void Function(GqlQueryParameter) updates) => super.copyWith((message) => updates(message as GqlQueryParameter)) - as GqlQueryParameter; // ignore: deprecated_member_use + as GqlQueryParameter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GqlQueryParameter create() => GqlQueryParameter._(); GqlQueryParameter createEmptyInstance() => create(); @@ -1067,10 +1694,11 @@ class GqlQueryParameter extends $pb.GeneratedMessage { _GqlQueryParameter_ParameterTypeByTag[$_whichOneof(0)]!; void clearParameterType() => clearField($_whichOneof(0)); + /// A value parameter. @$pb.TagNumber(2) - $0.Value get value => $_getN(0); + $72.Value get value => $_getN(0); @$pb.TagNumber(2) - set value($0.Value v) { + set value($72.Value v) { setField(2, v); } @@ -1079,8 +1707,10 @@ class GqlQueryParameter extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearValue() => clearField(2); @$pb.TagNumber(2) - $0.Value ensureValue() => $_ensure(0); + $72.Value ensureValue() => $_ensure(0); + /// A query cursor. Query cursors are returned in query + /// result batches. @$pb.TagNumber(3) $core.List<$core.int> get cursor => $_getN(1); @$pb.TagNumber(3) @@ -1094,35 +1724,8 @@ class GqlQueryParameter extends $pb.GeneratedMessage { void clearCursor() => clearField(3); } +/// A batch of results produced by a query. class QueryResultBatch extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QueryResultBatch', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'entityResultType', - $pb.PbFieldType.OE, - defaultOrMaker: EntityResult_ResultType.RESULT_TYPE_UNSPECIFIED, - valueOf: EntityResult_ResultType.valueOf, - enumValues: EntityResult_ResultType.values) - ..pc( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityResults', $pb.PbFieldType.PM, - subBuilder: EntityResult.create) - ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'skippedCursor', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endCursor', $pb.PbFieldType.OY) - ..e(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'moreResults', $pb.PbFieldType.OE, defaultOrMaker: QueryResultBatch_MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED, valueOf: QueryResultBatch_MoreResultsType.valueOf, enumValues: QueryResultBatch_MoreResultsType.values) - ..a<$core.int>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'skippedResults', $pb.PbFieldType.O3) - ..aInt64(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'snapshotVersion') - ..hasRequiredFields = false; - - QueryResultBatch._() : super(); factory QueryResultBatch({ EntityResult_ResultType? entityResultType, $core.Iterable? entityResults, @@ -1131,37 +1734,73 @@ class QueryResultBatch extends $pb.GeneratedMessage { QueryResultBatch_MoreResultsType? moreResults, $core.int? skippedResults, $fixnum.Int64? snapshotVersion, + $50.Timestamp? readTime, }) { - final _result = create(); + final $result = create(); if (entityResultType != null) { - _result.entityResultType = entityResultType; + $result.entityResultType = entityResultType; } if (entityResults != null) { - _result.entityResults.addAll(entityResults); + $result.entityResults.addAll(entityResults); } if (skippedCursor != null) { - _result.skippedCursor = skippedCursor; + $result.skippedCursor = skippedCursor; } if (endCursor != null) { - _result.endCursor = endCursor; + $result.endCursor = endCursor; } if (moreResults != null) { - _result.moreResults = moreResults; + $result.moreResults = moreResults; } if (skippedResults != null) { - _result.skippedResults = skippedResults; + $result.skippedResults = skippedResults; } if (snapshotVersion != null) { - _result.snapshotVersion = snapshotVersion; + $result.snapshotVersion = snapshotVersion; } - return _result; + if (readTime != null) { + $result.readTime = readTime; + } + return $result; } + QueryResultBatch._() : super(); factory QueryResultBatch.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QueryResultBatch.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QueryResultBatch', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'entityResultType', $pb.PbFieldType.OE, + defaultOrMaker: EntityResult_ResultType.RESULT_TYPE_UNSPECIFIED, + valueOf: EntityResult_ResultType.valueOf, + enumValues: EntityResult_ResultType.values) + ..pc( + 2, _omitFieldNames ? '' : 'entityResults', $pb.PbFieldType.PM, + subBuilder: EntityResult.create) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'skippedCursor', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'endCursor', $pb.PbFieldType.OY) + ..e( + 5, _omitFieldNames ? '' : 'moreResults', $pb.PbFieldType.OE, + defaultOrMaker: + QueryResultBatch_MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED, + valueOf: QueryResultBatch_MoreResultsType.valueOf, + enumValues: QueryResultBatch_MoreResultsType.values) + ..a<$core.int>( + 6, _omitFieldNames ? '' : 'skippedResults', $pb.PbFieldType.O3) + ..aInt64(7, _omitFieldNames ? '' : 'snapshotVersion') + ..aOM<$50.Timestamp>(8, _omitFieldNames ? '' : 'readTime', + subBuilder: $50.Timestamp.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') @@ -1171,8 +1810,10 @@ class QueryResultBatch extends $pb.GeneratedMessage { 'Will be removed in next major version') QueryResultBatch copyWith(void Function(QueryResultBatch) updates) => super.copyWith((message) => updates(message as QueryResultBatch)) - as QueryResultBatch; // ignore: deprecated_member_use + as QueryResultBatch; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QueryResultBatch create() => QueryResultBatch._(); QueryResultBatch createEmptyInstance() => create(); @@ -1183,6 +1824,7 @@ class QueryResultBatch extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QueryResultBatch? _defaultInstance; + /// The result type for every entity in `entity_results`. @$pb.TagNumber(1) EntityResult_ResultType get entityResultType => $_getN(0); @$pb.TagNumber(1) @@ -1195,9 +1837,12 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearEntityResultType() => clearField(1); + /// The results for this batch. @$pb.TagNumber(2) $core.List get entityResults => $_getList(1); + /// A cursor that points to the position after the last skipped result. + /// Will be set when `skipped_results` != 0. @$pb.TagNumber(3) $core.List<$core.int> get skippedCursor => $_getN(2); @$pb.TagNumber(3) @@ -1210,6 +1855,7 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSkippedCursor() => clearField(3); + /// A cursor that points to the position after the last result in the batch. @$pb.TagNumber(4) $core.List<$core.int> get endCursor => $_getN(3); @$pb.TagNumber(4) @@ -1222,6 +1868,7 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearEndCursor() => clearField(4); + /// The state of the query after the current batch. @$pb.TagNumber(5) QueryResultBatch_MoreResultsType get moreResults => $_getN(4); @$pb.TagNumber(5) @@ -1234,6 +1881,7 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearMoreResults() => clearField(5); + /// The number of results skipped, typically because of an offset. @$pb.TagNumber(6) $core.int get skippedResults => $_getIZ(5); @$pb.TagNumber(6) @@ -1246,6 +1894,15 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearSkippedResults() => clearField(6); + /// The version number of the snapshot this batch was returned from. + /// This applies to the range of results from the query's `start_cursor` (or + /// the beginning of the query if no cursor was given) to this batch's + /// `end_cursor` (not the query's `end_cursor`). + /// + /// In a single transaction, subsequent query result batches for the same query + /// can have a greater snapshot version number. Each batch's snapshot version + /// is valid for all preceding batches. + /// The value will be zero for eventually consistent queries. @$pb.TagNumber(7) $fixnum.Int64 get snapshotVersion => $_getI64(6); @$pb.TagNumber(7) @@ -1257,4 +1914,32 @@ class QueryResultBatch extends $pb.GeneratedMessage { $core.bool hasSnapshotVersion() => $_has(6); @$pb.TagNumber(7) void clearSnapshotVersion() => clearField(7); + + /// Read timestamp this batch was returned from. + /// This applies to the range of results from the query's `start_cursor` (or + /// the beginning of the query if no cursor was given) to this batch's + /// `end_cursor` (not the query's `end_cursor`). + /// + /// In a single transaction, subsequent query result batches for the same query + /// can have a greater timestamp. Each batch's read timestamp + /// is valid for all preceding batches. + /// This value will not be set for eventually consistent queries in Cloud + /// Datastore. + @$pb.TagNumber(8) + $50.Timestamp get readTime => $_getN(7); + @$pb.TagNumber(8) + set readTime($50.Timestamp v) { + setField(8, v); + } + + @$pb.TagNumber(8) + $core.bool hasReadTime() => $_has(7); + @$pb.TagNumber(8) + void clearReadTime() => clearField(8); + @$pb.TagNumber(8) + $50.Timestamp ensureReadTime() => $_ensure(7); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pbenum.dart index 319f0627..7c7e67ca 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pbenum.dart @@ -1,30 +1,33 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1/query.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Specifies what data the 'entity' field contains. +/// A `ResultType` is either implied (for example, in `LookupResponse.missing` +/// from `datastore.proto`, it is always `KEY_ONLY`) or specified by context +/// (for example, in message `QueryResultBatch`, field `entity_result_type` +/// specifies a `ResultType` for all the values in field `entity_results`). class EntityResult_ResultType extends $pb.ProtobufEnum { static const EntityResult_ResultType RESULT_TYPE_UNSPECIFIED = EntityResult_ResultType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RESULT_TYPE_UNSPECIFIED'); - static const EntityResult_ResultType FULL = EntityResult_ResultType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FULL'); - static const EntityResult_ResultType PROJECTION = EntityResult_ResultType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PROJECTION'); - static const EntityResult_ResultType KEY_ONLY = EntityResult_ResultType._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'KEY_ONLY'); + 0, _omitEnumNames ? '' : 'RESULT_TYPE_UNSPECIFIED'); + static const EntityResult_ResultType FULL = + EntityResult_ResultType._(1, _omitEnumNames ? '' : 'FULL'); + static const EntityResult_ResultType PROJECTION = + EntityResult_ResultType._(2, _omitEnumNames ? '' : 'PROJECTION'); + static const EntityResult_ResultType KEY_ONLY = + EntityResult_ResultType._(3, _omitEnumNames ? '' : 'KEY_ONLY'); static const $core.List values = [ @@ -41,23 +44,15 @@ class EntityResult_ResultType extends $pb.ProtobufEnum { const EntityResult_ResultType._($core.int v, $core.String n) : super(v, n); } +/// The sort direction. class PropertyOrder_Direction extends $pb.ProtobufEnum { static const PropertyOrder_Direction DIRECTION_UNSPECIFIED = PropertyOrder_Direction._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DIRECTION_UNSPECIFIED'); - static const PropertyOrder_Direction ASCENDING = PropertyOrder_Direction._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ASCENDING'); - static const PropertyOrder_Direction DESCENDING = PropertyOrder_Direction._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DESCENDING'); + 0, _omitEnumNames ? '' : 'DIRECTION_UNSPECIFIED'); + static const PropertyOrder_Direction ASCENDING = + PropertyOrder_Direction._(1, _omitEnumNames ? '' : 'ASCENDING'); + static const PropertyOrder_Direction DESCENDING = + PropertyOrder_Direction._(2, _omitEnumNames ? '' : 'DESCENDING'); static const $core.List values = [ @@ -73,20 +68,21 @@ class PropertyOrder_Direction extends $pb.ProtobufEnum { const PropertyOrder_Direction._($core.int v, $core.String n) : super(v, n); } +/// A composite filter operator. class CompositeFilter_Operator extends $pb.ProtobufEnum { static const CompositeFilter_Operator OPERATOR_UNSPECIFIED = CompositeFilter_Operator._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OPERATOR_UNSPECIFIED'); - static const CompositeFilter_Operator AND = CompositeFilter_Operator._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'AND'); + 0, _omitEnumNames ? '' : 'OPERATOR_UNSPECIFIED'); + static const CompositeFilter_Operator AND = + CompositeFilter_Operator._(1, _omitEnumNames ? '' : 'AND'); + static const CompositeFilter_Operator OR = + CompositeFilter_Operator._(2, _omitEnumNames ? '' : 'OR'); static const $core.List values = [ OPERATOR_UNSPECIFIED, AND, + OR, ]; static final $core.Map<$core.int, CompositeFilter_Operator> _byValue = @@ -96,42 +92,30 @@ class CompositeFilter_Operator extends $pb.ProtobufEnum { const CompositeFilter_Operator._($core.int v, $core.String n) : super(v, n); } +/// A property filter operator. class PropertyFilter_Operator extends $pb.ProtobufEnum { static const PropertyFilter_Operator OPERATOR_UNSPECIFIED = PropertyFilter_Operator._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OPERATOR_UNSPECIFIED'); - static const PropertyFilter_Operator LESS_THAN = PropertyFilter_Operator._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LESS_THAN'); + 0, _omitEnumNames ? '' : 'OPERATOR_UNSPECIFIED'); + static const PropertyFilter_Operator LESS_THAN = + PropertyFilter_Operator._(1, _omitEnumNames ? '' : 'LESS_THAN'); static const PropertyFilter_Operator LESS_THAN_OR_EQUAL = - PropertyFilter_Operator._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LESS_THAN_OR_EQUAL'); - static const PropertyFilter_Operator GREATER_THAN = PropertyFilter_Operator._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'GREATER_THAN'); + PropertyFilter_Operator._(2, _omitEnumNames ? '' : 'LESS_THAN_OR_EQUAL'); + static const PropertyFilter_Operator GREATER_THAN = + PropertyFilter_Operator._(3, _omitEnumNames ? '' : 'GREATER_THAN'); static const PropertyFilter_Operator GREATER_THAN_OR_EQUAL = PropertyFilter_Operator._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'GREATER_THAN_OR_EQUAL'); - static const PropertyFilter_Operator EQUAL = PropertyFilter_Operator._( - 5, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'EQUAL'); - static const PropertyFilter_Operator HAS_ANCESTOR = PropertyFilter_Operator._( - 11, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'HAS_ANCESTOR'); + 4, _omitEnumNames ? '' : 'GREATER_THAN_OR_EQUAL'); + static const PropertyFilter_Operator EQUAL = + PropertyFilter_Operator._(5, _omitEnumNames ? '' : 'EQUAL'); + static const PropertyFilter_Operator IN = + PropertyFilter_Operator._(6, _omitEnumNames ? '' : 'IN'); + static const PropertyFilter_Operator NOT_EQUAL = + PropertyFilter_Operator._(9, _omitEnumNames ? '' : 'NOT_EQUAL'); + static const PropertyFilter_Operator HAS_ANCESTOR = + PropertyFilter_Operator._(11, _omitEnumNames ? '' : 'HAS_ANCESTOR'); + static const PropertyFilter_Operator NOT_IN = + PropertyFilter_Operator._(13, _omitEnumNames ? '' : 'NOT_IN'); static const $core.List values = [ @@ -141,7 +125,10 @@ class PropertyFilter_Operator extends $pb.ProtobufEnum { GREATER_THAN, GREATER_THAN_OR_EQUAL, EQUAL, + IN, + NOT_EQUAL, HAS_ANCESTOR, + NOT_IN, ]; static final $core.Map<$core.int, PropertyFilter_Operator> _byValue = @@ -151,37 +138,23 @@ class PropertyFilter_Operator extends $pb.ProtobufEnum { const PropertyFilter_Operator._($core.int v, $core.String n) : super(v, n); } +/// The possible values for the `more_results` field. class QueryResultBatch_MoreResultsType extends $pb.ProtobufEnum { static const QueryResultBatch_MoreResultsType MORE_RESULTS_TYPE_UNSPECIFIED = QueryResultBatch_MoreResultsType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MORE_RESULTS_TYPE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'MORE_RESULTS_TYPE_UNSPECIFIED'); static const QueryResultBatch_MoreResultsType NOT_FINISHED = QueryResultBatch_MoreResultsType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NOT_FINISHED'); + 1, _omitEnumNames ? '' : 'NOT_FINISHED'); static const QueryResultBatch_MoreResultsType MORE_RESULTS_AFTER_LIMIT = QueryResultBatch_MoreResultsType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MORE_RESULTS_AFTER_LIMIT'); + 2, _omitEnumNames ? '' : 'MORE_RESULTS_AFTER_LIMIT'); static const QueryResultBatch_MoreResultsType MORE_RESULTS_AFTER_CURSOR = QueryResultBatch_MoreResultsType._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MORE_RESULTS_AFTER_CURSOR'); + 4, _omitEnumNames ? '' : 'MORE_RESULTS_AFTER_CURSOR'); static const QueryResultBatch_MoreResultsType NO_MORE_RESULTS = QueryResultBatch_MoreResultsType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NO_MORE_RESULTS'); + 3, _omitEnumNames ? '' : 'NO_MORE_RESULTS'); static const $core.List values = [ @@ -200,3 +173,5 @@ class QueryResultBatch_MoreResultsType extends $pb.ProtobufEnum { const QueryResultBatch_MoreResultsType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pbjson.dart index c8dd3aa2..8cefd7d9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1/query.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 entityResultDescriptor instead') @@ -22,6 +26,22 @@ const EntityResult$json = { '10': 'entity' }, {'1': 'version', '3': 4, '4': 1, '5': 3, '10': 'version'}, + { + '1': 'create_time', + '3': 6, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'createTime' + }, + { + '1': 'update_time', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'updateTime' + }, {'1': 'cursor', '3': 3, '4': 1, '5': 12, '10': 'cursor'}, ], '4': [EntityResult_ResultType$json], @@ -40,7 +60,13 @@ const EntityResult_ResultType$json = { /// Descriptor for `EntityResult`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List entityResultDescriptor = $convert.base64Decode( - 'CgxFbnRpdHlSZXN1bHQSMwoGZW50aXR5GAEgASgLMhsuZ29vZ2xlLmRhdGFzdG9yZS52MS5FbnRpdHlSBmVudGl0eRIYCgd2ZXJzaW9uGAQgASgDUgd2ZXJzaW9uEhYKBmN1cnNvchgDIAEoDFIGY3Vyc29yIlEKClJlc3VsdFR5cGUSGwoXUkVTVUxUX1RZUEVfVU5TUEVDSUZJRUQQABIICgRGVUxMEAESDgoKUFJPSkVDVElPThACEgwKCEtFWV9PTkxZEAM='); + 'CgxFbnRpdHlSZXN1bHQSMwoGZW50aXR5GAEgASgLMhsuZ29vZ2xlLmRhdGFzdG9yZS52MS5Fbn' + 'RpdHlSBmVudGl0eRIYCgd2ZXJzaW9uGAQgASgDUgd2ZXJzaW9uEjsKC2NyZWF0ZV90aW1lGAYg' + 'ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIKY3JlYXRlVGltZRI7Cgt1cGRhdGVfdG' + 'ltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCnVwZGF0ZVRpbWUSFgoGY3Vy' + 'c29yGAMgASgMUgZjdXJzb3IiUQoKUmVzdWx0VHlwZRIbChdSRVNVTFRfVFlQRV9VTlNQRUNJRk' + 'lFRBAAEggKBEZVTEwQARIOCgpQUk9KRUNUSU9OEAISDAoIS0VZX09OTFkQAw=='); + @$core.Deprecated('Use queryDescriptor instead') const Query$json = { '1': 'Query', @@ -101,7 +127,150 @@ const Query$json = { /// Descriptor for `Query`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List queryDescriptor = $convert.base64Decode( - 'CgVRdWVyeRI/Cgpwcm9qZWN0aW9uGAIgAygLMh8uZ29vZ2xlLmRhdGFzdG9yZS52MS5Qcm9qZWN0aW9uUgpwcm9qZWN0aW9uEjcKBGtpbmQYAyADKAsyIy5nb29nbGUuZGF0YXN0b3JlLnYxLktpbmRFeHByZXNzaW9uUgRraW5kEjMKBmZpbHRlchgEIAEoCzIbLmdvb2dsZS5kYXRhc3RvcmUudjEuRmlsdGVyUgZmaWx0ZXISOAoFb3JkZXIYBSADKAsyIi5nb29nbGUuZGF0YXN0b3JlLnYxLlByb3BlcnR5T3JkZXJSBW9yZGVyEkcKC2Rpc3RpbmN0X29uGAYgAygLMiYuZ29vZ2xlLmRhdGFzdG9yZS52MS5Qcm9wZXJ0eVJlZmVyZW5jZVIKZGlzdGluY3RPbhIhCgxzdGFydF9jdXJzb3IYByABKAxSC3N0YXJ0Q3Vyc29yEh0KCmVuZF9jdXJzb3IYCCABKAxSCWVuZEN1cnNvchIWCgZvZmZzZXQYCiABKAVSBm9mZnNldBIxCgVsaW1pdBgMIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlUgVsaW1pdA=='); + 'CgVRdWVyeRI/Cgpwcm9qZWN0aW9uGAIgAygLMh8uZ29vZ2xlLmRhdGFzdG9yZS52MS5Qcm9qZW' + 'N0aW9uUgpwcm9qZWN0aW9uEjcKBGtpbmQYAyADKAsyIy5nb29nbGUuZGF0YXN0b3JlLnYxLktp' + 'bmRFeHByZXNzaW9uUgRraW5kEjMKBmZpbHRlchgEIAEoCzIbLmdvb2dsZS5kYXRhc3RvcmUudj' + 'EuRmlsdGVyUgZmaWx0ZXISOAoFb3JkZXIYBSADKAsyIi5nb29nbGUuZGF0YXN0b3JlLnYxLlBy' + 'b3BlcnR5T3JkZXJSBW9yZGVyEkcKC2Rpc3RpbmN0X29uGAYgAygLMiYuZ29vZ2xlLmRhdGFzdG' + '9yZS52MS5Qcm9wZXJ0eVJlZmVyZW5jZVIKZGlzdGluY3RPbhIhCgxzdGFydF9jdXJzb3IYByAB' + 'KAxSC3N0YXJ0Q3Vyc29yEh0KCmVuZF9jdXJzb3IYCCABKAxSCWVuZEN1cnNvchIWCgZvZmZzZX' + 'QYCiABKAVSBm9mZnNldBIxCgVsaW1pdBgMIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZh' + 'bHVlUgVsaW1pdA=='); + +@$core.Deprecated('Use aggregationQueryDescriptor instead') +const AggregationQuery$json = { + '1': 'AggregationQuery', + '2': [ + { + '1': 'nested_query', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.Query', + '9': 0, + '10': 'nestedQuery' + }, + { + '1': 'aggregations', + '3': 3, + '4': 3, + '5': 11, + '6': '.google.datastore.v1.AggregationQuery.Aggregation', + '8': {}, + '10': 'aggregations' + }, + ], + '3': [AggregationQuery_Aggregation$json], + '8': [ + {'1': 'query_type'}, + ], +}; + +@$core.Deprecated('Use aggregationQueryDescriptor instead') +const AggregationQuery_Aggregation$json = { + '1': 'Aggregation', + '2': [ + { + '1': 'count', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.AggregationQuery.Aggregation.Count', + '9': 0, + '10': 'count' + }, + { + '1': 'sum', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.AggregationQuery.Aggregation.Sum', + '9': 0, + '10': 'sum' + }, + { + '1': 'avg', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.AggregationQuery.Aggregation.Avg', + '9': 0, + '10': 'avg' + }, + {'1': 'alias', '3': 7, '4': 1, '5': 9, '8': {}, '10': 'alias'}, + ], + '3': [ + AggregationQuery_Aggregation_Count$json, + AggregationQuery_Aggregation_Sum$json, + AggregationQuery_Aggregation_Avg$json + ], + '8': [ + {'1': 'operator'}, + ], +}; + +@$core.Deprecated('Use aggregationQueryDescriptor instead') +const AggregationQuery_Aggregation_Count$json = { + '1': 'Count', + '2': [ + { + '1': 'up_to', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Int64Value', + '8': {}, + '10': 'upTo' + }, + ], +}; + +@$core.Deprecated('Use aggregationQueryDescriptor instead') +const AggregationQuery_Aggregation_Sum$json = { + '1': 'Sum', + '2': [ + { + '1': 'property', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.PropertyReference', + '10': 'property' + }, + ], +}; + +@$core.Deprecated('Use aggregationQueryDescriptor instead') +const AggregationQuery_Aggregation_Avg$json = { + '1': 'Avg', + '2': [ + { + '1': 'property', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.PropertyReference', + '10': 'property' + }, + ], +}; + +/// Descriptor for `AggregationQuery`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List aggregationQueryDescriptor = $convert.base64Decode( + 'ChBBZ2dyZWdhdGlvblF1ZXJ5Ej8KDG5lc3RlZF9xdWVyeRgBIAEoCzIaLmdvb2dsZS5kYXRhc3' + 'RvcmUudjEuUXVlcnlIAFILbmVzdGVkUXVlcnkSWgoMYWdncmVnYXRpb25zGAMgAygLMjEuZ29v' + 'Z2xlLmRhdGFzdG9yZS52MS5BZ2dyZWdhdGlvblF1ZXJ5LkFnZ3JlZ2F0aW9uQgPgQQFSDGFnZ3' + 'JlZ2F0aW9ucxrxAwoLQWdncmVnYXRpb24STwoFY291bnQYASABKAsyNy5nb29nbGUuZGF0YXN0' + 'b3JlLnYxLkFnZ3JlZ2F0aW9uUXVlcnkuQWdncmVnYXRpb24uQ291bnRIAFIFY291bnQSSQoDc3' + 'VtGAIgASgLMjUuZ29vZ2xlLmRhdGFzdG9yZS52MS5BZ2dyZWdhdGlvblF1ZXJ5LkFnZ3JlZ2F0' + 'aW9uLlN1bUgAUgNzdW0SSQoDYXZnGAMgASgLMjUuZ29vZ2xlLmRhdGFzdG9yZS52MS5BZ2dyZW' + 'dhdGlvblF1ZXJ5LkFnZ3JlZ2F0aW9uLkF2Z0gAUgNhdmcSGQoFYWxpYXMYByABKAlCA+BBAVIF' + 'YWxpYXMaPgoFQ291bnQSNQoFdXBfdG8YASABKAsyGy5nb29nbGUucHJvdG9idWYuSW50NjRWYW' + 'x1ZUID4EEBUgR1cFRvGkkKA1N1bRJCCghwcm9wZXJ0eRgBIAEoCzImLmdvb2dsZS5kYXRhc3Rv' + 'cmUudjEuUHJvcGVydHlSZWZlcmVuY2VSCHByb3BlcnR5GkkKA0F2ZxJCCghwcm9wZXJ0eRgBIA' + 'EoCzImLmdvb2dsZS5kYXRhc3RvcmUudjEuUHJvcGVydHlSZWZlcmVuY2VSCHByb3BlcnR5QgoK' + 'CG9wZXJhdG9yQgwKCnF1ZXJ5X3R5cGU='); + @$core.Deprecated('Use kindExpressionDescriptor instead') const KindExpression$json = { '1': 'KindExpression', @@ -113,6 +282,7 @@ const KindExpression$json = { /// Descriptor for `KindExpression`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List kindExpressionDescriptor = $convert.base64Decode('Cg5LaW5kRXhwcmVzc2lvbhISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use propertyReferenceDescriptor instead') const PropertyReference$json = { '1': 'PropertyReference', @@ -124,6 +294,7 @@ const PropertyReference$json = { /// Descriptor for `PropertyReference`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List propertyReferenceDescriptor = $convert .base64Decode('ChFQcm9wZXJ0eVJlZmVyZW5jZRISCgRuYW1lGAIgASgJUgRuYW1l'); + @$core.Deprecated('Use projectionDescriptor instead') const Projection$json = { '1': 'Projection', @@ -141,7 +312,9 @@ const Projection$json = { /// Descriptor for `Projection`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List projectionDescriptor = $convert.base64Decode( - 'CgpQcm9qZWN0aW9uEkIKCHByb3BlcnR5GAEgASgLMiYuZ29vZ2xlLmRhdGFzdG9yZS52MS5Qcm9wZXJ0eVJlZmVyZW5jZVIIcHJvcGVydHk='); + 'CgpQcm9qZWN0aW9uEkIKCHByb3BlcnR5GAEgASgLMiYuZ29vZ2xlLmRhdGFzdG9yZS52MS5Qcm' + '9wZXJ0eVJlZmVyZW5jZVIIcHJvcGVydHk='); + @$core.Deprecated('Use propertyOrderDescriptor instead') const PropertyOrder$json = { '1': 'PropertyOrder', @@ -178,7 +351,12 @@ const PropertyOrder_Direction$json = { /// Descriptor for `PropertyOrder`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List propertyOrderDescriptor = $convert.base64Decode( - 'Cg1Qcm9wZXJ0eU9yZGVyEkIKCHByb3BlcnR5GAEgASgLMiYuZ29vZ2xlLmRhdGFzdG9yZS52MS5Qcm9wZXJ0eVJlZmVyZW5jZVIIcHJvcGVydHkSSgoJZGlyZWN0aW9uGAIgASgOMiwuZ29vZ2xlLmRhdGFzdG9yZS52MS5Qcm9wZXJ0eU9yZGVyLkRpcmVjdGlvblIJZGlyZWN0aW9uIkUKCURpcmVjdGlvbhIZChVESVJFQ1RJT05fVU5TUEVDSUZJRUQQABINCglBU0NFTkRJTkcQARIOCgpERVNDRU5ESU5HEAI='); + 'Cg1Qcm9wZXJ0eU9yZGVyEkIKCHByb3BlcnR5GAEgASgLMiYuZ29vZ2xlLmRhdGFzdG9yZS52MS' + '5Qcm9wZXJ0eVJlZmVyZW5jZVIIcHJvcGVydHkSSgoJZGlyZWN0aW9uGAIgASgOMiwuZ29vZ2xl' + 'LmRhdGFzdG9yZS52MS5Qcm9wZXJ0eU9yZGVyLkRpcmVjdGlvblIJZGlyZWN0aW9uIkUKCURpcm' + 'VjdGlvbhIZChVESVJFQ1RJT05fVU5TUEVDSUZJRUQQABINCglBU0NFTkRJTkcQARIOCgpERVND' + 'RU5ESU5HEAI='); + @$core.Deprecated('Use filterDescriptor instead') const Filter$json = { '1': 'Filter', @@ -209,7 +387,11 @@ const Filter$json = { /// Descriptor for `Filter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List filterDescriptor = $convert.base64Decode( - 'CgZGaWx0ZXISUQoQY29tcG9zaXRlX2ZpbHRlchgBIAEoCzIkLmdvb2dsZS5kYXRhc3RvcmUudjEuQ29tcG9zaXRlRmlsdGVySABSD2NvbXBvc2l0ZUZpbHRlchJOCg9wcm9wZXJ0eV9maWx0ZXIYAiABKAsyIy5nb29nbGUuZGF0YXN0b3JlLnYxLlByb3BlcnR5RmlsdGVySABSDnByb3BlcnR5RmlsdGVyQg0KC2ZpbHRlcl90eXBl'); + 'CgZGaWx0ZXISUQoQY29tcG9zaXRlX2ZpbHRlchgBIAEoCzIkLmdvb2dsZS5kYXRhc3RvcmUudj' + 'EuQ29tcG9zaXRlRmlsdGVySABSD2NvbXBvc2l0ZUZpbHRlchJOCg9wcm9wZXJ0eV9maWx0ZXIY' + 'AiABKAsyIy5nb29nbGUuZGF0YXN0b3JlLnYxLlByb3BlcnR5RmlsdGVySABSDnByb3BlcnR5Rm' + 'lsdGVyQg0KC2ZpbHRlcl90eXBl'); + @$core.Deprecated('Use compositeFilterDescriptor instead') const CompositeFilter$json = { '1': 'CompositeFilter', @@ -240,12 +422,17 @@ const CompositeFilter_Operator$json = { '2': [ {'1': 'OPERATOR_UNSPECIFIED', '2': 0}, {'1': 'AND', '2': 1}, + {'1': 'OR', '2': 2}, ], }; /// Descriptor for `CompositeFilter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List compositeFilterDescriptor = $convert.base64Decode( - 'Cg9Db21wb3NpdGVGaWx0ZXISPQoCb3AYASABKA4yLS5nb29nbGUuZGF0YXN0b3JlLnYxLkNvbXBvc2l0ZUZpbHRlci5PcGVyYXRvclICb3ASNQoHZmlsdGVycxgCIAMoCzIbLmdvb2dsZS5kYXRhc3RvcmUudjEuRmlsdGVyUgdmaWx0ZXJzIi0KCE9wZXJhdG9yEhgKFE9QRVJBVE9SX1VOU1BFQ0lGSUVEEAASBwoDQU5EEAE='); + 'Cg9Db21wb3NpdGVGaWx0ZXISPQoCb3AYASABKA4yLS5nb29nbGUuZGF0YXN0b3JlLnYxLkNvbX' + 'Bvc2l0ZUZpbHRlci5PcGVyYXRvclICb3ASNQoHZmlsdGVycxgCIAMoCzIbLmdvb2dsZS5kYXRh' + 'c3RvcmUudjEuRmlsdGVyUgdmaWx0ZXJzIjUKCE9wZXJhdG9yEhgKFE9QRVJBVE9SX1VOU1BFQ0' + 'lGSUVEEAASBwoDQU5EEAESBgoCT1IQAg=='); + @$core.Deprecated('Use propertyFilterDescriptor instead') const PropertyFilter$json = { '1': 'PropertyFilter', @@ -288,13 +475,23 @@ const PropertyFilter_Operator$json = { {'1': 'GREATER_THAN', '2': 3}, {'1': 'GREATER_THAN_OR_EQUAL', '2': 4}, {'1': 'EQUAL', '2': 5}, + {'1': 'IN', '2': 6}, + {'1': 'NOT_EQUAL', '2': 9}, {'1': 'HAS_ANCESTOR', '2': 11}, + {'1': 'NOT_IN', '2': 13}, ], }; /// Descriptor for `PropertyFilter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List propertyFilterDescriptor = $convert.base64Decode( - 'Cg5Qcm9wZXJ0eUZpbHRlchJCCghwcm9wZXJ0eRgBIAEoCzImLmdvb2dsZS5kYXRhc3RvcmUudjEuUHJvcGVydHlSZWZlcmVuY2VSCHByb3BlcnR5EjwKAm9wGAIgASgOMiwuZ29vZ2xlLmRhdGFzdG9yZS52MS5Qcm9wZXJ0eUZpbHRlci5PcGVyYXRvclICb3ASMAoFdmFsdWUYAyABKAsyGi5nb29nbGUuZGF0YXN0b3JlLnYxLlZhbHVlUgV2YWx1ZSKVAQoIT3BlcmF0b3ISGAoUT1BFUkFUT1JfVU5TUEVDSUZJRUQQABINCglMRVNTX1RIQU4QARIWChJMRVNTX1RIQU5fT1JfRVFVQUwQAhIQCgxHUkVBVEVSX1RIQU4QAxIZChVHUkVBVEVSX1RIQU5fT1JfRVFVQUwQBBIJCgVFUVVBTBAFEhAKDEhBU19BTkNFU1RPUhAL'); + 'Cg5Qcm9wZXJ0eUZpbHRlchJCCghwcm9wZXJ0eRgBIAEoCzImLmdvb2dsZS5kYXRhc3RvcmUudj' + 'EuUHJvcGVydHlSZWZlcmVuY2VSCHByb3BlcnR5EjwKAm9wGAIgASgOMiwuZ29vZ2xlLmRhdGFz' + 'dG9yZS52MS5Qcm9wZXJ0eUZpbHRlci5PcGVyYXRvclICb3ASMAoFdmFsdWUYAyABKAsyGi5nb2' + '9nbGUuZGF0YXN0b3JlLnYxLlZhbHVlUgV2YWx1ZSK4AQoIT3BlcmF0b3ISGAoUT1BFUkFUT1Jf' + 'VU5TUEVDSUZJRUQQABINCglMRVNTX1RIQU4QARIWChJMRVNTX1RIQU5fT1JfRVFVQUwQAhIQCg' + 'xHUkVBVEVSX1RIQU4QAxIZChVHUkVBVEVSX1RIQU5fT1JfRVFVQUwQBBIJCgVFUVVBTBAFEgYK' + 'AklOEAYSDQoJTk9UX0VRVUFMEAkSEAoMSEFTX0FOQ0VTVE9SEAsSCgoGTk9UX0lOEA0='); + @$core.Deprecated('Use gqlQueryDescriptor instead') const GqlQuery$json = { '1': 'GqlQuery', @@ -340,7 +537,14 @@ const GqlQuery_NamedBindingsEntry$json = { /// Descriptor for `GqlQuery`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List gqlQueryDescriptor = $convert.base64Decode( - 'CghHcWxRdWVyeRIhCgxxdWVyeV9zdHJpbmcYASABKAlSC3F1ZXJ5U3RyaW5nEiUKDmFsbG93X2xpdGVyYWxzGAIgASgIUg1hbGxvd0xpdGVyYWxzElcKDm5hbWVkX2JpbmRpbmdzGAUgAygLMjAuZ29vZ2xlLmRhdGFzdG9yZS52MS5HcWxRdWVyeS5OYW1lZEJpbmRpbmdzRW50cnlSDW5hbWVkQmluZGluZ3MSVwoTcG9zaXRpb25hbF9iaW5kaW5ncxgEIAMoCzImLmdvb2dsZS5kYXRhc3RvcmUudjEuR3FsUXVlcnlQYXJhbWV0ZXJSEnBvc2l0aW9uYWxCaW5kaW5ncxpoChJOYW1lZEJpbmRpbmdzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSPAoFdmFsdWUYAiABKAsyJi5nb29nbGUuZGF0YXN0b3JlLnYxLkdxbFF1ZXJ5UGFyYW1ldGVyUgV2YWx1ZToCOAE='); + 'CghHcWxRdWVyeRIhCgxxdWVyeV9zdHJpbmcYASABKAlSC3F1ZXJ5U3RyaW5nEiUKDmFsbG93X2' + 'xpdGVyYWxzGAIgASgIUg1hbGxvd0xpdGVyYWxzElcKDm5hbWVkX2JpbmRpbmdzGAUgAygLMjAu' + 'Z29vZ2xlLmRhdGFzdG9yZS52MS5HcWxRdWVyeS5OYW1lZEJpbmRpbmdzRW50cnlSDW5hbWVkQm' + 'luZGluZ3MSVwoTcG9zaXRpb25hbF9iaW5kaW5ncxgEIAMoCzImLmdvb2dsZS5kYXRhc3RvcmUu' + 'djEuR3FsUXVlcnlQYXJhbWV0ZXJSEnBvc2l0aW9uYWxCaW5kaW5ncxpoChJOYW1lZEJpbmRpbm' + 'dzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSPAoFdmFsdWUYAiABKAsyJi5nb29nbGUuZGF0YXN0' + 'b3JlLnYxLkdxbFF1ZXJ5UGFyYW1ldGVyUgV2YWx1ZToCOAE='); + @$core.Deprecated('Use gqlQueryParameterDescriptor instead') const GqlQueryParameter$json = { '1': 'GqlQueryParameter', @@ -363,7 +567,10 @@ const GqlQueryParameter$json = { /// Descriptor for `GqlQueryParameter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List gqlQueryParameterDescriptor = $convert.base64Decode( - 'ChFHcWxRdWVyeVBhcmFtZXRlchIyCgV2YWx1ZRgCIAEoCzIaLmdvb2dsZS5kYXRhc3RvcmUudjEuVmFsdWVIAFIFdmFsdWUSGAoGY3Vyc29yGAMgASgMSABSBmN1cnNvckIQCg5wYXJhbWV0ZXJfdHlwZQ=='); + 'ChFHcWxRdWVyeVBhcmFtZXRlchIyCgV2YWx1ZRgCIAEoCzIaLmdvb2dsZS5kYXRhc3RvcmUudj' + 'EuVmFsdWVIAFIFdmFsdWUSGAoGY3Vyc29yGAMgASgMSABSBmN1cnNvckIQCg5wYXJhbWV0ZXJf' + 'dHlwZQ=='); + @$core.Deprecated('Use queryResultBatchDescriptor instead') const QueryResultBatch$json = { '1': 'QueryResultBatch', @@ -396,6 +603,14 @@ const QueryResultBatch$json = { '10': 'moreResults' }, {'1': 'snapshot_version', '3': 7, '4': 1, '5': 3, '10': 'snapshotVersion'}, + { + '1': 'read_time', + '3': 8, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'readTime' + }, ], '4': [QueryResultBatch_MoreResultsType$json], }; @@ -414,4 +629,15 @@ const QueryResultBatch_MoreResultsType$json = { /// Descriptor for `QueryResultBatch`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List queryResultBatchDescriptor = $convert.base64Decode( - 'ChBRdWVyeVJlc3VsdEJhdGNoEicKD3NraXBwZWRfcmVzdWx0cxgGIAEoBVIOc2tpcHBlZFJlc3VsdHMSJQoOc2tpcHBlZF9jdXJzb3IYAyABKAxSDXNraXBwZWRDdXJzb3ISWgoSZW50aXR5X3Jlc3VsdF90eXBlGAEgASgOMiwuZ29vZ2xlLmRhdGFzdG9yZS52MS5FbnRpdHlSZXN1bHQuUmVzdWx0VHlwZVIQZW50aXR5UmVzdWx0VHlwZRJICg5lbnRpdHlfcmVzdWx0cxgCIAMoCzIhLmdvb2dsZS5kYXRhc3RvcmUudjEuRW50aXR5UmVzdWx0Ug1lbnRpdHlSZXN1bHRzEh0KCmVuZF9jdXJzb3IYBCABKAxSCWVuZEN1cnNvchJYCgxtb3JlX3Jlc3VsdHMYBSABKA4yNS5nb29nbGUuZGF0YXN0b3JlLnYxLlF1ZXJ5UmVzdWx0QmF0Y2guTW9yZVJlc3VsdHNUeXBlUgttb3JlUmVzdWx0cxIpChBzbmFwc2hvdF92ZXJzaW9uGAcgASgDUg9zbmFwc2hvdFZlcnNpb24imAEKD01vcmVSZXN1bHRzVHlwZRIhCh1NT1JFX1JFU1VMVFNfVFlQRV9VTlNQRUNJRklFRBAAEhAKDE5PVF9GSU5JU0hFRBABEhwKGE1PUkVfUkVTVUxUU19BRlRFUl9MSU1JVBACEh0KGU1PUkVfUkVTVUxUU19BRlRFUl9DVVJTT1IQBBITCg9OT19NT1JFX1JFU1VMVFMQAw=='); + 'ChBRdWVyeVJlc3VsdEJhdGNoEicKD3NraXBwZWRfcmVzdWx0cxgGIAEoBVIOc2tpcHBlZFJlc3' + 'VsdHMSJQoOc2tpcHBlZF9jdXJzb3IYAyABKAxSDXNraXBwZWRDdXJzb3ISWgoSZW50aXR5X3Jl' + 'c3VsdF90eXBlGAEgASgOMiwuZ29vZ2xlLmRhdGFzdG9yZS52MS5FbnRpdHlSZXN1bHQuUmVzdW' + 'x0VHlwZVIQZW50aXR5UmVzdWx0VHlwZRJICg5lbnRpdHlfcmVzdWx0cxgCIAMoCzIhLmdvb2ds' + 'ZS5kYXRhc3RvcmUudjEuRW50aXR5UmVzdWx0Ug1lbnRpdHlSZXN1bHRzEh0KCmVuZF9jdXJzb3' + 'IYBCABKAxSCWVuZEN1cnNvchJYCgxtb3JlX3Jlc3VsdHMYBSABKA4yNS5nb29nbGUuZGF0YXN0' + 'b3JlLnYxLlF1ZXJ5UmVzdWx0QmF0Y2guTW9yZVJlc3VsdHNUeXBlUgttb3JlUmVzdWx0cxIpCh' + 'BzbmFwc2hvdF92ZXJzaW9uGAcgASgDUg9zbmFwc2hvdFZlcnNpb24SNwoJcmVhZF90aW1lGAgg' + 'ASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIIcmVhZFRpbWUimAEKD01vcmVSZXN1bH' + 'RzVHlwZRIhCh1NT1JFX1JFU1VMVFNfVFlQRV9VTlNQRUNJRklFRBAAEhAKDE5PVF9GSU5JU0hF' + 'RBABEhwKGE1PUkVfUkVTVUxUU19BRlRFUl9MSU1JVBACEh0KGU1PUkVfUkVTVUxUU19BRlRFUl' + '9DVVJTT1IQBBITCg9OT19NT1JFX1JFU1VMVFMQAw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query_profile.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query_profile.pb.dart new file mode 100644 index 00000000..7f61c937 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query_profile.pb.dart @@ -0,0 +1,378 @@ +// +// Generated code. Do not modify. +// source: google/datastore/v1/query_profile.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; +import 'package:protobuf/protobuf.dart' as $pb; + +import '../../protobuf/duration.pb.dart' as $51; +import '../../protobuf/struct.pb.dart' as $48; + +/// Explain options for the query. +class ExplainOptions extends $pb.GeneratedMessage { + factory ExplainOptions({ + $core.bool? analyze, + }) { + final $result = create(); + if (analyze != null) { + $result.analyze = analyze; + } + return $result; + } + ExplainOptions._() : super(); + factory ExplainOptions.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ExplainOptions.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExplainOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'analyze') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ExplainOptions clone() => ExplainOptions()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ExplainOptions copyWith(void Function(ExplainOptions) updates) => + super.copyWith((message) => updates(message as ExplainOptions)) + as ExplainOptions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ExplainOptions create() => ExplainOptions._(); + ExplainOptions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ExplainOptions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ExplainOptions? _defaultInstance; + + /// Optional. Whether to execute this query. + /// + /// When false (the default), the query will be planned, returning only + /// metrics from the planning stages. + /// + /// When true, the query will be planned and executed, returning the full + /// query results along with both planning and execution stage metrics. + @$pb.TagNumber(1) + $core.bool get analyze => $_getBF(0); + @$pb.TagNumber(1) + set analyze($core.bool v) { + $_setBool(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasAnalyze() => $_has(0); + @$pb.TagNumber(1) + void clearAnalyze() => clearField(1); +} + +/// Explain metrics for the query. +class ExplainMetrics extends $pb.GeneratedMessage { + factory ExplainMetrics({ + PlanSummary? planSummary, + ExecutionStats? executionStats, + }) { + final $result = create(); + if (planSummary != null) { + $result.planSummary = planSummary; + } + if (executionStats != null) { + $result.executionStats = executionStats; + } + return $result; + } + ExplainMetrics._() : super(); + factory ExplainMetrics.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ExplainMetrics.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExplainMetrics', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'planSummary', + subBuilder: PlanSummary.create) + ..aOM(2, _omitFieldNames ? '' : 'executionStats', + subBuilder: ExecutionStats.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') + ExplainMetrics clone() => ExplainMetrics()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ExplainMetrics copyWith(void Function(ExplainMetrics) updates) => + super.copyWith((message) => updates(message as ExplainMetrics)) + as ExplainMetrics; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ExplainMetrics create() => ExplainMetrics._(); + ExplainMetrics createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ExplainMetrics getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ExplainMetrics? _defaultInstance; + + /// Planning phase information for the query. + @$pb.TagNumber(1) + PlanSummary get planSummary => $_getN(0); + @$pb.TagNumber(1) + set planSummary(PlanSummary v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasPlanSummary() => $_has(0); + @$pb.TagNumber(1) + void clearPlanSummary() => clearField(1); + @$pb.TagNumber(1) + PlanSummary ensurePlanSummary() => $_ensure(0); + + /// Aggregated stats from the execution of the query. Only present when + /// [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] is set + /// to true. + @$pb.TagNumber(2) + ExecutionStats get executionStats => $_getN(1); + @$pb.TagNumber(2) + set executionStats(ExecutionStats v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasExecutionStats() => $_has(1); + @$pb.TagNumber(2) + void clearExecutionStats() => clearField(2); + @$pb.TagNumber(2) + ExecutionStats ensureExecutionStats() => $_ensure(1); +} + +/// Planning phase information for the query. +class PlanSummary extends $pb.GeneratedMessage { + factory PlanSummary({ + $core.Iterable<$48.Struct>? indexesUsed, + }) { + final $result = create(); + if (indexesUsed != null) { + $result.indexesUsed.addAll(indexesUsed); + } + return $result; + } + PlanSummary._() : super(); + factory PlanSummary.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PlanSummary.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PlanSummary', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..pc<$48.Struct>( + 1, _omitFieldNames ? '' : 'indexesUsed', $pb.PbFieldType.PM, + subBuilder: $48.Struct.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') + PlanSummary clone() => PlanSummary()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PlanSummary copyWith(void Function(PlanSummary) updates) => + super.copyWith((message) => updates(message as PlanSummary)) + as PlanSummary; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PlanSummary create() => PlanSummary._(); + PlanSummary createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PlanSummary getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PlanSummary? _defaultInstance; + + /// The indexes selected for the query. For example: + /// [ + /// {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, + /// {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} + /// ] + @$pb.TagNumber(1) + $core.List<$48.Struct> get indexesUsed => $_getList(0); +} + +/// Execution statistics for the query. +class ExecutionStats extends $pb.GeneratedMessage { + factory ExecutionStats({ + $fixnum.Int64? resultsReturned, + $51.Duration? executionDuration, + $fixnum.Int64? readOperations, + $48.Struct? debugStats, + }) { + final $result = create(); + if (resultsReturned != null) { + $result.resultsReturned = resultsReturned; + } + if (executionDuration != null) { + $result.executionDuration = executionDuration; + } + if (readOperations != null) { + $result.readOperations = readOperations; + } + if (debugStats != null) { + $result.debugStats = debugStats; + } + return $result; + } + ExecutionStats._() : super(); + factory ExecutionStats.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ExecutionStats.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExecutionStats', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.datastore.v1'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'resultsReturned') + ..aOM<$51.Duration>(3, _omitFieldNames ? '' : 'executionDuration', + subBuilder: $51.Duration.create) + ..aInt64(4, _omitFieldNames ? '' : 'readOperations') + ..aOM<$48.Struct>(5, _omitFieldNames ? '' : 'debugStats', + subBuilder: $48.Struct.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') + ExecutionStats clone() => ExecutionStats()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ExecutionStats copyWith(void Function(ExecutionStats) updates) => + super.copyWith((message) => updates(message as ExecutionStats)) + as ExecutionStats; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ExecutionStats create() => ExecutionStats._(); + ExecutionStats createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ExecutionStats getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ExecutionStats? _defaultInstance; + + /// Total number of results returned, including documents, projections, + /// aggregation results, keys. + @$pb.TagNumber(1) + $fixnum.Int64 get resultsReturned => $_getI64(0); + @$pb.TagNumber(1) + set resultsReturned($fixnum.Int64 v) { + $_setInt64(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasResultsReturned() => $_has(0); + @$pb.TagNumber(1) + void clearResultsReturned() => clearField(1); + + /// Total time to execute the query in the backend. + @$pb.TagNumber(3) + $51.Duration get executionDuration => $_getN(1); + @$pb.TagNumber(3) + set executionDuration($51.Duration v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasExecutionDuration() => $_has(1); + @$pb.TagNumber(3) + void clearExecutionDuration() => clearField(3); + @$pb.TagNumber(3) + $51.Duration ensureExecutionDuration() => $_ensure(1); + + /// Total billable read operations. + @$pb.TagNumber(4) + $fixnum.Int64 get readOperations => $_getI64(2); + @$pb.TagNumber(4) + set readOperations($fixnum.Int64 v) { + $_setInt64(2, v); + } + + @$pb.TagNumber(4) + $core.bool hasReadOperations() => $_has(2); + @$pb.TagNumber(4) + void clearReadOperations() => clearField(4); + + /// Debugging statistics from the execution of the query. Note that the + /// debugging stats are subject to change as Firestore evolves. It could + /// include: + /// { + /// "indexes_entries_scanned": "1000", + /// "documents_scanned": "20", + /// "billing_details" : { + /// "documents_billable": "20", + /// "index_entries_billable": "1000", + /// "min_query_cost": "0" + /// } + /// } + @$pb.TagNumber(5) + $48.Struct get debugStats => $_getN(3); + @$pb.TagNumber(5) + set debugStats($48.Struct v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasDebugStats() => $_has(3); + @$pb.TagNumber(5) + void clearDebugStats() => clearField(5); + @$pb.TagNumber(5) + $48.Struct ensureDebugStats() => $_ensure(3); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query_profile.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query_profile.pbenum.dart new file mode 100644 index 00000000..5a318f74 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query_profile.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/datastore/v1/query_profile.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query_profile.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query_profile.pbjson.dart new file mode 100644 index 00000000..463f1efb --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1/query_profile.pbjson.dart @@ -0,0 +1,108 @@ +// +// Generated code. Do not modify. +// source: google/datastore/v1/query_profile.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 explainOptionsDescriptor instead') +const ExplainOptions$json = { + '1': 'ExplainOptions', + '2': [ + {'1': 'analyze', '3': 1, '4': 1, '5': 8, '8': {}, '10': 'analyze'}, + ], +}; + +/// Descriptor for `ExplainOptions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List explainOptionsDescriptor = $convert.base64Decode( + 'Cg5FeHBsYWluT3B0aW9ucxIdCgdhbmFseXplGAEgASgIQgPgQQFSB2FuYWx5emU='); + +@$core.Deprecated('Use explainMetricsDescriptor instead') +const ExplainMetrics$json = { + '1': 'ExplainMetrics', + '2': [ + { + '1': 'plan_summary', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.PlanSummary', + '10': 'planSummary' + }, + { + '1': 'execution_stats', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.datastore.v1.ExecutionStats', + '10': 'executionStats' + }, + ], +}; + +/// Descriptor for `ExplainMetrics`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List explainMetricsDescriptor = $convert.base64Decode( + 'Cg5FeHBsYWluTWV0cmljcxJDCgxwbGFuX3N1bW1hcnkYASABKAsyIC5nb29nbGUuZGF0YXN0b3' + 'JlLnYxLlBsYW5TdW1tYXJ5UgtwbGFuU3VtbWFyeRJMCg9leGVjdXRpb25fc3RhdHMYAiABKAsy' + 'Iy5nb29nbGUuZGF0YXN0b3JlLnYxLkV4ZWN1dGlvblN0YXRzUg5leGVjdXRpb25TdGF0cw=='); + +@$core.Deprecated('Use planSummaryDescriptor instead') +const PlanSummary$json = { + '1': 'PlanSummary', + '2': [ + { + '1': 'indexes_used', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.protobuf.Struct', + '10': 'indexesUsed' + }, + ], +}; + +/// Descriptor for `PlanSummary`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List planSummaryDescriptor = $convert.base64Decode( + 'CgtQbGFuU3VtbWFyeRI6CgxpbmRleGVzX3VzZWQYASADKAsyFy5nb29nbGUucHJvdG9idWYuU3' + 'RydWN0UgtpbmRleGVzVXNlZA=='); + +@$core.Deprecated('Use executionStatsDescriptor instead') +const ExecutionStats$json = { + '1': 'ExecutionStats', + '2': [ + {'1': 'results_returned', '3': 1, '4': 1, '5': 3, '10': 'resultsReturned'}, + { + '1': 'execution_duration', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.Duration', + '10': 'executionDuration' + }, + {'1': 'read_operations', '3': 4, '4': 1, '5': 3, '10': 'readOperations'}, + { + '1': 'debug_stats', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.protobuf.Struct', + '10': 'debugStats' + }, + ], +}; + +/// Descriptor for `ExecutionStats`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List executionStatsDescriptor = $convert.base64Decode( + 'Cg5FeGVjdXRpb25TdGF0cxIpChByZXN1bHRzX3JldHVybmVkGAEgASgDUg9yZXN1bHRzUmV0dX' + 'JuZWQSSAoSZXhlY3V0aW9uX2R1cmF0aW9uGAMgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0' + 'aW9uUhFleGVjdXRpb25EdXJhdGlvbhInCg9yZWFkX29wZXJhdGlvbnMYBCABKANSDnJlYWRPcG' + 'VyYXRpb25zEjgKC2RlYnVnX3N0YXRzGAUgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdFIK' + 'ZGVidWdTdGF0cw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pb.dart index 207e0de2..969e390a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pb.dart @@ -1,69 +1,65 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1beta3/datastore.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'entity.pb.dart' as $1; -import 'query.pb.dart' as $2; - import 'datastore.pbenum.dart'; +import 'entity.pb.dart' as $77; +import 'query.pb.dart' as $78; export 'datastore.pbenum.dart'; +/// The request for +/// [Datastore.Lookup][google.datastore.v1beta3.Datastore.Lookup]. class LookupRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LookupRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'readOptions', - subBuilder: ReadOptions.create) - ..pc<$1.Key>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keys', - $pb.PbFieldType.PM, - subBuilder: $1.Key.create) - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projectId') - ..hasRequiredFields = false; - - LookupRequest._() : super(); factory LookupRequest({ ReadOptions? readOptions, - $core.Iterable<$1.Key>? keys, + $core.Iterable<$77.Key>? keys, $core.String? projectId, }) { - final _result = create(); + final $result = create(); if (readOptions != null) { - _result.readOptions = readOptions; + $result.readOptions = readOptions; } if (keys != null) { - _result.keys.addAll(keys); + $result.keys.addAll(keys); } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } - return _result; + return $result; } + LookupRequest._() : super(); factory LookupRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LookupRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LookupRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'readOptions', + subBuilder: ReadOptions.create) + ..pc<$77.Key>(3, _omitFieldNames ? '' : 'keys', $pb.PbFieldType.PM, + subBuilder: $77.Key.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -73,8 +69,10 @@ class LookupRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') LookupRequest copyWith(void Function(LookupRequest) updates) => super.copyWith((message) => updates(message as LookupRequest)) - as LookupRequest; // ignore: deprecated_member_use + as LookupRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LookupRequest create() => LookupRequest._(); LookupRequest createEmptyInstance() => create(); @@ -85,6 +83,7 @@ class LookupRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LookupRequest? _defaultInstance; + /// The options for this lookup request. @$pb.TagNumber(1) ReadOptions get readOptions => $_getN(0); @$pb.TagNumber(1) @@ -99,9 +98,11 @@ class LookupRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) ReadOptions ensureReadOptions() => $_ensure(0); + /// Keys of entities to look up. @$pb.TagNumber(3) - $core.List<$1.Key> get keys => $_getList(1); + $core.List<$77.Key> get keys => $_getList(1); + /// The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(2); @$pb.TagNumber(8) @@ -115,50 +116,49 @@ class LookupRequest extends $pb.GeneratedMessage { void clearProjectId() => clearField(8); } +/// The response for +/// [Datastore.Lookup][google.datastore.v1beta3.Datastore.Lookup]. class LookupResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LookupResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..pc<$2.EntityResult>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'found', $pb.PbFieldType.PM, - subBuilder: $2.EntityResult.create) - ..pc<$2.EntityResult>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'missing', $pb.PbFieldType.PM, - subBuilder: $2.EntityResult.create) - ..pc<$1.Key>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'deferred', $pb.PbFieldType.PM, - subBuilder: $1.Key.create) - ..hasRequiredFields = false; - - LookupResponse._() : super(); factory LookupResponse({ - $core.Iterable<$2.EntityResult>? found, - $core.Iterable<$2.EntityResult>? missing, - $core.Iterable<$1.Key>? deferred, + $core.Iterable<$78.EntityResult>? found, + $core.Iterable<$78.EntityResult>? missing, + $core.Iterable<$77.Key>? deferred, }) { - final _result = create(); + final $result = create(); if (found != null) { - _result.found.addAll(found); + $result.found.addAll(found); } if (missing != null) { - _result.missing.addAll(missing); + $result.missing.addAll(missing); } if (deferred != null) { - _result.deferred.addAll(deferred); + $result.deferred.addAll(deferred); } - return _result; + return $result; } + LookupResponse._() : super(); factory LookupResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LookupResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LookupResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..pc<$78.EntityResult>( + 1, _omitFieldNames ? '' : 'found', $pb.PbFieldType.PM, + subBuilder: $78.EntityResult.create) + ..pc<$78.EntityResult>( + 2, _omitFieldNames ? '' : 'missing', $pb.PbFieldType.PM, + subBuilder: $78.EntityResult.create) + ..pc<$77.Key>(3, _omitFieldNames ? '' : 'deferred', $pb.PbFieldType.PM, + subBuilder: $77.Key.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') @@ -168,8 +168,10 @@ class LookupResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') LookupResponse copyWith(void Function(LookupResponse) updates) => super.copyWith((message) => updates(message as LookupResponse)) - as LookupResponse; // ignore: deprecated_member_use + as LookupResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LookupResponse create() => LookupResponse._(); LookupResponse createEmptyInstance() => create(); @@ -180,79 +182,86 @@ class LookupResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LookupResponse? _defaultInstance; + /// Entities found as `ResultType.FULL` entities. The order of results in this + /// field is undefined and has no relation to the order of the keys in the + /// input. @$pb.TagNumber(1) - $core.List<$2.EntityResult> get found => $_getList(0); + $core.List<$78.EntityResult> get found => $_getList(0); + /// Entities not found as `ResultType.KEY_ONLY` entities. The order of results + /// in this field is undefined and has no relation to the order of the keys + /// in the input. @$pb.TagNumber(2) - $core.List<$2.EntityResult> get missing => $_getList(1); + $core.List<$78.EntityResult> get missing => $_getList(1); + /// A list of keys that were not looked up due to resource constraints. The + /// order of results in this field is undefined and has no relation to the + /// order of the keys in the input. @$pb.TagNumber(3) - $core.List<$1.Key> get deferred => $_getList(2); + $core.List<$77.Key> get deferred => $_getList(2); } enum RunQueryRequest_QueryType { query, gqlQuery, notSet } +/// The request for +/// [Datastore.RunQuery][google.datastore.v1beta3.Datastore.RunQuery]. class RunQueryRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, RunQueryRequest_QueryType> - _RunQueryRequest_QueryTypeByTag = { - 3: RunQueryRequest_QueryType.query, - 7: RunQueryRequest_QueryType.gqlQuery, - 0: RunQueryRequest_QueryType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RunQueryRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..oo(0, [3, 7]) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'readOptions', - subBuilder: ReadOptions.create) - ..aOM<$1.PartitionId>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'partitionId', - subBuilder: $1.PartitionId.create) - ..aOM<$2.Query>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'query', - subBuilder: $2.Query.create) - ..aOM<$2.GqlQuery>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'gqlQuery', subBuilder: $2.GqlQuery.create) - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projectId') - ..hasRequiredFields = false; - - RunQueryRequest._() : super(); factory RunQueryRequest({ ReadOptions? readOptions, - $1.PartitionId? partitionId, - $2.Query? query, - $2.GqlQuery? gqlQuery, + $77.PartitionId? partitionId, + $78.Query? query, + $78.GqlQuery? gqlQuery, $core.String? projectId, }) { - final _result = create(); + final $result = create(); if (readOptions != null) { - _result.readOptions = readOptions; + $result.readOptions = readOptions; } if (partitionId != null) { - _result.partitionId = partitionId; + $result.partitionId = partitionId; } if (query != null) { - _result.query = query; + $result.query = query; } if (gqlQuery != null) { - _result.gqlQuery = gqlQuery; + $result.gqlQuery = gqlQuery; } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } - return _result; + return $result; } + RunQueryRequest._() : super(); factory RunQueryRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RunQueryRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, RunQueryRequest_QueryType> + _RunQueryRequest_QueryTypeByTag = { + 3: RunQueryRequest_QueryType.query, + 7: RunQueryRequest_QueryType.gqlQuery, + 0: RunQueryRequest_QueryType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RunQueryRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..oo(0, [3, 7]) + ..aOM(1, _omitFieldNames ? '' : 'readOptions', + subBuilder: ReadOptions.create) + ..aOM<$77.PartitionId>(2, _omitFieldNames ? '' : 'partitionId', + subBuilder: $77.PartitionId.create) + ..aOM<$78.Query>(3, _omitFieldNames ? '' : 'query', + subBuilder: $78.Query.create) + ..aOM<$78.GqlQuery>(7, _omitFieldNames ? '' : 'gqlQuery', + subBuilder: $78.GqlQuery.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -262,8 +271,10 @@ class RunQueryRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') RunQueryRequest copyWith(void Function(RunQueryRequest) updates) => super.copyWith((message) => updates(message as RunQueryRequest)) - as RunQueryRequest; // ignore: deprecated_member_use + as RunQueryRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RunQueryRequest create() => RunQueryRequest._(); RunQueryRequest createEmptyInstance() => create(); @@ -278,6 +289,7 @@ class RunQueryRequest extends $pb.GeneratedMessage { _RunQueryRequest_QueryTypeByTag[$_whichOneof(0)]!; void clearQueryType() => clearField($_whichOneof(0)); + /// The options for this query. @$pb.TagNumber(1) ReadOptions get readOptions => $_getN(0); @$pb.TagNumber(1) @@ -292,10 +304,14 @@ class RunQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) ReadOptions ensureReadOptions() => $_ensure(0); + /// Entities are partitioned into subsets, identified by a partition ID. + /// Queries are scoped to a single partition. + /// This partition ID is normalized with the standard default context + /// partition ID. @$pb.TagNumber(2) - $1.PartitionId get partitionId => $_getN(1); + $77.PartitionId get partitionId => $_getN(1); @$pb.TagNumber(2) - set partitionId($1.PartitionId v) { + set partitionId($77.PartitionId v) { setField(2, v); } @@ -304,12 +320,13 @@ class RunQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPartitionId() => clearField(2); @$pb.TagNumber(2) - $1.PartitionId ensurePartitionId() => $_ensure(1); + $77.PartitionId ensurePartitionId() => $_ensure(1); + /// The query to run. @$pb.TagNumber(3) - $2.Query get query => $_getN(2); + $78.Query get query => $_getN(2); @$pb.TagNumber(3) - set query($2.Query v) { + set query($78.Query v) { setField(3, v); } @@ -318,12 +335,13 @@ class RunQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearQuery() => clearField(3); @$pb.TagNumber(3) - $2.Query ensureQuery() => $_ensure(2); + $78.Query ensureQuery() => $_ensure(2); + /// The GQL query to run. @$pb.TagNumber(7) - $2.GqlQuery get gqlQuery => $_getN(3); + $78.GqlQuery get gqlQuery => $_getN(3); @$pb.TagNumber(7) - set gqlQuery($2.GqlQuery v) { + set gqlQuery($78.GqlQuery v) { setField(7, v); } @@ -332,8 +350,9 @@ class RunQueryRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearGqlQuery() => clearField(7); @$pb.TagNumber(7) - $2.GqlQuery ensureGqlQuery() => $_ensure(3); + $78.GqlQuery ensureGqlQuery() => $_ensure(3); + /// The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(4); @$pb.TagNumber(8) @@ -347,47 +366,41 @@ class RunQueryRequest extends $pb.GeneratedMessage { void clearProjectId() => clearField(8); } +/// The response for +/// [Datastore.RunQuery][google.datastore.v1beta3.Datastore.RunQuery]. class RunQueryResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RunQueryResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOM<$2.QueryResultBatch>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'batch', - subBuilder: $2.QueryResultBatch.create) - ..aOM<$2.Query>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'query', - subBuilder: $2.Query.create) - ..hasRequiredFields = false; - - RunQueryResponse._() : super(); factory RunQueryResponse({ - $2.QueryResultBatch? batch, - $2.Query? query, + $78.QueryResultBatch? batch, + $78.Query? query, }) { - final _result = create(); + final $result = create(); if (batch != null) { - _result.batch = batch; + $result.batch = batch; } if (query != null) { - _result.query = query; + $result.query = query; } - return _result; + return $result; } + RunQueryResponse._() : super(); factory RunQueryResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RunQueryResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RunQueryResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOM<$78.QueryResultBatch>(1, _omitFieldNames ? '' : 'batch', + subBuilder: $78.QueryResultBatch.create) + ..aOM<$78.Query>(2, _omitFieldNames ? '' : 'query', + subBuilder: $78.Query.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') @@ -397,8 +410,10 @@ class RunQueryResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') RunQueryResponse copyWith(void Function(RunQueryResponse) updates) => super.copyWith((message) => updates(message as RunQueryResponse)) - as RunQueryResponse; // ignore: deprecated_member_use + as RunQueryResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RunQueryResponse create() => RunQueryResponse._(); RunQueryResponse createEmptyInstance() => create(); @@ -409,10 +424,11 @@ class RunQueryResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static RunQueryResponse? _defaultInstance; + /// A batch of query results (always present). @$pb.TagNumber(1) - $2.QueryResultBatch get batch => $_getN(0); + $78.QueryResultBatch get batch => $_getN(0); @$pb.TagNumber(1) - set batch($2.QueryResultBatch v) { + set batch($78.QueryResultBatch v) { setField(1, v); } @@ -421,12 +437,13 @@ class RunQueryResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearBatch() => clearField(1); @$pb.TagNumber(1) - $2.QueryResultBatch ensureBatch() => $_ensure(0); + $78.QueryResultBatch ensureBatch() => $_ensure(0); + /// The parsed form of the `GqlQuery` from the request, if it was set. @$pb.TagNumber(2) - $2.Query get query => $_getN(1); + $78.Query get query => $_getN(1); @$pb.TagNumber(2) - set query($2.Query v) { + set query($78.Query v) { setField(2, v); } @@ -435,52 +452,43 @@ class RunQueryResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearQuery() => clearField(2); @$pb.TagNumber(2) - $2.Query ensureQuery() => $_ensure(1); + $78.Query ensureQuery() => $_ensure(1); } +/// The request for +/// [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction]. class BeginTransactionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BeginTransactionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOS( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..aOM( - 10, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'transactionOptions', - subBuilder: TransactionOptions.create) - ..hasRequiredFields = false; - - BeginTransactionRequest._() : super(); factory BeginTransactionRequest({ $core.String? projectId, TransactionOptions? transactionOptions, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (transactionOptions != null) { - _result.transactionOptions = transactionOptions; + $result.transactionOptions = transactionOptions; } - return _result; + return $result; } + BeginTransactionRequest._() : super(); factory BeginTransactionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BeginTransactionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BeginTransactionRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..aOM(10, _omitFieldNames ? '' : 'transactionOptions', + subBuilder: TransactionOptions.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') @@ -492,8 +500,10 @@ class BeginTransactionRequest extends $pb.GeneratedMessage { BeginTransactionRequest copyWith( void Function(BeginTransactionRequest) updates) => super.copyWith((message) => updates(message as BeginTransactionRequest)) - as BeginTransactionRequest; // ignore: deprecated_member_use + as BeginTransactionRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BeginTransactionRequest create() => BeginTransactionRequest._(); BeginTransactionRequest createEmptyInstance() => create(); @@ -504,6 +514,7 @@ class BeginTransactionRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BeginTransactionRequest? _defaultInstance; + /// The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(8) @@ -516,6 +527,7 @@ class BeginTransactionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearProjectId() => clearField(8); + /// Options for a new transaction. @$pb.TagNumber(10) TransactionOptions get transactionOptions => $_getN(1); @$pb.TagNumber(10) @@ -531,40 +543,35 @@ class BeginTransactionRequest extends $pb.GeneratedMessage { TransactionOptions ensureTransactionOptions() => $_ensure(1); } +/// The response for +/// [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction]. class BeginTransactionResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BeginTransactionResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'transaction', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - BeginTransactionResponse._() : super(); factory BeginTransactionResponse({ $core.List<$core.int>? transaction, }) { - final _result = create(); + final $result = create(); if (transaction != null) { - _result.transaction = transaction; + $result.transaction = transaction; } - return _result; + return $result; } + BeginTransactionResponse._() : super(); factory BeginTransactionResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BeginTransactionResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BeginTransactionResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'transaction', $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') @@ -576,8 +583,10 @@ class BeginTransactionResponse extends $pb.GeneratedMessage { BeginTransactionResponse copyWith( void Function(BeginTransactionResponse) updates) => super.copyWith((message) => updates(message as BeginTransactionResponse)) - as BeginTransactionResponse; // ignore: deprecated_member_use + as BeginTransactionResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BeginTransactionResponse create() => BeginTransactionResponse._(); BeginTransactionResponse createEmptyInstance() => create(); @@ -588,6 +597,7 @@ class BeginTransactionResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BeginTransactionResponse? _defaultInstance; + /// The transaction identifier (always present). @$pb.TagNumber(1) $core.List<$core.int> get transaction => $_getN(0); @$pb.TagNumber(1) @@ -601,49 +611,40 @@ class BeginTransactionResponse extends $pb.GeneratedMessage { void clearTransaction() => clearField(1); } +/// The request for +/// [Datastore.Rollback][google.datastore.v1beta3.Datastore.Rollback]. class RollbackRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RollbackRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'transaction', - $pb.PbFieldType.OY) - ..aOS( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..hasRequiredFields = false; - - RollbackRequest._() : super(); factory RollbackRequest({ $core.List<$core.int>? transaction, $core.String? projectId, }) { - final _result = create(); + final $result = create(); if (transaction != null) { - _result.transaction = transaction; + $result.transaction = transaction; } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } - return _result; + return $result; } + RollbackRequest._() : super(); factory RollbackRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RollbackRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RollbackRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -653,8 +654,10 @@ class RollbackRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') RollbackRequest copyWith(void Function(RollbackRequest) updates) => super.copyWith((message) => updates(message as RollbackRequest)) - as RollbackRequest; // ignore: deprecated_member_use + as RollbackRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RollbackRequest create() => RollbackRequest._(); RollbackRequest createEmptyInstance() => create(); @@ -665,6 +668,8 @@ class RollbackRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static RollbackRequest? _defaultInstance; + /// The transaction identifier, returned by a call to + /// [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction]. @$pb.TagNumber(1) $core.List<$core.int> get transaction => $_getN(0); @$pb.TagNumber(1) @@ -677,6 +682,7 @@ class RollbackRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTransaction() => clearField(1); + /// The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(1); @$pb.TagNumber(8) @@ -690,26 +696,26 @@ class RollbackRequest extends $pb.GeneratedMessage { void clearProjectId() => clearField(8); } +/// The response for +/// [Datastore.Rollback][google.datastore.v1beta3.Datastore.Rollback]. (an empty +/// message). class RollbackResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'RollbackResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - RollbackResponse._() : super(); factory RollbackResponse() => create(); + RollbackResponse._() : super(); factory RollbackResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RollbackResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'RollbackResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + 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') @@ -719,8 +725,10 @@ class RollbackResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') RollbackResponse copyWith(void Function(RollbackResponse) updates) => super.copyWith((message) => updates(message as RollbackResponse)) - as RollbackResponse; // ignore: deprecated_member_use + as RollbackResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static RollbackResponse create() => RollbackResponse._(); RollbackResponse createEmptyInstance() => create(); @@ -734,67 +742,61 @@ class RollbackResponse extends $pb.GeneratedMessage { enum CommitRequest_TransactionSelector { transaction, notSet } +/// The request for +/// [Datastore.Commit][google.datastore.v1beta3.Datastore.Commit]. class CommitRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, CommitRequest_TransactionSelector> - _CommitRequest_TransactionSelectorByTag = { - 1: CommitRequest_TransactionSelector.transaction, - 0: CommitRequest_TransactionSelector.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CommitRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..oo(0, [1]) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'transaction', - $pb.PbFieldType.OY) - ..e( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mode', $pb.PbFieldType.OE, - defaultOrMaker: CommitRequest_Mode.MODE_UNSPECIFIED, - valueOf: CommitRequest_Mode.valueOf, - enumValues: CommitRequest_Mode.values) - ..pc( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mutations', $pb.PbFieldType.PM, - subBuilder: Mutation.create) - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projectId') - ..hasRequiredFields = false; - - CommitRequest._() : super(); factory CommitRequest({ $core.List<$core.int>? transaction, CommitRequest_Mode? mode, $core.Iterable? mutations, $core.String? projectId, }) { - final _result = create(); + final $result = create(); if (transaction != null) { - _result.transaction = transaction; + $result.transaction = transaction; } if (mode != null) { - _result.mode = mode; + $result.mode = mode; } if (mutations != null) { - _result.mutations.addAll(mutations); + $result.mutations.addAll(mutations); } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } - return _result; + return $result; } + CommitRequest._() : super(); factory CommitRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CommitRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, CommitRequest_TransactionSelector> + _CommitRequest_TransactionSelectorByTag = { + 1: CommitRequest_TransactionSelector.transaction, + 0: CommitRequest_TransactionSelector.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CommitRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..oo(0, [1]) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) + ..e( + 5, _omitFieldNames ? '' : 'mode', $pb.PbFieldType.OE, + defaultOrMaker: CommitRequest_Mode.MODE_UNSPECIFIED, + valueOf: CommitRequest_Mode.valueOf, + enumValues: CommitRequest_Mode.values) + ..pc(6, _omitFieldNames ? '' : 'mutations', $pb.PbFieldType.PM, + subBuilder: Mutation.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -804,8 +806,10 @@ class CommitRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CommitRequest copyWith(void Function(CommitRequest) updates) => super.copyWith((message) => updates(message as CommitRequest)) - as CommitRequest; // ignore: deprecated_member_use + as CommitRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CommitRequest create() => CommitRequest._(); CommitRequest createEmptyInstance() => create(); @@ -820,6 +824,9 @@ class CommitRequest extends $pb.GeneratedMessage { _CommitRequest_TransactionSelectorByTag[$_whichOneof(0)]!; void clearTransactionSelector() => clearField($_whichOneof(0)); + /// The identifier of the transaction associated with the commit. A + /// transaction identifier is returned by a call to + /// [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction]. @$pb.TagNumber(1) $core.List<$core.int> get transaction => $_getN(0); @$pb.TagNumber(1) @@ -832,6 +839,7 @@ class CommitRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearTransaction() => clearField(1); + /// The type of commit to perform. Defaults to `TRANSACTIONAL`. @$pb.TagNumber(5) CommitRequest_Mode get mode => $_getN(1); @$pb.TagNumber(5) @@ -844,9 +852,23 @@ class CommitRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearMode() => clearField(5); + /// The mutations to perform. + /// + /// When mode is `TRANSACTIONAL`, mutations affecting a single entity are + /// applied in order. The following sequences of mutations affecting a single + /// entity are not permitted in a single `Commit` request: + /// + /// - `insert` followed by `insert` + /// - `update` followed by `insert` + /// - `upsert` followed by `insert` + /// - `delete` followed by `update` + /// + /// When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single + /// entity. @$pb.TagNumber(6) $core.List get mutations => $_getList(2); + /// The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(3); @$pb.TagNumber(8) @@ -860,49 +882,41 @@ class CommitRequest extends $pb.GeneratedMessage { void clearProjectId() => clearField(8); } +/// The response for +/// [Datastore.Commit][google.datastore.v1beta3.Datastore.Commit]. class CommitResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CommitResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..pc( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mutationResults', - $pb.PbFieldType.PM, - subBuilder: MutationResult.create) - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'indexUpdates', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - CommitResponse._() : super(); factory CommitResponse({ $core.Iterable? mutationResults, $core.int? indexUpdates, }) { - final _result = create(); + final $result = create(); if (mutationResults != null) { - _result.mutationResults.addAll(mutationResults); + $result.mutationResults.addAll(mutationResults); } if (indexUpdates != null) { - _result.indexUpdates = indexUpdates; + $result.indexUpdates = indexUpdates; } - return _result; + return $result; } + CommitResponse._() : super(); factory CommitResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CommitResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CommitResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..pc( + 3, _omitFieldNames ? '' : 'mutationResults', $pb.PbFieldType.PM, + subBuilder: MutationResult.create) + ..a<$core.int>(4, _omitFieldNames ? '' : 'indexUpdates', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -912,8 +926,10 @@ class CommitResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') CommitResponse copyWith(void Function(CommitResponse) updates) => super.copyWith((message) => updates(message as CommitResponse)) - as CommitResponse; // ignore: deprecated_member_use + as CommitResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CommitResponse create() => CommitResponse._(); CommitResponse createEmptyInstance() => create(); @@ -924,9 +940,13 @@ class CommitResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CommitResponse? _defaultInstance; + /// The result of performing the mutations. + /// The i-th mutation result corresponds to the i-th mutation in the request. @$pb.TagNumber(3) $core.List get mutationResults => $_getList(0); + /// The number of index entries updated during the commit, or zero if none were + /// updated. @$pb.TagNumber(4) $core.int get indexUpdates => $_getIZ(1); @$pb.TagNumber(4) @@ -940,47 +960,40 @@ class CommitResponse extends $pb.GeneratedMessage { void clearIndexUpdates() => clearField(4); } +/// The request for +/// [Datastore.AllocateIds][google.datastore.v1beta3.Datastore.AllocateIds]. class AllocateIdsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AllocateIdsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..pc<$1.Key>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keys', - $pb.PbFieldType.PM, - subBuilder: $1.Key.create) - ..aOS(8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projectId') - ..hasRequiredFields = false; - - AllocateIdsRequest._() : super(); factory AllocateIdsRequest({ - $core.Iterable<$1.Key>? keys, + $core.Iterable<$77.Key>? keys, $core.String? projectId, }) { - final _result = create(); + final $result = create(); if (keys != null) { - _result.keys.addAll(keys); + $result.keys.addAll(keys); } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } - return _result; + return $result; } + AllocateIdsRequest._() : super(); factory AllocateIdsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AllocateIdsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AllocateIdsRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..pc<$77.Key>(1, _omitFieldNames ? '' : 'keys', $pb.PbFieldType.PM, + subBuilder: $77.Key.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -990,8 +1003,10 @@ class AllocateIdsRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') AllocateIdsRequest copyWith(void Function(AllocateIdsRequest) updates) => super.copyWith((message) => updates(message as AllocateIdsRequest)) - as AllocateIdsRequest; // ignore: deprecated_member_use + as AllocateIdsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AllocateIdsRequest create() => AllocateIdsRequest._(); AllocateIdsRequest createEmptyInstance() => create(); @@ -1002,9 +1017,12 @@ class AllocateIdsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AllocateIdsRequest? _defaultInstance; + /// A list of keys with incomplete key paths for which to allocate IDs. + /// No key may be reserved/read-only. @$pb.TagNumber(1) - $core.List<$1.Key> get keys => $_getList(0); + $core.List<$77.Key> get keys => $_getList(0); + /// The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(1); @$pb.TagNumber(8) @@ -1018,41 +1036,35 @@ class AllocateIdsRequest extends $pb.GeneratedMessage { void clearProjectId() => clearField(8); } +/// The response for +/// [Datastore.AllocateIds][google.datastore.v1beta3.Datastore.AllocateIds]. class AllocateIdsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AllocateIdsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..pc<$1.Key>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keys', - $pb.PbFieldType.PM, - subBuilder: $1.Key.create) - ..hasRequiredFields = false; - - AllocateIdsResponse._() : super(); factory AllocateIdsResponse({ - $core.Iterable<$1.Key>? keys, + $core.Iterable<$77.Key>? keys, }) { - final _result = create(); + final $result = create(); if (keys != null) { - _result.keys.addAll(keys); + $result.keys.addAll(keys); } - return _result; + return $result; } + AllocateIdsResponse._() : super(); factory AllocateIdsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AllocateIdsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AllocateIdsResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..pc<$77.Key>(1, _omitFieldNames ? '' : 'keys', $pb.PbFieldType.PM, + subBuilder: $77.Key.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') @@ -1062,8 +1074,10 @@ class AllocateIdsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') AllocateIdsResponse copyWith(void Function(AllocateIdsResponse) updates) => super.copyWith((message) => updates(message as AllocateIdsResponse)) - as AllocateIdsResponse; // ignore: deprecated_member_use + as AllocateIdsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AllocateIdsResponse create() => AllocateIdsResponse._(); AllocateIdsResponse createEmptyInstance() => create(); @@ -1074,56 +1088,51 @@ class AllocateIdsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AllocateIdsResponse? _defaultInstance; + /// The keys specified in the request (in the same order), each with + /// its key path completed with a newly allocated ID. @$pb.TagNumber(1) - $core.List<$1.Key> get keys => $_getList(0); + $core.List<$77.Key> get keys => $_getList(0); } +/// The request for +/// [Datastore.ReserveIds][google.datastore.v1beta3.Datastore.ReserveIds]. class ReserveIdsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReserveIdsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..pc<$1.Key>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keys', - $pb.PbFieldType.PM, - subBuilder: $1.Key.create) - ..aOS(8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projectId') - ..aOS(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'databaseId') - ..hasRequiredFields = false; - - ReserveIdsRequest._() : super(); factory ReserveIdsRequest({ - $core.Iterable<$1.Key>? keys, + $core.Iterable<$77.Key>? keys, $core.String? projectId, $core.String? databaseId, }) { - final _result = create(); + final $result = create(); if (keys != null) { - _result.keys.addAll(keys); + $result.keys.addAll(keys); } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (databaseId != null) { - _result.databaseId = databaseId; + $result.databaseId = databaseId; } - return _result; + return $result; } + ReserveIdsRequest._() : super(); factory ReserveIdsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ReserveIdsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReserveIdsRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..pc<$77.Key>(1, _omitFieldNames ? '' : 'keys', $pb.PbFieldType.PM, + subBuilder: $77.Key.create) + ..aOS(8, _omitFieldNames ? '' : 'projectId') + ..aOS(9, _omitFieldNames ? '' : 'databaseId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1133,8 +1142,10 @@ class ReserveIdsRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ReserveIdsRequest copyWith(void Function(ReserveIdsRequest) updates) => super.copyWith((message) => updates(message as ReserveIdsRequest)) - as ReserveIdsRequest; // ignore: deprecated_member_use + as ReserveIdsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReserveIdsRequest create() => ReserveIdsRequest._(); ReserveIdsRequest createEmptyInstance() => create(); @@ -1145,9 +1156,12 @@ class ReserveIdsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ReserveIdsRequest? _defaultInstance; + /// A list of keys with complete key paths whose numeric IDs should not be + /// auto-allocated. @$pb.TagNumber(1) - $core.List<$1.Key> get keys => $_getList(0); + $core.List<$77.Key> get keys => $_getList(0); + /// The ID of the project against which to make the request. @$pb.TagNumber(8) $core.String get projectId => $_getSZ(1); @$pb.TagNumber(8) @@ -1160,6 +1174,7 @@ class ReserveIdsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearProjectId() => clearField(8); + /// If not empty, the ID of the database against which to make the request. @$pb.TagNumber(9) $core.String get databaseId => $_getSZ(2); @$pb.TagNumber(9) @@ -1173,26 +1188,25 @@ class ReserveIdsRequest extends $pb.GeneratedMessage { void clearDatabaseId() => clearField(9); } +/// The response for +/// [Datastore.ReserveIds][google.datastore.v1beta3.Datastore.ReserveIds]. class ReserveIdsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReserveIdsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - ReserveIdsResponse._() : super(); factory ReserveIdsResponse() => create(); + ReserveIdsResponse._() : super(); factory ReserveIdsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ReserveIdsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ReserveIdsResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + 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') @@ -1202,8 +1216,10 @@ class ReserveIdsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ReserveIdsResponse copyWith(void Function(ReserveIdsResponse) updates) => super.copyWith((message) => updates(message as ReserveIdsResponse)) - as ReserveIdsResponse; // ignore: deprecated_member_use + as ReserveIdsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReserveIdsResponse create() => ReserveIdsResponse._(); ReserveIdsResponse createEmptyInstance() => create(); @@ -1219,75 +1235,72 @@ enum Mutation_Operation { insert, update, upsert, delete, notSet } enum Mutation_ConflictDetectionStrategy { baseVersion, notSet } +/// A mutation to apply to an entity. class Mutation extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Mutation_Operation> - _Mutation_OperationByTag = { - 4: Mutation_Operation.insert, - 5: Mutation_Operation.update, - 6: Mutation_Operation.upsert, - 7: Mutation_Operation.delete, - 0: Mutation_Operation.notSet - }; - static const $core.Map<$core.int, Mutation_ConflictDetectionStrategy> - _Mutation_ConflictDetectionStrategyByTag = { - 8: Mutation_ConflictDetectionStrategy.baseVersion, - 0: Mutation_ConflictDetectionStrategy.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Mutation', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..oo(0, [4, 5, 6, 7]) - ..oo(1, [8]) - ..aOM<$1.Entity>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'insert', - subBuilder: $1.Entity.create) - ..aOM<$1.Entity>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'update', - subBuilder: $1.Entity.create) - ..aOM<$1.Entity>( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'upsert', - subBuilder: $1.Entity.create) - ..aOM<$1.Key>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'delete', subBuilder: $1.Key.create) - ..aInt64(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'baseVersion') - ..hasRequiredFields = false; - - Mutation._() : super(); factory Mutation({ - $1.Entity? insert, - $1.Entity? update, - $1.Entity? upsert, - $1.Key? delete, + $77.Entity? insert, + $77.Entity? update, + $77.Entity? upsert, + $77.Key? delete, $fixnum.Int64? baseVersion, }) { - final _result = create(); + final $result = create(); if (insert != null) { - _result.insert = insert; + $result.insert = insert; } if (update != null) { - _result.update = update; + $result.update = update; } if (upsert != null) { - _result.upsert = upsert; + $result.upsert = upsert; } if (delete != null) { - _result.delete = delete; + $result.delete = delete; } if (baseVersion != null) { - _result.baseVersion = baseVersion; + $result.baseVersion = baseVersion; } - return _result; + return $result; } + Mutation._() : super(); factory Mutation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Mutation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Mutation_Operation> + _Mutation_OperationByTag = { + 4: Mutation_Operation.insert, + 5: Mutation_Operation.update, + 6: Mutation_Operation.upsert, + 7: Mutation_Operation.delete, + 0: Mutation_Operation.notSet + }; + static const $core.Map<$core.int, Mutation_ConflictDetectionStrategy> + _Mutation_ConflictDetectionStrategyByTag = { + 8: Mutation_ConflictDetectionStrategy.baseVersion, + 0: Mutation_ConflictDetectionStrategy.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Mutation', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..oo(0, [4, 5, 6, 7]) + ..oo(1, [8]) + ..aOM<$77.Entity>(4, _omitFieldNames ? '' : 'insert', + subBuilder: $77.Entity.create) + ..aOM<$77.Entity>(5, _omitFieldNames ? '' : 'update', + subBuilder: $77.Entity.create) + ..aOM<$77.Entity>(6, _omitFieldNames ? '' : 'upsert', + subBuilder: $77.Entity.create) + ..aOM<$77.Key>(7, _omitFieldNames ? '' : 'delete', + subBuilder: $77.Key.create) + ..aInt64(8, _omitFieldNames ? '' : 'baseVersion') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1296,9 +1309,10 @@ class Mutation extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Mutation copyWith(void Function(Mutation) updates) => - super.copyWith((message) => updates(message as Mutation)) - as Mutation; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Mutation)) as Mutation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Mutation create() => Mutation._(); Mutation createEmptyInstance() => create(); @@ -1316,10 +1330,12 @@ class Mutation extends $pb.GeneratedMessage { _Mutation_ConflictDetectionStrategyByTag[$_whichOneof(1)]!; void clearConflictDetectionStrategy() => clearField($_whichOneof(1)); + /// The entity to insert. The entity must not already exist. + /// The entity key's final path element may be incomplete. @$pb.TagNumber(4) - $1.Entity get insert => $_getN(0); + $77.Entity get insert => $_getN(0); @$pb.TagNumber(4) - set insert($1.Entity v) { + set insert($77.Entity v) { setField(4, v); } @@ -1328,12 +1344,14 @@ class Mutation extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearInsert() => clearField(4); @$pb.TagNumber(4) - $1.Entity ensureInsert() => $_ensure(0); + $77.Entity ensureInsert() => $_ensure(0); + /// The entity to update. The entity must already exist. + /// Must have a complete key path. @$pb.TagNumber(5) - $1.Entity get update => $_getN(1); + $77.Entity get update => $_getN(1); @$pb.TagNumber(5) - set update($1.Entity v) { + set update($77.Entity v) { setField(5, v); } @@ -1342,12 +1360,14 @@ class Mutation extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearUpdate() => clearField(5); @$pb.TagNumber(5) - $1.Entity ensureUpdate() => $_ensure(1); + $77.Entity ensureUpdate() => $_ensure(1); + /// The entity to upsert. The entity may or may not already exist. + /// The entity key's final path element may be incomplete. @$pb.TagNumber(6) - $1.Entity get upsert => $_getN(2); + $77.Entity get upsert => $_getN(2); @$pb.TagNumber(6) - set upsert($1.Entity v) { + set upsert($77.Entity v) { setField(6, v); } @@ -1356,12 +1376,14 @@ class Mutation extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearUpsert() => clearField(6); @$pb.TagNumber(6) - $1.Entity ensureUpsert() => $_ensure(2); + $77.Entity ensureUpsert() => $_ensure(2); + /// The key of the entity to delete. The entity may or may not already exist. + /// Must have a complete key path and must not be reserved/read-only. @$pb.TagNumber(7) - $1.Key get delete => $_getN(3); + $77.Key get delete => $_getN(3); @$pb.TagNumber(7) - set delete($1.Key v) { + set delete($77.Key v) { setField(7, v); } @@ -1370,8 +1392,10 @@ class Mutation extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearDelete() => clearField(7); @$pb.TagNumber(7) - $1.Key ensureDelete() => $_ensure(3); + $77.Key ensureDelete() => $_ensure(3); + /// The version of the entity that this mutation is being applied to. If this + /// does not match the current version on the server, the mutation conflicts. @$pb.TagNumber(8) $fixnum.Int64 get baseVersion => $_getI64(4); @$pb.TagNumber(8) @@ -1385,54 +1409,43 @@ class Mutation extends $pb.GeneratedMessage { void clearBaseVersion() => clearField(8); } +/// The result of applying a mutation. class MutationResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MutationResult', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOM<$1.Key>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'key', - subBuilder: $1.Key.create) - ..aInt64( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version') - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'conflictDetected') - ..hasRequiredFields = false; - - MutationResult._() : super(); factory MutationResult({ - $1.Key? key, + $77.Key? key, $fixnum.Int64? version, $core.bool? conflictDetected, }) { - final _result = create(); + final $result = create(); if (key != null) { - _result.key = key; + $result.key = key; } if (version != null) { - _result.version = version; + $result.version = version; } if (conflictDetected != null) { - _result.conflictDetected = conflictDetected; + $result.conflictDetected = conflictDetected; } - return _result; + return $result; } + MutationResult._() : super(); factory MutationResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MutationResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MutationResult', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOM<$77.Key>(3, _omitFieldNames ? '' : 'key', subBuilder: $77.Key.create) + ..aInt64(4, _omitFieldNames ? '' : 'version') + ..aOB(5, _omitFieldNames ? '' : 'conflictDetected') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1442,8 +1455,10 @@ class MutationResult extends $pb.GeneratedMessage { 'Will be removed in next major version') MutationResult copyWith(void Function(MutationResult) updates) => super.copyWith((message) => updates(message as MutationResult)) - as MutationResult; // ignore: deprecated_member_use + as MutationResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MutationResult create() => MutationResult._(); MutationResult createEmptyInstance() => create(); @@ -1454,10 +1469,12 @@ class MutationResult extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MutationResult? _defaultInstance; + /// The automatically allocated key. + /// Set only when the mutation allocated a key. @$pb.TagNumber(3) - $1.Key get key => $_getN(0); + $77.Key get key => $_getN(0); @$pb.TagNumber(3) - set key($1.Key v) { + set key($77.Key v) { setField(3, v); } @@ -1466,8 +1483,13 @@ class MutationResult extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearKey() => clearField(3); @$pb.TagNumber(3) - $1.Key ensureKey() => $_ensure(0); + $77.Key ensureKey() => $_ensure(0); + /// The version of the entity on the server after processing the mutation. If + /// the mutation doesn't change anything on the server, then the version will + /// be the version of the current entity or, if no entity is present, a version + /// that is strictly greater than the version of any previous entity and less + /// than the version of any possible future entity. @$pb.TagNumber(4) $fixnum.Int64 get version => $_getI64(1); @$pb.TagNumber(4) @@ -1480,6 +1502,8 @@ class MutationResult extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearVersion() => clearField(4); + /// Whether a conflict was detected for this mutation. Always false when a + /// conflict detection strategy field is not set in the mutation. @$pb.TagNumber(5) $core.bool get conflictDetected => $_getBF(2); @$pb.TagNumber(5) @@ -1495,7 +1519,29 @@ class MutationResult extends $pb.GeneratedMessage { enum ReadOptions_ConsistencyType { readConsistency, transaction, notSet } +/// The options shared by read requests. class ReadOptions extends $pb.GeneratedMessage { + factory ReadOptions({ + ReadOptions_ReadConsistency? readConsistency, + $core.List<$core.int>? transaction, + }) { + final $result = create(); + if (readConsistency != null) { + $result.readConsistency = readConsistency; + } + if (transaction != null) { + $result.transaction = transaction; + } + return $result; + } + ReadOptions._() : super(); + factory ReadOptions.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ReadOptions.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static const $core.Map<$core.int, ReadOptions_ConsistencyType> _ReadOptions_ConsistencyTypeByTag = { 1: ReadOptions_ConsistencyType.readConsistency, @@ -1503,49 +1549,21 @@ class ReadOptions extends $pb.GeneratedMessage { 0: ReadOptions_ConsistencyType.notSet }; static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ReadOptions', + _omitMessageNames ? '' : 'ReadOptions', package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), + _omitMessageNames ? '' : 'google.datastore.v1beta3'), createEmptyInstance: create) ..oo(0, [1, 2]) ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'readConsistency', - $pb.PbFieldType.OE, + 1, _omitFieldNames ? '' : 'readConsistency', $pb.PbFieldType.OE, defaultOrMaker: ReadOptions_ReadConsistency.READ_CONSISTENCY_UNSPECIFIED, valueOf: ReadOptions_ReadConsistency.valueOf, enumValues: ReadOptions_ReadConsistency.values) ..a<$core.List<$core.int>>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'transaction', $pb.PbFieldType.OY) + 2, _omitFieldNames ? '' : 'transaction', $pb.PbFieldType.OY) ..hasRequiredFields = false; - ReadOptions._() : super(); - factory ReadOptions({ - ReadOptions_ReadConsistency? readConsistency, - $core.List<$core.int>? transaction, - }) { - final _result = create(); - if (readConsistency != null) { - _result.readConsistency = readConsistency; - } - if (transaction != null) { - _result.transaction = transaction; - } - return _result; - } - factory ReadOptions.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory ReadOptions.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1555,8 +1573,10 @@ class ReadOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') ReadOptions copyWith(void Function(ReadOptions) updates) => super.copyWith((message) => updates(message as ReadOptions)) - as ReadOptions; // ignore: deprecated_member_use + as ReadOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ReadOptions create() => ReadOptions._(); ReadOptions createEmptyInstance() => create(); @@ -1570,6 +1590,8 @@ class ReadOptions extends $pb.GeneratedMessage { _ReadOptions_ConsistencyTypeByTag[$_whichOneof(0)]!; void clearConsistencyType() => clearField($_whichOneof(0)); + /// The non-transactional read consistency to use. + /// Cannot be set to `STRONG` for global queries. @$pb.TagNumber(1) ReadOptions_ReadConsistency get readConsistency => $_getN(0); @$pb.TagNumber(1) @@ -1582,6 +1604,9 @@ class ReadOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearReadConsistency() => clearField(1); + /// The identifier of the transaction in which to read. A + /// transaction identifier is returned by a call to + /// [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction]. @$pb.TagNumber(2) $core.List<$core.int> get transaction => $_getN(1); @$pb.TagNumber(2) @@ -1595,40 +1620,34 @@ class ReadOptions extends $pb.GeneratedMessage { void clearTransaction() => clearField(2); } +/// Options specific to read / write transactions. class TransactionOptions_ReadWrite extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TransactionOptions.ReadWrite', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..a<$core.List<$core.int>>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'previousTransaction', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - TransactionOptions_ReadWrite._() : super(); factory TransactionOptions_ReadWrite({ $core.List<$core.int>? previousTransaction, }) { - final _result = create(); + final $result = create(); if (previousTransaction != null) { - _result.previousTransaction = previousTransaction; + $result.previousTransaction = previousTransaction; } - return _result; + return $result; } + TransactionOptions_ReadWrite._() : super(); factory TransactionOptions_ReadWrite.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TransactionOptions_ReadWrite.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TransactionOptions.ReadWrite', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..a<$core.List<$core.int>>( + 1, _omitFieldNames ? '' : 'previousTransaction', $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') @@ -1641,8 +1660,10 @@ class TransactionOptions_ReadWrite extends $pb.GeneratedMessage { void Function(TransactionOptions_ReadWrite) updates) => super.copyWith( (message) => updates(message as TransactionOptions_ReadWrite)) - as TransactionOptions_ReadWrite; // ignore: deprecated_member_use + as TransactionOptions_ReadWrite; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TransactionOptions_ReadWrite create() => TransactionOptions_ReadWrite._(); @@ -1654,6 +1675,7 @@ class TransactionOptions_ReadWrite extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static TransactionOptions_ReadWrite? _defaultInstance; + /// The transaction identifier of the transaction being retried. @$pb.TagNumber(1) $core.List<$core.int> get previousTransaction => $_getN(0); @$pb.TagNumber(1) @@ -1667,26 +1689,24 @@ class TransactionOptions_ReadWrite extends $pb.GeneratedMessage { void clearPreviousTransaction() => clearField(1); } +/// Options specific to read-only transactions. class TransactionOptions_ReadOnly extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TransactionOptions.ReadOnly', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - TransactionOptions_ReadOnly._() : super(); factory TransactionOptions_ReadOnly() => create(); + TransactionOptions_ReadOnly._() : super(); factory TransactionOptions_ReadOnly.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TransactionOptions_ReadOnly.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TransactionOptions.ReadOnly', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + 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') @@ -1699,8 +1719,10 @@ class TransactionOptions_ReadOnly extends $pb.GeneratedMessage { void Function(TransactionOptions_ReadOnly) updates) => super.copyWith( (message) => updates(message as TransactionOptions_ReadOnly)) - as TransactionOptions_ReadOnly; // ignore: deprecated_member_use + as TransactionOptions_ReadOnly; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TransactionOptions_ReadOnly create() => TransactionOptions_ReadOnly._(); @@ -1715,54 +1737,53 @@ class TransactionOptions_ReadOnly extends $pb.GeneratedMessage { enum TransactionOptions_Mode { readWrite, readOnly, notSet } +/// Options for beginning a new transaction. +/// +/// Transactions can be created explicitly with calls to +/// [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction] +/// or implicitly by setting +/// [ReadOptions.new_transaction][google.datastore.v1beta3.ReadOptions.new_transaction] +/// in read requests. class TransactionOptions extends $pb.GeneratedMessage { - static const $core.Map<$core.int, TransactionOptions_Mode> - _TransactionOptions_ModeByTag = { - 1: TransactionOptions_Mode.readWrite, - 2: TransactionOptions_Mode.readOnly, - 0: TransactionOptions_Mode.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TransactionOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'readWrite', - subBuilder: TransactionOptions_ReadWrite.create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'readOnly', - subBuilder: TransactionOptions_ReadOnly.create) - ..hasRequiredFields = false; - - TransactionOptions._() : super(); factory TransactionOptions({ TransactionOptions_ReadWrite? readWrite, TransactionOptions_ReadOnly? readOnly, }) { - final _result = create(); + final $result = create(); if (readWrite != null) { - _result.readWrite = readWrite; + $result.readWrite = readWrite; } if (readOnly != null) { - _result.readOnly = readOnly; + $result.readOnly = readOnly; } - return _result; + return $result; } + TransactionOptions._() : super(); factory TransactionOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TransactionOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, TransactionOptions_Mode> + _TransactionOptions_ModeByTag = { + 1: TransactionOptions_Mode.readWrite, + 2: TransactionOptions_Mode.readOnly, + 0: TransactionOptions_Mode.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TransactionOptions', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..oo(0, [1, 2]) + ..aOM(1, _omitFieldNames ? '' : 'readWrite', + subBuilder: TransactionOptions_ReadWrite.create) + ..aOM(2, _omitFieldNames ? '' : 'readOnly', + subBuilder: TransactionOptions_ReadOnly.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') @@ -1772,8 +1793,10 @@ class TransactionOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') TransactionOptions copyWith(void Function(TransactionOptions) updates) => super.copyWith((message) => updates(message as TransactionOptions)) - as TransactionOptions; // ignore: deprecated_member_use + as TransactionOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TransactionOptions create() => TransactionOptions._(); TransactionOptions createEmptyInstance() => create(); @@ -1788,6 +1811,7 @@ class TransactionOptions extends $pb.GeneratedMessage { _TransactionOptions_ModeByTag[$_whichOneof(0)]!; void clearMode() => clearField($_whichOneof(0)); + /// The transaction should allow both reads and writes. @$pb.TagNumber(1) TransactionOptions_ReadWrite get readWrite => $_getN(0); @$pb.TagNumber(1) @@ -1802,6 +1826,7 @@ class TransactionOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) TransactionOptions_ReadWrite ensureReadWrite() => $_ensure(0); + /// The transaction should only allow reads. @$pb.TagNumber(2) TransactionOptions_ReadOnly get readOnly => $_getN(1); @$pb.TagNumber(2) @@ -1816,3 +1841,7 @@ class TransactionOptions extends $pb.GeneratedMessage { @$pb.TagNumber(2) TransactionOptions_ReadOnly ensureReadOnly() => $_ensure(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbenum.dart index b04ce25b..60b2aa54 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbenum.dart @@ -1,30 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1beta3/datastore.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The modes available for commits. class CommitRequest_Mode extends $pb.ProtobufEnum { - static const CommitRequest_Mode MODE_UNSPECIFIED = CommitRequest_Mode._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MODE_UNSPECIFIED'); - static const CommitRequest_Mode TRANSACTIONAL = CommitRequest_Mode._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TRANSACTIONAL'); - static const CommitRequest_Mode NON_TRANSACTIONAL = CommitRequest_Mode._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NON_TRANSACTIONAL'); + static const CommitRequest_Mode MODE_UNSPECIFIED = + CommitRequest_Mode._(0, _omitEnumNames ? '' : 'MODE_UNSPECIFIED'); + static const CommitRequest_Mode TRANSACTIONAL = + CommitRequest_Mode._(1, _omitEnumNames ? '' : 'TRANSACTIONAL'); + static const CommitRequest_Mode NON_TRANSACTIONAL = + CommitRequest_Mode._(2, _omitEnumNames ? '' : 'NON_TRANSACTIONAL'); static const $core.List values = [ MODE_UNSPECIFIED, @@ -39,25 +35,15 @@ class CommitRequest_Mode extends $pb.ProtobufEnum { const CommitRequest_Mode._($core.int v, $core.String n) : super(v, n); } +/// The possible values for read consistencies. class ReadOptions_ReadConsistency extends $pb.ProtobufEnum { static const ReadOptions_ReadConsistency READ_CONSISTENCY_UNSPECIFIED = ReadOptions_ReadConsistency._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'READ_CONSISTENCY_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'READ_CONSISTENCY_UNSPECIFIED'); static const ReadOptions_ReadConsistency STRONG = - ReadOptions_ReadConsistency._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STRONG'); + ReadOptions_ReadConsistency._(1, _omitEnumNames ? '' : 'STRONG'); static const ReadOptions_ReadConsistency EVENTUAL = - ReadOptions_ReadConsistency._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'EVENTUAL'); + ReadOptions_ReadConsistency._(2, _omitEnumNames ? '' : 'EVENTUAL'); static const $core.List values = [ @@ -74,3 +60,5 @@ class ReadOptions_ReadConsistency extends $pb.ProtobufEnum { const ReadOptions_ReadConsistency._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbgrpc.dart index f28cfc4e..ed4f3f85 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbgrpc.dart @@ -1,211 +1,225 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1beta3/datastore.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'datastore.pb.dart' as $0; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'datastore.pb.dart' as $22; + export 'datastore.pb.dart'; +@$pb.GrpcServiceName('google.datastore.v1beta3.Datastore') class DatastoreClient extends $grpc.Client { static final _$lookup = - $grpc.ClientMethod<$0.LookupRequest, $0.LookupResponse>( + $grpc.ClientMethod<$22.LookupRequest, $22.LookupResponse>( '/google.datastore.v1beta3.Datastore/Lookup', - ($0.LookupRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LookupResponse.fromBuffer(value)); + ($22.LookupRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $22.LookupResponse.fromBuffer(value)); static final _$runQuery = - $grpc.ClientMethod<$0.RunQueryRequest, $0.RunQueryResponse>( + $grpc.ClientMethod<$22.RunQueryRequest, $22.RunQueryResponse>( '/google.datastore.v1beta3.Datastore/RunQuery', - ($0.RunQueryRequest value) => value.writeToBuffer(), + ($22.RunQueryRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.RunQueryResponse.fromBuffer(value)); + $22.RunQueryResponse.fromBuffer(value)); static final _$beginTransaction = $grpc.ClientMethod< - $0.BeginTransactionRequest, $0.BeginTransactionResponse>( + $22.BeginTransactionRequest, $22.BeginTransactionResponse>( '/google.datastore.v1beta3.Datastore/BeginTransaction', - ($0.BeginTransactionRequest value) => value.writeToBuffer(), + ($22.BeginTransactionRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.BeginTransactionResponse.fromBuffer(value)); + $22.BeginTransactionResponse.fromBuffer(value)); static final _$commit = - $grpc.ClientMethod<$0.CommitRequest, $0.CommitResponse>( + $grpc.ClientMethod<$22.CommitRequest, $22.CommitResponse>( '/google.datastore.v1beta3.Datastore/Commit', - ($0.CommitRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.CommitResponse.fromBuffer(value)); + ($22.CommitRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $22.CommitResponse.fromBuffer(value)); static final _$rollback = - $grpc.ClientMethod<$0.RollbackRequest, $0.RollbackResponse>( + $grpc.ClientMethod<$22.RollbackRequest, $22.RollbackResponse>( '/google.datastore.v1beta3.Datastore/Rollback', - ($0.RollbackRequest value) => value.writeToBuffer(), + ($22.RollbackRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.RollbackResponse.fromBuffer(value)); + $22.RollbackResponse.fromBuffer(value)); static final _$allocateIds = - $grpc.ClientMethod<$0.AllocateIdsRequest, $0.AllocateIdsResponse>( + $grpc.ClientMethod<$22.AllocateIdsRequest, $22.AllocateIdsResponse>( '/google.datastore.v1beta3.Datastore/AllocateIds', - ($0.AllocateIdsRequest value) => value.writeToBuffer(), + ($22.AllocateIdsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.AllocateIdsResponse.fromBuffer(value)); + $22.AllocateIdsResponse.fromBuffer(value)); static final _$reserveIds = - $grpc.ClientMethod<$0.ReserveIdsRequest, $0.ReserveIdsResponse>( + $grpc.ClientMethod<$22.ReserveIdsRequest, $22.ReserveIdsResponse>( '/google.datastore.v1beta3.Datastore/ReserveIds', - ($0.ReserveIdsRequest value) => value.writeToBuffer(), + ($22.ReserveIdsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.ReserveIdsResponse.fromBuffer(value)); + $22.ReserveIdsResponse.fromBuffer(value)); DatastoreClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.LookupResponse> lookup($0.LookupRequest request, + $grpc.ResponseFuture<$22.LookupResponse> lookup($22.LookupRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$lookup, request, options: options); } - $grpc.ResponseFuture<$0.RunQueryResponse> runQuery($0.RunQueryRequest request, + $grpc.ResponseFuture<$22.RunQueryResponse> runQuery( + $22.RunQueryRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$runQuery, request, options: options); } - $grpc.ResponseFuture<$0.BeginTransactionResponse> beginTransaction( - $0.BeginTransactionRequest request, + $grpc.ResponseFuture<$22.BeginTransactionResponse> beginTransaction( + $22.BeginTransactionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$beginTransaction, request, options: options); } - $grpc.ResponseFuture<$0.CommitResponse> commit($0.CommitRequest request, + $grpc.ResponseFuture<$22.CommitResponse> commit($22.CommitRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$commit, request, options: options); } - $grpc.ResponseFuture<$0.RollbackResponse> rollback($0.RollbackRequest request, + $grpc.ResponseFuture<$22.RollbackResponse> rollback( + $22.RollbackRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$rollback, request, options: options); } - $grpc.ResponseFuture<$0.AllocateIdsResponse> allocateIds( - $0.AllocateIdsRequest request, + $grpc.ResponseFuture<$22.AllocateIdsResponse> allocateIds( + $22.AllocateIdsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$allocateIds, request, options: options); } - $grpc.ResponseFuture<$0.ReserveIdsResponse> reserveIds( - $0.ReserveIdsRequest request, + $grpc.ResponseFuture<$22.ReserveIdsResponse> reserveIds( + $22.ReserveIdsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$reserveIds, request, options: options); } } +@$pb.GrpcServiceName('google.datastore.v1beta3.Datastore') abstract class DatastoreServiceBase extends $grpc.Service { $core.String get $name => 'google.datastore.v1beta3.Datastore'; DatastoreServiceBase() { - $addMethod($grpc.ServiceMethod<$0.LookupRequest, $0.LookupResponse>( + $addMethod($grpc.ServiceMethod<$22.LookupRequest, $22.LookupResponse>( 'Lookup', lookup_Pre, false, false, - ($core.List<$core.int> value) => $0.LookupRequest.fromBuffer(value), - ($0.LookupResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.RunQueryRequest, $0.RunQueryResponse>( + ($core.List<$core.int> value) => $22.LookupRequest.fromBuffer(value), + ($22.LookupResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$22.RunQueryRequest, $22.RunQueryResponse>( 'RunQuery', runQuery_Pre, false, false, - ($core.List<$core.int> value) => $0.RunQueryRequest.fromBuffer(value), - ($0.RunQueryResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.BeginTransactionRequest, - $0.BeginTransactionResponse>( + ($core.List<$core.int> value) => $22.RunQueryRequest.fromBuffer(value), + ($22.RunQueryResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$22.BeginTransactionRequest, + $22.BeginTransactionResponse>( 'BeginTransaction', beginTransaction_Pre, false, false, ($core.List<$core.int> value) => - $0.BeginTransactionRequest.fromBuffer(value), - ($0.BeginTransactionResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.CommitRequest, $0.CommitResponse>( + $22.BeginTransactionRequest.fromBuffer(value), + ($22.BeginTransactionResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$22.CommitRequest, $22.CommitResponse>( 'Commit', commit_Pre, false, false, - ($core.List<$core.int> value) => $0.CommitRequest.fromBuffer(value), - ($0.CommitResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.RollbackRequest, $0.RollbackResponse>( + ($core.List<$core.int> value) => $22.CommitRequest.fromBuffer(value), + ($22.CommitResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$22.RollbackRequest, $22.RollbackResponse>( 'Rollback', rollback_Pre, false, false, - ($core.List<$core.int> value) => $0.RollbackRequest.fromBuffer(value), - ($0.RollbackResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $22.RollbackRequest.fromBuffer(value), + ($22.RollbackResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.AllocateIdsRequest, $0.AllocateIdsResponse>( + $grpc.ServiceMethod<$22.AllocateIdsRequest, $22.AllocateIdsResponse>( 'AllocateIds', allocateIds_Pre, false, false, ($core.List<$core.int> value) => - $0.AllocateIdsRequest.fromBuffer(value), - ($0.AllocateIdsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ReserveIdsRequest, $0.ReserveIdsResponse>( - 'ReserveIds', - reserveIds_Pre, - false, - false, - ($core.List<$core.int> value) => $0.ReserveIdsRequest.fromBuffer(value), - ($0.ReserveIdsResponse value) => value.writeToBuffer())); + $22.AllocateIdsRequest.fromBuffer(value), + ($22.AllocateIdsResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$22.ReserveIdsRequest, $22.ReserveIdsResponse>( + 'ReserveIds', + reserveIds_Pre, + false, + false, + ($core.List<$core.int> value) => + $22.ReserveIdsRequest.fromBuffer(value), + ($22.ReserveIdsResponse value) => value.writeToBuffer())); } - $async.Future<$0.LookupResponse> lookup_Pre( - $grpc.ServiceCall call, $async.Future<$0.LookupRequest> request) async { + $async.Future<$22.LookupResponse> lookup_Pre( + $grpc.ServiceCall call, $async.Future<$22.LookupRequest> request) async { return lookup(call, await request); } - $async.Future<$0.RunQueryResponse> runQuery_Pre( - $grpc.ServiceCall call, $async.Future<$0.RunQueryRequest> request) async { + $async.Future<$22.RunQueryResponse> runQuery_Pre($grpc.ServiceCall call, + $async.Future<$22.RunQueryRequest> request) async { return runQuery(call, await request); } - $async.Future<$0.BeginTransactionResponse> beginTransaction_Pre( + $async.Future<$22.BeginTransactionResponse> beginTransaction_Pre( $grpc.ServiceCall call, - $async.Future<$0.BeginTransactionRequest> request) async { + $async.Future<$22.BeginTransactionRequest> request) async { return beginTransaction(call, await request); } - $async.Future<$0.CommitResponse> commit_Pre( - $grpc.ServiceCall call, $async.Future<$0.CommitRequest> request) async { + $async.Future<$22.CommitResponse> commit_Pre( + $grpc.ServiceCall call, $async.Future<$22.CommitRequest> request) async { return commit(call, await request); } - $async.Future<$0.RollbackResponse> rollback_Pre( - $grpc.ServiceCall call, $async.Future<$0.RollbackRequest> request) async { + $async.Future<$22.RollbackResponse> rollback_Pre($grpc.ServiceCall call, + $async.Future<$22.RollbackRequest> request) async { return rollback(call, await request); } - $async.Future<$0.AllocateIdsResponse> allocateIds_Pre($grpc.ServiceCall call, - $async.Future<$0.AllocateIdsRequest> request) async { + $async.Future<$22.AllocateIdsResponse> allocateIds_Pre($grpc.ServiceCall call, + $async.Future<$22.AllocateIdsRequest> request) async { return allocateIds(call, await request); } - $async.Future<$0.ReserveIdsResponse> reserveIds_Pre($grpc.ServiceCall call, - $async.Future<$0.ReserveIdsRequest> request) async { + $async.Future<$22.ReserveIdsResponse> reserveIds_Pre($grpc.ServiceCall call, + $async.Future<$22.ReserveIdsRequest> request) async { return reserveIds(call, await request); } - $async.Future<$0.LookupResponse> lookup( - $grpc.ServiceCall call, $0.LookupRequest request); - $async.Future<$0.RunQueryResponse> runQuery( - $grpc.ServiceCall call, $0.RunQueryRequest request); - $async.Future<$0.BeginTransactionResponse> beginTransaction( - $grpc.ServiceCall call, $0.BeginTransactionRequest request); - $async.Future<$0.CommitResponse> commit( - $grpc.ServiceCall call, $0.CommitRequest request); - $async.Future<$0.RollbackResponse> rollback( - $grpc.ServiceCall call, $0.RollbackRequest request); - $async.Future<$0.AllocateIdsResponse> allocateIds( - $grpc.ServiceCall call, $0.AllocateIdsRequest request); - $async.Future<$0.ReserveIdsResponse> reserveIds( - $grpc.ServiceCall call, $0.ReserveIdsRequest request); + $async.Future<$22.LookupResponse> lookup( + $grpc.ServiceCall call, $22.LookupRequest request); + $async.Future<$22.RunQueryResponse> runQuery( + $grpc.ServiceCall call, $22.RunQueryRequest request); + $async.Future<$22.BeginTransactionResponse> beginTransaction( + $grpc.ServiceCall call, $22.BeginTransactionRequest request); + $async.Future<$22.CommitResponse> commit( + $grpc.ServiceCall call, $22.CommitRequest request); + $async.Future<$22.RollbackResponse> rollback( + $grpc.ServiceCall call, $22.RollbackRequest request); + $async.Future<$22.AllocateIdsResponse> allocateIds( + $grpc.ServiceCall call, $22.AllocateIdsRequest request); + $async.Future<$22.ReserveIdsResponse> reserveIds( + $grpc.ServiceCall call, $22.ReserveIdsRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbjson.dart index 9c92a007..d4731152 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/datastore.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1beta3/datastore.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 lookupRequestDescriptor instead') @@ -35,7 +39,11 @@ const LookupRequest$json = { /// Descriptor for `LookupRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List lookupRequestDescriptor = $convert.base64Decode( - 'Cg1Mb29rdXBSZXF1ZXN0Eh0KCnByb2plY3RfaWQYCCABKAlSCXByb2plY3RJZBJICgxyZWFkX29wdGlvbnMYASABKAsyJS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuUmVhZE9wdGlvbnNSC3JlYWRPcHRpb25zEjEKBGtleXMYAyADKAsyHS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuS2V5UgRrZXlz'); + 'Cg1Mb29rdXBSZXF1ZXN0Eh0KCnByb2plY3RfaWQYCCABKAlSCXByb2plY3RJZBJICgxyZWFkX2' + '9wdGlvbnMYASABKAsyJS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuUmVhZE9wdGlvbnNSC3Jl' + 'YWRPcHRpb25zEjEKBGtleXMYAyADKAsyHS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuS2V5Ug' + 'RrZXlz'); + @$core.Deprecated('Use lookupResponseDescriptor instead') const LookupResponse$json = { '1': 'LookupResponse', @@ -69,7 +77,11 @@ const LookupResponse$json = { /// Descriptor for `LookupResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List lookupResponseDescriptor = $convert.base64Decode( - 'Cg5Mb29rdXBSZXNwb25zZRI8CgVmb3VuZBgBIAMoCzImLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5FbnRpdHlSZXN1bHRSBWZvdW5kEkAKB21pc3NpbmcYAiADKAsyJi5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuRW50aXR5UmVzdWx0UgdtaXNzaW5nEjkKCGRlZmVycmVkGAMgAygLMh0uZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLktleVIIZGVmZXJyZWQ='); + 'Cg5Mb29rdXBSZXNwb25zZRI8CgVmb3VuZBgBIAMoCzImLmdvb2dsZS5kYXRhc3RvcmUudjFiZX' + 'RhMy5FbnRpdHlSZXN1bHRSBWZvdW5kEkAKB21pc3NpbmcYAiADKAsyJi5nb29nbGUuZGF0YXN0' + 'b3JlLnYxYmV0YTMuRW50aXR5UmVzdWx0UgdtaXNzaW5nEjkKCGRlZmVycmVkGAMgAygLMh0uZ2' + '9vZ2xlLmRhdGFzdG9yZS52MWJldGEzLktleVIIZGVmZXJyZWQ='); + @$core.Deprecated('Use runQueryRequestDescriptor instead') const RunQueryRequest$json = { '1': 'RunQueryRequest', @@ -117,7 +129,14 @@ const RunQueryRequest$json = { /// Descriptor for `RunQueryRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List runQueryRequestDescriptor = $convert.base64Decode( - 'Cg9SdW5RdWVyeVJlcXVlc3QSHQoKcHJvamVjdF9pZBgIIAEoCVIJcHJvamVjdElkEkgKDHBhcnRpdGlvbl9pZBgCIAEoCzIlLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5QYXJ0aXRpb25JZFILcGFydGl0aW9uSWQSSAoMcmVhZF9vcHRpb25zGAEgASgLMiUuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlJlYWRPcHRpb25zUgtyZWFkT3B0aW9ucxI3CgVxdWVyeRgDIAEoCzIfLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5RdWVyeUgAUgVxdWVyeRJBCglncWxfcXVlcnkYByABKAsyIi5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuR3FsUXVlcnlIAFIIZ3FsUXVlcnlCDAoKcXVlcnlfdHlwZQ=='); + 'Cg9SdW5RdWVyeVJlcXVlc3QSHQoKcHJvamVjdF9pZBgIIAEoCVIJcHJvamVjdElkEkgKDHBhcn' + 'RpdGlvbl9pZBgCIAEoCzIlLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5QYXJ0aXRpb25JZFIL' + 'cGFydGl0aW9uSWQSSAoMcmVhZF9vcHRpb25zGAEgASgLMiUuZ29vZ2xlLmRhdGFzdG9yZS52MW' + 'JldGEzLlJlYWRPcHRpb25zUgtyZWFkT3B0aW9ucxI3CgVxdWVyeRgDIAEoCzIfLmdvb2dsZS5k' + 'YXRhc3RvcmUudjFiZXRhMy5RdWVyeUgAUgVxdWVyeRJBCglncWxfcXVlcnkYByABKAsyIi5nb2' + '9nbGUuZGF0YXN0b3JlLnYxYmV0YTMuR3FsUXVlcnlIAFIIZ3FsUXVlcnlCDAoKcXVlcnlfdHlw' + 'ZQ=='); + @$core.Deprecated('Use runQueryResponseDescriptor instead') const RunQueryResponse$json = { '1': 'RunQueryResponse', @@ -143,7 +162,10 @@ const RunQueryResponse$json = { /// Descriptor for `RunQueryResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List runQueryResponseDescriptor = $convert.base64Decode( - 'ChBSdW5RdWVyeVJlc3BvbnNlEkAKBWJhdGNoGAEgASgLMiouZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlF1ZXJ5UmVzdWx0QmF0Y2hSBWJhdGNoEjUKBXF1ZXJ5GAIgASgLMh8uZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlF1ZXJ5UgVxdWVyeQ=='); + 'ChBSdW5RdWVyeVJlc3BvbnNlEkAKBWJhdGNoGAEgASgLMiouZ29vZ2xlLmRhdGFzdG9yZS52MW' + 'JldGEzLlF1ZXJ5UmVzdWx0QmF0Y2hSBWJhdGNoEjUKBXF1ZXJ5GAIgASgLMh8uZ29vZ2xlLmRh' + 'dGFzdG9yZS52MWJldGEzLlF1ZXJ5UgVxdWVyeQ=='); + @$core.Deprecated('Use beginTransactionRequestDescriptor instead') const BeginTransactionRequest$json = { '1': 'BeginTransactionRequest', @@ -161,9 +183,11 @@ const BeginTransactionRequest$json = { }; /// Descriptor for `BeginTransactionRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List beginTransactionRequestDescriptor = - $convert.base64Decode( - 'ChdCZWdpblRyYW5zYWN0aW9uUmVxdWVzdBIdCgpwcm9qZWN0X2lkGAggASgJUglwcm9qZWN0SWQSXQoTdHJhbnNhY3Rpb25fb3B0aW9ucxgKIAEoCzIsLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5UcmFuc2FjdGlvbk9wdGlvbnNSEnRyYW5zYWN0aW9uT3B0aW9ucw=='); +final $typed_data.Uint8List beginTransactionRequestDescriptor = $convert.base64Decode( + 'ChdCZWdpblRyYW5zYWN0aW9uUmVxdWVzdBIdCgpwcm9qZWN0X2lkGAggASgJUglwcm9qZWN0SW' + 'QSXQoTdHJhbnNhY3Rpb25fb3B0aW9ucxgKIAEoCzIsLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRh' + 'My5UcmFuc2FjdGlvbk9wdGlvbnNSEnRyYW5zYWN0aW9uT3B0aW9ucw=='); + @$core.Deprecated('Use beginTransactionResponseDescriptor instead') const BeginTransactionResponse$json = { '1': 'BeginTransactionResponse', @@ -175,7 +199,9 @@ const BeginTransactionResponse$json = { /// Descriptor for `BeginTransactionResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List beginTransactionResponseDescriptor = $convert.base64Decode( - 'ChhCZWdpblRyYW5zYWN0aW9uUmVzcG9uc2USIAoLdHJhbnNhY3Rpb24YASABKAxSC3RyYW5zYWN0aW9u'); + 'ChhCZWdpblRyYW5zYWN0aW9uUmVzcG9uc2USIAoLdHJhbnNhY3Rpb24YASABKAxSC3RyYW5zYW' + 'N0aW9u'); + @$core.Deprecated('Use rollbackRequestDescriptor instead') const RollbackRequest$json = { '1': 'RollbackRequest', @@ -187,7 +213,9 @@ const RollbackRequest$json = { /// Descriptor for `RollbackRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List rollbackRequestDescriptor = $convert.base64Decode( - 'Cg9Sb2xsYmFja1JlcXVlc3QSHQoKcHJvamVjdF9pZBgIIAEoCVIJcHJvamVjdElkEiAKC3RyYW5zYWN0aW9uGAEgASgMUgt0cmFuc2FjdGlvbg=='); + 'Cg9Sb2xsYmFja1JlcXVlc3QSHQoKcHJvamVjdF9pZBgIIAEoCVIJcHJvamVjdElkEiAKC3RyYW' + '5zYWN0aW9uGAEgASgMUgt0cmFuc2FjdGlvbg=='); + @$core.Deprecated('Use rollbackResponseDescriptor instead') const RollbackResponse$json = { '1': 'RollbackResponse', @@ -196,6 +224,7 @@ const RollbackResponse$json = { /// Descriptor for `RollbackResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List rollbackResponseDescriptor = $convert.base64Decode('ChBSb2xsYmFja1Jlc3BvbnNl'); + @$core.Deprecated('Use commitRequestDescriptor instead') const CommitRequest$json = { '1': 'CommitRequest', @@ -237,7 +266,13 @@ const CommitRequest_Mode$json = { /// Descriptor for `CommitRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List commitRequestDescriptor = $convert.base64Decode( - 'Cg1Db21taXRSZXF1ZXN0Eh0KCnByb2plY3RfaWQYCCABKAlSCXByb2plY3RJZBJACgRtb2RlGAUgASgOMiwuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkNvbW1pdFJlcXVlc3QuTW9kZVIEbW9kZRIiCgt0cmFuc2FjdGlvbhgBIAEoDEgAUgt0cmFuc2FjdGlvbhJACgltdXRhdGlvbnMYBiADKAsyIi5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuTXV0YXRpb25SCW11dGF0aW9ucyJGCgRNb2RlEhQKEE1PREVfVU5TUEVDSUZJRUQQABIRCg1UUkFOU0FDVElPTkFMEAESFQoRTk9OX1RSQU5TQUNUSU9OQUwQAkIWChR0cmFuc2FjdGlvbl9zZWxlY3Rvcg=='); + 'Cg1Db21taXRSZXF1ZXN0Eh0KCnByb2plY3RfaWQYCCABKAlSCXByb2plY3RJZBJACgRtb2RlGA' + 'UgASgOMiwuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkNvbW1pdFJlcXVlc3QuTW9kZVIEbW9k' + 'ZRIiCgt0cmFuc2FjdGlvbhgBIAEoDEgAUgt0cmFuc2FjdGlvbhJACgltdXRhdGlvbnMYBiADKA' + 'syIi5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuTXV0YXRpb25SCW11dGF0aW9ucyJGCgRNb2Rl' + 'EhQKEE1PREVfVU5TUEVDSUZJRUQQABIRCg1UUkFOU0FDVElPTkFMEAESFQoRTk9OX1RSQU5TQU' + 'NUSU9OQUwQAkIWChR0cmFuc2FjdGlvbl9zZWxlY3Rvcg=='); + @$core.Deprecated('Use commitResponseDescriptor instead') const CommitResponse$json = { '1': 'CommitResponse', @@ -256,7 +291,10 @@ const CommitResponse$json = { /// Descriptor for `CommitResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List commitResponseDescriptor = $convert.base64Decode( - 'Cg5Db21taXRSZXNwb25zZRJTChBtdXRhdGlvbl9yZXN1bHRzGAMgAygLMiguZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLk11dGF0aW9uUmVzdWx0Ug9tdXRhdGlvblJlc3VsdHMSIwoNaW5kZXhfdXBkYXRlcxgEIAEoBVIMaW5kZXhVcGRhdGVz'); + 'Cg5Db21taXRSZXNwb25zZRJTChBtdXRhdGlvbl9yZXN1bHRzGAMgAygLMiguZ29vZ2xlLmRhdG' + 'FzdG9yZS52MWJldGEzLk11dGF0aW9uUmVzdWx0Ug9tdXRhdGlvblJlc3VsdHMSIwoNaW5kZXhf' + 'dXBkYXRlcxgEIAEoBVIMaW5kZXhVcGRhdGVz'); + @$core.Deprecated('Use allocateIdsRequestDescriptor instead') const AllocateIdsRequest$json = { '1': 'AllocateIdsRequest', @@ -275,7 +313,9 @@ const AllocateIdsRequest$json = { /// Descriptor for `AllocateIdsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List allocateIdsRequestDescriptor = $convert.base64Decode( - 'ChJBbGxvY2F0ZUlkc1JlcXVlc3QSHQoKcHJvamVjdF9pZBgIIAEoCVIJcHJvamVjdElkEjEKBGtleXMYASADKAsyHS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuS2V5UgRrZXlz'); + 'ChJBbGxvY2F0ZUlkc1JlcXVlc3QSHQoKcHJvamVjdF9pZBgIIAEoCVIJcHJvamVjdElkEjEKBG' + 'tleXMYASADKAsyHS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuS2V5UgRrZXlz'); + @$core.Deprecated('Use allocateIdsResponseDescriptor instead') const AllocateIdsResponse$json = { '1': 'AllocateIdsResponse', @@ -293,7 +333,9 @@ const AllocateIdsResponse$json = { /// Descriptor for `AllocateIdsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List allocateIdsResponseDescriptor = $convert.base64Decode( - 'ChNBbGxvY2F0ZUlkc1Jlc3BvbnNlEjEKBGtleXMYASADKAsyHS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuS2V5UgRrZXlz'); + 'ChNBbGxvY2F0ZUlkc1Jlc3BvbnNlEjEKBGtleXMYASADKAsyHS5nb29nbGUuZGF0YXN0b3JlLn' + 'YxYmV0YTMuS2V5UgRrZXlz'); + @$core.Deprecated('Use reserveIdsRequestDescriptor instead') const ReserveIdsRequest$json = { '1': 'ReserveIdsRequest', @@ -313,7 +355,10 @@ const ReserveIdsRequest$json = { /// Descriptor for `ReserveIdsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List reserveIdsRequestDescriptor = $convert.base64Decode( - 'ChFSZXNlcnZlSWRzUmVxdWVzdBIdCgpwcm9qZWN0X2lkGAggASgJUglwcm9qZWN0SWQSHwoLZGF0YWJhc2VfaWQYCSABKAlSCmRhdGFiYXNlSWQSMQoEa2V5cxgBIAMoCzIdLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5LZXlSBGtleXM='); + 'ChFSZXNlcnZlSWRzUmVxdWVzdBIdCgpwcm9qZWN0X2lkGAggASgJUglwcm9qZWN0SWQSHwoLZG' + 'F0YWJhc2VfaWQYCSABKAlSCmRhdGFiYXNlSWQSMQoEa2V5cxgBIAMoCzIdLmdvb2dsZS5kYXRh' + 'c3RvcmUudjFiZXRhMy5LZXlSBGtleXM='); + @$core.Deprecated('Use reserveIdsResponseDescriptor instead') const ReserveIdsResponse$json = { '1': 'ReserveIdsResponse', @@ -322,6 +367,7 @@ const ReserveIdsResponse$json = { /// Descriptor for `ReserveIdsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List reserveIdsResponseDescriptor = $convert.base64Decode('ChJSZXNlcnZlSWRzUmVzcG9uc2U='); + @$core.Deprecated('Use mutationDescriptor instead') const Mutation$json = { '1': 'Mutation', @@ -372,7 +418,13 @@ const Mutation$json = { /// Descriptor for `Mutation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List mutationDescriptor = $convert.base64Decode( - 'CghNdXRhdGlvbhI6CgZpbnNlcnQYBCABKAsyIC5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuRW50aXR5SABSBmluc2VydBI6CgZ1cGRhdGUYBSABKAsyIC5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuRW50aXR5SABSBnVwZGF0ZRI6CgZ1cHNlcnQYBiABKAsyIC5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuRW50aXR5SABSBnVwc2VydBI3CgZkZWxldGUYByABKAsyHS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuS2V5SABSBmRlbGV0ZRIjCgxiYXNlX3ZlcnNpb24YCCABKANIAVILYmFzZVZlcnNpb25CCwoJb3BlcmF0aW9uQh0KG2NvbmZsaWN0X2RldGVjdGlvbl9zdHJhdGVneQ=='); + 'CghNdXRhdGlvbhI6CgZpbnNlcnQYBCABKAsyIC5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuRW' + '50aXR5SABSBmluc2VydBI6CgZ1cGRhdGUYBSABKAsyIC5nb29nbGUuZGF0YXN0b3JlLnYxYmV0' + 'YTMuRW50aXR5SABSBnVwZGF0ZRI6CgZ1cHNlcnQYBiABKAsyIC5nb29nbGUuZGF0YXN0b3JlLn' + 'YxYmV0YTMuRW50aXR5SABSBnVwc2VydBI3CgZkZWxldGUYByABKAsyHS5nb29nbGUuZGF0YXN0' + 'b3JlLnYxYmV0YTMuS2V5SABSBmRlbGV0ZRIjCgxiYXNlX3ZlcnNpb24YCCABKANIAVILYmFzZV' + 'ZlcnNpb25CCwoJb3BlcmF0aW9uQh0KG2NvbmZsaWN0X2RldGVjdGlvbl9zdHJhdGVneQ=='); + @$core.Deprecated('Use mutationResultDescriptor instead') const MutationResult$json = { '1': 'MutationResult', @@ -398,7 +450,10 @@ const MutationResult$json = { /// Descriptor for `MutationResult`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List mutationResultDescriptor = $convert.base64Decode( - 'Cg5NdXRhdGlvblJlc3VsdBIvCgNrZXkYAyABKAsyHS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuS2V5UgNrZXkSGAoHdmVyc2lvbhgEIAEoA1IHdmVyc2lvbhIrChFjb25mbGljdF9kZXRlY3RlZBgFIAEoCFIQY29uZmxpY3REZXRlY3RlZA=='); + 'Cg5NdXRhdGlvblJlc3VsdBIvCgNrZXkYAyABKAsyHS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YT' + 'MuS2V5UgNrZXkSGAoHdmVyc2lvbhgEIAEoA1IHdmVyc2lvbhIrChFjb25mbGljdF9kZXRlY3Rl' + 'ZBgFIAEoCFIQY29uZmxpY3REZXRlY3RlZA=='); + @$core.Deprecated('Use readOptionsDescriptor instead') const ReadOptions$json = { '1': 'ReadOptions', @@ -432,7 +487,12 @@ const ReadOptions_ReadConsistency$json = { /// Descriptor for `ReadOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List readOptionsDescriptor = $convert.base64Decode( - 'CgtSZWFkT3B0aW9ucxJiChByZWFkX2NvbnNpc3RlbmN5GAEgASgOMjUuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlJlYWRPcHRpb25zLlJlYWRDb25zaXN0ZW5jeUgAUg9yZWFkQ29uc2lzdGVuY3kSIgoLdHJhbnNhY3Rpb24YAiABKAxIAFILdHJhbnNhY3Rpb24iTQoPUmVhZENvbnNpc3RlbmN5EiAKHFJFQURfQ09OU0lTVEVOQ1lfVU5TUEVDSUZJRUQQABIKCgZTVFJPTkcQARIMCghFVkVOVFVBTBACQhIKEGNvbnNpc3RlbmN5X3R5cGU='); + 'CgtSZWFkT3B0aW9ucxJiChByZWFkX2NvbnNpc3RlbmN5GAEgASgOMjUuZ29vZ2xlLmRhdGFzdG' + '9yZS52MWJldGEzLlJlYWRPcHRpb25zLlJlYWRDb25zaXN0ZW5jeUgAUg9yZWFkQ29uc2lzdGVu' + 'Y3kSIgoLdHJhbnNhY3Rpb24YAiABKAxIAFILdHJhbnNhY3Rpb24iTQoPUmVhZENvbnNpc3Rlbm' + 'N5EiAKHFJFQURfQ09OU0lTVEVOQ1lfVU5TUEVDSUZJRUQQABIKCgZTVFJPTkcQARIMCghFVkVO' + 'VFVBTBACQhIKEGNvbnNpc3RlbmN5X3R5cGU='); + @$core.Deprecated('Use transactionOptionsDescriptor instead') const TransactionOptions$json = { '1': 'TransactionOptions', @@ -483,4 +543,9 @@ const TransactionOptions_ReadOnly$json = { /// Descriptor for `TransactionOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List transactionOptionsDescriptor = $convert.base64Decode( - 'ChJUcmFuc2FjdGlvbk9wdGlvbnMSVwoKcmVhZF93cml0ZRgBIAEoCzI2Lmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5UcmFuc2FjdGlvbk9wdGlvbnMuUmVhZFdyaXRlSABSCXJlYWRXcml0ZRJUCglyZWFkX29ubHkYAiABKAsyNS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuVHJhbnNhY3Rpb25PcHRpb25zLlJlYWRPbmx5SABSCHJlYWRPbmx5Gj4KCVJlYWRXcml0ZRIxChRwcmV2aW91c190cmFuc2FjdGlvbhgBIAEoDFITcHJldmlvdXNUcmFuc2FjdGlvbhoKCghSZWFkT25seUIGCgRtb2Rl'); + 'ChJUcmFuc2FjdGlvbk9wdGlvbnMSVwoKcmVhZF93cml0ZRgBIAEoCzI2Lmdvb2dsZS5kYXRhc3' + 'RvcmUudjFiZXRhMy5UcmFuc2FjdGlvbk9wdGlvbnMuUmVhZFdyaXRlSABSCXJlYWRXcml0ZRJU' + 'CglyZWFkX29ubHkYAiABKAsyNS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuVHJhbnNhY3Rpb2' + '5PcHRpb25zLlJlYWRPbmx5SABSCHJlYWRPbmx5Gj4KCVJlYWRXcml0ZRIxChRwcmV2aW91c190' + 'cmFuc2FjdGlvbhgBIAEoDFITcHJldmlvdXNUcmFuc2FjdGlvbhoKCghSZWFkT25seUIGCgRtb2' + 'Rl'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pb.dart index ebb1b993..669b49eb 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pb.dart @@ -1,62 +1,74 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1beta3/entity.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../type/latlng.pb.dart' as $0; -import '../../protobuf/timestamp.pb.dart' as $1; - -import '../../protobuf/struct.pbenum.dart' as $2; +import '../../protobuf/struct.pbenum.dart' as $48; +import '../../protobuf/timestamp.pb.dart' as $50; +import '../../type/latlng.pb.dart' as $71; +/// A partition ID identifies a grouping of entities. The grouping is always +/// by project and namespace, however the namespace ID may be empty. +/// +/// A partition ID contains several dimensions: +/// project ID and namespace ID. +/// +/// Partition dimensions: +/// +/// - May be `""`. +/// - Must be valid UTF-8 bytes. +/// - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` +/// If the value of any dimension matches regex `__.*__`, the partition is +/// reserved/read-only. +/// A reserved/read-only partition ID is forbidden in certain documented +/// contexts. +/// +/// Foreign partition IDs (in which the project ID does +/// not match the context project ID ) are discouraged. +/// Reads and writes of foreign partition IDs may fail if the project is not in +/// an active state. class PartitionId extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PartitionId', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'namespaceId') - ..hasRequiredFields = false; - - PartitionId._() : super(); factory PartitionId({ $core.String? projectId, $core.String? namespaceId, }) { - final _result = create(); + final $result = create(); if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (namespaceId != null) { - _result.namespaceId = namespaceId; + $result.namespaceId = namespaceId; } - return _result; + return $result; } + PartitionId._() : super(); factory PartitionId.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PartitionId.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PartitionId', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'projectId') + ..aOS(4, _omitFieldNames ? '' : 'namespaceId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -66,8 +78,10 @@ class PartitionId extends $pb.GeneratedMessage { 'Will be removed in next major version') PartitionId copyWith(void Function(PartitionId) updates) => super.copyWith((message) => updates(message as PartitionId)) - as PartitionId; // ignore: deprecated_member_use + as PartitionId; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PartitionId create() => PartitionId._(); PartitionId createEmptyInstance() => create(); @@ -77,6 +91,7 @@ class PartitionId extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static PartitionId? _defaultInstance; + /// The ID of the project to which the entities belong. @$pb.TagNumber(2) $core.String get projectId => $_getSZ(0); @$pb.TagNumber(2) @@ -89,6 +104,7 @@ class PartitionId extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearProjectId() => clearField(2); + /// If not empty, the ID of the namespace to which the entities belong. @$pb.TagNumber(4) $core.String get namespaceId => $_getSZ(1); @$pb.TagNumber(4) @@ -104,64 +120,53 @@ class PartitionId extends $pb.GeneratedMessage { enum Key_PathElement_IdType { id, name, notSet } +/// A (kind, ID/name) pair used to construct a key path. +/// +/// If either name or ID is set, the element is complete. +/// If neither is set, the element is incomplete. class Key_PathElement extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Key_PathElement_IdType> - _Key_PathElement_IdTypeByTag = { - 2: Key_PathElement_IdType.id, - 3: Key_PathElement_IdType.name, - 0: Key_PathElement_IdType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Key.PathElement', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..oo(0, [2, 3]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'kind') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - Key_PathElement._() : super(); factory Key_PathElement({ $core.String? kind, $fixnum.Int64? id, $core.String? name, }) { - final _result = create(); + final $result = create(); if (kind != null) { - _result.kind = kind; + $result.kind = kind; } if (id != null) { - _result.id = id; + $result.id = id; } if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + Key_PathElement._() : super(); factory Key_PathElement.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Key_PathElement.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Key_PathElement_IdType> + _Key_PathElement_IdTypeByTag = { + 2: Key_PathElement_IdType.id, + 3: Key_PathElement_IdType.name, + 0: Key_PathElement_IdType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Key.PathElement', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..oo(0, [2, 3]) + ..aOS(1, _omitFieldNames ? '' : 'kind') + ..aInt64(2, _omitFieldNames ? '' : 'id') + ..aOS(3, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -171,8 +176,10 @@ class Key_PathElement extends $pb.GeneratedMessage { 'Will be removed in next major version') Key_PathElement copyWith(void Function(Key_PathElement) updates) => super.copyWith((message) => updates(message as Key_PathElement)) - as Key_PathElement; // ignore: deprecated_member_use + as Key_PathElement; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Key_PathElement create() => Key_PathElement._(); Key_PathElement createEmptyInstance() => create(); @@ -187,6 +194,10 @@ class Key_PathElement extends $pb.GeneratedMessage { _Key_PathElement_IdTypeByTag[$_whichOneof(0)]!; void clearIdType() => clearField($_whichOneof(0)); + /// The kind of the entity. + /// A kind matching regex `__.*__` is reserved/read-only. + /// A kind must not contain more than 1500 bytes when UTF-8 encoded. + /// Cannot be `""`. @$pb.TagNumber(1) $core.String get kind => $_getSZ(0); @$pb.TagNumber(1) @@ -199,6 +210,9 @@ class Key_PathElement extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearKind() => clearField(1); + /// The auto-allocated ID of the entity. + /// Never equal to zero. Values less than zero are discouraged and may not + /// be supported in the future. @$pb.TagNumber(2) $fixnum.Int64 get id => $_getI64(1); @$pb.TagNumber(2) @@ -211,6 +225,10 @@ class Key_PathElement extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearId() => clearField(2); + /// The name of the entity. + /// A name matching regex `__.*__` is reserved/read-only. + /// A name must not be more than 1500 bytes when UTF-8 encoded. + /// Cannot be `""`. @$pb.TagNumber(3) $core.String get name => $_getSZ(2); @$pb.TagNumber(3) @@ -224,48 +242,43 @@ class Key_PathElement extends $pb.GeneratedMessage { void clearName() => clearField(3); } +/// A unique identifier for an entity. +/// If a key's partition ID or any of its path kinds or names are +/// reserved/read-only, the key is reserved/read-only. +/// A reserved/read-only key is forbidden in certain documented contexts. class Key extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Key', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'partitionId', - subBuilder: PartitionId.create) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path', - $pb.PbFieldType.PM, - subBuilder: Key_PathElement.create) - ..hasRequiredFields = false; - - Key._() : super(); factory Key({ PartitionId? partitionId, $core.Iterable? path, }) { - final _result = create(); + final $result = create(); if (partitionId != null) { - _result.partitionId = partitionId; + $result.partitionId = partitionId; } if (path != null) { - _result.path.addAll(path); + $result.path.addAll(path); } - return _result; + return $result; } + Key._() : super(); factory Key.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Key.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Key', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'partitionId', + subBuilder: PartitionId.create) + ..pc(2, _omitFieldNames ? '' : 'path', $pb.PbFieldType.PM, + subBuilder: Key_PathElement.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') @@ -274,9 +287,10 @@ class Key extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Key copyWith(void Function(Key) updates) => - super.copyWith((message) => updates(message as Key)) - as Key; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Key)) as Key; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Key create() => Key._(); Key createEmptyInstance() => create(); @@ -286,6 +300,9 @@ class Key extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Key? _defaultInstance; + /// Entities are partitioned into subsets, currently identified by a project + /// ID and namespace ID. + /// Queries are scoped to a single partition. @$pb.TagNumber(1) PartitionId get partitionId => $_getN(0); @$pb.TagNumber(1) @@ -300,45 +317,54 @@ class Key extends $pb.GeneratedMessage { @$pb.TagNumber(1) PartitionId ensurePartitionId() => $_ensure(0); + /// The entity path. + /// An entity path consists of one or more elements composed of a kind and a + /// string or numerical identifier, which identify entities. The first + /// element identifies a _root entity_, the second element identifies + /// a _child_ of the root entity, the third element identifies a child of the + /// second entity, and so forth. The entities identified by all prefixes of + /// the path are called the element's _ancestors_. + /// + /// An entity path is always fully complete: *all* of the entity's ancestors + /// are required to be in the path along with the entity identifier itself. + /// The only exception is that in some documented cases, the identifier in the + /// last path element (for the entity) itself may be omitted. For example, + /// the last path element of the key of `Mutation.insert` may have no + /// identifier. + /// + /// A path can never be empty, and a path can have at most 100 elements. @$pb.TagNumber(2) $core.List get path => $_getList(1); } +/// An array value. class ArrayValue extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ArrayValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'values', - $pb.PbFieldType.PM, - subBuilder: Value.create) - ..hasRequiredFields = false; - - ArrayValue._() : super(); factory ArrayValue({ $core.Iterable? values, }) { - final _result = create(); + final $result = create(); if (values != null) { - _result.values.addAll(values); + $result.values.addAll(values); } - return _result; + return $result; } + ArrayValue._() : super(); factory ArrayValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ArrayValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ArrayValue', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: Value.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') @@ -347,9 +373,10 @@ class ArrayValue extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ArrayValue copyWith(void Function(ArrayValue) updates) => - super.copyWith((message) => updates(message as ArrayValue)) - as ArrayValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ArrayValue)) as ArrayValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ArrayValue create() => ArrayValue._(); ArrayValue createEmptyInstance() => create(); @@ -359,6 +386,9 @@ class ArrayValue extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ArrayValue? _defaultInstance; + /// Values in the array. + /// The order of this array may not be preserved if it contains a mix of + /// indexed and unindexed values. @$pb.TagNumber(1) $core.List get values => $_getList(0); } @@ -378,125 +408,119 @@ enum Value_ValueType { notSet } +/// A message that can hold any of the supported value types and associated +/// metadata. class Value extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Value_ValueType> _Value_ValueTypeByTag = { - 1: Value_ValueType.booleanValue, - 2: Value_ValueType.integerValue, - 3: Value_ValueType.doubleValue, - 5: Value_ValueType.keyValue, - 6: Value_ValueType.entityValue, - 8: Value_ValueType.geoPointValue, - 9: Value_ValueType.arrayValue, - 10: Value_ValueType.timestampValue, - 11: Value_ValueType.nullValue, - 17: Value_ValueType.stringValue, - 18: Value_ValueType.blobValue, - 0: Value_ValueType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Value', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..oo(0, [1, 2, 3, 5, 6, 8, 9, 10, 11, 17, 18]) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'booleanValue') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'integerValue') - ..a<$core.double>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'doubleValue', - $pb.PbFieldType.OD) - ..aOM( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'keyValue', - subBuilder: Key.create) - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityValue', subBuilder: Entity.create) - ..aOM<$0.LatLng>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'geoPointValue', subBuilder: $0.LatLng.create) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'arrayValue', subBuilder: ArrayValue.create) - ..aOM<$1.Timestamp>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timestampValue', subBuilder: $1.Timestamp.create) - ..e<$2.NullValue>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nullValue', $pb.PbFieldType.OE, defaultOrMaker: $2.NullValue.NULL_VALUE, valueOf: $2.NullValue.valueOf, enumValues: $2.NullValue.values) - ..a<$core.int>(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'meaning', $pb.PbFieldType.O3) - ..aOS(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stringValue') - ..a<$core.List<$core.int>>(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'blobValue', $pb.PbFieldType.OY) - ..aOB(19, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'excludeFromIndexes') - ..hasRequiredFields = false; - - Value._() : super(); factory Value({ $core.bool? booleanValue, $fixnum.Int64? integerValue, $core.double? doubleValue, Key? keyValue, Entity? entityValue, - $0.LatLng? geoPointValue, + $71.LatLng? geoPointValue, ArrayValue? arrayValue, - $1.Timestamp? timestampValue, - $2.NullValue? nullValue, + $50.Timestamp? timestampValue, + $48.NullValue? nullValue, $core.int? meaning, $core.String? stringValue, $core.List<$core.int>? blobValue, $core.bool? excludeFromIndexes, }) { - final _result = create(); + final $result = create(); if (booleanValue != null) { - _result.booleanValue = booleanValue; + $result.booleanValue = booleanValue; } if (integerValue != null) { - _result.integerValue = integerValue; + $result.integerValue = integerValue; } if (doubleValue != null) { - _result.doubleValue = doubleValue; + $result.doubleValue = doubleValue; } if (keyValue != null) { - _result.keyValue = keyValue; + $result.keyValue = keyValue; } if (entityValue != null) { - _result.entityValue = entityValue; + $result.entityValue = entityValue; } if (geoPointValue != null) { - _result.geoPointValue = geoPointValue; + $result.geoPointValue = geoPointValue; } if (arrayValue != null) { - _result.arrayValue = arrayValue; + $result.arrayValue = arrayValue; } if (timestampValue != null) { - _result.timestampValue = timestampValue; + $result.timestampValue = timestampValue; } if (nullValue != null) { - _result.nullValue = nullValue; + $result.nullValue = nullValue; } if (meaning != null) { - _result.meaning = meaning; + $result.meaning = meaning; } if (stringValue != null) { - _result.stringValue = stringValue; + $result.stringValue = stringValue; } if (blobValue != null) { - _result.blobValue = blobValue; + $result.blobValue = blobValue; } if (excludeFromIndexes != null) { - _result.excludeFromIndexes = excludeFromIndexes; + $result.excludeFromIndexes = excludeFromIndexes; } - return _result; + return $result; } + Value._() : super(); factory Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Value_ValueType> _Value_ValueTypeByTag = { + 1: Value_ValueType.booleanValue, + 2: Value_ValueType.integerValue, + 3: Value_ValueType.doubleValue, + 5: Value_ValueType.keyValue, + 6: Value_ValueType.entityValue, + 8: Value_ValueType.geoPointValue, + 9: Value_ValueType.arrayValue, + 10: Value_ValueType.timestampValue, + 11: Value_ValueType.nullValue, + 17: Value_ValueType.stringValue, + 18: Value_ValueType.blobValue, + 0: Value_ValueType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Value', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..oo(0, [1, 2, 3, 5, 6, 8, 9, 10, 11, 17, 18]) + ..aOB(1, _omitFieldNames ? '' : 'booleanValue') + ..aInt64(2, _omitFieldNames ? '' : 'integerValue') + ..a<$core.double>( + 3, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD) + ..aOM(5, _omitFieldNames ? '' : 'keyValue', subBuilder: Key.create) + ..aOM(6, _omitFieldNames ? '' : 'entityValue', + subBuilder: Entity.create) + ..aOM<$71.LatLng>(8, _omitFieldNames ? '' : 'geoPointValue', + subBuilder: $71.LatLng.create) + ..aOM(9, _omitFieldNames ? '' : 'arrayValue', + subBuilder: ArrayValue.create) + ..aOM<$50.Timestamp>(10, _omitFieldNames ? '' : 'timestampValue', + subBuilder: $50.Timestamp.create) + ..e<$48.NullValue>( + 11, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, + defaultOrMaker: $48.NullValue.NULL_VALUE, + valueOf: $48.NullValue.valueOf, + enumValues: $48.NullValue.values) + ..a<$core.int>(14, _omitFieldNames ? '' : 'meaning', $pb.PbFieldType.O3) + ..aOS(17, _omitFieldNames ? '' : 'stringValue') + ..a<$core.List<$core.int>>( + 18, _omitFieldNames ? '' : 'blobValue', $pb.PbFieldType.OY) + ..aOB(19, _omitFieldNames ? '' : 'excludeFromIndexes') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -505,9 +529,10 @@ class Value extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Value copyWith(void Function(Value) updates) => - super.copyWith((message) => updates(message as Value)) - as Value; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Value)) as Value; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Value create() => Value._(); Value createEmptyInstance() => create(); @@ -520,6 +545,7 @@ class Value extends $pb.GeneratedMessage { Value_ValueType whichValueType() => _Value_ValueTypeByTag[$_whichOneof(0)]!; void clearValueType() => clearField($_whichOneof(0)); + /// A boolean value. @$pb.TagNumber(1) $core.bool get booleanValue => $_getBF(0); @$pb.TagNumber(1) @@ -532,6 +558,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearBooleanValue() => clearField(1); + /// An integer value. @$pb.TagNumber(2) $fixnum.Int64 get integerValue => $_getI64(1); @$pb.TagNumber(2) @@ -544,6 +571,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearIntegerValue() => clearField(2); + /// A double value. @$pb.TagNumber(3) $core.double get doubleValue => $_getN(2); @$pb.TagNumber(3) @@ -556,6 +584,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDoubleValue() => clearField(3); + /// A key value. @$pb.TagNumber(5) Key get keyValue => $_getN(3); @$pb.TagNumber(5) @@ -570,6 +599,11 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(5) Key ensureKeyValue() => $_ensure(3); + /// An entity value. + /// + /// - May have no key. + /// - May have a key with an incomplete key path. + /// - May have a reserved/read-only key. @$pb.TagNumber(6) Entity get entityValue => $_getN(4); @$pb.TagNumber(6) @@ -584,10 +618,11 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(6) Entity ensureEntityValue() => $_ensure(4); + /// A geo point value representing a point on the surface of Earth. @$pb.TagNumber(8) - $0.LatLng get geoPointValue => $_getN(5); + $71.LatLng get geoPointValue => $_getN(5); @$pb.TagNumber(8) - set geoPointValue($0.LatLng v) { + set geoPointValue($71.LatLng v) { setField(8, v); } @@ -596,8 +631,12 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearGeoPointValue() => clearField(8); @$pb.TagNumber(8) - $0.LatLng ensureGeoPointValue() => $_ensure(5); + $71.LatLng ensureGeoPointValue() => $_ensure(5); + /// An array value. + /// Cannot contain another array value. + /// A `Value` instance that sets field `array_value` must not set fields + /// `meaning` or `exclude_from_indexes`. @$pb.TagNumber(9) ArrayValue get arrayValue => $_getN(6); @$pb.TagNumber(9) @@ -612,10 +651,13 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(9) ArrayValue ensureArrayValue() => $_ensure(6); + /// A timestamp value. + /// When stored in the Datastore, precise only to microseconds; + /// any additional precision is rounded down. @$pb.TagNumber(10) - $1.Timestamp get timestampValue => $_getN(7); + $50.Timestamp get timestampValue => $_getN(7); @$pb.TagNumber(10) - set timestampValue($1.Timestamp v) { + set timestampValue($50.Timestamp v) { setField(10, v); } @@ -624,12 +666,13 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearTimestampValue() => clearField(10); @$pb.TagNumber(10) - $1.Timestamp ensureTimestampValue() => $_ensure(7); + $50.Timestamp ensureTimestampValue() => $_ensure(7); + /// A null value. @$pb.TagNumber(11) - $2.NullValue get nullValue => $_getN(8); + $48.NullValue get nullValue => $_getN(8); @$pb.TagNumber(11) - set nullValue($2.NullValue v) { + set nullValue($48.NullValue v) { setField(11, v); } @@ -638,6 +681,7 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearNullValue() => clearField(11); + /// The `meaning` field should only be populated for backwards compatibility. @$pb.TagNumber(14) $core.int get meaning => $_getIZ(9); @$pb.TagNumber(14) @@ -650,6 +694,9 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearMeaning() => clearField(14); + /// A UTF-8 encoded string value. + /// When `exclude_from_indexes` is false (it is indexed), may have at most + /// 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. @$pb.TagNumber(17) $core.String get stringValue => $_getSZ(10); @$pb.TagNumber(17) @@ -662,6 +709,10 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(17) void clearStringValue() => clearField(17); + /// A blob value. + /// May have at most 1,000,000 bytes. + /// When `exclude_from_indexes` is false, may have at most 1500 bytes. + /// In JSON requests, must be base64-encoded. @$pb.TagNumber(18) $core.List<$core.int> get blobValue => $_getN(11); @$pb.TagNumber(18) @@ -674,6 +725,8 @@ class Value extends $pb.GeneratedMessage { @$pb.TagNumber(18) void clearBlobValue() => clearField(18); + /// If the value should be excluded from all indexes including those defined + /// explicitly. @$pb.TagNumber(19) $core.bool get excludeFromIndexes => $_getBF(12); @$pb.TagNumber(19) @@ -687,51 +740,48 @@ class Value extends $pb.GeneratedMessage { void clearExcludeFromIndexes() => clearField(19); } +/// A Datastore data object. +/// +/// An entity is limited to 1 megabyte when stored. That _roughly_ +/// corresponds to a limit of 1 megabyte for the serialized form of this +/// message. class Entity extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Entity', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'key', - subBuilder: Key.create) - ..m<$core.String, Value>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'properties', - entryClassName: 'Entity.PropertiesEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: Value.create, - packageName: const $pb.PackageName('google.datastore.v1beta3')) - ..hasRequiredFields = false; - - Entity._() : super(); factory Entity({ Key? key, $core.Map<$core.String, Value>? properties, }) { - final _result = create(); + final $result = create(); if (key != null) { - _result.key = key; + $result.key = key; } if (properties != null) { - _result.properties.addAll(properties); + $result.properties.addAll(properties); } - return _result; + return $result; } + Entity._() : super(); factory Entity.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Entity.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Entity', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'key', subBuilder: Key.create) + ..m<$core.String, Value>(3, _omitFieldNames ? '' : 'properties', + entryClassName: 'Entity.PropertiesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: Value.create, + valueDefaultOrMaker: Value.getDefault, + packageName: const $pb.PackageName('google.datastore.v1beta3')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -740,9 +790,10 @@ class Entity extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Entity copyWith(void Function(Entity) updates) => - super.copyWith((message) => updates(message as Entity)) - as Entity; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Entity)) as Entity; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Entity create() => Entity._(); Entity createEmptyInstance() => create(); @@ -752,6 +803,12 @@ class Entity extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Entity? _defaultInstance; + /// The entity's key. + /// + /// An entity must have a key, unless otherwise documented (for example, + /// an entity in `Value.entity_value` may have no key). + /// An entity's kind is its key path's last element's kind, + /// or null if it has no key. @$pb.TagNumber(1) Key get key => $_getN(0); @$pb.TagNumber(1) @@ -766,6 +823,16 @@ class Entity extends $pb.GeneratedMessage { @$pb.TagNumber(1) Key ensureKey() => $_ensure(0); + /// The entity's properties. + /// The map's keys are property names. + /// A property name matching regex `__.*__` is reserved. + /// A reserved property name is forbidden in certain documented contexts. + /// The name must not contain more than 500 characters. + /// The name cannot be `""`. @$pb.TagNumber(3) $core.Map<$core.String, Value> get properties => $_getMap(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pbenum.dart index ffd007cd..24765d4a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1beta3/entity.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pbjson.dart index e92f3189..fc2fb204 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/entity.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1beta3/entity.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 partitionIdDescriptor instead') @@ -20,7 +24,9 @@ const PartitionId$json = { /// Descriptor for `PartitionId`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List partitionIdDescriptor = $convert.base64Decode( - 'CgtQYXJ0aXRpb25JZBIdCgpwcm9qZWN0X2lkGAIgASgJUglwcm9qZWN0SWQSIQoMbmFtZXNwYWNlX2lkGAQgASgJUgtuYW1lc3BhY2VJZA=='); + 'CgtQYXJ0aXRpb25JZBIdCgpwcm9qZWN0X2lkGAIgASgJUglwcm9qZWN0SWQSIQoMbmFtZXNwYW' + 'NlX2lkGAQgASgJUgtuYW1lc3BhY2VJZA=='); + @$core.Deprecated('Use keyDescriptor instead') const Key$json = { '1': 'Key', @@ -60,7 +66,12 @@ const Key_PathElement$json = { /// Descriptor for `Key`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List keyDescriptor = $convert.base64Decode( - 'CgNLZXkSSAoMcGFydGl0aW9uX2lkGAEgASgLMiUuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlBhcnRpdGlvbklkUgtwYXJ0aXRpb25JZBI9CgRwYXRoGAIgAygLMikuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLktleS5QYXRoRWxlbWVudFIEcGF0aBpUCgtQYXRoRWxlbWVudBISCgRraW5kGAEgASgJUgRraW5kEhAKAmlkGAIgASgDSABSAmlkEhQKBG5hbWUYAyABKAlIAFIEbmFtZUIJCgdpZF90eXBl'); + 'CgNLZXkSSAoMcGFydGl0aW9uX2lkGAEgASgLMiUuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLl' + 'BhcnRpdGlvbklkUgtwYXJ0aXRpb25JZBI9CgRwYXRoGAIgAygLMikuZ29vZ2xlLmRhdGFzdG9y' + 'ZS52MWJldGEzLktleS5QYXRoRWxlbWVudFIEcGF0aBpUCgtQYXRoRWxlbWVudBISCgRraW5kGA' + 'EgASgJUgRraW5kEhAKAmlkGAIgASgDSABSAmlkEhQKBG5hbWUYAyABKAlIAFIEbmFtZUIJCgdp' + 'ZF90eXBl'); + @$core.Deprecated('Use arrayValueDescriptor instead') const ArrayValue$json = { '1': 'ArrayValue', @@ -78,7 +89,9 @@ const ArrayValue$json = { /// Descriptor for `ArrayValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List arrayValueDescriptor = $convert.base64Decode( - 'CgpBcnJheVZhbHVlEjcKBnZhbHVlcxgBIAMoCzIfLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5WYWx1ZVIGdmFsdWVz'); + 'CgpBcnJheVZhbHVlEjcKBnZhbHVlcxgBIAMoCzIfLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy' + '5WYWx1ZVIGdmFsdWVz'); + @$core.Deprecated('Use valueDescriptor instead') const Value$json = { '1': 'Value', @@ -172,7 +185,20 @@ const Value$json = { /// Descriptor for `Value`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List valueDescriptor = $convert.base64Decode( - 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAsgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZUgAUgludWxsVmFsdWUSJQoNYm9vbGVhbl92YWx1ZRgBIAEoCEgAUgxib29sZWFuVmFsdWUSJQoNaW50ZWdlcl92YWx1ZRgCIAEoA0gAUgxpbnRlZ2VyVmFsdWUSIwoMZG91YmxlX3ZhbHVlGAMgASgBSABSC2RvdWJsZVZhbHVlEkUKD3RpbWVzdGFtcF92YWx1ZRgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIAFIOdGltZXN0YW1wVmFsdWUSPAoJa2V5X3ZhbHVlGAUgASgLMh0uZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLktleUgAUghrZXlWYWx1ZRIjCgxzdHJpbmdfdmFsdWUYESABKAlIAFILc3RyaW5nVmFsdWUSHwoKYmxvYl92YWx1ZRgSIAEoDEgAUglibG9iVmFsdWUSPQoPZ2VvX3BvaW50X3ZhbHVlGAggASgLMhMuZ29vZ2xlLnR5cGUuTGF0TG5nSABSDWdlb1BvaW50VmFsdWUSRQoMZW50aXR5X3ZhbHVlGAYgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkVudGl0eUgAUgtlbnRpdHlWYWx1ZRJHCgthcnJheV92YWx1ZRgJIAEoCzIkLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5BcnJheVZhbHVlSABSCmFycmF5VmFsdWUSGAoHbWVhbmluZxgOIAEoBVIHbWVhbmluZxIwChRleGNsdWRlX2Zyb21faW5kZXhlcxgTIAEoCFISZXhjbHVkZUZyb21JbmRleGVzQgwKCnZhbHVlX3R5cGU='); + 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAsgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZU' + 'gAUgludWxsVmFsdWUSJQoNYm9vbGVhbl92YWx1ZRgBIAEoCEgAUgxib29sZWFuVmFsdWUSJQoN' + 'aW50ZWdlcl92YWx1ZRgCIAEoA0gAUgxpbnRlZ2VyVmFsdWUSIwoMZG91YmxlX3ZhbHVlGAMgAS' + 'gBSABSC2RvdWJsZVZhbHVlEkUKD3RpbWVzdGFtcF92YWx1ZRgKIAEoCzIaLmdvb2dsZS5wcm90' + 'b2J1Zi5UaW1lc3RhbXBIAFIOdGltZXN0YW1wVmFsdWUSPAoJa2V5X3ZhbHVlGAUgASgLMh0uZ2' + '9vZ2xlLmRhdGFzdG9yZS52MWJldGEzLktleUgAUghrZXlWYWx1ZRIjCgxzdHJpbmdfdmFsdWUY' + 'ESABKAlIAFILc3RyaW5nVmFsdWUSHwoKYmxvYl92YWx1ZRgSIAEoDEgAUglibG9iVmFsdWUSPQ' + 'oPZ2VvX3BvaW50X3ZhbHVlGAggASgLMhMuZ29vZ2xlLnR5cGUuTGF0TG5nSABSDWdlb1BvaW50' + 'VmFsdWUSRQoMZW50aXR5X3ZhbHVlGAYgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLk' + 'VudGl0eUgAUgtlbnRpdHlWYWx1ZRJHCgthcnJheV92YWx1ZRgJIAEoCzIkLmdvb2dsZS5kYXRh' + 'c3RvcmUudjFiZXRhMy5BcnJheVZhbHVlSABSCmFycmF5VmFsdWUSGAoHbWVhbmluZxgOIAEoBV' + 'IHbWVhbmluZxIwChRleGNsdWRlX2Zyb21faW5kZXhlcxgTIAEoCFISZXhjbHVkZUZyb21JbmRl' + 'eGVzQgwKCnZhbHVlX3R5cGU='); + @$core.Deprecated('Use entityDescriptor instead') const Entity$json = { '1': 'Entity', @@ -216,4 +242,8 @@ const Entity_PropertiesEntry$json = { /// Descriptor for `Entity`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List entityDescriptor = $convert.base64Decode( - 'CgZFbnRpdHkSLwoDa2V5GAEgASgLMh0uZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLktleVIDa2V5ElAKCnByb3BlcnRpZXMYAyADKAsyMC5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuRW50aXR5LlByb3BlcnRpZXNFbnRyeVIKcHJvcGVydGllcxpeCg9Qcm9wZXJ0aWVzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSNQoFdmFsdWUYAiABKAsyHy5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuVmFsdWVSBXZhbHVlOgI4AQ=='); + 'CgZFbnRpdHkSLwoDa2V5GAEgASgLMh0uZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLktleVIDa2' + 'V5ElAKCnByb3BlcnRpZXMYAyADKAsyMC5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuRW50aXR5' + 'LlByb3BlcnRpZXNFbnRyeVIKcHJvcGVydGllcxpeCg9Qcm9wZXJ0aWVzRW50cnkSEAoDa2V5GA' + 'EgASgJUgNrZXkSNQoFdmFsdWUYAiABKAsyHy5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuVmFs' + 'dWVSBXZhbHVlOgI4AQ=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pb.dart index beca62c5..cac5a0b1 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pb.dart @@ -1,69 +1,64 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1beta3/query.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'entity.pb.dart' as $0; -import '../../protobuf/wrappers.pb.dart' as $1; - +import '../../protobuf/wrappers.pb.dart' as $73; +import 'entity.pb.dart' as $77; import 'query.pbenum.dart'; export 'query.pbenum.dart'; +/// The result of fetching an entity from Datastore. class EntityResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EntityResult', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOM<$0.Entity>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entity', - subBuilder: $0.Entity.create) - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cursor', - $pb.PbFieldType.OY) - ..aInt64( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version') - ..hasRequiredFields = false; - - EntityResult._() : super(); factory EntityResult({ - $0.Entity? entity, + $77.Entity? entity, $core.List<$core.int>? cursor, $fixnum.Int64? version, }) { - final _result = create(); + final $result = create(); if (entity != null) { - _result.entity = entity; + $result.entity = entity; } if (cursor != null) { - _result.cursor = cursor; + $result.cursor = cursor; } if (version != null) { - _result.version = version; + $result.version = version; } - return _result; + return $result; } + EntityResult._() : super(); factory EntityResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EntityResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EntityResult', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOM<$77.Entity>(1, _omitFieldNames ? '' : 'entity', + subBuilder: $77.Entity.create) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'cursor', $pb.PbFieldType.OY) + ..aInt64(4, _omitFieldNames ? '' : 'version') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -73,8 +68,10 @@ class EntityResult extends $pb.GeneratedMessage { 'Will be removed in next major version') EntityResult copyWith(void Function(EntityResult) updates) => super.copyWith((message) => updates(message as EntityResult)) - as EntityResult; // ignore: deprecated_member_use + as EntityResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EntityResult create() => EntityResult._(); EntityResult createEmptyInstance() => create(); @@ -85,10 +82,11 @@ class EntityResult extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EntityResult? _defaultInstance; + /// The resulting entity. @$pb.TagNumber(1) - $0.Entity get entity => $_getN(0); + $77.Entity get entity => $_getN(0); @$pb.TagNumber(1) - set entity($0.Entity v) { + set entity($77.Entity v) { setField(1, v); } @@ -97,8 +95,10 @@ class EntityResult extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearEntity() => clearField(1); @$pb.TagNumber(1) - $0.Entity ensureEntity() => $_ensure(0); + $77.Entity ensureEntity() => $_ensure(0); + /// A cursor that points to the position after the result entity. + /// Set only when the `EntityResult` is part of a `QueryResultBatch` message. @$pb.TagNumber(3) $core.List<$core.int> get cursor => $_getN(1); @$pb.TagNumber(3) @@ -111,6 +111,16 @@ class EntityResult extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearCursor() => clearField(3); + /// The version of the entity, a strictly positive number that monotonically + /// increases with changes to the entity. + /// + /// This field is set for + /// [`FULL`][google.datastore.v1beta3.EntityResult.ResultType.FULL] entity + /// results. + /// + /// For [missing][google.datastore.v1beta3.LookupResponse.missing] entities in + /// `LookupResponse`, this is the version of the snapshot that was used to look + /// up the entity, and it is always set except for eventually consistent reads. @$pb.TagNumber(4) $fixnum.Int64 get version => $_getI64(2); @$pb.TagNumber(4) @@ -124,32 +134,8 @@ class EntityResult extends $pb.GeneratedMessage { void clearVersion() => clearField(4); } +/// A query for entities. class Query extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Query', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..pc( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'projection', $pb.PbFieldType.PM, - subBuilder: Projection.create) - ..pc( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'kind', $pb.PbFieldType.PM, - subBuilder: KindExpression.create) - ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter', - subBuilder: Filter.create) - ..pc( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'order', $pb.PbFieldType.PM, - subBuilder: PropertyOrder.create) - ..pc(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'distinctOn', $pb.PbFieldType.PM, subBuilder: PropertyReference.create) - ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startCursor', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endCursor', $pb.PbFieldType.OY) - ..a<$core.int>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'offset', $pb.PbFieldType.O3) - ..aOM<$1.Int32Value>(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'limit', subBuilder: $1.Int32Value.create) - ..hasRequiredFields = false; - - Query._() : super(); factory Query({ $core.Iterable? projection, $core.Iterable? kind, @@ -159,44 +145,70 @@ class Query extends $pb.GeneratedMessage { $core.List<$core.int>? startCursor, $core.List<$core.int>? endCursor, $core.int? offset, - $1.Int32Value? limit, + $73.Int32Value? limit, }) { - final _result = create(); + final $result = create(); if (projection != null) { - _result.projection.addAll(projection); + $result.projection.addAll(projection); } if (kind != null) { - _result.kind.addAll(kind); + $result.kind.addAll(kind); } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } if (order != null) { - _result.order.addAll(order); + $result.order.addAll(order); } if (distinctOn != null) { - _result.distinctOn.addAll(distinctOn); + $result.distinctOn.addAll(distinctOn); } if (startCursor != null) { - _result.startCursor = startCursor; + $result.startCursor = startCursor; } if (endCursor != null) { - _result.endCursor = endCursor; + $result.endCursor = endCursor; } if (offset != null) { - _result.offset = offset; + $result.offset = offset; } if (limit != null) { - _result.limit = limit; + $result.limit = limit; } - return _result; + return $result; } + Query._() : super(); factory Query.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Query.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Query', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..pc(2, _omitFieldNames ? '' : 'projection', $pb.PbFieldType.PM, + subBuilder: Projection.create) + ..pc(3, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.PM, + subBuilder: KindExpression.create) + ..aOM(4, _omitFieldNames ? '' : 'filter', subBuilder: Filter.create) + ..pc(5, _omitFieldNames ? '' : 'order', $pb.PbFieldType.PM, + subBuilder: PropertyOrder.create) + ..pc( + 6, _omitFieldNames ? '' : 'distinctOn', $pb.PbFieldType.PM, + subBuilder: PropertyReference.create) + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'startCursor', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 8, _omitFieldNames ? '' : 'endCursor', $pb.PbFieldType.OY) + ..a<$core.int>(10, _omitFieldNames ? '' : 'offset', $pb.PbFieldType.O3) + ..aOM<$73.Int32Value>(12, _omitFieldNames ? '' : 'limit', + subBuilder: $73.Int32Value.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') @@ -205,9 +217,10 @@ class Query extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Query copyWith(void Function(Query) updates) => - super.copyWith((message) => updates(message as Query)) - as Query; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Query)) as Query; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Query create() => Query._(); Query createEmptyInstance() => create(); @@ -217,12 +230,16 @@ class Query extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Query? _defaultInstance; + /// The projection to return. Defaults to returning all properties. @$pb.TagNumber(2) $core.List get projection => $_getList(0); + /// The kinds to query (if empty, returns entities of all kinds). + /// Currently at most 1 kind may be specified. @$pb.TagNumber(3) $core.List get kind => $_getList(1); + /// The filter to apply. @$pb.TagNumber(4) Filter get filter => $_getN(2); @$pb.TagNumber(4) @@ -237,12 +254,20 @@ class Query extends $pb.GeneratedMessage { @$pb.TagNumber(4) Filter ensureFilter() => $_ensure(2); + /// The order to apply to the query results (if empty, order is unspecified). @$pb.TagNumber(5) $core.List get order => $_getList(3); + /// The properties to make distinct. The query results will contain the first + /// result for each distinct combination of values for the given properties + /// (if empty, all results are returned). @$pb.TagNumber(6) $core.List get distinctOn => $_getList(4); + /// A starting point for the query results. Query cursors are + /// returned in query result batches and + /// [can only be used to continue the same + /// query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). @$pb.TagNumber(7) $core.List<$core.int> get startCursor => $_getN(5); @$pb.TagNumber(7) @@ -255,6 +280,10 @@ class Query extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearStartCursor() => clearField(7); + /// An ending point for the query results. Query cursors are + /// returned in query result batches and + /// [can only be used to limit the same + /// query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). @$pb.TagNumber(8) $core.List<$core.int> get endCursor => $_getN(6); @$pb.TagNumber(8) @@ -267,6 +296,8 @@ class Query extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearEndCursor() => clearField(8); + /// The number of results to skip. Applies before limit, but after all other + /// constraints. Optional. Must be >= 0 if specified. @$pb.TagNumber(10) $core.int get offset => $_getIZ(7); @$pb.TagNumber(10) @@ -279,10 +310,14 @@ class Query extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearOffset() => clearField(10); + /// The maximum number of results to return. Applies after all other + /// constraints. Optional. + /// Unspecified is interpreted as no limit. + /// Must be >= 0 if specified. @$pb.TagNumber(12) - $1.Int32Value get limit => $_getN(8); + $73.Int32Value get limit => $_getN(8); @$pb.TagNumber(12) - set limit($1.Int32Value v) { + set limit($73.Int32Value v) { setField(12, v); } @@ -291,42 +326,36 @@ class Query extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearLimit() => clearField(12); @$pb.TagNumber(12) - $1.Int32Value ensureLimit() => $_ensure(8); + $73.Int32Value ensureLimit() => $_ensure(8); } +/// A representation of a kind. class KindExpression extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'KindExpression', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - KindExpression._() : super(); factory KindExpression({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + KindExpression._() : super(); factory KindExpression.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory KindExpression.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'KindExpression', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -336,8 +365,10 @@ class KindExpression extends $pb.GeneratedMessage { 'Will be removed in next major version') KindExpression copyWith(void Function(KindExpression) updates) => super.copyWith((message) => updates(message as KindExpression)) - as KindExpression; // ignore: deprecated_member_use + as KindExpression; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static KindExpression create() => KindExpression._(); KindExpression createEmptyInstance() => create(); @@ -348,6 +379,7 @@ class KindExpression extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static KindExpression? _defaultInstance; + /// The name of the kind. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -361,39 +393,33 @@ class KindExpression extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// A reference to a property relative to the kind expressions. class PropertyReference extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PropertyReference', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - PropertyReference._() : super(); factory PropertyReference({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + PropertyReference._() : super(); factory PropertyReference.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PropertyReference.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PropertyReference', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -403,8 +429,10 @@ class PropertyReference extends $pb.GeneratedMessage { 'Will be removed in next major version') PropertyReference copyWith(void Function(PropertyReference) updates) => super.copyWith((message) => updates(message as PropertyReference)) - as PropertyReference; // ignore: deprecated_member_use + as PropertyReference; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PropertyReference create() => PropertyReference._(); PropertyReference createEmptyInstance() => create(); @@ -415,6 +443,8 @@ class PropertyReference extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static PropertyReference? _defaultInstance; + /// The name of the property. + /// If name includes "."s, it may be interpreted as a property name path. @$pb.TagNumber(2) $core.String get name => $_getSZ(0); @$pb.TagNumber(2) @@ -428,40 +458,34 @@ class PropertyReference extends $pb.GeneratedMessage { void clearName() => clearField(2); } +/// A representation of a property in a projection. class Projection extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Projection', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'property', - subBuilder: PropertyReference.create) - ..hasRequiredFields = false; - - Projection._() : super(); factory Projection({ PropertyReference? property, }) { - final _result = create(); + final $result = create(); if (property != null) { - _result.property = property; + $result.property = property; } - return _result; + return $result; } + Projection._() : super(); factory Projection.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Projection.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Projection', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'property', + subBuilder: PropertyReference.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') @@ -470,9 +494,10 @@ class Projection extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Projection copyWith(void Function(Projection) updates) => - super.copyWith((message) => updates(message as Projection)) - as Projection; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Projection)) as Projection; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Projection create() => Projection._(); Projection createEmptyInstance() => create(); @@ -482,6 +507,7 @@ class Projection extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Projection? _defaultInstance; + /// The property to project. @$pb.TagNumber(1) PropertyReference get property => $_getN(0); @$pb.TagNumber(1) @@ -497,50 +523,43 @@ class Projection extends $pb.GeneratedMessage { PropertyReference ensureProperty() => $_ensure(0); } +/// The desired order for a specific property. class PropertyOrder extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PropertyOrder', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'property', - subBuilder: PropertyReference.create) - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'direction', - $pb.PbFieldType.OE, - defaultOrMaker: PropertyOrder_Direction.DIRECTION_UNSPECIFIED, - valueOf: PropertyOrder_Direction.valueOf, - enumValues: PropertyOrder_Direction.values) - ..hasRequiredFields = false; - - PropertyOrder._() : super(); factory PropertyOrder({ PropertyReference? property, PropertyOrder_Direction? direction, }) { - final _result = create(); + final $result = create(); if (property != null) { - _result.property = property; + $result.property = property; } if (direction != null) { - _result.direction = direction; + $result.direction = direction; } - return _result; + return $result; } + PropertyOrder._() : super(); factory PropertyOrder.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PropertyOrder.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PropertyOrder', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'property', + subBuilder: PropertyReference.create) + ..e( + 2, _omitFieldNames ? '' : 'direction', $pb.PbFieldType.OE, + defaultOrMaker: PropertyOrder_Direction.DIRECTION_UNSPECIFIED, + valueOf: PropertyOrder_Direction.valueOf, + enumValues: PropertyOrder_Direction.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -550,8 +569,10 @@ class PropertyOrder extends $pb.GeneratedMessage { 'Will be removed in next major version') PropertyOrder copyWith(void Function(PropertyOrder) updates) => super.copyWith((message) => updates(message as PropertyOrder)) - as PropertyOrder; // ignore: deprecated_member_use + as PropertyOrder; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PropertyOrder create() => PropertyOrder._(); PropertyOrder createEmptyInstance() => create(); @@ -562,6 +583,7 @@ class PropertyOrder extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static PropertyOrder? _defaultInstance; + /// The property to order by. @$pb.TagNumber(1) PropertyReference get property => $_getN(0); @$pb.TagNumber(1) @@ -576,6 +598,7 @@ class PropertyOrder extends $pb.GeneratedMessage { @$pb.TagNumber(1) PropertyReference ensureProperty() => $_ensure(0); + /// The direction to order by. Defaults to `ASCENDING`. @$pb.TagNumber(2) PropertyOrder_Direction get direction => $_getN(1); @$pb.TagNumber(2) @@ -591,54 +614,47 @@ class PropertyOrder extends $pb.GeneratedMessage { enum Filter_FilterType { compositeFilter, propertyFilter, notSet } +/// A holder for any type of filter. class Filter extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Filter_FilterType> _Filter_FilterTypeByTag = - { - 1: Filter_FilterType.compositeFilter, - 2: Filter_FilterType.propertyFilter, - 0: Filter_FilterType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Filter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..oo(0, [1, 2]) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'compositeFilter', - subBuilder: CompositeFilter.create) - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'propertyFilter', - subBuilder: PropertyFilter.create) - ..hasRequiredFields = false; - - Filter._() : super(); factory Filter({ CompositeFilter? compositeFilter, PropertyFilter? propertyFilter, }) { - final _result = create(); + final $result = create(); if (compositeFilter != null) { - _result.compositeFilter = compositeFilter; + $result.compositeFilter = compositeFilter; } if (propertyFilter != null) { - _result.propertyFilter = propertyFilter; + $result.propertyFilter = propertyFilter; } - return _result; + return $result; } + Filter._() : super(); factory Filter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Filter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Filter_FilterType> _Filter_FilterTypeByTag = + { + 1: Filter_FilterType.compositeFilter, + 2: Filter_FilterType.propertyFilter, + 0: Filter_FilterType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Filter', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..oo(0, [1, 2]) + ..aOM(1, _omitFieldNames ? '' : 'compositeFilter', + subBuilder: CompositeFilter.create) + ..aOM(2, _omitFieldNames ? '' : 'propertyFilter', + subBuilder: PropertyFilter.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') @@ -647,9 +663,10 @@ class Filter extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Filter copyWith(void Function(Filter) updates) => - super.copyWith((message) => updates(message as Filter)) - as Filter; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Filter)) as Filter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Filter create() => Filter._(); Filter createEmptyInstance() => create(); @@ -663,6 +680,7 @@ class Filter extends $pb.GeneratedMessage { _Filter_FilterTypeByTag[$_whichOneof(0)]!; void clearFilterType() => clearField($_whichOneof(0)); + /// A composite filter. @$pb.TagNumber(1) CompositeFilter get compositeFilter => $_getN(0); @$pb.TagNumber(1) @@ -677,6 +695,7 @@ class Filter extends $pb.GeneratedMessage { @$pb.TagNumber(1) CompositeFilter ensureCompositeFilter() => $_ensure(0); + /// A filter on a property. @$pb.TagNumber(2) PropertyFilter get propertyFilter => $_getN(1); @$pb.TagNumber(2) @@ -692,48 +711,43 @@ class Filter extends $pb.GeneratedMessage { PropertyFilter ensurePropertyFilter() => $_ensure(1); } +/// A filter that merges multiple other filters using the given operator. class CompositeFilter extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CompositeFilter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..e( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'op', $pb.PbFieldType.OE, - defaultOrMaker: CompositeFilter_Operator.OPERATOR_UNSPECIFIED, - valueOf: CompositeFilter_Operator.valueOf, - enumValues: CompositeFilter_Operator.values) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filters', - $pb.PbFieldType.PM, - subBuilder: Filter.create) - ..hasRequiredFields = false; - - CompositeFilter._() : super(); factory CompositeFilter({ CompositeFilter_Operator? op, $core.Iterable? filters, }) { - final _result = create(); + final $result = create(); if (op != null) { - _result.op = op; + $result.op = op; } if (filters != null) { - _result.filters.addAll(filters); + $result.filters.addAll(filters); } - return _result; + return $result; } + CompositeFilter._() : super(); factory CompositeFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CompositeFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CompositeFilter', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'op', $pb.PbFieldType.OE, + defaultOrMaker: CompositeFilter_Operator.OPERATOR_UNSPECIFIED, + valueOf: CompositeFilter_Operator.valueOf, + enumValues: CompositeFilter_Operator.values) + ..pc(2, _omitFieldNames ? '' : 'filters', $pb.PbFieldType.PM, + subBuilder: Filter.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') @@ -743,8 +757,10 @@ class CompositeFilter extends $pb.GeneratedMessage { 'Will be removed in next major version') CompositeFilter copyWith(void Function(CompositeFilter) updates) => super.copyWith((message) => updates(message as CompositeFilter)) - as CompositeFilter; // ignore: deprecated_member_use + as CompositeFilter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CompositeFilter create() => CompositeFilter._(); CompositeFilter createEmptyInstance() => create(); @@ -755,6 +771,7 @@ class CompositeFilter extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CompositeFilter? _defaultInstance; + /// The operator for combining multiple filters. @$pb.TagNumber(1) CompositeFilter_Operator get op => $_getN(0); @$pb.TagNumber(1) @@ -767,56 +784,55 @@ class CompositeFilter extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearOp() => clearField(1); + /// The list of filters to combine. + /// Must contain at least one filter. @$pb.TagNumber(2) $core.List get filters => $_getList(1); } +/// A filter on a specific property. class PropertyFilter extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PropertyFilter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOM( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'property', - subBuilder: PropertyReference.create) - ..e( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'op', $pb.PbFieldType.OE, - defaultOrMaker: PropertyFilter_Operator.OPERATOR_UNSPECIFIED, - valueOf: PropertyFilter_Operator.valueOf, - enumValues: PropertyFilter_Operator.values) - ..aOM<$0.Value>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', - subBuilder: $0.Value.create) - ..hasRequiredFields = false; - - PropertyFilter._() : super(); factory PropertyFilter({ PropertyReference? property, PropertyFilter_Operator? op, - $0.Value? value, + $77.Value? value, }) { - final _result = create(); + final $result = create(); if (property != null) { - _result.property = property; + $result.property = property; } if (op != null) { - _result.op = op; + $result.op = op; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + PropertyFilter._() : super(); factory PropertyFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PropertyFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PropertyFilter', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'property', + subBuilder: PropertyReference.create) + ..e( + 2, _omitFieldNames ? '' : 'op', $pb.PbFieldType.OE, + defaultOrMaker: PropertyFilter_Operator.OPERATOR_UNSPECIFIED, + valueOf: PropertyFilter_Operator.valueOf, + enumValues: PropertyFilter_Operator.values) + ..aOM<$77.Value>(3, _omitFieldNames ? '' : 'value', + subBuilder: $77.Value.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') @@ -826,8 +842,10 @@ class PropertyFilter extends $pb.GeneratedMessage { 'Will be removed in next major version') PropertyFilter copyWith(void Function(PropertyFilter) updates) => super.copyWith((message) => updates(message as PropertyFilter)) - as PropertyFilter; // ignore: deprecated_member_use + as PropertyFilter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PropertyFilter create() => PropertyFilter._(); PropertyFilter createEmptyInstance() => create(); @@ -838,6 +856,7 @@ class PropertyFilter extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static PropertyFilter? _defaultInstance; + /// The property to filter by. @$pb.TagNumber(1) PropertyReference get property => $_getN(0); @$pb.TagNumber(1) @@ -852,6 +871,7 @@ class PropertyFilter extends $pb.GeneratedMessage { @$pb.TagNumber(1) PropertyReference ensureProperty() => $_ensure(0); + /// The operator to filter by. @$pb.TagNumber(2) PropertyFilter_Operator get op => $_getN(1); @$pb.TagNumber(2) @@ -864,10 +884,11 @@ class PropertyFilter extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOp() => clearField(2); + /// The value to compare the property to. @$pb.TagNumber(3) - $0.Value get value => $_getN(2); + $77.Value get value => $_getN(2); @$pb.TagNumber(3) - set value($0.Value v) { + set value($77.Value v) { setField(3, v); } @@ -876,69 +897,61 @@ class PropertyFilter extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearValue() => clearField(3); @$pb.TagNumber(3) - $0.Value ensureValue() => $_ensure(2); + $77.Value ensureValue() => $_ensure(2); } +/// A [GQL +/// query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). class GqlQuery extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GqlQuery', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'queryString') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allowLiterals') - ..pc( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'positionalBindings', $pb.PbFieldType.PM, - subBuilder: GqlQueryParameter.create) - ..m<$core.String, GqlQueryParameter>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'namedBindings', - entryClassName: 'GqlQuery.NamedBindingsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: GqlQueryParameter.create, - packageName: const $pb.PackageName('google.datastore.v1beta3')) - ..hasRequiredFields = false; - - GqlQuery._() : super(); factory GqlQuery({ $core.String? queryString, $core.bool? allowLiterals, $core.Iterable? positionalBindings, $core.Map<$core.String, GqlQueryParameter>? namedBindings, }) { - final _result = create(); + final $result = create(); if (queryString != null) { - _result.queryString = queryString; + $result.queryString = queryString; } if (allowLiterals != null) { - _result.allowLiterals = allowLiterals; + $result.allowLiterals = allowLiterals; } if (positionalBindings != null) { - _result.positionalBindings.addAll(positionalBindings); + $result.positionalBindings.addAll(positionalBindings); } if (namedBindings != null) { - _result.namedBindings.addAll(namedBindings); + $result.namedBindings.addAll(namedBindings); } - return _result; + return $result; } + GqlQuery._() : super(); factory GqlQuery.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GqlQuery.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GqlQuery', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'queryString') + ..aOB(2, _omitFieldNames ? '' : 'allowLiterals') + ..pc( + 4, _omitFieldNames ? '' : 'positionalBindings', $pb.PbFieldType.PM, + subBuilder: GqlQueryParameter.create) + ..m<$core.String, GqlQueryParameter>( + 5, _omitFieldNames ? '' : 'namedBindings', + entryClassName: 'GqlQuery.NamedBindingsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: GqlQueryParameter.create, + valueDefaultOrMaker: GqlQueryParameter.getDefault, + packageName: const $pb.PackageName('google.datastore.v1beta3')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -947,9 +960,10 @@ class GqlQuery extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GqlQuery copyWith(void Function(GqlQuery) updates) => - super.copyWith((message) => updates(message as GqlQuery)) - as GqlQuery; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as GqlQuery)) as GqlQuery; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GqlQuery create() => GqlQuery._(); GqlQuery createEmptyInstance() => create(); @@ -959,6 +973,8 @@ class GqlQuery extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static GqlQuery? _defaultInstance; + /// A string of the format described + /// [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). @$pb.TagNumber(1) $core.String get queryString => $_getSZ(0); @$pb.TagNumber(1) @@ -971,6 +987,10 @@ class GqlQuery extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearQueryString() => clearField(1); + /// When false, the query string must not contain any literals and instead must + /// bind all values. For example, + /// `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while + /// `SELECT * FROM Kind WHERE a = @value` is. @$pb.TagNumber(2) $core.bool get allowLiterals => $_getBF(1); @$pb.TagNumber(2) @@ -983,63 +1003,66 @@ class GqlQuery extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearAllowLiterals() => clearField(2); + /// Numbered binding site @1 references the first numbered parameter, + /// effectively using 1-based indexing, rather than the usual 0. + /// + /// For each binding site numbered i in `query_string`, there must be an i-th + /// numbered parameter. The inverse must also be true. @$pb.TagNumber(4) $core.List get positionalBindings => $_getList(2); + /// For each non-reserved named binding site in the query string, there must be + /// a named parameter with that name, but not necessarily the inverse. + /// + /// Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex + /// `__.*__`, and must not be `""`. @$pb.TagNumber(5) $core.Map<$core.String, GqlQueryParameter> get namedBindings => $_getMap(3); } enum GqlQueryParameter_ParameterType { value, cursor, notSet } +/// A binding parameter for a GQL query. class GqlQueryParameter extends $pb.GeneratedMessage { - static const $core.Map<$core.int, GqlQueryParameter_ParameterType> - _GqlQueryParameter_ParameterTypeByTag = { - 2: GqlQueryParameter_ParameterType.value, - 3: GqlQueryParameter_ParameterType.cursor, - 0: GqlQueryParameter_ParameterType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GqlQueryParameter', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..oo(0, [2, 3]) - ..aOM<$0.Value>(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', - subBuilder: $0.Value.create) - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'cursor', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - GqlQueryParameter._() : super(); factory GqlQueryParameter({ - $0.Value? value, + $77.Value? value, $core.List<$core.int>? cursor, }) { - final _result = create(); + final $result = create(); if (value != null) { - _result.value = value; + $result.value = value; } if (cursor != null) { - _result.cursor = cursor; + $result.cursor = cursor; } - return _result; + return $result; } + GqlQueryParameter._() : super(); factory GqlQueryParameter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GqlQueryParameter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, GqlQueryParameter_ParameterType> + _GqlQueryParameter_ParameterTypeByTag = { + 2: GqlQueryParameter_ParameterType.value, + 3: GqlQueryParameter_ParameterType.cursor, + 0: GqlQueryParameter_ParameterType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GqlQueryParameter', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..oo(0, [2, 3]) + ..aOM<$77.Value>(2, _omitFieldNames ? '' : 'value', + subBuilder: $77.Value.create) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'cursor', $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') @@ -1049,8 +1072,10 @@ class GqlQueryParameter extends $pb.GeneratedMessage { 'Will be removed in next major version') GqlQueryParameter copyWith(void Function(GqlQueryParameter) updates) => super.copyWith((message) => updates(message as GqlQueryParameter)) - as GqlQueryParameter; // ignore: deprecated_member_use + as GqlQueryParameter; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GqlQueryParameter create() => GqlQueryParameter._(); GqlQueryParameter createEmptyInstance() => create(); @@ -1065,10 +1090,11 @@ class GqlQueryParameter extends $pb.GeneratedMessage { _GqlQueryParameter_ParameterTypeByTag[$_whichOneof(0)]!; void clearParameterType() => clearField($_whichOneof(0)); + /// A value parameter. @$pb.TagNumber(2) - $0.Value get value => $_getN(0); + $77.Value get value => $_getN(0); @$pb.TagNumber(2) - set value($0.Value v) { + set value($77.Value v) { setField(2, v); } @@ -1077,8 +1103,10 @@ class GqlQueryParameter extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearValue() => clearField(2); @$pb.TagNumber(2) - $0.Value ensureValue() => $_ensure(0); + $77.Value ensureValue() => $_ensure(0); + /// A query cursor. Query cursors are returned in query + /// result batches. @$pb.TagNumber(3) $core.List<$core.int> get cursor => $_getN(1); @$pb.TagNumber(3) @@ -1092,35 +1120,8 @@ class GqlQueryParameter extends $pb.GeneratedMessage { void clearCursor() => clearField(3); } +/// A batch of results produced by a query. class QueryResultBatch extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QueryResultBatch', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.datastore.v1beta3'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'entityResultType', - $pb.PbFieldType.OE, - defaultOrMaker: EntityResult_ResultType.RESULT_TYPE_UNSPECIFIED, - valueOf: EntityResult_ResultType.valueOf, - enumValues: EntityResult_ResultType.values) - ..pc( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entityResults', $pb.PbFieldType.PM, - subBuilder: EntityResult.create) - ..a<$core.List<$core.int>>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'skippedCursor', $pb.PbFieldType.OY) - ..a<$core.List<$core.int>>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'endCursor', $pb.PbFieldType.OY) - ..e(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'moreResults', $pb.PbFieldType.OE, defaultOrMaker: QueryResultBatch_MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED, valueOf: QueryResultBatch_MoreResultsType.valueOf, enumValues: QueryResultBatch_MoreResultsType.values) - ..a<$core.int>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'skippedResults', $pb.PbFieldType.O3) - ..aInt64(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'snapshotVersion') - ..hasRequiredFields = false; - - QueryResultBatch._() : super(); factory QueryResultBatch({ EntityResult_ResultType? entityResultType, $core.Iterable? entityResults, @@ -1130,36 +1131,66 @@ class QueryResultBatch extends $pb.GeneratedMessage { $core.int? skippedResults, $fixnum.Int64? snapshotVersion, }) { - final _result = create(); + final $result = create(); if (entityResultType != null) { - _result.entityResultType = entityResultType; + $result.entityResultType = entityResultType; } if (entityResults != null) { - _result.entityResults.addAll(entityResults); + $result.entityResults.addAll(entityResults); } if (skippedCursor != null) { - _result.skippedCursor = skippedCursor; + $result.skippedCursor = skippedCursor; } if (endCursor != null) { - _result.endCursor = endCursor; + $result.endCursor = endCursor; } if (moreResults != null) { - _result.moreResults = moreResults; + $result.moreResults = moreResults; } if (skippedResults != null) { - _result.skippedResults = skippedResults; + $result.skippedResults = skippedResults; } if (snapshotVersion != null) { - _result.snapshotVersion = snapshotVersion; + $result.snapshotVersion = snapshotVersion; } - return _result; + return $result; } + QueryResultBatch._() : super(); factory QueryResultBatch.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QueryResultBatch.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QueryResultBatch', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.datastore.v1beta3'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'entityResultType', $pb.PbFieldType.OE, + defaultOrMaker: EntityResult_ResultType.RESULT_TYPE_UNSPECIFIED, + valueOf: EntityResult_ResultType.valueOf, + enumValues: EntityResult_ResultType.values) + ..pc( + 2, _omitFieldNames ? '' : 'entityResults', $pb.PbFieldType.PM, + subBuilder: EntityResult.create) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'skippedCursor', $pb.PbFieldType.OY) + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'endCursor', $pb.PbFieldType.OY) + ..e( + 5, _omitFieldNames ? '' : 'moreResults', $pb.PbFieldType.OE, + defaultOrMaker: + QueryResultBatch_MoreResultsType.MORE_RESULTS_TYPE_UNSPECIFIED, + valueOf: QueryResultBatch_MoreResultsType.valueOf, + enumValues: QueryResultBatch_MoreResultsType.values) + ..a<$core.int>( + 6, _omitFieldNames ? '' : 'skippedResults', $pb.PbFieldType.O3) + ..aInt64(7, _omitFieldNames ? '' : 'snapshotVersion') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1169,8 +1200,10 @@ class QueryResultBatch extends $pb.GeneratedMessage { 'Will be removed in next major version') QueryResultBatch copyWith(void Function(QueryResultBatch) updates) => super.copyWith((message) => updates(message as QueryResultBatch)) - as QueryResultBatch; // ignore: deprecated_member_use + as QueryResultBatch; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QueryResultBatch create() => QueryResultBatch._(); QueryResultBatch createEmptyInstance() => create(); @@ -1181,6 +1214,7 @@ class QueryResultBatch extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QueryResultBatch? _defaultInstance; + /// The result type for every entity in `entity_results`. @$pb.TagNumber(1) EntityResult_ResultType get entityResultType => $_getN(0); @$pb.TagNumber(1) @@ -1193,9 +1227,12 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearEntityResultType() => clearField(1); + /// The results for this batch. @$pb.TagNumber(2) $core.List get entityResults => $_getList(1); + /// A cursor that points to the position after the last skipped result. + /// Will be set when `skipped_results` != 0. @$pb.TagNumber(3) $core.List<$core.int> get skippedCursor => $_getN(2); @$pb.TagNumber(3) @@ -1208,6 +1245,7 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSkippedCursor() => clearField(3); + /// A cursor that points to the position after the last result in the batch. @$pb.TagNumber(4) $core.List<$core.int> get endCursor => $_getN(3); @$pb.TagNumber(4) @@ -1220,6 +1258,7 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearEndCursor() => clearField(4); + /// The state of the query after the current batch. @$pb.TagNumber(5) QueryResultBatch_MoreResultsType get moreResults => $_getN(4); @$pb.TagNumber(5) @@ -1232,6 +1271,7 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearMoreResults() => clearField(5); + /// The number of results skipped, typically because of an offset. @$pb.TagNumber(6) $core.int get skippedResults => $_getIZ(5); @$pb.TagNumber(6) @@ -1244,6 +1284,15 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearSkippedResults() => clearField(6); + /// The version number of the snapshot this batch was returned from. + /// This applies to the range of results from the query's `start_cursor` (or + /// the beginning of the query if no cursor was given) to this batch's + /// `end_cursor` (not the query's `end_cursor`). + /// + /// In a single transaction, subsequent query result batches for the same query + /// can have a greater snapshot version number. Each batch's snapshot version + /// is valid for all preceding batches. + /// The value will be zero for eventually consistent queries. @$pb.TagNumber(7) $fixnum.Int64 get snapshotVersion => $_getI64(6); @$pb.TagNumber(7) @@ -1256,3 +1305,7 @@ class QueryResultBatch extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearSnapshotVersion() => clearField(7); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pbenum.dart index eed7390f..3f228e17 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pbenum.dart @@ -1,30 +1,33 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1beta3/query.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Specifies what data the 'entity' field contains. +/// A `ResultType` is either implied (for example, in `LookupResponse.missing` +/// from `datastore.proto`, it is always `KEY_ONLY`) or specified by context +/// (for example, in message `QueryResultBatch`, field `entity_result_type` +/// specifies a `ResultType` for all the values in field `entity_results`). class EntityResult_ResultType extends $pb.ProtobufEnum { static const EntityResult_ResultType RESULT_TYPE_UNSPECIFIED = EntityResult_ResultType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RESULT_TYPE_UNSPECIFIED'); - static const EntityResult_ResultType FULL = EntityResult_ResultType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FULL'); - static const EntityResult_ResultType PROJECTION = EntityResult_ResultType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'PROJECTION'); - static const EntityResult_ResultType KEY_ONLY = EntityResult_ResultType._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'KEY_ONLY'); + 0, _omitEnumNames ? '' : 'RESULT_TYPE_UNSPECIFIED'); + static const EntityResult_ResultType FULL = + EntityResult_ResultType._(1, _omitEnumNames ? '' : 'FULL'); + static const EntityResult_ResultType PROJECTION = + EntityResult_ResultType._(2, _omitEnumNames ? '' : 'PROJECTION'); + static const EntityResult_ResultType KEY_ONLY = + EntityResult_ResultType._(3, _omitEnumNames ? '' : 'KEY_ONLY'); static const $core.List values = [ @@ -41,23 +44,15 @@ class EntityResult_ResultType extends $pb.ProtobufEnum { const EntityResult_ResultType._($core.int v, $core.String n) : super(v, n); } +/// The sort direction. class PropertyOrder_Direction extends $pb.ProtobufEnum { static const PropertyOrder_Direction DIRECTION_UNSPECIFIED = PropertyOrder_Direction._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DIRECTION_UNSPECIFIED'); - static const PropertyOrder_Direction ASCENDING = PropertyOrder_Direction._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ASCENDING'); - static const PropertyOrder_Direction DESCENDING = PropertyOrder_Direction._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DESCENDING'); + 0, _omitEnumNames ? '' : 'DIRECTION_UNSPECIFIED'); + static const PropertyOrder_Direction ASCENDING = + PropertyOrder_Direction._(1, _omitEnumNames ? '' : 'ASCENDING'); + static const PropertyOrder_Direction DESCENDING = + PropertyOrder_Direction._(2, _omitEnumNames ? '' : 'DESCENDING'); static const $core.List values = [ @@ -73,15 +68,13 @@ class PropertyOrder_Direction extends $pb.ProtobufEnum { const PropertyOrder_Direction._($core.int v, $core.String n) : super(v, n); } +/// A composite filter operator. class CompositeFilter_Operator extends $pb.ProtobufEnum { static const CompositeFilter_Operator OPERATOR_UNSPECIFIED = CompositeFilter_Operator._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OPERATOR_UNSPECIFIED'); - static const CompositeFilter_Operator AND = CompositeFilter_Operator._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'AND'); + 0, _omitEnumNames ? '' : 'OPERATOR_UNSPECIFIED'); + static const CompositeFilter_Operator AND = + CompositeFilter_Operator._(1, _omitEnumNames ? '' : 'AND'); static const $core.List values = [ @@ -96,42 +89,24 @@ class CompositeFilter_Operator extends $pb.ProtobufEnum { const CompositeFilter_Operator._($core.int v, $core.String n) : super(v, n); } +/// A property filter operator. class PropertyFilter_Operator extends $pb.ProtobufEnum { static const PropertyFilter_Operator OPERATOR_UNSPECIFIED = PropertyFilter_Operator._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OPERATOR_UNSPECIFIED'); - static const PropertyFilter_Operator LESS_THAN = PropertyFilter_Operator._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LESS_THAN'); + 0, _omitEnumNames ? '' : 'OPERATOR_UNSPECIFIED'); + static const PropertyFilter_Operator LESS_THAN = + PropertyFilter_Operator._(1, _omitEnumNames ? '' : 'LESS_THAN'); static const PropertyFilter_Operator LESS_THAN_OR_EQUAL = - PropertyFilter_Operator._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LESS_THAN_OR_EQUAL'); - static const PropertyFilter_Operator GREATER_THAN = PropertyFilter_Operator._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'GREATER_THAN'); + PropertyFilter_Operator._(2, _omitEnumNames ? '' : 'LESS_THAN_OR_EQUAL'); + static const PropertyFilter_Operator GREATER_THAN = + PropertyFilter_Operator._(3, _omitEnumNames ? '' : 'GREATER_THAN'); static const PropertyFilter_Operator GREATER_THAN_OR_EQUAL = PropertyFilter_Operator._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'GREATER_THAN_OR_EQUAL'); - static const PropertyFilter_Operator EQUAL = PropertyFilter_Operator._( - 5, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'EQUAL'); - static const PropertyFilter_Operator HAS_ANCESTOR = PropertyFilter_Operator._( - 11, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'HAS_ANCESTOR'); + 4, _omitEnumNames ? '' : 'GREATER_THAN_OR_EQUAL'); + static const PropertyFilter_Operator EQUAL = + PropertyFilter_Operator._(5, _omitEnumNames ? '' : 'EQUAL'); + static const PropertyFilter_Operator HAS_ANCESTOR = + PropertyFilter_Operator._(11, _omitEnumNames ? '' : 'HAS_ANCESTOR'); static const $core.List values = [ @@ -151,37 +126,23 @@ class PropertyFilter_Operator extends $pb.ProtobufEnum { const PropertyFilter_Operator._($core.int v, $core.String n) : super(v, n); } +/// The possible values for the `more_results` field. class QueryResultBatch_MoreResultsType extends $pb.ProtobufEnum { static const QueryResultBatch_MoreResultsType MORE_RESULTS_TYPE_UNSPECIFIED = QueryResultBatch_MoreResultsType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MORE_RESULTS_TYPE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'MORE_RESULTS_TYPE_UNSPECIFIED'); static const QueryResultBatch_MoreResultsType NOT_FINISHED = QueryResultBatch_MoreResultsType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NOT_FINISHED'); + 1, _omitEnumNames ? '' : 'NOT_FINISHED'); static const QueryResultBatch_MoreResultsType MORE_RESULTS_AFTER_LIMIT = QueryResultBatch_MoreResultsType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MORE_RESULTS_AFTER_LIMIT'); + 2, _omitEnumNames ? '' : 'MORE_RESULTS_AFTER_LIMIT'); static const QueryResultBatch_MoreResultsType MORE_RESULTS_AFTER_CURSOR = QueryResultBatch_MoreResultsType._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'MORE_RESULTS_AFTER_CURSOR'); + 4, _omitEnumNames ? '' : 'MORE_RESULTS_AFTER_CURSOR'); static const QueryResultBatch_MoreResultsType NO_MORE_RESULTS = QueryResultBatch_MoreResultsType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NO_MORE_RESULTS'); + 3, _omitEnumNames ? '' : 'NO_MORE_RESULTS'); static const $core.List values = [ @@ -200,3 +161,5 @@ class QueryResultBatch_MoreResultsType extends $pb.ProtobufEnum { const QueryResultBatch_MoreResultsType._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pbjson.dart index 5bf3d9fd..df052c9c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/datastore/v1beta3/query.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/datastore/v1beta3/query.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 entityResultDescriptor instead') @@ -40,7 +44,11 @@ const EntityResult_ResultType$json = { /// Descriptor for `EntityResult`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List entityResultDescriptor = $convert.base64Decode( - 'CgxFbnRpdHlSZXN1bHQSOAoGZW50aXR5GAEgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkVudGl0eVIGZW50aXR5EhgKB3ZlcnNpb24YBCABKANSB3ZlcnNpb24SFgoGY3Vyc29yGAMgASgMUgZjdXJzb3IiUQoKUmVzdWx0VHlwZRIbChdSRVNVTFRfVFlQRV9VTlNQRUNJRklFRBAAEggKBEZVTEwQARIOCgpQUk9KRUNUSU9OEAISDAoIS0VZX09OTFkQAw=='); + 'CgxFbnRpdHlSZXN1bHQSOAoGZW50aXR5GAEgASgLMiAuZ29vZ2xlLmRhdGFzdG9yZS52MWJldG' + 'EzLkVudGl0eVIGZW50aXR5EhgKB3ZlcnNpb24YBCABKANSB3ZlcnNpb24SFgoGY3Vyc29yGAMg' + 'ASgMUgZjdXJzb3IiUQoKUmVzdWx0VHlwZRIbChdSRVNVTFRfVFlQRV9VTlNQRUNJRklFRBAAEg' + 'gKBEZVTEwQARIOCgpQUk9KRUNUSU9OEAISDAoIS0VZX09OTFkQAw=='); + @$core.Deprecated('Use queryDescriptor instead') const Query$json = { '1': 'Query', @@ -101,7 +109,16 @@ const Query$json = { /// Descriptor for `Query`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List queryDescriptor = $convert.base64Decode( - 'CgVRdWVyeRJECgpwcm9qZWN0aW9uGAIgAygLMiQuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlByb2plY3Rpb25SCnByb2plY3Rpb24SPAoEa2luZBgDIAMoCzIoLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5LaW5kRXhwcmVzc2lvblIEa2luZBI4CgZmaWx0ZXIYBCABKAsyIC5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuRmlsdGVyUgZmaWx0ZXISPQoFb3JkZXIYBSADKAsyJy5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuUHJvcGVydHlPcmRlclIFb3JkZXISTAoLZGlzdGluY3Rfb24YBiADKAsyKy5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuUHJvcGVydHlSZWZlcmVuY2VSCmRpc3RpbmN0T24SIQoMc3RhcnRfY3Vyc29yGAcgASgMUgtzdGFydEN1cnNvchIdCgplbmRfY3Vyc29yGAggASgMUgllbmRDdXJzb3ISFgoGb2Zmc2V0GAogASgFUgZvZmZzZXQSMQoFbGltaXQYDCABKAsyGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZVIFbGltaXQ='); + 'CgVRdWVyeRJECgpwcm9qZWN0aW9uGAIgAygLMiQuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLl' + 'Byb2plY3Rpb25SCnByb2plY3Rpb24SPAoEa2luZBgDIAMoCzIoLmdvb2dsZS5kYXRhc3RvcmUu' + 'djFiZXRhMy5LaW5kRXhwcmVzc2lvblIEa2luZBI4CgZmaWx0ZXIYBCABKAsyIC5nb29nbGUuZG' + 'F0YXN0b3JlLnYxYmV0YTMuRmlsdGVyUgZmaWx0ZXISPQoFb3JkZXIYBSADKAsyJy5nb29nbGUu' + 'ZGF0YXN0b3JlLnYxYmV0YTMuUHJvcGVydHlPcmRlclIFb3JkZXISTAoLZGlzdGluY3Rfb24YBi' + 'ADKAsyKy5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuUHJvcGVydHlSZWZlcmVuY2VSCmRpc3Rp' + 'bmN0T24SIQoMc3RhcnRfY3Vyc29yGAcgASgMUgtzdGFydEN1cnNvchIdCgplbmRfY3Vyc29yGA' + 'ggASgMUgllbmRDdXJzb3ISFgoGb2Zmc2V0GAogASgFUgZvZmZzZXQSMQoFbGltaXQYDCABKAsy' + 'Gy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZVIFbGltaXQ='); + @$core.Deprecated('Use kindExpressionDescriptor instead') const KindExpression$json = { '1': 'KindExpression', @@ -113,6 +130,7 @@ const KindExpression$json = { /// Descriptor for `KindExpression`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List kindExpressionDescriptor = $convert.base64Decode('Cg5LaW5kRXhwcmVzc2lvbhISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use propertyReferenceDescriptor instead') const PropertyReference$json = { '1': 'PropertyReference', @@ -124,6 +142,7 @@ const PropertyReference$json = { /// Descriptor for `PropertyReference`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List propertyReferenceDescriptor = $convert .base64Decode('ChFQcm9wZXJ0eVJlZmVyZW5jZRISCgRuYW1lGAIgASgJUgRuYW1l'); + @$core.Deprecated('Use projectionDescriptor instead') const Projection$json = { '1': 'Projection', @@ -141,7 +160,9 @@ const Projection$json = { /// Descriptor for `Projection`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List projectionDescriptor = $convert.base64Decode( - 'CgpQcm9qZWN0aW9uEkcKCHByb3BlcnR5GAEgASgLMisuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlByb3BlcnR5UmVmZXJlbmNlUghwcm9wZXJ0eQ=='); + 'CgpQcm9qZWN0aW9uEkcKCHByb3BlcnR5GAEgASgLMisuZ29vZ2xlLmRhdGFzdG9yZS52MWJldG' + 'EzLlByb3BlcnR5UmVmZXJlbmNlUghwcm9wZXJ0eQ=='); + @$core.Deprecated('Use propertyOrderDescriptor instead') const PropertyOrder$json = { '1': 'PropertyOrder', @@ -178,7 +199,12 @@ const PropertyOrder_Direction$json = { /// Descriptor for `PropertyOrder`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List propertyOrderDescriptor = $convert.base64Decode( - 'Cg1Qcm9wZXJ0eU9yZGVyEkcKCHByb3BlcnR5GAEgASgLMisuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlByb3BlcnR5UmVmZXJlbmNlUghwcm9wZXJ0eRJPCglkaXJlY3Rpb24YAiABKA4yMS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuUHJvcGVydHlPcmRlci5EaXJlY3Rpb25SCWRpcmVjdGlvbiJFCglEaXJlY3Rpb24SGQoVRElSRUNUSU9OX1VOU1BFQ0lGSUVEEAASDQoJQVNDRU5ESU5HEAESDgoKREVTQ0VORElORxAC'); + 'Cg1Qcm9wZXJ0eU9yZGVyEkcKCHByb3BlcnR5GAEgASgLMisuZ29vZ2xlLmRhdGFzdG9yZS52MW' + 'JldGEzLlByb3BlcnR5UmVmZXJlbmNlUghwcm9wZXJ0eRJPCglkaXJlY3Rpb24YAiABKA4yMS5n' + 'b29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuUHJvcGVydHlPcmRlci5EaXJlY3Rpb25SCWRpcmVjdG' + 'lvbiJFCglEaXJlY3Rpb24SGQoVRElSRUNUSU9OX1VOU1BFQ0lGSUVEEAASDQoJQVNDRU5ESU5H' + 'EAESDgoKREVTQ0VORElORxAC'); + @$core.Deprecated('Use filterDescriptor instead') const Filter$json = { '1': 'Filter', @@ -209,7 +235,11 @@ const Filter$json = { /// Descriptor for `Filter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List filterDescriptor = $convert.base64Decode( - 'CgZGaWx0ZXISVgoQY29tcG9zaXRlX2ZpbHRlchgBIAEoCzIpLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5Db21wb3NpdGVGaWx0ZXJIAFIPY29tcG9zaXRlRmlsdGVyElMKD3Byb3BlcnR5X2ZpbHRlchgCIAEoCzIoLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5Qcm9wZXJ0eUZpbHRlckgAUg5wcm9wZXJ0eUZpbHRlckINCgtmaWx0ZXJfdHlwZQ=='); + 'CgZGaWx0ZXISVgoQY29tcG9zaXRlX2ZpbHRlchgBIAEoCzIpLmdvb2dsZS5kYXRhc3RvcmUudj' + 'FiZXRhMy5Db21wb3NpdGVGaWx0ZXJIAFIPY29tcG9zaXRlRmlsdGVyElMKD3Byb3BlcnR5X2Zp' + 'bHRlchgCIAEoCzIoLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5Qcm9wZXJ0eUZpbHRlckgAUg' + '5wcm9wZXJ0eUZpbHRlckINCgtmaWx0ZXJfdHlwZQ=='); + @$core.Deprecated('Use compositeFilterDescriptor instead') const CompositeFilter$json = { '1': 'CompositeFilter', @@ -245,7 +275,11 @@ const CompositeFilter_Operator$json = { /// Descriptor for `CompositeFilter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List compositeFilterDescriptor = $convert.base64Decode( - 'Cg9Db21wb3NpdGVGaWx0ZXISQgoCb3AYASABKA4yMi5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuQ29tcG9zaXRlRmlsdGVyLk9wZXJhdG9yUgJvcBI6CgdmaWx0ZXJzGAIgAygLMiAuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkZpbHRlclIHZmlsdGVycyItCghPcGVyYXRvchIYChRPUEVSQVRPUl9VTlNQRUNJRklFRBAAEgcKA0FORBAB'); + 'Cg9Db21wb3NpdGVGaWx0ZXISQgoCb3AYASABKA4yMi5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YT' + 'MuQ29tcG9zaXRlRmlsdGVyLk9wZXJhdG9yUgJvcBI6CgdmaWx0ZXJzGAIgAygLMiAuZ29vZ2xl' + 'LmRhdGFzdG9yZS52MWJldGEzLkZpbHRlclIHZmlsdGVycyItCghPcGVyYXRvchIYChRPUEVSQV' + 'RPUl9VTlNQRUNJRklFRBAAEgcKA0FORBAB'); + @$core.Deprecated('Use propertyFilterDescriptor instead') const PropertyFilter$json = { '1': 'PropertyFilter', @@ -294,7 +328,14 @@ const PropertyFilter_Operator$json = { /// Descriptor for `PropertyFilter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List propertyFilterDescriptor = $convert.base64Decode( - 'Cg5Qcm9wZXJ0eUZpbHRlchJHCghwcm9wZXJ0eRgBIAEoCzIrLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5Qcm9wZXJ0eVJlZmVyZW5jZVIIcHJvcGVydHkSQQoCb3AYAiABKA4yMS5nb29nbGUuZGF0YXN0b3JlLnYxYmV0YTMuUHJvcGVydHlGaWx0ZXIuT3BlcmF0b3JSAm9wEjUKBXZhbHVlGAMgASgLMh8uZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlZhbHVlUgV2YWx1ZSKVAQoIT3BlcmF0b3ISGAoUT1BFUkFUT1JfVU5TUEVDSUZJRUQQABINCglMRVNTX1RIQU4QARIWChJMRVNTX1RIQU5fT1JfRVFVQUwQAhIQCgxHUkVBVEVSX1RIQU4QAxIZChVHUkVBVEVSX1RIQU5fT1JfRVFVQUwQBBIJCgVFUVVBTBAFEhAKDEhBU19BTkNFU1RPUhAL'); + 'Cg5Qcm9wZXJ0eUZpbHRlchJHCghwcm9wZXJ0eRgBIAEoCzIrLmdvb2dsZS5kYXRhc3RvcmUudj' + 'FiZXRhMy5Qcm9wZXJ0eVJlZmVyZW5jZVIIcHJvcGVydHkSQQoCb3AYAiABKA4yMS5nb29nbGUu' + 'ZGF0YXN0b3JlLnYxYmV0YTMuUHJvcGVydHlGaWx0ZXIuT3BlcmF0b3JSAm9wEjUKBXZhbHVlGA' + 'MgASgLMh8uZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlZhbHVlUgV2YWx1ZSKVAQoIT3BlcmF0' + 'b3ISGAoUT1BFUkFUT1JfVU5TUEVDSUZJRUQQABINCglMRVNTX1RIQU4QARIWChJMRVNTX1RIQU' + '5fT1JfRVFVQUwQAhIQCgxHUkVBVEVSX1RIQU4QAxIZChVHUkVBVEVSX1RIQU5fT1JfRVFVQUwQ' + 'BBIJCgVFUVVBTBAFEhAKDEhBU19BTkNFU1RPUhAL'); + @$core.Deprecated('Use gqlQueryDescriptor instead') const GqlQuery$json = { '1': 'GqlQuery', @@ -340,7 +381,14 @@ const GqlQuery_NamedBindingsEntry$json = { /// Descriptor for `GqlQuery`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List gqlQueryDescriptor = $convert.base64Decode( - 'CghHcWxRdWVyeRIhCgxxdWVyeV9zdHJpbmcYASABKAlSC3F1ZXJ5U3RyaW5nEiUKDmFsbG93X2xpdGVyYWxzGAIgASgIUg1hbGxvd0xpdGVyYWxzElwKDm5hbWVkX2JpbmRpbmdzGAUgAygLMjUuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkdxbFF1ZXJ5Lk5hbWVkQmluZGluZ3NFbnRyeVINbmFtZWRCaW5kaW5ncxJcChNwb3NpdGlvbmFsX2JpbmRpbmdzGAQgAygLMisuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkdxbFF1ZXJ5UGFyYW1ldGVyUhJwb3NpdGlvbmFsQmluZGluZ3MabQoSTmFtZWRCaW5kaW5nc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EkEKBXZhbHVlGAIgASgLMisuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkdxbFF1ZXJ5UGFyYW1ldGVyUgV2YWx1ZToCOAE='); + 'CghHcWxRdWVyeRIhCgxxdWVyeV9zdHJpbmcYASABKAlSC3F1ZXJ5U3RyaW5nEiUKDmFsbG93X2' + 'xpdGVyYWxzGAIgASgIUg1hbGxvd0xpdGVyYWxzElwKDm5hbWVkX2JpbmRpbmdzGAUgAygLMjUu' + 'Z29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkdxbFF1ZXJ5Lk5hbWVkQmluZGluZ3NFbnRyeVINbm' + 'FtZWRCaW5kaW5ncxJcChNwb3NpdGlvbmFsX2JpbmRpbmdzGAQgAygLMisuZ29vZ2xlLmRhdGFz' + 'dG9yZS52MWJldGEzLkdxbFF1ZXJ5UGFyYW1ldGVyUhJwb3NpdGlvbmFsQmluZGluZ3MabQoSTm' + 'FtZWRCaW5kaW5nc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EkEKBXZhbHVlGAIgASgLMisuZ29v' + 'Z2xlLmRhdGFzdG9yZS52MWJldGEzLkdxbFF1ZXJ5UGFyYW1ldGVyUgV2YWx1ZToCOAE='); + @$core.Deprecated('Use gqlQueryParameterDescriptor instead') const GqlQueryParameter$json = { '1': 'GqlQueryParameter', @@ -363,7 +411,10 @@ const GqlQueryParameter$json = { /// Descriptor for `GqlQueryParameter`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List gqlQueryParameterDescriptor = $convert.base64Decode( - 'ChFHcWxRdWVyeVBhcmFtZXRlchI3CgV2YWx1ZRgCIAEoCzIfLmdvb2dsZS5kYXRhc3RvcmUudjFiZXRhMy5WYWx1ZUgAUgV2YWx1ZRIYCgZjdXJzb3IYAyABKAxIAFIGY3Vyc29yQhAKDnBhcmFtZXRlcl90eXBl'); + 'ChFHcWxRdWVyeVBhcmFtZXRlchI3CgV2YWx1ZRgCIAEoCzIfLmdvb2dsZS5kYXRhc3RvcmUudj' + 'FiZXRhMy5WYWx1ZUgAUgV2YWx1ZRIYCgZjdXJzb3IYAyABKAxIAFIGY3Vyc29yQhAKDnBhcmFt' + 'ZXRlcl90eXBl'); + @$core.Deprecated('Use queryResultBatchDescriptor instead') const QueryResultBatch$json = { '1': 'QueryResultBatch', @@ -414,4 +465,14 @@ const QueryResultBatch_MoreResultsType$json = { /// Descriptor for `QueryResultBatch`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List queryResultBatchDescriptor = $convert.base64Decode( - 'ChBRdWVyeVJlc3VsdEJhdGNoEicKD3NraXBwZWRfcmVzdWx0cxgGIAEoBVIOc2tpcHBlZFJlc3VsdHMSJQoOc2tpcHBlZF9jdXJzb3IYAyABKAxSDXNraXBwZWRDdXJzb3ISXwoSZW50aXR5X3Jlc3VsdF90eXBlGAEgASgOMjEuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkVudGl0eVJlc3VsdC5SZXN1bHRUeXBlUhBlbnRpdHlSZXN1bHRUeXBlEk0KDmVudGl0eV9yZXN1bHRzGAIgAygLMiYuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkVudGl0eVJlc3VsdFINZW50aXR5UmVzdWx0cxIdCgplbmRfY3Vyc29yGAQgASgMUgllbmRDdXJzb3ISXQoMbW9yZV9yZXN1bHRzGAUgASgOMjouZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLlF1ZXJ5UmVzdWx0QmF0Y2guTW9yZVJlc3VsdHNUeXBlUgttb3JlUmVzdWx0cxIpChBzbmFwc2hvdF92ZXJzaW9uGAcgASgDUg9zbmFwc2hvdFZlcnNpb24imAEKD01vcmVSZXN1bHRzVHlwZRIhCh1NT1JFX1JFU1VMVFNfVFlQRV9VTlNQRUNJRklFRBAAEhAKDE5PVF9GSU5JU0hFRBABEhwKGE1PUkVfUkVTVUxUU19BRlRFUl9MSU1JVBACEh0KGU1PUkVfUkVTVUxUU19BRlRFUl9DVVJTT1IQBBITCg9OT19NT1JFX1JFU1VMVFMQAw=='); + 'ChBRdWVyeVJlc3VsdEJhdGNoEicKD3NraXBwZWRfcmVzdWx0cxgGIAEoBVIOc2tpcHBlZFJlc3' + 'VsdHMSJQoOc2tpcHBlZF9jdXJzb3IYAyABKAxSDXNraXBwZWRDdXJzb3ISXwoSZW50aXR5X3Jl' + 'c3VsdF90eXBlGAEgASgOMjEuZ29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkVudGl0eVJlc3VsdC' + '5SZXN1bHRUeXBlUhBlbnRpdHlSZXN1bHRUeXBlEk0KDmVudGl0eV9yZXN1bHRzGAIgAygLMiYu' + 'Z29vZ2xlLmRhdGFzdG9yZS52MWJldGEzLkVudGl0eVJlc3VsdFINZW50aXR5UmVzdWx0cxIdCg' + 'plbmRfY3Vyc29yGAQgASgMUgllbmRDdXJzb3ISXQoMbW9yZV9yZXN1bHRzGAUgASgOMjouZ29v' + 'Z2xlLmRhdGFzdG9yZS52MWJldGEzLlF1ZXJ5UmVzdWx0QmF0Y2guTW9yZVJlc3VsdHNUeXBlUg' + 'ttb3JlUmVzdWx0cxIpChBzbmFwc2hvdF92ZXJzaW9uGAcgASgDUg9zbmFwc2hvdFZlcnNpb24i' + 'mAEKD01vcmVSZXN1bHRzVHlwZRIhCh1NT1JFX1JFU1VMVFNfVFlQRV9VTlNQRUNJRklFRBAAEh' + 'AKDE5PVF9GSU5JU0hFRBABEhwKGE1PUkVfUkVTVUxUU19BRlRFUl9MSU1JVBACEh0KGU1PUkVf' + 'UkVTVUxUU19BRlRFUl9DVVJTT1IQBBITCg9OT19NT1JFX1JFU1VMVFMQAw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pb.dart index 7938ffe9..6100db3e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pb.dart @@ -1,56 +1,51 @@ -/// +// // Generated code. Do not modify. // source: google/iam/admin/v1/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// A PermissionDelta message to record the added_permissions and +/// removed_permissions inside a role. class AuditData_PermissionDelta extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuditData.PermissionDelta', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'addedPermissions') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'removedPermissions') - ..hasRequiredFields = false; - - AuditData_PermissionDelta._() : super(); factory AuditData_PermissionDelta({ $core.Iterable<$core.String>? addedPermissions, $core.Iterable<$core.String>? removedPermissions, }) { - final _result = create(); + final $result = create(); if (addedPermissions != null) { - _result.addedPermissions.addAll(addedPermissions); + $result.addedPermissions.addAll(addedPermissions); } if (removedPermissions != null) { - _result.removedPermissions.addAll(removedPermissions); + $result.removedPermissions.addAll(removedPermissions); } - return _result; + return $result; } + AuditData_PermissionDelta._() : super(); factory AuditData_PermissionDelta.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuditData_PermissionDelta.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuditData.PermissionDelta', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'addedPermissions') + ..pPS(2, _omitFieldNames ? '' : 'removedPermissions') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -62,8 +57,10 @@ class AuditData_PermissionDelta extends $pb.GeneratedMessage { AuditData_PermissionDelta copyWith( void Function(AuditData_PermissionDelta) updates) => super.copyWith((message) => updates(message as AuditData_PermissionDelta)) - as AuditData_PermissionDelta; // ignore: deprecated_member_use + as AuditData_PermissionDelta; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuditData_PermissionDelta create() => AuditData_PermissionDelta._(); AuditData_PermissionDelta createEmptyInstance() => create(); @@ -74,47 +71,46 @@ class AuditData_PermissionDelta extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AuditData_PermissionDelta? _defaultInstance; + /// Added permissions. @$pb.TagNumber(1) $core.List<$core.String> get addedPermissions => $_getList(0); + /// Removed permissions. @$pb.TagNumber(2) $core.List<$core.String> get removedPermissions => $_getList(1); } +/// Audit log information specific to Cloud IAM admin APIs. This message is +/// serialized as an `Any` type in the `ServiceData` message of an +/// `AuditLog` message. class AuditData extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuditData', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'permissionDelta', - subBuilder: AuditData_PermissionDelta.create) - ..hasRequiredFields = false; - - AuditData._() : super(); factory AuditData({ AuditData_PermissionDelta? permissionDelta, }) { - final _result = create(); + final $result = create(); if (permissionDelta != null) { - _result.permissionDelta = permissionDelta; + $result.permissionDelta = permissionDelta; } - return _result; + return $result; } + AuditData._() : super(); factory AuditData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuditData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuditData', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOM( + 1, _omitFieldNames ? '' : 'permissionDelta', + subBuilder: AuditData_PermissionDelta.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') @@ -123,9 +119,10 @@ class AuditData extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') AuditData copyWith(void Function(AuditData) updates) => - super.copyWith((message) => updates(message as AuditData)) - as AuditData; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as AuditData)) as AuditData; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuditData create() => AuditData._(); AuditData createEmptyInstance() => create(); @@ -135,6 +132,7 @@ class AuditData extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static AuditData? _defaultInstance; + /// The permission_delta when when creating or updating a Role. @$pb.TagNumber(1) AuditData_PermissionDelta get permissionDelta => $_getN(0); @$pb.TagNumber(1) @@ -149,3 +147,7 @@ class AuditData extends $pb.GeneratedMessage { @$pb.TagNumber(1) AuditData_PermissionDelta ensurePermissionDelta() => $_ensure(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pbenum.dart index 7f6ecf5a..6f356a37 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/iam/admin/v1/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pbjson.dart index d4d0399e..759e05e8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/audit_data.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/iam/admin/v1/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 auditDataDescriptor instead') @@ -48,4 +52,7 @@ const AuditData_PermissionDelta$json = { /// Descriptor for `AuditData`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List auditDataDescriptor = $convert.base64Decode( - 'CglBdWRpdERhdGESWQoQcGVybWlzc2lvbl9kZWx0YRgBIAEoCzIuLmdvb2dsZS5pYW0uYWRtaW4udjEuQXVkaXREYXRhLlBlcm1pc3Npb25EZWx0YVIPcGVybWlzc2lvbkRlbHRhGm8KD1Blcm1pc3Npb25EZWx0YRIrChFhZGRlZF9wZXJtaXNzaW9ucxgBIAMoCVIQYWRkZWRQZXJtaXNzaW9ucxIvChNyZW1vdmVkX3Blcm1pc3Npb25zGAIgAygJUhJyZW1vdmVkUGVybWlzc2lvbnM='); + 'CglBdWRpdERhdGESWQoQcGVybWlzc2lvbl9kZWx0YRgBIAEoCzIuLmdvb2dsZS5pYW0uYWRtaW' + '4udjEuQXVkaXREYXRhLlBlcm1pc3Npb25EZWx0YVIPcGVybWlzc2lvbkRlbHRhGm8KD1Blcm1p' + 'c3Npb25EZWx0YRIrChFhZGRlZF9wZXJtaXNzaW9ucxgBIAMoCVIQYWRkZWRQZXJtaXNzaW9ucx' + 'IvChNyZW1vdmVkX3Blcm1pc3Npb25zGAIgAygJUhJyZW1vdmVkUGVybWlzc2lvbnM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pb.dart index 8f6ff98a..bcfebeea 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pb.dart @@ -1,60 +1,37 @@ -/// +// // Generated code. Do not modify. // source: google/iam/admin/v1/iam.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/field_mask.pb.dart' as $4; -import '../../../protobuf/timestamp.pb.dart' as $5; -import '../../../type/expr.pb.dart' as $6; - +import '../../../protobuf/field_mask.pb.dart' as $58; +import '../../../protobuf/timestamp.pb.dart' as $50; +import '../../../type/expr.pb.dart' as $114; import 'iam.pbenum.dart'; export 'iam.pbenum.dart'; +/// An IAM service account. +/// +/// A service account is an account for an application or a virtual machine (VM) +/// instance, not a person. You can use a service account to call Google APIs. To +/// learn more, read the [overview of service +/// accounts](https://cloud.google.com/iam/help/service-accounts/overview). +/// +/// When you create a service account, you specify the project ID that owns the +/// service account, as well as a name that must be unique within the project. +/// IAM uses these values to create an email address that identifies the service +/// account. class ServiceAccount extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ServiceAccount', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'projectId') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uniqueId') - ..aOS( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'email') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'displayName') - ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'etag', $pb.PbFieldType.OY) - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'description') - ..aOS(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oauth2ClientId') - ..aOB(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'disabled') - ..hasRequiredFields = false; - - ServiceAccount._() : super(); factory ServiceAccount({ $core.String? name, $core.String? projectId, @@ -66,43 +43,62 @@ class ServiceAccount extends $pb.GeneratedMessage { $core.String? oauth2ClientId, $core.bool? disabled, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (projectId != null) { - _result.projectId = projectId; + $result.projectId = projectId; } if (uniqueId != null) { - _result.uniqueId = uniqueId; + $result.uniqueId = uniqueId; } if (email != null) { - _result.email = email; + $result.email = email; } if (displayName != null) { - _result.displayName = displayName; + $result.displayName = displayName; } if (etag != null) { // ignore: deprecated_member_use_from_same_package - _result.etag = etag; + $result.etag = etag; } if (description != null) { - _result.description = description; + $result.description = description; } if (oauth2ClientId != null) { - _result.oauth2ClientId = oauth2ClientId; + $result.oauth2ClientId = oauth2ClientId; } if (disabled != null) { - _result.disabled = disabled; + $result.disabled = disabled; } - return _result; + return $result; } + ServiceAccount._() : super(); factory ServiceAccount.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ServiceAccount.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ServiceAccount', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'projectId') + ..aOS(4, _omitFieldNames ? '' : 'uniqueId') + ..aOS(5, _omitFieldNames ? '' : 'email') + ..aOS(6, _omitFieldNames ? '' : 'displayName') + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'etag', $pb.PbFieldType.OY) + ..aOS(8, _omitFieldNames ? '' : 'description') + ..aOS(9, _omitFieldNames ? '' : 'oauth2ClientId') + ..aOB(11, _omitFieldNames ? '' : 'disabled') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -112,8 +108,10 @@ class ServiceAccount extends $pb.GeneratedMessage { 'Will be removed in next major version') ServiceAccount copyWith(void Function(ServiceAccount) updates) => super.copyWith((message) => updates(message as ServiceAccount)) - as ServiceAccount; // ignore: deprecated_member_use + as ServiceAccount; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ServiceAccount create() => ServiceAccount._(); ServiceAccount createEmptyInstance() => create(); @@ -124,6 +122,25 @@ class ServiceAccount extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ServiceAccount? _defaultInstance; + /// The resource name of the service account. + /// + /// Use one of the following formats: + /// + /// * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` + /// * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` + /// + /// As an alternative, you can use the `-` wildcard character instead of the + /// project ID: + /// + /// * `projects/-/serviceAccounts/{EMAIL_ADDRESS}` + /// * `projects/-/serviceAccounts/{UNIQUE_ID}` + /// + /// When possible, avoid using the `-` wildcard character, because it can cause + /// response messages to contain misleading error codes. For example, if you + /// try to get the service account + /// `projects/-/serviceAccounts/fake@example.com`, which does not exist, the + /// response contains an HTTP `403 Forbidden` error instead of a `404 Not + /// Found` error. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -136,6 +153,7 @@ class ServiceAccount extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Output only. The ID of the project that owns the service account. @$pb.TagNumber(2) $core.String get projectId => $_getSZ(1); @$pb.TagNumber(2) @@ -148,6 +166,12 @@ class ServiceAccount extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearProjectId() => clearField(2); + /// Output only. The unique, stable numeric ID for the service account. + /// + /// Each service account retains its unique ID even if you delete the service + /// account. For example, if you delete a service account, then create a new + /// service account with the same name, the new service account has a different + /// unique ID than the deleted service account. @$pb.TagNumber(4) $core.String get uniqueId => $_getSZ(2); @$pb.TagNumber(4) @@ -160,6 +184,7 @@ class ServiceAccount extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUniqueId() => clearField(4); + /// Output only. The email address of the service account. @$pb.TagNumber(5) $core.String get email => $_getSZ(3); @$pb.TagNumber(5) @@ -172,6 +197,8 @@ class ServiceAccount extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearEmail() => clearField(5); + /// Optional. A user-specified, human-readable name for the service account. The maximum + /// length is 100 UTF-8 bytes. @$pb.TagNumber(6) $core.String get displayName => $_getSZ(4); @$pb.TagNumber(6) @@ -184,6 +211,7 @@ class ServiceAccount extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearDisplayName() => clearField(6); + /// Deprecated. Do not use. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(7) $core.List<$core.int> get etag => $_getN(5); @@ -200,6 +228,8 @@ class ServiceAccount extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearEtag() => clearField(7); + /// Optional. A user-specified, human-readable description of the service account. The + /// maximum length is 256 UTF-8 bytes. @$pb.TagNumber(8) $core.String get description => $_getSZ(6); @$pb.TagNumber(8) @@ -212,6 +242,7 @@ class ServiceAccount extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearDescription() => clearField(8); + /// Output only. The OAuth 2.0 client ID for the service account. @$pb.TagNumber(9) $core.String get oauth2ClientId => $_getSZ(7); @$pb.TagNumber(9) @@ -224,6 +255,7 @@ class ServiceAccount extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearOauth2ClientId() => clearField(9); + /// Output only. Whether the service account is disabled. @$pb.TagNumber(11) $core.bool get disabled => $_getBF(8); @$pb.TagNumber(11) @@ -237,58 +269,44 @@ class ServiceAccount extends $pb.GeneratedMessage { void clearDisabled() => clearField(11); } +/// The service account create request. class CreateServiceAccountRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateServiceAccountRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'accountId') - ..aOM( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceAccount', - subBuilder: ServiceAccount.create) - ..hasRequiredFields = false; - - CreateServiceAccountRequest._() : super(); factory CreateServiceAccountRequest({ $core.String? name, $core.String? accountId, ServiceAccount? serviceAccount, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (accountId != null) { - _result.accountId = accountId; + $result.accountId = accountId; } if (serviceAccount != null) { - _result.serviceAccount = serviceAccount; + $result.serviceAccount = serviceAccount; } - return _result; + return $result; } + CreateServiceAccountRequest._() : super(); factory CreateServiceAccountRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateServiceAccountRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateServiceAccountRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'accountId') + ..aOM(3, _omitFieldNames ? '' : 'serviceAccount', + subBuilder: ServiceAccount.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') @@ -301,8 +319,10 @@ class CreateServiceAccountRequest extends $pb.GeneratedMessage { void Function(CreateServiceAccountRequest) updates) => super.copyWith( (message) => updates(message as CreateServiceAccountRequest)) - as CreateServiceAccountRequest; // ignore: deprecated_member_use + as CreateServiceAccountRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateServiceAccountRequest create() => CreateServiceAccountRequest._(); @@ -314,6 +334,8 @@ class CreateServiceAccountRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateServiceAccountRequest? _defaultInstance; + /// Required. The resource name of the project associated with the service + /// accounts, such as `projects/my-project-123`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -326,6 +348,10 @@ class CreateServiceAccountRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Required. The account id that is used to generate the service account + /// email address and a stable unique id. It is unique within a project, + /// must be 6-30 characters long, and match the regular expression + /// `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035. @$pb.TagNumber(2) $core.String get accountId => $_getSZ(1); @$pb.TagNumber(2) @@ -338,6 +364,9 @@ class CreateServiceAccountRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearAccountId() => clearField(2); + /// The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to + /// create. Currently, only the following values are user assignable: + /// `display_name` and `description`. @$pb.TagNumber(3) ServiceAccount get serviceAccount => $_getN(2); @$pb.TagNumber(3) @@ -353,58 +382,43 @@ class CreateServiceAccountRequest extends $pb.GeneratedMessage { ServiceAccount ensureServiceAccount() => $_ensure(2); } +/// The service account list request. class ListServiceAccountsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServiceAccountsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListServiceAccountsRequest._() : super(); factory ListServiceAccountsRequest({ $core.String? name, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListServiceAccountsRequest._() : super(); factory ListServiceAccountsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServiceAccountsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServiceAccountsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -417,8 +431,10 @@ class ListServiceAccountsRequest extends $pb.GeneratedMessage { void Function(ListServiceAccountsRequest) updates) => super.copyWith( (message) => updates(message as ListServiceAccountsRequest)) - as ListServiceAccountsRequest; // ignore: deprecated_member_use + as ListServiceAccountsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServiceAccountsRequest create() => ListServiceAccountsRequest._(); ListServiceAccountsRequest createEmptyInstance() => create(); @@ -429,6 +445,8 @@ class ListServiceAccountsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServiceAccountsRequest? _defaultInstance; + /// Required. The resource name of the project associated with the service + /// accounts, such as `projects/my-project-123`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -441,6 +459,12 @@ class ListServiceAccountsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Optional limit on the number of service accounts to include in the + /// response. Further accounts can subsequently be obtained by including the + /// [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token] + /// in a subsequent request. + /// + /// The default is 20, and the maximum is 100. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -453,6 +477,8 @@ class ListServiceAccountsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Optional pagination token returned in an earlier + /// [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token]. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -466,47 +492,40 @@ class ListServiceAccountsRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// The service account list response. class ListServiceAccountsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServiceAccountsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'accounts', - $pb.PbFieldType.PM, - subBuilder: ServiceAccount.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListServiceAccountsResponse._() : super(); factory ListServiceAccountsResponse({ $core.Iterable? accounts, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (accounts != null) { - _result.accounts.addAll(accounts); + $result.accounts.addAll(accounts); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListServiceAccountsResponse._() : super(); factory ListServiceAccountsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServiceAccountsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServiceAccountsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'accounts', $pb.PbFieldType.PM, + subBuilder: ServiceAccount.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -519,8 +538,10 @@ class ListServiceAccountsResponse extends $pb.GeneratedMessage { void Function(ListServiceAccountsResponse) updates) => super.copyWith( (message) => updates(message as ListServiceAccountsResponse)) - as ListServiceAccountsResponse; // ignore: deprecated_member_use + as ListServiceAccountsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServiceAccountsResponse create() => ListServiceAccountsResponse._(); @@ -532,9 +553,13 @@ class ListServiceAccountsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServiceAccountsResponse? _defaultInstance; + /// The list of matching service accounts. @$pb.TagNumber(1) $core.List get accounts => $_getList(0); + /// To retrieve the next page of results, set + /// [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token] + /// to this value. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -548,39 +573,33 @@ class ListServiceAccountsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// The service account get request. class GetServiceAccountRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceAccountRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetServiceAccountRequest._() : super(); factory GetServiceAccountRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetServiceAccountRequest._() : super(); factory GetServiceAccountRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceAccountRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceAccountRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -592,8 +611,10 @@ class GetServiceAccountRequest extends $pb.GeneratedMessage { GetServiceAccountRequest copyWith( void Function(GetServiceAccountRequest) updates) => super.copyWith((message) => updates(message as GetServiceAccountRequest)) - as GetServiceAccountRequest; // ignore: deprecated_member_use + as GetServiceAccountRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceAccountRequest create() => GetServiceAccountRequest._(); GetServiceAccountRequest createEmptyInstance() => create(); @@ -604,6 +625,11 @@ class GetServiceAccountRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceAccountRequest? _defaultInstance; + /// Required. The resource name of the service account in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -617,39 +643,33 @@ class GetServiceAccountRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The service account delete request. class DeleteServiceAccountRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteServiceAccountRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteServiceAccountRequest._() : super(); factory DeleteServiceAccountRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteServiceAccountRequest._() : super(); factory DeleteServiceAccountRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteServiceAccountRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteServiceAccountRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -662,8 +682,10 @@ class DeleteServiceAccountRequest extends $pb.GeneratedMessage { void Function(DeleteServiceAccountRequest) updates) => super.copyWith( (message) => updates(message as DeleteServiceAccountRequest)) - as DeleteServiceAccountRequest; // ignore: deprecated_member_use + as DeleteServiceAccountRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteServiceAccountRequest create() => DeleteServiceAccountRequest._(); @@ -675,6 +697,11 @@ class DeleteServiceAccountRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteServiceAccountRequest? _defaultInstance; + /// Required. The resource name of the service account in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -688,47 +715,46 @@ class DeleteServiceAccountRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The service account patch request. +/// +/// You can patch only the `display_name` and `description` fields. You must use +/// the `update_mask` field to specify which of these fields you want to patch. +/// +/// Only the fields specified in the request are guaranteed to be returned in +/// the response. Other fields may be empty in the response. class PatchServiceAccountRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'PatchServiceAccountRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceAccount', - subBuilder: ServiceAccount.create) - ..aOM<$4.FieldMask>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $4.FieldMask.create) - ..hasRequiredFields = false; - - PatchServiceAccountRequest._() : super(); factory PatchServiceAccountRequest({ ServiceAccount? serviceAccount, - $4.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (serviceAccount != null) { - _result.serviceAccount = serviceAccount; + $result.serviceAccount = serviceAccount; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + PatchServiceAccountRequest._() : super(); factory PatchServiceAccountRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PatchServiceAccountRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PatchServiceAccountRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'serviceAccount', + subBuilder: ServiceAccount.create) + ..aOM<$58.FieldMask>(2, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -741,8 +767,10 @@ class PatchServiceAccountRequest extends $pb.GeneratedMessage { void Function(PatchServiceAccountRequest) updates) => super.copyWith( (message) => updates(message as PatchServiceAccountRequest)) - as PatchServiceAccountRequest; // ignore: deprecated_member_use + as PatchServiceAccountRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PatchServiceAccountRequest create() => PatchServiceAccountRequest._(); PatchServiceAccountRequest createEmptyInstance() => create(); @@ -768,9 +796,9 @@ class PatchServiceAccountRequest extends $pb.GeneratedMessage { ServiceAccount ensureServiceAccount() => $_ensure(0); @$pb.TagNumber(2) - $4.FieldMask get updateMask => $_getN(1); + $58.FieldMask get updateMask => $_getN(1); @$pb.TagNumber(2) - set updateMask($4.FieldMask v) { + set updateMask($58.FieldMask v) { setField(2, v); } @@ -779,42 +807,36 @@ class PatchServiceAccountRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearUpdateMask() => clearField(2); @$pb.TagNumber(2) - $4.FieldMask ensureUpdateMask() => $_ensure(1); + $58.FieldMask ensureUpdateMask() => $_ensure(1); } +/// The service account undelete request. class UndeleteServiceAccountRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UndeleteServiceAccountRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - UndeleteServiceAccountRequest._() : super(); factory UndeleteServiceAccountRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + UndeleteServiceAccountRequest._() : super(); factory UndeleteServiceAccountRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UndeleteServiceAccountRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UndeleteServiceAccountRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -827,8 +849,10 @@ class UndeleteServiceAccountRequest extends $pb.GeneratedMessage { void Function(UndeleteServiceAccountRequest) updates) => super.copyWith( (message) => updates(message as UndeleteServiceAccountRequest)) - as UndeleteServiceAccountRequest; // ignore: deprecated_member_use + as UndeleteServiceAccountRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UndeleteServiceAccountRequest create() => UndeleteServiceAccountRequest._(); @@ -840,6 +864,10 @@ class UndeleteServiceAccountRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UndeleteServiceAccountRequest? _defaultInstance; + /// The resource name of the service account in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`. + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -854,39 +882,32 @@ class UndeleteServiceAccountRequest extends $pb.GeneratedMessage { } class UndeleteServiceAccountResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UndeleteServiceAccountResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'restoredAccount', - subBuilder: ServiceAccount.create) - ..hasRequiredFields = false; - - UndeleteServiceAccountResponse._() : super(); factory UndeleteServiceAccountResponse({ ServiceAccount? restoredAccount, }) { - final _result = create(); + final $result = create(); if (restoredAccount != null) { - _result.restoredAccount = restoredAccount; + $result.restoredAccount = restoredAccount; } - return _result; + return $result; } + UndeleteServiceAccountResponse._() : super(); factory UndeleteServiceAccountResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UndeleteServiceAccountResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UndeleteServiceAccountResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'restoredAccount', + subBuilder: ServiceAccount.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') @@ -899,8 +920,10 @@ class UndeleteServiceAccountResponse extends $pb.GeneratedMessage { void Function(UndeleteServiceAccountResponse) updates) => super.copyWith( (message) => updates(message as UndeleteServiceAccountResponse)) - as UndeleteServiceAccountResponse; // ignore: deprecated_member_use + as UndeleteServiceAccountResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UndeleteServiceAccountResponse create() => UndeleteServiceAccountResponse._(); @@ -912,6 +935,7 @@ class UndeleteServiceAccountResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UndeleteServiceAccountResponse? _defaultInstance; + /// Metadata for the restored service account. @$pb.TagNumber(1) ServiceAccount get restoredAccount => $_getN(0); @$pb.TagNumber(1) @@ -927,39 +951,33 @@ class UndeleteServiceAccountResponse extends $pb.GeneratedMessage { ServiceAccount ensureRestoredAccount() => $_ensure(0); } +/// The service account enable request. class EnableServiceAccountRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnableServiceAccountRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - EnableServiceAccountRequest._() : super(); factory EnableServiceAccountRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + EnableServiceAccountRequest._() : super(); factory EnableServiceAccountRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EnableServiceAccountRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnableServiceAccountRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -972,8 +990,10 @@ class EnableServiceAccountRequest extends $pb.GeneratedMessage { void Function(EnableServiceAccountRequest) updates) => super.copyWith( (message) => updates(message as EnableServiceAccountRequest)) - as EnableServiceAccountRequest; // ignore: deprecated_member_use + as EnableServiceAccountRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnableServiceAccountRequest create() => EnableServiceAccountRequest._(); @@ -985,6 +1005,11 @@ class EnableServiceAccountRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EnableServiceAccountRequest? _defaultInstance; + /// The resource name of the service account in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -998,39 +1023,33 @@ class EnableServiceAccountRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The service account disable request. class DisableServiceAccountRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DisableServiceAccountRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DisableServiceAccountRequest._() : super(); factory DisableServiceAccountRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DisableServiceAccountRequest._() : super(); factory DisableServiceAccountRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DisableServiceAccountRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DisableServiceAccountRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1043,8 +1062,10 @@ class DisableServiceAccountRequest extends $pb.GeneratedMessage { void Function(DisableServiceAccountRequest) updates) => super.copyWith( (message) => updates(message as DisableServiceAccountRequest)) - as DisableServiceAccountRequest; // ignore: deprecated_member_use + as DisableServiceAccountRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DisableServiceAccountRequest create() => DisableServiceAccountRequest._(); @@ -1056,6 +1077,11 @@ class DisableServiceAccountRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DisableServiceAccountRequest? _defaultInstance; + /// The resource name of the service account in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1069,51 +1095,43 @@ class DisableServiceAccountRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The service account keys list request. class ListServiceAccountKeysRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServiceAccountKeysRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keyTypes', - $pb.PbFieldType.PE, - valueOf: ListServiceAccountKeysRequest_KeyType.valueOf, - enumValues: ListServiceAccountKeysRequest_KeyType.values) - ..hasRequiredFields = false; - - ListServiceAccountKeysRequest._() : super(); factory ListServiceAccountKeysRequest({ $core.String? name, $core.Iterable? keyTypes, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (keyTypes != null) { - _result.keyTypes.addAll(keyTypes); + $result.keyTypes.addAll(keyTypes); } - return _result; + return $result; } + ListServiceAccountKeysRequest._() : super(); factory ListServiceAccountKeysRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServiceAccountKeysRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServiceAccountKeysRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pc( + 2, _omitFieldNames ? '' : 'keyTypes', $pb.PbFieldType.KE, + valueOf: ListServiceAccountKeysRequest_KeyType.valueOf, + enumValues: ListServiceAccountKeysRequest_KeyType.values, + defaultEnumValue: + ListServiceAccountKeysRequest_KeyType.KEY_TYPE_UNSPECIFIED) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1126,8 +1144,10 @@ class ListServiceAccountKeysRequest extends $pb.GeneratedMessage { void Function(ListServiceAccountKeysRequest) updates) => super.copyWith( (message) => updates(message as ListServiceAccountKeysRequest)) - as ListServiceAccountKeysRequest; // ignore: deprecated_member_use + as ListServiceAccountKeysRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServiceAccountKeysRequest create() => ListServiceAccountKeysRequest._(); @@ -1139,6 +1159,12 @@ class ListServiceAccountKeysRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServiceAccountKeysRequest? _defaultInstance; + /// Required. The resource name of the service account in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + /// + /// Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1151,46 +1177,43 @@ class ListServiceAccountKeysRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Filters the types of keys the user wants to include in the list + /// response. Duplicate key types are not allowed. If no key type + /// is provided, all keys are returned. @$pb.TagNumber(2) $core.List get keyTypes => $_getList(1); } +/// The service account keys list response. class ListServiceAccountKeysResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListServiceAccountKeysResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keys', - $pb.PbFieldType.PM, - subBuilder: ServiceAccountKey.create) - ..hasRequiredFields = false; - - ListServiceAccountKeysResponse._() : super(); factory ListServiceAccountKeysResponse({ $core.Iterable? keys, }) { - final _result = create(); + final $result = create(); if (keys != null) { - _result.keys.addAll(keys); + $result.keys.addAll(keys); } - return _result; + return $result; } + ListServiceAccountKeysResponse._() : super(); factory ListServiceAccountKeysResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListServiceAccountKeysResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListServiceAccountKeysResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'keys', $pb.PbFieldType.PM, + subBuilder: ServiceAccountKey.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') @@ -1203,8 +1226,10 @@ class ListServiceAccountKeysResponse extends $pb.GeneratedMessage { void Function(ListServiceAccountKeysResponse) updates) => super.copyWith( (message) => updates(message as ListServiceAccountKeysResponse)) - as ListServiceAccountKeysResponse; // ignore: deprecated_member_use + as ListServiceAccountKeysResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListServiceAccountKeysResponse create() => ListServiceAccountKeysResponse._(); @@ -1216,56 +1241,47 @@ class ListServiceAccountKeysResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListServiceAccountKeysResponse? _defaultInstance; + /// The public keys for the service account. @$pb.TagNumber(1) $core.List get keys => $_getList(0); } +/// The service account key get by id request. class GetServiceAccountKeyRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetServiceAccountKeyRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'publicKeyType', - $pb.PbFieldType.OE, - defaultOrMaker: ServiceAccountPublicKeyType.TYPE_NONE, - valueOf: ServiceAccountPublicKeyType.valueOf, - enumValues: ServiceAccountPublicKeyType.values) - ..hasRequiredFields = false; - - GetServiceAccountKeyRequest._() : super(); factory GetServiceAccountKeyRequest({ $core.String? name, ServiceAccountPublicKeyType? publicKeyType, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (publicKeyType != null) { - _result.publicKeyType = publicKeyType; + $result.publicKeyType = publicKeyType; } - return _result; + return $result; } + GetServiceAccountKeyRequest._() : super(); factory GetServiceAccountKeyRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetServiceAccountKeyRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetServiceAccountKeyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e( + 2, _omitFieldNames ? '' : 'publicKeyType', $pb.PbFieldType.OE, + defaultOrMaker: ServiceAccountPublicKeyType.TYPE_NONE, + valueOf: ServiceAccountPublicKeyType.valueOf, + enumValues: ServiceAccountPublicKeyType.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1278,8 +1294,10 @@ class GetServiceAccountKeyRequest extends $pb.GeneratedMessage { void Function(GetServiceAccountKeyRequest) updates) => super.copyWith( (message) => updates(message as GetServiceAccountKeyRequest)) - as GetServiceAccountKeyRequest; // ignore: deprecated_member_use + as GetServiceAccountKeyRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetServiceAccountKeyRequest create() => GetServiceAccountKeyRequest._(); @@ -1291,6 +1309,12 @@ class GetServiceAccountKeyRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetServiceAccountKeyRequest? _defaultInstance; + /// Required. The resource name of the service account key in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + /// + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1303,6 +1327,8 @@ class GetServiceAccountKeyRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Optional. The output format of the public key. The default is `TYPE_NONE`, which + /// means that the public key is not returned. @$pb.TagNumber(2) ServiceAccountPublicKeyType get publicKeyType => $_getN(1); @$pb.TagNumber(2) @@ -1316,99 +1342,135 @@ class GetServiceAccountKeyRequest extends $pb.GeneratedMessage { void clearPublicKeyType() => clearField(2); } +/// Represents a service account key. +/// +/// A service account has two sets of key-pairs: user-managed, and +/// system-managed. +/// +/// User-managed key-pairs can be created and deleted by users. Users are +/// responsible for rotating these keys periodically to ensure security of +/// their service accounts. Users retain the private key of these key-pairs, +/// and Google retains ONLY the public key. +/// +/// System-managed keys are automatically rotated by Google, and are used for +/// signing for a maximum of two weeks. The rotation process is probabilistic, +/// and usage of the new key will gradually ramp up and down over the key's +/// lifetime. +/// +/// If you cache the public key set for a service account, we recommend that you +/// update the cache every 15 minutes. User-managed keys can be added and removed +/// at any time, so it is important to update the cache frequently. For +/// Google-managed keys, Google will publish a key at least 6 hours before it is +/// first used for signing and will keep publishing it for at least 6 hours after +/// it was last used for signing. +/// +/// Public keys for all service accounts are also published at the OAuth2 +/// Service Account API. class ServiceAccountKey extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ServiceAccountKey', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'privateKeyType', $pb.PbFieldType.OE, - defaultOrMaker: ServiceAccountPrivateKeyType.TYPE_UNSPECIFIED, - valueOf: ServiceAccountPrivateKeyType.valueOf, - enumValues: ServiceAccountPrivateKeyType.values) - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'privateKeyData', - $pb.PbFieldType.OY) - ..aOM<$5.Timestamp>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'validAfterTime', subBuilder: $5.Timestamp.create) - ..aOM<$5.Timestamp>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'validBeforeTime', subBuilder: $5.Timestamp.create) - ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'publicKeyData', $pb.PbFieldType.OY) - ..e(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'keyAlgorithm', $pb.PbFieldType.OE, defaultOrMaker: ServiceAccountKeyAlgorithm.KEY_ALG_UNSPECIFIED, valueOf: ServiceAccountKeyAlgorithm.valueOf, enumValues: ServiceAccountKeyAlgorithm.values) - ..e(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'keyOrigin', $pb.PbFieldType.OE, defaultOrMaker: ServiceAccountKeyOrigin.ORIGIN_UNSPECIFIED, valueOf: ServiceAccountKeyOrigin.valueOf, enumValues: ServiceAccountKeyOrigin.values) - ..e(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'keyType', $pb.PbFieldType.OE, defaultOrMaker: ListServiceAccountKeysRequest_KeyType.KEY_TYPE_UNSPECIFIED, valueOf: ListServiceAccountKeysRequest_KeyType.valueOf, enumValues: ListServiceAccountKeysRequest_KeyType.values) - ..hasRequiredFields = false; - - ServiceAccountKey._() : super(); factory ServiceAccountKey({ $core.String? name, ServiceAccountPrivateKeyType? privateKeyType, $core.List<$core.int>? privateKeyData, - $5.Timestamp? validAfterTime, - $5.Timestamp? validBeforeTime, + $50.Timestamp? validAfterTime, + $50.Timestamp? validBeforeTime, $core.List<$core.int>? publicKeyData, ServiceAccountKeyAlgorithm? keyAlgorithm, ServiceAccountKeyOrigin? keyOrigin, ListServiceAccountKeysRequest_KeyType? keyType, + $core.bool? disabled, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (privateKeyType != null) { - _result.privateKeyType = privateKeyType; + $result.privateKeyType = privateKeyType; } if (privateKeyData != null) { - _result.privateKeyData = privateKeyData; + $result.privateKeyData = privateKeyData; } if (validAfterTime != null) { - _result.validAfterTime = validAfterTime; + $result.validAfterTime = validAfterTime; } if (validBeforeTime != null) { - _result.validBeforeTime = validBeforeTime; + $result.validBeforeTime = validBeforeTime; } if (publicKeyData != null) { - _result.publicKeyData = publicKeyData; + $result.publicKeyData = publicKeyData; } if (keyAlgorithm != null) { - _result.keyAlgorithm = keyAlgorithm; + $result.keyAlgorithm = keyAlgorithm; } if (keyOrigin != null) { - _result.keyOrigin = keyOrigin; + $result.keyOrigin = keyOrigin; } if (keyType != null) { - _result.keyType = keyType; + $result.keyType = keyType; + } + if (disabled != null) { + $result.disabled = disabled; } - return _result; + return $result; } + ServiceAccountKey._() : super(); factory ServiceAccountKey.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ServiceAccountKey.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ServiceAccountKey', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e( + 2, _omitFieldNames ? '' : 'privateKeyType', $pb.PbFieldType.OE, + defaultOrMaker: ServiceAccountPrivateKeyType.TYPE_UNSPECIFIED, + valueOf: ServiceAccountPrivateKeyType.valueOf, + enumValues: ServiceAccountPrivateKeyType.values) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'privateKeyData', $pb.PbFieldType.OY) + ..aOM<$50.Timestamp>(4, _omitFieldNames ? '' : 'validAfterTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(5, _omitFieldNames ? '' : 'validBeforeTime', + subBuilder: $50.Timestamp.create) + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'publicKeyData', $pb.PbFieldType.OY) + ..e( + 8, _omitFieldNames ? '' : 'keyAlgorithm', $pb.PbFieldType.OE, + defaultOrMaker: ServiceAccountKeyAlgorithm.KEY_ALG_UNSPECIFIED, + valueOf: ServiceAccountKeyAlgorithm.valueOf, + enumValues: ServiceAccountKeyAlgorithm.values) + ..e( + 9, _omitFieldNames ? '' : 'keyOrigin', $pb.PbFieldType.OE, + defaultOrMaker: ServiceAccountKeyOrigin.ORIGIN_UNSPECIFIED, + valueOf: ServiceAccountKeyOrigin.valueOf, + enumValues: ServiceAccountKeyOrigin.values) + ..e( + 10, _omitFieldNames ? '' : 'keyType', $pb.PbFieldType.OE, + defaultOrMaker: + ListServiceAccountKeysRequest_KeyType.KEY_TYPE_UNSPECIFIED, + valueOf: ListServiceAccountKeysRequest_KeyType.valueOf, + enumValues: ListServiceAccountKeysRequest_KeyType.values) + ..aOB(11, _omitFieldNames ? '' : 'disabled') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') ServiceAccountKey clone() => ServiceAccountKey()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ServiceAccountKey copyWith(void Function(ServiceAccountKey) updates) => super.copyWith((message) => updates(message as ServiceAccountKey)) - as ServiceAccountKey; // ignore: deprecated_member_use + as ServiceAccountKey; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ServiceAccountKey create() => ServiceAccountKey._(); ServiceAccountKey createEmptyInstance() => create(); @@ -1419,6 +1481,8 @@ class ServiceAccountKey extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ServiceAccountKey? _defaultInstance; + /// The resource name of the service account key in the following format + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1431,6 +1495,12 @@ class ServiceAccountKey extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The output format for the private key. + /// Only provided in `CreateServiceAccountKey` responses, not + /// in `GetServiceAccountKey` or `ListServiceAccountKey` responses. + /// + /// Google never exposes system-managed private keys, and never retains + /// user-managed private keys. @$pb.TagNumber(2) ServiceAccountPrivateKeyType get privateKeyType => $_getN(1); @$pb.TagNumber(2) @@ -1443,6 +1513,13 @@ class ServiceAccountKey extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPrivateKeyType() => clearField(2); + /// The private key data. Only provided in `CreateServiceAccountKey` + /// responses. Make sure to keep the private key data secure because it + /// allows for the assertion of the service account identity. + /// When base64 decoded, the private key data can be used to authenticate with + /// Google API client libraries and with + /// gcloud + /// auth activate-service-account. @$pb.TagNumber(3) $core.List<$core.int> get privateKeyData => $_getN(2); @$pb.TagNumber(3) @@ -1455,10 +1532,11 @@ class ServiceAccountKey extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPrivateKeyData() => clearField(3); + /// The key can be used after this timestamp. @$pb.TagNumber(4) - $5.Timestamp get validAfterTime => $_getN(3); + $50.Timestamp get validAfterTime => $_getN(3); @$pb.TagNumber(4) - set validAfterTime($5.Timestamp v) { + set validAfterTime($50.Timestamp v) { setField(4, v); } @@ -1467,12 +1545,16 @@ class ServiceAccountKey extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearValidAfterTime() => clearField(4); @$pb.TagNumber(4) - $5.Timestamp ensureValidAfterTime() => $_ensure(3); + $50.Timestamp ensureValidAfterTime() => $_ensure(3); + /// The key can be used before this timestamp. + /// For system-managed key pairs, this timestamp is the end time for the + /// private key signing operation. The public key could still be used + /// for verification for a few hours after this time. @$pb.TagNumber(5) - $5.Timestamp get validBeforeTime => $_getN(4); + $50.Timestamp get validBeforeTime => $_getN(4); @$pb.TagNumber(5) - set validBeforeTime($5.Timestamp v) { + set validBeforeTime($50.Timestamp v) { setField(5, v); } @@ -1481,8 +1563,9 @@ class ServiceAccountKey extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearValidBeforeTime() => clearField(5); @$pb.TagNumber(5) - $5.Timestamp ensureValidBeforeTime() => $_ensure(4); + $50.Timestamp ensureValidBeforeTime() => $_ensure(4); + /// The public key data. Only provided in `GetServiceAccountKey` responses. @$pb.TagNumber(7) $core.List<$core.int> get publicKeyData => $_getN(5); @$pb.TagNumber(7) @@ -1495,6 +1578,7 @@ class ServiceAccountKey extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearPublicKeyData() => clearField(7); + /// Specifies the algorithm (and possibly key size) for the key. @$pb.TagNumber(8) ServiceAccountKeyAlgorithm get keyAlgorithm => $_getN(6); @$pb.TagNumber(8) @@ -1507,6 +1591,7 @@ class ServiceAccountKey extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearKeyAlgorithm() => clearField(8); + /// The key origin. @$pb.TagNumber(9) ServiceAccountKeyOrigin get keyOrigin => $_getN(7); @$pb.TagNumber(9) @@ -1519,6 +1604,7 @@ class ServiceAccountKey extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearKeyOrigin() => clearField(9); + /// The key type. @$pb.TagNumber(10) ListServiceAccountKeysRequest_KeyType get keyType => $_getN(8); @$pb.TagNumber(10) @@ -1530,61 +1616,66 @@ class ServiceAccountKey extends $pb.GeneratedMessage { $core.bool hasKeyType() => $_has(8); @$pb.TagNumber(10) void clearKeyType() => clearField(10); + + /// The key status. + @$pb.TagNumber(11) + $core.bool get disabled => $_getBF(9); + @$pb.TagNumber(11) + set disabled($core.bool v) { + $_setBool(9, v); + } + + @$pb.TagNumber(11) + $core.bool hasDisabled() => $_has(9); + @$pb.TagNumber(11) + void clearDisabled() => clearField(11); } +/// The service account key create request. class CreateServiceAccountKeyRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateServiceAccountKeyRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..e( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'privateKeyType', $pb.PbFieldType.OE, - defaultOrMaker: ServiceAccountPrivateKeyType.TYPE_UNSPECIFIED, - valueOf: ServiceAccountPrivateKeyType.valueOf, - enumValues: ServiceAccountPrivateKeyType.values) - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'keyAlgorithm', - $pb.PbFieldType.OE, - defaultOrMaker: ServiceAccountKeyAlgorithm.KEY_ALG_UNSPECIFIED, - valueOf: ServiceAccountKeyAlgorithm.valueOf, - enumValues: ServiceAccountKeyAlgorithm.values) - ..hasRequiredFields = false; - - CreateServiceAccountKeyRequest._() : super(); factory CreateServiceAccountKeyRequest({ $core.String? name, ServiceAccountPrivateKeyType? privateKeyType, ServiceAccountKeyAlgorithm? keyAlgorithm, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (privateKeyType != null) { - _result.privateKeyType = privateKeyType; + $result.privateKeyType = privateKeyType; } if (keyAlgorithm != null) { - _result.keyAlgorithm = keyAlgorithm; + $result.keyAlgorithm = keyAlgorithm; } - return _result; + return $result; } + CreateServiceAccountKeyRequest._() : super(); factory CreateServiceAccountKeyRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateServiceAccountKeyRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateServiceAccountKeyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..e( + 2, _omitFieldNames ? '' : 'privateKeyType', $pb.PbFieldType.OE, + defaultOrMaker: ServiceAccountPrivateKeyType.TYPE_UNSPECIFIED, + valueOf: ServiceAccountPrivateKeyType.valueOf, + enumValues: ServiceAccountPrivateKeyType.values) + ..e( + 3, _omitFieldNames ? '' : 'keyAlgorithm', $pb.PbFieldType.OE, + defaultOrMaker: ServiceAccountKeyAlgorithm.KEY_ALG_UNSPECIFIED, + valueOf: ServiceAccountKeyAlgorithm.valueOf, + enumValues: ServiceAccountKeyAlgorithm.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1597,8 +1688,10 @@ class CreateServiceAccountKeyRequest extends $pb.GeneratedMessage { void Function(CreateServiceAccountKeyRequest) updates) => super.copyWith( (message) => updates(message as CreateServiceAccountKeyRequest)) - as CreateServiceAccountKeyRequest; // ignore: deprecated_member_use + as CreateServiceAccountKeyRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateServiceAccountKeyRequest create() => CreateServiceAccountKeyRequest._(); @@ -1610,6 +1703,11 @@ class CreateServiceAccountKeyRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateServiceAccountKeyRequest? _defaultInstance; + /// Required. The resource name of the service account in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1622,6 +1720,9 @@ class CreateServiceAccountKeyRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The output format of the private key. The default value is + /// `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File + /// format. @$pb.TagNumber(2) ServiceAccountPrivateKeyType get privateKeyType => $_getN(1); @$pb.TagNumber(2) @@ -1634,6 +1735,9 @@ class CreateServiceAccountKeyRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPrivateKeyType() => clearField(2); + /// Which type of key and algorithm to use for the key. + /// The default is currently a 2K RSA key. However this may change in the + /// future. @$pb.TagNumber(3) ServiceAccountKeyAlgorithm get keyAlgorithm => $_getN(2); @$pb.TagNumber(3) @@ -1647,49 +1751,39 @@ class CreateServiceAccountKeyRequest extends $pb.GeneratedMessage { void clearKeyAlgorithm() => clearField(3); } +/// The service account key upload request. class UploadServiceAccountKeyRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UploadServiceAccountKeyRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..a<$core.List<$core.int>>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'publicKeyData', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - UploadServiceAccountKeyRequest._() : super(); factory UploadServiceAccountKeyRequest({ $core.String? name, $core.List<$core.int>? publicKeyData, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (publicKeyData != null) { - _result.publicKeyData = publicKeyData; + $result.publicKeyData = publicKeyData; } - return _result; + return $result; } + UploadServiceAccountKeyRequest._() : super(); factory UploadServiceAccountKeyRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UploadServiceAccountKeyRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UploadServiceAccountKeyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'publicKeyData', $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') @@ -1702,8 +1796,10 @@ class UploadServiceAccountKeyRequest extends $pb.GeneratedMessage { void Function(UploadServiceAccountKeyRequest) updates) => super.copyWith( (message) => updates(message as UploadServiceAccountKeyRequest)) - as UploadServiceAccountKeyRequest; // ignore: deprecated_member_use + as UploadServiceAccountKeyRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UploadServiceAccountKeyRequest create() => UploadServiceAccountKeyRequest._(); @@ -1715,6 +1811,11 @@ class UploadServiceAccountKeyRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UploadServiceAccountKeyRequest? _defaultInstance; + /// The resource name of the service account in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1727,6 +1828,10 @@ class UploadServiceAccountKeyRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The public key to associate with the service account. Must be an RSA public + /// key that is wrapped in an X.509 v3 certificate. Include the first line, + /// `-----BEGIN CERTIFICATE-----`, and the last line, + /// `-----END CERTIFICATE-----`. @$pb.TagNumber(2) $core.List<$core.int> get publicKeyData => $_getN(1); @$pb.TagNumber(2) @@ -1740,39 +1845,33 @@ class UploadServiceAccountKeyRequest extends $pb.GeneratedMessage { void clearPublicKeyData() => clearField(2); } +/// The service account key delete request. class DeleteServiceAccountKeyRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteServiceAccountKeyRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteServiceAccountKeyRequest._() : super(); factory DeleteServiceAccountKeyRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteServiceAccountKeyRequest._() : super(); factory DeleteServiceAccountKeyRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteServiceAccountKeyRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteServiceAccountKeyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1785,8 +1884,10 @@ class DeleteServiceAccountKeyRequest extends $pb.GeneratedMessage { void Function(DeleteServiceAccountKeyRequest) updates) => super.copyWith( (message) => updates(message as DeleteServiceAccountKeyRequest)) - as DeleteServiceAccountKeyRequest; // ignore: deprecated_member_use + as DeleteServiceAccountKeyRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteServiceAccountKeyRequest create() => DeleteServiceAccountKeyRequest._(); @@ -1798,6 +1899,11 @@ class DeleteServiceAccountKeyRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteServiceAccountKeyRequest? _defaultInstance; + /// Required. The resource name of the service account key in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1811,52 +1917,192 @@ class DeleteServiceAccountKeyRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } -class SignBlobRequest extends $pb.GeneratedMessage { +/// The service account key disable request. +class DisableServiceAccountKeyRequest extends $pb.GeneratedMessage { + factory DisableServiceAccountKeyRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + DisableServiceAccountKeyRequest._() : super(); + factory DisableServiceAccountKeyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DisableServiceAccountKeyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SignBlobRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), + _omitMessageNames ? '' : 'DisableServiceAccountKeyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..a<$core.List<$core.int>>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bytesToSign', - $pb.PbFieldType.OY) + ..aOS(1, _omitFieldNames ? '' : 'name') ..hasRequiredFields = false; - SignBlobRequest._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DisableServiceAccountKeyRequest clone() => + DisableServiceAccountKeyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DisableServiceAccountKeyRequest copyWith( + void Function(DisableServiceAccountKeyRequest) updates) => + super.copyWith( + (message) => updates(message as DisableServiceAccountKeyRequest)) + as DisableServiceAccountKeyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DisableServiceAccountKeyRequest create() => + DisableServiceAccountKeyRequest._(); + DisableServiceAccountKeyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DisableServiceAccountKeyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); + static DisableServiceAccountKeyRequest? _defaultInstance; + + /// Required. The resource name of the service account key in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + /// + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// The service account key enable request. +class EnableServiceAccountKeyRequest extends $pb.GeneratedMessage { + factory EnableServiceAccountKeyRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + EnableServiceAccountKeyRequest._() : super(); + factory EnableServiceAccountKeyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory EnableServiceAccountKeyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnableServiceAccountKeyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + EnableServiceAccountKeyRequest clone() => + EnableServiceAccountKeyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + EnableServiceAccountKeyRequest copyWith( + void Function(EnableServiceAccountKeyRequest) updates) => + super.copyWith( + (message) => updates(message as EnableServiceAccountKeyRequest)) + as EnableServiceAccountKeyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static EnableServiceAccountKeyRequest create() => + EnableServiceAccountKeyRequest._(); + EnableServiceAccountKeyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static EnableServiceAccountKeyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static EnableServiceAccountKeyRequest? _defaultInstance; + + /// Required. The resource name of the service account key in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + /// + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// Deprecated. [Migrate to Service Account Credentials +/// API](https://cloud.google.com/iam/help/credentials/migrate-api). +/// +/// The service account sign blob request. +class SignBlobRequest extends $pb.GeneratedMessage { factory SignBlobRequest({ @$core.Deprecated('This field is deprecated.') $core.String? name, @$core.Deprecated('This field is deprecated.') - $core.List<$core.int>? bytesToSign, + $core.List<$core.int>? bytesToSign, }) { - final _result = create(); + final $result = create(); if (name != null) { // ignore: deprecated_member_use_from_same_package - _result.name = name; + $result.name = name; } if (bytesToSign != null) { // ignore: deprecated_member_use_from_same_package - _result.bytesToSign = bytesToSign; + $result.bytesToSign = bytesToSign; } - return _result; + return $result; } + SignBlobRequest._() : super(); factory SignBlobRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SignBlobRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SignBlobRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'bytesToSign', $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') @@ -1866,8 +2112,10 @@ class SignBlobRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') SignBlobRequest copyWith(void Function(SignBlobRequest) updates) => super.copyWith((message) => updates(message as SignBlobRequest)) - as SignBlobRequest; // ignore: deprecated_member_use + as SignBlobRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SignBlobRequest create() => SignBlobRequest._(); SignBlobRequest createEmptyInstance() => create(); @@ -1878,6 +2126,14 @@ class SignBlobRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SignBlobRequest? _defaultInstance; + /// Required. Deprecated. [Migrate to Service Account Credentials + /// API](https://cloud.google.com/iam/help/credentials/migrate-api). + /// + /// The resource name of the service account in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @@ -1894,6 +2150,10 @@ class SignBlobRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Required. Deprecated. [Migrate to Service Account Credentials + /// API](https://cloud.google.com/iam/help/credentials/migrate-api). + /// + /// The bytes to sign. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(2) $core.List<$core.int> get bytesToSign => $_getN(1); @@ -1911,52 +2171,45 @@ class SignBlobRequest extends $pb.GeneratedMessage { void clearBytesToSign() => clearField(2); } +/// Deprecated. [Migrate to Service Account Credentials +/// API](https://cloud.google.com/iam/help/credentials/migrate-api). +/// +/// The service account sign blob response. class SignBlobResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SignBlobResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keyId') - ..a<$core.List<$core.int>>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'signature', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - SignBlobResponse._() : super(); factory SignBlobResponse({ @$core.Deprecated('This field is deprecated.') $core.String? keyId, @$core.Deprecated('This field is deprecated.') - $core.List<$core.int>? signature, + $core.List<$core.int>? signature, }) { - final _result = create(); + final $result = create(); if (keyId != null) { // ignore: deprecated_member_use_from_same_package - _result.keyId = keyId; + $result.keyId = keyId; } if (signature != null) { // ignore: deprecated_member_use_from_same_package - _result.signature = signature; + $result.signature = signature; } - return _result; + return $result; } + SignBlobResponse._() : super(); factory SignBlobResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SignBlobResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SignBlobResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'keyId') + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'signature', $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') @@ -1966,8 +2219,10 @@ class SignBlobResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') SignBlobResponse copyWith(void Function(SignBlobResponse) updates) => super.copyWith((message) => updates(message as SignBlobResponse)) - as SignBlobResponse; // ignore: deprecated_member_use + as SignBlobResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SignBlobResponse create() => SignBlobResponse._(); SignBlobResponse createEmptyInstance() => create(); @@ -1978,6 +2233,10 @@ class SignBlobResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SignBlobResponse? _defaultInstance; + /// Deprecated. [Migrate to Service Account Credentials + /// API](https://cloud.google.com/iam/help/credentials/migrate-api). + /// + /// The id of the key used to sign the blob. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(1) $core.String get keyId => $_getSZ(0); @@ -1994,6 +2253,10 @@ class SignBlobResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearKeyId() => clearField(1); + /// Deprecated. [Migrate to Service Account Credentials + /// API](https://cloud.google.com/iam/help/credentials/migrate-api). + /// + /// The signed blob. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(2) $core.List<$core.int> get signature => $_getN(1); @@ -2011,50 +2274,43 @@ class SignBlobResponse extends $pb.GeneratedMessage { void clearSignature() => clearField(2); } +/// Deprecated. [Migrate to Service Account Credentials +/// API](https://cloud.google.com/iam/help/credentials/migrate-api). +/// +/// The service account sign JWT request. class SignJwtRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SignJwtRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'payload') - ..hasRequiredFields = false; - - SignJwtRequest._() : super(); factory SignJwtRequest({ @$core.Deprecated('This field is deprecated.') $core.String? name, @$core.Deprecated('This field is deprecated.') $core.String? payload, }) { - final _result = create(); + final $result = create(); if (name != null) { // ignore: deprecated_member_use_from_same_package - _result.name = name; + $result.name = name; } if (payload != null) { // ignore: deprecated_member_use_from_same_package - _result.payload = payload; + $result.payload = payload; } - return _result; + return $result; } + SignJwtRequest._() : super(); factory SignJwtRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SignJwtRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SignJwtRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'payload') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2064,8 +2320,10 @@ class SignJwtRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') SignJwtRequest copyWith(void Function(SignJwtRequest) updates) => super.copyWith((message) => updates(message as SignJwtRequest)) - as SignJwtRequest; // ignore: deprecated_member_use + as SignJwtRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SignJwtRequest create() => SignJwtRequest._(); SignJwtRequest createEmptyInstance() => create(); @@ -2076,6 +2334,14 @@ class SignJwtRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SignJwtRequest? _defaultInstance; + /// Required. Deprecated. [Migrate to Service Account Credentials + /// API](https://cloud.google.com/iam/help/credentials/migrate-api). + /// + /// The resource name of the service account in the following format: + /// `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + /// Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + /// the account. The `ACCOUNT` value can be the `email` address or the + /// `unique_id` of the service account. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @@ -2092,6 +2358,19 @@ class SignJwtRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Required. Deprecated. [Migrate to Service Account Credentials + /// API](https://cloud.google.com/iam/help/credentials/migrate-api). + /// + /// The JWT payload to sign. Must be a serialized JSON object that contains a + /// JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` + /// + /// If the JWT Claims Set contains an expiration time (`exp`) claim, it must be + /// an integer timestamp that is not in the past and no more than 12 hours in + /// the future. + /// + /// If the JWT Claims Set does not contain an expiration time (`exp`) claim, + /// this claim is added automatically, with a timestamp that is 1 hour in the + /// future. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(2) $core.String get payload => $_getSZ(1); @@ -2109,50 +2388,43 @@ class SignJwtRequest extends $pb.GeneratedMessage { void clearPayload() => clearField(2); } +/// Deprecated. [Migrate to Service Account Credentials +/// API](https://cloud.google.com/iam/help/credentials/migrate-api). +/// +/// The service account sign JWT response. class SignJwtResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SignJwtResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keyId') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'signedJwt') - ..hasRequiredFields = false; - - SignJwtResponse._() : super(); factory SignJwtResponse({ @$core.Deprecated('This field is deprecated.') $core.String? keyId, @$core.Deprecated('This field is deprecated.') $core.String? signedJwt, }) { - final _result = create(); + final $result = create(); if (keyId != null) { // ignore: deprecated_member_use_from_same_package - _result.keyId = keyId; + $result.keyId = keyId; } if (signedJwt != null) { // ignore: deprecated_member_use_from_same_package - _result.signedJwt = signedJwt; + $result.signedJwt = signedJwt; } - return _result; + return $result; } + SignJwtResponse._() : super(); factory SignJwtResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SignJwtResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SignJwtResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'keyId') + ..aOS(2, _omitFieldNames ? '' : 'signedJwt') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2162,8 +2434,10 @@ class SignJwtResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') SignJwtResponse copyWith(void Function(SignJwtResponse) updates) => super.copyWith((message) => updates(message as SignJwtResponse)) - as SignJwtResponse; // ignore: deprecated_member_use + as SignJwtResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SignJwtResponse create() => SignJwtResponse._(); SignJwtResponse createEmptyInstance() => create(); @@ -2174,6 +2448,10 @@ class SignJwtResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SignJwtResponse? _defaultInstance; + /// Deprecated. [Migrate to Service Account Credentials + /// API](https://cloud.google.com/iam/help/credentials/migrate-api). + /// + /// The id of the key used to sign the JWT. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(1) $core.String get keyId => $_getSZ(0); @@ -2190,6 +2468,10 @@ class SignJwtResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearKeyId() => clearField(1); + /// Deprecated. [Migrate to Service Account Credentials + /// API](https://cloud.google.com/iam/help/credentials/migrate-api). + /// + /// The signed JWT. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(2) $core.String get signedJwt => $_getSZ(1); @@ -2207,43 +2489,8 @@ class SignJwtResponse extends $pb.GeneratedMessage { void clearSignedJwt() => clearField(2); } +/// A role in the Identity and Access Management API. class Role extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Role', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'title') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..pPS( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'includedPermissions') - ..e( - 8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stage', $pb.PbFieldType.OE, - defaultOrMaker: Role_RoleLaunchStage.ALPHA, - valueOf: Role_RoleLaunchStage.valueOf, - enumValues: Role_RoleLaunchStage.values) - ..a<$core.List<$core.int>>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'etag', $pb.PbFieldType.OY) - ..aOB(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'deleted') - ..hasRequiredFields = false; - - Role._() : super(); factory Role({ $core.String? name, $core.String? title, @@ -2253,36 +2500,57 @@ class Role extends $pb.GeneratedMessage { $core.List<$core.int>? etag, $core.bool? deleted, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (title != null) { - _result.title = title; + $result.title = title; } if (description != null) { - _result.description = description; + $result.description = description; } if (includedPermissions != null) { - _result.includedPermissions.addAll(includedPermissions); + $result.includedPermissions.addAll(includedPermissions); } if (stage != null) { - _result.stage = stage; + $result.stage = stage; } if (etag != null) { - _result.etag = etag; + $result.etag = etag; } if (deleted != null) { - _result.deleted = deleted; + $result.deleted = deleted; } - return _result; + return $result; } + Role._() : super(); factory Role.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Role.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Role', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'title') + ..aOS(3, _omitFieldNames ? '' : 'description') + ..pPS(7, _omitFieldNames ? '' : 'includedPermissions') + ..e( + 8, _omitFieldNames ? '' : 'stage', $pb.PbFieldType.OE, + defaultOrMaker: Role_RoleLaunchStage.ALPHA, + valueOf: Role_RoleLaunchStage.valueOf, + enumValues: Role_RoleLaunchStage.values) + ..a<$core.List<$core.int>>( + 9, _omitFieldNames ? '' : 'etag', $pb.PbFieldType.OY) + ..aOB(11, _omitFieldNames ? '' : 'deleted') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2291,9 +2559,10 @@ class Role extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Role copyWith(void Function(Role) updates) => - super.copyWith((message) => updates(message as Role)) - as Role; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Role)) as Role; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Role create() => Role._(); Role createEmptyInstance() => create(); @@ -2303,6 +2572,13 @@ class Role extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Role? _defaultInstance; + /// The name of the role. + /// + /// When Role is used in CreateRole, the role name must not be set. + /// + /// When Role is used in output and other input such as UpdateRole, the role + /// name is the complete path, e.g., roles/logging.viewer for predefined roles + /// and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2315,6 +2591,8 @@ class Role extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Optional. A human-readable title for the role. Typically this + /// is limited to 100 UTF-8 bytes. @$pb.TagNumber(2) $core.String get title => $_getSZ(1); @$pb.TagNumber(2) @@ -2327,6 +2605,7 @@ class Role extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearTitle() => clearField(2); + /// Optional. A human-readable description for the role. @$pb.TagNumber(3) $core.String get description => $_getSZ(2); @$pb.TagNumber(3) @@ -2339,9 +2618,13 @@ class Role extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDescription() => clearField(3); + /// The names of the permissions this role grants when bound in an IAM policy. @$pb.TagNumber(7) $core.List<$core.String> get includedPermissions => $_getList(3); + /// The current launch stage of the role. If the `ALPHA` launch stage has been + /// selected for a role, the `stage` field will not be included in the + /// returned definition for the role. @$pb.TagNumber(8) Role_RoleLaunchStage get stage => $_getN(4); @$pb.TagNumber(8) @@ -2354,6 +2637,7 @@ class Role extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearStage() => clearField(8); + /// Used to perform a consistent read-modify-write. @$pb.TagNumber(9) $core.List<$core.int> get etag => $_getN(5); @$pb.TagNumber(9) @@ -2366,6 +2650,8 @@ class Role extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearEtag() => clearField(9); + /// The current deleted state of the role. This field is read only. + /// It will be ignored in calls to CreateRole and UpdateRole. @$pb.TagNumber(11) $core.bool get deleted => $_getBF(6); @$pb.TagNumber(11) @@ -2379,61 +2665,51 @@ class Role extends $pb.GeneratedMessage { void clearDeleted() => clearField(11); } +/// The grantable role query request. class QueryGrantableRolesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QueryGrantableRolesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fullResourceName') - ..e(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'view', - $pb.PbFieldType.OE, - defaultOrMaker: RoleView.BASIC, - valueOf: RoleView.valueOf, - enumValues: RoleView.values) - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pageSize', - $pb.PbFieldType.O3) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pageToken') - ..hasRequiredFields = false; - - QueryGrantableRolesRequest._() : super(); factory QueryGrantableRolesRequest({ $core.String? fullResourceName, RoleView? view, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (fullResourceName != null) { - _result.fullResourceName = fullResourceName; + $result.fullResourceName = fullResourceName; } if (view != null) { - _result.view = view; + $result.view = view; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + QueryGrantableRolesRequest._() : super(); factory QueryGrantableRolesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QueryGrantableRolesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QueryGrantableRolesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'fullResourceName') + ..e(2, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: RoleView.BASIC, + valueOf: RoleView.valueOf, + enumValues: RoleView.values) + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(4, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2446,8 +2722,10 @@ class QueryGrantableRolesRequest extends $pb.GeneratedMessage { void Function(QueryGrantableRolesRequest) updates) => super.copyWith( (message) => updates(message as QueryGrantableRolesRequest)) - as QueryGrantableRolesRequest; // ignore: deprecated_member_use + as QueryGrantableRolesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QueryGrantableRolesRequest create() => QueryGrantableRolesRequest._(); QueryGrantableRolesRequest createEmptyInstance() => create(); @@ -2458,6 +2736,11 @@ class QueryGrantableRolesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QueryGrantableRolesRequest? _defaultInstance; + /// Required. The full resource name to query from the list of grantable roles. + /// + /// The name follows the Google Cloud Platform resource format. + /// For example, a Cloud Platform project with id `my-project` will be named + /// `//cloudresourcemanager.googleapis.com/projects/my-project`. @$pb.TagNumber(1) $core.String get fullResourceName => $_getSZ(0); @$pb.TagNumber(1) @@ -2482,6 +2765,9 @@ class QueryGrantableRolesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearView() => clearField(2); + /// Optional limit on the number of roles to include in the response. + /// + /// The default is 300, and the maximum is 1,000. @$pb.TagNumber(3) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(3) @@ -2494,6 +2780,8 @@ class QueryGrantableRolesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageSize() => clearField(3); + /// Optional pagination token returned in an earlier + /// QueryGrantableRolesResponse. @$pb.TagNumber(4) $core.String get pageToken => $_getSZ(3); @$pb.TagNumber(4) @@ -2507,47 +2795,39 @@ class QueryGrantableRolesRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(4); } +/// The grantable role query response. class QueryGrantableRolesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QueryGrantableRolesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'roles', - $pb.PbFieldType.PM, - subBuilder: Role.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - QueryGrantableRolesResponse._() : super(); factory QueryGrantableRolesResponse({ $core.Iterable? roles, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (roles != null) { - _result.roles.addAll(roles); + $result.roles.addAll(roles); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + QueryGrantableRolesResponse._() : super(); factory QueryGrantableRolesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QueryGrantableRolesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QueryGrantableRolesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'roles', $pb.PbFieldType.PM, + subBuilder: Role.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2560,8 +2840,10 @@ class QueryGrantableRolesResponse extends $pb.GeneratedMessage { void Function(QueryGrantableRolesResponse) updates) => super.copyWith( (message) => updates(message as QueryGrantableRolesResponse)) - as QueryGrantableRolesResponse; // ignore: deprecated_member_use + as QueryGrantableRolesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QueryGrantableRolesResponse create() => QueryGrantableRolesResponse._(); @@ -2573,9 +2855,12 @@ class QueryGrantableRolesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QueryGrantableRolesResponse? _defaultInstance; + /// The list of matching roles. @$pb.TagNumber(1) $core.List get roles => $_getList(0); + /// To retrieve the next page of results, set + /// `QueryGrantableRolesRequest.page_token` to this value. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -2589,39 +2874,8 @@ class QueryGrantableRolesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// The request to get all roles defined under a resource. class ListRolesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListRolesRequest', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..e(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'view', $pb.PbFieldType.OE, - defaultOrMaker: RoleView.BASIC, - valueOf: RoleView.valueOf, - enumValues: RoleView.values) - ..aOB(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'showDeleted') - ..hasRequiredFields = false; - - ListRolesRequest._() : super(); factory ListRolesRequest({ $core.String? parent, $core.int? pageSize, @@ -2629,30 +2883,47 @@ class ListRolesRequest extends $pb.GeneratedMessage { RoleView? view, $core.bool? showDeleted, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (view != null) { - _result.view = view; + $result.view = view; } if (showDeleted != null) { - _result.showDeleted = showDeleted; + $result.showDeleted = showDeleted; } - return _result; + return $result; } + ListRolesRequest._() : super(); factory ListRolesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListRolesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListRolesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..e(4, _omitFieldNames ? '' : 'view', $pb.PbFieldType.OE, + defaultOrMaker: RoleView.BASIC, + valueOf: RoleView.valueOf, + enumValues: RoleView.values) + ..aOB(6, _omitFieldNames ? '' : 'showDeleted') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2662,8 +2933,10 @@ class ListRolesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListRolesRequest copyWith(void Function(ListRolesRequest) updates) => super.copyWith((message) => updates(message as ListRolesRequest)) - as ListRolesRequest; // ignore: deprecated_member_use + as ListRolesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListRolesRequest create() => ListRolesRequest._(); ListRolesRequest createEmptyInstance() => create(); @@ -2674,6 +2947,36 @@ class ListRolesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListRolesRequest? _defaultInstance; + /// The `parent` parameter's value depends on the target resource for the + /// request, namely + /// [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), + /// [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), + /// or + /// [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + /// Each resource type's `parent` value format is described below: + /// + /// * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string. + /// This method doesn't require a resource; it simply returns all + /// [predefined + /// roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + /// in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles` + /// + /// * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list): + /// `projects/{PROJECT_ID}`. This method lists all project-level + /// [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles). + /// Example request URL: + /// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` + /// + /// * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list): + /// `organizations/{ORGANIZATION_ID}`. This method lists all + /// organization-level [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles). + /// Example request URL: + /// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` + /// + /// Note: Wildcard (*) values are invalid; you must specify a complete project + /// ID or organization ID. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2686,6 +2989,9 @@ class ListRolesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Optional limit on the number of roles to include in the response. + /// + /// The default is 300, and the maximum is 1,000. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -2698,6 +3004,7 @@ class ListRolesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Optional pagination token returned in an earlier ListRolesResponse. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -2710,6 +3017,10 @@ class ListRolesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// Optional view for the returned Role objects. When `FULL` is specified, + /// the `includedPermissions` field is returned, which includes a list of all + /// permissions in the role. The default value is `BASIC`, which does not + /// return the `includedPermissions` field. @$pb.TagNumber(4) RoleView get view => $_getN(3); @$pb.TagNumber(4) @@ -2722,6 +3033,7 @@ class ListRolesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearView() => clearField(4); + /// Include Roles that have been deleted. @$pb.TagNumber(6) $core.bool get showDeleted => $_getBF(4); @$pb.TagNumber(6) @@ -2735,47 +3047,39 @@ class ListRolesRequest extends $pb.GeneratedMessage { void clearShowDeleted() => clearField(6); } +/// The response containing the roles defined under a resource. class ListRolesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListRolesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'roles', - $pb.PbFieldType.PM, - subBuilder: Role.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListRolesResponse._() : super(); factory ListRolesResponse({ $core.Iterable? roles, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (roles != null) { - _result.roles.addAll(roles); + $result.roles.addAll(roles); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListRolesResponse._() : super(); factory ListRolesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListRolesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListRolesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'roles', $pb.PbFieldType.PM, + subBuilder: Role.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2785,8 +3089,10 @@ class ListRolesResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListRolesResponse copyWith(void Function(ListRolesResponse) updates) => super.copyWith((message) => updates(message as ListRolesResponse)) - as ListRolesResponse; // ignore: deprecated_member_use + as ListRolesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListRolesResponse create() => ListRolesResponse._(); ListRolesResponse createEmptyInstance() => create(); @@ -2797,9 +3103,12 @@ class ListRolesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListRolesResponse? _defaultInstance; + /// The Roles defined on this resource. @$pb.TagNumber(1) $core.List get roles => $_getList(0); + /// To retrieve the next page of results, set + /// `ListRolesRequest.page_token` to this value. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -2813,39 +3122,33 @@ class ListRolesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// The request to get the definition of an existing role. class GetRoleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetRoleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetRoleRequest._() : super(); factory GetRoleRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetRoleRequest._() : super(); factory GetRoleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetRoleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetRoleRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2855,8 +3158,10 @@ class GetRoleRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetRoleRequest copyWith(void Function(GetRoleRequest) updates) => super.copyWith((message) => updates(message as GetRoleRequest)) - as GetRoleRequest; // ignore: deprecated_member_use + as GetRoleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetRoleRequest create() => GetRoleRequest._(); GetRoleRequest createEmptyInstance() => create(); @@ -2867,6 +3172,37 @@ class GetRoleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetRoleRequest? _defaultInstance; + /// The `name` parameter's value depends on the target resource for the + /// request, namely + /// [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), + /// [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), + /// or + /// [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + /// Each resource type's `name` value format is described below: + /// + /// * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`. + /// This method returns results from all + /// [predefined + /// roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + /// in Cloud IAM. Example request URL: + /// `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` + /// + /// * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get): + /// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only + /// [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + /// have been created at the project level. Example request URL: + /// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` + /// + /// * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get): + /// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method + /// returns only [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + /// have been created at the organization level. Example request URL: + /// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` + /// + /// Note: Wildcard (*) values are invalid; you must specify a complete project + /// ID or organization ID. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2880,58 +3216,43 @@ class GetRoleRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The request to create a new role. class CreateRoleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateRoleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'roleId') - ..aOM( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'role', - subBuilder: Role.create) - ..hasRequiredFields = false; - - CreateRoleRequest._() : super(); factory CreateRoleRequest({ $core.String? parent, $core.String? roleId, Role? role, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (roleId != null) { - _result.roleId = roleId; + $result.roleId = roleId; } if (role != null) { - _result.role = role; + $result.role = role; } - return _result; + return $result; } + CreateRoleRequest._() : super(); factory CreateRoleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateRoleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateRoleRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'roleId') + ..aOM(3, _omitFieldNames ? '' : 'role', subBuilder: Role.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') @@ -2941,8 +3262,10 @@ class CreateRoleRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CreateRoleRequest copyWith(void Function(CreateRoleRequest) updates) => super.copyWith((message) => updates(message as CreateRoleRequest)) - as CreateRoleRequest; // ignore: deprecated_member_use + as CreateRoleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateRoleRequest create() => CreateRoleRequest._(); CreateRoleRequest createEmptyInstance() => create(); @@ -2953,6 +3276,29 @@ class CreateRoleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateRoleRequest? _defaultInstance; + /// The `parent` parameter's value depends on the target resource for the + /// request, namely + /// [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + /// or + /// [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + /// Each resource type's `parent` value format is described below: + /// + /// * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create): + /// `projects/{PROJECT_ID}`. This method creates project-level + /// [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles). + /// Example request URL: + /// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` + /// + /// * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create): + /// `organizations/{ORGANIZATION_ID}`. This method creates organization-level + /// [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles). + /// Example request URL: + /// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` + /// + /// Note: Wildcard (*) values are invalid; you must specify a complete project + /// ID or organization ID. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2965,6 +3311,11 @@ class CreateRoleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// The role ID to use for this role. + /// + /// A role ID may contain alphanumeric characters, underscores (`_`), and + /// periods (`.`). It must contain a minimum of 3 characters and a maximum of + /// 64 characters. @$pb.TagNumber(2) $core.String get roleId => $_getSZ(1); @$pb.TagNumber(2) @@ -2977,6 +3328,7 @@ class CreateRoleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRoleId() => clearField(2); + /// The Role resource to create. @$pb.TagNumber(3) Role get role => $_getN(2); @$pb.TagNumber(3) @@ -2992,55 +3344,44 @@ class CreateRoleRequest extends $pb.GeneratedMessage { Role ensureRole() => $_ensure(2); } +/// The request to update a role. class UpdateRoleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateRoleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'role', - subBuilder: Role.create) - ..aOM<$4.FieldMask>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'updateMask', - subBuilder: $4.FieldMask.create) - ..hasRequiredFields = false; - - UpdateRoleRequest._() : super(); factory UpdateRoleRequest({ $core.String? name, Role? role, - $4.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (role != null) { - _result.role = role; + $result.role = role; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateRoleRequest._() : super(); factory UpdateRoleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateRoleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateRoleRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM(2, _omitFieldNames ? '' : 'role', subBuilder: Role.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -3050,8 +3391,10 @@ class UpdateRoleRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') UpdateRoleRequest copyWith(void Function(UpdateRoleRequest) updates) => super.copyWith((message) => updates(message as UpdateRoleRequest)) - as UpdateRoleRequest; // ignore: deprecated_member_use + as UpdateRoleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateRoleRequest create() => UpdateRoleRequest._(); UpdateRoleRequest createEmptyInstance() => create(); @@ -3062,6 +3405,29 @@ class UpdateRoleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateRoleRequest? _defaultInstance; + /// The `name` parameter's value depends on the target resource for the + /// request, namely + /// [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + /// or + /// [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + /// Each resource type's `name` value format is described below: + /// + /// * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch): + /// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only + /// [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + /// have been created at the project level. Example request URL: + /// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` + /// + /// * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch): + /// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method + /// updates only [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + /// have been created at the organization level. Example request URL: + /// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` + /// + /// Note: Wildcard (*) values are invalid; you must specify a complete project + /// ID or organization ID. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3074,6 +3440,7 @@ class UpdateRoleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The updated role. @$pb.TagNumber(2) Role get role => $_getN(1); @$pb.TagNumber(2) @@ -3088,10 +3455,11 @@ class UpdateRoleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) Role ensureRole() => $_ensure(1); + /// A mask describing which fields in the Role have changed. @$pb.TagNumber(3) - $4.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(3) - set updateMask($4.FieldMask v) { + set updateMask($58.FieldMask v) { setField(3, v); } @@ -3100,52 +3468,42 @@ class UpdateRoleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUpdateMask() => clearField(3); @$pb.TagNumber(3) - $4.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// The request to delete an existing role. class DeleteRoleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteRoleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..a<$core.List<$core.int>>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'etag', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - DeleteRoleRequest._() : super(); factory DeleteRoleRequest({ $core.String? name, $core.List<$core.int>? etag, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (etag != null) { - _result.etag = etag; + $result.etag = etag; } - return _result; + return $result; } + DeleteRoleRequest._() : super(); factory DeleteRoleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteRoleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteRoleRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'etag', $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') @@ -3155,8 +3513,10 @@ class DeleteRoleRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteRoleRequest copyWith(void Function(DeleteRoleRequest) updates) => super.copyWith((message) => updates(message as DeleteRoleRequest)) - as DeleteRoleRequest; // ignore: deprecated_member_use + as DeleteRoleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteRoleRequest create() => DeleteRoleRequest._(); DeleteRoleRequest createEmptyInstance() => create(); @@ -3167,6 +3527,29 @@ class DeleteRoleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteRoleRequest? _defaultInstance; + /// The `name` parameter's value depends on the target resource for the + /// request, namely + /// [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + /// or + /// [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + /// Each resource type's `name` value format is described below: + /// + /// * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete): + /// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only + /// [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + /// have been created at the project level. Example request URL: + /// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` + /// + /// * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete): + /// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method + /// deletes only [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + /// have been created at the organization level. Example request URL: + /// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` + /// + /// Note: Wildcard (*) values are invalid; you must specify a complete project + /// ID or organization ID. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3179,6 +3562,7 @@ class DeleteRoleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Used to perform a consistent read-modify-write. @$pb.TagNumber(2) $core.List<$core.int> get etag => $_getN(1); @$pb.TagNumber(2) @@ -3192,49 +3576,39 @@ class DeleteRoleRequest extends $pb.GeneratedMessage { void clearEtag() => clearField(2); } +/// The request to undelete an existing role. class UndeleteRoleRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UndeleteRoleRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..a<$core.List<$core.int>>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'etag', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - UndeleteRoleRequest._() : super(); factory UndeleteRoleRequest({ $core.String? name, $core.List<$core.int>? etag, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (etag != null) { - _result.etag = etag; + $result.etag = etag; } - return _result; + return $result; } + UndeleteRoleRequest._() : super(); factory UndeleteRoleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UndeleteRoleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UndeleteRoleRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..a<$core.List<$core.int>>( + 2, _omitFieldNames ? '' : 'etag', $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') @@ -3244,8 +3618,10 @@ class UndeleteRoleRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') UndeleteRoleRequest copyWith(void Function(UndeleteRoleRequest) updates) => super.copyWith((message) => updates(message as UndeleteRoleRequest)) - as UndeleteRoleRequest; // ignore: deprecated_member_use + as UndeleteRoleRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UndeleteRoleRequest create() => UndeleteRoleRequest._(); UndeleteRoleRequest createEmptyInstance() => create(); @@ -3256,6 +3632,29 @@ class UndeleteRoleRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UndeleteRoleRequest? _defaultInstance; + /// The `name` parameter's value depends on the target resource for the + /// request, namely + /// [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + /// or + /// [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + /// Each resource type's `name` value format is described below: + /// + /// * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete): + /// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes + /// only [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + /// have been created at the project level. Example request URL: + /// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` + /// + /// * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete): + /// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method + /// undeletes only [custom + /// roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + /// have been created at the organization level. Example request URL: + /// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` + /// + /// Note: Wildcard (*) values are invalid; you must specify a complete project + /// ID or organization ID. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3268,6 +3667,7 @@ class UndeleteRoleRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Used to perform a consistent read-modify-write. @$pb.TagNumber(2) $core.List<$core.int> get etag => $_getN(1); @$pb.TagNumber(2) @@ -3281,89 +3681,78 @@ class UndeleteRoleRequest extends $pb.GeneratedMessage { void clearEtag() => clearField(2); } +/// A permission which can be included by a role. class Permission extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Permission', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'title') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..aOB( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'onlyInPredefinedRoles') - ..e( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stage', $pb.PbFieldType.OE, - defaultOrMaker: Permission_PermissionLaunchStage.ALPHA, - valueOf: Permission_PermissionLaunchStage.valueOf, - enumValues: Permission_PermissionLaunchStage.values) - ..e(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'customRolesSupportLevel', $pb.PbFieldType.OE, defaultOrMaker: Permission_CustomRolesSupportLevel.SUPPORTED, valueOf: Permission_CustomRolesSupportLevel.valueOf, enumValues: Permission_CustomRolesSupportLevel.values) - ..aOB(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'apiDisabled') - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'primaryPermission') - ..hasRequiredFields = false; - - Permission._() : super(); factory Permission({ $core.String? name, $core.String? title, $core.String? description, @$core.Deprecated('This field is deprecated.') - $core.bool? onlyInPredefinedRoles, + $core.bool? onlyInPredefinedRoles, Permission_PermissionLaunchStage? stage, Permission_CustomRolesSupportLevel? customRolesSupportLevel, $core.bool? apiDisabled, $core.String? primaryPermission, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (title != null) { - _result.title = title; + $result.title = title; } if (description != null) { - _result.description = description; + $result.description = description; } if (onlyInPredefinedRoles != null) { // ignore: deprecated_member_use_from_same_package - _result.onlyInPredefinedRoles = onlyInPredefinedRoles; + $result.onlyInPredefinedRoles = onlyInPredefinedRoles; } if (stage != null) { - _result.stage = stage; + $result.stage = stage; } if (customRolesSupportLevel != null) { - _result.customRolesSupportLevel = customRolesSupportLevel; + $result.customRolesSupportLevel = customRolesSupportLevel; } if (apiDisabled != null) { - _result.apiDisabled = apiDisabled; + $result.apiDisabled = apiDisabled; } if (primaryPermission != null) { - _result.primaryPermission = primaryPermission; + $result.primaryPermission = primaryPermission; } - return _result; + return $result; } + Permission._() : super(); factory Permission.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Permission.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Permission', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'title') + ..aOS(3, _omitFieldNames ? '' : 'description') + ..aOB(4, _omitFieldNames ? '' : 'onlyInPredefinedRoles') + ..e( + 5, _omitFieldNames ? '' : 'stage', $pb.PbFieldType.OE, + defaultOrMaker: Permission_PermissionLaunchStage.ALPHA, + valueOf: Permission_PermissionLaunchStage.valueOf, + enumValues: Permission_PermissionLaunchStage.values) + ..e( + 6, _omitFieldNames ? '' : 'customRolesSupportLevel', $pb.PbFieldType.OE, + defaultOrMaker: Permission_CustomRolesSupportLevel.SUPPORTED, + valueOf: Permission_CustomRolesSupportLevel.valueOf, + enumValues: Permission_CustomRolesSupportLevel.values) + ..aOB(7, _omitFieldNames ? '' : 'apiDisabled') + ..aOS(8, _omitFieldNames ? '' : 'primaryPermission') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3372,9 +3761,10 @@ class Permission extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Permission copyWith(void Function(Permission) updates) => - super.copyWith((message) => updates(message as Permission)) - as Permission; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Permission)) as Permission; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Permission create() => Permission._(); Permission createEmptyInstance() => create(); @@ -3384,6 +3774,7 @@ class Permission extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static Permission? _defaultInstance; + /// The name of this Permission. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3396,6 +3787,7 @@ class Permission extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The title of this Permission. @$pb.TagNumber(2) $core.String get title => $_getSZ(1); @$pb.TagNumber(2) @@ -3408,6 +3800,8 @@ class Permission extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearTitle() => clearField(2); + /// A brief description of what this Permission is used for. + /// This permission can ONLY be used in predefined roles. @$pb.TagNumber(3) $core.String get description => $_getSZ(2); @$pb.TagNumber(3) @@ -3436,6 +3830,7 @@ class Permission extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearOnlyInPredefinedRoles() => clearField(4); + /// The current launch stage of the permission. @$pb.TagNumber(5) Permission_PermissionLaunchStage get stage => $_getN(4); @$pb.TagNumber(5) @@ -3448,6 +3843,7 @@ class Permission extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearStage() => clearField(5); + /// The current custom role support level. @$pb.TagNumber(6) Permission_CustomRolesSupportLevel get customRolesSupportLevel => $_getN(5); @$pb.TagNumber(6) @@ -3460,6 +3856,7 @@ class Permission extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearCustomRolesSupportLevel() => clearField(6); + /// The service API associated with the permission is not enabled. @$pb.TagNumber(7) $core.bool get apiDisabled => $_getBF(6); @$pb.TagNumber(7) @@ -3472,6 +3869,8 @@ class Permission extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearApiDisabled() => clearField(7); + /// The preferred name for this permission. If present, then this permission is + /// an alias of, and equivalent to, the listed primary_permission. @$pb.TagNumber(8) $core.String get primaryPermission => $_getSZ(7); @$pb.TagNumber(8) @@ -3485,58 +3884,43 @@ class Permission extends $pb.GeneratedMessage { void clearPrimaryPermission() => clearField(8); } +/// A request to get permissions which can be tested on a resource. class QueryTestablePermissionsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QueryTestablePermissionsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fullResourceName') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - QueryTestablePermissionsRequest._() : super(); factory QueryTestablePermissionsRequest({ $core.String? fullResourceName, $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (fullResourceName != null) { - _result.fullResourceName = fullResourceName; + $result.fullResourceName = fullResourceName; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + QueryTestablePermissionsRequest._() : super(); factory QueryTestablePermissionsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QueryTestablePermissionsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QueryTestablePermissionsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'fullResourceName') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3549,8 +3933,10 @@ class QueryTestablePermissionsRequest extends $pb.GeneratedMessage { void Function(QueryTestablePermissionsRequest) updates) => super.copyWith( (message) => updates(message as QueryTestablePermissionsRequest)) - as QueryTestablePermissionsRequest; // ignore: deprecated_member_use + as QueryTestablePermissionsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QueryTestablePermissionsRequest create() => QueryTestablePermissionsRequest._(); @@ -3563,6 +3949,12 @@ class QueryTestablePermissionsRequest extends $pb.GeneratedMessage { create); static QueryTestablePermissionsRequest? _defaultInstance; + /// Required. The full resource name to query from the list of testable + /// permissions. + /// + /// The name follows the Google Cloud Platform resource format. + /// For example, a Cloud Platform project with id `my-project` will be named + /// `//cloudresourcemanager.googleapis.com/projects/my-project`. @$pb.TagNumber(1) $core.String get fullResourceName => $_getSZ(0); @$pb.TagNumber(1) @@ -3575,6 +3967,9 @@ class QueryTestablePermissionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearFullResourceName() => clearField(1); + /// Optional limit on the number of permissions to include in the response. + /// + /// The default is 100, and the maximum is 1,000. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -3587,6 +3982,8 @@ class QueryTestablePermissionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Optional pagination token returned in an earlier + /// QueryTestablePermissionsRequest. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -3600,47 +3997,40 @@ class QueryTestablePermissionsRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(3); } +/// The response containing permissions which can be tested on a resource. class QueryTestablePermissionsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QueryTestablePermissionsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'permissions', - $pb.PbFieldType.PM, - subBuilder: Permission.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - QueryTestablePermissionsResponse._() : super(); factory QueryTestablePermissionsResponse({ $core.Iterable? permissions, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (permissions != null) { - _result.permissions.addAll(permissions); + $result.permissions.addAll(permissions); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + QueryTestablePermissionsResponse._() : super(); factory QueryTestablePermissionsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QueryTestablePermissionsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QueryTestablePermissionsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'permissions', $pb.PbFieldType.PM, + subBuilder: Permission.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3653,8 +4043,10 @@ class QueryTestablePermissionsResponse extends $pb.GeneratedMessage { void Function(QueryTestablePermissionsResponse) updates) => super.copyWith( (message) => updates(message as QueryTestablePermissionsResponse)) - as QueryTestablePermissionsResponse; // ignore: deprecated_member_use + as QueryTestablePermissionsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QueryTestablePermissionsResponse create() => QueryTestablePermissionsResponse._(); @@ -3667,9 +4059,12 @@ class QueryTestablePermissionsResponse extends $pb.GeneratedMessage { create); static QueryTestablePermissionsResponse? _defaultInstance; + /// The Permissions testable on the requested resource. @$pb.TagNumber(1) $core.List get permissions => $_getList(0); + /// To retrieve the next page of results, set + /// `QueryTestableRolesRequest.page_token` to this value. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -3683,39 +4078,33 @@ class QueryTestablePermissionsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// A request to get the list of auditable services for a resource. class QueryAuditableServicesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QueryAuditableServicesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fullResourceName') - ..hasRequiredFields = false; - - QueryAuditableServicesRequest._() : super(); factory QueryAuditableServicesRequest({ $core.String? fullResourceName, }) { - final _result = create(); + final $result = create(); if (fullResourceName != null) { - _result.fullResourceName = fullResourceName; + $result.fullResourceName = fullResourceName; } - return _result; + return $result; } + QueryAuditableServicesRequest._() : super(); factory QueryAuditableServicesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QueryAuditableServicesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QueryAuditableServicesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'fullResourceName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3728,8 +4117,10 @@ class QueryAuditableServicesRequest extends $pb.GeneratedMessage { void Function(QueryAuditableServicesRequest) updates) => super.copyWith( (message) => updates(message as QueryAuditableServicesRequest)) - as QueryAuditableServicesRequest; // ignore: deprecated_member_use + as QueryAuditableServicesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QueryAuditableServicesRequest create() => QueryAuditableServicesRequest._(); @@ -3741,6 +4132,12 @@ class QueryAuditableServicesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QueryAuditableServicesRequest? _defaultInstance; + /// Required. The full resource name to query from the list of auditable + /// services. + /// + /// The name follows the Google Cloud Platform resource format. + /// For example, a Cloud Platform project with id `my-project` will be named + /// `//cloudresourcemanager.googleapis.com/projects/my-project`. @$pb.TagNumber(1) $core.String get fullResourceName => $_getSZ(0); @$pb.TagNumber(1) @@ -3754,34 +4151,19 @@ class QueryAuditableServicesRequest extends $pb.GeneratedMessage { void clearFullResourceName() => clearField(1); } +/// Contains information about an auditable service. class QueryAuditableServicesResponse_AuditableService extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QueryAuditableServicesResponse.AuditableService', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - QueryAuditableServicesResponse_AuditableService._() : super(); factory QueryAuditableServicesResponse_AuditableService({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + QueryAuditableServicesResponse_AuditableService._() : super(); factory QueryAuditableServicesResponse_AuditableService.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -3790,6 +4172,17 @@ class QueryAuditableServicesResponse_AuditableService $core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames + ? '' + : 'QueryAuditableServicesResponse.AuditableService', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3803,8 +4196,10 @@ class QueryAuditableServicesResponse_AuditableService updates) => super.copyWith((message) => updates( message as QueryAuditableServicesResponse_AuditableService)) - as QueryAuditableServicesResponse_AuditableService; // ignore: deprecated_member_use + as QueryAuditableServicesResponse_AuditableService; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QueryAuditableServicesResponse_AuditableService create() => QueryAuditableServicesResponse_AuditableService._(); @@ -3819,6 +4214,8 @@ class QueryAuditableServicesResponse_AuditableService QueryAuditableServicesResponse_AuditableService>(create); static QueryAuditableServicesResponse_AuditableService? _defaultInstance; + /// Public name of the service. + /// For example, the service name for Cloud IAM is 'iam.googleapis.com'. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3832,41 +4229,35 @@ class QueryAuditableServicesResponse_AuditableService void clearName() => clearField(1); } +/// A response containing a list of auditable services for a resource. class QueryAuditableServicesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'QueryAuditableServicesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'services', - $pb.PbFieldType.PM, - subBuilder: QueryAuditableServicesResponse_AuditableService.create) - ..hasRequiredFields = false; - - QueryAuditableServicesResponse._() : super(); factory QueryAuditableServicesResponse({ $core.Iterable? services, }) { - final _result = create(); + final $result = create(); if (services != null) { - _result.services.addAll(services); + $result.services.addAll(services); } - return _result; + return $result; } + QueryAuditableServicesResponse._() : super(); factory QueryAuditableServicesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QueryAuditableServicesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'QueryAuditableServicesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'services', $pb.PbFieldType.PM, + subBuilder: QueryAuditableServicesResponse_AuditableService.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') @@ -3879,8 +4270,10 @@ class QueryAuditableServicesResponse extends $pb.GeneratedMessage { void Function(QueryAuditableServicesResponse) updates) => super.copyWith( (message) => updates(message as QueryAuditableServicesResponse)) - as QueryAuditableServicesResponse; // ignore: deprecated_member_use + as QueryAuditableServicesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static QueryAuditableServicesResponse create() => QueryAuditableServicesResponse._(); @@ -3892,6 +4285,7 @@ class QueryAuditableServicesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static QueryAuditableServicesResponse? _defaultInstance; + /// The auditable services for a resource. @$pb.TagNumber(1) $core.List get services => $_getList(0); @@ -3899,55 +4293,45 @@ class QueryAuditableServicesResponse extends $pb.GeneratedMessage { enum LintPolicyRequest_LintObject { condition, notSet } +/// The request to lint a Cloud IAM policy object. class LintPolicyRequest extends $pb.GeneratedMessage { - static const $core.Map<$core.int, LintPolicyRequest_LintObject> - _LintPolicyRequest_LintObjectByTag = { - 5: LintPolicyRequest_LintObject.condition, - 0: LintPolicyRequest_LintObject.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LintPolicyRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..oo(0, [5]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fullResourceName') - ..aOM<$6.Expr>( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'condition', - subBuilder: $6.Expr.create) - ..hasRequiredFields = false; - - LintPolicyRequest._() : super(); factory LintPolicyRequest({ $core.String? fullResourceName, - $6.Expr? condition, + $114.Expr? condition, }) { - final _result = create(); + final $result = create(); if (fullResourceName != null) { - _result.fullResourceName = fullResourceName; + $result.fullResourceName = fullResourceName; } if (condition != null) { - _result.condition = condition; + $result.condition = condition; } - return _result; + return $result; } + LintPolicyRequest._() : super(); factory LintPolicyRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LintPolicyRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, LintPolicyRequest_LintObject> + _LintPolicyRequest_LintObjectByTag = { + 5: LintPolicyRequest_LintObject.condition, + 0: LintPolicyRequest_LintObject.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LintPolicyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..oo(0, [5]) + ..aOS(1, _omitFieldNames ? '' : 'fullResourceName') + ..aOM<$114.Expr>(5, _omitFieldNames ? '' : 'condition', + subBuilder: $114.Expr.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') @@ -3957,8 +4341,10 @@ class LintPolicyRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') LintPolicyRequest copyWith(void Function(LintPolicyRequest) updates) => super.copyWith((message) => updates(message as LintPolicyRequest)) - as LintPolicyRequest; // ignore: deprecated_member_use + as LintPolicyRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LintPolicyRequest create() => LintPolicyRequest._(); LintPolicyRequest createEmptyInstance() => create(); @@ -3973,6 +4359,15 @@ class LintPolicyRequest extends $pb.GeneratedMessage { _LintPolicyRequest_LintObjectByTag[$_whichOneof(0)]!; void clearLintObject() => clearField($_whichOneof(0)); + /// The full resource name of the policy this lint request is about. + /// + /// The name follows the Google Cloud Platform (GCP) resource format. + /// For example, a GCP project with ID `my-project` will be named + /// `//cloudresourcemanager.googleapis.com/projects/my-project`. + /// + /// The resource name is not used to read the policy instance from the Cloud + /// IAM database. The candidate policy for lint has to be provided in the same + /// request object. @$pb.TagNumber(1) $core.String get fullResourceName => $_getSZ(0); @$pb.TagNumber(1) @@ -3985,10 +4380,11 @@ class LintPolicyRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearFullResourceName() => clearField(1); + /// [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted. @$pb.TagNumber(5) - $6.Expr get condition => $_getN(1); + $114.Expr get condition => $_getN(1); @$pb.TagNumber(5) - set condition($6.Expr v) { + set condition($114.Expr v) { setField(5, v); } @@ -3997,38 +4393,11 @@ class LintPolicyRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearCondition() => clearField(5); @$pb.TagNumber(5) - $6.Expr ensureCondition() => $_ensure(1); + $114.Expr ensureCondition() => $_ensure(1); } +/// Structured response of a single validation unit. class LintResult extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LintResult', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..e(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'level', $pb.PbFieldType.OE, - defaultOrMaker: LintResult_Level.LEVEL_UNSPECIFIED, - valueOf: LintResult_Level.valueOf, - enumValues: LintResult_Level.values) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'validationUnitName') - ..e( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'severity', $pb.PbFieldType.OE, - defaultOrMaker: LintResult_Severity.SEVERITY_UNSPECIFIED, - valueOf: LintResult_Severity.valueOf, - enumValues: LintResult_Severity.values) - ..aOS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName') - ..a<$core.int>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'locationOffset', $pb.PbFieldType.O3) - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'debugMessage') - ..hasRequiredFields = false; - - LintResult._() : super(); factory LintResult({ LintResult_Level? level, $core.String? validationUnitName, @@ -4037,33 +4406,56 @@ class LintResult extends $pb.GeneratedMessage { $core.int? locationOffset, $core.String? debugMessage, }) { - final _result = create(); + final $result = create(); if (level != null) { - _result.level = level; + $result.level = level; } if (validationUnitName != null) { - _result.validationUnitName = validationUnitName; + $result.validationUnitName = validationUnitName; } if (severity != null) { - _result.severity = severity; + $result.severity = severity; } if (fieldName != null) { - _result.fieldName = fieldName; + $result.fieldName = fieldName; } if (locationOffset != null) { - _result.locationOffset = locationOffset; + $result.locationOffset = locationOffset; } if (debugMessage != null) { - _result.debugMessage = debugMessage; + $result.debugMessage = debugMessage; } - return _result; + return $result; } + LintResult._() : super(); factory LintResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LintResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LintResult', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..e(1, _omitFieldNames ? '' : 'level', $pb.PbFieldType.OE, + defaultOrMaker: LintResult_Level.LEVEL_UNSPECIFIED, + valueOf: LintResult_Level.valueOf, + enumValues: LintResult_Level.values) + ..aOS(2, _omitFieldNames ? '' : 'validationUnitName') + ..e( + 3, _omitFieldNames ? '' : 'severity', $pb.PbFieldType.OE, + defaultOrMaker: LintResult_Severity.SEVERITY_UNSPECIFIED, + valueOf: LintResult_Severity.valueOf, + enumValues: LintResult_Severity.values) + ..aOS(5, _omitFieldNames ? '' : 'fieldName') + ..a<$core.int>( + 6, _omitFieldNames ? '' : 'locationOffset', $pb.PbFieldType.O3) + ..aOS(7, _omitFieldNames ? '' : 'debugMessage') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -4072,9 +4464,10 @@ class LintResult extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') LintResult copyWith(void Function(LintResult) updates) => - super.copyWith((message) => updates(message as LintResult)) - as LintResult; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as LintResult)) as LintResult; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LintResult create() => LintResult._(); LintResult createEmptyInstance() => create(); @@ -4084,6 +4477,7 @@ class LintResult extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LintResult? _defaultInstance; + /// The validation unit level. @$pb.TagNumber(1) LintResult_Level get level => $_getN(0); @$pb.TagNumber(1) @@ -4096,6 +4490,8 @@ class LintResult extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearLevel() => clearField(1); + /// The validation unit name, for instance + /// "lintValidationUnits/ConditionComplexityCheck". @$pb.TagNumber(2) $core.String get validationUnitName => $_getSZ(1); @$pb.TagNumber(2) @@ -4108,6 +4504,7 @@ class LintResult extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearValidationUnitName() => clearField(2); + /// The validation unit severity. @$pb.TagNumber(3) LintResult_Severity get severity => $_getN(2); @$pb.TagNumber(3) @@ -4120,6 +4517,13 @@ class LintResult extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearSeverity() => clearField(3); + /// The name of the field for which this lint result is about. + /// + /// For nested messages `field_name` consists of names of the embedded fields + /// separated by period character. The top-level qualifier is the input object + /// to lint in the request. For example, the `field_name` value + /// `condition.expression` identifies a lint result for the `expression` field + /// of the provided condition. @$pb.TagNumber(5) $core.String get fieldName => $_getSZ(3); @$pb.TagNumber(5) @@ -4132,6 +4536,9 @@ class LintResult extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearFieldName() => clearField(5); + /// 0-based character position of problematic construct within the object + /// identified by `field_name`. Currently, this is populated only for condition + /// expression. @$pb.TagNumber(6) $core.int get locationOffset => $_getIZ(4); @$pb.TagNumber(6) @@ -4144,6 +4551,7 @@ class LintResult extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearLocationOffset() => clearField(6); + /// Human readable debug message associated with the issue. @$pb.TagNumber(7) $core.String get debugMessage => $_getSZ(5); @$pb.TagNumber(7) @@ -4157,41 +4565,36 @@ class LintResult extends $pb.GeneratedMessage { void clearDebugMessage() => clearField(7); } +/// The response of a lint operation. An empty response indicates +/// the operation was able to fully execute and no lint issue was found. class LintPolicyResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LintPolicyResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.admin.v1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'lintResults', - $pb.PbFieldType.PM, - subBuilder: LintResult.create) - ..hasRequiredFields = false; - - LintPolicyResponse._() : super(); factory LintPolicyResponse({ $core.Iterable? lintResults, }) { - final _result = create(); + final $result = create(); if (lintResults != null) { - _result.lintResults.addAll(lintResults); + $result.lintResults.addAll(lintResults); } - return _result; + return $result; } + LintPolicyResponse._() : super(); factory LintPolicyResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LintPolicyResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LintPolicyResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.admin.v1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'lintResults', $pb.PbFieldType.PM, + subBuilder: LintResult.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') @@ -4201,8 +4604,10 @@ class LintPolicyResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') LintPolicyResponse copyWith(void Function(LintPolicyResponse) updates) => super.copyWith((message) => updates(message as LintPolicyResponse)) - as LintPolicyResponse; // ignore: deprecated_member_use + as LintPolicyResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LintPolicyResponse create() => LintPolicyResponse._(); LintPolicyResponse createEmptyInstance() => create(); @@ -4213,6 +4618,11 @@ class LintPolicyResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LintPolicyResponse? _defaultInstance; + /// List of lint results sorted by `severity` in descending order. @$pb.TagNumber(1) $core.List get lintResults => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbenum.dart index e9ae28c3..aeb0dab2 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbenum.dart @@ -1,33 +1,27 @@ -/// +// // Generated code. Do not modify. // source: google/iam/admin/v1/iam.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Supported key algorithms. class ServiceAccountKeyAlgorithm extends $pb.ProtobufEnum { static const ServiceAccountKeyAlgorithm KEY_ALG_UNSPECIFIED = ServiceAccountKeyAlgorithm._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'KEY_ALG_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'KEY_ALG_UNSPECIFIED'); static const ServiceAccountKeyAlgorithm KEY_ALG_RSA_1024 = - ServiceAccountKeyAlgorithm._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'KEY_ALG_RSA_1024'); + ServiceAccountKeyAlgorithm._(1, _omitEnumNames ? '' : 'KEY_ALG_RSA_1024'); static const ServiceAccountKeyAlgorithm KEY_ALG_RSA_2048 = - ServiceAccountKeyAlgorithm._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'KEY_ALG_RSA_2048'); + ServiceAccountKeyAlgorithm._(2, _omitEnumNames ? '' : 'KEY_ALG_RSA_2048'); static const $core.List values = [ @@ -44,25 +38,17 @@ class ServiceAccountKeyAlgorithm extends $pb.ProtobufEnum { const ServiceAccountKeyAlgorithm._($core.int v, $core.String n) : super(v, n); } +/// Supported private key output formats. class ServiceAccountPrivateKeyType extends $pb.ProtobufEnum { static const ServiceAccountPrivateKeyType TYPE_UNSPECIFIED = ServiceAccountPrivateKeyType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'TYPE_UNSPECIFIED'); static const ServiceAccountPrivateKeyType TYPE_PKCS12_FILE = ServiceAccountPrivateKeyType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_PKCS12_FILE'); + 1, _omitEnumNames ? '' : 'TYPE_PKCS12_FILE'); static const ServiceAccountPrivateKeyType TYPE_GOOGLE_CREDENTIALS_FILE = ServiceAccountPrivateKeyType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_GOOGLE_CREDENTIALS_FILE'); + 2, _omitEnumNames ? '' : 'TYPE_GOOGLE_CREDENTIALS_FILE'); static const $core.List values = [ @@ -80,25 +66,16 @@ class ServiceAccountPrivateKeyType extends $pb.ProtobufEnum { : super(v, n); } +/// Supported public key output formats. class ServiceAccountPublicKeyType extends $pb.ProtobufEnum { static const ServiceAccountPublicKeyType TYPE_NONE = - ServiceAccountPublicKeyType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_NONE'); + ServiceAccountPublicKeyType._(0, _omitEnumNames ? '' : 'TYPE_NONE'); static const ServiceAccountPublicKeyType TYPE_X509_PEM_FILE = ServiceAccountPublicKeyType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_X509_PEM_FILE'); + 1, _omitEnumNames ? '' : 'TYPE_X509_PEM_FILE'); static const ServiceAccountPublicKeyType TYPE_RAW_PUBLIC_KEY = ServiceAccountPublicKeyType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_RAW_PUBLIC_KEY'); + 2, _omitEnumNames ? '' : 'TYPE_RAW_PUBLIC_KEY'); static const $core.List values = [ @@ -116,25 +93,14 @@ class ServiceAccountPublicKeyType extends $pb.ProtobufEnum { : super(v, n); } +/// Service Account Key Origin. class ServiceAccountKeyOrigin extends $pb.ProtobufEnum { static const ServiceAccountKeyOrigin ORIGIN_UNSPECIFIED = - ServiceAccountKeyOrigin._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ORIGIN_UNSPECIFIED'); + ServiceAccountKeyOrigin._(0, _omitEnumNames ? '' : 'ORIGIN_UNSPECIFIED'); static const ServiceAccountKeyOrigin USER_PROVIDED = - ServiceAccountKeyOrigin._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'USER_PROVIDED'); + ServiceAccountKeyOrigin._(1, _omitEnumNames ? '' : 'USER_PROVIDED'); static const ServiceAccountKeyOrigin GOOGLE_PROVIDED = - ServiceAccountKeyOrigin._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'GOOGLE_PROVIDED'); + ServiceAccountKeyOrigin._(2, _omitEnumNames ? '' : 'GOOGLE_PROVIDED'); static const $core.List values = [ @@ -150,11 +116,10 @@ class ServiceAccountKeyOrigin extends $pb.ProtobufEnum { const ServiceAccountKeyOrigin._($core.int v, $core.String n) : super(v, n); } +/// A view for Role objects. class RoleView extends $pb.ProtobufEnum { - static const RoleView BASIC = RoleView._( - 0, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BASIC'); - static const RoleView FULL = RoleView._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FULL'); + static const RoleView BASIC = RoleView._(0, _omitEnumNames ? '' : 'BASIC'); + static const RoleView FULL = RoleView._(1, _omitEnumNames ? '' : 'FULL'); static const $core.List values = [ BASIC, @@ -168,25 +133,18 @@ class RoleView extends $pb.ProtobufEnum { const RoleView._($core.int v, $core.String n) : super(v, n); } +/// `KeyType` filters to selectively retrieve certain varieties +/// of keys. class ListServiceAccountKeysRequest_KeyType extends $pb.ProtobufEnum { static const ListServiceAccountKeysRequest_KeyType KEY_TYPE_UNSPECIFIED = ListServiceAccountKeysRequest_KeyType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'KEY_TYPE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'KEY_TYPE_UNSPECIFIED'); static const ListServiceAccountKeysRequest_KeyType USER_MANAGED = ListServiceAccountKeysRequest_KeyType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'USER_MANAGED'); + 1, _omitEnumNames ? '' : 'USER_MANAGED'); static const ListServiceAccountKeysRequest_KeyType SYSTEM_MANAGED = ListServiceAccountKeysRequest_KeyType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SYSTEM_MANAGED'); + 2, _omitEnumNames ? '' : 'SYSTEM_MANAGED'); static const $core.List values = [ @@ -204,22 +162,20 @@ class ListServiceAccountKeysRequest_KeyType extends $pb.ProtobufEnum { : super(v, n); } +/// A stage representing a role's lifecycle phase. class Role_RoleLaunchStage extends $pb.ProtobufEnum { - static const Role_RoleLaunchStage ALPHA = Role_RoleLaunchStage._( - 0, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ALPHA'); - static const Role_RoleLaunchStage BETA = Role_RoleLaunchStage._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BETA'); - static const Role_RoleLaunchStage GA = Role_RoleLaunchStage._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'GA'); - static const Role_RoleLaunchStage DEPRECATED = Role_RoleLaunchStage._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DEPRECATED'); - static const Role_RoleLaunchStage DISABLED = Role_RoleLaunchStage._(5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DISABLED'); - static const Role_RoleLaunchStage EAP = Role_RoleLaunchStage._( - 6, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'EAP'); + static const Role_RoleLaunchStage ALPHA = + Role_RoleLaunchStage._(0, _omitEnumNames ? '' : 'ALPHA'); + static const Role_RoleLaunchStage BETA = + Role_RoleLaunchStage._(1, _omitEnumNames ? '' : 'BETA'); + static const Role_RoleLaunchStage GA = + Role_RoleLaunchStage._(2, _omitEnumNames ? '' : 'GA'); + static const Role_RoleLaunchStage DEPRECATED = + Role_RoleLaunchStage._(4, _omitEnumNames ? '' : 'DEPRECATED'); + static const Role_RoleLaunchStage DISABLED = + Role_RoleLaunchStage._(5, _omitEnumNames ? '' : 'DISABLED'); + static const Role_RoleLaunchStage EAP = + Role_RoleLaunchStage._(6, _omitEnumNames ? '' : 'EAP'); static const $core.List values = [ ALPHA, @@ -237,25 +193,16 @@ class Role_RoleLaunchStage extends $pb.ProtobufEnum { const Role_RoleLaunchStage._($core.int v, $core.String n) : super(v, n); } +/// A stage representing a permission's lifecycle phase. class Permission_PermissionLaunchStage extends $pb.ProtobufEnum { static const Permission_PermissionLaunchStage ALPHA = - Permission_PermissionLaunchStage._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ALPHA'); + Permission_PermissionLaunchStage._(0, _omitEnumNames ? '' : 'ALPHA'); static const Permission_PermissionLaunchStage BETA = - Permission_PermissionLaunchStage._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BETA'); + Permission_PermissionLaunchStage._(1, _omitEnumNames ? '' : 'BETA'); static const Permission_PermissionLaunchStage GA = - Permission_PermissionLaunchStage._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'GA'); + Permission_PermissionLaunchStage._(2, _omitEnumNames ? '' : 'GA'); static const Permission_PermissionLaunchStage DEPRECATED = - Permission_PermissionLaunchStage._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DEPRECATED'); + Permission_PermissionLaunchStage._(3, _omitEnumNames ? '' : 'DEPRECATED'); static const $core.List values = [ @@ -274,25 +221,16 @@ class Permission_PermissionLaunchStage extends $pb.ProtobufEnum { : super(v, n); } +/// The state of the permission with regards to custom roles. class Permission_CustomRolesSupportLevel extends $pb.ProtobufEnum { static const Permission_CustomRolesSupportLevel SUPPORTED = Permission_CustomRolesSupportLevel._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SUPPORTED'); + 0, _omitEnumNames ? '' : 'SUPPORTED'); static const Permission_CustomRolesSupportLevel TESTING = - Permission_CustomRolesSupportLevel._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TESTING'); + Permission_CustomRolesSupportLevel._(1, _omitEnumNames ? '' : 'TESTING'); static const Permission_CustomRolesSupportLevel NOT_SUPPORTED = Permission_CustomRolesSupportLevel._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NOT_SUPPORTED'); + 2, _omitEnumNames ? '' : 'NOT_SUPPORTED'); static const $core.List values = [ @@ -310,17 +248,13 @@ class Permission_CustomRolesSupportLevel extends $pb.ProtobufEnum { : super(v, n); } +/// Possible Level values of a validation unit corresponding to its domain +/// of discourse. class LintResult_Level extends $pb.ProtobufEnum { - static const LintResult_Level LEVEL_UNSPECIFIED = LintResult_Level._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LEVEL_UNSPECIFIED'); - static const LintResult_Level CONDITION = LintResult_Level._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CONDITION'); + static const LintResult_Level LEVEL_UNSPECIFIED = + LintResult_Level._(0, _omitEnumNames ? '' : 'LEVEL_UNSPECIFIED'); + static const LintResult_Level CONDITION = + LintResult_Level._(3, _omitEnumNames ? '' : 'CONDITION'); static const $core.List values = [ LEVEL_UNSPECIFIED, @@ -334,25 +268,20 @@ class LintResult_Level extends $pb.ProtobufEnum { const LintResult_Level._($core.int v, $core.String n) : super(v, n); } +/// Possible Severity values of an issued result. class LintResult_Severity extends $pb.ProtobufEnum { - static const LintResult_Severity SEVERITY_UNSPECIFIED = LintResult_Severity._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'SEVERITY_UNSPECIFIED'); - static const LintResult_Severity ERROR = LintResult_Severity._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ERROR'); - static const LintResult_Severity WARNING = LintResult_Severity._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WARNING'); - static const LintResult_Severity NOTICE = LintResult_Severity._(3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'NOTICE'); - static const LintResult_Severity INFO = LintResult_Severity._( - 4, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'INFO'); - static const LintResult_Severity DEPRECATED = LintResult_Severity._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DEPRECATED'); + static const LintResult_Severity SEVERITY_UNSPECIFIED = + LintResult_Severity._(0, _omitEnumNames ? '' : 'SEVERITY_UNSPECIFIED'); + static const LintResult_Severity ERROR = + LintResult_Severity._(1, _omitEnumNames ? '' : 'ERROR'); + static const LintResult_Severity WARNING = + LintResult_Severity._(2, _omitEnumNames ? '' : 'WARNING'); + static const LintResult_Severity NOTICE = + LintResult_Severity._(3, _omitEnumNames ? '' : 'NOTICE'); + static const LintResult_Severity INFO = + LintResult_Severity._(4, _omitEnumNames ? '' : 'INFO'); + static const LintResult_Severity DEPRECATED = + LintResult_Severity._(5, _omitEnumNames ? '' : 'DEPRECATED'); static const $core.List values = [ SEVERITY_UNSPECIFIED, @@ -369,3 +298,5 @@ class LintResult_Severity extends $pb.ProtobufEnum { const LintResult_Severity._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbgrpc.dart index a9759b5d..bff69858 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbgrpc.dart @@ -1,810 +1,891 @@ -/// +// // Generated code. Do not modify. // source: google/iam/admin/v1/iam.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'iam.pb.dart' as $2; -import '../../../protobuf/empty.pb.dart' as $3; -import '../../v1/iam_policy.pb.dart' as $0; -import '../../v1/policy.pb.dart' as $1; +import 'package:protobuf/protobuf.dart' as $pb; + +import '../../../protobuf/empty.pb.dart' as $1; +import '../../v1/iam_policy.pb.dart' as $42; +import '../../v1/policy.pb.dart' as $43; +import 'iam.pb.dart' as $45; + export 'iam.pb.dart'; +@$pb.GrpcServiceName('google.iam.admin.v1.IAM') class IAMClient extends $grpc.Client { static final _$listServiceAccounts = $grpc.ClientMethod< - $2.ListServiceAccountsRequest, $2.ListServiceAccountsResponse>( + $45.ListServiceAccountsRequest, $45.ListServiceAccountsResponse>( '/google.iam.admin.v1.IAM/ListServiceAccounts', - ($2.ListServiceAccountsRequest value) => value.writeToBuffer(), + ($45.ListServiceAccountsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListServiceAccountsResponse.fromBuffer(value)); + $45.ListServiceAccountsResponse.fromBuffer(value)); static final _$getServiceAccount = - $grpc.ClientMethod<$2.GetServiceAccountRequest, $2.ServiceAccount>( + $grpc.ClientMethod<$45.GetServiceAccountRequest, $45.ServiceAccount>( '/google.iam.admin.v1.IAM/GetServiceAccount', - ($2.GetServiceAccountRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.ServiceAccount.fromBuffer(value)); + ($45.GetServiceAccountRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $45.ServiceAccount.fromBuffer(value)); static final _$createServiceAccount = - $grpc.ClientMethod<$2.CreateServiceAccountRequest, $2.ServiceAccount>( + $grpc.ClientMethod<$45.CreateServiceAccountRequest, $45.ServiceAccount>( '/google.iam.admin.v1.IAM/CreateServiceAccount', - ($2.CreateServiceAccountRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.ServiceAccount.fromBuffer(value)); + ($45.CreateServiceAccountRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $45.ServiceAccount.fromBuffer(value)); static final _$updateServiceAccount = - $grpc.ClientMethod<$2.ServiceAccount, $2.ServiceAccount>( + $grpc.ClientMethod<$45.ServiceAccount, $45.ServiceAccount>( '/google.iam.admin.v1.IAM/UpdateServiceAccount', - ($2.ServiceAccount value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.ServiceAccount.fromBuffer(value)); + ($45.ServiceAccount value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $45.ServiceAccount.fromBuffer(value)); static final _$patchServiceAccount = - $grpc.ClientMethod<$2.PatchServiceAccountRequest, $2.ServiceAccount>( + $grpc.ClientMethod<$45.PatchServiceAccountRequest, $45.ServiceAccount>( '/google.iam.admin.v1.IAM/PatchServiceAccount', - ($2.PatchServiceAccountRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.ServiceAccount.fromBuffer(value)); + ($45.PatchServiceAccountRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $45.ServiceAccount.fromBuffer(value)); static final _$deleteServiceAccount = - $grpc.ClientMethod<$2.DeleteServiceAccountRequest, $3.Empty>( + $grpc.ClientMethod<$45.DeleteServiceAccountRequest, $1.Empty>( '/google.iam.admin.v1.IAM/DeleteServiceAccount', - ($2.DeleteServiceAccountRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.Empty.fromBuffer(value)); + ($45.DeleteServiceAccountRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); static final _$undeleteServiceAccount = $grpc.ClientMethod< - $2.UndeleteServiceAccountRequest, $2.UndeleteServiceAccountResponse>( + $45.UndeleteServiceAccountRequest, + $45.UndeleteServiceAccountResponse>( '/google.iam.admin.v1.IAM/UndeleteServiceAccount', - ($2.UndeleteServiceAccountRequest value) => value.writeToBuffer(), + ($45.UndeleteServiceAccountRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.UndeleteServiceAccountResponse.fromBuffer(value)); + $45.UndeleteServiceAccountResponse.fromBuffer(value)); static final _$enableServiceAccount = - $grpc.ClientMethod<$2.EnableServiceAccountRequest, $3.Empty>( + $grpc.ClientMethod<$45.EnableServiceAccountRequest, $1.Empty>( '/google.iam.admin.v1.IAM/EnableServiceAccount', - ($2.EnableServiceAccountRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.Empty.fromBuffer(value)); + ($45.EnableServiceAccountRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); static final _$disableServiceAccount = - $grpc.ClientMethod<$2.DisableServiceAccountRequest, $3.Empty>( + $grpc.ClientMethod<$45.DisableServiceAccountRequest, $1.Empty>( '/google.iam.admin.v1.IAM/DisableServiceAccount', - ($2.DisableServiceAccountRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.Empty.fromBuffer(value)); + ($45.DisableServiceAccountRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); static final _$listServiceAccountKeys = $grpc.ClientMethod< - $2.ListServiceAccountKeysRequest, $2.ListServiceAccountKeysResponse>( + $45.ListServiceAccountKeysRequest, + $45.ListServiceAccountKeysResponse>( '/google.iam.admin.v1.IAM/ListServiceAccountKeys', - ($2.ListServiceAccountKeysRequest value) => value.writeToBuffer(), + ($45.ListServiceAccountKeysRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListServiceAccountKeysResponse.fromBuffer(value)); - static final _$getServiceAccountKey = - $grpc.ClientMethod<$2.GetServiceAccountKeyRequest, $2.ServiceAccountKey>( - '/google.iam.admin.v1.IAM/GetServiceAccountKey', - ($2.GetServiceAccountKeyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $2.ServiceAccountKey.fromBuffer(value)); + $45.ListServiceAccountKeysResponse.fromBuffer(value)); + static final _$getServiceAccountKey = $grpc.ClientMethod< + $45.GetServiceAccountKeyRequest, $45.ServiceAccountKey>( + '/google.iam.admin.v1.IAM/GetServiceAccountKey', + ($45.GetServiceAccountKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $45.ServiceAccountKey.fromBuffer(value)); static final _$createServiceAccountKey = $grpc.ClientMethod< - $2.CreateServiceAccountKeyRequest, $2.ServiceAccountKey>( + $45.CreateServiceAccountKeyRequest, $45.ServiceAccountKey>( '/google.iam.admin.v1.IAM/CreateServiceAccountKey', - ($2.CreateServiceAccountKeyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.ServiceAccountKey.fromBuffer(value)); + ($45.CreateServiceAccountKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $45.ServiceAccountKey.fromBuffer(value)); static final _$uploadServiceAccountKey = $grpc.ClientMethod< - $2.UploadServiceAccountKeyRequest, $2.ServiceAccountKey>( + $45.UploadServiceAccountKeyRequest, $45.ServiceAccountKey>( '/google.iam.admin.v1.IAM/UploadServiceAccountKey', - ($2.UploadServiceAccountKeyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.ServiceAccountKey.fromBuffer(value)); + ($45.UploadServiceAccountKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $45.ServiceAccountKey.fromBuffer(value)); static final _$deleteServiceAccountKey = - $grpc.ClientMethod<$2.DeleteServiceAccountKeyRequest, $3.Empty>( + $grpc.ClientMethod<$45.DeleteServiceAccountKeyRequest, $1.Empty>( '/google.iam.admin.v1.IAM/DeleteServiceAccountKey', - ($2.DeleteServiceAccountKeyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $3.Empty.fromBuffer(value)); + ($45.DeleteServiceAccountKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); + static final _$disableServiceAccountKey = + $grpc.ClientMethod<$45.DisableServiceAccountKeyRequest, $1.Empty>( + '/google.iam.admin.v1.IAM/DisableServiceAccountKey', + ($45.DisableServiceAccountKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); + static final _$enableServiceAccountKey = + $grpc.ClientMethod<$45.EnableServiceAccountKeyRequest, $1.Empty>( + '/google.iam.admin.v1.IAM/EnableServiceAccountKey', + ($45.EnableServiceAccountKeyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); static final _$signBlob = - $grpc.ClientMethod<$2.SignBlobRequest, $2.SignBlobResponse>( + $grpc.ClientMethod<$45.SignBlobRequest, $45.SignBlobResponse>( '/google.iam.admin.v1.IAM/SignBlob', - ($2.SignBlobRequest value) => value.writeToBuffer(), + ($45.SignBlobRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.SignBlobResponse.fromBuffer(value)); + $45.SignBlobResponse.fromBuffer(value)); static final _$signJwt = - $grpc.ClientMethod<$2.SignJwtRequest, $2.SignJwtResponse>( + $grpc.ClientMethod<$45.SignJwtRequest, $45.SignJwtResponse>( '/google.iam.admin.v1.IAM/SignJwt', - ($2.SignJwtRequest value) => value.writeToBuffer(), + ($45.SignJwtRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.SignJwtResponse.fromBuffer(value)); + $45.SignJwtResponse.fromBuffer(value)); static final _$getIamPolicy = - $grpc.ClientMethod<$0.GetIamPolicyRequest, $1.Policy>( + $grpc.ClientMethod<$42.GetIamPolicyRequest, $43.Policy>( '/google.iam.admin.v1.IAM/GetIamPolicy', - ($0.GetIamPolicyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $1.Policy.fromBuffer(value)); + ($42.GetIamPolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $43.Policy.fromBuffer(value)); static final _$setIamPolicy = - $grpc.ClientMethod<$0.SetIamPolicyRequest, $1.Policy>( + $grpc.ClientMethod<$42.SetIamPolicyRequest, $43.Policy>( '/google.iam.admin.v1.IAM/SetIamPolicy', - ($0.SetIamPolicyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $1.Policy.fromBuffer(value)); + ($42.SetIamPolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $43.Policy.fromBuffer(value)); static final _$testIamPermissions = $grpc.ClientMethod< - $0.TestIamPermissionsRequest, $0.TestIamPermissionsResponse>( + $42.TestIamPermissionsRequest, $42.TestIamPermissionsResponse>( '/google.iam.admin.v1.IAM/TestIamPermissions', - ($0.TestIamPermissionsRequest value) => value.writeToBuffer(), + ($42.TestIamPermissionsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.TestIamPermissionsResponse.fromBuffer(value)); + $42.TestIamPermissionsResponse.fromBuffer(value)); static final _$queryGrantableRoles = $grpc.ClientMethod< - $2.QueryGrantableRolesRequest, $2.QueryGrantableRolesResponse>( + $45.QueryGrantableRolesRequest, $45.QueryGrantableRolesResponse>( '/google.iam.admin.v1.IAM/QueryGrantableRoles', - ($2.QueryGrantableRolesRequest value) => value.writeToBuffer(), + ($45.QueryGrantableRolesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.QueryGrantableRolesResponse.fromBuffer(value)); + $45.QueryGrantableRolesResponse.fromBuffer(value)); static final _$listRoles = - $grpc.ClientMethod<$2.ListRolesRequest, $2.ListRolesResponse>( + $grpc.ClientMethod<$45.ListRolesRequest, $45.ListRolesResponse>( '/google.iam.admin.v1.IAM/ListRoles', - ($2.ListRolesRequest value) => value.writeToBuffer(), + ($45.ListRolesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListRolesResponse.fromBuffer(value)); - static final _$getRole = $grpc.ClientMethod<$2.GetRoleRequest, $2.Role>( + $45.ListRolesResponse.fromBuffer(value)); + static final _$getRole = $grpc.ClientMethod<$45.GetRoleRequest, $45.Role>( '/google.iam.admin.v1.IAM/GetRole', - ($2.GetRoleRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.Role.fromBuffer(value)); - static final _$createRole = $grpc.ClientMethod<$2.CreateRoleRequest, $2.Role>( - '/google.iam.admin.v1.IAM/CreateRole', - ($2.CreateRoleRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.Role.fromBuffer(value)); - static final _$updateRole = $grpc.ClientMethod<$2.UpdateRoleRequest, $2.Role>( - '/google.iam.admin.v1.IAM/UpdateRole', - ($2.UpdateRoleRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.Role.fromBuffer(value)); - static final _$deleteRole = $grpc.ClientMethod<$2.DeleteRoleRequest, $2.Role>( - '/google.iam.admin.v1.IAM/DeleteRole', - ($2.DeleteRoleRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.Role.fromBuffer(value)); + ($45.GetRoleRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $45.Role.fromBuffer(value)); + static final _$createRole = + $grpc.ClientMethod<$45.CreateRoleRequest, $45.Role>( + '/google.iam.admin.v1.IAM/CreateRole', + ($45.CreateRoleRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $45.Role.fromBuffer(value)); + static final _$updateRole = + $grpc.ClientMethod<$45.UpdateRoleRequest, $45.Role>( + '/google.iam.admin.v1.IAM/UpdateRole', + ($45.UpdateRoleRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $45.Role.fromBuffer(value)); + static final _$deleteRole = + $grpc.ClientMethod<$45.DeleteRoleRequest, $45.Role>( + '/google.iam.admin.v1.IAM/DeleteRole', + ($45.DeleteRoleRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $45.Role.fromBuffer(value)); static final _$undeleteRole = - $grpc.ClientMethod<$2.UndeleteRoleRequest, $2.Role>( + $grpc.ClientMethod<$45.UndeleteRoleRequest, $45.Role>( '/google.iam.admin.v1.IAM/UndeleteRole', - ($2.UndeleteRoleRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.Role.fromBuffer(value)); + ($45.UndeleteRoleRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $45.Role.fromBuffer(value)); static final _$queryTestablePermissions = $grpc.ClientMethod< - $2.QueryTestablePermissionsRequest, - $2.QueryTestablePermissionsResponse>( + $45.QueryTestablePermissionsRequest, + $45.QueryTestablePermissionsResponse>( '/google.iam.admin.v1.IAM/QueryTestablePermissions', - ($2.QueryTestablePermissionsRequest value) => value.writeToBuffer(), + ($45.QueryTestablePermissionsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.QueryTestablePermissionsResponse.fromBuffer(value)); + $45.QueryTestablePermissionsResponse.fromBuffer(value)); static final _$queryAuditableServices = $grpc.ClientMethod< - $2.QueryAuditableServicesRequest, $2.QueryAuditableServicesResponse>( + $45.QueryAuditableServicesRequest, + $45.QueryAuditableServicesResponse>( '/google.iam.admin.v1.IAM/QueryAuditableServices', - ($2.QueryAuditableServicesRequest value) => value.writeToBuffer(), + ($45.QueryAuditableServicesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.QueryAuditableServicesResponse.fromBuffer(value)); + $45.QueryAuditableServicesResponse.fromBuffer(value)); static final _$lintPolicy = - $grpc.ClientMethod<$2.LintPolicyRequest, $2.LintPolicyResponse>( + $grpc.ClientMethod<$45.LintPolicyRequest, $45.LintPolicyResponse>( '/google.iam.admin.v1.IAM/LintPolicy', - ($2.LintPolicyRequest value) => value.writeToBuffer(), + ($45.LintPolicyRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.LintPolicyResponse.fromBuffer(value)); + $45.LintPolicyResponse.fromBuffer(value)); IAMClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.ListServiceAccountsResponse> listServiceAccounts( - $2.ListServiceAccountsRequest request, + $grpc.ResponseFuture<$45.ListServiceAccountsResponse> listServiceAccounts( + $45.ListServiceAccountsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listServiceAccounts, request, options: options); } - $grpc.ResponseFuture<$2.ServiceAccount> getServiceAccount( - $2.GetServiceAccountRequest request, + $grpc.ResponseFuture<$45.ServiceAccount> getServiceAccount( + $45.GetServiceAccountRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getServiceAccount, request, options: options); } - $grpc.ResponseFuture<$2.ServiceAccount> createServiceAccount( - $2.CreateServiceAccountRequest request, + $grpc.ResponseFuture<$45.ServiceAccount> createServiceAccount( + $45.CreateServiceAccountRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createServiceAccount, request, options: options); } - $grpc.ResponseFuture<$2.ServiceAccount> updateServiceAccount( - $2.ServiceAccount request, + $grpc.ResponseFuture<$45.ServiceAccount> updateServiceAccount( + $45.ServiceAccount request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateServiceAccount, request, options: options); } - $grpc.ResponseFuture<$2.ServiceAccount> patchServiceAccount( - $2.PatchServiceAccountRequest request, + $grpc.ResponseFuture<$45.ServiceAccount> patchServiceAccount( + $45.PatchServiceAccountRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$patchServiceAccount, request, options: options); } - $grpc.ResponseFuture<$3.Empty> deleteServiceAccount( - $2.DeleteServiceAccountRequest request, + $grpc.ResponseFuture<$1.Empty> deleteServiceAccount( + $45.DeleteServiceAccountRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteServiceAccount, request, options: options); } - $grpc.ResponseFuture<$2.UndeleteServiceAccountResponse> - undeleteServiceAccount($2.UndeleteServiceAccountRequest request, + $grpc.ResponseFuture<$45.UndeleteServiceAccountResponse> + undeleteServiceAccount($45.UndeleteServiceAccountRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$undeleteServiceAccount, request, options: options); } - $grpc.ResponseFuture<$3.Empty> enableServiceAccount( - $2.EnableServiceAccountRequest request, + $grpc.ResponseFuture<$1.Empty> enableServiceAccount( + $45.EnableServiceAccountRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$enableServiceAccount, request, options: options); } - $grpc.ResponseFuture<$3.Empty> disableServiceAccount( - $2.DisableServiceAccountRequest request, + $grpc.ResponseFuture<$1.Empty> disableServiceAccount( + $45.DisableServiceAccountRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$disableServiceAccount, request, options: options); } - $grpc.ResponseFuture<$2.ListServiceAccountKeysResponse> - listServiceAccountKeys($2.ListServiceAccountKeysRequest request, + $grpc.ResponseFuture<$45.ListServiceAccountKeysResponse> + listServiceAccountKeys($45.ListServiceAccountKeysRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listServiceAccountKeys, request, options: options); } - $grpc.ResponseFuture<$2.ServiceAccountKey> getServiceAccountKey( - $2.GetServiceAccountKeyRequest request, + $grpc.ResponseFuture<$45.ServiceAccountKey> getServiceAccountKey( + $45.GetServiceAccountKeyRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getServiceAccountKey, request, options: options); } - $grpc.ResponseFuture<$2.ServiceAccountKey> createServiceAccountKey( - $2.CreateServiceAccountKeyRequest request, + $grpc.ResponseFuture<$45.ServiceAccountKey> createServiceAccountKey( + $45.CreateServiceAccountKeyRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createServiceAccountKey, request, options: options); } - $grpc.ResponseFuture<$2.ServiceAccountKey> uploadServiceAccountKey( - $2.UploadServiceAccountKeyRequest request, + $grpc.ResponseFuture<$45.ServiceAccountKey> uploadServiceAccountKey( + $45.UploadServiceAccountKeyRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$uploadServiceAccountKey, request, options: options); } - $grpc.ResponseFuture<$3.Empty> deleteServiceAccountKey( - $2.DeleteServiceAccountKeyRequest request, + $grpc.ResponseFuture<$1.Empty> deleteServiceAccountKey( + $45.DeleteServiceAccountKeyRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteServiceAccountKey, request, options: options); } - $grpc.ResponseFuture<$2.SignBlobResponse> signBlob($2.SignBlobRequest request, + $grpc.ResponseFuture<$1.Empty> disableServiceAccountKey( + $45.DisableServiceAccountKeyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$disableServiceAccountKey, request, + options: options); + } + + $grpc.ResponseFuture<$1.Empty> enableServiceAccountKey( + $45.EnableServiceAccountKeyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$enableServiceAccountKey, request, + options: options); + } + + $grpc.ResponseFuture<$45.SignBlobResponse> signBlob( + $45.SignBlobRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$signBlob, request, options: options); } - $grpc.ResponseFuture<$2.SignJwtResponse> signJwt($2.SignJwtRequest request, + $grpc.ResponseFuture<$45.SignJwtResponse> signJwt($45.SignJwtRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$signJwt, request, options: options); } - $grpc.ResponseFuture<$1.Policy> getIamPolicy($0.GetIamPolicyRequest request, + $grpc.ResponseFuture<$43.Policy> getIamPolicy($42.GetIamPolicyRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getIamPolicy, request, options: options); } - $grpc.ResponseFuture<$1.Policy> setIamPolicy($0.SetIamPolicyRequest request, + $grpc.ResponseFuture<$43.Policy> setIamPolicy($42.SetIamPolicyRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$setIamPolicy, request, options: options); } - $grpc.ResponseFuture<$0.TestIamPermissionsResponse> testIamPermissions( - $0.TestIamPermissionsRequest request, + $grpc.ResponseFuture<$42.TestIamPermissionsResponse> testIamPermissions( + $42.TestIamPermissionsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$testIamPermissions, request, options: options); } - $grpc.ResponseFuture<$2.QueryGrantableRolesResponse> queryGrantableRoles( - $2.QueryGrantableRolesRequest request, + $grpc.ResponseFuture<$45.QueryGrantableRolesResponse> queryGrantableRoles( + $45.QueryGrantableRolesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$queryGrantableRoles, request, options: options); } - $grpc.ResponseFuture<$2.ListRolesResponse> listRoles( - $2.ListRolesRequest request, + $grpc.ResponseFuture<$45.ListRolesResponse> listRoles( + $45.ListRolesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listRoles, request, options: options); } - $grpc.ResponseFuture<$2.Role> getRole($2.GetRoleRequest request, + $grpc.ResponseFuture<$45.Role> getRole($45.GetRoleRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getRole, request, options: options); } - $grpc.ResponseFuture<$2.Role> createRole($2.CreateRoleRequest request, + $grpc.ResponseFuture<$45.Role> createRole($45.CreateRoleRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createRole, request, options: options); } - $grpc.ResponseFuture<$2.Role> updateRole($2.UpdateRoleRequest request, + $grpc.ResponseFuture<$45.Role> updateRole($45.UpdateRoleRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateRole, request, options: options); } - $grpc.ResponseFuture<$2.Role> deleteRole($2.DeleteRoleRequest request, + $grpc.ResponseFuture<$45.Role> deleteRole($45.DeleteRoleRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteRole, request, options: options); } - $grpc.ResponseFuture<$2.Role> undeleteRole($2.UndeleteRoleRequest request, + $grpc.ResponseFuture<$45.Role> undeleteRole($45.UndeleteRoleRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$undeleteRole, request, options: options); } - $grpc.ResponseFuture<$2.QueryTestablePermissionsResponse> - queryTestablePermissions($2.QueryTestablePermissionsRequest request, + $grpc.ResponseFuture<$45.QueryTestablePermissionsResponse> + queryTestablePermissions($45.QueryTestablePermissionsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$queryTestablePermissions, request, options: options); } - $grpc.ResponseFuture<$2.QueryAuditableServicesResponse> - queryAuditableServices($2.QueryAuditableServicesRequest request, + $grpc.ResponseFuture<$45.QueryAuditableServicesResponse> + queryAuditableServices($45.QueryAuditableServicesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$queryAuditableServices, request, options: options); } - $grpc.ResponseFuture<$2.LintPolicyResponse> lintPolicy( - $2.LintPolicyRequest request, + $grpc.ResponseFuture<$45.LintPolicyResponse> lintPolicy( + $45.LintPolicyRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$lintPolicy, request, options: options); } } +@$pb.GrpcServiceName('google.iam.admin.v1.IAM') abstract class IAMServiceBase extends $grpc.Service { $core.String get $name => 'google.iam.admin.v1.IAM'; IAMServiceBase() { - $addMethod($grpc.ServiceMethod<$2.ListServiceAccountsRequest, - $2.ListServiceAccountsResponse>( + $addMethod($grpc.ServiceMethod<$45.ListServiceAccountsRequest, + $45.ListServiceAccountsResponse>( 'ListServiceAccounts', listServiceAccounts_Pre, false, false, ($core.List<$core.int> value) => - $2.ListServiceAccountsRequest.fromBuffer(value), - ($2.ListServiceAccountsResponse value) => value.writeToBuffer())); + $45.ListServiceAccountsRequest.fromBuffer(value), + ($45.ListServiceAccountsResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.GetServiceAccountRequest, $2.ServiceAccount>( + $grpc.ServiceMethod<$45.GetServiceAccountRequest, $45.ServiceAccount>( 'GetServiceAccount', getServiceAccount_Pre, false, false, ($core.List<$core.int> value) => - $2.GetServiceAccountRequest.fromBuffer(value), - ($2.ServiceAccount value) => value.writeToBuffer())); - $addMethod( - $grpc.ServiceMethod<$2.CreateServiceAccountRequest, $2.ServiceAccount>( - 'CreateServiceAccount', - createServiceAccount_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.CreateServiceAccountRequest.fromBuffer(value), - ($2.ServiceAccount value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ServiceAccount, $2.ServiceAccount>( + $45.GetServiceAccountRequest.fromBuffer(value), + ($45.ServiceAccount value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.CreateServiceAccountRequest, + $45.ServiceAccount>( + 'CreateServiceAccount', + createServiceAccount_Pre, + false, + false, + ($core.List<$core.int> value) => + $45.CreateServiceAccountRequest.fromBuffer(value), + ($45.ServiceAccount value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.ServiceAccount, $45.ServiceAccount>( 'UpdateServiceAccount', updateServiceAccount_Pre, false, false, - ($core.List<$core.int> value) => $2.ServiceAccount.fromBuffer(value), - ($2.ServiceAccount value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $45.ServiceAccount.fromBuffer(value), + ($45.ServiceAccount value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$2.PatchServiceAccountRequest, $2.ServiceAccount>( + $grpc.ServiceMethod<$45.PatchServiceAccountRequest, $45.ServiceAccount>( 'PatchServiceAccount', patchServiceAccount_Pre, false, false, ($core.List<$core.int> value) => - $2.PatchServiceAccountRequest.fromBuffer(value), - ($2.ServiceAccount value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteServiceAccountRequest, $3.Empty>( + $45.PatchServiceAccountRequest.fromBuffer(value), + ($45.ServiceAccount value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.DeleteServiceAccountRequest, $1.Empty>( 'DeleteServiceAccount', deleteServiceAccount_Pre, false, false, ($core.List<$core.int> value) => - $2.DeleteServiceAccountRequest.fromBuffer(value), - ($3.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UndeleteServiceAccountRequest, - $2.UndeleteServiceAccountResponse>( + $45.DeleteServiceAccountRequest.fromBuffer(value), + ($1.Empty value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.UndeleteServiceAccountRequest, + $45.UndeleteServiceAccountResponse>( 'UndeleteServiceAccount', undeleteServiceAccount_Pre, false, false, ($core.List<$core.int> value) => - $2.UndeleteServiceAccountRequest.fromBuffer(value), - ($2.UndeleteServiceAccountResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.EnableServiceAccountRequest, $3.Empty>( + $45.UndeleteServiceAccountRequest.fromBuffer(value), + ($45.UndeleteServiceAccountResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.EnableServiceAccountRequest, $1.Empty>( 'EnableServiceAccount', enableServiceAccount_Pre, false, false, ($core.List<$core.int> value) => - $2.EnableServiceAccountRequest.fromBuffer(value), - ($3.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DisableServiceAccountRequest, $3.Empty>( + $45.EnableServiceAccountRequest.fromBuffer(value), + ($1.Empty value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.DisableServiceAccountRequest, $1.Empty>( 'DisableServiceAccount', disableServiceAccount_Pre, false, false, ($core.List<$core.int> value) => - $2.DisableServiceAccountRequest.fromBuffer(value), - ($3.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListServiceAccountKeysRequest, - $2.ListServiceAccountKeysResponse>( + $45.DisableServiceAccountRequest.fromBuffer(value), + ($1.Empty value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.ListServiceAccountKeysRequest, + $45.ListServiceAccountKeysResponse>( 'ListServiceAccountKeys', listServiceAccountKeys_Pre, false, false, ($core.List<$core.int> value) => - $2.ListServiceAccountKeysRequest.fromBuffer(value), - ($2.ListServiceAccountKeysResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetServiceAccountKeyRequest, - $2.ServiceAccountKey>( + $45.ListServiceAccountKeysRequest.fromBuffer(value), + ($45.ListServiceAccountKeysResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.GetServiceAccountKeyRequest, + $45.ServiceAccountKey>( 'GetServiceAccountKey', getServiceAccountKey_Pre, false, false, ($core.List<$core.int> value) => - $2.GetServiceAccountKeyRequest.fromBuffer(value), - ($2.ServiceAccountKey value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateServiceAccountKeyRequest, - $2.ServiceAccountKey>( + $45.GetServiceAccountKeyRequest.fromBuffer(value), + ($45.ServiceAccountKey value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.CreateServiceAccountKeyRequest, + $45.ServiceAccountKey>( 'CreateServiceAccountKey', createServiceAccountKey_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateServiceAccountKeyRequest.fromBuffer(value), - ($2.ServiceAccountKey value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UploadServiceAccountKeyRequest, - $2.ServiceAccountKey>( + $45.CreateServiceAccountKeyRequest.fromBuffer(value), + ($45.ServiceAccountKey value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.UploadServiceAccountKeyRequest, + $45.ServiceAccountKey>( 'UploadServiceAccountKey', uploadServiceAccountKey_Pre, false, false, ($core.List<$core.int> value) => - $2.UploadServiceAccountKeyRequest.fromBuffer(value), - ($2.ServiceAccountKey value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteServiceAccountKeyRequest, $3.Empty>( - 'DeleteServiceAccountKey', - deleteServiceAccountKey_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.DeleteServiceAccountKeyRequest.fromBuffer(value), - ($3.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.SignBlobRequest, $2.SignBlobResponse>( + $45.UploadServiceAccountKeyRequest.fromBuffer(value), + ($45.ServiceAccountKey value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$45.DeleteServiceAccountKeyRequest, $1.Empty>( + 'DeleteServiceAccountKey', + deleteServiceAccountKey_Pre, + false, + false, + ($core.List<$core.int> value) => + $45.DeleteServiceAccountKeyRequest.fromBuffer(value), + ($1.Empty value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$45.DisableServiceAccountKeyRequest, $1.Empty>( + 'DisableServiceAccountKey', + disableServiceAccountKey_Pre, + false, + false, + ($core.List<$core.int> value) => + $45.DisableServiceAccountKeyRequest.fromBuffer(value), + ($1.Empty value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$45.EnableServiceAccountKeyRequest, $1.Empty>( + 'EnableServiceAccountKey', + enableServiceAccountKey_Pre, + false, + false, + ($core.List<$core.int> value) => + $45.EnableServiceAccountKeyRequest.fromBuffer(value), + ($1.Empty value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.SignBlobRequest, $45.SignBlobResponse>( 'SignBlob', signBlob_Pre, false, false, - ($core.List<$core.int> value) => $2.SignBlobRequest.fromBuffer(value), - ($2.SignBlobResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.SignJwtRequest, $2.SignJwtResponse>( + ($core.List<$core.int> value) => $45.SignBlobRequest.fromBuffer(value), + ($45.SignBlobResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.SignJwtRequest, $45.SignJwtResponse>( 'SignJwt', signJwt_Pre, false, false, - ($core.List<$core.int> value) => $2.SignJwtRequest.fromBuffer(value), - ($2.SignJwtResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetIamPolicyRequest, $1.Policy>( + ($core.List<$core.int> value) => $45.SignJwtRequest.fromBuffer(value), + ($45.SignJwtResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$42.GetIamPolicyRequest, $43.Policy>( 'GetIamPolicy', getIamPolicy_Pre, false, false, ($core.List<$core.int> value) => - $0.GetIamPolicyRequest.fromBuffer(value), - ($1.Policy value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.SetIamPolicyRequest, $1.Policy>( + $42.GetIamPolicyRequest.fromBuffer(value), + ($43.Policy value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$42.SetIamPolicyRequest, $43.Policy>( 'SetIamPolicy', setIamPolicy_Pre, false, false, ($core.List<$core.int> value) => - $0.SetIamPolicyRequest.fromBuffer(value), - ($1.Policy value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.TestIamPermissionsRequest, - $0.TestIamPermissionsResponse>( + $42.SetIamPolicyRequest.fromBuffer(value), + ($43.Policy value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$42.TestIamPermissionsRequest, + $42.TestIamPermissionsResponse>( 'TestIamPermissions', testIamPermissions_Pre, false, false, ($core.List<$core.int> value) => - $0.TestIamPermissionsRequest.fromBuffer(value), - ($0.TestIamPermissionsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.QueryGrantableRolesRequest, - $2.QueryGrantableRolesResponse>( + $42.TestIamPermissionsRequest.fromBuffer(value), + ($42.TestIamPermissionsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.QueryGrantableRolesRequest, + $45.QueryGrantableRolesResponse>( 'QueryGrantableRoles', queryGrantableRoles_Pre, false, false, ($core.List<$core.int> value) => - $2.QueryGrantableRolesRequest.fromBuffer(value), - ($2.QueryGrantableRolesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListRolesRequest, $2.ListRolesResponse>( + $45.QueryGrantableRolesRequest.fromBuffer(value), + ($45.QueryGrantableRolesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.ListRolesRequest, $45.ListRolesResponse>( 'ListRoles', listRoles_Pre, false, false, - ($core.List<$core.int> value) => $2.ListRolesRequest.fromBuffer(value), - ($2.ListRolesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetRoleRequest, $2.Role>( + ($core.List<$core.int> value) => $45.ListRolesRequest.fromBuffer(value), + ($45.ListRolesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.GetRoleRequest, $45.Role>( 'GetRole', getRole_Pre, false, false, - ($core.List<$core.int> value) => $2.GetRoleRequest.fromBuffer(value), - ($2.Role value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateRoleRequest, $2.Role>( + ($core.List<$core.int> value) => $45.GetRoleRequest.fromBuffer(value), + ($45.Role value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.CreateRoleRequest, $45.Role>( 'CreateRole', createRole_Pre, false, false, - ($core.List<$core.int> value) => $2.CreateRoleRequest.fromBuffer(value), - ($2.Role value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UpdateRoleRequest, $2.Role>( + ($core.List<$core.int> value) => + $45.CreateRoleRequest.fromBuffer(value), + ($45.Role value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.UpdateRoleRequest, $45.Role>( 'UpdateRole', updateRole_Pre, false, false, - ($core.List<$core.int> value) => $2.UpdateRoleRequest.fromBuffer(value), - ($2.Role value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteRoleRequest, $2.Role>( + ($core.List<$core.int> value) => + $45.UpdateRoleRequest.fromBuffer(value), + ($45.Role value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.DeleteRoleRequest, $45.Role>( 'DeleteRole', deleteRole_Pre, false, false, - ($core.List<$core.int> value) => $2.DeleteRoleRequest.fromBuffer(value), - ($2.Role value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UndeleteRoleRequest, $2.Role>( + ($core.List<$core.int> value) => + $45.DeleteRoleRequest.fromBuffer(value), + ($45.Role value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.UndeleteRoleRequest, $45.Role>( 'UndeleteRole', undeleteRole_Pre, false, false, ($core.List<$core.int> value) => - $2.UndeleteRoleRequest.fromBuffer(value), - ($2.Role value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.QueryTestablePermissionsRequest, - $2.QueryTestablePermissionsResponse>( + $45.UndeleteRoleRequest.fromBuffer(value), + ($45.Role value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.QueryTestablePermissionsRequest, + $45.QueryTestablePermissionsResponse>( 'QueryTestablePermissions', queryTestablePermissions_Pre, false, false, ($core.List<$core.int> value) => - $2.QueryTestablePermissionsRequest.fromBuffer(value), - ($2.QueryTestablePermissionsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.QueryAuditableServicesRequest, - $2.QueryAuditableServicesResponse>( + $45.QueryTestablePermissionsRequest.fromBuffer(value), + ($45.QueryTestablePermissionsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$45.QueryAuditableServicesRequest, + $45.QueryAuditableServicesResponse>( 'QueryAuditableServices', queryAuditableServices_Pre, false, false, ($core.List<$core.int> value) => - $2.QueryAuditableServicesRequest.fromBuffer(value), - ($2.QueryAuditableServicesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.LintPolicyRequest, $2.LintPolicyResponse>( - 'LintPolicy', - lintPolicy_Pre, - false, - false, - ($core.List<$core.int> value) => $2.LintPolicyRequest.fromBuffer(value), - ($2.LintPolicyResponse value) => value.writeToBuffer())); + $45.QueryAuditableServicesRequest.fromBuffer(value), + ($45.QueryAuditableServicesResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$45.LintPolicyRequest, $45.LintPolicyResponse>( + 'LintPolicy', + lintPolicy_Pre, + false, + false, + ($core.List<$core.int> value) => + $45.LintPolicyRequest.fromBuffer(value), + ($45.LintPolicyResponse value) => value.writeToBuffer())); } - $async.Future<$2.ListServiceAccountsResponse> listServiceAccounts_Pre( + $async.Future<$45.ListServiceAccountsResponse> listServiceAccounts_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListServiceAccountsRequest> request) async { + $async.Future<$45.ListServiceAccountsRequest> request) async { return listServiceAccounts(call, await request); } - $async.Future<$2.ServiceAccount> getServiceAccount_Pre($grpc.ServiceCall call, - $async.Future<$2.GetServiceAccountRequest> request) async { + $async.Future<$45.ServiceAccount> getServiceAccount_Pre( + $grpc.ServiceCall call, + $async.Future<$45.GetServiceAccountRequest> request) async { return getServiceAccount(call, await request); } - $async.Future<$2.ServiceAccount> createServiceAccount_Pre( + $async.Future<$45.ServiceAccount> createServiceAccount_Pre( $grpc.ServiceCall call, - $async.Future<$2.CreateServiceAccountRequest> request) async { + $async.Future<$45.CreateServiceAccountRequest> request) async { return createServiceAccount(call, await request); } - $async.Future<$2.ServiceAccount> updateServiceAccount_Pre( - $grpc.ServiceCall call, $async.Future<$2.ServiceAccount> request) async { + $async.Future<$45.ServiceAccount> updateServiceAccount_Pre( + $grpc.ServiceCall call, $async.Future<$45.ServiceAccount> request) async { return updateServiceAccount(call, await request); } - $async.Future<$2.ServiceAccount> patchServiceAccount_Pre( + $async.Future<$45.ServiceAccount> patchServiceAccount_Pre( $grpc.ServiceCall call, - $async.Future<$2.PatchServiceAccountRequest> request) async { + $async.Future<$45.PatchServiceAccountRequest> request) async { return patchServiceAccount(call, await request); } - $async.Future<$3.Empty> deleteServiceAccount_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteServiceAccountRequest> request) async { + $async.Future<$1.Empty> deleteServiceAccount_Pre($grpc.ServiceCall call, + $async.Future<$45.DeleteServiceAccountRequest> request) async { return deleteServiceAccount(call, await request); } - $async.Future<$2.UndeleteServiceAccountResponse> undeleteServiceAccount_Pre( + $async.Future<$45.UndeleteServiceAccountResponse> undeleteServiceAccount_Pre( $grpc.ServiceCall call, - $async.Future<$2.UndeleteServiceAccountRequest> request) async { + $async.Future<$45.UndeleteServiceAccountRequest> request) async { return undeleteServiceAccount(call, await request); } - $async.Future<$3.Empty> enableServiceAccount_Pre($grpc.ServiceCall call, - $async.Future<$2.EnableServiceAccountRequest> request) async { + $async.Future<$1.Empty> enableServiceAccount_Pre($grpc.ServiceCall call, + $async.Future<$45.EnableServiceAccountRequest> request) async { return enableServiceAccount(call, await request); } - $async.Future<$3.Empty> disableServiceAccount_Pre($grpc.ServiceCall call, - $async.Future<$2.DisableServiceAccountRequest> request) async { + $async.Future<$1.Empty> disableServiceAccount_Pre($grpc.ServiceCall call, + $async.Future<$45.DisableServiceAccountRequest> request) async { return disableServiceAccount(call, await request); } - $async.Future<$2.ListServiceAccountKeysResponse> listServiceAccountKeys_Pre( + $async.Future<$45.ListServiceAccountKeysResponse> listServiceAccountKeys_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListServiceAccountKeysRequest> request) async { + $async.Future<$45.ListServiceAccountKeysRequest> request) async { return listServiceAccountKeys(call, await request); } - $async.Future<$2.ServiceAccountKey> getServiceAccountKey_Pre( + $async.Future<$45.ServiceAccountKey> getServiceAccountKey_Pre( $grpc.ServiceCall call, - $async.Future<$2.GetServiceAccountKeyRequest> request) async { + $async.Future<$45.GetServiceAccountKeyRequest> request) async { return getServiceAccountKey(call, await request); } - $async.Future<$2.ServiceAccountKey> createServiceAccountKey_Pre( + $async.Future<$45.ServiceAccountKey> createServiceAccountKey_Pre( $grpc.ServiceCall call, - $async.Future<$2.CreateServiceAccountKeyRequest> request) async { + $async.Future<$45.CreateServiceAccountKeyRequest> request) async { return createServiceAccountKey(call, await request); } - $async.Future<$2.ServiceAccountKey> uploadServiceAccountKey_Pre( + $async.Future<$45.ServiceAccountKey> uploadServiceAccountKey_Pre( $grpc.ServiceCall call, - $async.Future<$2.UploadServiceAccountKeyRequest> request) async { + $async.Future<$45.UploadServiceAccountKeyRequest> request) async { return uploadServiceAccountKey(call, await request); } - $async.Future<$3.Empty> deleteServiceAccountKey_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteServiceAccountKeyRequest> request) async { + $async.Future<$1.Empty> deleteServiceAccountKey_Pre($grpc.ServiceCall call, + $async.Future<$45.DeleteServiceAccountKeyRequest> request) async { return deleteServiceAccountKey(call, await request); } - $async.Future<$2.SignBlobResponse> signBlob_Pre( - $grpc.ServiceCall call, $async.Future<$2.SignBlobRequest> request) async { + $async.Future<$1.Empty> disableServiceAccountKey_Pre($grpc.ServiceCall call, + $async.Future<$45.DisableServiceAccountKeyRequest> request) async { + return disableServiceAccountKey(call, await request); + } + + $async.Future<$1.Empty> enableServiceAccountKey_Pre($grpc.ServiceCall call, + $async.Future<$45.EnableServiceAccountKeyRequest> request) async { + return enableServiceAccountKey(call, await request); + } + + $async.Future<$45.SignBlobResponse> signBlob_Pre($grpc.ServiceCall call, + $async.Future<$45.SignBlobRequest> request) async { return signBlob(call, await request); } - $async.Future<$2.SignJwtResponse> signJwt_Pre( - $grpc.ServiceCall call, $async.Future<$2.SignJwtRequest> request) async { + $async.Future<$45.SignJwtResponse> signJwt_Pre( + $grpc.ServiceCall call, $async.Future<$45.SignJwtRequest> request) async { return signJwt(call, await request); } - $async.Future<$1.Policy> getIamPolicy_Pre($grpc.ServiceCall call, - $async.Future<$0.GetIamPolicyRequest> request) async { + $async.Future<$43.Policy> getIamPolicy_Pre($grpc.ServiceCall call, + $async.Future<$42.GetIamPolicyRequest> request) async { return getIamPolicy(call, await request); } - $async.Future<$1.Policy> setIamPolicy_Pre($grpc.ServiceCall call, - $async.Future<$0.SetIamPolicyRequest> request) async { + $async.Future<$43.Policy> setIamPolicy_Pre($grpc.ServiceCall call, + $async.Future<$42.SetIamPolicyRequest> request) async { return setIamPolicy(call, await request); } - $async.Future<$0.TestIamPermissionsResponse> testIamPermissions_Pre( + $async.Future<$42.TestIamPermissionsResponse> testIamPermissions_Pre( $grpc.ServiceCall call, - $async.Future<$0.TestIamPermissionsRequest> request) async { + $async.Future<$42.TestIamPermissionsRequest> request) async { return testIamPermissions(call, await request); } - $async.Future<$2.QueryGrantableRolesResponse> queryGrantableRoles_Pre( + $async.Future<$45.QueryGrantableRolesResponse> queryGrantableRoles_Pre( $grpc.ServiceCall call, - $async.Future<$2.QueryGrantableRolesRequest> request) async { + $async.Future<$45.QueryGrantableRolesRequest> request) async { return queryGrantableRoles(call, await request); } - $async.Future<$2.ListRolesResponse> listRoles_Pre($grpc.ServiceCall call, - $async.Future<$2.ListRolesRequest> request) async { + $async.Future<$45.ListRolesResponse> listRoles_Pre($grpc.ServiceCall call, + $async.Future<$45.ListRolesRequest> request) async { return listRoles(call, await request); } - $async.Future<$2.Role> getRole_Pre( - $grpc.ServiceCall call, $async.Future<$2.GetRoleRequest> request) async { + $async.Future<$45.Role> getRole_Pre( + $grpc.ServiceCall call, $async.Future<$45.GetRoleRequest> request) async { return getRole(call, await request); } - $async.Future<$2.Role> createRole_Pre($grpc.ServiceCall call, - $async.Future<$2.CreateRoleRequest> request) async { + $async.Future<$45.Role> createRole_Pre($grpc.ServiceCall call, + $async.Future<$45.CreateRoleRequest> request) async { return createRole(call, await request); } - $async.Future<$2.Role> updateRole_Pre($grpc.ServiceCall call, - $async.Future<$2.UpdateRoleRequest> request) async { + $async.Future<$45.Role> updateRole_Pre($grpc.ServiceCall call, + $async.Future<$45.UpdateRoleRequest> request) async { return updateRole(call, await request); } - $async.Future<$2.Role> deleteRole_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteRoleRequest> request) async { + $async.Future<$45.Role> deleteRole_Pre($grpc.ServiceCall call, + $async.Future<$45.DeleteRoleRequest> request) async { return deleteRole(call, await request); } - $async.Future<$2.Role> undeleteRole_Pre($grpc.ServiceCall call, - $async.Future<$2.UndeleteRoleRequest> request) async { + $async.Future<$45.Role> undeleteRole_Pre($grpc.ServiceCall call, + $async.Future<$45.UndeleteRoleRequest> request) async { return undeleteRole(call, await request); } - $async.Future<$2.QueryTestablePermissionsResponse> + $async.Future<$45.QueryTestablePermissionsResponse> queryTestablePermissions_Pre($grpc.ServiceCall call, - $async.Future<$2.QueryTestablePermissionsRequest> request) async { + $async.Future<$45.QueryTestablePermissionsRequest> request) async { return queryTestablePermissions(call, await request); } - $async.Future<$2.QueryAuditableServicesResponse> queryAuditableServices_Pre( + $async.Future<$45.QueryAuditableServicesResponse> queryAuditableServices_Pre( $grpc.ServiceCall call, - $async.Future<$2.QueryAuditableServicesRequest> request) async { + $async.Future<$45.QueryAuditableServicesRequest> request) async { return queryAuditableServices(call, await request); } - $async.Future<$2.LintPolicyResponse> lintPolicy_Pre($grpc.ServiceCall call, - $async.Future<$2.LintPolicyRequest> request) async { + $async.Future<$45.LintPolicyResponse> lintPolicy_Pre($grpc.ServiceCall call, + $async.Future<$45.LintPolicyRequest> request) async { return lintPolicy(call, await request); } - $async.Future<$2.ListServiceAccountsResponse> listServiceAccounts( - $grpc.ServiceCall call, $2.ListServiceAccountsRequest request); - $async.Future<$2.ServiceAccount> getServiceAccount( - $grpc.ServiceCall call, $2.GetServiceAccountRequest request); - $async.Future<$2.ServiceAccount> createServiceAccount( - $grpc.ServiceCall call, $2.CreateServiceAccountRequest request); - $async.Future<$2.ServiceAccount> updateServiceAccount( - $grpc.ServiceCall call, $2.ServiceAccount request); - $async.Future<$2.ServiceAccount> patchServiceAccount( - $grpc.ServiceCall call, $2.PatchServiceAccountRequest request); - $async.Future<$3.Empty> deleteServiceAccount( - $grpc.ServiceCall call, $2.DeleteServiceAccountRequest request); - $async.Future<$2.UndeleteServiceAccountResponse> undeleteServiceAccount( - $grpc.ServiceCall call, $2.UndeleteServiceAccountRequest request); - $async.Future<$3.Empty> enableServiceAccount( - $grpc.ServiceCall call, $2.EnableServiceAccountRequest request); - $async.Future<$3.Empty> disableServiceAccount( - $grpc.ServiceCall call, $2.DisableServiceAccountRequest request); - $async.Future<$2.ListServiceAccountKeysResponse> listServiceAccountKeys( - $grpc.ServiceCall call, $2.ListServiceAccountKeysRequest request); - $async.Future<$2.ServiceAccountKey> getServiceAccountKey( - $grpc.ServiceCall call, $2.GetServiceAccountKeyRequest request); - $async.Future<$2.ServiceAccountKey> createServiceAccountKey( - $grpc.ServiceCall call, $2.CreateServiceAccountKeyRequest request); - $async.Future<$2.ServiceAccountKey> uploadServiceAccountKey( - $grpc.ServiceCall call, $2.UploadServiceAccountKeyRequest request); - $async.Future<$3.Empty> deleteServiceAccountKey( - $grpc.ServiceCall call, $2.DeleteServiceAccountKeyRequest request); - $async.Future<$2.SignBlobResponse> signBlob( - $grpc.ServiceCall call, $2.SignBlobRequest request); - $async.Future<$2.SignJwtResponse> signJwt( - $grpc.ServiceCall call, $2.SignJwtRequest request); - $async.Future<$1.Policy> getIamPolicy( - $grpc.ServiceCall call, $0.GetIamPolicyRequest request); - $async.Future<$1.Policy> setIamPolicy( - $grpc.ServiceCall call, $0.SetIamPolicyRequest request); - $async.Future<$0.TestIamPermissionsResponse> testIamPermissions( - $grpc.ServiceCall call, $0.TestIamPermissionsRequest request); - $async.Future<$2.QueryGrantableRolesResponse> queryGrantableRoles( - $grpc.ServiceCall call, $2.QueryGrantableRolesRequest request); - $async.Future<$2.ListRolesResponse> listRoles( - $grpc.ServiceCall call, $2.ListRolesRequest request); - $async.Future<$2.Role> getRole( - $grpc.ServiceCall call, $2.GetRoleRequest request); - $async.Future<$2.Role> createRole( - $grpc.ServiceCall call, $2.CreateRoleRequest request); - $async.Future<$2.Role> updateRole( - $grpc.ServiceCall call, $2.UpdateRoleRequest request); - $async.Future<$2.Role> deleteRole( - $grpc.ServiceCall call, $2.DeleteRoleRequest request); - $async.Future<$2.Role> undeleteRole( - $grpc.ServiceCall call, $2.UndeleteRoleRequest request); - $async.Future<$2.QueryTestablePermissionsResponse> queryTestablePermissions( - $grpc.ServiceCall call, $2.QueryTestablePermissionsRequest request); - $async.Future<$2.QueryAuditableServicesResponse> queryAuditableServices( - $grpc.ServiceCall call, $2.QueryAuditableServicesRequest request); - $async.Future<$2.LintPolicyResponse> lintPolicy( - $grpc.ServiceCall call, $2.LintPolicyRequest request); + $async.Future<$45.ListServiceAccountsResponse> listServiceAccounts( + $grpc.ServiceCall call, $45.ListServiceAccountsRequest request); + $async.Future<$45.ServiceAccount> getServiceAccount( + $grpc.ServiceCall call, $45.GetServiceAccountRequest request); + $async.Future<$45.ServiceAccount> createServiceAccount( + $grpc.ServiceCall call, $45.CreateServiceAccountRequest request); + $async.Future<$45.ServiceAccount> updateServiceAccount( + $grpc.ServiceCall call, $45.ServiceAccount request); + $async.Future<$45.ServiceAccount> patchServiceAccount( + $grpc.ServiceCall call, $45.PatchServiceAccountRequest request); + $async.Future<$1.Empty> deleteServiceAccount( + $grpc.ServiceCall call, $45.DeleteServiceAccountRequest request); + $async.Future<$45.UndeleteServiceAccountResponse> undeleteServiceAccount( + $grpc.ServiceCall call, $45.UndeleteServiceAccountRequest request); + $async.Future<$1.Empty> enableServiceAccount( + $grpc.ServiceCall call, $45.EnableServiceAccountRequest request); + $async.Future<$1.Empty> disableServiceAccount( + $grpc.ServiceCall call, $45.DisableServiceAccountRequest request); + $async.Future<$45.ListServiceAccountKeysResponse> listServiceAccountKeys( + $grpc.ServiceCall call, $45.ListServiceAccountKeysRequest request); + $async.Future<$45.ServiceAccountKey> getServiceAccountKey( + $grpc.ServiceCall call, $45.GetServiceAccountKeyRequest request); + $async.Future<$45.ServiceAccountKey> createServiceAccountKey( + $grpc.ServiceCall call, $45.CreateServiceAccountKeyRequest request); + $async.Future<$45.ServiceAccountKey> uploadServiceAccountKey( + $grpc.ServiceCall call, $45.UploadServiceAccountKeyRequest request); + $async.Future<$1.Empty> deleteServiceAccountKey( + $grpc.ServiceCall call, $45.DeleteServiceAccountKeyRequest request); + $async.Future<$1.Empty> disableServiceAccountKey( + $grpc.ServiceCall call, $45.DisableServiceAccountKeyRequest request); + $async.Future<$1.Empty> enableServiceAccountKey( + $grpc.ServiceCall call, $45.EnableServiceAccountKeyRequest request); + $async.Future<$45.SignBlobResponse> signBlob( + $grpc.ServiceCall call, $45.SignBlobRequest request); + $async.Future<$45.SignJwtResponse> signJwt( + $grpc.ServiceCall call, $45.SignJwtRequest request); + $async.Future<$43.Policy> getIamPolicy( + $grpc.ServiceCall call, $42.GetIamPolicyRequest request); + $async.Future<$43.Policy> setIamPolicy( + $grpc.ServiceCall call, $42.SetIamPolicyRequest request); + $async.Future<$42.TestIamPermissionsResponse> testIamPermissions( + $grpc.ServiceCall call, $42.TestIamPermissionsRequest request); + $async.Future<$45.QueryGrantableRolesResponse> queryGrantableRoles( + $grpc.ServiceCall call, $45.QueryGrantableRolesRequest request); + $async.Future<$45.ListRolesResponse> listRoles( + $grpc.ServiceCall call, $45.ListRolesRequest request); + $async.Future<$45.Role> getRole( + $grpc.ServiceCall call, $45.GetRoleRequest request); + $async.Future<$45.Role> createRole( + $grpc.ServiceCall call, $45.CreateRoleRequest request); + $async.Future<$45.Role> updateRole( + $grpc.ServiceCall call, $45.UpdateRoleRequest request); + $async.Future<$45.Role> deleteRole( + $grpc.ServiceCall call, $45.DeleteRoleRequest request); + $async.Future<$45.Role> undeleteRole( + $grpc.ServiceCall call, $45.UndeleteRoleRequest request); + $async.Future<$45.QueryTestablePermissionsResponse> queryTestablePermissions( + $grpc.ServiceCall call, $45.QueryTestablePermissionsRequest request); + $async.Future<$45.QueryAuditableServicesResponse> queryAuditableServices( + $grpc.ServiceCall call, $45.QueryAuditableServicesRequest request); + $async.Future<$45.LintPolicyResponse> lintPolicy( + $grpc.ServiceCall call, $45.LintPolicyRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbjson.dart index 1b3b6fb5..3d3a431f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/admin/v1/iam.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/iam/admin/v1/iam.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 serviceAccountKeyAlgorithmDescriptor instead') @@ -22,7 +26,9 @@ const ServiceAccountKeyAlgorithm$json = { /// Descriptor for `ServiceAccountKeyAlgorithm`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List serviceAccountKeyAlgorithmDescriptor = $convert.base64Decode( - 'ChpTZXJ2aWNlQWNjb3VudEtleUFsZ29yaXRobRIXChNLRVlfQUxHX1VOU1BFQ0lGSUVEEAASFAoQS0VZX0FMR19SU0FfMTAyNBABEhQKEEtFWV9BTEdfUlNBXzIwNDgQAg=='); + 'ChpTZXJ2aWNlQWNjb3VudEtleUFsZ29yaXRobRIXChNLRVlfQUxHX1VOU1BFQ0lGSUVEEAASFA' + 'oQS0VZX0FMR19SU0FfMTAyNBABEhQKEEtFWV9BTEdfUlNBXzIwNDgQAg=='); + @$core.Deprecated('Use serviceAccountPrivateKeyTypeDescriptor instead') const ServiceAccountPrivateKeyType$json = { '1': 'ServiceAccountPrivateKeyType', @@ -36,7 +42,9 @@ const ServiceAccountPrivateKeyType$json = { /// Descriptor for `ServiceAccountPrivateKeyType`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List serviceAccountPrivateKeyTypeDescriptor = $convert.base64Decode( - 'ChxTZXJ2aWNlQWNjb3VudFByaXZhdGVLZXlUeXBlEhQKEFRZUEVfVU5TUEVDSUZJRUQQABIUChBUWVBFX1BLQ1MxMl9GSUxFEAESIAocVFlQRV9HT09HTEVfQ1JFREVOVElBTFNfRklMRRAC'); + 'ChxTZXJ2aWNlQWNjb3VudFByaXZhdGVLZXlUeXBlEhQKEFRZUEVfVU5TUEVDSUZJRUQQABIUCh' + 'BUWVBFX1BLQ1MxMl9GSUxFEAESIAocVFlQRV9HT09HTEVfQ1JFREVOVElBTFNfRklMRRAC'); + @$core.Deprecated('Use serviceAccountPublicKeyTypeDescriptor instead') const ServiceAccountPublicKeyType$json = { '1': 'ServiceAccountPublicKeyType', @@ -50,7 +58,9 @@ const ServiceAccountPublicKeyType$json = { /// Descriptor for `ServiceAccountPublicKeyType`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List serviceAccountPublicKeyTypeDescriptor = $convert.base64Decode( - 'ChtTZXJ2aWNlQWNjb3VudFB1YmxpY0tleVR5cGUSDQoJVFlQRV9OT05FEAASFgoSVFlQRV9YNTA5X1BFTV9GSUxFEAESFwoTVFlQRV9SQVdfUFVCTElDX0tFWRAC'); + 'ChtTZXJ2aWNlQWNjb3VudFB1YmxpY0tleVR5cGUSDQoJVFlQRV9OT05FEAASFgoSVFlQRV9YNT' + 'A5X1BFTV9GSUxFEAESFwoTVFlQRV9SQVdfUFVCTElDX0tFWRAC'); + @$core.Deprecated('Use serviceAccountKeyOriginDescriptor instead') const ServiceAccountKeyOrigin$json = { '1': 'ServiceAccountKeyOrigin', @@ -64,7 +74,9 @@ const ServiceAccountKeyOrigin$json = { /// Descriptor for `ServiceAccountKeyOrigin`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List serviceAccountKeyOriginDescriptor = $convert.base64Decode( - 'ChdTZXJ2aWNlQWNjb3VudEtleU9yaWdpbhIWChJPUklHSU5fVU5TUEVDSUZJRUQQABIRCg1VU0VSX1BST1ZJREVEEAESEwoPR09PR0xFX1BST1ZJREVEEAI='); + 'ChdTZXJ2aWNlQWNjb3VudEtleU9yaWdpbhIWChJPUklHSU5fVU5TUEVDSUZJRUQQABIRCg1VU0' + 'VSX1BST1ZJREVEEAESEwoPR09PR0xFX1BST1ZJREVEEAI='); + @$core.Deprecated('Use roleViewDescriptor instead') const RoleView$json = { '1': 'RoleView', @@ -77,6 +89,7 @@ const RoleView$json = { /// Descriptor for `RoleView`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List roleViewDescriptor = $convert.base64Decode('CghSb2xlVmlldxIJCgVCQVNJQxAAEggKBEZVTEwQAQ=='); + @$core.Deprecated('Use serviceAccountDescriptor instead') const ServiceAccount$json = { '1': 'ServiceAccount', @@ -110,7 +123,15 @@ const ServiceAccount$json = { /// Descriptor for `ServiceAccount`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceAccountDescriptor = $convert.base64Decode( - 'Cg5TZXJ2aWNlQWNjb3VudBISCgRuYW1lGAEgASgJUgRuYW1lEiIKCnByb2plY3RfaWQYAiABKAlCA+BBA1IJcHJvamVjdElkEiAKCXVuaXF1ZV9pZBgEIAEoCUID4EEDUgh1bmlxdWVJZBIZCgVlbWFpbBgFIAEoCUID4EEDUgVlbWFpbBImCgxkaXNwbGF5X25hbWUYBiABKAlCA+BBAVILZGlzcGxheU5hbWUSFgoEZXRhZxgHIAEoDEICGAFSBGV0YWcSJQoLZGVzY3JpcHRpb24YCCABKAlCA+BBAVILZGVzY3JpcHRpb24SLQoQb2F1dGgyX2NsaWVudF9pZBgJIAEoCUID4EEDUg5vYXV0aDJDbGllbnRJZBIfCghkaXNhYmxlZBgLIAEoCEID4EEDUghkaXNhYmxlZDpc6kFZCiFpYW0uZ29vZ2xlYXBpcy5jb20vU2VydmljZUFjY291bnQSNHByb2plY3RzL3twcm9qZWN0fS9zZXJ2aWNlQWNjb3VudHMve3NlcnZpY2VfYWNjb3VudH0='); + 'Cg5TZXJ2aWNlQWNjb3VudBISCgRuYW1lGAEgASgJUgRuYW1lEiIKCnByb2plY3RfaWQYAiABKA' + 'lCA+BBA1IJcHJvamVjdElkEiAKCXVuaXF1ZV9pZBgEIAEoCUID4EEDUgh1bmlxdWVJZBIZCgVl' + 'bWFpbBgFIAEoCUID4EEDUgVlbWFpbBImCgxkaXNwbGF5X25hbWUYBiABKAlCA+BBAVILZGlzcG' + 'xheU5hbWUSFgoEZXRhZxgHIAEoDEICGAFSBGV0YWcSJQoLZGVzY3JpcHRpb24YCCABKAlCA+BB' + 'AVILZGVzY3JpcHRpb24SLQoQb2F1dGgyX2NsaWVudF9pZBgJIAEoCUID4EEDUg5vYXV0aDJDbG' + 'llbnRJZBIfCghkaXNhYmxlZBgLIAEoCEID4EEDUghkaXNhYmxlZDpc6kFZCiFpYW0uZ29vZ2xl' + 'YXBpcy5jb20vU2VydmljZUFjY291bnQSNHByb2plY3RzL3twcm9qZWN0fS9zZXJ2aWNlQWNjb3' + 'VudHMve3NlcnZpY2VfYWNjb3VudH0='); + @$core.Deprecated('Use createServiceAccountRequestDescriptor instead') const CreateServiceAccountRequest$json = { '1': 'CreateServiceAccountRequest', @@ -129,9 +150,12 @@ const CreateServiceAccountRequest$json = { }; /// Descriptor for `CreateServiceAccountRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List createServiceAccountRequestDescriptor = - $convert.base64Decode( - 'ChtDcmVhdGVTZXJ2aWNlQWNjb3VudFJlcXVlc3QSRwoEbmFtZRgBIAEoCUIz4EEC+kEtCitjbG91ZHJlc291cmNlbWFuYWdlci5nb29nbGVhcGlzLmNvbS9Qcm9qZWN0UgRuYW1lEiIKCmFjY291bnRfaWQYAiABKAlCA+BBAlIJYWNjb3VudElkEkwKD3NlcnZpY2VfYWNjb3VudBgDIAEoCzIjLmdvb2dsZS5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRSDnNlcnZpY2VBY2NvdW50'); +final $typed_data.Uint8List createServiceAccountRequestDescriptor = $convert.base64Decode( + 'ChtDcmVhdGVTZXJ2aWNlQWNjb3VudFJlcXVlc3QSRwoEbmFtZRgBIAEoCUIz4EEC+kEtCitjbG' + '91ZHJlc291cmNlbWFuYWdlci5nb29nbGVhcGlzLmNvbS9Qcm9qZWN0UgRuYW1lEiIKCmFjY291' + 'bnRfaWQYAiABKAlCA+BBAlIJYWNjb3VudElkEkwKD3NlcnZpY2VfYWNjb3VudBgDIAEoCzIjLm' + 'dvb2dsZS5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRSDnNlcnZpY2VBY2NvdW50'); + @$core.Deprecated('Use listServiceAccountsRequestDescriptor instead') const ListServiceAccountsRequest$json = { '1': 'ListServiceAccountsRequest', @@ -145,7 +169,10 @@ const ListServiceAccountsRequest$json = { /// Descriptor for `ListServiceAccountsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServiceAccountsRequestDescriptor = $convert.base64Decode( - 'ChpMaXN0U2VydmljZUFjY291bnRzUmVxdWVzdBJHCgRuYW1lGAEgASgJQjPgQQL6QS0KK2Nsb3VkcmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1Byb2plY3RSBG5hbWUSGwoJcGFnZV9zaXplGAIgASgFUghwYWdlU2l6ZRIdCgpwYWdlX3Rva2VuGAMgASgJUglwYWdlVG9rZW4='); + 'ChpMaXN0U2VydmljZUFjY291bnRzUmVxdWVzdBJHCgRuYW1lGAEgASgJQjPgQQL6QS0KK2Nsb3' + 'VkcmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1Byb2plY3RSBG5hbWUSGwoJcGFnZV9z' + 'aXplGAIgASgFUghwYWdlU2l6ZRIdCgpwYWdlX3Rva2VuGAMgASgJUglwYWdlVG9rZW4='); + @$core.Deprecated('Use listServiceAccountsResponseDescriptor instead') const ListServiceAccountsResponse$json = { '1': 'ListServiceAccountsResponse', @@ -165,7 +192,10 @@ const ListServiceAccountsResponse$json = { /// Descriptor for `ListServiceAccountsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServiceAccountsResponseDescriptor = $convert.base64Decode( - 'ChtMaXN0U2VydmljZUFjY291bnRzUmVzcG9uc2USPwoIYWNjb3VudHMYASADKAsyIy5nb29nbGUuaWFtLmFkbWluLnYxLlNlcnZpY2VBY2NvdW50UghhY2NvdW50cxImCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + 'ChtMaXN0U2VydmljZUFjY291bnRzUmVzcG9uc2USPwoIYWNjb3VudHMYASADKAsyIy5nb29nbG' + 'UuaWFtLmFkbWluLnYxLlNlcnZpY2VBY2NvdW50UghhY2NvdW50cxImCg9uZXh0X3BhZ2VfdG9r' + 'ZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); + @$core.Deprecated('Use getServiceAccountRequestDescriptor instead') const GetServiceAccountRequest$json = { '1': 'GetServiceAccountRequest', @@ -177,7 +207,9 @@ const GetServiceAccountRequest$json = { /// Descriptor for `GetServiceAccountRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getServiceAccountRequestDescriptor = $convert.base64Decode( - 'ChhHZXRTZXJ2aWNlQWNjb3VudFJlcXVlc3QSPQoEbmFtZRgBIAEoCUIp4EEC+kEjCiFpYW0uZ29vZ2xlYXBpcy5jb20vU2VydmljZUFjY291bnRSBG5hbWU='); + 'ChhHZXRTZXJ2aWNlQWNjb3VudFJlcXVlc3QSPQoEbmFtZRgBIAEoCUIp4EEC+kEjCiFpYW0uZ2' + '9vZ2xlYXBpcy5jb20vU2VydmljZUFjY291bnRSBG5hbWU='); + @$core.Deprecated('Use deleteServiceAccountRequestDescriptor instead') const DeleteServiceAccountRequest$json = { '1': 'DeleteServiceAccountRequest', @@ -189,7 +221,9 @@ const DeleteServiceAccountRequest$json = { /// Descriptor for `DeleteServiceAccountRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteServiceAccountRequestDescriptor = $convert.base64Decode( - 'ChtEZWxldGVTZXJ2aWNlQWNjb3VudFJlcXVlc3QSPQoEbmFtZRgBIAEoCUIp4EEC+kEjCiFpYW0uZ29vZ2xlYXBpcy5jb20vU2VydmljZUFjY291bnRSBG5hbWU='); + 'ChtEZWxldGVTZXJ2aWNlQWNjb3VudFJlcXVlc3QSPQoEbmFtZRgBIAEoCUIp4EEC+kEjCiFpYW' + '0uZ29vZ2xlYXBpcy5jb20vU2VydmljZUFjY291bnRSBG5hbWU='); + @$core.Deprecated('Use patchServiceAccountRequestDescriptor instead') const PatchServiceAccountRequest$json = { '1': 'PatchServiceAccountRequest', @@ -214,9 +248,12 @@ const PatchServiceAccountRequest$json = { }; /// Descriptor for `PatchServiceAccountRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List patchServiceAccountRequestDescriptor = - $convert.base64Decode( - 'ChpQYXRjaFNlcnZpY2VBY2NvdW50UmVxdWVzdBJMCg9zZXJ2aWNlX2FjY291bnQYASABKAsyIy5nb29nbGUuaWFtLmFkbWluLnYxLlNlcnZpY2VBY2NvdW50Ug5zZXJ2aWNlQWNjb3VudBI7Cgt1cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tSCnVwZGF0ZU1hc2s='); +final $typed_data.Uint8List patchServiceAccountRequestDescriptor = $convert.base64Decode( + 'ChpQYXRjaFNlcnZpY2VBY2NvdW50UmVxdWVzdBJMCg9zZXJ2aWNlX2FjY291bnQYASABKAsyIy' + '5nb29nbGUuaWFtLmFkbWluLnYxLlNlcnZpY2VBY2NvdW50Ug5zZXJ2aWNlQWNjb3VudBI7Cgt1' + 'cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tSCnVwZGF0ZU1hc2' + 's='); + @$core.Deprecated('Use undeleteServiceAccountRequestDescriptor instead') const UndeleteServiceAccountRequest$json = { '1': 'UndeleteServiceAccountRequest', @@ -229,6 +266,7 @@ const UndeleteServiceAccountRequest$json = { final $typed_data.Uint8List undeleteServiceAccountRequestDescriptor = $convert.base64Decode( 'Ch1VbmRlbGV0ZVNlcnZpY2VBY2NvdW50UmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l'); + @$core.Deprecated('Use undeleteServiceAccountResponseDescriptor instead') const UndeleteServiceAccountResponse$json = { '1': 'UndeleteServiceAccountResponse', @@ -247,7 +285,10 @@ const UndeleteServiceAccountResponse$json = { /// Descriptor for `UndeleteServiceAccountResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List undeleteServiceAccountResponseDescriptor = $convert.base64Decode( - 'Ch5VbmRlbGV0ZVNlcnZpY2VBY2NvdW50UmVzcG9uc2USTgoQcmVzdG9yZWRfYWNjb3VudBgBIAEoCzIjLmdvb2dsZS5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRSD3Jlc3RvcmVkQWNjb3VudA=='); + 'Ch5VbmRlbGV0ZVNlcnZpY2VBY2NvdW50UmVzcG9uc2USTgoQcmVzdG9yZWRfYWNjb3VudBgBIA' + 'EoCzIjLmdvb2dsZS5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRSD3Jlc3RvcmVkQWNjb3Vu' + 'dA=='); + @$core.Deprecated('Use enableServiceAccountRequestDescriptor instead') const EnableServiceAccountRequest$json = { '1': 'EnableServiceAccountRequest', @@ -260,6 +301,7 @@ const EnableServiceAccountRequest$json = { final $typed_data.Uint8List enableServiceAccountRequestDescriptor = $convert.base64Decode( 'ChtFbmFibGVTZXJ2aWNlQWNjb3VudFJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ=='); + @$core.Deprecated('Use disableServiceAccountRequestDescriptor instead') const DisableServiceAccountRequest$json = { '1': 'DisableServiceAccountRequest', @@ -272,6 +314,7 @@ const DisableServiceAccountRequest$json = { final $typed_data.Uint8List disableServiceAccountRequestDescriptor = $convert.base64Decode( 'ChxEaXNhYmxlU2VydmljZUFjY291bnRSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWU='); + @$core.Deprecated('Use listServiceAccountKeysRequestDescriptor instead') const ListServiceAccountKeysRequest$json = { '1': 'ListServiceAccountKeysRequest', @@ -300,9 +343,13 @@ const ListServiceAccountKeysRequest_KeyType$json = { }; /// Descriptor for `ListServiceAccountKeysRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listServiceAccountKeysRequestDescriptor = - $convert.base64Decode( - 'Ch1MaXN0U2VydmljZUFjY291bnRLZXlzUmVxdWVzdBI9CgRuYW1lGAEgASgJQingQQL6QSMKIWlhbS5nb29nbGVhcGlzLmNvbS9TZXJ2aWNlQWNjb3VudFIEbmFtZRJXCglrZXlfdHlwZXMYAiADKA4yOi5nb29nbGUuaWFtLmFkbWluLnYxLkxpc3RTZXJ2aWNlQWNjb3VudEtleXNSZXF1ZXN0LktleVR5cGVSCGtleVR5cGVzIkkKB0tleVR5cGUSGAoUS0VZX1RZUEVfVU5TUEVDSUZJRUQQABIQCgxVU0VSX01BTkFHRUQQARISCg5TWVNURU1fTUFOQUdFRBAC'); +final $typed_data.Uint8List listServiceAccountKeysRequestDescriptor = $convert.base64Decode( + 'Ch1MaXN0U2VydmljZUFjY291bnRLZXlzUmVxdWVzdBI9CgRuYW1lGAEgASgJQingQQL6QSMKIW' + 'lhbS5nb29nbGVhcGlzLmNvbS9TZXJ2aWNlQWNjb3VudFIEbmFtZRJXCglrZXlfdHlwZXMYAiAD' + 'KA4yOi5nb29nbGUuaWFtLmFkbWluLnYxLkxpc3RTZXJ2aWNlQWNjb3VudEtleXNSZXF1ZXN0Lk' + 'tleVR5cGVSCGtleVR5cGVzIkkKB0tleVR5cGUSGAoUS0VZX1RZUEVfVU5TUEVDSUZJRUQQABIQ' + 'CgxVU0VSX01BTkFHRUQQARISCg5TWVNURU1fTUFOQUdFRBAC'); + @$core.Deprecated('Use listServiceAccountKeysResponseDescriptor instead') const ListServiceAccountKeysResponse$json = { '1': 'ListServiceAccountKeysResponse', @@ -321,7 +368,9 @@ const ListServiceAccountKeysResponse$json = { /// Descriptor for `ListServiceAccountKeysResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listServiceAccountKeysResponseDescriptor = $convert.base64Decode( - 'Ch5MaXN0U2VydmljZUFjY291bnRLZXlzUmVzcG9uc2USOgoEa2V5cxgBIAMoCzImLmdvb2dsZS5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRLZXlSBGtleXM='); + 'Ch5MaXN0U2VydmljZUFjY291bnRLZXlzUmVzcG9uc2USOgoEa2V5cxgBIAMoCzImLmdvb2dsZS' + '5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRLZXlSBGtleXM='); + @$core.Deprecated('Use getServiceAccountKeyRequestDescriptor instead') const GetServiceAccountKeyRequest$json = { '1': 'GetServiceAccountKeyRequest', @@ -333,15 +382,19 @@ const GetServiceAccountKeyRequest$json = { '4': 1, '5': 14, '6': '.google.iam.admin.v1.ServiceAccountPublicKeyType', + '8': {}, '10': 'publicKeyType' }, ], }; /// Descriptor for `GetServiceAccountKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getServiceAccountKeyRequestDescriptor = - $convert.base64Decode( - 'ChtHZXRTZXJ2aWNlQWNjb3VudEtleVJlcXVlc3QSMgoEbmFtZRgBIAEoCUIe4EEC+kEYChZpYW0uZ29vZ2xlYXBpcy5jb20vS2V5UgRuYW1lElgKD3B1YmxpY19rZXlfdHlwZRgCIAEoDjIwLmdvb2dsZS5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRQdWJsaWNLZXlUeXBlUg1wdWJsaWNLZXlUeXBl'); +final $typed_data.Uint8List getServiceAccountKeyRequestDescriptor = $convert.base64Decode( + 'ChtHZXRTZXJ2aWNlQWNjb3VudEtleVJlcXVlc3QSMgoEbmFtZRgBIAEoCUIe4EEC+kEYChZpYW' + '0uZ29vZ2xlYXBpcy5jb20vS2V5UgRuYW1lEl0KD3B1YmxpY19rZXlfdHlwZRgCIAEoDjIwLmdv' + 'b2dsZS5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRQdWJsaWNLZXlUeXBlQgPgQQFSDXB1Ym' + 'xpY0tleVR5cGU='); + @$core.Deprecated('Use serviceAccountKeyDescriptor instead') const ServiceAccountKey$json = { '1': 'ServiceAccountKey', @@ -397,13 +450,28 @@ const ServiceAccountKey$json = { '6': '.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType', '10': 'keyType' }, + {'1': 'disabled', '3': 11, '4': 1, '5': 8, '10': 'disabled'}, ], '7': {}, }; /// Descriptor for `ServiceAccountKey`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceAccountKeyDescriptor = $convert.base64Decode( - 'ChFTZXJ2aWNlQWNjb3VudEtleRISCgRuYW1lGAEgASgJUgRuYW1lElsKEHByaXZhdGVfa2V5X3R5cGUYAiABKA4yMS5nb29nbGUuaWFtLmFkbWluLnYxLlNlcnZpY2VBY2NvdW50UHJpdmF0ZUtleVR5cGVSDnByaXZhdGVLZXlUeXBlElQKDWtleV9hbGdvcml0aG0YCCABKA4yLy5nb29nbGUuaWFtLmFkbWluLnYxLlNlcnZpY2VBY2NvdW50S2V5QWxnb3JpdGhtUgxrZXlBbGdvcml0aG0SKAoQcHJpdmF0ZV9rZXlfZGF0YRgDIAEoDFIOcHJpdmF0ZUtleURhdGESJgoPcHVibGljX2tleV9kYXRhGAcgASgMUg1wdWJsaWNLZXlEYXRhEkQKEHZhbGlkX2FmdGVyX3RpbWUYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wUg52YWxpZEFmdGVyVGltZRJGChF2YWxpZF9iZWZvcmVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSD3ZhbGlkQmVmb3JlVGltZRJLCgprZXlfb3JpZ2luGAkgASgOMiwuZ29vZ2xlLmlhbS5hZG1pbi52MS5TZXJ2aWNlQWNjb3VudEtleU9yaWdpblIJa2V5T3JpZ2luElUKCGtleV90eXBlGAogASgOMjouZ29vZ2xlLmlhbS5hZG1pbi52MS5MaXN0U2VydmljZUFjY291bnRLZXlzUmVxdWVzdC5LZXlUeXBlUgdrZXlUeXBlOlzqQVkKFmlhbS5nb29nbGVhcGlzLmNvbS9LZXkSP3Byb2plY3RzL3twcm9qZWN0fS9zZXJ2aWNlQWNjb3VudHMve3NlcnZpY2VfYWNjb3VudH0va2V5cy97a2V5fQ=='); + 'ChFTZXJ2aWNlQWNjb3VudEtleRISCgRuYW1lGAEgASgJUgRuYW1lElsKEHByaXZhdGVfa2V5X3' + 'R5cGUYAiABKA4yMS5nb29nbGUuaWFtLmFkbWluLnYxLlNlcnZpY2VBY2NvdW50UHJpdmF0ZUtl' + 'eVR5cGVSDnByaXZhdGVLZXlUeXBlElQKDWtleV9hbGdvcml0aG0YCCABKA4yLy5nb29nbGUuaW' + 'FtLmFkbWluLnYxLlNlcnZpY2VBY2NvdW50S2V5QWxnb3JpdGhtUgxrZXlBbGdvcml0aG0SKAoQ' + 'cHJpdmF0ZV9rZXlfZGF0YRgDIAEoDFIOcHJpdmF0ZUtleURhdGESJgoPcHVibGljX2tleV9kYX' + 'RhGAcgASgMUg1wdWJsaWNLZXlEYXRhEkQKEHZhbGlkX2FmdGVyX3RpbWUYBCABKAsyGi5nb29n' + 'bGUucHJvdG9idWYuVGltZXN0YW1wUg52YWxpZEFmdGVyVGltZRJGChF2YWxpZF9iZWZvcmVfdG' + 'ltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSD3ZhbGlkQmVmb3JlVGltZRJL' + 'CgprZXlfb3JpZ2luGAkgASgOMiwuZ29vZ2xlLmlhbS5hZG1pbi52MS5TZXJ2aWNlQWNjb3VudE' + 'tleU9yaWdpblIJa2V5T3JpZ2luElUKCGtleV90eXBlGAogASgOMjouZ29vZ2xlLmlhbS5hZG1p' + 'bi52MS5MaXN0U2VydmljZUFjY291bnRLZXlzUmVxdWVzdC5LZXlUeXBlUgdrZXlUeXBlEhoKCG' + 'Rpc2FibGVkGAsgASgIUghkaXNhYmxlZDpc6kFZChZpYW0uZ29vZ2xlYXBpcy5jb20vS2V5Ej9w' + 'cm9qZWN0cy97cHJvamVjdH0vc2VydmljZUFjY291bnRzL3tzZXJ2aWNlX2FjY291bnR9L2tleX' + 'Mve2tleX0='); + @$core.Deprecated('Use createServiceAccountKeyRequestDescriptor instead') const CreateServiceAccountKeyRequest$json = { '1': 'CreateServiceAccountKeyRequest', @@ -429,9 +497,13 @@ const CreateServiceAccountKeyRequest$json = { }; /// Descriptor for `CreateServiceAccountKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List createServiceAccountKeyRequestDescriptor = - $convert.base64Decode( - 'Ch5DcmVhdGVTZXJ2aWNlQWNjb3VudEtleVJlcXVlc3QSPQoEbmFtZRgBIAEoCUIp4EEC+kEjCiFpYW0uZ29vZ2xlYXBpcy5jb20vU2VydmljZUFjY291bnRSBG5hbWUSWwoQcHJpdmF0ZV9rZXlfdHlwZRgCIAEoDjIxLmdvb2dsZS5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRQcml2YXRlS2V5VHlwZVIOcHJpdmF0ZUtleVR5cGUSVAoNa2V5X2FsZ29yaXRobRgDIAEoDjIvLmdvb2dsZS5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRLZXlBbGdvcml0aG1SDGtleUFsZ29yaXRobQ=='); +final $typed_data.Uint8List createServiceAccountKeyRequestDescriptor = $convert.base64Decode( + 'Ch5DcmVhdGVTZXJ2aWNlQWNjb3VudEtleVJlcXVlc3QSPQoEbmFtZRgBIAEoCUIp4EEC+kEjCi' + 'FpYW0uZ29vZ2xlYXBpcy5jb20vU2VydmljZUFjY291bnRSBG5hbWUSWwoQcHJpdmF0ZV9rZXlf' + 'dHlwZRgCIAEoDjIxLmdvb2dsZS5pYW0uYWRtaW4udjEuU2VydmljZUFjY291bnRQcml2YXRlS2' + 'V5VHlwZVIOcHJpdmF0ZUtleVR5cGUSVAoNa2V5X2FsZ29yaXRobRgDIAEoDjIvLmdvb2dsZS5p' + 'YW0uYWRtaW4udjEuU2VydmljZUFjY291bnRLZXlBbGdvcml0aG1SDGtleUFsZ29yaXRobQ=='); + @$core.Deprecated('Use uploadServiceAccountKeyRequestDescriptor instead') const UploadServiceAccountKeyRequest$json = { '1': 'UploadServiceAccountKeyRequest', @@ -444,7 +516,9 @@ const UploadServiceAccountKeyRequest$json = { /// Descriptor for `UploadServiceAccountKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List uploadServiceAccountKeyRequestDescriptor = $convert.base64Decode( - 'Ch5VcGxvYWRTZXJ2aWNlQWNjb3VudEtleVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRImCg9wdWJsaWNfa2V5X2RhdGEYAiABKAxSDXB1YmxpY0tleURhdGE='); + 'Ch5VcGxvYWRTZXJ2aWNlQWNjb3VudEtleVJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZRImCg' + '9wdWJsaWNfa2V5X2RhdGEYAiABKAxSDXB1YmxpY0tleURhdGE='); + @$core.Deprecated('Use deleteServiceAccountKeyRequestDescriptor instead') const DeleteServiceAccountKeyRequest$json = { '1': 'DeleteServiceAccountKeyRequest', @@ -456,7 +530,37 @@ const DeleteServiceAccountKeyRequest$json = { /// Descriptor for `DeleteServiceAccountKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteServiceAccountKeyRequestDescriptor = $convert.base64Decode( - 'Ch5EZWxldGVTZXJ2aWNlQWNjb3VudEtleVJlcXVlc3QSMgoEbmFtZRgBIAEoCUIe4EEC+kEYChZpYW0uZ29vZ2xlYXBpcy5jb20vS2V5UgRuYW1l'); + 'Ch5EZWxldGVTZXJ2aWNlQWNjb3VudEtleVJlcXVlc3QSMgoEbmFtZRgBIAEoCUIe4EEC+kEYCh' + 'ZpYW0uZ29vZ2xlYXBpcy5jb20vS2V5UgRuYW1l'); + +@$core.Deprecated('Use disableServiceAccountKeyRequestDescriptor instead') +const DisableServiceAccountKeyRequest$json = { + '1': 'DisableServiceAccountKeyRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `DisableServiceAccountKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List disableServiceAccountKeyRequestDescriptor = + $convert.base64Decode( + 'Ch9EaXNhYmxlU2VydmljZUFjY291bnRLZXlSZXF1ZXN0EjIKBG5hbWUYASABKAlCHuBBAvpBGA' + 'oWaWFtLmdvb2dsZWFwaXMuY29tL0tleVIEbmFtZQ=='); + +@$core.Deprecated('Use enableServiceAccountKeyRequestDescriptor instead') +const EnableServiceAccountKeyRequest$json = { + '1': 'EnableServiceAccountKeyRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `EnableServiceAccountKeyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List enableServiceAccountKeyRequestDescriptor = + $convert.base64Decode( + 'Ch5FbmFibGVTZXJ2aWNlQWNjb3VudEtleVJlcXVlc3QSMgoEbmFtZRgBIAEoCUIe4EEC+kEYCh' + 'ZpYW0uZ29vZ2xlYXBpcy5jb20vS2V5UgRuYW1l'); + @$core.Deprecated('Use signBlobRequestDescriptor instead') const SignBlobRequest$json = { '1': 'SignBlobRequest', @@ -482,7 +586,10 @@ const SignBlobRequest$json = { /// Descriptor for `SignBlobRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signBlobRequestDescriptor = $convert.base64Decode( - 'Cg9TaWduQmxvYlJlcXVlc3QSPwoEbmFtZRgBIAEoCUIrGAHgQQL6QSMKIWlhbS5nb29nbGVhcGlzLmNvbS9TZXJ2aWNlQWNjb3VudFIEbmFtZRIpCg1ieXRlc190b19zaWduGAIgASgMQgUYAeBBAlILYnl0ZXNUb1NpZ24='); + 'Cg9TaWduQmxvYlJlcXVlc3QSPwoEbmFtZRgBIAEoCUIrGAHgQQL6QSMKIWlhbS5nb29nbGVhcG' + 'lzLmNvbS9TZXJ2aWNlQWNjb3VudFIEbmFtZRIpCg1ieXRlc190b19zaWduGAIgASgMQgUYAeBB' + 'AlILYnl0ZXNUb1NpZ24='); + @$core.Deprecated('Use signBlobResponseDescriptor instead') const SignBlobResponse$json = { '1': 'SignBlobResponse', @@ -508,7 +615,9 @@ const SignBlobResponse$json = { /// Descriptor for `SignBlobResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signBlobResponseDescriptor = $convert.base64Decode( - 'ChBTaWduQmxvYlJlc3BvbnNlEhkKBmtleV9pZBgBIAEoCUICGAFSBWtleUlkEiAKCXNpZ25hdHVyZRgCIAEoDEICGAFSCXNpZ25hdHVyZQ=='); + 'ChBTaWduQmxvYlJlc3BvbnNlEhkKBmtleV9pZBgBIAEoCUICGAFSBWtleUlkEiAKCXNpZ25hdH' + 'VyZRgCIAEoDEICGAFSCXNpZ25hdHVyZQ=='); + @$core.Deprecated('Use signJwtRequestDescriptor instead') const SignJwtRequest$json = { '1': 'SignJwtRequest', @@ -534,7 +643,10 @@ const SignJwtRequest$json = { /// Descriptor for `SignJwtRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signJwtRequestDescriptor = $convert.base64Decode( - 'Cg5TaWduSnd0UmVxdWVzdBI/CgRuYW1lGAEgASgJQisYAeBBAvpBIwohaWFtLmdvb2dsZWFwaXMuY29tL1NlcnZpY2VBY2NvdW50UgRuYW1lEh8KB3BheWxvYWQYAiABKAlCBRgB4EECUgdwYXlsb2Fk'); + 'Cg5TaWduSnd0UmVxdWVzdBI/CgRuYW1lGAEgASgJQisYAeBBAvpBIwohaWFtLmdvb2dsZWFwaX' + 'MuY29tL1NlcnZpY2VBY2NvdW50UgRuYW1lEh8KB3BheWxvYWQYAiABKAlCBRgB4EECUgdwYXls' + 'b2Fk'); + @$core.Deprecated('Use signJwtResponseDescriptor instead') const SignJwtResponse$json = { '1': 'SignJwtResponse', @@ -560,7 +672,9 @@ const SignJwtResponse$json = { /// Descriptor for `SignJwtResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signJwtResponseDescriptor = $convert.base64Decode( - 'Cg9TaWduSnd0UmVzcG9uc2USGQoGa2V5X2lkGAEgASgJQgIYAVIFa2V5SWQSIQoKc2lnbmVkX2p3dBgCIAEoCUICGAFSCXNpZ25lZEp3dA=='); + 'Cg9TaWduSnd0UmVzcG9uc2USGQoGa2V5X2lkGAEgASgJQgIYAVIFa2V5SWQSIQoKc2lnbmVkX2' + 'p3dBgCIAEoCUICGAFSCXNpZ25lZEp3dA=='); + @$core.Deprecated('Use roleDescriptor instead') const Role$json = { '1': 'Role', @@ -604,7 +718,13 @@ const Role_RoleLaunchStage$json = { /// Descriptor for `Role`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List roleDescriptor = $convert.base64Decode( - 'CgRSb2xlEhIKBG5hbWUYASABKAlSBG5hbWUSFAoFdGl0bGUYAiABKAlSBXRpdGxlEiAKC2Rlc2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbhIxChRpbmNsdWRlZF9wZXJtaXNzaW9ucxgHIAMoCVITaW5jbHVkZWRQZXJtaXNzaW9ucxI/CgVzdGFnZRgIIAEoDjIpLmdvb2dsZS5pYW0uYWRtaW4udjEuUm9sZS5Sb2xlTGF1bmNoU3RhZ2VSBXN0YWdlEhIKBGV0YWcYCSABKAxSBGV0YWcSGAoHZGVsZXRlZBgLIAEoCFIHZGVsZXRlZCJVCg9Sb2xlTGF1bmNoU3RhZ2USCQoFQUxQSEEQABIICgRCRVRBEAESBgoCR0EQAhIOCgpERVBSRUNBVEVEEAQSDAoIRElTQUJMRUQQBRIHCgNFQVAQBg=='); + 'CgRSb2xlEhIKBG5hbWUYASABKAlSBG5hbWUSFAoFdGl0bGUYAiABKAlSBXRpdGxlEiAKC2Rlc2' + 'NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbhIxChRpbmNsdWRlZF9wZXJtaXNzaW9ucxgHIAMo' + 'CVITaW5jbHVkZWRQZXJtaXNzaW9ucxI/CgVzdGFnZRgIIAEoDjIpLmdvb2dsZS5pYW0uYWRtaW' + '4udjEuUm9sZS5Sb2xlTGF1bmNoU3RhZ2VSBXN0YWdlEhIKBGV0YWcYCSABKAxSBGV0YWcSGAoH' + 'ZGVsZXRlZBgLIAEoCFIHZGVsZXRlZCJVCg9Sb2xlTGF1bmNoU3RhZ2USCQoFQUxQSEEQABIICg' + 'RCRVRBEAESBgoCR0EQAhIOCgpERVBSRUNBVEVEEAQSDAoIRElTQUJMRUQQBRIHCgNFQVAQBg=='); + @$core.Deprecated('Use queryGrantableRolesRequestDescriptor instead') const QueryGrantableRolesRequest$json = { '1': 'QueryGrantableRolesRequest', @@ -631,9 +751,12 @@ const QueryGrantableRolesRequest$json = { }; /// Descriptor for `QueryGrantableRolesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List queryGrantableRolesRequestDescriptor = - $convert.base64Decode( - 'ChpRdWVyeUdyYW50YWJsZVJvbGVzUmVxdWVzdBIxChJmdWxsX3Jlc291cmNlX25hbWUYASABKAlCA+BBAlIQZnVsbFJlc291cmNlTmFtZRIxCgR2aWV3GAIgASgOMh0uZ29vZ2xlLmlhbS5hZG1pbi52MS5Sb2xlVmlld1IEdmlldxIbCglwYWdlX3NpemUYAyABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YBCABKAlSCXBhZ2VUb2tlbg=='); +final $typed_data.Uint8List queryGrantableRolesRequestDescriptor = $convert.base64Decode( + 'ChpRdWVyeUdyYW50YWJsZVJvbGVzUmVxdWVzdBIxChJmdWxsX3Jlc291cmNlX25hbWUYASABKA' + 'lCA+BBAlIQZnVsbFJlc291cmNlTmFtZRIxCgR2aWV3GAIgASgOMh0uZ29vZ2xlLmlhbS5hZG1p' + 'bi52MS5Sb2xlVmlld1IEdmlldxIbCglwYWdlX3NpemUYAyABKAVSCHBhZ2VTaXplEh0KCnBhZ2' + 'VfdG9rZW4YBCABKAlSCXBhZ2VUb2tlbg=='); + @$core.Deprecated('Use queryGrantableRolesResponseDescriptor instead') const QueryGrantableRolesResponse$json = { '1': 'QueryGrantableRolesResponse', @@ -653,7 +776,10 @@ const QueryGrantableRolesResponse$json = { /// Descriptor for `QueryGrantableRolesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List queryGrantableRolesResponseDescriptor = $convert.base64Decode( - 'ChtRdWVyeUdyYW50YWJsZVJvbGVzUmVzcG9uc2USLwoFcm9sZXMYASADKAsyGS5nb29nbGUuaWFtLmFkbWluLnYxLlJvbGVSBXJvbGVzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChtRdWVyeUdyYW50YWJsZVJvbGVzUmVzcG9uc2USLwoFcm9sZXMYASADKAsyGS5nb29nbGUuaW' + 'FtLmFkbWluLnYxLlJvbGVSBXJvbGVzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBh' + 'Z2VUb2tlbg=='); + @$core.Deprecated('Use listRolesRequestDescriptor instead') const ListRolesRequest$json = { '1': 'ListRolesRequest', @@ -675,7 +801,11 @@ const ListRolesRequest$json = { /// Descriptor for `ListRolesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listRolesRequestDescriptor = $convert.base64Decode( - 'ChBMaXN0Um9sZXNSZXF1ZXN0Eh4KBnBhcmVudBgBIAEoCUIG+kEDCgEqUgZwYXJlbnQSGwoJcGFnZV9zaXplGAIgASgFUghwYWdlU2l6ZRIdCgpwYWdlX3Rva2VuGAMgASgJUglwYWdlVG9rZW4SMQoEdmlldxgEIAEoDjIdLmdvb2dsZS5pYW0uYWRtaW4udjEuUm9sZVZpZXdSBHZpZXcSIQoMc2hvd19kZWxldGVkGAYgASgIUgtzaG93RGVsZXRlZA=='); + 'ChBMaXN0Um9sZXNSZXF1ZXN0Eh4KBnBhcmVudBgBIAEoCUIG+kEDCgEqUgZwYXJlbnQSGwoJcG' + 'FnZV9zaXplGAIgASgFUghwYWdlU2l6ZRIdCgpwYWdlX3Rva2VuGAMgASgJUglwYWdlVG9rZW4S' + 'MQoEdmlldxgEIAEoDjIdLmdvb2dsZS5pYW0uYWRtaW4udjEuUm9sZVZpZXdSBHZpZXcSIQoMc2' + 'hvd19kZWxldGVkGAYgASgIUgtzaG93RGVsZXRlZA=='); + @$core.Deprecated('Use listRolesResponseDescriptor instead') const ListRolesResponse$json = { '1': 'ListRolesResponse', @@ -694,7 +824,9 @@ const ListRolesResponse$json = { /// Descriptor for `ListRolesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listRolesResponseDescriptor = $convert.base64Decode( - 'ChFMaXN0Um9sZXNSZXNwb25zZRIvCgVyb2xlcxgBIAMoCzIZLmdvb2dsZS5pYW0uYWRtaW4udjEuUm9sZVIFcm9sZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + 'ChFMaXN0Um9sZXNSZXNwb25zZRIvCgVyb2xlcxgBIAMoCzIZLmdvb2dsZS5pYW0uYWRtaW4udj' + 'EuUm9sZVIFcm9sZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + @$core.Deprecated('Use getRoleRequestDescriptor instead') const GetRoleRequest$json = { '1': 'GetRoleRequest', @@ -706,6 +838,7 @@ const GetRoleRequest$json = { /// Descriptor for `GetRoleRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getRoleRequestDescriptor = $convert.base64Decode( 'Cg5HZXRSb2xlUmVxdWVzdBIaCgRuYW1lGAEgASgJQgb6QQMKASpSBG5hbWU='); + @$core.Deprecated('Use createRoleRequestDescriptor instead') const CreateRoleRequest$json = { '1': 'CreateRoleRequest', @@ -725,7 +858,10 @@ const CreateRoleRequest$json = { /// Descriptor for `CreateRoleRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createRoleRequestDescriptor = $convert.base64Decode( - 'ChFDcmVhdGVSb2xlUmVxdWVzdBIeCgZwYXJlbnQYASABKAlCBvpBAwoBKlIGcGFyZW50EhcKB3JvbGVfaWQYAiABKAlSBnJvbGVJZBItCgRyb2xlGAMgASgLMhkuZ29vZ2xlLmlhbS5hZG1pbi52MS5Sb2xlUgRyb2xl'); + 'ChFDcmVhdGVSb2xlUmVxdWVzdBIeCgZwYXJlbnQYASABKAlCBvpBAwoBKlIGcGFyZW50EhcKB3' + 'JvbGVfaWQYAiABKAlSBnJvbGVJZBItCgRyb2xlGAMgASgLMhkuZ29vZ2xlLmlhbS5hZG1pbi52' + 'MS5Sb2xlUgRyb2xl'); + @$core.Deprecated('Use updateRoleRequestDescriptor instead') const UpdateRoleRequest$json = { '1': 'UpdateRoleRequest', @@ -752,7 +888,10 @@ const UpdateRoleRequest$json = { /// Descriptor for `UpdateRoleRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateRoleRequestDescriptor = $convert.base64Decode( - 'ChFVcGRhdGVSb2xlUmVxdWVzdBIaCgRuYW1lGAEgASgJQgb6QQMKASpSBG5hbWUSLQoEcm9sZRgCIAEoCzIZLmdvb2dsZS5pYW0uYWRtaW4udjEuUm9sZVIEcm9sZRI7Cgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tSCnVwZGF0ZU1hc2s='); + 'ChFVcGRhdGVSb2xlUmVxdWVzdBIaCgRuYW1lGAEgASgJQgb6QQMKASpSBG5hbWUSLQoEcm9sZR' + 'gCIAEoCzIZLmdvb2dsZS5pYW0uYWRtaW4udjEuUm9sZVIEcm9sZRI7Cgt1cGRhdGVfbWFzaxgD' + 'IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tSCnVwZGF0ZU1hc2s='); + @$core.Deprecated('Use deleteRoleRequestDescriptor instead') const DeleteRoleRequest$json = { '1': 'DeleteRoleRequest', @@ -764,7 +903,9 @@ const DeleteRoleRequest$json = { /// Descriptor for `DeleteRoleRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteRoleRequestDescriptor = $convert.base64Decode( - 'ChFEZWxldGVSb2xlUmVxdWVzdBIaCgRuYW1lGAEgASgJQgb6QQMKASpSBG5hbWUSEgoEZXRhZxgCIAEoDFIEZXRhZw=='); + 'ChFEZWxldGVSb2xlUmVxdWVzdBIaCgRuYW1lGAEgASgJQgb6QQMKASpSBG5hbWUSEgoEZXRhZx' + 'gCIAEoDFIEZXRhZw=='); + @$core.Deprecated('Use undeleteRoleRequestDescriptor instead') const UndeleteRoleRequest$json = { '1': 'UndeleteRoleRequest', @@ -776,7 +917,9 @@ const UndeleteRoleRequest$json = { /// Descriptor for `UndeleteRoleRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List undeleteRoleRequestDescriptor = $convert.base64Decode( - 'ChNVbmRlbGV0ZVJvbGVSZXF1ZXN0EhoKBG5hbWUYASABKAlCBvpBAwoBKlIEbmFtZRISCgRldGFnGAIgASgMUgRldGFn'); + 'ChNVbmRlbGV0ZVJvbGVSZXF1ZXN0EhoKBG5hbWUYASABKAlCBvpBAwoBKlIEbmFtZRISCgRldG' + 'FnGAIgASgMUgRldGFn'); + @$core.Deprecated('Use permissionDescriptor instead') const Permission$json = { '1': 'Permission', @@ -846,7 +989,18 @@ const Permission_CustomRolesSupportLevel$json = { /// Descriptor for `Permission`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List permissionDescriptor = $convert.base64Decode( - 'CgpQZXJtaXNzaW9uEhIKBG5hbWUYASABKAlSBG5hbWUSFAoFdGl0bGUYAiABKAlSBXRpdGxlEiAKC2Rlc2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbhI7Chhvbmx5X2luX3ByZWRlZmluZWRfcm9sZXMYBCABKAhCAhgBUhVvbmx5SW5QcmVkZWZpbmVkUm9sZXMSSwoFc3RhZ2UYBSABKA4yNS5nb29nbGUuaWFtLmFkbWluLnYxLlBlcm1pc3Npb24uUGVybWlzc2lvbkxhdW5jaFN0YWdlUgVzdGFnZRJ0ChpjdXN0b21fcm9sZXNfc3VwcG9ydF9sZXZlbBgGIAEoDjI3Lmdvb2dsZS5pYW0uYWRtaW4udjEuUGVybWlzc2lvbi5DdXN0b21Sb2xlc1N1cHBvcnRMZXZlbFIXY3VzdG9tUm9sZXNTdXBwb3J0TGV2ZWwSIQoMYXBpX2Rpc2FibGVkGAcgASgIUgthcGlEaXNhYmxlZBItChJwcmltYXJ5X3Blcm1pc3Npb24YCCABKAlSEXByaW1hcnlQZXJtaXNzaW9uIkQKFVBlcm1pc3Npb25MYXVuY2hTdGFnZRIJCgVBTFBIQRAAEggKBEJFVEEQARIGCgJHQRACEg4KCkRFUFJFQ0FURUQQAyJIChdDdXN0b21Sb2xlc1N1cHBvcnRMZXZlbBINCglTVVBQT1JURUQQABILCgdURVNUSU5HEAESEQoNTk9UX1NVUFBPUlRFRBAC'); + 'CgpQZXJtaXNzaW9uEhIKBG5hbWUYASABKAlSBG5hbWUSFAoFdGl0bGUYAiABKAlSBXRpdGxlEi' + 'AKC2Rlc2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbhI7Chhvbmx5X2luX3ByZWRlZmluZWRf' + 'cm9sZXMYBCABKAhCAhgBUhVvbmx5SW5QcmVkZWZpbmVkUm9sZXMSSwoFc3RhZ2UYBSABKA4yNS' + '5nb29nbGUuaWFtLmFkbWluLnYxLlBlcm1pc3Npb24uUGVybWlzc2lvbkxhdW5jaFN0YWdlUgVz' + 'dGFnZRJ0ChpjdXN0b21fcm9sZXNfc3VwcG9ydF9sZXZlbBgGIAEoDjI3Lmdvb2dsZS5pYW0uYW' + 'RtaW4udjEuUGVybWlzc2lvbi5DdXN0b21Sb2xlc1N1cHBvcnRMZXZlbFIXY3VzdG9tUm9sZXNT' + 'dXBwb3J0TGV2ZWwSIQoMYXBpX2Rpc2FibGVkGAcgASgIUgthcGlEaXNhYmxlZBItChJwcmltYX' + 'J5X3Blcm1pc3Npb24YCCABKAlSEXByaW1hcnlQZXJtaXNzaW9uIkQKFVBlcm1pc3Npb25MYXVu' + 'Y2hTdGFnZRIJCgVBTFBIQRAAEggKBEJFVEEQARIGCgJHQRACEg4KCkRFUFJFQ0FURUQQAyJICh' + 'dDdXN0b21Sb2xlc1N1cHBvcnRMZXZlbBINCglTVVBQT1JURUQQABILCgdURVNUSU5HEAESEQoN' + 'Tk9UX1NVUFBPUlRFRBAC'); + @$core.Deprecated('Use queryTestablePermissionsRequestDescriptor instead') const QueryTestablePermissionsRequest$json = { '1': 'QueryTestablePermissionsRequest', @@ -866,7 +1020,10 @@ const QueryTestablePermissionsRequest$json = { /// Descriptor for `QueryTestablePermissionsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List queryTestablePermissionsRequestDescriptor = $convert.base64Decode( - 'Ch9RdWVyeVRlc3RhYmxlUGVybWlzc2lvbnNSZXF1ZXN0EiwKEmZ1bGxfcmVzb3VyY2VfbmFtZRgBIAEoCVIQZnVsbFJlc291cmNlTmFtZRIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbg=='); + 'Ch9RdWVyeVRlc3RhYmxlUGVybWlzc2lvbnNSZXF1ZXN0EiwKEmZ1bGxfcmVzb3VyY2VfbmFtZR' + 'gBIAEoCVIQZnVsbFJlc291cmNlTmFtZRIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0K' + 'CnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbg=='); + @$core.Deprecated('Use queryTestablePermissionsResponseDescriptor instead') const QueryTestablePermissionsResponse$json = { '1': 'QueryTestablePermissionsResponse', @@ -886,7 +1043,10 @@ const QueryTestablePermissionsResponse$json = { /// Descriptor for `QueryTestablePermissionsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List queryTestablePermissionsResponseDescriptor = $convert.base64Decode( - 'CiBRdWVyeVRlc3RhYmxlUGVybWlzc2lvbnNSZXNwb25zZRJBCgtwZXJtaXNzaW9ucxgBIAMoCzIfLmdvb2dsZS5pYW0uYWRtaW4udjEuUGVybWlzc2lvblILcGVybWlzc2lvbnMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + 'CiBRdWVyeVRlc3RhYmxlUGVybWlzc2lvbnNSZXNwb25zZRJBCgtwZXJtaXNzaW9ucxgBIAMoCz' + 'IfLmdvb2dsZS5pYW0uYWRtaW4udjEuUGVybWlzc2lvblILcGVybWlzc2lvbnMSJgoPbmV4dF9w' + 'YWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + @$core.Deprecated('Use queryAuditableServicesRequestDescriptor instead') const QueryAuditableServicesRequest$json = { '1': 'QueryAuditableServicesRequest', @@ -904,7 +1064,9 @@ const QueryAuditableServicesRequest$json = { /// Descriptor for `QueryAuditableServicesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List queryAuditableServicesRequestDescriptor = $convert.base64Decode( - 'Ch1RdWVyeUF1ZGl0YWJsZVNlcnZpY2VzUmVxdWVzdBIsChJmdWxsX3Jlc291cmNlX25hbWUYASABKAlSEGZ1bGxSZXNvdXJjZU5hbWU='); + 'Ch1RdWVyeUF1ZGl0YWJsZVNlcnZpY2VzUmVxdWVzdBIsChJmdWxsX3Jlc291cmNlX25hbWUYAS' + 'ABKAlSEGZ1bGxSZXNvdXJjZU5hbWU='); + @$core.Deprecated('Use queryAuditableServicesResponseDescriptor instead') const QueryAuditableServicesResponse$json = { '1': 'QueryAuditableServicesResponse', @@ -933,7 +1095,11 @@ const QueryAuditableServicesResponse_AuditableService$json = { /// Descriptor for `QueryAuditableServicesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List queryAuditableServicesResponseDescriptor = $convert.base64Decode( - 'Ch5RdWVyeUF1ZGl0YWJsZVNlcnZpY2VzUmVzcG9uc2USYAoIc2VydmljZXMYASADKAsyRC5nb29nbGUuaWFtLmFkbWluLnYxLlF1ZXJ5QXVkaXRhYmxlU2VydmljZXNSZXNwb25zZS5BdWRpdGFibGVTZXJ2aWNlUghzZXJ2aWNlcxomChBBdWRpdGFibGVTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG5hbWU='); + 'Ch5RdWVyeUF1ZGl0YWJsZVNlcnZpY2VzUmVzcG9uc2USYAoIc2VydmljZXMYASADKAsyRC5nb2' + '9nbGUuaWFtLmFkbWluLnYxLlF1ZXJ5QXVkaXRhYmxlU2VydmljZXNSZXNwb25zZS5BdWRpdGFi' + 'bGVTZXJ2aWNlUghzZXJ2aWNlcxomChBBdWRpdGFibGVTZXJ2aWNlEhIKBG5hbWUYASABKAlSBG' + '5hbWU='); + @$core.Deprecated('Use lintPolicyRequestDescriptor instead') const LintPolicyRequest$json = { '1': 'LintPolicyRequest', @@ -962,7 +1128,10 @@ const LintPolicyRequest$json = { /// Descriptor for `LintPolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List lintPolicyRequestDescriptor = $convert.base64Decode( - 'ChFMaW50UG9saWN5UmVxdWVzdBIsChJmdWxsX3Jlc291cmNlX25hbWUYASABKAlSEGZ1bGxSZXNvdXJjZU5hbWUSMQoJY29uZGl0aW9uGAUgASgLMhEuZ29vZ2xlLnR5cGUuRXhwckgAUgljb25kaXRpb25CDQoLbGludF9vYmplY3Q='); + 'ChFMaW50UG9saWN5UmVxdWVzdBIsChJmdWxsX3Jlc291cmNlX25hbWUYASABKAlSEGZ1bGxSZX' + 'NvdXJjZU5hbWUSMQoJY29uZGl0aW9uGAUgASgLMhEuZ29vZ2xlLnR5cGUuRXhwckgAUgljb25k' + 'aXRpb25CDQoLbGludF9vYmplY3Q='); + @$core.Deprecated('Use lintResultDescriptor instead') const LintResult$json = { '1': 'LintResult', @@ -1021,7 +1190,16 @@ const LintResult_Severity$json = { /// Descriptor for `LintResult`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List lintResultDescriptor = $convert.base64Decode( - 'CgpMaW50UmVzdWx0EjsKBWxldmVsGAEgASgOMiUuZ29vZ2xlLmlhbS5hZG1pbi52MS5MaW50UmVzdWx0LkxldmVsUgVsZXZlbBIwChR2YWxpZGF0aW9uX3VuaXRfbmFtZRgCIAEoCVISdmFsaWRhdGlvblVuaXROYW1lEkQKCHNldmVyaXR5GAMgASgOMiguZ29vZ2xlLmlhbS5hZG1pbi52MS5MaW50UmVzdWx0LlNldmVyaXR5UghzZXZlcml0eRIdCgpmaWVsZF9uYW1lGAUgASgJUglmaWVsZE5hbWUSJwoPbG9jYXRpb25fb2Zmc2V0GAYgASgFUg5sb2NhdGlvbk9mZnNldBIjCg1kZWJ1Z19tZXNzYWdlGAcgASgJUgxkZWJ1Z01lc3NhZ2UiLQoFTGV2ZWwSFQoRTEVWRUxfVU5TUEVDSUZJRUQQABINCglDT05ESVRJT04QAyJiCghTZXZlcml0eRIYChRTRVZFUklUWV9VTlNQRUNJRklFRBAAEgkKBUVSUk9SEAESCwoHV0FSTklORxACEgoKBk5PVElDRRADEggKBElORk8QBBIOCgpERVBSRUNBVEVEEAU='); + 'CgpMaW50UmVzdWx0EjsKBWxldmVsGAEgASgOMiUuZ29vZ2xlLmlhbS5hZG1pbi52MS5MaW50Um' + 'VzdWx0LkxldmVsUgVsZXZlbBIwChR2YWxpZGF0aW9uX3VuaXRfbmFtZRgCIAEoCVISdmFsaWRh' + 'dGlvblVuaXROYW1lEkQKCHNldmVyaXR5GAMgASgOMiguZ29vZ2xlLmlhbS5hZG1pbi52MS5MaW' + '50UmVzdWx0LlNldmVyaXR5UghzZXZlcml0eRIdCgpmaWVsZF9uYW1lGAUgASgJUglmaWVsZE5h' + 'bWUSJwoPbG9jYXRpb25fb2Zmc2V0GAYgASgFUg5sb2NhdGlvbk9mZnNldBIjCg1kZWJ1Z19tZX' + 'NzYWdlGAcgASgJUgxkZWJ1Z01lc3NhZ2UiLQoFTGV2ZWwSFQoRTEVWRUxfVU5TUEVDSUZJRUQQ' + 'ABINCglDT05ESVRJT04QAyJiCghTZXZlcml0eRIYChRTRVZFUklUWV9VTlNQRUNJRklFRBAAEg' + 'kKBUVSUk9SEAESCwoHV0FSTklORxACEgoKBk5PVElDRRADEggKBElORk8QBBIOCgpERVBSRUNB' + 'VEVEEAU='); + @$core.Deprecated('Use lintPolicyResponseDescriptor instead') const LintPolicyResponse$json = { '1': 'LintPolicyResponse', @@ -1039,4 +1217,5 @@ const LintPolicyResponse$json = { /// Descriptor for `LintPolicyResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List lintPolicyResponseDescriptor = $convert.base64Decode( - 'ChJMaW50UG9saWN5UmVzcG9uc2USQgoMbGludF9yZXN1bHRzGAEgAygLMh8uZ29vZ2xlLmlhbS5hZG1pbi52MS5MaW50UmVzdWx0UgtsaW50UmVzdWx0cw=='); + 'ChJMaW50UG9saWN5UmVzcG9uc2USQgoMbGludF9yZXN1bHRzGAEgAygLMh8uZ29vZ2xlLmlhbS' + '5hZG1pbi52MS5MaW50UmVzdWx0UgtsaW50UmVzdWx0cw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pb.dart index 9d445cf4..3fd37a24 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pb.dart @@ -1,75 +1,63 @@ -/// +// // Generated code. Do not modify. // source: google/iam/credentials/v1/common.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/duration.pb.dart' as $0; -import '../../../protobuf/timestamp.pb.dart' as $1; +import '../../../protobuf/duration.pb.dart' as $51; +import '../../../protobuf/timestamp.pb.dart' as $50; class GenerateAccessTokenRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GenerateAccessTokenRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.credentials.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'delegates') - ..pPS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'scope') - ..aOM<$0.Duration>( - 7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'lifetime', - subBuilder: $0.Duration.create) - ..hasRequiredFields = false; - - GenerateAccessTokenRequest._() : super(); factory GenerateAccessTokenRequest({ $core.String? name, $core.Iterable<$core.String>? delegates, $core.Iterable<$core.String>? scope, - $0.Duration? lifetime, + $51.Duration? lifetime, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (delegates != null) { - _result.delegates.addAll(delegates); + $result.delegates.addAll(delegates); } if (scope != null) { - _result.scope.addAll(scope); + $result.scope.addAll(scope); } if (lifetime != null) { - _result.lifetime = lifetime; + $result.lifetime = lifetime; } - return _result; + return $result; } + GenerateAccessTokenRequest._() : super(); factory GenerateAccessTokenRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GenerateAccessTokenRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GenerateAccessTokenRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.iam.credentials.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pPS(2, _omitFieldNames ? '' : 'delegates') + ..pPS(4, _omitFieldNames ? '' : 'scope') + ..aOM<$51.Duration>(7, _omitFieldNames ? '' : 'lifetime', + subBuilder: $51.Duration.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') @@ -82,8 +70,10 @@ class GenerateAccessTokenRequest extends $pb.GeneratedMessage { void Function(GenerateAccessTokenRequest) updates) => super.copyWith( (message) => updates(message as GenerateAccessTokenRequest)) - as GenerateAccessTokenRequest; // ignore: deprecated_member_use + as GenerateAccessTokenRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GenerateAccessTokenRequest create() => GenerateAccessTokenRequest._(); GenerateAccessTokenRequest createEmptyInstance() => create(); @@ -94,6 +84,10 @@ class GenerateAccessTokenRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GenerateAccessTokenRequest? _defaultInstance; + /// Required. The resource name of the service account for which the credentials + /// are requested, in the following format: + /// `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + /// character is required; replacing it with a project ID is invalid. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -106,16 +100,34 @@ class GenerateAccessTokenRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The sequence of service accounts in a delegation chain. Each service + /// account must be granted the `roles/iam.serviceAccountTokenCreator` role + /// on its next service account in the chain. The last service account in the + /// chain must be granted the `roles/iam.serviceAccountTokenCreator` role + /// on the service account that is specified in the `name` field of the + /// request. + /// + /// The delegates must have the following format: + /// `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + /// character is required; replacing it with a project ID is invalid. @$pb.TagNumber(2) $core.List<$core.String> get delegates => $_getList(1); + /// Required. Code to identify the scopes to be included in the OAuth 2.0 access token. + /// See https://developers.google.com/identity/protocols/googlescopes for more + /// information. + /// At least one value required. @$pb.TagNumber(4) $core.List<$core.String> get scope => $_getList(2); + /// The desired lifetime duration of the access token in seconds. + /// Must be set to a value less than or equal to 3600 (1 hour). If a value is + /// not specified, the token's lifetime will be set to a default value of one + /// hour. @$pb.TagNumber(7) - $0.Duration get lifetime => $_getN(3); + $51.Duration get lifetime => $_getN(3); @$pb.TagNumber(7) - set lifetime($0.Duration v) { + set lifetime($51.Duration v) { setField(7, v); } @@ -124,52 +136,41 @@ class GenerateAccessTokenRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearLifetime() => clearField(7); @$pb.TagNumber(7) - $0.Duration ensureLifetime() => $_ensure(3); + $51.Duration ensureLifetime() => $_ensure(3); } class GenerateAccessTokenResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GenerateAccessTokenResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.credentials.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'accessToken') - ..aOM<$1.Timestamp>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'expireTime', - subBuilder: $1.Timestamp.create) - ..hasRequiredFields = false; - - GenerateAccessTokenResponse._() : super(); factory GenerateAccessTokenResponse({ $core.String? accessToken, - $1.Timestamp? expireTime, + $50.Timestamp? expireTime, }) { - final _result = create(); + final $result = create(); if (accessToken != null) { - _result.accessToken = accessToken; + $result.accessToken = accessToken; } if (expireTime != null) { - _result.expireTime = expireTime; + $result.expireTime = expireTime; } - return _result; + return $result; } + GenerateAccessTokenResponse._() : super(); factory GenerateAccessTokenResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GenerateAccessTokenResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GenerateAccessTokenResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.iam.credentials.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'accessToken') + ..aOM<$50.Timestamp>(3, _omitFieldNames ? '' : 'expireTime', + subBuilder: $50.Timestamp.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') @@ -182,8 +183,10 @@ class GenerateAccessTokenResponse extends $pb.GeneratedMessage { void Function(GenerateAccessTokenResponse) updates) => super.copyWith( (message) => updates(message as GenerateAccessTokenResponse)) - as GenerateAccessTokenResponse; // ignore: deprecated_member_use + as GenerateAccessTokenResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GenerateAccessTokenResponse create() => GenerateAccessTokenResponse._(); @@ -195,6 +198,7 @@ class GenerateAccessTokenResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GenerateAccessTokenResponse? _defaultInstance; + /// The OAuth 2.0 access token. @$pb.TagNumber(1) $core.String get accessToken => $_getSZ(0); @$pb.TagNumber(1) @@ -207,10 +211,12 @@ class GenerateAccessTokenResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearAccessToken() => clearField(1); + /// Token expiration time. + /// The expiration time is always set. @$pb.TagNumber(3) - $1.Timestamp get expireTime => $_getN(1); + $50.Timestamp get expireTime => $_getN(1); @$pb.TagNumber(3) - set expireTime($1.Timestamp v) { + set expireTime($50.Timestamp v) { setField(3, v); } @@ -219,61 +225,46 @@ class GenerateAccessTokenResponse extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearExpireTime() => clearField(3); @$pb.TagNumber(3) - $1.Timestamp ensureExpireTime() => $_ensure(1); + $50.Timestamp ensureExpireTime() => $_ensure(1); } class SignBlobRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SignBlobRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.credentials.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pPS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'delegates') - ..a<$core.List<$core.int>>( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'payload', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - SignBlobRequest._() : super(); factory SignBlobRequest({ $core.String? name, $core.Iterable<$core.String>? delegates, $core.List<$core.int>? payload, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (delegates != null) { - _result.delegates.addAll(delegates); + $result.delegates.addAll(delegates); } if (payload != null) { - _result.payload = payload; + $result.payload = payload; } - return _result; + return $result; } + SignBlobRequest._() : super(); factory SignBlobRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SignBlobRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SignBlobRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.iam.credentials.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pPS(3, _omitFieldNames ? '' : 'delegates') + ..a<$core.List<$core.int>>( + 5, _omitFieldNames ? '' : 'payload', $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') @@ -283,8 +274,10 @@ class SignBlobRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') SignBlobRequest copyWith(void Function(SignBlobRequest) updates) => super.copyWith((message) => updates(message as SignBlobRequest)) - as SignBlobRequest; // ignore: deprecated_member_use + as SignBlobRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SignBlobRequest create() => SignBlobRequest._(); SignBlobRequest createEmptyInstance() => create(); @@ -295,6 +288,10 @@ class SignBlobRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SignBlobRequest? _defaultInstance; + /// Required. The resource name of the service account for which the credentials + /// are requested, in the following format: + /// `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + /// character is required; replacing it with a project ID is invalid. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -307,9 +304,20 @@ class SignBlobRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The sequence of service accounts in a delegation chain. Each service + /// account must be granted the `roles/iam.serviceAccountTokenCreator` role + /// on its next service account in the chain. The last service account in the + /// chain must be granted the `roles/iam.serviceAccountTokenCreator` role + /// on the service account that is specified in the `name` field of the + /// request. + /// + /// The delegates must have the following format: + /// `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + /// character is required; replacing it with a project ID is invalid. @$pb.TagNumber(3) $core.List<$core.String> get delegates => $_getList(1); + /// Required. The bytes to sign. @$pb.TagNumber(5) $core.List<$core.int> get payload => $_getN(2); @$pb.TagNumber(5) @@ -324,48 +332,37 @@ class SignBlobRequest extends $pb.GeneratedMessage { } class SignBlobResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SignBlobResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.credentials.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keyId') - ..a<$core.List<$core.int>>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'signedBlob', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - SignBlobResponse._() : super(); factory SignBlobResponse({ $core.String? keyId, $core.List<$core.int>? signedBlob, }) { - final _result = create(); + final $result = create(); if (keyId != null) { - _result.keyId = keyId; + $result.keyId = keyId; } if (signedBlob != null) { - _result.signedBlob = signedBlob; + $result.signedBlob = signedBlob; } - return _result; + return $result; } + SignBlobResponse._() : super(); factory SignBlobResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SignBlobResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SignBlobResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.iam.credentials.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'keyId') + ..a<$core.List<$core.int>>( + 4, _omitFieldNames ? '' : 'signedBlob', $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') @@ -375,8 +372,10 @@ class SignBlobResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') SignBlobResponse copyWith(void Function(SignBlobResponse) updates) => super.copyWith((message) => updates(message as SignBlobResponse)) - as SignBlobResponse; // ignore: deprecated_member_use + as SignBlobResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SignBlobResponse create() => SignBlobResponse._(); SignBlobResponse createEmptyInstance() => create(); @@ -387,6 +386,7 @@ class SignBlobResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SignBlobResponse? _defaultInstance; + /// The ID of the key used to sign the blob. @$pb.TagNumber(1) $core.String get keyId => $_getSZ(0); @$pb.TagNumber(1) @@ -399,6 +399,7 @@ class SignBlobResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearKeyId() => clearField(1); + /// The signed blob. @$pb.TagNumber(4) $core.List<$core.int> get signedBlob => $_getN(1); @$pb.TagNumber(4) @@ -413,56 +414,41 @@ class SignBlobResponse extends $pb.GeneratedMessage { } class SignJwtRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SignJwtRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.credentials.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pPS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'delegates') - ..aOS( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'payload') - ..hasRequiredFields = false; - - SignJwtRequest._() : super(); factory SignJwtRequest({ $core.String? name, $core.Iterable<$core.String>? delegates, $core.String? payload, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (delegates != null) { - _result.delegates.addAll(delegates); + $result.delegates.addAll(delegates); } if (payload != null) { - _result.payload = payload; + $result.payload = payload; } - return _result; + return $result; } + SignJwtRequest._() : super(); factory SignJwtRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SignJwtRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SignJwtRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.iam.credentials.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pPS(3, _omitFieldNames ? '' : 'delegates') + ..aOS(5, _omitFieldNames ? '' : 'payload') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -472,8 +458,10 @@ class SignJwtRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') SignJwtRequest copyWith(void Function(SignJwtRequest) updates) => super.copyWith((message) => updates(message as SignJwtRequest)) - as SignJwtRequest; // ignore: deprecated_member_use + as SignJwtRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SignJwtRequest create() => SignJwtRequest._(); SignJwtRequest createEmptyInstance() => create(); @@ -484,6 +472,10 @@ class SignJwtRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SignJwtRequest? _defaultInstance; + /// Required. The resource name of the service account for which the credentials + /// are requested, in the following format: + /// `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + /// character is required; replacing it with a project ID is invalid. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -496,9 +488,20 @@ class SignJwtRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The sequence of service accounts in a delegation chain. Each service + /// account must be granted the `roles/iam.serviceAccountTokenCreator` role + /// on its next service account in the chain. The last service account in the + /// chain must be granted the `roles/iam.serviceAccountTokenCreator` role + /// on the service account that is specified in the `name` field of the + /// request. + /// + /// The delegates must have the following format: + /// `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + /// character is required; replacing it with a project ID is invalid. @$pb.TagNumber(3) $core.List<$core.String> get delegates => $_getList(1); + /// Required. The JWT payload to sign: a JSON object that contains a JWT Claims Set. @$pb.TagNumber(5) $core.String get payload => $_getSZ(2); @$pb.TagNumber(5) @@ -513,47 +516,36 @@ class SignJwtRequest extends $pb.GeneratedMessage { } class SignJwtResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SignJwtResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.credentials.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'keyId') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'signedJwt') - ..hasRequiredFields = false; - - SignJwtResponse._() : super(); factory SignJwtResponse({ $core.String? keyId, $core.String? signedJwt, }) { - final _result = create(); + final $result = create(); if (keyId != null) { - _result.keyId = keyId; + $result.keyId = keyId; } if (signedJwt != null) { - _result.signedJwt = signedJwt; + $result.signedJwt = signedJwt; } - return _result; + return $result; } + SignJwtResponse._() : super(); factory SignJwtResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SignJwtResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SignJwtResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.iam.credentials.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'keyId') + ..aOS(2, _omitFieldNames ? '' : 'signedJwt') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -563,8 +555,10 @@ class SignJwtResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') SignJwtResponse copyWith(void Function(SignJwtResponse) updates) => super.copyWith((message) => updates(message as SignJwtResponse)) - as SignJwtResponse; // ignore: deprecated_member_use + as SignJwtResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SignJwtResponse create() => SignJwtResponse._(); SignJwtResponse createEmptyInstance() => create(); @@ -575,6 +569,7 @@ class SignJwtResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SignJwtResponse? _defaultInstance; + /// The ID of the key used to sign the JWT. @$pb.TagNumber(1) $core.String get keyId => $_getSZ(0); @$pb.TagNumber(1) @@ -587,6 +582,7 @@ class SignJwtResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearKeyId() => clearField(1); + /// The signed JWT. @$pb.TagNumber(2) $core.String get signedJwt => $_getSZ(1); @$pb.TagNumber(2) @@ -601,62 +597,46 @@ class SignJwtResponse extends $pb.GeneratedMessage { } class GenerateIdTokenRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GenerateIdTokenRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.credentials.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'delegates') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'audience') - ..aOB(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'includeEmail') - ..hasRequiredFields = false; - - GenerateIdTokenRequest._() : super(); factory GenerateIdTokenRequest({ $core.String? name, $core.Iterable<$core.String>? delegates, $core.String? audience, $core.bool? includeEmail, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (delegates != null) { - _result.delegates.addAll(delegates); + $result.delegates.addAll(delegates); } if (audience != null) { - _result.audience = audience; + $result.audience = audience; } if (includeEmail != null) { - _result.includeEmail = includeEmail; + $result.includeEmail = includeEmail; } - return _result; + return $result; } + GenerateIdTokenRequest._() : super(); factory GenerateIdTokenRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GenerateIdTokenRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GenerateIdTokenRequest', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.iam.credentials.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pPS(2, _omitFieldNames ? '' : 'delegates') + ..aOS(3, _omitFieldNames ? '' : 'audience') + ..aOB(4, _omitFieldNames ? '' : 'includeEmail') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -668,8 +648,10 @@ class GenerateIdTokenRequest extends $pb.GeneratedMessage { GenerateIdTokenRequest copyWith( void Function(GenerateIdTokenRequest) updates) => super.copyWith((message) => updates(message as GenerateIdTokenRequest)) - as GenerateIdTokenRequest; // ignore: deprecated_member_use + as GenerateIdTokenRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GenerateIdTokenRequest create() => GenerateIdTokenRequest._(); GenerateIdTokenRequest createEmptyInstance() => create(); @@ -680,6 +662,10 @@ class GenerateIdTokenRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GenerateIdTokenRequest? _defaultInstance; + /// Required. The resource name of the service account for which the credentials + /// are requested, in the following format: + /// `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + /// character is required; replacing it with a project ID is invalid. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -692,9 +678,21 @@ class GenerateIdTokenRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The sequence of service accounts in a delegation chain. Each service + /// account must be granted the `roles/iam.serviceAccountTokenCreator` role + /// on its next service account in the chain. The last service account in the + /// chain must be granted the `roles/iam.serviceAccountTokenCreator` role + /// on the service account that is specified in the `name` field of the + /// request. + /// + /// The delegates must have the following format: + /// `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard + /// character is required; replacing it with a project ID is invalid. @$pb.TagNumber(2) $core.List<$core.String> get delegates => $_getList(1); + /// Required. The audience for the token, such as the API or account that this token + /// grants access to. @$pb.TagNumber(3) $core.String get audience => $_getSZ(2); @$pb.TagNumber(3) @@ -707,6 +705,8 @@ class GenerateIdTokenRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearAudience() => clearField(3); + /// Include the service account email in the token. If set to `true`, the + /// token will contain `email` and `email_verified` claims. @$pb.TagNumber(4) $core.bool get includeEmail => $_getBF(3); @$pb.TagNumber(4) @@ -721,38 +721,31 @@ class GenerateIdTokenRequest extends $pb.GeneratedMessage { } class GenerateIdTokenResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GenerateIdTokenResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.credentials.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'token') - ..hasRequiredFields = false; - - GenerateIdTokenResponse._() : super(); factory GenerateIdTokenResponse({ $core.String? token, }) { - final _result = create(); + final $result = create(); if (token != null) { - _result.token = token; + $result.token = token; } - return _result; + return $result; } + GenerateIdTokenResponse._() : super(); factory GenerateIdTokenResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GenerateIdTokenResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GenerateIdTokenResponse', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.iam.credentials.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'token') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -764,8 +757,10 @@ class GenerateIdTokenResponse extends $pb.GeneratedMessage { GenerateIdTokenResponse copyWith( void Function(GenerateIdTokenResponse) updates) => super.copyWith((message) => updates(message as GenerateIdTokenResponse)) - as GenerateIdTokenResponse; // ignore: deprecated_member_use + as GenerateIdTokenResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GenerateIdTokenResponse create() => GenerateIdTokenResponse._(); GenerateIdTokenResponse createEmptyInstance() => create(); @@ -776,6 +771,7 @@ class GenerateIdTokenResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GenerateIdTokenResponse? _defaultInstance; + /// The OpenId Connect ID token. @$pb.TagNumber(1) $core.String get token => $_getSZ(0); @$pb.TagNumber(1) @@ -788,3 +784,7 @@ class GenerateIdTokenResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearToken() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pbenum.dart index 3af9c06f..42ac14cb 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/iam/credentials/v1/common.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pbjson.dart index dae00dfc..46b8a9fb 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/common.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/iam/credentials/v1/common.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 generateAccessTokenRequestDescriptor instead') @@ -28,9 +32,12 @@ const GenerateAccessTokenRequest$json = { }; /// Descriptor for `GenerateAccessTokenRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List generateAccessTokenRequestDescriptor = - $convert.base64Decode( - 'ChpHZW5lcmF0ZUFjY2Vzc1Rva2VuUmVxdWVzdBI9CgRuYW1lGAEgASgJQingQQL6QSMKIWlhbS5nb29nbGVhcGlzLmNvbS9TZXJ2aWNlQWNjb3VudFIEbmFtZRIcCglkZWxlZ2F0ZXMYAiADKAlSCWRlbGVnYXRlcxIZCgVzY29wZRgEIAMoCUID4EECUgVzY29wZRI1CghsaWZldGltZRgHIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIIbGlmZXRpbWU='); +final $typed_data.Uint8List generateAccessTokenRequestDescriptor = $convert.base64Decode( + 'ChpHZW5lcmF0ZUFjY2Vzc1Rva2VuUmVxdWVzdBI9CgRuYW1lGAEgASgJQingQQL6QSMKIWlhbS' + '5nb29nbGVhcGlzLmNvbS9TZXJ2aWNlQWNjb3VudFIEbmFtZRIcCglkZWxlZ2F0ZXMYAiADKAlS' + 'CWRlbGVnYXRlcxIZCgVzY29wZRgEIAMoCUID4EECUgVzY29wZRI1CghsaWZldGltZRgHIAEoCz' + 'IZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIIbGlmZXRpbWU='); + @$core.Deprecated('Use generateAccessTokenResponseDescriptor instead') const GenerateAccessTokenResponse$json = { '1': 'GenerateAccessTokenResponse', @@ -50,7 +57,10 @@ const GenerateAccessTokenResponse$json = { /// Descriptor for `GenerateAccessTokenResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List generateAccessTokenResponseDescriptor = $convert.base64Decode( - 'ChtHZW5lcmF0ZUFjY2Vzc1Rva2VuUmVzcG9uc2USIQoMYWNjZXNzX3Rva2VuGAEgASgJUgthY2Nlc3NUb2tlbhI7CgtleHBpcmVfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCmV4cGlyZVRpbWU='); + 'ChtHZW5lcmF0ZUFjY2Vzc1Rva2VuUmVzcG9uc2USIQoMYWNjZXNzX3Rva2VuGAEgASgJUgthY2' + 'Nlc3NUb2tlbhI7CgtleHBpcmVfdGltZRgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh' + 'bXBSCmV4cGlyZVRpbWU='); + @$core.Deprecated('Use signBlobRequestDescriptor instead') const SignBlobRequest$json = { '1': 'SignBlobRequest', @@ -63,7 +73,10 @@ const SignBlobRequest$json = { /// Descriptor for `SignBlobRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signBlobRequestDescriptor = $convert.base64Decode( - 'Cg9TaWduQmxvYlJlcXVlc3QSPQoEbmFtZRgBIAEoCUIp4EEC+kEjCiFpYW0uZ29vZ2xlYXBpcy5jb20vU2VydmljZUFjY291bnRSBG5hbWUSHAoJZGVsZWdhdGVzGAMgAygJUglkZWxlZ2F0ZXMSHQoHcGF5bG9hZBgFIAEoDEID4EECUgdwYXlsb2Fk'); + 'Cg9TaWduQmxvYlJlcXVlc3QSPQoEbmFtZRgBIAEoCUIp4EEC+kEjCiFpYW0uZ29vZ2xlYXBpcy' + '5jb20vU2VydmljZUFjY291bnRSBG5hbWUSHAoJZGVsZWdhdGVzGAMgAygJUglkZWxlZ2F0ZXMS' + 'HQoHcGF5bG9hZBgFIAEoDEID4EECUgdwYXlsb2Fk'); + @$core.Deprecated('Use signBlobResponseDescriptor instead') const SignBlobResponse$json = { '1': 'SignBlobResponse', @@ -75,7 +88,9 @@ const SignBlobResponse$json = { /// Descriptor for `SignBlobResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signBlobResponseDescriptor = $convert.base64Decode( - 'ChBTaWduQmxvYlJlc3BvbnNlEhUKBmtleV9pZBgBIAEoCVIFa2V5SWQSHwoLc2lnbmVkX2Jsb2IYBCABKAxSCnNpZ25lZEJsb2I='); + 'ChBTaWduQmxvYlJlc3BvbnNlEhUKBmtleV9pZBgBIAEoCVIFa2V5SWQSHwoLc2lnbmVkX2Jsb2' + 'IYBCABKAxSCnNpZ25lZEJsb2I='); + @$core.Deprecated('Use signJwtRequestDescriptor instead') const SignJwtRequest$json = { '1': 'SignJwtRequest', @@ -88,7 +103,10 @@ const SignJwtRequest$json = { /// Descriptor for `SignJwtRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signJwtRequestDescriptor = $convert.base64Decode( - 'Cg5TaWduSnd0UmVxdWVzdBI9CgRuYW1lGAEgASgJQingQQL6QSMKIWlhbS5nb29nbGVhcGlzLmNvbS9TZXJ2aWNlQWNjb3VudFIEbmFtZRIcCglkZWxlZ2F0ZXMYAyADKAlSCWRlbGVnYXRlcxIdCgdwYXlsb2FkGAUgASgJQgPgQQJSB3BheWxvYWQ='); + 'Cg5TaWduSnd0UmVxdWVzdBI9CgRuYW1lGAEgASgJQingQQL6QSMKIWlhbS5nb29nbGVhcGlzLm' + 'NvbS9TZXJ2aWNlQWNjb3VudFIEbmFtZRIcCglkZWxlZ2F0ZXMYAyADKAlSCWRlbGVnYXRlcxId' + 'CgdwYXlsb2FkGAUgASgJQgPgQQJSB3BheWxvYWQ='); + @$core.Deprecated('Use signJwtResponseDescriptor instead') const SignJwtResponse$json = { '1': 'SignJwtResponse', @@ -100,7 +118,9 @@ const SignJwtResponse$json = { /// Descriptor for `SignJwtResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List signJwtResponseDescriptor = $convert.base64Decode( - 'Cg9TaWduSnd0UmVzcG9uc2USFQoGa2V5X2lkGAEgASgJUgVrZXlJZBIdCgpzaWduZWRfand0GAIgASgJUglzaWduZWRKd3Q='); + 'Cg9TaWduSnd0UmVzcG9uc2USFQoGa2V5X2lkGAEgASgJUgVrZXlJZBIdCgpzaWduZWRfand0GA' + 'IgASgJUglzaWduZWRKd3Q='); + @$core.Deprecated('Use generateIdTokenRequestDescriptor instead') const GenerateIdTokenRequest$json = { '1': 'GenerateIdTokenRequest', @@ -113,9 +133,12 @@ const GenerateIdTokenRequest$json = { }; /// Descriptor for `GenerateIdTokenRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List generateIdTokenRequestDescriptor = - $convert.base64Decode( - 'ChZHZW5lcmF0ZUlkVG9rZW5SZXF1ZXN0Ej0KBG5hbWUYASABKAlCKeBBAvpBIwohaWFtLmdvb2dsZWFwaXMuY29tL1NlcnZpY2VBY2NvdW50UgRuYW1lEhwKCWRlbGVnYXRlcxgCIAMoCVIJZGVsZWdhdGVzEh8KCGF1ZGllbmNlGAMgASgJQgPgQQJSCGF1ZGllbmNlEiMKDWluY2x1ZGVfZW1haWwYBCABKAhSDGluY2x1ZGVFbWFpbA=='); +final $typed_data.Uint8List generateIdTokenRequestDescriptor = $convert.base64Decode( + 'ChZHZW5lcmF0ZUlkVG9rZW5SZXF1ZXN0Ej0KBG5hbWUYASABKAlCKeBBAvpBIwohaWFtLmdvb2' + 'dsZWFwaXMuY29tL1NlcnZpY2VBY2NvdW50UgRuYW1lEhwKCWRlbGVnYXRlcxgCIAMoCVIJZGVs' + 'ZWdhdGVzEh8KCGF1ZGllbmNlGAMgASgJQgPgQQJSCGF1ZGllbmNlEiMKDWluY2x1ZGVfZW1haW' + 'wYBCABKAhSDGluY2x1ZGVFbWFpbA=='); + @$core.Deprecated('Use generateIdTokenResponseDescriptor instead') const GenerateIdTokenResponse$json = { '1': 'GenerateIdTokenResponse', diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pb.dart index 29fbf173..e470b894 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pb.dart @@ -1,8 +1,12 @@ -/// +// // Generated code. Do not modify. // source: google/iam/credentials/v1/iamcredentials.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbenum.dart index 884369ff..43c6c535 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/iam/credentials/v1/iamcredentials.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbgrpc.dart index b61d58b7..67a80938 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbgrpc.dart @@ -1,138 +1,147 @@ -/// +// // Generated code. Do not modify. // source: google/iam/credentials/v1/iamcredentials.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'common.pb.dart' as $0; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'common.pb.dart' as $44; + export 'iamcredentials.pb.dart'; +@$pb.GrpcServiceName('google.iam.credentials.v1.IAMCredentials') class IAMCredentialsClient extends $grpc.Client { static final _$generateAccessToken = $grpc.ClientMethod< - $0.GenerateAccessTokenRequest, $0.GenerateAccessTokenResponse>( + $44.GenerateAccessTokenRequest, $44.GenerateAccessTokenResponse>( '/google.iam.credentials.v1.IAMCredentials/GenerateAccessToken', - ($0.GenerateAccessTokenRequest value) => value.writeToBuffer(), + ($44.GenerateAccessTokenRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.GenerateAccessTokenResponse.fromBuffer(value)); - static final _$generateIdToken = - $grpc.ClientMethod<$0.GenerateIdTokenRequest, $0.GenerateIdTokenResponse>( - '/google.iam.credentials.v1.IAMCredentials/GenerateIdToken', - ($0.GenerateIdTokenRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GenerateIdTokenResponse.fromBuffer(value)); + $44.GenerateAccessTokenResponse.fromBuffer(value)); + static final _$generateIdToken = $grpc.ClientMethod< + $44.GenerateIdTokenRequest, $44.GenerateIdTokenResponse>( + '/google.iam.credentials.v1.IAMCredentials/GenerateIdToken', + ($44.GenerateIdTokenRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $44.GenerateIdTokenResponse.fromBuffer(value)); static final _$signBlob = - $grpc.ClientMethod<$0.SignBlobRequest, $0.SignBlobResponse>( + $grpc.ClientMethod<$44.SignBlobRequest, $44.SignBlobResponse>( '/google.iam.credentials.v1.IAMCredentials/SignBlob', - ($0.SignBlobRequest value) => value.writeToBuffer(), + ($44.SignBlobRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.SignBlobResponse.fromBuffer(value)); + $44.SignBlobResponse.fromBuffer(value)); static final _$signJwt = - $grpc.ClientMethod<$0.SignJwtRequest, $0.SignJwtResponse>( + $grpc.ClientMethod<$44.SignJwtRequest, $44.SignJwtResponse>( '/google.iam.credentials.v1.IAMCredentials/SignJwt', - ($0.SignJwtRequest value) => value.writeToBuffer(), + ($44.SignJwtRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.SignJwtResponse.fromBuffer(value)); + $44.SignJwtResponse.fromBuffer(value)); IAMCredentialsClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.GenerateAccessTokenResponse> generateAccessToken( - $0.GenerateAccessTokenRequest request, + $grpc.ResponseFuture<$44.GenerateAccessTokenResponse> generateAccessToken( + $44.GenerateAccessTokenRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$generateAccessToken, request, options: options); } - $grpc.ResponseFuture<$0.GenerateIdTokenResponse> generateIdToken( - $0.GenerateIdTokenRequest request, + $grpc.ResponseFuture<$44.GenerateIdTokenResponse> generateIdToken( + $44.GenerateIdTokenRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$generateIdToken, request, options: options); } - $grpc.ResponseFuture<$0.SignBlobResponse> signBlob($0.SignBlobRequest request, + $grpc.ResponseFuture<$44.SignBlobResponse> signBlob( + $44.SignBlobRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$signBlob, request, options: options); } - $grpc.ResponseFuture<$0.SignJwtResponse> signJwt($0.SignJwtRequest request, + $grpc.ResponseFuture<$44.SignJwtResponse> signJwt($44.SignJwtRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$signJwt, request, options: options); } } +@$pb.GrpcServiceName('google.iam.credentials.v1.IAMCredentials') abstract class IAMCredentialsServiceBase extends $grpc.Service { $core.String get $name => 'google.iam.credentials.v1.IAMCredentials'; IAMCredentialsServiceBase() { - $addMethod($grpc.ServiceMethod<$0.GenerateAccessTokenRequest, - $0.GenerateAccessTokenResponse>( + $addMethod($grpc.ServiceMethod<$44.GenerateAccessTokenRequest, + $44.GenerateAccessTokenResponse>( 'GenerateAccessToken', generateAccessToken_Pre, false, false, ($core.List<$core.int> value) => - $0.GenerateAccessTokenRequest.fromBuffer(value), - ($0.GenerateAccessTokenResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GenerateIdTokenRequest, - $0.GenerateIdTokenResponse>( + $44.GenerateAccessTokenRequest.fromBuffer(value), + ($44.GenerateAccessTokenResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$44.GenerateIdTokenRequest, + $44.GenerateIdTokenResponse>( 'GenerateIdToken', generateIdToken_Pre, false, false, ($core.List<$core.int> value) => - $0.GenerateIdTokenRequest.fromBuffer(value), - ($0.GenerateIdTokenResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.SignBlobRequest, $0.SignBlobResponse>( + $44.GenerateIdTokenRequest.fromBuffer(value), + ($44.GenerateIdTokenResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$44.SignBlobRequest, $44.SignBlobResponse>( 'SignBlob', signBlob_Pre, false, false, - ($core.List<$core.int> value) => $0.SignBlobRequest.fromBuffer(value), - ($0.SignBlobResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.SignJwtRequest, $0.SignJwtResponse>( + ($core.List<$core.int> value) => $44.SignBlobRequest.fromBuffer(value), + ($44.SignBlobResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$44.SignJwtRequest, $44.SignJwtResponse>( 'SignJwt', signJwt_Pre, false, false, - ($core.List<$core.int> value) => $0.SignJwtRequest.fromBuffer(value), - ($0.SignJwtResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $44.SignJwtRequest.fromBuffer(value), + ($44.SignJwtResponse value) => value.writeToBuffer())); } - $async.Future<$0.GenerateAccessTokenResponse> generateAccessToken_Pre( + $async.Future<$44.GenerateAccessTokenResponse> generateAccessToken_Pre( $grpc.ServiceCall call, - $async.Future<$0.GenerateAccessTokenRequest> request) async { + $async.Future<$44.GenerateAccessTokenRequest> request) async { return generateAccessToken(call, await request); } - $async.Future<$0.GenerateIdTokenResponse> generateIdToken_Pre( + $async.Future<$44.GenerateIdTokenResponse> generateIdToken_Pre( $grpc.ServiceCall call, - $async.Future<$0.GenerateIdTokenRequest> request) async { + $async.Future<$44.GenerateIdTokenRequest> request) async { return generateIdToken(call, await request); } - $async.Future<$0.SignBlobResponse> signBlob_Pre( - $grpc.ServiceCall call, $async.Future<$0.SignBlobRequest> request) async { + $async.Future<$44.SignBlobResponse> signBlob_Pre($grpc.ServiceCall call, + $async.Future<$44.SignBlobRequest> request) async { return signBlob(call, await request); } - $async.Future<$0.SignJwtResponse> signJwt_Pre( - $grpc.ServiceCall call, $async.Future<$0.SignJwtRequest> request) async { + $async.Future<$44.SignJwtResponse> signJwt_Pre( + $grpc.ServiceCall call, $async.Future<$44.SignJwtRequest> request) async { return signJwt(call, await request); } - $async.Future<$0.GenerateAccessTokenResponse> generateAccessToken( - $grpc.ServiceCall call, $0.GenerateAccessTokenRequest request); - $async.Future<$0.GenerateIdTokenResponse> generateIdToken( - $grpc.ServiceCall call, $0.GenerateIdTokenRequest request); - $async.Future<$0.SignBlobResponse> signBlob( - $grpc.ServiceCall call, $0.SignBlobRequest request); - $async.Future<$0.SignJwtResponse> signJwt( - $grpc.ServiceCall call, $0.SignJwtRequest request); + $async.Future<$44.GenerateAccessTokenResponse> generateAccessToken( + $grpc.ServiceCall call, $44.GenerateAccessTokenRequest request); + $async.Future<$44.GenerateIdTokenResponse> generateIdToken( + $grpc.ServiceCall call, $44.GenerateIdTokenRequest request); + $async.Future<$44.SignBlobResponse> signBlob( + $grpc.ServiceCall call, $44.SignBlobRequest request); + $async.Future<$44.SignJwtResponse> signJwt( + $grpc.ServiceCall call, $44.SignJwtRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbjson.dart index 13307538..92528303 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/credentials/v1/iamcredentials.pbjson.dart @@ -1,10 +1,14 @@ -/// +// // Generated code. Do not modify. // source: google/iam/credentials/v1/iamcredentials.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pb.dart index 66386164..a07f2373 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pb.dart @@ -1,60 +1,60 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/iam_policy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'policy.pb.dart' as $1; -import 'options.pb.dart' as $2; +import '../../protobuf/field_mask.pb.dart' as $58; +import 'options.pb.dart' as $115; +import 'policy.pb.dart' as $43; +/// Request message for `SetIamPolicy` method. class SetIamPolicyRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SetIamPolicyRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resource') - ..aOM<$1.Policy>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'policy', - subBuilder: $1.Policy.create) - ..hasRequiredFields = false; - - SetIamPolicyRequest._() : super(); factory SetIamPolicyRequest({ $core.String? resource, - $1.Policy? policy, + $43.Policy? policy, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (resource != null) { - _result.resource = resource; + $result.resource = resource; } if (policy != null) { - _result.policy = policy; + $result.policy = policy; + } + if (updateMask != null) { + $result.updateMask = updateMask; } - return _result; + return $result; } + SetIamPolicyRequest._() : super(); factory SetIamPolicyRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SetIamPolicyRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SetIamPolicyRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'resource') + ..aOM<$43.Policy>(2, _omitFieldNames ? '' : 'policy', + subBuilder: $43.Policy.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -64,8 +64,10 @@ class SetIamPolicyRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') SetIamPolicyRequest copyWith(void Function(SetIamPolicyRequest) updates) => super.copyWith((message) => updates(message as SetIamPolicyRequest)) - as SetIamPolicyRequest; // ignore: deprecated_member_use + as SetIamPolicyRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SetIamPolicyRequest create() => SetIamPolicyRequest._(); SetIamPolicyRequest createEmptyInstance() => create(); @@ -76,6 +78,8 @@ class SetIamPolicyRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SetIamPolicyRequest? _defaultInstance; + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. @$pb.TagNumber(1) $core.String get resource => $_getSZ(0); @$pb.TagNumber(1) @@ -88,10 +92,14 @@ class SetIamPolicyRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearResource() => clearField(1); + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. @$pb.TagNumber(2) - $1.Policy get policy => $_getN(1); + $43.Policy get policy => $_getN(1); @$pb.TagNumber(2) - set policy($1.Policy v) { + set policy($43.Policy v) { setField(2, v); } @@ -100,52 +108,60 @@ class SetIamPolicyRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPolicy() => clearField(2); @$pb.TagNumber(2) - $1.Policy ensurePolicy() => $_ensure(1); + $43.Policy ensurePolicy() => $_ensure(1); + + /// OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + /// the fields in the mask will be modified. If no mask is provided, the + /// following default mask is used: + /// + /// `paths: "bindings, etag"` + @$pb.TagNumber(3) + $58.FieldMask get updateMask => $_getN(2); + @$pb.TagNumber(3) + set updateMask($58.FieldMask v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasUpdateMask() => $_has(2); + @$pb.TagNumber(3) + void clearUpdateMask() => clearField(3); + @$pb.TagNumber(3) + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// Request message for `GetIamPolicy` method. class GetIamPolicyRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetIamPolicyRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resource') - ..aOM<$2.GetPolicyOptions>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'options', - subBuilder: $2.GetPolicyOptions.create) - ..hasRequiredFields = false; - - GetIamPolicyRequest._() : super(); factory GetIamPolicyRequest({ $core.String? resource, - $2.GetPolicyOptions? options, + $115.GetPolicyOptions? options, }) { - final _result = create(); + final $result = create(); if (resource != null) { - _result.resource = resource; + $result.resource = resource; } if (options != null) { - _result.options = options; + $result.options = options; } - return _result; + return $result; } + GetIamPolicyRequest._() : super(); factory GetIamPolicyRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetIamPolicyRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetIamPolicyRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'resource') + ..aOM<$115.GetPolicyOptions>(2, _omitFieldNames ? '' : 'options', + subBuilder: $115.GetPolicyOptions.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') @@ -155,8 +171,10 @@ class GetIamPolicyRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetIamPolicyRequest copyWith(void Function(GetIamPolicyRequest) updates) => super.copyWith((message) => updates(message as GetIamPolicyRequest)) - as GetIamPolicyRequest; // ignore: deprecated_member_use + as GetIamPolicyRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetIamPolicyRequest create() => GetIamPolicyRequest._(); GetIamPolicyRequest createEmptyInstance() => create(); @@ -167,6 +185,8 @@ class GetIamPolicyRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetIamPolicyRequest? _defaultInstance; + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. @$pb.TagNumber(1) $core.String get resource => $_getSZ(0); @$pb.TagNumber(1) @@ -179,10 +199,12 @@ class GetIamPolicyRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearResource() => clearField(1); + /// OPTIONAL: A `GetPolicyOptions` object for specifying options to + /// `GetIamPolicy`. @$pb.TagNumber(2) - $2.GetPolicyOptions get options => $_getN(1); + $115.GetPolicyOptions get options => $_getN(1); @$pb.TagNumber(2) - set options($2.GetPolicyOptions v) { + set options($115.GetPolicyOptions v) { setField(2, v); } @@ -191,51 +213,40 @@ class GetIamPolicyRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearOptions() => clearField(2); @$pb.TagNumber(2) - $2.GetPolicyOptions ensureOptions() => $_ensure(1); + $115.GetPolicyOptions ensureOptions() => $_ensure(1); } +/// Request message for `TestIamPermissions` method. class TestIamPermissionsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TestIamPermissionsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resource') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'permissions') - ..hasRequiredFields = false; - - TestIamPermissionsRequest._() : super(); factory TestIamPermissionsRequest({ $core.String? resource, $core.Iterable<$core.String>? permissions, }) { - final _result = create(); + final $result = create(); if (resource != null) { - _result.resource = resource; + $result.resource = resource; } if (permissions != null) { - _result.permissions.addAll(permissions); + $result.permissions.addAll(permissions); } - return _result; + return $result; } + TestIamPermissionsRequest._() : super(); factory TestIamPermissionsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TestIamPermissionsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestIamPermissionsRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'resource') + ..pPS(2, _omitFieldNames ? '' : 'permissions') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -247,8 +258,10 @@ class TestIamPermissionsRequest extends $pb.GeneratedMessage { TestIamPermissionsRequest copyWith( void Function(TestIamPermissionsRequest) updates) => super.copyWith((message) => updates(message as TestIamPermissionsRequest)) - as TestIamPermissionsRequest; // ignore: deprecated_member_use + as TestIamPermissionsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TestIamPermissionsRequest create() => TestIamPermissionsRequest._(); TestIamPermissionsRequest createEmptyInstance() => create(); @@ -259,6 +272,8 @@ class TestIamPermissionsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static TestIamPermissionsRequest? _defaultInstance; + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. @$pb.TagNumber(1) $core.String get resource => $_getSZ(0); @$pb.TagNumber(1) @@ -271,43 +286,40 @@ class TestIamPermissionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearResource() => clearField(1); + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). @$pb.TagNumber(2) $core.List<$core.String> get permissions => $_getList(1); } +/// Response message for `TestIamPermissions` method. class TestIamPermissionsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TestIamPermissionsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'permissions') - ..hasRequiredFields = false; - - TestIamPermissionsResponse._() : super(); factory TestIamPermissionsResponse({ $core.Iterable<$core.String>? permissions, }) { - final _result = create(); + final $result = create(); if (permissions != null) { - _result.permissions.addAll(permissions); + $result.permissions.addAll(permissions); } - return _result; + return $result; } + TestIamPermissionsResponse._() : super(); factory TestIamPermissionsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TestIamPermissionsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestIamPermissionsResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'permissions') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -320,8 +332,10 @@ class TestIamPermissionsResponse extends $pb.GeneratedMessage { void Function(TestIamPermissionsResponse) updates) => super.copyWith( (message) => updates(message as TestIamPermissionsResponse)) - as TestIamPermissionsResponse; // ignore: deprecated_member_use + as TestIamPermissionsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TestIamPermissionsResponse create() => TestIamPermissionsResponse._(); TestIamPermissionsResponse createEmptyInstance() => create(); @@ -332,6 +346,12 @@ class TestIamPermissionsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static TestIamPermissionsResponse? _defaultInstance; + /// A subset of `TestPermissionsRequest.permissions` that the caller is + /// allowed. @$pb.TagNumber(1) $core.List<$core.String> get permissions => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbenum.dart index 230bd560..6335f916 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/iam_policy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbgrpc.dart index ef7a1796..8b14fe9f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbgrpc.dart @@ -1,110 +1,118 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/iam_policy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'iam_policy.pb.dart' as $0; -import 'policy.pb.dart' as $1; +import 'package:protobuf/protobuf.dart' as $pb; + +import 'iam_policy.pb.dart' as $42; +import 'policy.pb.dart' as $43; + export 'iam_policy.pb.dart'; +@$pb.GrpcServiceName('google.iam.v1.IAMPolicy') class IAMPolicyClient extends $grpc.Client { static final _$setIamPolicy = - $grpc.ClientMethod<$0.SetIamPolicyRequest, $1.Policy>( + $grpc.ClientMethod<$42.SetIamPolicyRequest, $43.Policy>( '/google.iam.v1.IAMPolicy/SetIamPolicy', - ($0.SetIamPolicyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $1.Policy.fromBuffer(value)); + ($42.SetIamPolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $43.Policy.fromBuffer(value)); static final _$getIamPolicy = - $grpc.ClientMethod<$0.GetIamPolicyRequest, $1.Policy>( + $grpc.ClientMethod<$42.GetIamPolicyRequest, $43.Policy>( '/google.iam.v1.IAMPolicy/GetIamPolicy', - ($0.GetIamPolicyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $1.Policy.fromBuffer(value)); + ($42.GetIamPolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $43.Policy.fromBuffer(value)); static final _$testIamPermissions = $grpc.ClientMethod< - $0.TestIamPermissionsRequest, $0.TestIamPermissionsResponse>( + $42.TestIamPermissionsRequest, $42.TestIamPermissionsResponse>( '/google.iam.v1.IAMPolicy/TestIamPermissions', - ($0.TestIamPermissionsRequest value) => value.writeToBuffer(), + ($42.TestIamPermissionsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.TestIamPermissionsResponse.fromBuffer(value)); + $42.TestIamPermissionsResponse.fromBuffer(value)); IAMPolicyClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$1.Policy> setIamPolicy($0.SetIamPolicyRequest request, + $grpc.ResponseFuture<$43.Policy> setIamPolicy($42.SetIamPolicyRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$setIamPolicy, request, options: options); } - $grpc.ResponseFuture<$1.Policy> getIamPolicy($0.GetIamPolicyRequest request, + $grpc.ResponseFuture<$43.Policy> getIamPolicy($42.GetIamPolicyRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getIamPolicy, request, options: options); } - $grpc.ResponseFuture<$0.TestIamPermissionsResponse> testIamPermissions( - $0.TestIamPermissionsRequest request, + $grpc.ResponseFuture<$42.TestIamPermissionsResponse> testIamPermissions( + $42.TestIamPermissionsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$testIamPermissions, request, options: options); } } +@$pb.GrpcServiceName('google.iam.v1.IAMPolicy') abstract class IAMPolicyServiceBase extends $grpc.Service { $core.String get $name => 'google.iam.v1.IAMPolicy'; IAMPolicyServiceBase() { - $addMethod($grpc.ServiceMethod<$0.SetIamPolicyRequest, $1.Policy>( + $addMethod($grpc.ServiceMethod<$42.SetIamPolicyRequest, $43.Policy>( 'SetIamPolicy', setIamPolicy_Pre, false, false, ($core.List<$core.int> value) => - $0.SetIamPolicyRequest.fromBuffer(value), - ($1.Policy value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetIamPolicyRequest, $1.Policy>( + $42.SetIamPolicyRequest.fromBuffer(value), + ($43.Policy value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$42.GetIamPolicyRequest, $43.Policy>( 'GetIamPolicy', getIamPolicy_Pre, false, false, ($core.List<$core.int> value) => - $0.GetIamPolicyRequest.fromBuffer(value), - ($1.Policy value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.TestIamPermissionsRequest, - $0.TestIamPermissionsResponse>( + $42.GetIamPolicyRequest.fromBuffer(value), + ($43.Policy value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$42.TestIamPermissionsRequest, + $42.TestIamPermissionsResponse>( 'TestIamPermissions', testIamPermissions_Pre, false, false, ($core.List<$core.int> value) => - $0.TestIamPermissionsRequest.fromBuffer(value), - ($0.TestIamPermissionsResponse value) => value.writeToBuffer())); + $42.TestIamPermissionsRequest.fromBuffer(value), + ($42.TestIamPermissionsResponse value) => value.writeToBuffer())); } - $async.Future<$1.Policy> setIamPolicy_Pre($grpc.ServiceCall call, - $async.Future<$0.SetIamPolicyRequest> request) async { + $async.Future<$43.Policy> setIamPolicy_Pre($grpc.ServiceCall call, + $async.Future<$42.SetIamPolicyRequest> request) async { return setIamPolicy(call, await request); } - $async.Future<$1.Policy> getIamPolicy_Pre($grpc.ServiceCall call, - $async.Future<$0.GetIamPolicyRequest> request) async { + $async.Future<$43.Policy> getIamPolicy_Pre($grpc.ServiceCall call, + $async.Future<$42.GetIamPolicyRequest> request) async { return getIamPolicy(call, await request); } - $async.Future<$0.TestIamPermissionsResponse> testIamPermissions_Pre( + $async.Future<$42.TestIamPermissionsResponse> testIamPermissions_Pre( $grpc.ServiceCall call, - $async.Future<$0.TestIamPermissionsRequest> request) async { + $async.Future<$42.TestIamPermissionsRequest> request) async { return testIamPermissions(call, await request); } - $async.Future<$1.Policy> setIamPolicy( - $grpc.ServiceCall call, $0.SetIamPolicyRequest request); - $async.Future<$1.Policy> getIamPolicy( - $grpc.ServiceCall call, $0.GetIamPolicyRequest request); - $async.Future<$0.TestIamPermissionsResponse> testIamPermissions( - $grpc.ServiceCall call, $0.TestIamPermissionsRequest request); + $async.Future<$43.Policy> setIamPolicy( + $grpc.ServiceCall call, $42.SetIamPolicyRequest request); + $async.Future<$43.Policy> getIamPolicy( + $grpc.ServiceCall call, $42.GetIamPolicyRequest request); + $async.Future<$42.TestIamPermissionsResponse> testIamPermissions( + $grpc.ServiceCall call, $42.TestIamPermissionsRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbjson.dart index 6949b5ef..3bb3432a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/iam_policy.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/iam_policy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 setIamPolicyRequestDescriptor instead') @@ -23,12 +27,24 @@ const SetIamPolicyRequest$json = { '8': {}, '10': 'policy' }, + { + '1': 'update_mask', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.FieldMask', + '10': 'updateMask' + }, ], }; /// Descriptor for `SetIamPolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List setIamPolicyRequestDescriptor = $convert.base64Decode( - 'ChNTZXRJYW1Qb2xpY3lSZXF1ZXN0EiUKCHJlc291cmNlGAEgASgJQgngQQL6QQMKASpSCHJlc291cmNlEjIKBnBvbGljeRgCIAEoCzIVLmdvb2dsZS5pYW0udjEuUG9saWN5QgPgQQJSBnBvbGljeQ=='); + 'ChNTZXRJYW1Qb2xpY3lSZXF1ZXN0EiUKCHJlc291cmNlGAEgASgJQgngQQL6QQMKASpSCHJlc2' + '91cmNlEjIKBnBvbGljeRgCIAEoCzIVLmdvb2dsZS5pYW0udjEuUG9saWN5QgPgQQJSBnBvbGlj' + 'eRI7Cgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tSCnVwZG' + 'F0ZU1hc2s='); + @$core.Deprecated('Use getIamPolicyRequestDescriptor instead') const GetIamPolicyRequest$json = { '1': 'GetIamPolicyRequest', @@ -47,7 +63,10 @@ const GetIamPolicyRequest$json = { /// Descriptor for `GetIamPolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getIamPolicyRequestDescriptor = $convert.base64Decode( - 'ChNHZXRJYW1Qb2xpY3lSZXF1ZXN0EiUKCHJlc291cmNlGAEgASgJQgngQQL6QQMKASpSCHJlc291cmNlEjkKB29wdGlvbnMYAiABKAsyHy5nb29nbGUuaWFtLnYxLkdldFBvbGljeU9wdGlvbnNSB29wdGlvbnM='); + 'ChNHZXRJYW1Qb2xpY3lSZXF1ZXN0EiUKCHJlc291cmNlGAEgASgJQgngQQL6QQMKASpSCHJlc2' + '91cmNlEjkKB29wdGlvbnMYAiABKAsyHy5nb29nbGUuaWFtLnYxLkdldFBvbGljeU9wdGlvbnNS' + 'B29wdGlvbnM='); + @$core.Deprecated('Use testIamPermissionsRequestDescriptor instead') const TestIamPermissionsRequest$json = { '1': 'TestIamPermissionsRequest', @@ -60,7 +79,9 @@ const TestIamPermissionsRequest$json = { /// Descriptor for `TestIamPermissionsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List testIamPermissionsRequestDescriptor = $convert.base64Decode( - 'ChlUZXN0SWFtUGVybWlzc2lvbnNSZXF1ZXN0EiUKCHJlc291cmNlGAEgASgJQgngQQL6QQMKASpSCHJlc291cmNlEiUKC3Blcm1pc3Npb25zGAIgAygJQgPgQQJSC3Blcm1pc3Npb25z'); + 'ChlUZXN0SWFtUGVybWlzc2lvbnNSZXF1ZXN0EiUKCHJlc291cmNlGAEgASgJQgngQQL6QQMKAS' + 'pSCHJlc291cmNlEiUKC3Blcm1pc3Npb25zGAIgAygJQgPgQQJSC3Blcm1pc3Npb25z'); + @$core.Deprecated('Use testIamPermissionsResponseDescriptor instead') const TestIamPermissionsResponse$json = { '1': 'TestIamPermissionsResponse', @@ -72,4 +93,5 @@ const TestIamPermissionsResponse$json = { /// Descriptor for `TestIamPermissionsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List testIamPermissionsResponseDescriptor = $convert.base64Decode( - 'ChpUZXN0SWFtUGVybWlzc2lvbnNSZXNwb25zZRIgCgtwZXJtaXNzaW9ucxgBIAMoCVILcGVybWlzc2lvbnM='); + 'ChpUZXN0SWFtUGVybWlzc2lvbnNSZXNwb25zZRIgCgtwZXJtaXNzaW9ucxgBIAMoCVILcGVybW' + 'lzc2lvbnM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pb.dart index d3129ae3..01dea1ba 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pb.dart @@ -1,50 +1,50 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/logging/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 '../policy.pb.dart' as $0; +import '../policy.pb.dart' as $43; +/// Audit log information specific to Cloud IAM. This message is serialized +/// as an `Any` type in the `ServiceData` message of an +/// `AuditLog` message. class AuditData extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuditData', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1.logging'), - createEmptyInstance: create) - ..aOM<$0.PolicyDelta>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'policyDelta', - subBuilder: $0.PolicyDelta.create) - ..hasRequiredFields = false; - - AuditData._() : super(); factory AuditData({ - $0.PolicyDelta? policyDelta, + $43.PolicyDelta? policyDelta, }) { - final _result = create(); + final $result = create(); if (policyDelta != null) { - _result.policyDelta = policyDelta; + $result.policyDelta = policyDelta; } - return _result; + return $result; } + AuditData._() : super(); factory AuditData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuditData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuditData', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'google.iam.v1.logging'), + createEmptyInstance: create) + ..aOM<$43.PolicyDelta>(2, _omitFieldNames ? '' : 'policyDelta', + subBuilder: $43.PolicyDelta.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') @@ -53,9 +53,10 @@ class AuditData extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') AuditData copyWith(void Function(AuditData) updates) => - super.copyWith((message) => updates(message as AuditData)) - as AuditData; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as AuditData)) as AuditData; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuditData create() => AuditData._(); AuditData createEmptyInstance() => create(); @@ -65,10 +66,11 @@ class AuditData extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static AuditData? _defaultInstance; + /// Policy delta between the original policy and the newly set policy. @$pb.TagNumber(2) - $0.PolicyDelta get policyDelta => $_getN(0); + $43.PolicyDelta get policyDelta => $_getN(0); @$pb.TagNumber(2) - set policyDelta($0.PolicyDelta v) { + set policyDelta($43.PolicyDelta v) { setField(2, v); } @@ -77,5 +79,9 @@ class AuditData extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPolicyDelta() => clearField(2); @$pb.TagNumber(2) - $0.PolicyDelta ensurePolicyDelta() => $_ensure(0); + $43.PolicyDelta ensurePolicyDelta() => $_ensure(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pbenum.dart index 7b8e7cd8..57d293cb 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/logging/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pbjson.dart index e4a113c6..962307d5 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/logging/audit_data.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/logging/audit_data.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 auditDataDescriptor instead') @@ -26,4 +30,5 @@ const AuditData$json = { /// Descriptor for `AuditData`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List auditDataDescriptor = $convert.base64Decode( - 'CglBdWRpdERhdGESPQoMcG9saWN5X2RlbHRhGAIgASgLMhouZ29vZ2xlLmlhbS52MS5Qb2xpY3lEZWx0YVILcG9saWN5RGVsdGE='); + 'CglBdWRpdERhdGESPQoMcG9saWN5X2RlbHRhGAIgASgLMhouZ29vZ2xlLmlhbS52MS5Qb2xpY3' + 'lEZWx0YVILcG9saWN5RGVsdGE='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pb.dart index c8ade22a..09412686 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pb.dart @@ -1,48 +1,45 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/options.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Encapsulates settings provided to GetIamPolicy. class GetPolicyOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetPolicyOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requestedPolicyVersion', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - GetPolicyOptions._() : super(); factory GetPolicyOptions({ $core.int? requestedPolicyVersion, }) { - final _result = create(); + final $result = create(); if (requestedPolicyVersion != null) { - _result.requestedPolicyVersion = requestedPolicyVersion; + $result.requestedPolicyVersion = requestedPolicyVersion; } - return _result; + return $result; } + GetPolicyOptions._() : super(); factory GetPolicyOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetPolicyOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetPolicyOptions', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..a<$core.int>( + 1, _omitFieldNames ? '' : 'requestedPolicyVersion', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -52,8 +49,10 @@ class GetPolicyOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') GetPolicyOptions copyWith(void Function(GetPolicyOptions) updates) => super.copyWith((message) => updates(message as GetPolicyOptions)) - as GetPolicyOptions; // ignore: deprecated_member_use + as GetPolicyOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetPolicyOptions create() => GetPolicyOptions._(); GetPolicyOptions createEmptyInstance() => create(); @@ -64,6 +63,24 @@ class GetPolicyOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetPolicyOptions? _defaultInstance; + /// Optional. The maximum policy version that will be used to format the + /// policy. + /// + /// Valid values are 0, 1, and 3. Requests specifying an invalid value will be + /// rejected. + /// + /// Requests for policies with any conditional role bindings must specify + /// version 3. Policies with no conditional role bindings may specify any valid + /// value or leave the field unset. + /// + /// The policy in the response might use the policy version that you specified, + /// or it might use a lower policy version. For example, if you specify version + /// 3, but the policy has no conditional role bindings, the response uses + /// version 1. + /// + /// To learn which resources support conditions in their IAM policies, see the + /// [IAM + /// documentation](https://cloud.google.com/iam/help/conditions/resource-policies). @$pb.TagNumber(1) $core.int get requestedPolicyVersion => $_getIZ(0); @$pb.TagNumber(1) @@ -76,3 +93,7 @@ class GetPolicyOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearRequestedPolicyVersion() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pbenum.dart index 5727aaaa..4911d9af 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/options.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pbjson.dart index bce68e87..1074f501 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/options.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/options.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 getPolicyOptionsDescriptor instead') @@ -25,4 +29,5 @@ const GetPolicyOptions$json = { /// Descriptor for `GetPolicyOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getPolicyOptionsDescriptor = $convert.base64Decode( - 'ChBHZXRQb2xpY3lPcHRpb25zEjgKGHJlcXVlc3RlZF9wb2xpY3lfdmVyc2lvbhgBIAEoBVIWcmVxdWVzdGVkUG9saWN5VmVyc2lvbg=='); + 'ChBHZXRQb2xpY3lPcHRpb25zEjgKGHJlcXVlc3RlZF9wb2xpY3lfdmVyc2lvbhgBIAEoBVIWcm' + 'VxdWVzdGVkUG9saWN5VmVyc2lvbg=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pb.dart index edd19093..8d959485 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pb.dart @@ -1,72 +1,140 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/policy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 '../../type/expr.pb.dart' as $0; - +import '../../type/expr.pb.dart' as $114; import 'policy.pbenum.dart'; export 'policy.pbenum.dart'; +/// An Identity and Access Management (IAM) policy, which specifies access +/// controls for Google Cloud resources. +/// +/// +/// A `Policy` is a collection of `bindings`. A `binding` binds one or more +/// `members`, or principals, to a single `role`. Principals can be user +/// accounts, service accounts, Google groups, and domains (such as G Suite). A +/// `role` is a named list of permissions; each `role` can be an IAM predefined +/// role or a user-created custom role. +/// +/// For some types of Google Cloud resources, a `binding` can also specify a +/// `condition`, which is a logical expression that allows access to a resource +/// only if the expression evaluates to `true`. A condition can add constraints +/// based on attributes of the request, the resource, or both. To learn which +/// resources support conditions in their IAM policies, see the +/// [IAM +/// documentation](https://cloud.google.com/iam/help/conditions/resource-policies). +/// +/// **JSON example:** +/// +/// ``` +/// { +/// "bindings": [ +/// { +/// "role": "roles/resourcemanager.organizationAdmin", +/// "members": [ +/// "user:mike@example.com", +/// "group:admins@example.com", +/// "domain:google.com", +/// "serviceAccount:my-project-id@appspot.gserviceaccount.com" +/// ] +/// }, +/// { +/// "role": "roles/resourcemanager.organizationViewer", +/// "members": [ +/// "user:eve@example.com" +/// ], +/// "condition": { +/// "title": "expirable access", +/// "description": "Does not grant access after Sep 2020", +/// "expression": "request.time < +/// timestamp('2020-10-01T00:00:00.000Z')", +/// } +/// } +/// ], +/// "etag": "BwWWja0YfJA=", +/// "version": 3 +/// } +/// ``` +/// +/// **YAML example:** +/// +/// ``` +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-project-id@appspot.gserviceaccount.com +/// role: roles/resourcemanager.organizationAdmin +/// - members: +/// - user:eve@example.com +/// role: roles/resourcemanager.organizationViewer +/// condition: +/// title: expirable access +/// description: Does not grant access after Sep 2020 +/// expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +/// etag: BwWWja0YfJA= +/// version: 3 +/// ``` +/// +/// For a description of IAM and its features, see the +/// [IAM documentation](https://cloud.google.com/iam/docs/). class Policy extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Policy', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'version', - $pb.PbFieldType.O3) - ..a<$core.List<$core.int>>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'etag', - $pb.PbFieldType.OY) - ..pc( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bindings', - $pb.PbFieldType.PM, - subBuilder: Binding.create) - ..hasRequiredFields = false; - - Policy._() : super(); factory Policy({ $core.int? version, $core.List<$core.int>? etag, $core.Iterable? bindings, + $core.Iterable? auditConfigs, }) { - final _result = create(); + final $result = create(); if (version != null) { - _result.version = version; + $result.version = version; } if (etag != null) { - _result.etag = etag; + $result.etag = etag; } if (bindings != null) { - _result.bindings.addAll(bindings); + $result.bindings.addAll(bindings); + } + if (auditConfigs != null) { + $result.auditConfigs.addAll(auditConfigs); } - return _result; + return $result; } + Policy._() : super(); factory Policy.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Policy.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Policy', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'version', $pb.PbFieldType.O3) + ..a<$core.List<$core.int>>( + 3, _omitFieldNames ? '' : 'etag', $pb.PbFieldType.OY) + ..pc(4, _omitFieldNames ? '' : 'bindings', $pb.PbFieldType.PM, + subBuilder: Binding.create) + ..pc( + 6, _omitFieldNames ? '' : 'auditConfigs', $pb.PbFieldType.PM, + subBuilder: AuditConfig.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') @@ -75,9 +143,10 @@ class Policy extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Policy copyWith(void Function(Policy) updates) => - super.copyWith((message) => updates(message as Policy)) - as Policy; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Policy)) as Policy; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Policy create() => Policy._(); Policy createEmptyInstance() => create(); @@ -87,6 +156,31 @@ class Policy extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Policy? _defaultInstance; + /// Specifies the format of the policy. + /// + /// Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + /// are rejected. + /// + /// Any operation that affects conditional role bindings must specify version + /// `3`. This requirement applies to the following operations: + /// + /// * Getting a policy that includes a conditional role binding + /// * Adding a conditional role binding to a policy + /// * Changing a conditional role binding in a policy + /// * Removing any role binding, with or without a condition, from a policy + /// that includes conditions + /// + /// **Important:** If you use IAM Conditions, you must include the `etag` field + /// whenever you call `setIamPolicy`. If you omit this field, then IAM allows + /// you to overwrite a version `3` policy with a version `1` policy, and all of + /// the conditions in the version `3` policy are lost. + /// + /// If a policy does not include any conditions, operations on that policy may + /// specify any valid version or leave the field unset. + /// + /// To learn which resources support conditions in their IAM policies, see the + /// [IAM + /// documentation](https://cloud.google.com/iam/help/conditions/resource-policies). @$pb.TagNumber(1) $core.int get version => $_getIZ(0); @$pb.TagNumber(1) @@ -99,6 +193,18 @@ class Policy extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearVersion() => clearField(1); + /// `etag` is used for optimistic concurrency control as a way to help + /// prevent simultaneous updates of a policy from overwriting each other. + /// It is strongly suggested that systems make use of the `etag` in the + /// read-modify-write cycle to perform policy updates in order to avoid race + /// conditions: An `etag` is returned in the response to `getIamPolicy`, and + /// systems are expected to put that etag in the request to `setIamPolicy` to + /// ensure that their change will be applied to the same version of the policy. + /// + /// **Important:** If you use IAM Conditions, you must include the `etag` field + /// whenever you call `setIamPolicy`. If you omit this field, then IAM allows + /// you to overwrite a version `3` policy with a version `1` policy, and all of + /// the conditions in the version `3` policy are lost. @$pb.TagNumber(3) $core.List<$core.int> get etag => $_getN(1); @$pb.TagNumber(3) @@ -111,62 +217,61 @@ class Policy extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearEtag() => clearField(3); + /// Associates a list of `members`, or principals, with a `role`. Optionally, + /// may specify a `condition` that determines how and when the `bindings` are + /// applied. Each of the `bindings` must contain at least one principal. + /// + /// The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + /// of these principals can be Google groups. Each occurrence of a principal + /// counts towards these limits. For example, if the `bindings` grant 50 + /// different roles to `user:alice@example.com`, and not to any other + /// principal, then you can add another 1,450 principals to the `bindings` in + /// the `Policy`. @$pb.TagNumber(4) $core.List get bindings => $_getList(2); + + /// Specifies cloud audit logging configuration for this policy. + @$pb.TagNumber(6) + $core.List get auditConfigs => $_getList(3); } +/// Associates `members`, or principals, with a `role`. class Binding extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Binding', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'role') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'members') - ..aOM<$0.Expr>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'condition', - subBuilder: $0.Expr.create) - ..hasRequiredFields = false; - - Binding._() : super(); factory Binding({ $core.String? role, $core.Iterable<$core.String>? members, - $0.Expr? condition, + $114.Expr? condition, }) { - final _result = create(); + final $result = create(); if (role != null) { - _result.role = role; + $result.role = role; } if (members != null) { - _result.members.addAll(members); + $result.members.addAll(members); } if (condition != null) { - _result.condition = condition; + $result.condition = condition; } - return _result; + return $result; } + Binding._() : super(); factory Binding.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Binding.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Binding', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'role') + ..pPS(2, _omitFieldNames ? '' : 'members') + ..aOM<$114.Expr>(3, _omitFieldNames ? '' : 'condition', + subBuilder: $114.Expr.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') @@ -175,9 +280,10 @@ class Binding extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Binding copyWith(void Function(Binding) updates) => - super.copyWith((message) => updates(message as Binding)) - as Binding; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Binding)) as Binding; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Binding create() => Binding._(); Binding createEmptyInstance() => create(); @@ -187,6 +293,8 @@ class Binding extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Binding? _defaultInstance; + /// Role that is assigned to the list of `members`, or principals. + /// For example, `roles/viewer`, `roles/editor`, or `roles/owner`. @$pb.TagNumber(1) $core.String get role => $_getSZ(0); @$pb.TagNumber(1) @@ -199,13 +307,67 @@ class Binding extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearRole() => clearField(1); + /// Specifies the principals requesting access for a Google Cloud resource. + /// `members` can have the following values: + /// + /// * `allUsers`: A special identifier that represents anyone who is + /// on the internet; with or without a Google account. + /// + /// * `allAuthenticatedUsers`: A special identifier that represents anyone + /// who is authenticated with a Google account or a service account. + /// + /// * `user:{emailid}`: An email address that represents a specific Google + /// account. For example, `alice@example.com` . + /// + /// + /// * `serviceAccount:{emailid}`: An email address that represents a service + /// account. For example, `my-other-app@appspot.gserviceaccount.com`. + /// + /// * `group:{emailid}`: An email address that represents a Google group. + /// For example, `admins@example.com`. + /// + /// * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + /// identifier) representing a user that has been recently deleted. For + /// example, `alice@example.com?uid=123456789012345678901`. If the user is + /// recovered, this value reverts to `user:{emailid}` and the recovered user + /// retains the role in the binding. + /// + /// * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + /// unique identifier) representing a service account that has been recently + /// deleted. For example, + /// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + /// If the service account is undeleted, this value reverts to + /// `serviceAccount:{emailid}` and the undeleted service account retains the + /// role in the binding. + /// + /// * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + /// identifier) representing a Google group that has been recently + /// deleted. For example, `admins@example.com?uid=123456789012345678901`. If + /// the group is recovered, this value reverts to `group:{emailid}` and the + /// recovered group retains the role in the binding. + /// + /// + /// * `domain:{domain}`: The G Suite domain (primary) that represents all the + /// users of that domain. For example, `google.com` or `example.com`. @$pb.TagNumber(2) $core.List<$core.String> get members => $_getList(1); + /// The condition that is associated with this binding. + /// + /// If the condition evaluates to `true`, then this binding applies to the + /// current request. + /// + /// If the condition evaluates to `false`, then this binding does not apply to + /// the current request. However, a different role binding might grant the same + /// role to one or more of the principals in this binding. + /// + /// To learn which resources support conditions in their IAM policies, see the + /// [IAM + /// documentation](https://cloud.google.com/iam/help/conditions/resource-policies). @$pb.TagNumber(3) - $0.Expr get condition => $_getN(2); + $114.Expr get condition => $_getN(2); @$pb.TagNumber(3) - set condition($0.Expr v) { + set condition($114.Expr v) { setField(3, v); } @@ -214,51 +376,266 @@ class Binding extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearCondition() => clearField(3); @$pb.TagNumber(3) - $0.Expr ensureCondition() => $_ensure(2); + $114.Expr ensureCondition() => $_ensure(2); } -class PolicyDelta extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = - $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'PolicyDelta', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bindingDeltas', - $pb.PbFieldType.PM, - subBuilder: BindingDelta.create) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'auditConfigDeltas', - $pb.PbFieldType.PM, - subBuilder: AuditConfigDelta.create) - ..hasRequiredFields = false; +/// Specifies the audit configuration for a service. +/// The configuration determines which permission types are logged, and what +/// identities, if any, are exempted from logging. +/// An AuditConfig must have one or more AuditLogConfigs. +/// +/// If there are AuditConfigs for both `allServices` and a specific service, +/// the union of the two AuditConfigs is used for that service: the log_types +/// specified in each AuditConfig are enabled, and the exempted_members in each +/// AuditLogConfig are exempted. +/// +/// Example Policy with multiple AuditConfigs: +/// +/// { +/// "audit_configs": [ +/// { +/// "service": "allServices", +/// "audit_log_configs": [ +/// { +/// "log_type": "DATA_READ", +/// "exempted_members": [ +/// "user:jose@example.com" +/// ] +/// }, +/// { +/// "log_type": "DATA_WRITE" +/// }, +/// { +/// "log_type": "ADMIN_READ" +/// } +/// ] +/// }, +/// { +/// "service": "sampleservice.googleapis.com", +/// "audit_log_configs": [ +/// { +/// "log_type": "DATA_READ" +/// }, +/// { +/// "log_type": "DATA_WRITE", +/// "exempted_members": [ +/// "user:aliya@example.com" +/// ] +/// } +/// ] +/// } +/// ] +/// } +/// +/// For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +/// logging. It also exempts `jose@example.com` from DATA_READ logging, and +/// `aliya@example.com` from DATA_WRITE logging. +class AuditConfig extends $pb.GeneratedMessage { + factory AuditConfig({ + $core.String? service, + $core.Iterable? auditLogConfigs, + }) { + final $result = create(); + if (service != null) { + $result.service = service; + } + if (auditLogConfigs != null) { + $result.auditLogConfigs.addAll(auditLogConfigs); + } + return $result; + } + AuditConfig._() : super(); + factory AuditConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AuditConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); - PolicyDelta._() : super(); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuditConfig', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'service') + ..pc( + 3, _omitFieldNames ? '' : 'auditLogConfigs', $pb.PbFieldType.PM, + subBuilder: AuditLogConfig.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') + AuditConfig clone() => AuditConfig()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AuditConfig copyWith(void Function(AuditConfig) updates) => + super.copyWith((message) => updates(message as AuditConfig)) + as AuditConfig; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AuditConfig create() => AuditConfig._(); + AuditConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AuditConfig getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static AuditConfig? _defaultInstance; + + /// Specifies a service that will be enabled for audit logging. + /// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + /// `allServices` is a special value that covers all services. + @$pb.TagNumber(1) + $core.String get service => $_getSZ(0); + @$pb.TagNumber(1) + set service($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasService() => $_has(0); + @$pb.TagNumber(1) + void clearService() => clearField(1); + + /// The configuration for logging of each type of permission. + @$pb.TagNumber(3) + $core.List get auditLogConfigs => $_getList(1); +} + +/// Provides the configuration for logging a type of permissions. +/// Example: +/// +/// { +/// "audit_log_configs": [ +/// { +/// "log_type": "DATA_READ", +/// "exempted_members": [ +/// "user:jose@example.com" +/// ] +/// }, +/// { +/// "log_type": "DATA_WRITE" +/// } +/// ] +/// } +/// +/// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting +/// jose@example.com from DATA_READ logging. +class AuditLogConfig extends $pb.GeneratedMessage { + factory AuditLogConfig({ + AuditLogConfig_LogType? logType, + $core.Iterable<$core.String>? exemptedMembers, + }) { + final $result = create(); + if (logType != null) { + $result.logType = logType; + } + if (exemptedMembers != null) { + $result.exemptedMembers.addAll(exemptedMembers); + } + return $result; + } + AuditLogConfig._() : super(); + factory AuditLogConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory AuditLogConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuditLogConfig', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'logType', $pb.PbFieldType.OE, + defaultOrMaker: AuditLogConfig_LogType.LOG_TYPE_UNSPECIFIED, + valueOf: AuditLogConfig_LogType.valueOf, + enumValues: AuditLogConfig_LogType.values) + ..pPS(2, _omitFieldNames ? '' : 'exemptedMembers') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AuditLogConfig clone() => AuditLogConfig()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AuditLogConfig copyWith(void Function(AuditLogConfig) updates) => + super.copyWith((message) => updates(message as AuditLogConfig)) + as AuditLogConfig; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static AuditLogConfig create() => AuditLogConfig._(); + AuditLogConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static AuditLogConfig getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static AuditLogConfig? _defaultInstance; + + /// The log type that this config enables. + @$pb.TagNumber(1) + AuditLogConfig_LogType get logType => $_getN(0); + @$pb.TagNumber(1) + set logType(AuditLogConfig_LogType v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasLogType() => $_has(0); + @$pb.TagNumber(1) + void clearLogType() => clearField(1); + + /// Specifies the identities that do not cause logging for this type of + /// permission. + /// Follows the same format of + /// [Binding.members][google.iam.v1.Binding.members]. + @$pb.TagNumber(2) + $core.List<$core.String> get exemptedMembers => $_getList(1); +} + +/// The difference delta between two policies. +class PolicyDelta extends $pb.GeneratedMessage { factory PolicyDelta({ $core.Iterable? bindingDeltas, $core.Iterable? auditConfigDeltas, }) { - final _result = create(); + final $result = create(); if (bindingDeltas != null) { - _result.bindingDeltas.addAll(bindingDeltas); + $result.bindingDeltas.addAll(bindingDeltas); } if (auditConfigDeltas != null) { - _result.auditConfigDeltas.addAll(auditConfigDeltas); + $result.auditConfigDeltas.addAll(auditConfigDeltas); } - return _result; + return $result; } + PolicyDelta._() : super(); factory PolicyDelta.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PolicyDelta.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PolicyDelta', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'bindingDeltas', $pb.PbFieldType.PM, + subBuilder: BindingDelta.create) + ..pc( + 2, _omitFieldNames ? '' : 'auditConfigDeltas', $pb.PbFieldType.PM, + subBuilder: AuditConfigDelta.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') @@ -268,8 +645,10 @@ class PolicyDelta extends $pb.GeneratedMessage { 'Will be removed in next major version') PolicyDelta copyWith(void Function(PolicyDelta) updates) => super.copyWith((message) => updates(message as PolicyDelta)) - as PolicyDelta; // ignore: deprecated_member_use + as PolicyDelta; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static PolicyDelta create() => PolicyDelta._(); PolicyDelta createEmptyInstance() => create(); @@ -279,66 +658,62 @@ class PolicyDelta extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static PolicyDelta? _defaultInstance; + /// The delta for Bindings between two policies. @$pb.TagNumber(1) $core.List get bindingDeltas => $_getList(0); + /// The delta for AuditConfigs between two policies. @$pb.TagNumber(2) $core.List get auditConfigDeltas => $_getList(1); } +/// One delta entry for Binding. Each individual change (only one member in each +/// entry) to a binding will be a separate entry. class BindingDelta extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BindingDelta', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'action', - $pb.PbFieldType.OE, - defaultOrMaker: BindingDelta_Action.ACTION_UNSPECIFIED, - valueOf: BindingDelta_Action.valueOf, - enumValues: BindingDelta_Action.values) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'role') - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'member') - ..aOM<$0.Expr>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'condition', subBuilder: $0.Expr.create) - ..hasRequiredFields = false; - - BindingDelta._() : super(); factory BindingDelta({ BindingDelta_Action? action, $core.String? role, $core.String? member, - $0.Expr? condition, + $114.Expr? condition, }) { - final _result = create(); + final $result = create(); if (action != null) { - _result.action = action; + $result.action = action; } if (role != null) { - _result.role = role; + $result.role = role; } if (member != null) { - _result.member = member; + $result.member = member; } if (condition != null) { - _result.condition = condition; + $result.condition = condition; } - return _result; + return $result; } + BindingDelta._() : super(); factory BindingDelta.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BindingDelta.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BindingDelta', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'action', $pb.PbFieldType.OE, + defaultOrMaker: BindingDelta_Action.ACTION_UNSPECIFIED, + valueOf: BindingDelta_Action.valueOf, + enumValues: BindingDelta_Action.values) + ..aOS(2, _omitFieldNames ? '' : 'role') + ..aOS(3, _omitFieldNames ? '' : 'member') + ..aOM<$114.Expr>(4, _omitFieldNames ? '' : 'condition', + subBuilder: $114.Expr.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') @@ -348,8 +723,10 @@ class BindingDelta extends $pb.GeneratedMessage { 'Will be removed in next major version') BindingDelta copyWith(void Function(BindingDelta) updates) => super.copyWith((message) => updates(message as BindingDelta)) - as BindingDelta; // ignore: deprecated_member_use + as BindingDelta; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static BindingDelta create() => BindingDelta._(); BindingDelta createEmptyInstance() => create(); @@ -360,6 +737,8 @@ class BindingDelta extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static BindingDelta? _defaultInstance; + /// The action that was performed on a Binding. + /// Required @$pb.TagNumber(1) BindingDelta_Action get action => $_getN(0); @$pb.TagNumber(1) @@ -372,6 +751,9 @@ class BindingDelta extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearAction() => clearField(1); + /// Role that is assigned to `members`. + /// For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + /// Required @$pb.TagNumber(2) $core.String get role => $_getSZ(1); @$pb.TagNumber(2) @@ -384,6 +766,9 @@ class BindingDelta extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRole() => clearField(2); + /// A single identity requesting access for a Google Cloud resource. + /// Follows the same format of Binding.members. + /// Required @$pb.TagNumber(3) $core.String get member => $_getSZ(2); @$pb.TagNumber(3) @@ -396,10 +781,11 @@ class BindingDelta extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearMember() => clearField(3); + /// The condition that is associated with this binding. @$pb.TagNumber(4) - $0.Expr get condition => $_getN(3); + $114.Expr get condition => $_getN(3); @$pb.TagNumber(4) - set condition($0.Expr v) { + set condition($114.Expr v) { setField(4, v); } @@ -408,62 +794,55 @@ class BindingDelta extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearCondition() => clearField(4); @$pb.TagNumber(4) - $0.Expr ensureCondition() => $_ensure(3); + $114.Expr ensureCondition() => $_ensure(3); } +/// One delta entry for AuditConfig. Each individual change (only one +/// exempted_member in each entry) to a AuditConfig will be a separate entry. class AuditConfigDelta extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'AuditConfigDelta', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1'), - createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'action', - $pb.PbFieldType.OE, - defaultOrMaker: AuditConfigDelta_Action.ACTION_UNSPECIFIED, - valueOf: AuditConfigDelta_Action.valueOf, - enumValues: AuditConfigDelta_Action.values) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'service') - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'exemptedMember') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'logType') - ..hasRequiredFields = false; - - AuditConfigDelta._() : super(); factory AuditConfigDelta({ AuditConfigDelta_Action? action, $core.String? service, $core.String? exemptedMember, $core.String? logType, }) { - final _result = create(); + final $result = create(); if (action != null) { - _result.action = action; + $result.action = action; } if (service != null) { - _result.service = service; + $result.service = service; } if (exemptedMember != null) { - _result.exemptedMember = exemptedMember; + $result.exemptedMember = exemptedMember; } if (logType != null) { - _result.logType = logType; + $result.logType = logType; } - return _result; + return $result; } + AuditConfigDelta._() : super(); factory AuditConfigDelta.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory AuditConfigDelta.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'AuditConfigDelta', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'action', $pb.PbFieldType.OE, + defaultOrMaker: AuditConfigDelta_Action.ACTION_UNSPECIFIED, + valueOf: AuditConfigDelta_Action.valueOf, + enumValues: AuditConfigDelta_Action.values) + ..aOS(2, _omitFieldNames ? '' : 'service') + ..aOS(3, _omitFieldNames ? '' : 'exemptedMember') + ..aOS(4, _omitFieldNames ? '' : 'logType') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -473,8 +852,10 @@ class AuditConfigDelta extends $pb.GeneratedMessage { 'Will be removed in next major version') AuditConfigDelta copyWith(void Function(AuditConfigDelta) updates) => super.copyWith((message) => updates(message as AuditConfigDelta)) - as AuditConfigDelta; // ignore: deprecated_member_use + as AuditConfigDelta; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static AuditConfigDelta create() => AuditConfigDelta._(); AuditConfigDelta createEmptyInstance() => create(); @@ -485,6 +866,8 @@ class AuditConfigDelta extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static AuditConfigDelta? _defaultInstance; + /// The action that was performed on an audit configuration in a policy. + /// Required @$pb.TagNumber(1) AuditConfigDelta_Action get action => $_getN(0); @$pb.TagNumber(1) @@ -497,6 +880,10 @@ class AuditConfigDelta extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearAction() => clearField(1); + /// Specifies a service that was configured for Cloud Audit Logging. + /// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + /// `allServices` is a special value that covers all services. + /// Required @$pb.TagNumber(2) $core.String get service => $_getSZ(1); @$pb.TagNumber(2) @@ -509,6 +896,9 @@ class AuditConfigDelta extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearService() => clearField(2); + /// A single identity that is exempted from "data access" audit + /// logging for the `service` specified above. + /// Follows the same format of Binding.members. @$pb.TagNumber(3) $core.String get exemptedMember => $_getSZ(2); @$pb.TagNumber(3) @@ -521,6 +911,9 @@ class AuditConfigDelta extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearExemptedMember() => clearField(3); + /// Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + /// enabled, and cannot be configured. + /// Required @$pb.TagNumber(4) $core.String get logType => $_getSZ(3); @$pb.TagNumber(4) @@ -533,3 +926,7 @@ class AuditConfigDelta extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearLogType() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pbenum.dart index 5724796b..b14d0455 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pbenum.dart @@ -1,24 +1,53 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/policy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The list of valid permission types for which logging can be configured. +/// Admin writes are always logged, and are not configurable. +class AuditLogConfig_LogType extends $pb.ProtobufEnum { + static const AuditLogConfig_LogType LOG_TYPE_UNSPECIFIED = + AuditLogConfig_LogType._(0, _omitEnumNames ? '' : 'LOG_TYPE_UNSPECIFIED'); + static const AuditLogConfig_LogType ADMIN_READ = + AuditLogConfig_LogType._(1, _omitEnumNames ? '' : 'ADMIN_READ'); + static const AuditLogConfig_LogType DATA_WRITE = + AuditLogConfig_LogType._(2, _omitEnumNames ? '' : 'DATA_WRITE'); + static const AuditLogConfig_LogType DATA_READ = + AuditLogConfig_LogType._(3, _omitEnumNames ? '' : 'DATA_READ'); + + static const $core.List values = + [ + LOG_TYPE_UNSPECIFIED, + ADMIN_READ, + DATA_WRITE, + DATA_READ, + ]; + + static final $core.Map<$core.int, AuditLogConfig_LogType> _byValue = + $pb.ProtobufEnum.initByValue(values); + static AuditLogConfig_LogType? valueOf($core.int value) => _byValue[value]; + + const AuditLogConfig_LogType._($core.int v, $core.String n) : super(v, n); +} + +/// The type of action performed on a Binding in a policy. class BindingDelta_Action extends $pb.ProtobufEnum { - static const BindingDelta_Action ACTION_UNSPECIFIED = BindingDelta_Action._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ACTION_UNSPECIFIED'); - static const BindingDelta_Action ADD = BindingDelta_Action._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ADD'); - static const BindingDelta_Action REMOVE = BindingDelta_Action._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'REMOVE'); + static const BindingDelta_Action ACTION_UNSPECIFIED = + BindingDelta_Action._(0, _omitEnumNames ? '' : 'ACTION_UNSPECIFIED'); + static const BindingDelta_Action ADD = + BindingDelta_Action._(1, _omitEnumNames ? '' : 'ADD'); + static const BindingDelta_Action REMOVE = + BindingDelta_Action._(2, _omitEnumNames ? '' : 'REMOVE'); static const $core.List values = [ ACTION_UNSPECIFIED, @@ -33,17 +62,14 @@ class BindingDelta_Action extends $pb.ProtobufEnum { const BindingDelta_Action._($core.int v, $core.String n) : super(v, n); } +/// The type of action performed on an audit configuration in a policy. class AuditConfigDelta_Action extends $pb.ProtobufEnum { static const AuditConfigDelta_Action ACTION_UNSPECIFIED = - AuditConfigDelta_Action._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ACTION_UNSPECIFIED'); - static const AuditConfigDelta_Action ADD = AuditConfigDelta_Action._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ADD'); - static const AuditConfigDelta_Action REMOVE = AuditConfigDelta_Action._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'REMOVE'); + AuditConfigDelta_Action._(0, _omitEnumNames ? '' : 'ACTION_UNSPECIFIED'); + static const AuditConfigDelta_Action ADD = + AuditConfigDelta_Action._(1, _omitEnumNames ? '' : 'ADD'); + static const AuditConfigDelta_Action REMOVE = + AuditConfigDelta_Action._(2, _omitEnumNames ? '' : 'REMOVE'); static const $core.List values = [ @@ -58,3 +84,5 @@ class AuditConfigDelta_Action extends $pb.ProtobufEnum { const AuditConfigDelta_Action._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pbjson.dart index 028aa5cd..26105837 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1/policy.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1/policy.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 policyDescriptor instead') @@ -22,13 +26,25 @@ const Policy$json = { '6': '.google.iam.v1.Binding', '10': 'bindings' }, + { + '1': 'audit_configs', + '3': 6, + '4': 3, + '5': 11, + '6': '.google.iam.v1.AuditConfig', + '10': 'auditConfigs' + }, {'1': 'etag', '3': 3, '4': 1, '5': 12, '10': 'etag'}, ], }; /// Descriptor for `Policy`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List policyDescriptor = $convert.base64Decode( - 'CgZQb2xpY3kSGAoHdmVyc2lvbhgBIAEoBVIHdmVyc2lvbhIyCghiaW5kaW5ncxgEIAMoCzIWLmdvb2dsZS5pYW0udjEuQmluZGluZ1IIYmluZGluZ3MSEgoEZXRhZxgDIAEoDFIEZXRhZw=='); + 'CgZQb2xpY3kSGAoHdmVyc2lvbhgBIAEoBVIHdmVyc2lvbhIyCghiaW5kaW5ncxgEIAMoCzIWLm' + 'dvb2dsZS5pYW0udjEuQmluZGluZ1IIYmluZGluZ3MSPwoNYXVkaXRfY29uZmlncxgGIAMoCzIa' + 'Lmdvb2dsZS5pYW0udjEuQXVkaXRDb25maWdSDGF1ZGl0Q29uZmlncxISCgRldGFnGAMgASgMUg' + 'RldGFn'); + @$core.Deprecated('Use bindingDescriptor instead') const Binding$json = { '1': 'Binding', @@ -48,7 +64,66 @@ const Binding$json = { /// Descriptor for `Binding`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List bindingDescriptor = $convert.base64Decode( - 'CgdCaW5kaW5nEhIKBHJvbGUYASABKAlSBHJvbGUSGAoHbWVtYmVycxgCIAMoCVIHbWVtYmVycxIvCgljb25kaXRpb24YAyABKAsyES5nb29nbGUudHlwZS5FeHByUgljb25kaXRpb24='); + 'CgdCaW5kaW5nEhIKBHJvbGUYASABKAlSBHJvbGUSGAoHbWVtYmVycxgCIAMoCVIHbWVtYmVycx' + 'IvCgljb25kaXRpb24YAyABKAsyES5nb29nbGUudHlwZS5FeHByUgljb25kaXRpb24='); + +@$core.Deprecated('Use auditConfigDescriptor instead') +const AuditConfig$json = { + '1': 'AuditConfig', + '2': [ + {'1': 'service', '3': 1, '4': 1, '5': 9, '10': 'service'}, + { + '1': 'audit_log_configs', + '3': 3, + '4': 3, + '5': 11, + '6': '.google.iam.v1.AuditLogConfig', + '10': 'auditLogConfigs' + }, + ], +}; + +/// Descriptor for `AuditConfig`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List auditConfigDescriptor = $convert.base64Decode( + 'CgtBdWRpdENvbmZpZxIYCgdzZXJ2aWNlGAEgASgJUgdzZXJ2aWNlEkkKEWF1ZGl0X2xvZ19jb2' + '5maWdzGAMgAygLMh0uZ29vZ2xlLmlhbS52MS5BdWRpdExvZ0NvbmZpZ1IPYXVkaXRMb2dDb25m' + 'aWdz'); + +@$core.Deprecated('Use auditLogConfigDescriptor instead') +const AuditLogConfig$json = { + '1': 'AuditLogConfig', + '2': [ + { + '1': 'log_type', + '3': 1, + '4': 1, + '5': 14, + '6': '.google.iam.v1.AuditLogConfig.LogType', + '10': 'logType' + }, + {'1': 'exempted_members', '3': 2, '4': 3, '5': 9, '10': 'exemptedMembers'}, + ], + '4': [AuditLogConfig_LogType$json], +}; + +@$core.Deprecated('Use auditLogConfigDescriptor instead') +const AuditLogConfig_LogType$json = { + '1': 'LogType', + '2': [ + {'1': 'LOG_TYPE_UNSPECIFIED', '2': 0}, + {'1': 'ADMIN_READ', '2': 1}, + {'1': 'DATA_WRITE', '2': 2}, + {'1': 'DATA_READ', '2': 3}, + ], +}; + +/// Descriptor for `AuditLogConfig`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List auditLogConfigDescriptor = $convert.base64Decode( + 'Cg5BdWRpdExvZ0NvbmZpZxJACghsb2dfdHlwZRgBIAEoDjIlLmdvb2dsZS5pYW0udjEuQXVkaX' + 'RMb2dDb25maWcuTG9nVHlwZVIHbG9nVHlwZRIpChBleGVtcHRlZF9tZW1iZXJzGAIgAygJUg9l' + 'eGVtcHRlZE1lbWJlcnMiUgoHTG9nVHlwZRIYChRMT0dfVFlQRV9VTlNQRUNJRklFRBAAEg4KCk' + 'FETUlOX1JFQUQQARIOCgpEQVRBX1dSSVRFEAISDQoJREFUQV9SRUFEEAM='); + @$core.Deprecated('Use policyDeltaDescriptor instead') const PolicyDelta$json = { '1': 'PolicyDelta', @@ -74,7 +149,10 @@ const PolicyDelta$json = { /// Descriptor for `PolicyDelta`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List policyDeltaDescriptor = $convert.base64Decode( - 'CgtQb2xpY3lEZWx0YRJCCg5iaW5kaW5nX2RlbHRhcxgBIAMoCzIbLmdvb2dsZS5pYW0udjEuQmluZGluZ0RlbHRhUg1iaW5kaW5nRGVsdGFzEk8KE2F1ZGl0X2NvbmZpZ19kZWx0YXMYAiADKAsyHy5nb29nbGUuaWFtLnYxLkF1ZGl0Q29uZmlnRGVsdGFSEWF1ZGl0Q29uZmlnRGVsdGFz'); + 'CgtQb2xpY3lEZWx0YRJCCg5iaW5kaW5nX2RlbHRhcxgBIAMoCzIbLmdvb2dsZS5pYW0udjEuQm' + 'luZGluZ0RlbHRhUg1iaW5kaW5nRGVsdGFzEk8KE2F1ZGl0X2NvbmZpZ19kZWx0YXMYAiADKAsy' + 'Hy5nb29nbGUuaWFtLnYxLkF1ZGl0Q29uZmlnRGVsdGFSEWF1ZGl0Q29uZmlnRGVsdGFz'); + @$core.Deprecated('Use bindingDeltaDescriptor instead') const BindingDelta$json = { '1': 'BindingDelta', @@ -113,7 +191,11 @@ const BindingDelta_Action$json = { /// Descriptor for `BindingDelta`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List bindingDeltaDescriptor = $convert.base64Decode( - 'CgxCaW5kaW5nRGVsdGESOgoGYWN0aW9uGAEgASgOMiIuZ29vZ2xlLmlhbS52MS5CaW5kaW5nRGVsdGEuQWN0aW9uUgZhY3Rpb24SEgoEcm9sZRgCIAEoCVIEcm9sZRIWCgZtZW1iZXIYAyABKAlSBm1lbWJlchIvCgljb25kaXRpb24YBCABKAsyES5nb29nbGUudHlwZS5FeHByUgljb25kaXRpb24iNQoGQWN0aW9uEhYKEkFDVElPTl9VTlNQRUNJRklFRBAAEgcKA0FERBABEgoKBlJFTU9WRRAC'); + 'CgxCaW5kaW5nRGVsdGESOgoGYWN0aW9uGAEgASgOMiIuZ29vZ2xlLmlhbS52MS5CaW5kaW5nRG' + 'VsdGEuQWN0aW9uUgZhY3Rpb24SEgoEcm9sZRgCIAEoCVIEcm9sZRIWCgZtZW1iZXIYAyABKAlS' + 'Bm1lbWJlchIvCgljb25kaXRpb24YBCABKAsyES5nb29nbGUudHlwZS5FeHByUgljb25kaXRpb2' + '4iNQoGQWN0aW9uEhYKEkFDVElPTl9VTlNQRUNJRklFRBAAEgcKA0FERBABEgoKBlJFTU9WRRAC'); + @$core.Deprecated('Use auditConfigDeltaDescriptor instead') const AuditConfigDelta$json = { '1': 'AuditConfigDelta', @@ -145,4 +227,8 @@ const AuditConfigDelta_Action$json = { /// Descriptor for `AuditConfigDelta`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List auditConfigDeltaDescriptor = $convert.base64Decode( - 'ChBBdWRpdENvbmZpZ0RlbHRhEj4KBmFjdGlvbhgBIAEoDjImLmdvb2dsZS5pYW0udjEuQXVkaXRDb25maWdEZWx0YS5BY3Rpb25SBmFjdGlvbhIYCgdzZXJ2aWNlGAIgASgJUgdzZXJ2aWNlEicKD2V4ZW1wdGVkX21lbWJlchgDIAEoCVIOZXhlbXB0ZWRNZW1iZXISGQoIbG9nX3R5cGUYBCABKAlSB2xvZ1R5cGUiNQoGQWN0aW9uEhYKEkFDVElPTl9VTlNQRUNJRklFRBAAEgcKA0FERBABEgoKBlJFTU9WRRAC'); + 'ChBBdWRpdENvbmZpZ0RlbHRhEj4KBmFjdGlvbhgBIAEoDjImLmdvb2dsZS5pYW0udjEuQXVkaX' + 'RDb25maWdEZWx0YS5BY3Rpb25SBmFjdGlvbhIYCgdzZXJ2aWNlGAIgASgJUgdzZXJ2aWNlEicK' + 'D2V4ZW1wdGVkX21lbWJlchgDIAEoCVIOZXhlbXB0ZWRNZW1iZXISGQoIbG9nX3R5cGUYBCABKA' + 'lSB2xvZ1R5cGUiNQoGQWN0aW9uEhYKEkFDVElPTl9VTlNQRUNJRklFRBAAEgcKA0FERBABEgoK' + 'BlJFTU9WRRAC'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pb.dart index 3d9ecb1a..a259f4da 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pb.dart @@ -1,55 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1beta/workload_identity_pool.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/field_mask.pb.dart' as $3; - +import '../../protobuf/field_mask.pb.dart' as $58; import 'workload_identity_pool.pbenum.dart'; export 'workload_identity_pool.pbenum.dart'; +/// Represents a collection of external workload identities. You can define IAM +/// policies to grant these identities access to Google Cloud resources. class WorkloadIdentityPool extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'WorkloadIdentityPool', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'displayName') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', - $pb.PbFieldType.OE, - defaultOrMaker: WorkloadIdentityPool_State.STATE_UNSPECIFIED, - valueOf: WorkloadIdentityPool_State.valueOf, - enumValues: WorkloadIdentityPool_State.values) - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'disabled') - ..hasRequiredFields = false; - - WorkloadIdentityPool._() : super(); factory WorkloadIdentityPool({ $core.String? name, $core.String? displayName, @@ -57,30 +28,48 @@ class WorkloadIdentityPool extends $pb.GeneratedMessage { WorkloadIdentityPool_State? state, $core.bool? disabled, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (displayName != null) { - _result.displayName = displayName; + $result.displayName = displayName; } if (description != null) { - _result.description = description; + $result.description = description; } if (state != null) { - _result.state = state; + $result.state = state; } if (disabled != null) { - _result.disabled = disabled; + $result.disabled = disabled; } - return _result; + return $result; } + WorkloadIdentityPool._() : super(); factory WorkloadIdentityPool.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory WorkloadIdentityPool.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WorkloadIdentityPool', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'displayName') + ..aOS(3, _omitFieldNames ? '' : 'description') + ..e( + 4, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: WorkloadIdentityPool_State.STATE_UNSPECIFIED, + valueOf: WorkloadIdentityPool_State.valueOf, + enumValues: WorkloadIdentityPool_State.values) + ..aOB(5, _omitFieldNames ? '' : 'disabled') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -91,8 +80,10 @@ class WorkloadIdentityPool extends $pb.GeneratedMessage { 'Will be removed in next major version') WorkloadIdentityPool copyWith(void Function(WorkloadIdentityPool) updates) => super.copyWith((message) => updates(message as WorkloadIdentityPool)) - as WorkloadIdentityPool; // ignore: deprecated_member_use + as WorkloadIdentityPool; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static WorkloadIdentityPool create() => WorkloadIdentityPool._(); WorkloadIdentityPool createEmptyInstance() => create(); @@ -103,6 +94,7 @@ class WorkloadIdentityPool extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static WorkloadIdentityPool? _defaultInstance; + /// Output only. The resource name of the pool. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -115,6 +107,7 @@ class WorkloadIdentityPool extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A display name for the pool. Cannot exceed 32 characters. @$pb.TagNumber(2) $core.String get displayName => $_getSZ(1); @$pb.TagNumber(2) @@ -127,6 +120,7 @@ class WorkloadIdentityPool extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDisplayName() => clearField(2); + /// A description of the pool. Cannot exceed 256 characters. @$pb.TagNumber(3) $core.String get description => $_getSZ(2); @$pb.TagNumber(3) @@ -139,6 +133,7 @@ class WorkloadIdentityPool extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDescription() => clearField(3); + /// Output only. The state of the pool. @$pb.TagNumber(4) WorkloadIdentityPool_State get state => $_getN(3); @$pb.TagNumber(4) @@ -151,6 +146,9 @@ class WorkloadIdentityPool extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearState() => clearField(4); + /// Whether the pool is disabled. You cannot use a disabled pool to exchange + /// tokens, or use existing tokens to access resources. If + /// the pool is re-enabled, existing tokens grant access again. @$pb.TagNumber(5) $core.bool get disabled => $_getBF(4); @$pb.TagNumber(5) @@ -164,39 +162,33 @@ class WorkloadIdentityPool extends $pb.GeneratedMessage { void clearDisabled() => clearField(5); } +/// Represents an Amazon Web Services identity provider. class WorkloadIdentityPoolProvider_Aws extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'WorkloadIdentityPoolProvider.Aws', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'accountId') - ..hasRequiredFields = false; - - WorkloadIdentityPoolProvider_Aws._() : super(); factory WorkloadIdentityPoolProvider_Aws({ $core.String? accountId, }) { - final _result = create(); + final $result = create(); if (accountId != null) { - _result.accountId = accountId; + $result.accountId = accountId; } - return _result; + return $result; } + WorkloadIdentityPoolProvider_Aws._() : super(); factory WorkloadIdentityPoolProvider_Aws.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory WorkloadIdentityPoolProvider_Aws.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WorkloadIdentityPoolProvider.Aws', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'accountId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -209,8 +201,10 @@ class WorkloadIdentityPoolProvider_Aws extends $pb.GeneratedMessage { void Function(WorkloadIdentityPoolProvider_Aws) updates) => super.copyWith( (message) => updates(message as WorkloadIdentityPoolProvider_Aws)) - as WorkloadIdentityPoolProvider_Aws; // ignore: deprecated_member_use + as WorkloadIdentityPoolProvider_Aws; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static WorkloadIdentityPoolProvider_Aws create() => WorkloadIdentityPoolProvider_Aws._(); @@ -223,6 +217,7 @@ class WorkloadIdentityPoolProvider_Aws extends $pb.GeneratedMessage { create); static WorkloadIdentityPoolProvider_Aws? _defaultInstance; + /// Required. The AWS account ID. @$pb.TagNumber(1) $core.String get accountId => $_getSZ(0); @$pb.TagNumber(1) @@ -236,48 +231,38 @@ class WorkloadIdentityPoolProvider_Aws extends $pb.GeneratedMessage { void clearAccountId() => clearField(1); } +/// Represents an OpenId Connect 1.0 identity provider. class WorkloadIdentityPoolProvider_Oidc extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'WorkloadIdentityPoolProvider.Oidc', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'issuerUri') - ..pPS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allowedAudiences') - ..hasRequiredFields = false; - - WorkloadIdentityPoolProvider_Oidc._() : super(); factory WorkloadIdentityPoolProvider_Oidc({ $core.String? issuerUri, $core.Iterable<$core.String>? allowedAudiences, }) { - final _result = create(); + final $result = create(); if (issuerUri != null) { - _result.issuerUri = issuerUri; + $result.issuerUri = issuerUri; } if (allowedAudiences != null) { - _result.allowedAudiences.addAll(allowedAudiences); + $result.allowedAudiences.addAll(allowedAudiences); } - return _result; + return $result; } + WorkloadIdentityPoolProvider_Oidc._() : super(); factory WorkloadIdentityPoolProvider_Oidc.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory WorkloadIdentityPoolProvider_Oidc.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WorkloadIdentityPoolProvider.Oidc', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'issuerUri') + ..pPS(2, _omitFieldNames ? '' : 'allowedAudiences') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -290,8 +275,10 @@ class WorkloadIdentityPoolProvider_Oidc extends $pb.GeneratedMessage { void Function(WorkloadIdentityPoolProvider_Oidc) updates) => super.copyWith((message) => updates(message as WorkloadIdentityPoolProvider_Oidc)) - as WorkloadIdentityPoolProvider_Oidc; // ignore: deprecated_member_use + as WorkloadIdentityPoolProvider_Oidc; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static WorkloadIdentityPoolProvider_Oidc create() => WorkloadIdentityPoolProvider_Oidc._(); @@ -304,6 +291,7 @@ class WorkloadIdentityPoolProvider_Oidc extends $pb.GeneratedMessage { create); static WorkloadIdentityPoolProvider_Oidc? _defaultInstance; + /// Required. The OIDC issuer URL. @$pb.TagNumber(1) $core.String get issuerUri => $_getSZ(0); @$pb.TagNumber(1) @@ -316,58 +304,27 @@ class WorkloadIdentityPoolProvider_Oidc extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearIssuerUri() => clearField(1); + /// Acceptable values for the `aud` field (audience) in the OIDC token. Token + /// exchange requests are rejected if the token audience does not match one + /// of the configured values. Each audience may be at most 256 characters. A + /// maximum of 10 audiences may be configured. + /// + /// If this list is empty, the OIDC token audience must be equal to + /// the full canonical resource name of the WorkloadIdentityPoolProvider, + /// with or without the HTTPS prefix. For example: + /// + /// ``` + /// //iam.googleapis.com/projects//locations//workloadIdentityPools//providers/ + /// https://iam.googleapis.com/projects//locations//workloadIdentityPools//providers/ + /// ``` @$pb.TagNumber(2) $core.List<$core.String> get allowedAudiences => $_getList(1); } enum WorkloadIdentityPoolProvider_ProviderConfig { aws, oidc, notSet } +/// A configuration for an external identity provider. class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { - static const $core.Map<$core.int, WorkloadIdentityPoolProvider_ProviderConfig> - _WorkloadIdentityPoolProvider_ProviderConfigByTag = { - 8: WorkloadIdentityPoolProvider_ProviderConfig.aws, - 9: WorkloadIdentityPoolProvider_ProviderConfig.oidc, - 0: WorkloadIdentityPoolProvider_ProviderConfig.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'WorkloadIdentityPoolProvider', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..oo(0, [8, 9]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'displayName') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..e( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', - $pb.PbFieldType.OE, - defaultOrMaker: WorkloadIdentityPoolProvider_State.STATE_UNSPECIFIED, - valueOf: WorkloadIdentityPoolProvider_State.valueOf, - enumValues: WorkloadIdentityPoolProvider_State.values) - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'disabled') - ..m<$core.String, $core.String>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'attributeMapping', entryClassName: 'WorkloadIdentityPoolProvider.AttributeMappingEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.iam.v1beta')) - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'attributeCondition') - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'aws', subBuilder: WorkloadIdentityPoolProvider_Aws.create) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oidc', subBuilder: WorkloadIdentityPoolProvider_Oidc.create) - ..hasRequiredFields = false; - - WorkloadIdentityPoolProvider._() : super(); factory WorkloadIdentityPoolProvider({ $core.String? name, $core.String? displayName, @@ -379,42 +336,78 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { WorkloadIdentityPoolProvider_Aws? aws, WorkloadIdentityPoolProvider_Oidc? oidc, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (displayName != null) { - _result.displayName = displayName; + $result.displayName = displayName; } if (description != null) { - _result.description = description; + $result.description = description; } if (state != null) { - _result.state = state; + $result.state = state; } if (disabled != null) { - _result.disabled = disabled; + $result.disabled = disabled; } if (attributeMapping != null) { - _result.attributeMapping.addAll(attributeMapping); + $result.attributeMapping.addAll(attributeMapping); } if (attributeCondition != null) { - _result.attributeCondition = attributeCondition; + $result.attributeCondition = attributeCondition; } if (aws != null) { - _result.aws = aws; + $result.aws = aws; } if (oidc != null) { - _result.oidc = oidc; + $result.oidc = oidc; } - return _result; + return $result; } + WorkloadIdentityPoolProvider._() : super(); factory WorkloadIdentityPoolProvider.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory WorkloadIdentityPoolProvider.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, WorkloadIdentityPoolProvider_ProviderConfig> + _WorkloadIdentityPoolProvider_ProviderConfigByTag = { + 8: WorkloadIdentityPoolProvider_ProviderConfig.aws, + 9: WorkloadIdentityPoolProvider_ProviderConfig.oidc, + 0: WorkloadIdentityPoolProvider_ProviderConfig.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WorkloadIdentityPoolProvider', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..oo(0, [8, 9]) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'displayName') + ..aOS(3, _omitFieldNames ? '' : 'description') + ..e( + 4, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: WorkloadIdentityPoolProvider_State.STATE_UNSPECIFIED, + valueOf: WorkloadIdentityPoolProvider_State.valueOf, + enumValues: WorkloadIdentityPoolProvider_State.values) + ..aOB(5, _omitFieldNames ? '' : 'disabled') + ..m<$core.String, $core.String>( + 6, _omitFieldNames ? '' : 'attributeMapping', + entryClassName: 'WorkloadIdentityPoolProvider.AttributeMappingEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.iam.v1beta')) + ..aOS(7, _omitFieldNames ? '' : 'attributeCondition') + ..aOM(8, _omitFieldNames ? '' : 'aws', + subBuilder: WorkloadIdentityPoolProvider_Aws.create) + ..aOM(9, _omitFieldNames ? '' : 'oidc', + subBuilder: WorkloadIdentityPoolProvider_Oidc.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') @@ -427,8 +420,10 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { void Function(WorkloadIdentityPoolProvider) updates) => super.copyWith( (message) => updates(message as WorkloadIdentityPoolProvider)) - as WorkloadIdentityPoolProvider; // ignore: deprecated_member_use + as WorkloadIdentityPoolProvider; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static WorkloadIdentityPoolProvider create() => WorkloadIdentityPoolProvider._(); @@ -444,6 +439,7 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { _WorkloadIdentityPoolProvider_ProviderConfigByTag[$_whichOneof(0)]!; void clearProviderConfig() => clearField($_whichOneof(0)); + /// Output only. The resource name of the provider. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -456,6 +452,7 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A display name for the provider. Cannot exceed 32 characters. @$pb.TagNumber(2) $core.String get displayName => $_getSZ(1); @$pb.TagNumber(2) @@ -468,6 +465,7 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDisplayName() => clearField(2); + /// A description for the provider. Cannot exceed 256 characters. @$pb.TagNumber(3) $core.String get description => $_getSZ(2); @$pb.TagNumber(3) @@ -480,6 +478,7 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDescription() => clearField(3); + /// Output only. The state of the provider. @$pb.TagNumber(4) WorkloadIdentityPoolProvider_State get state => $_getN(3); @$pb.TagNumber(4) @@ -492,6 +491,8 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearState() => clearField(4); + /// Whether the provider is disabled. You cannot use a disabled provider to + /// exchange tokens. However, existing tokens still grant access. @$pb.TagNumber(5) $core.bool get disabled => $_getBF(4); @$pb.TagNumber(5) @@ -504,9 +505,114 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearDisabled() => clearField(5); + /// Maps attributes from authentication credentials issued by an external + /// identity provider to Google Cloud attributes, such as `subject` and + /// `segment`. + /// + /// Each key must be a string specifying the Google Cloud IAM attribute to + /// map to. + /// + /// The following keys are supported: + /// + /// * `google.subject`: The principal IAM is authenticating. You can reference + /// this value in IAM bindings. This is also the + /// subject that appears in Cloud Logging logs. + /// Cannot exceed 127 characters. + /// + /// * `google.groups`: Groups the external identity belongs to. You can grant + /// groups access to resources using an IAM `principalSet` + /// binding; access applies to all members of the group. + /// + /// You can also provide custom attributes by specifying + /// `attribute.{custom_attribute}`, where `{custom_attribute}` is the name of + /// the custom attribute to be mapped. You can define a maximum of 50 custom + /// attributes. The maximum length of a mapped attribute key is + /// 100 characters, and the key may only contain the characters [a-z0-9_]. + /// + /// You can reference these attributes in IAM policies to define fine-grained + /// access for a workload to Google Cloud resources. For example: + /// + /// * `google.subject`: + /// `principal://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/subject/{value}` + /// + /// * `google.groups`: + /// `principalSet://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/group/{value}` + /// + /// * `attribute.{custom_attribute}`: + /// `principalSet://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/attribute.{custom_attribute}/{value}` + /// + /// Each value must be a [Common Expression Language] + /// (https://opensource.google/projects/cel) function that maps an + /// identity provider credential to the normalized attribute specified by the + /// corresponding map key. + /// + /// You can use the `assertion` keyword in the expression to access a JSON + /// representation of the authentication credential issued by the provider. + /// + /// The maximum length of an attribute mapping expression is 2048 characters. + /// When evaluated, the total size of all mapped attributes must not exceed + /// 8KB. + /// + /// For AWS providers, the following rules apply: + /// + /// - If no attribute mapping is defined, the following default mapping + /// applies: + /// + /// ``` + /// { + /// "google.subject":"assertion.arn", + /// "attribute.aws_role": + /// "assertion.arn.contains('assumed-role')" + /// " ? assertion.arn.extract('{account_arn}assumed-role/')" + /// " + 'assumed-role/'" + /// " + assertion.arn.extract('assumed-role/{role_name}/')" + /// " : assertion.arn", + /// } + /// ``` + /// + /// - If any custom attribute mappings are defined, they must include a mapping + /// to the `google.subject` attribute. + /// + /// + /// For OIDC providers, the following rules apply: + /// + /// - Custom attribute mappings must be defined, and must include a mapping to + /// the `google.subject` attribute. For example, the following maps the + /// `sub` claim of the incoming credential to the `subject` attribute on + /// a Google token. + /// + /// ``` + /// {"google.subject": "assertion.sub"} + /// ``` @$pb.TagNumber(6) $core.Map<$core.String, $core.String> get attributeMapping => $_getMap(5); + /// [A Common Expression Language](https://opensource.google/projects/cel) + /// expression, in plain text, to restrict what otherwise valid authentication + /// credentials issued by the provider should not be accepted. + /// + /// The expression must output a boolean representing whether to allow the + /// federation. + /// + /// The following keywords may be referenced in the expressions: + /// + /// * `assertion`: JSON representing the authentication credential issued by + /// the provider. + /// * `google`: The Google attributes mapped from the assertion in the + /// `attribute_mappings`. + /// * `attribute`: The custom attributes mapped from the assertion in the + /// `attribute_mappings`. + /// + /// The maximum length of the attribute condition expression is 4096 + /// characters. If unspecified, all valid authentication credential are + /// accepted. + /// + /// The following example shows how to only allow credentials with a mapped + /// `google.groups` value of `admins`: + /// + /// ``` + /// "'admins' in google.groups" + /// ``` @$pb.TagNumber(7) $core.String get attributeCondition => $_getSZ(6); @$pb.TagNumber(7) @@ -519,6 +625,7 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearAttributeCondition() => clearField(7); + /// An Amazon Web Services identity provider. @$pb.TagNumber(8) WorkloadIdentityPoolProvider_Aws get aws => $_getN(7); @$pb.TagNumber(8) @@ -533,6 +640,7 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { @$pb.TagNumber(8) WorkloadIdentityPoolProvider_Aws ensureAws() => $_ensure(7); + /// An OpenId Connect 1.0 identity provider. @$pb.TagNumber(9) WorkloadIdentityPoolProvider_Oidc get oidc => $_getN(8); @$pb.TagNumber(9) @@ -548,63 +656,48 @@ class WorkloadIdentityPoolProvider extends $pb.GeneratedMessage { WorkloadIdentityPoolProvider_Oidc ensureOidc() => $_ensure(8); } +/// Request message for ListWorkloadIdentityPools. class ListWorkloadIdentityPoolsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListWorkloadIdentityPoolsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'showDeleted') - ..hasRequiredFields = false; - - ListWorkloadIdentityPoolsRequest._() : super(); factory ListWorkloadIdentityPoolsRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, $core.bool? showDeleted, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (showDeleted != null) { - _result.showDeleted = showDeleted; + $result.showDeleted = showDeleted; } - return _result; + return $result; } + ListWorkloadIdentityPoolsRequest._() : super(); factory ListWorkloadIdentityPoolsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListWorkloadIdentityPoolsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListWorkloadIdentityPoolsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..aOB(4, _omitFieldNames ? '' : 'showDeleted') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -617,8 +710,10 @@ class ListWorkloadIdentityPoolsRequest extends $pb.GeneratedMessage { void Function(ListWorkloadIdentityPoolsRequest) updates) => super.copyWith( (message) => updates(message as ListWorkloadIdentityPoolsRequest)) - as ListWorkloadIdentityPoolsRequest; // ignore: deprecated_member_use + as ListWorkloadIdentityPoolsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListWorkloadIdentityPoolsRequest create() => ListWorkloadIdentityPoolsRequest._(); @@ -631,6 +726,7 @@ class ListWorkloadIdentityPoolsRequest extends $pb.GeneratedMessage { create); static ListWorkloadIdentityPoolsRequest? _defaultInstance; + /// Required. The parent resource to list pools for. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -643,6 +739,9 @@ class ListWorkloadIdentityPoolsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// The maximum number of pools to return. + /// If unspecified, at most 50 pools are returned. + /// The maximum value is 1000; values above are 1000 truncated to 1000. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -655,6 +754,8 @@ class ListWorkloadIdentityPoolsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// A page token, received from a previous `ListWorkloadIdentityPools` + /// call. Provide this to retrieve the subsequent page. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -667,6 +768,7 @@ class ListWorkloadIdentityPoolsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// Whether to return soft-deleted pools. @$pb.TagNumber(4) $core.bool get showDeleted => $_getBF(3); @$pb.TagNumber(4) @@ -680,47 +782,40 @@ class ListWorkloadIdentityPoolsRequest extends $pb.GeneratedMessage { void clearShowDeleted() => clearField(4); } +/// Response message for ListWorkloadIdentityPools. class ListWorkloadIdentityPoolsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListWorkloadIdentityPoolsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'workloadIdentityPools', - $pb.PbFieldType.PM, - subBuilder: WorkloadIdentityPool.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListWorkloadIdentityPoolsResponse._() : super(); factory ListWorkloadIdentityPoolsResponse({ $core.Iterable? workloadIdentityPools, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (workloadIdentityPools != null) { - _result.workloadIdentityPools.addAll(workloadIdentityPools); + $result.workloadIdentityPools.addAll(workloadIdentityPools); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListWorkloadIdentityPoolsResponse._() : super(); factory ListWorkloadIdentityPoolsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListWorkloadIdentityPoolsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListWorkloadIdentityPoolsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'workloadIdentityPools', $pb.PbFieldType.PM, + subBuilder: WorkloadIdentityPool.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -733,8 +828,10 @@ class ListWorkloadIdentityPoolsResponse extends $pb.GeneratedMessage { void Function(ListWorkloadIdentityPoolsResponse) updates) => super.copyWith((message) => updates(message as ListWorkloadIdentityPoolsResponse)) - as ListWorkloadIdentityPoolsResponse; // ignore: deprecated_member_use + as ListWorkloadIdentityPoolsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListWorkloadIdentityPoolsResponse create() => ListWorkloadIdentityPoolsResponse._(); @@ -747,9 +844,12 @@ class ListWorkloadIdentityPoolsResponse extends $pb.GeneratedMessage { create); static ListWorkloadIdentityPoolsResponse? _defaultInstance; + /// A list of pools. @$pb.TagNumber(1) $core.List get workloadIdentityPools => $_getList(0); + /// A token, which can be sent as `page_token` to retrieve the next page. + /// If this field is omitted, there are no subsequent pages. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -763,39 +863,33 @@ class ListWorkloadIdentityPoolsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for GetWorkloadIdentityPool. class GetWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetWorkloadIdentityPoolRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetWorkloadIdentityPoolRequest._() : super(); factory GetWorkloadIdentityPoolRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetWorkloadIdentityPoolRequest._() : super(); factory GetWorkloadIdentityPoolRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetWorkloadIdentityPoolRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetWorkloadIdentityPoolRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -808,8 +902,10 @@ class GetWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { void Function(GetWorkloadIdentityPoolRequest) updates) => super.copyWith( (message) => updates(message as GetWorkloadIdentityPoolRequest)) - as GetWorkloadIdentityPoolRequest; // ignore: deprecated_member_use + as GetWorkloadIdentityPoolRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetWorkloadIdentityPoolRequest create() => GetWorkloadIdentityPoolRequest._(); @@ -821,6 +917,7 @@ class GetWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetWorkloadIdentityPoolRequest? _defaultInstance; + /// Required. The name of the pool to retrieve. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -834,55 +931,45 @@ class GetWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for CreateWorkloadIdentityPool. class CreateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateWorkloadIdentityPoolRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'workloadIdentityPool', - subBuilder: WorkloadIdentityPool.create) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'workloadIdentityPoolId') - ..hasRequiredFields = false; - - CreateWorkloadIdentityPoolRequest._() : super(); factory CreateWorkloadIdentityPoolRequest({ $core.String? parent, WorkloadIdentityPool? workloadIdentityPool, $core.String? workloadIdentityPoolId, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (workloadIdentityPool != null) { - _result.workloadIdentityPool = workloadIdentityPool; + $result.workloadIdentityPool = workloadIdentityPool; } if (workloadIdentityPoolId != null) { - _result.workloadIdentityPoolId = workloadIdentityPoolId; + $result.workloadIdentityPoolId = workloadIdentityPoolId; } - return _result; + return $result; } + CreateWorkloadIdentityPoolRequest._() : super(); factory CreateWorkloadIdentityPoolRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateWorkloadIdentityPoolRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateWorkloadIdentityPoolRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM( + 2, _omitFieldNames ? '' : 'workloadIdentityPool', + subBuilder: WorkloadIdentityPool.create) + ..aOS(3, _omitFieldNames ? '' : 'workloadIdentityPoolId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -895,8 +982,10 @@ class CreateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { void Function(CreateWorkloadIdentityPoolRequest) updates) => super.copyWith((message) => updates(message as CreateWorkloadIdentityPoolRequest)) - as CreateWorkloadIdentityPoolRequest; // ignore: deprecated_member_use + as CreateWorkloadIdentityPoolRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateWorkloadIdentityPoolRequest create() => CreateWorkloadIdentityPoolRequest._(); @@ -909,6 +998,8 @@ class CreateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { create); static CreateWorkloadIdentityPoolRequest? _defaultInstance; + /// Required. The parent resource to create the pool in. The only supported + /// location is `global`. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -921,6 +1012,7 @@ class CreateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Required. The pool to create. @$pb.TagNumber(2) WorkloadIdentityPool get workloadIdentityPool => $_getN(1); @$pb.TagNumber(2) @@ -935,6 +1027,10 @@ class CreateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) WorkloadIdentityPool ensureWorkloadIdentityPool() => $_ensure(1); + /// Required. The ID to use for the pool, which becomes the + /// final component of the resource name. This value should be 4-32 characters, + /// and may contain the characters [a-z0-9-]. The prefix `gcp-` is + /// reserved for use by Google, and may not be specified. @$pb.TagNumber(3) $core.String get workloadIdentityPoolId => $_getSZ(2); @$pb.TagNumber(3) @@ -948,47 +1044,41 @@ class CreateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { void clearWorkloadIdentityPoolId() => clearField(3); } +/// Request message for UpdateWorkloadIdentityPool. class UpdateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateWorkloadIdentityPoolRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'workloadIdentityPool', - subBuilder: WorkloadIdentityPool.create) - ..aOM<$3.FieldMask>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $3.FieldMask.create) - ..hasRequiredFields = false; - - UpdateWorkloadIdentityPoolRequest._() : super(); factory UpdateWorkloadIdentityPoolRequest({ WorkloadIdentityPool? workloadIdentityPool, - $3.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (workloadIdentityPool != null) { - _result.workloadIdentityPool = workloadIdentityPool; + $result.workloadIdentityPool = workloadIdentityPool; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateWorkloadIdentityPoolRequest._() : super(); factory UpdateWorkloadIdentityPoolRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateWorkloadIdentityPoolRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateWorkloadIdentityPoolRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOM( + 1, _omitFieldNames ? '' : 'workloadIdentityPool', + subBuilder: WorkloadIdentityPool.create) + ..aOM<$58.FieldMask>(2, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -1001,8 +1091,10 @@ class UpdateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { void Function(UpdateWorkloadIdentityPoolRequest) updates) => super.copyWith((message) => updates(message as UpdateWorkloadIdentityPoolRequest)) - as UpdateWorkloadIdentityPoolRequest; // ignore: deprecated_member_use + as UpdateWorkloadIdentityPoolRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateWorkloadIdentityPoolRequest create() => UpdateWorkloadIdentityPoolRequest._(); @@ -1015,6 +1107,7 @@ class UpdateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { create); static UpdateWorkloadIdentityPoolRequest? _defaultInstance; + /// Required. The pool to update. The `name` field is used to identify the pool. @$pb.TagNumber(1) WorkloadIdentityPool get workloadIdentityPool => $_getN(0); @$pb.TagNumber(1) @@ -1029,10 +1122,11 @@ class UpdateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) WorkloadIdentityPool ensureWorkloadIdentityPool() => $_ensure(0); + /// Required. The list of fields update. @$pb.TagNumber(2) - $3.FieldMask get updateMask => $_getN(1); + $58.FieldMask get updateMask => $_getN(1); @$pb.TagNumber(2) - set updateMask($3.FieldMask v) { + set updateMask($58.FieldMask v) { setField(2, v); } @@ -1041,42 +1135,36 @@ class UpdateWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearUpdateMask() => clearField(2); @$pb.TagNumber(2) - $3.FieldMask ensureUpdateMask() => $_ensure(1); + $58.FieldMask ensureUpdateMask() => $_ensure(1); } +/// Request message for DeleteWorkloadIdentityPool. class DeleteWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteWorkloadIdentityPoolRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteWorkloadIdentityPoolRequest._() : super(); factory DeleteWorkloadIdentityPoolRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteWorkloadIdentityPoolRequest._() : super(); factory DeleteWorkloadIdentityPoolRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteWorkloadIdentityPoolRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteWorkloadIdentityPoolRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1089,8 +1177,10 @@ class DeleteWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { void Function(DeleteWorkloadIdentityPoolRequest) updates) => super.copyWith((message) => updates(message as DeleteWorkloadIdentityPoolRequest)) - as DeleteWorkloadIdentityPoolRequest; // ignore: deprecated_member_use + as DeleteWorkloadIdentityPoolRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteWorkloadIdentityPoolRequest create() => DeleteWorkloadIdentityPoolRequest._(); @@ -1103,6 +1193,7 @@ class DeleteWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { create); static DeleteWorkloadIdentityPoolRequest? _defaultInstance; + /// Required. The name of the pool to delete. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1116,33 +1207,18 @@ class DeleteWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for UndeleteWorkloadIdentityPool. class UndeleteWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UndeleteWorkloadIdentityPoolRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - UndeleteWorkloadIdentityPoolRequest._() : super(); factory UndeleteWorkloadIdentityPoolRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + UndeleteWorkloadIdentityPoolRequest._() : super(); factory UndeleteWorkloadIdentityPoolRequest.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1150,6 +1226,15 @@ class UndeleteWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { factory UndeleteWorkloadIdentityPoolRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UndeleteWorkloadIdentityPoolRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1162,8 +1247,10 @@ class UndeleteWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { void Function(UndeleteWorkloadIdentityPoolRequest) updates) => super.copyWith((message) => updates(message as UndeleteWorkloadIdentityPoolRequest)) - as UndeleteWorkloadIdentityPoolRequest; // ignore: deprecated_member_use + as UndeleteWorkloadIdentityPoolRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UndeleteWorkloadIdentityPoolRequest create() => UndeleteWorkloadIdentityPoolRequest._(); @@ -1176,6 +1263,7 @@ class UndeleteWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { UndeleteWorkloadIdentityPoolRequest>(create); static UndeleteWorkloadIdentityPoolRequest? _defaultInstance; + /// Required. The name of the pool to undelete. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1189,57 +1277,30 @@ class UndeleteWorkloadIdentityPoolRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for ListWorkloadIdentityPoolProviders. class ListWorkloadIdentityPoolProvidersRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListWorkloadIdentityPoolProvidersRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'showDeleted') - ..hasRequiredFields = false; - - ListWorkloadIdentityPoolProvidersRequest._() : super(); factory ListWorkloadIdentityPoolProvidersRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, $core.bool? showDeleted, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (showDeleted != null) { - _result.showDeleted = showDeleted; + $result.showDeleted = showDeleted; } - return _result; + return $result; } + ListWorkloadIdentityPoolProvidersRequest._() : super(); factory ListWorkloadIdentityPoolProvidersRequest.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1247,6 +1308,18 @@ class ListWorkloadIdentityPoolProvidersRequest extends $pb.GeneratedMessage { factory ListWorkloadIdentityPoolProvidersRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListWorkloadIdentityPoolProvidersRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..aOB(4, _omitFieldNames ? '' : 'showDeleted') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1259,8 +1332,10 @@ class ListWorkloadIdentityPoolProvidersRequest extends $pb.GeneratedMessage { void Function(ListWorkloadIdentityPoolProvidersRequest) updates) => super.copyWith((message) => updates(message as ListWorkloadIdentityPoolProvidersRequest)) - as ListWorkloadIdentityPoolProvidersRequest; // ignore: deprecated_member_use + as ListWorkloadIdentityPoolProvidersRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListWorkloadIdentityPoolProvidersRequest create() => ListWorkloadIdentityPoolProvidersRequest._(); @@ -1274,6 +1349,7 @@ class ListWorkloadIdentityPoolProvidersRequest extends $pb.GeneratedMessage { ListWorkloadIdentityPoolProvidersRequest>(create); static ListWorkloadIdentityPoolProvidersRequest? _defaultInstance; + /// Required. The pool to list providers for. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1286,6 +1362,9 @@ class ListWorkloadIdentityPoolProvidersRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// The maximum number of providers to return. + /// If unspecified, at most 50 providers are returned. + /// The maximum value is 100; values above 100 are truncated to 100. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -1298,6 +1377,9 @@ class ListWorkloadIdentityPoolProvidersRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// A page token, received from a previous + /// `ListWorkloadIdentityPoolProviders` call. Provide this to retrieve the + /// subsequent page. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -1310,6 +1392,7 @@ class ListWorkloadIdentityPoolProvidersRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// Whether to return soft-deleted providers. @$pb.TagNumber(4) $core.bool get showDeleted => $_getBF(3); @$pb.TagNumber(4) @@ -1323,42 +1406,23 @@ class ListWorkloadIdentityPoolProvidersRequest extends $pb.GeneratedMessage { void clearShowDeleted() => clearField(4); } +/// Response message for ListWorkloadIdentityPoolProviders. class ListWorkloadIdentityPoolProvidersResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListWorkloadIdentityPoolProvidersResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'workloadIdentityPoolProviders', - $pb.PbFieldType.PM, - subBuilder: WorkloadIdentityPoolProvider.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListWorkloadIdentityPoolProvidersResponse._() : super(); factory ListWorkloadIdentityPoolProvidersResponse({ $core.Iterable? workloadIdentityPoolProviders, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (workloadIdentityPoolProviders != null) { - _result.workloadIdentityPoolProviders + $result.workloadIdentityPoolProviders .addAll(workloadIdentityPoolProviders); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListWorkloadIdentityPoolProvidersResponse._() : super(); factory ListWorkloadIdentityPoolProvidersResponse.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1366,6 +1430,20 @@ class ListWorkloadIdentityPoolProvidersResponse extends $pb.GeneratedMessage { factory ListWorkloadIdentityPoolProvidersResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListWorkloadIdentityPoolProvidersResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..pc( + 1, + _omitFieldNames ? '' : 'workloadIdentityPoolProviders', + $pb.PbFieldType.PM, + subBuilder: WorkloadIdentityPoolProvider.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1378,8 +1456,10 @@ class ListWorkloadIdentityPoolProvidersResponse extends $pb.GeneratedMessage { void Function(ListWorkloadIdentityPoolProvidersResponse) updates) => super.copyWith((message) => updates(message as ListWorkloadIdentityPoolProvidersResponse)) - as ListWorkloadIdentityPoolProvidersResponse; // ignore: deprecated_member_use + as ListWorkloadIdentityPoolProvidersResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListWorkloadIdentityPoolProvidersResponse create() => ListWorkloadIdentityPoolProvidersResponse._(); @@ -1393,10 +1473,13 @@ class ListWorkloadIdentityPoolProvidersResponse extends $pb.GeneratedMessage { ListWorkloadIdentityPoolProvidersResponse>(create); static ListWorkloadIdentityPoolProvidersResponse? _defaultInstance; + /// A list of providers. @$pb.TagNumber(1) $core.List get workloadIdentityPoolProviders => $_getList(0); + /// A token, which can be sent as `page_token` to retrieve the next page. + /// If this field is omitted, there are no subsequent pages. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1410,33 +1493,18 @@ class ListWorkloadIdentityPoolProvidersResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// Request message for GetWorkloadIdentityPoolProvider. class GetWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetWorkloadIdentityPoolProviderRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetWorkloadIdentityPoolProviderRequest._() : super(); factory GetWorkloadIdentityPoolProviderRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetWorkloadIdentityPoolProviderRequest._() : super(); factory GetWorkloadIdentityPoolProviderRequest.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1444,6 +1512,15 @@ class GetWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { factory GetWorkloadIdentityPoolProviderRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetWorkloadIdentityPoolProviderRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1456,8 +1533,10 @@ class GetWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { void Function(GetWorkloadIdentityPoolProviderRequest) updates) => super.copyWith((message) => updates(message as GetWorkloadIdentityPoolProviderRequest)) - as GetWorkloadIdentityPoolProviderRequest; // ignore: deprecated_member_use + as GetWorkloadIdentityPoolProviderRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetWorkloadIdentityPoolProviderRequest create() => GetWorkloadIdentityPoolProviderRequest._(); @@ -1470,6 +1549,7 @@ class GetWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { GetWorkloadIdentityPoolProviderRequest>(create); static GetWorkloadIdentityPoolProviderRequest? _defaultInstance; + /// Required. The name of the provider to retrieve. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1483,49 +1563,26 @@ class GetWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for CreateWorkloadIdentityPoolProvider. class CreateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateWorkloadIdentityPoolProviderRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'workloadIdentityPoolProvider', - subBuilder: WorkloadIdentityPoolProvider.create) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'workloadIdentityPoolProviderId') - ..hasRequiredFields = false; - - CreateWorkloadIdentityPoolProviderRequest._() : super(); factory CreateWorkloadIdentityPoolProviderRequest({ $core.String? parent, WorkloadIdentityPoolProvider? workloadIdentityPoolProvider, $core.String? workloadIdentityPoolProviderId, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (workloadIdentityPoolProvider != null) { - _result.workloadIdentityPoolProvider = workloadIdentityPoolProvider; + $result.workloadIdentityPoolProvider = workloadIdentityPoolProvider; } if (workloadIdentityPoolProviderId != null) { - _result.workloadIdentityPoolProviderId = workloadIdentityPoolProviderId; + $result.workloadIdentityPoolProviderId = workloadIdentityPoolProviderId; } - return _result; + return $result; } + CreateWorkloadIdentityPoolProviderRequest._() : super(); factory CreateWorkloadIdentityPoolProviderRequest.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1533,6 +1590,19 @@ class CreateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { factory CreateWorkloadIdentityPoolProviderRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateWorkloadIdentityPoolProviderRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM( + 2, _omitFieldNames ? '' : 'workloadIdentityPoolProvider', + subBuilder: WorkloadIdentityPoolProvider.create) + ..aOS(3, _omitFieldNames ? '' : 'workloadIdentityPoolProviderId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1545,8 +1615,10 @@ class CreateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { void Function(CreateWorkloadIdentityPoolProviderRequest) updates) => super.copyWith((message) => updates(message as CreateWorkloadIdentityPoolProviderRequest)) - as CreateWorkloadIdentityPoolProviderRequest; // ignore: deprecated_member_use + as CreateWorkloadIdentityPoolProviderRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateWorkloadIdentityPoolProviderRequest create() => CreateWorkloadIdentityPoolProviderRequest._(); @@ -1560,6 +1632,7 @@ class CreateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { CreateWorkloadIdentityPoolProviderRequest>(create); static CreateWorkloadIdentityPoolProviderRequest? _defaultInstance; + /// Required. The pool to create this provider in. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1572,6 +1645,7 @@ class CreateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Required. The provider to create. @$pb.TagNumber(2) WorkloadIdentityPoolProvider get workloadIdentityPoolProvider => $_getN(1); @$pb.TagNumber(2) @@ -1587,6 +1661,10 @@ class CreateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { WorkloadIdentityPoolProvider ensureWorkloadIdentityPoolProvider() => $_ensure(1); + /// Required. The ID for the provider, which becomes the + /// final component of the resource name. This value must be 4-32 characters, + /// and may contain the characters [a-z0-9-]. The prefix `gcp-` is + /// reserved for use by Google, and may not be specified. @$pb.TagNumber(3) $core.String get workloadIdentityPoolProviderId => $_getSZ(2); @$pb.TagNumber(3) @@ -1600,41 +1678,22 @@ class CreateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { void clearWorkloadIdentityPoolProviderId() => clearField(3); } +/// Request message for UpdateWorkloadIdentityPoolProvider. class UpdateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateWorkloadIdentityPoolProviderRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'workloadIdentityPoolProvider', - subBuilder: WorkloadIdentityPoolProvider.create) - ..aOM<$3.FieldMask>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $3.FieldMask.create) - ..hasRequiredFields = false; - - UpdateWorkloadIdentityPoolProviderRequest._() : super(); factory UpdateWorkloadIdentityPoolProviderRequest({ WorkloadIdentityPoolProvider? workloadIdentityPoolProvider, - $3.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (workloadIdentityPoolProvider != null) { - _result.workloadIdentityPoolProvider = workloadIdentityPoolProvider; + $result.workloadIdentityPoolProvider = workloadIdentityPoolProvider; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateWorkloadIdentityPoolProviderRequest._() : super(); factory UpdateWorkloadIdentityPoolProviderRequest.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1642,6 +1701,19 @@ class UpdateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { factory UpdateWorkloadIdentityPoolProviderRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateWorkloadIdentityPoolProviderRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOM( + 1, _omitFieldNames ? '' : 'workloadIdentityPoolProvider', + subBuilder: WorkloadIdentityPoolProvider.create) + ..aOM<$58.FieldMask>(2, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -1654,8 +1726,10 @@ class UpdateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { void Function(UpdateWorkloadIdentityPoolProviderRequest) updates) => super.copyWith((message) => updates(message as UpdateWorkloadIdentityPoolProviderRequest)) - as UpdateWorkloadIdentityPoolProviderRequest; // ignore: deprecated_member_use + as UpdateWorkloadIdentityPoolProviderRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateWorkloadIdentityPoolProviderRequest create() => UpdateWorkloadIdentityPoolProviderRequest._(); @@ -1669,6 +1743,7 @@ class UpdateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { UpdateWorkloadIdentityPoolProviderRequest>(create); static UpdateWorkloadIdentityPoolProviderRequest? _defaultInstance; + /// Required. The provider to update. @$pb.TagNumber(1) WorkloadIdentityPoolProvider get workloadIdentityPoolProvider => $_getN(0); @$pb.TagNumber(1) @@ -1684,10 +1759,11 @@ class UpdateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { WorkloadIdentityPoolProvider ensureWorkloadIdentityPoolProvider() => $_ensure(0); + /// Required. The list of fields to update. @$pb.TagNumber(2) - $3.FieldMask get updateMask => $_getN(1); + $58.FieldMask get updateMask => $_getN(1); @$pb.TagNumber(2) - set updateMask($3.FieldMask v) { + set updateMask($58.FieldMask v) { setField(2, v); } @@ -1696,36 +1772,21 @@ class UpdateWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearUpdateMask() => clearField(2); @$pb.TagNumber(2) - $3.FieldMask ensureUpdateMask() => $_ensure(1); + $58.FieldMask ensureUpdateMask() => $_ensure(1); } +/// Request message for DeleteWorkloadIdentityPoolProvider. class DeleteWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteWorkloadIdentityPoolProviderRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteWorkloadIdentityPoolProviderRequest._() : super(); factory DeleteWorkloadIdentityPoolProviderRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteWorkloadIdentityPoolProviderRequest._() : super(); factory DeleteWorkloadIdentityPoolProviderRequest.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1733,6 +1794,15 @@ class DeleteWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { factory DeleteWorkloadIdentityPoolProviderRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteWorkloadIdentityPoolProviderRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1745,8 +1815,10 @@ class DeleteWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { void Function(DeleteWorkloadIdentityPoolProviderRequest) updates) => super.copyWith((message) => updates(message as DeleteWorkloadIdentityPoolProviderRequest)) - as DeleteWorkloadIdentityPoolProviderRequest; // ignore: deprecated_member_use + as DeleteWorkloadIdentityPoolProviderRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteWorkloadIdentityPoolProviderRequest create() => DeleteWorkloadIdentityPoolProviderRequest._(); @@ -1760,6 +1832,7 @@ class DeleteWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { DeleteWorkloadIdentityPoolProviderRequest>(create); static DeleteWorkloadIdentityPoolProviderRequest? _defaultInstance; + /// Required. The name of the provider to delete. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1773,33 +1846,18 @@ class DeleteWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Request message for UndeleteWorkloadIdentityPoolProvider. class UndeleteWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UndeleteWorkloadIdentityPoolProviderRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - UndeleteWorkloadIdentityPoolProviderRequest._() : super(); factory UndeleteWorkloadIdentityPoolProviderRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + UndeleteWorkloadIdentityPoolProviderRequest._() : super(); factory UndeleteWorkloadIdentityPoolProviderRequest.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1807,6 +1865,15 @@ class UndeleteWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { factory UndeleteWorkloadIdentityPoolProviderRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UndeleteWorkloadIdentityPoolProviderRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1819,8 +1886,10 @@ class UndeleteWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { void Function(UndeleteWorkloadIdentityPoolProviderRequest) updates) => super.copyWith((message) => updates(message as UndeleteWorkloadIdentityPoolProviderRequest)) - as UndeleteWorkloadIdentityPoolProviderRequest; // ignore: deprecated_member_use + as UndeleteWorkloadIdentityPoolProviderRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UndeleteWorkloadIdentityPoolProviderRequest create() => UndeleteWorkloadIdentityPoolProviderRequest._(); @@ -1834,6 +1903,7 @@ class UndeleteWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { UndeleteWorkloadIdentityPoolProviderRequest>(create); static UndeleteWorkloadIdentityPoolProviderRequest? _defaultInstance; + /// Required. The name of the provider to undelete. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1847,20 +1917,10 @@ class UndeleteWorkloadIdentityPoolProviderRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// Metadata for long-running WorkloadIdentityPool operations. class WorkloadIdentityPoolOperationMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'WorkloadIdentityPoolOperationMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - WorkloadIdentityPoolOperationMetadata._() : super(); factory WorkloadIdentityPoolOperationMetadata() => create(); + WorkloadIdentityPoolOperationMetadata._() : super(); factory WorkloadIdentityPoolOperationMetadata.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1868,6 +1928,14 @@ class WorkloadIdentityPoolOperationMetadata extends $pb.GeneratedMessage { factory WorkloadIdentityPoolOperationMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WorkloadIdentityPoolOperationMetadata', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + 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') @@ -1880,8 +1948,10 @@ class WorkloadIdentityPoolOperationMetadata extends $pb.GeneratedMessage { void Function(WorkloadIdentityPoolOperationMetadata) updates) => super.copyWith((message) => updates(message as WorkloadIdentityPoolOperationMetadata)) - as WorkloadIdentityPoolOperationMetadata; // ignore: deprecated_member_use + as WorkloadIdentityPoolOperationMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static WorkloadIdentityPoolOperationMetadata create() => WorkloadIdentityPoolOperationMetadata._(); @@ -1895,21 +1965,11 @@ class WorkloadIdentityPoolOperationMetadata extends $pb.GeneratedMessage { static WorkloadIdentityPoolOperationMetadata? _defaultInstance; } +/// Metadata for long-running WorkloadIdentityPoolProvider operations. class WorkloadIdentityPoolProviderOperationMetadata extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'WorkloadIdentityPoolProviderOperationMetadata', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.iam.v1beta'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - WorkloadIdentityPoolProviderOperationMetadata._() : super(); factory WorkloadIdentityPoolProviderOperationMetadata() => create(); + WorkloadIdentityPoolProviderOperationMetadata._() : super(); factory WorkloadIdentityPoolProviderOperationMetadata.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1917,6 +1977,14 @@ class WorkloadIdentityPoolProviderOperationMetadata factory WorkloadIdentityPoolProviderOperationMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WorkloadIdentityPoolProviderOperationMetadata', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v1beta'), + 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') @@ -1930,8 +1998,10 @@ class WorkloadIdentityPoolProviderOperationMetadata updates) => super.copyWith((message) => updates(message as WorkloadIdentityPoolProviderOperationMetadata)) - as WorkloadIdentityPoolProviderOperationMetadata; // ignore: deprecated_member_use + as WorkloadIdentityPoolProviderOperationMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static WorkloadIdentityPoolProviderOperationMetadata create() => WorkloadIdentityPoolProviderOperationMetadata._(); @@ -1946,3 +2016,7 @@ class WorkloadIdentityPoolProviderOperationMetadata WorkloadIdentityPoolProviderOperationMetadata>(create); static WorkloadIdentityPoolProviderOperationMetadata? _defaultInstance; } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbenum.dart index a9a01dc0..91ad547e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbenum.dart @@ -1,30 +1,27 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1beta/workload_identity_pool.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The current state of the pool. class WorkloadIdentityPool_State extends $pb.ProtobufEnum { static const WorkloadIdentityPool_State STATE_UNSPECIFIED = WorkloadIdentityPool_State._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STATE_UNSPECIFIED'); - static const WorkloadIdentityPool_State ACTIVE = WorkloadIdentityPool_State._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ACTIVE'); + 0, _omitEnumNames ? '' : 'STATE_UNSPECIFIED'); + static const WorkloadIdentityPool_State ACTIVE = + WorkloadIdentityPool_State._(1, _omitEnumNames ? '' : 'ACTIVE'); static const WorkloadIdentityPool_State DELETED = - WorkloadIdentityPool_State._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DELETED'); + WorkloadIdentityPool_State._(2, _omitEnumNames ? '' : 'DELETED'); static const $core.List values = [ @@ -41,25 +38,15 @@ class WorkloadIdentityPool_State extends $pb.ProtobufEnum { const WorkloadIdentityPool_State._($core.int v, $core.String n) : super(v, n); } +/// The current state of the provider. class WorkloadIdentityPoolProvider_State extends $pb.ProtobufEnum { static const WorkloadIdentityPoolProvider_State STATE_UNSPECIFIED = WorkloadIdentityPoolProvider_State._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STATE_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'STATE_UNSPECIFIED'); static const WorkloadIdentityPoolProvider_State ACTIVE = - WorkloadIdentityPoolProvider_State._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ACTIVE'); + WorkloadIdentityPoolProvider_State._(1, _omitEnumNames ? '' : 'ACTIVE'); static const WorkloadIdentityPoolProvider_State DELETED = - WorkloadIdentityPoolProvider_State._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DELETED'); + WorkloadIdentityPoolProvider_State._(2, _omitEnumNames ? '' : 'DELETED'); static const $core.List values = [ @@ -76,3 +63,5 @@ class WorkloadIdentityPoolProvider_State extends $pb.ProtobufEnum { const WorkloadIdentityPoolProvider_State._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbgrpc.dart index 0d0439e5..188dbf1b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbgrpc.dart @@ -1,91 +1,101 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1beta/workload_identity_pool.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'workload_identity_pool.pb.dart' as $2; +import 'package:protobuf/protobuf.dart' as $pb; + import '../../longrunning/operations.pb.dart' as $0; +import 'workload_identity_pool.pb.dart' as $41; + export 'workload_identity_pool.pb.dart'; +@$pb.GrpcServiceName('google.iam.v1beta.WorkloadIdentityPools') class WorkloadIdentityPoolsClient extends $grpc.Client { static final _$listWorkloadIdentityPools = $grpc.ClientMethod< - $2.ListWorkloadIdentityPoolsRequest, - $2.ListWorkloadIdentityPoolsResponse>( + $41.ListWorkloadIdentityPoolsRequest, + $41.ListWorkloadIdentityPoolsResponse>( '/google.iam.v1beta.WorkloadIdentityPools/ListWorkloadIdentityPools', - ($2.ListWorkloadIdentityPoolsRequest value) => value.writeToBuffer(), + ($41.ListWorkloadIdentityPoolsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListWorkloadIdentityPoolsResponse.fromBuffer(value)); + $41.ListWorkloadIdentityPoolsResponse.fromBuffer(value)); static final _$getWorkloadIdentityPool = $grpc.ClientMethod< - $2.GetWorkloadIdentityPoolRequest, $2.WorkloadIdentityPool>( + $41.GetWorkloadIdentityPoolRequest, $41.WorkloadIdentityPool>( '/google.iam.v1beta.WorkloadIdentityPools/GetWorkloadIdentityPool', - ($2.GetWorkloadIdentityPoolRequest value) => value.writeToBuffer(), + ($41.GetWorkloadIdentityPoolRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.WorkloadIdentityPool.fromBuffer(value)); + $41.WorkloadIdentityPool.fromBuffer(value)); static final _$createWorkloadIdentityPool = - $grpc.ClientMethod<$2.CreateWorkloadIdentityPoolRequest, $0.Operation>( + $grpc.ClientMethod<$41.CreateWorkloadIdentityPoolRequest, $0.Operation>( '/google.iam.v1beta.WorkloadIdentityPools/CreateWorkloadIdentityPool', - ($2.CreateWorkloadIdentityPoolRequest value) => value.writeToBuffer(), + ($41.CreateWorkloadIdentityPoolRequest value) => + value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$updateWorkloadIdentityPool = - $grpc.ClientMethod<$2.UpdateWorkloadIdentityPoolRequest, $0.Operation>( + $grpc.ClientMethod<$41.UpdateWorkloadIdentityPoolRequest, $0.Operation>( '/google.iam.v1beta.WorkloadIdentityPools/UpdateWorkloadIdentityPool', - ($2.UpdateWorkloadIdentityPoolRequest value) => value.writeToBuffer(), + ($41.UpdateWorkloadIdentityPoolRequest value) => + value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$deleteWorkloadIdentityPool = - $grpc.ClientMethod<$2.DeleteWorkloadIdentityPoolRequest, $0.Operation>( + $grpc.ClientMethod<$41.DeleteWorkloadIdentityPoolRequest, $0.Operation>( '/google.iam.v1beta.WorkloadIdentityPools/DeleteWorkloadIdentityPool', - ($2.DeleteWorkloadIdentityPoolRequest value) => value.writeToBuffer(), + ($41.DeleteWorkloadIdentityPoolRequest value) => + value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$undeleteWorkloadIdentityPool = $grpc.ClientMethod< - $2.UndeleteWorkloadIdentityPoolRequest, $0.Operation>( + $41.UndeleteWorkloadIdentityPoolRequest, $0.Operation>( '/google.iam.v1beta.WorkloadIdentityPools/UndeleteWorkloadIdentityPool', - ($2.UndeleteWorkloadIdentityPoolRequest value) => value.writeToBuffer(), + ($41.UndeleteWorkloadIdentityPoolRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$listWorkloadIdentityPoolProviders = $grpc.ClientMethod< - $2.ListWorkloadIdentityPoolProvidersRequest, - $2.ListWorkloadIdentityPoolProvidersResponse>( + $41.ListWorkloadIdentityPoolProvidersRequest, + $41.ListWorkloadIdentityPoolProvidersResponse>( '/google.iam.v1beta.WorkloadIdentityPools/ListWorkloadIdentityPoolProviders', - ($2.ListWorkloadIdentityPoolProvidersRequest value) => + ($41.ListWorkloadIdentityPoolProvidersRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListWorkloadIdentityPoolProvidersResponse.fromBuffer(value)); + $41.ListWorkloadIdentityPoolProvidersResponse.fromBuffer(value)); static final _$getWorkloadIdentityPoolProvider = $grpc.ClientMethod< - $2.GetWorkloadIdentityPoolProviderRequest, - $2.WorkloadIdentityPoolProvider>( + $41.GetWorkloadIdentityPoolProviderRequest, + $41.WorkloadIdentityPoolProvider>( '/google.iam.v1beta.WorkloadIdentityPools/GetWorkloadIdentityPoolProvider', - ($2.GetWorkloadIdentityPoolProviderRequest value) => + ($41.GetWorkloadIdentityPoolProviderRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.WorkloadIdentityPoolProvider.fromBuffer(value)); + $41.WorkloadIdentityPoolProvider.fromBuffer(value)); static final _$createWorkloadIdentityPoolProvider = $grpc.ClientMethod< - $2.CreateWorkloadIdentityPoolProviderRequest, $0.Operation>( + $41.CreateWorkloadIdentityPoolProviderRequest, $0.Operation>( '/google.iam.v1beta.WorkloadIdentityPools/CreateWorkloadIdentityPoolProvider', - ($2.CreateWorkloadIdentityPoolProviderRequest value) => + ($41.CreateWorkloadIdentityPoolProviderRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$updateWorkloadIdentityPoolProvider = $grpc.ClientMethod< - $2.UpdateWorkloadIdentityPoolProviderRequest, $0.Operation>( + $41.UpdateWorkloadIdentityPoolProviderRequest, $0.Operation>( '/google.iam.v1beta.WorkloadIdentityPools/UpdateWorkloadIdentityPoolProvider', - ($2.UpdateWorkloadIdentityPoolProviderRequest value) => + ($41.UpdateWorkloadIdentityPoolProviderRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$deleteWorkloadIdentityPoolProvider = $grpc.ClientMethod< - $2.DeleteWorkloadIdentityPoolProviderRequest, $0.Operation>( + $41.DeleteWorkloadIdentityPoolProviderRequest, $0.Operation>( '/google.iam.v1beta.WorkloadIdentityPools/DeleteWorkloadIdentityPoolProvider', - ($2.DeleteWorkloadIdentityPoolProviderRequest value) => + ($41.DeleteWorkloadIdentityPoolProviderRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$undeleteWorkloadIdentityPoolProvider = $grpc.ClientMethod< - $2.UndeleteWorkloadIdentityPoolProviderRequest, $0.Operation>( + $41.UndeleteWorkloadIdentityPoolProviderRequest, $0.Operation>( '/google.iam.v1beta.WorkloadIdentityPools/UndeleteWorkloadIdentityPoolProvider', - ($2.UndeleteWorkloadIdentityPoolProviderRequest value) => + ($41.UndeleteWorkloadIdentityPoolProviderRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); @@ -94,316 +104,319 @@ class WorkloadIdentityPoolsClient extends $grpc.Client { $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.ListWorkloadIdentityPoolsResponse> - listWorkloadIdentityPools($2.ListWorkloadIdentityPoolsRequest request, + $grpc.ResponseFuture<$41.ListWorkloadIdentityPoolsResponse> + listWorkloadIdentityPools($41.ListWorkloadIdentityPoolsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listWorkloadIdentityPools, request, options: options); } - $grpc.ResponseFuture<$2.WorkloadIdentityPool> getWorkloadIdentityPool( - $2.GetWorkloadIdentityPoolRequest request, + $grpc.ResponseFuture<$41.WorkloadIdentityPool> getWorkloadIdentityPool( + $41.GetWorkloadIdentityPoolRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getWorkloadIdentityPool, request, options: options); } $grpc.ResponseFuture<$0.Operation> createWorkloadIdentityPool( - $2.CreateWorkloadIdentityPoolRequest request, + $41.CreateWorkloadIdentityPoolRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createWorkloadIdentityPool, request, options: options); } $grpc.ResponseFuture<$0.Operation> updateWorkloadIdentityPool( - $2.UpdateWorkloadIdentityPoolRequest request, + $41.UpdateWorkloadIdentityPoolRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateWorkloadIdentityPool, request, options: options); } $grpc.ResponseFuture<$0.Operation> deleteWorkloadIdentityPool( - $2.DeleteWorkloadIdentityPoolRequest request, + $41.DeleteWorkloadIdentityPoolRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteWorkloadIdentityPool, request, options: options); } $grpc.ResponseFuture<$0.Operation> undeleteWorkloadIdentityPool( - $2.UndeleteWorkloadIdentityPoolRequest request, + $41.UndeleteWorkloadIdentityPoolRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$undeleteWorkloadIdentityPool, request, options: options); } - $grpc.ResponseFuture<$2.ListWorkloadIdentityPoolProvidersResponse> + $grpc.ResponseFuture<$41.ListWorkloadIdentityPoolProvidersResponse> listWorkloadIdentityPoolProviders( - $2.ListWorkloadIdentityPoolProvidersRequest request, + $41.ListWorkloadIdentityPoolProvidersRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listWorkloadIdentityPoolProviders, request, options: options); } - $grpc.ResponseFuture<$2.WorkloadIdentityPoolProvider> + $grpc.ResponseFuture<$41.WorkloadIdentityPoolProvider> getWorkloadIdentityPoolProvider( - $2.GetWorkloadIdentityPoolProviderRequest request, + $41.GetWorkloadIdentityPoolProviderRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getWorkloadIdentityPoolProvider, request, options: options); } $grpc.ResponseFuture<$0.Operation> createWorkloadIdentityPoolProvider( - $2.CreateWorkloadIdentityPoolProviderRequest request, + $41.CreateWorkloadIdentityPoolProviderRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createWorkloadIdentityPoolProvider, request, options: options); } $grpc.ResponseFuture<$0.Operation> updateWorkloadIdentityPoolProvider( - $2.UpdateWorkloadIdentityPoolProviderRequest request, + $41.UpdateWorkloadIdentityPoolProviderRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateWorkloadIdentityPoolProvider, request, options: options); } $grpc.ResponseFuture<$0.Operation> deleteWorkloadIdentityPoolProvider( - $2.DeleteWorkloadIdentityPoolProviderRequest request, + $41.DeleteWorkloadIdentityPoolProviderRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteWorkloadIdentityPoolProvider, request, options: options); } $grpc.ResponseFuture<$0.Operation> undeleteWorkloadIdentityPoolProvider( - $2.UndeleteWorkloadIdentityPoolProviderRequest request, + $41.UndeleteWorkloadIdentityPoolProviderRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$undeleteWorkloadIdentityPoolProvider, request, options: options); } } +@$pb.GrpcServiceName('google.iam.v1beta.WorkloadIdentityPools') abstract class WorkloadIdentityPoolsServiceBase extends $grpc.Service { $core.String get $name => 'google.iam.v1beta.WorkloadIdentityPools'; WorkloadIdentityPoolsServiceBase() { - $addMethod($grpc.ServiceMethod<$2.ListWorkloadIdentityPoolsRequest, - $2.ListWorkloadIdentityPoolsResponse>( + $addMethod($grpc.ServiceMethod<$41.ListWorkloadIdentityPoolsRequest, + $41.ListWorkloadIdentityPoolsResponse>( 'ListWorkloadIdentityPools', listWorkloadIdentityPools_Pre, false, false, ($core.List<$core.int> value) => - $2.ListWorkloadIdentityPoolsRequest.fromBuffer(value), - ($2.ListWorkloadIdentityPoolsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetWorkloadIdentityPoolRequest, - $2.WorkloadIdentityPool>( + $41.ListWorkloadIdentityPoolsRequest.fromBuffer(value), + ($41.ListWorkloadIdentityPoolsResponse value) => + value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$41.GetWorkloadIdentityPoolRequest, + $41.WorkloadIdentityPool>( 'GetWorkloadIdentityPool', getWorkloadIdentityPool_Pre, false, false, ($core.List<$core.int> value) => - $2.GetWorkloadIdentityPoolRequest.fromBuffer(value), - ($2.WorkloadIdentityPool value) => value.writeToBuffer())); - $addMethod( - $grpc.ServiceMethod<$2.CreateWorkloadIdentityPoolRequest, $0.Operation>( - 'CreateWorkloadIdentityPool', - createWorkloadIdentityPool_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.CreateWorkloadIdentityPoolRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod( - $grpc.ServiceMethod<$2.UpdateWorkloadIdentityPoolRequest, $0.Operation>( - 'UpdateWorkloadIdentityPool', - updateWorkloadIdentityPool_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.UpdateWorkloadIdentityPoolRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod( - $grpc.ServiceMethod<$2.DeleteWorkloadIdentityPoolRequest, $0.Operation>( - 'DeleteWorkloadIdentityPool', - deleteWorkloadIdentityPool_Pre, - false, - false, - ($core.List<$core.int> value) => - $2.DeleteWorkloadIdentityPoolRequest.fromBuffer(value), - ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UndeleteWorkloadIdentityPoolRequest, + $41.GetWorkloadIdentityPoolRequest.fromBuffer(value), + ($41.WorkloadIdentityPool value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$41.CreateWorkloadIdentityPoolRequest, + $0.Operation>( + 'CreateWorkloadIdentityPool', + createWorkloadIdentityPool_Pre, + false, + false, + ($core.List<$core.int> value) => + $41.CreateWorkloadIdentityPoolRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$41.UpdateWorkloadIdentityPoolRequest, + $0.Operation>( + 'UpdateWorkloadIdentityPool', + updateWorkloadIdentityPool_Pre, + false, + false, + ($core.List<$core.int> value) => + $41.UpdateWorkloadIdentityPoolRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$41.DeleteWorkloadIdentityPoolRequest, + $0.Operation>( + 'DeleteWorkloadIdentityPool', + deleteWorkloadIdentityPool_Pre, + false, + false, + ($core.List<$core.int> value) => + $41.DeleteWorkloadIdentityPoolRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$41.UndeleteWorkloadIdentityPoolRequest, $0.Operation>( 'UndeleteWorkloadIdentityPool', undeleteWorkloadIdentityPool_Pre, false, false, ($core.List<$core.int> value) => - $2.UndeleteWorkloadIdentityPoolRequest.fromBuffer(value), + $41.UndeleteWorkloadIdentityPoolRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListWorkloadIdentityPoolProvidersRequest, - $2.ListWorkloadIdentityPoolProvidersResponse>( + $addMethod($grpc.ServiceMethod<$41.ListWorkloadIdentityPoolProvidersRequest, + $41.ListWorkloadIdentityPoolProvidersResponse>( 'ListWorkloadIdentityPoolProviders', listWorkloadIdentityPoolProviders_Pre, false, false, ($core.List<$core.int> value) => - $2.ListWorkloadIdentityPoolProvidersRequest.fromBuffer(value), - ($2.ListWorkloadIdentityPoolProvidersResponse value) => + $41.ListWorkloadIdentityPoolProvidersRequest.fromBuffer(value), + ($41.ListWorkloadIdentityPoolProvidersResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.GetWorkloadIdentityPoolProviderRequest, - $2.WorkloadIdentityPoolProvider>( + $addMethod($grpc.ServiceMethod<$41.GetWorkloadIdentityPoolProviderRequest, + $41.WorkloadIdentityPoolProvider>( 'GetWorkloadIdentityPoolProvider', getWorkloadIdentityPoolProvider_Pre, false, false, ($core.List<$core.int> value) => - $2.GetWorkloadIdentityPoolProviderRequest.fromBuffer(value), - ($2.WorkloadIdentityPoolProvider value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.CreateWorkloadIdentityPoolProviderRequest, - $0.Operation>( + $41.GetWorkloadIdentityPoolProviderRequest.fromBuffer(value), + ($41.WorkloadIdentityPoolProvider value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod< + $41.CreateWorkloadIdentityPoolProviderRequest, $0.Operation>( 'CreateWorkloadIdentityPoolProvider', createWorkloadIdentityPoolProvider_Pre, false, false, ($core.List<$core.int> value) => - $2.CreateWorkloadIdentityPoolProviderRequest.fromBuffer(value), + $41.CreateWorkloadIdentityPoolProviderRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.UpdateWorkloadIdentityPoolProviderRequest, - $0.Operation>( + $addMethod($grpc.ServiceMethod< + $41.UpdateWorkloadIdentityPoolProviderRequest, $0.Operation>( 'UpdateWorkloadIdentityPoolProvider', updateWorkloadIdentityPoolProvider_Pre, false, false, ($core.List<$core.int> value) => - $2.UpdateWorkloadIdentityPoolProviderRequest.fromBuffer(value), + $41.UpdateWorkloadIdentityPoolProviderRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.DeleteWorkloadIdentityPoolProviderRequest, - $0.Operation>( + $addMethod($grpc.ServiceMethod< + $41.DeleteWorkloadIdentityPoolProviderRequest, $0.Operation>( 'DeleteWorkloadIdentityPoolProvider', deleteWorkloadIdentityPoolProvider_Pre, false, false, ($core.List<$core.int> value) => - $2.DeleteWorkloadIdentityPoolProviderRequest.fromBuffer(value), + $41.DeleteWorkloadIdentityPoolProviderRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod< - $2.UndeleteWorkloadIdentityPoolProviderRequest, $0.Operation>( + $41.UndeleteWorkloadIdentityPoolProviderRequest, $0.Operation>( 'UndeleteWorkloadIdentityPoolProvider', undeleteWorkloadIdentityPoolProvider_Pre, false, false, ($core.List<$core.int> value) => - $2.UndeleteWorkloadIdentityPoolProviderRequest.fromBuffer(value), + $41.UndeleteWorkloadIdentityPoolProviderRequest.fromBuffer(value), ($0.Operation value) => value.writeToBuffer())); } - $async.Future<$2.ListWorkloadIdentityPoolsResponse> + $async.Future<$41.ListWorkloadIdentityPoolsResponse> listWorkloadIdentityPools_Pre($grpc.ServiceCall call, - $async.Future<$2.ListWorkloadIdentityPoolsRequest> request) async { + $async.Future<$41.ListWorkloadIdentityPoolsRequest> request) async { return listWorkloadIdentityPools(call, await request); } - $async.Future<$2.WorkloadIdentityPool> getWorkloadIdentityPool_Pre( + $async.Future<$41.WorkloadIdentityPool> getWorkloadIdentityPool_Pre( $grpc.ServiceCall call, - $async.Future<$2.GetWorkloadIdentityPoolRequest> request) async { + $async.Future<$41.GetWorkloadIdentityPoolRequest> request) async { return getWorkloadIdentityPool(call, await request); } $async.Future<$0.Operation> createWorkloadIdentityPool_Pre( $grpc.ServiceCall call, - $async.Future<$2.CreateWorkloadIdentityPoolRequest> request) async { + $async.Future<$41.CreateWorkloadIdentityPoolRequest> request) async { return createWorkloadIdentityPool(call, await request); } $async.Future<$0.Operation> updateWorkloadIdentityPool_Pre( $grpc.ServiceCall call, - $async.Future<$2.UpdateWorkloadIdentityPoolRequest> request) async { + $async.Future<$41.UpdateWorkloadIdentityPoolRequest> request) async { return updateWorkloadIdentityPool(call, await request); } $async.Future<$0.Operation> deleteWorkloadIdentityPool_Pre( $grpc.ServiceCall call, - $async.Future<$2.DeleteWorkloadIdentityPoolRequest> request) async { + $async.Future<$41.DeleteWorkloadIdentityPoolRequest> request) async { return deleteWorkloadIdentityPool(call, await request); } $async.Future<$0.Operation> undeleteWorkloadIdentityPool_Pre( $grpc.ServiceCall call, - $async.Future<$2.UndeleteWorkloadIdentityPoolRequest> request) async { + $async.Future<$41.UndeleteWorkloadIdentityPoolRequest> request) async { return undeleteWorkloadIdentityPool(call, await request); } - $async.Future<$2.ListWorkloadIdentityPoolProvidersResponse> + $async.Future<$41.ListWorkloadIdentityPoolProvidersResponse> listWorkloadIdentityPoolProviders_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListWorkloadIdentityPoolProvidersRequest> + $async.Future<$41.ListWorkloadIdentityPoolProvidersRequest> request) async { return listWorkloadIdentityPoolProviders(call, await request); } - $async.Future<$2.WorkloadIdentityPoolProvider> + $async.Future<$41.WorkloadIdentityPoolProvider> getWorkloadIdentityPoolProvider_Pre( $grpc.ServiceCall call, - $async.Future<$2.GetWorkloadIdentityPoolProviderRequest> + $async.Future<$41.GetWorkloadIdentityPoolProviderRequest> request) async { return getWorkloadIdentityPoolProvider(call, await request); } $async.Future<$0.Operation> createWorkloadIdentityPoolProvider_Pre( $grpc.ServiceCall call, - $async.Future<$2.CreateWorkloadIdentityPoolProviderRequest> + $async.Future<$41.CreateWorkloadIdentityPoolProviderRequest> request) async { return createWorkloadIdentityPoolProvider(call, await request); } $async.Future<$0.Operation> updateWorkloadIdentityPoolProvider_Pre( $grpc.ServiceCall call, - $async.Future<$2.UpdateWorkloadIdentityPoolProviderRequest> + $async.Future<$41.UpdateWorkloadIdentityPoolProviderRequest> request) async { return updateWorkloadIdentityPoolProvider(call, await request); } $async.Future<$0.Operation> deleteWorkloadIdentityPoolProvider_Pre( $grpc.ServiceCall call, - $async.Future<$2.DeleteWorkloadIdentityPoolProviderRequest> + $async.Future<$41.DeleteWorkloadIdentityPoolProviderRequest> request) async { return deleteWorkloadIdentityPoolProvider(call, await request); } $async.Future<$0.Operation> undeleteWorkloadIdentityPoolProvider_Pre( $grpc.ServiceCall call, - $async.Future<$2.UndeleteWorkloadIdentityPoolProviderRequest> + $async.Future<$41.UndeleteWorkloadIdentityPoolProviderRequest> request) async { return undeleteWorkloadIdentityPoolProvider(call, await request); } - $async.Future<$2.ListWorkloadIdentityPoolsResponse> listWorkloadIdentityPools( - $grpc.ServiceCall call, $2.ListWorkloadIdentityPoolsRequest request); - $async.Future<$2.WorkloadIdentityPool> getWorkloadIdentityPool( - $grpc.ServiceCall call, $2.GetWorkloadIdentityPoolRequest request); + $async.Future<$41.ListWorkloadIdentityPoolsResponse> + listWorkloadIdentityPools( + $grpc.ServiceCall call, $41.ListWorkloadIdentityPoolsRequest request); + $async.Future<$41.WorkloadIdentityPool> getWorkloadIdentityPool( + $grpc.ServiceCall call, $41.GetWorkloadIdentityPoolRequest request); $async.Future<$0.Operation> createWorkloadIdentityPool( - $grpc.ServiceCall call, $2.CreateWorkloadIdentityPoolRequest request); + $grpc.ServiceCall call, $41.CreateWorkloadIdentityPoolRequest request); $async.Future<$0.Operation> updateWorkloadIdentityPool( - $grpc.ServiceCall call, $2.UpdateWorkloadIdentityPoolRequest request); + $grpc.ServiceCall call, $41.UpdateWorkloadIdentityPoolRequest request); $async.Future<$0.Operation> deleteWorkloadIdentityPool( - $grpc.ServiceCall call, $2.DeleteWorkloadIdentityPoolRequest request); + $grpc.ServiceCall call, $41.DeleteWorkloadIdentityPoolRequest request); $async.Future<$0.Operation> undeleteWorkloadIdentityPool( - $grpc.ServiceCall call, $2.UndeleteWorkloadIdentityPoolRequest request); - $async.Future<$2.ListWorkloadIdentityPoolProvidersResponse> + $grpc.ServiceCall call, $41.UndeleteWorkloadIdentityPoolRequest request); + $async.Future<$41.ListWorkloadIdentityPoolProvidersResponse> listWorkloadIdentityPoolProviders($grpc.ServiceCall call, - $2.ListWorkloadIdentityPoolProvidersRequest request); - $async.Future<$2.WorkloadIdentityPoolProvider> + $41.ListWorkloadIdentityPoolProvidersRequest request); + $async.Future<$41.WorkloadIdentityPoolProvider> getWorkloadIdentityPoolProvider($grpc.ServiceCall call, - $2.GetWorkloadIdentityPoolProviderRequest request); + $41.GetWorkloadIdentityPoolProviderRequest request); $async.Future<$0.Operation> createWorkloadIdentityPoolProvider( $grpc.ServiceCall call, - $2.CreateWorkloadIdentityPoolProviderRequest request); + $41.CreateWorkloadIdentityPoolProviderRequest request); $async.Future<$0.Operation> updateWorkloadIdentityPoolProvider( $grpc.ServiceCall call, - $2.UpdateWorkloadIdentityPoolProviderRequest request); + $41.UpdateWorkloadIdentityPoolProviderRequest request); $async.Future<$0.Operation> deleteWorkloadIdentityPoolProvider( $grpc.ServiceCall call, - $2.DeleteWorkloadIdentityPoolProviderRequest request); + $41.DeleteWorkloadIdentityPoolProviderRequest request); $async.Future<$0.Operation> undeleteWorkloadIdentityPoolProvider( $grpc.ServiceCall call, - $2.UndeleteWorkloadIdentityPoolProviderRequest request); + $41.UndeleteWorkloadIdentityPoolProviderRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbjson.dart index 26fb02b3..5538340b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v1beta/workload_identity_pool.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/iam/v1beta/workload_identity_pool.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 workloadIdentityPoolDescriptor instead') @@ -43,7 +47,15 @@ const WorkloadIdentityPool_State$json = { /// Descriptor for `WorkloadIdentityPool`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List workloadIdentityPoolDescriptor = $convert.base64Decode( - 'ChRXb3JrbG9hZElkZW50aXR5UG9vbBIXCgRuYW1lGAEgASgJQgPgQQNSBG5hbWUSIQoMZGlzcGxheV9uYW1lGAIgASgJUgtkaXNwbGF5TmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRpb24SSAoFc3RhdGUYBCABKA4yLS5nb29nbGUuaWFtLnYxYmV0YS5Xb3JrbG9hZElkZW50aXR5UG9vbC5TdGF0ZUID4EEDUgVzdGF0ZRIaCghkaXNhYmxlZBgFIAEoCFIIZGlzYWJsZWQiNwoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABIKCgZBQ1RJVkUQARILCgdERUxFVEVEEAI6hQHqQYEBCidpYW0uZ29vZ2xlYXBpcy5jb20vV29ya2xvYWRJZGVudGl0eVBvb2wSVnByb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS93b3JrbG9hZElkZW50aXR5UG9vbHMve3dvcmtsb2FkX2lkZW50aXR5X3Bvb2x9'); + 'ChRXb3JrbG9hZElkZW50aXR5UG9vbBIXCgRuYW1lGAEgASgJQgPgQQNSBG5hbWUSIQoMZGlzcG' + 'xheV9uYW1lGAIgASgJUgtkaXNwbGF5TmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3Jp' + 'cHRpb24SSAoFc3RhdGUYBCABKA4yLS5nb29nbGUuaWFtLnYxYmV0YS5Xb3JrbG9hZElkZW50aX' + 'R5UG9vbC5TdGF0ZUID4EEDUgVzdGF0ZRIaCghkaXNhYmxlZBgFIAEoCFIIZGlzYWJsZWQiNwoF' + 'U3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABIKCgZBQ1RJVkUQARILCgdERUxFVEVEEAI6hQ' + 'HqQYEBCidpYW0uZ29vZ2xlYXBpcy5jb20vV29ya2xvYWRJZGVudGl0eVBvb2wSVnByb2plY3Rz' + 'L3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS93b3JrbG9hZElkZW50aXR5UG9vbHMve3' + 'dvcmtsb2FkX2lkZW50aXR5X3Bvb2x9'); + @$core.Deprecated('Use workloadIdentityPoolProviderDescriptor instead') const WorkloadIdentityPoolProvider$json = { '1': 'WorkloadIdentityPoolProvider', @@ -152,9 +164,27 @@ const WorkloadIdentityPoolProvider_State$json = { }; /// Descriptor for `WorkloadIdentityPoolProvider`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List workloadIdentityPoolProviderDescriptor = - $convert.base64Decode( - 'ChxXb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyEhcKBG5hbWUYASABKAlCA+BBA1IEbmFtZRIhCgxkaXNwbGF5X25hbWUYAiABKAlSC2Rpc3BsYXlOYW1lEiAKC2Rlc2NyaXB0aW9uGAMgASgJUgtkZXNjcmlwdGlvbhJQCgVzdGF0ZRgEIAEoDjI1Lmdvb2dsZS5pYW0udjFiZXRhLldvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXIuU3RhdGVCA+BBA1IFc3RhdGUSGgoIZGlzYWJsZWQYBSABKAhSCGRpc2FibGVkEnIKEWF0dHJpYnV0ZV9tYXBwaW5nGAYgAygLMkUuZ29vZ2xlLmlhbS52MWJldGEuV29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlci5BdHRyaWJ1dGVNYXBwaW5nRW50cnlSEGF0dHJpYnV0ZU1hcHBpbmcSLwoTYXR0cmlidXRlX2NvbmRpdGlvbhgHIAEoCVISYXR0cmlidXRlQ29uZGl0aW9uEkcKA2F3cxgIIAEoCzIzLmdvb2dsZS5pYW0udjFiZXRhLldvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXIuQXdzSABSA2F3cxJKCgRvaWRjGAkgASgLMjQuZ29vZ2xlLmlhbS52MWJldGEuV29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlci5PaWRjSABSBG9pZGMaKQoDQXdzEiIKCmFjY291bnRfaWQYASABKAlCA+BBAlIJYWNjb3VudElkGlcKBE9pZGMSIgoKaXNzdWVyX3VyaRgBIAEoCUID4EECUglpc3N1ZXJVcmkSKwoRYWxsb3dlZF9hdWRpZW5jZXMYAiADKAlSEGFsbG93ZWRBdWRpZW5jZXMaQwoVQXR0cmlidXRlTWFwcGluZ0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAEiNwoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABIKCgZBQ1RJVkUQARILCgdERUxFVEVEEAI6ugHqQbYBCi9pYW0uZ29vZ2xlYXBpcy5jb20vV29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlchKCAXByb2plY3RzL3twcm9qZWN0fS9sb2NhdGlvbnMve2xvY2F0aW9ufS93b3JrbG9hZElkZW50aXR5UG9vbHMve3dvcmtsb2FkX2lkZW50aXR5X3Bvb2x9L3Byb3ZpZGVycy97d29ya2xvYWRfaWRlbnRpdHlfcG9vbF9wcm92aWRlcn1CEQoPcHJvdmlkZXJfY29uZmln'); +final $typed_data.Uint8List workloadIdentityPoolProviderDescriptor = $convert.base64Decode( + 'ChxXb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyEhcKBG5hbWUYASABKAlCA+BBA1IEbmFtZR' + 'IhCgxkaXNwbGF5X25hbWUYAiABKAlSC2Rpc3BsYXlOYW1lEiAKC2Rlc2NyaXB0aW9uGAMgASgJ' + 'UgtkZXNjcmlwdGlvbhJQCgVzdGF0ZRgEIAEoDjI1Lmdvb2dsZS5pYW0udjFiZXRhLldvcmtsb2' + 'FkSWRlbnRpdHlQb29sUHJvdmlkZXIuU3RhdGVCA+BBA1IFc3RhdGUSGgoIZGlzYWJsZWQYBSAB' + 'KAhSCGRpc2FibGVkEnIKEWF0dHJpYnV0ZV9tYXBwaW5nGAYgAygLMkUuZ29vZ2xlLmlhbS52MW' + 'JldGEuV29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlci5BdHRyaWJ1dGVNYXBwaW5nRW50cnlS' + 'EGF0dHJpYnV0ZU1hcHBpbmcSLwoTYXR0cmlidXRlX2NvbmRpdGlvbhgHIAEoCVISYXR0cmlidX' + 'RlQ29uZGl0aW9uEkcKA2F3cxgIIAEoCzIzLmdvb2dsZS5pYW0udjFiZXRhLldvcmtsb2FkSWRl' + 'bnRpdHlQb29sUHJvdmlkZXIuQXdzSABSA2F3cxJKCgRvaWRjGAkgASgLMjQuZ29vZ2xlLmlhbS' + '52MWJldGEuV29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlci5PaWRjSABSBG9pZGMaKQoDQXdz' + 'EiIKCmFjY291bnRfaWQYASABKAlCA+BBAlIJYWNjb3VudElkGlcKBE9pZGMSIgoKaXNzdWVyX3' + 'VyaRgBIAEoCUID4EECUglpc3N1ZXJVcmkSKwoRYWxsb3dlZF9hdWRpZW5jZXMYAiADKAlSEGFs' + 'bG93ZWRBdWRpZW5jZXMaQwoVQXR0cmlidXRlTWFwcGluZ0VudHJ5EhAKA2tleRgBIAEoCVIDa2' + 'V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAEiNwoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJ' + 'RUQQABIKCgZBQ1RJVkUQARILCgdERUxFVEVEEAI6ugHqQbYBCi9pYW0uZ29vZ2xlYXBpcy5jb2' + '0vV29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlchKCAXByb2plY3RzL3twcm9qZWN0fS9sb2Nh' + 'dGlvbnMve2xvY2F0aW9ufS93b3JrbG9hZElkZW50aXR5UG9vbHMve3dvcmtsb2FkX2lkZW50aX' + 'R5X3Bvb2x9L3Byb3ZpZGVycy97d29ya2xvYWRfaWRlbnRpdHlfcG9vbF9wcm92aWRlcn1CEQoP' + 'cHJvdmlkZXJfY29uZmln'); + @$core.Deprecated('Use listWorkloadIdentityPoolsRequestDescriptor instead') const ListWorkloadIdentityPoolsRequest$json = { '1': 'ListWorkloadIdentityPoolsRequest', @@ -169,7 +199,11 @@ const ListWorkloadIdentityPoolsRequest$json = { /// Descriptor for `ListWorkloadIdentityPoolsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listWorkloadIdentityPoolsRequestDescriptor = $convert.base64Decode( - 'CiBMaXN0V29ya2xvYWRJZGVudGl0eVBvb2xzUmVxdWVzdBJLCgZwYXJlbnQYASABKAlCM+BBAvpBLQorY2xvdWRyZXNvdXJjZW1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vUHJvamVjdFIGcGFyZW50EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZVRva2VuEiEKDHNob3dfZGVsZXRlZBgEIAEoCFILc2hvd0RlbGV0ZWQ='); + 'CiBMaXN0V29ya2xvYWRJZGVudGl0eVBvb2xzUmVxdWVzdBJLCgZwYXJlbnQYASABKAlCM+BBAv' + 'pBLQorY2xvdWRyZXNvdXJjZW1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vUHJvamVjdFIGcGFyZW50' + 'EhsKCXBhZ2Vfc2l6ZRgCIAEoBVIIcGFnZVNpemUSHQoKcGFnZV90b2tlbhgDIAEoCVIJcGFnZV' + 'Rva2VuEiEKDHNob3dfZGVsZXRlZBgEIAEoCFILc2hvd0RlbGV0ZWQ='); + @$core.Deprecated('Use listWorkloadIdentityPoolsResponseDescriptor instead') const ListWorkloadIdentityPoolsResponse$json = { '1': 'ListWorkloadIdentityPoolsResponse', @@ -189,7 +223,11 @@ const ListWorkloadIdentityPoolsResponse$json = { /// Descriptor for `ListWorkloadIdentityPoolsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listWorkloadIdentityPoolsResponseDescriptor = $convert.base64Decode( - 'CiFMaXN0V29ya2xvYWRJZGVudGl0eVBvb2xzUmVzcG9uc2USXwoXd29ya2xvYWRfaWRlbnRpdHlfcG9vbHMYASADKAsyJy5nb29nbGUuaWFtLnYxYmV0YS5Xb3JrbG9hZElkZW50aXR5UG9vbFIVd29ya2xvYWRJZGVudGl0eVBvb2xzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'CiFMaXN0V29ya2xvYWRJZGVudGl0eVBvb2xzUmVzcG9uc2USXwoXd29ya2xvYWRfaWRlbnRpdH' + 'lfcG9vbHMYASADKAsyJy5nb29nbGUuaWFtLnYxYmV0YS5Xb3JrbG9hZElkZW50aXR5UG9vbFIV' + 'd29ya2xvYWRJZGVudGl0eVBvb2xzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2' + 'VUb2tlbg=='); + @$core.Deprecated('Use getWorkloadIdentityPoolRequestDescriptor instead') const GetWorkloadIdentityPoolRequest$json = { '1': 'GetWorkloadIdentityPoolRequest', @@ -201,7 +239,9 @@ const GetWorkloadIdentityPoolRequest$json = { /// Descriptor for `GetWorkloadIdentityPoolRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getWorkloadIdentityPoolRequestDescriptor = $convert.base64Decode( - 'Ch5HZXRXb3JrbG9hZElkZW50aXR5UG9vbFJlcXVlc3QSQwoEbmFtZRgBIAEoCUIv4EEC+kEpCidpYW0uZ29vZ2xlYXBpcy5jb20vV29ya2xvYWRJZGVudGl0eVBvb2xSBG5hbWU='); + 'Ch5HZXRXb3JrbG9hZElkZW50aXR5UG9vbFJlcXVlc3QSQwoEbmFtZRgBIAEoCUIv4EEC+kEpCi' + 'dpYW0uZ29vZ2xlYXBpcy5jb20vV29ya2xvYWRJZGVudGl0eVBvb2xSBG5hbWU='); + @$core.Deprecated('Use createWorkloadIdentityPoolRequestDescriptor instead') const CreateWorkloadIdentityPoolRequest$json = { '1': 'CreateWorkloadIdentityPoolRequest', @@ -228,9 +268,13 @@ const CreateWorkloadIdentityPoolRequest$json = { }; /// Descriptor for `CreateWorkloadIdentityPoolRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List createWorkloadIdentityPoolRequestDescriptor = - $convert.base64Decode( - 'CiFDcmVhdGVXb3JrbG9hZElkZW50aXR5UG9vbFJlcXVlc3QSSwoGcGFyZW50GAEgASgJQjPgQQL6QS0KK2Nsb3VkcmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1Byb2plY3RSBnBhcmVudBJiChZ3b3JrbG9hZF9pZGVudGl0eV9wb29sGAIgASgLMicuZ29vZ2xlLmlhbS52MWJldGEuV29ya2xvYWRJZGVudGl0eVBvb2xCA+BBAlIUd29ya2xvYWRJZGVudGl0eVBvb2wSPgoZd29ya2xvYWRfaWRlbnRpdHlfcG9vbF9pZBgDIAEoCUID4EECUhZ3b3JrbG9hZElkZW50aXR5UG9vbElk'); +final $typed_data.Uint8List createWorkloadIdentityPoolRequestDescriptor = $convert.base64Decode( + 'CiFDcmVhdGVXb3JrbG9hZElkZW50aXR5UG9vbFJlcXVlc3QSSwoGcGFyZW50GAEgASgJQjPgQQ' + 'L6QS0KK2Nsb3VkcmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1Byb2plY3RSBnBhcmVu' + 'dBJiChZ3b3JrbG9hZF9pZGVudGl0eV9wb29sGAIgASgLMicuZ29vZ2xlLmlhbS52MWJldGEuV2' + '9ya2xvYWRJZGVudGl0eVBvb2xCA+BBAlIUd29ya2xvYWRJZGVudGl0eVBvb2wSPgoZd29ya2xv' + 'YWRfaWRlbnRpdHlfcG9vbF9pZBgDIAEoCUID4EECUhZ3b3JrbG9hZElkZW50aXR5UG9vbElk'); + @$core.Deprecated('Use updateWorkloadIdentityPoolRequestDescriptor instead') const UpdateWorkloadIdentityPoolRequest$json = { '1': 'UpdateWorkloadIdentityPoolRequest', @@ -259,7 +303,11 @@ const UpdateWorkloadIdentityPoolRequest$json = { /// Descriptor for `UpdateWorkloadIdentityPoolRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateWorkloadIdentityPoolRequestDescriptor = $convert.base64Decode( - 'CiFVcGRhdGVXb3JrbG9hZElkZW50aXR5UG9vbFJlcXVlc3QSYgoWd29ya2xvYWRfaWRlbnRpdHlfcG9vbBgBIAEoCzInLmdvb2dsZS5pYW0udjFiZXRhLldvcmtsb2FkSWRlbnRpdHlQb29sQgPgQQJSFHdvcmtsb2FkSWRlbnRpdHlQb29sEkAKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza0ID4EECUgp1cGRhdGVNYXNr'); + 'CiFVcGRhdGVXb3JrbG9hZElkZW50aXR5UG9vbFJlcXVlc3QSYgoWd29ya2xvYWRfaWRlbnRpdH' + 'lfcG9vbBgBIAEoCzInLmdvb2dsZS5pYW0udjFiZXRhLldvcmtsb2FkSWRlbnRpdHlQb29sQgPg' + 'QQJSFHdvcmtsb2FkSWRlbnRpdHlQb29sEkAKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLn' + 'Byb3RvYnVmLkZpZWxkTWFza0ID4EECUgp1cGRhdGVNYXNr'); + @$core.Deprecated('Use deleteWorkloadIdentityPoolRequestDescriptor instead') const DeleteWorkloadIdentityPoolRequest$json = { '1': 'DeleteWorkloadIdentityPoolRequest', @@ -271,7 +319,9 @@ const DeleteWorkloadIdentityPoolRequest$json = { /// Descriptor for `DeleteWorkloadIdentityPoolRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteWorkloadIdentityPoolRequestDescriptor = $convert.base64Decode( - 'CiFEZWxldGVXb3JrbG9hZElkZW50aXR5UG9vbFJlcXVlc3QSQwoEbmFtZRgBIAEoCUIv4EEC+kEpCidpYW0uZ29vZ2xlYXBpcy5jb20vV29ya2xvYWRJZGVudGl0eVBvb2xSBG5hbWU='); + 'CiFEZWxldGVXb3JrbG9hZElkZW50aXR5UG9vbFJlcXVlc3QSQwoEbmFtZRgBIAEoCUIv4EEC+k' + 'EpCidpYW0uZ29vZ2xlYXBpcy5jb20vV29ya2xvYWRJZGVudGl0eVBvb2xSBG5hbWU='); + @$core.Deprecated('Use undeleteWorkloadIdentityPoolRequestDescriptor instead') const UndeleteWorkloadIdentityPoolRequest$json = { '1': 'UndeleteWorkloadIdentityPoolRequest', @@ -283,7 +333,9 @@ const UndeleteWorkloadIdentityPoolRequest$json = { /// Descriptor for `UndeleteWorkloadIdentityPoolRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List undeleteWorkloadIdentityPoolRequestDescriptor = $convert.base64Decode( - 'CiNVbmRlbGV0ZVdvcmtsb2FkSWRlbnRpdHlQb29sUmVxdWVzdBJDCgRuYW1lGAEgASgJQi/gQQL6QSkKJ2lhbS5nb29nbGVhcGlzLmNvbS9Xb3JrbG9hZElkZW50aXR5UG9vbFIEbmFtZQ=='); + 'CiNVbmRlbGV0ZVdvcmtsb2FkSWRlbnRpdHlQb29sUmVxdWVzdBJDCgRuYW1lGAEgASgJQi/gQQ' + 'L6QSkKJ2lhbS5nb29nbGVhcGlzLmNvbS9Xb3JrbG9hZElkZW50aXR5UG9vbFIEbmFtZQ=='); + @$core.Deprecated( 'Use listWorkloadIdentityPoolProvidersRequestDescriptor instead') const ListWorkloadIdentityPoolProvidersRequest$json = { @@ -299,7 +351,11 @@ const ListWorkloadIdentityPoolProvidersRequest$json = { /// Descriptor for `ListWorkloadIdentityPoolProvidersRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listWorkloadIdentityPoolProvidersRequestDescriptor = $convert.base64Decode( - 'CihMaXN0V29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlcnNSZXF1ZXN0EkcKBnBhcmVudBgBIAEoCUIv4EEC+kEpCidpYW0uZ29vZ2xlYXBpcy5jb20vV29ya2xvYWRJZGVudGl0eVBvb2xSBnBhcmVudBIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbhIhCgxzaG93X2RlbGV0ZWQYBCABKAhSC3Nob3dEZWxldGVk'); + 'CihMaXN0V29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlcnNSZXF1ZXN0EkcKBnBhcmVudBgBIA' + 'EoCUIv4EEC+kEpCidpYW0uZ29vZ2xlYXBpcy5jb20vV29ya2xvYWRJZGVudGl0eVBvb2xSBnBh' + 'cmVudBIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCX' + 'BhZ2VUb2tlbhIhCgxzaG93X2RlbGV0ZWQYBCABKAhSC3Nob3dEZWxldGVk'); + @$core.Deprecated( 'Use listWorkloadIdentityPoolProvidersResponseDescriptor instead') const ListWorkloadIdentityPoolProvidersResponse$json = { @@ -320,7 +376,11 @@ const ListWorkloadIdentityPoolProvidersResponse$json = { /// Descriptor for `ListWorkloadIdentityPoolProvidersResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listWorkloadIdentityPoolProvidersResponseDescriptor = $convert.base64Decode( - 'CilMaXN0V29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlcnNSZXNwb25zZRJ4CiB3b3JrbG9hZF9pZGVudGl0eV9wb29sX3Byb3ZpZGVycxgBIAMoCzIvLmdvb2dsZS5pYW0udjFiZXRhLldvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXJSHXdvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXJzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'CilMaXN0V29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlcnNSZXNwb25zZRJ4CiB3b3JrbG9hZF' + '9pZGVudGl0eV9wb29sX3Byb3ZpZGVycxgBIAMoCzIvLmdvb2dsZS5pYW0udjFiZXRhLldvcmts' + 'b2FkSWRlbnRpdHlQb29sUHJvdmlkZXJSHXdvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXJzEi' + 'YKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core .Deprecated('Use getWorkloadIdentityPoolProviderRequestDescriptor instead') const GetWorkloadIdentityPoolProviderRequest$json = { @@ -333,7 +393,10 @@ const GetWorkloadIdentityPoolProviderRequest$json = { /// Descriptor for `GetWorkloadIdentityPoolProviderRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getWorkloadIdentityPoolProviderRequestDescriptor = $convert.base64Decode( - 'CiZHZXRXb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyUmVxdWVzdBJLCgRuYW1lGAEgASgJQjfgQQL6QTEKL2lhbS5nb29nbGVhcGlzLmNvbS9Xb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyUgRuYW1l'); + 'CiZHZXRXb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyUmVxdWVzdBJLCgRuYW1lGAEgASgJQj' + 'fgQQL6QTEKL2lhbS5nb29nbGVhcGlzLmNvbS9Xb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVy' + 'UgRuYW1l'); + @$core.Deprecated( 'Use createWorkloadIdentityPoolProviderRequestDescriptor instead') const CreateWorkloadIdentityPoolProviderRequest$json = { @@ -363,7 +426,13 @@ const CreateWorkloadIdentityPoolProviderRequest$json = { /// Descriptor for `CreateWorkloadIdentityPoolProviderRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createWorkloadIdentityPoolProviderRequestDescriptor = $convert.base64Decode( - 'CilDcmVhdGVXb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyUmVxdWVzdBJHCgZwYXJlbnQYASABKAlCL+BBAvpBKQonaWFtLmdvb2dsZWFwaXMuY29tL1dvcmtsb2FkSWRlbnRpdHlQb29sUgZwYXJlbnQSewofd29ya2xvYWRfaWRlbnRpdHlfcG9vbF9wcm92aWRlchgCIAEoCzIvLmdvb2dsZS5pYW0udjFiZXRhLldvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXJCA+BBAlIcd29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlchJPCiJ3b3JrbG9hZF9pZGVudGl0eV9wb29sX3Byb3ZpZGVyX2lkGAMgASgJQgPgQQJSHndvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXJJZA=='); + 'CilDcmVhdGVXb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyUmVxdWVzdBJHCgZwYXJlbnQYAS' + 'ABKAlCL+BBAvpBKQonaWFtLmdvb2dsZWFwaXMuY29tL1dvcmtsb2FkSWRlbnRpdHlQb29sUgZw' + 'YXJlbnQSewofd29ya2xvYWRfaWRlbnRpdHlfcG9vbF9wcm92aWRlchgCIAEoCzIvLmdvb2dsZS' + '5pYW0udjFiZXRhLldvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXJCA+BBAlIcd29ya2xvYWRJ' + 'ZGVudGl0eVBvb2xQcm92aWRlchJPCiJ3b3JrbG9hZF9pZGVudGl0eV9wb29sX3Byb3ZpZGVyX2' + 'lkGAMgASgJQgPgQQJSHndvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXJJZA=='); + @$core.Deprecated( 'Use updateWorkloadIdentityPoolProviderRequestDescriptor instead') const UpdateWorkloadIdentityPoolProviderRequest$json = { @@ -393,7 +462,12 @@ const UpdateWorkloadIdentityPoolProviderRequest$json = { /// Descriptor for `UpdateWorkloadIdentityPoolProviderRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateWorkloadIdentityPoolProviderRequestDescriptor = $convert.base64Decode( - 'CilVcGRhdGVXb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyUmVxdWVzdBJ7Ch93b3JrbG9hZF9pZGVudGl0eV9wb29sX3Byb3ZpZGVyGAEgASgLMi8uZ29vZ2xlLmlhbS52MWJldGEuV29ya2xvYWRJZGVudGl0eVBvb2xQcm92aWRlckID4EECUhx3b3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyEkAKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza0ID4EECUgp1cGRhdGVNYXNr'); + 'CilVcGRhdGVXb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyUmVxdWVzdBJ7Ch93b3JrbG9hZF' + '9pZGVudGl0eV9wb29sX3Byb3ZpZGVyGAEgASgLMi8uZ29vZ2xlLmlhbS52MWJldGEuV29ya2xv' + 'YWRJZGVudGl0eVBvb2xQcm92aWRlckID4EECUhx3b3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZG' + 'VyEkAKC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza0ID4EEC' + 'Ugp1cGRhdGVNYXNr'); + @$core.Deprecated( 'Use deleteWorkloadIdentityPoolProviderRequestDescriptor instead') const DeleteWorkloadIdentityPoolProviderRequest$json = { @@ -406,7 +480,10 @@ const DeleteWorkloadIdentityPoolProviderRequest$json = { /// Descriptor for `DeleteWorkloadIdentityPoolProviderRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteWorkloadIdentityPoolProviderRequestDescriptor = $convert.base64Decode( - 'CilEZWxldGVXb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyUmVxdWVzdBJLCgRuYW1lGAEgASgJQjfgQQL6QTEKL2lhbS5nb29nbGVhcGlzLmNvbS9Xb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyUgRuYW1l'); + 'CilEZWxldGVXb3JrbG9hZElkZW50aXR5UG9vbFByb3ZpZGVyUmVxdWVzdBJLCgRuYW1lGAEgAS' + 'gJQjfgQQL6QTEKL2lhbS5nb29nbGVhcGlzLmNvbS9Xb3JrbG9hZElkZW50aXR5UG9vbFByb3Zp' + 'ZGVyUgRuYW1l'); + @$core.Deprecated( 'Use undeleteWorkloadIdentityPoolProviderRequestDescriptor instead') const UndeleteWorkloadIdentityPoolProviderRequest$json = { @@ -420,7 +497,10 @@ const UndeleteWorkloadIdentityPoolProviderRequest$json = { final $typed_data.Uint8List undeleteWorkloadIdentityPoolProviderRequestDescriptor = $convert.base64Decode( - 'CitVbmRlbGV0ZVdvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXJSZXF1ZXN0EksKBG5hbWUYASABKAlCN+BBAvpBMQovaWFtLmdvb2dsZWFwaXMuY29tL1dvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXJSBG5hbWU='); + 'CitVbmRlbGV0ZVdvcmtsb2FkSWRlbnRpdHlQb29sUHJvdmlkZXJSZXF1ZXN0EksKBG5hbWUYAS' + 'ABKAlCN+BBAvpBMQovaWFtLmdvb2dsZWFwaXMuY29tL1dvcmtsb2FkSWRlbnRpdHlQb29sUHJv' + 'dmlkZXJSBG5hbWU='); + @$core.Deprecated('Use workloadIdentityPoolOperationMetadataDescriptor instead') const WorkloadIdentityPoolOperationMetadata$json = { '1': 'WorkloadIdentityPoolOperationMetadata', @@ -430,6 +510,7 @@ const WorkloadIdentityPoolOperationMetadata$json = { final $typed_data.Uint8List workloadIdentityPoolOperationMetadataDescriptor = $convert .base64Decode('CiVXb3JrbG9hZElkZW50aXR5UG9vbE9wZXJhdGlvbk1ldGFkYXRh'); + @$core.Deprecated( 'Use workloadIdentityPoolProviderOperationMetadataDescriptor instead') const WorkloadIdentityPoolProviderOperationMetadata$json = { diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/deny.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/deny.pb.dart new file mode 100644 index 00000000..4f590478 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/deny.pb.dart @@ -0,0 +1,185 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2/deny.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 '../../type/expr.pb.dart' as $114; + +/// A deny rule in an IAM deny policy. +class DenyRule extends $pb.GeneratedMessage { + factory DenyRule({ + $core.Iterable<$core.String>? deniedPrincipals, + $core.Iterable<$core.String>? exceptionPrincipals, + $core.Iterable<$core.String>? deniedPermissions, + $core.Iterable<$core.String>? exceptionPermissions, + $114.Expr? denialCondition, + }) { + final $result = create(); + if (deniedPrincipals != null) { + $result.deniedPrincipals.addAll(deniedPrincipals); + } + if (exceptionPrincipals != null) { + $result.exceptionPrincipals.addAll(exceptionPrincipals); + } + if (deniedPermissions != null) { + $result.deniedPermissions.addAll(deniedPermissions); + } + if (exceptionPermissions != null) { + $result.exceptionPermissions.addAll(exceptionPermissions); + } + if (denialCondition != null) { + $result.denialCondition = denialCondition; + } + return $result; + } + DenyRule._() : super(); + factory DenyRule.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DenyRule.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DenyRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'deniedPrincipals') + ..pPS(2, _omitFieldNames ? '' : 'exceptionPrincipals') + ..pPS(3, _omitFieldNames ? '' : 'deniedPermissions') + ..pPS(4, _omitFieldNames ? '' : 'exceptionPermissions') + ..aOM<$114.Expr>(5, _omitFieldNames ? '' : 'denialCondition', + subBuilder: $114.Expr.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') + DenyRule clone() => DenyRule()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DenyRule copyWith(void Function(DenyRule) updates) => + super.copyWith((message) => updates(message as DenyRule)) as DenyRule; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DenyRule create() => DenyRule._(); + DenyRule createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DenyRule getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DenyRule? _defaultInstance; + + /// The identities that are prevented from using one or more permissions on + /// Google Cloud resources. This field can contain the following values: + /// + /// * `principalSet://goog/public:all`: A special identifier that represents + /// any principal that is on the internet, even if they do not have a Google + /// Account or are not logged in. + /// + /// * `principal://goog/subject/{email_id}`: A specific Google Account. + /// Includes Gmail, Cloud Identity, and Google Workspace user accounts. For + /// example, `principal://goog/subject/alice@example.com`. + /// + /// * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific + /// Google Account that was deleted recently. For example, + /// `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If + /// the Google Account is recovered, this identifier reverts to the standard + /// identifier for a Google Account. + /// + /// * `principalSet://goog/group/{group_id}`: A Google group. For example, + /// `principalSet://goog/group/admins@example.com`. + /// + /// * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group + /// that was deleted recently. For example, + /// `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If + /// the Google group is restored, this identifier reverts to the standard + /// identifier for a Google group. + /// + /// * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`: + /// A Google Cloud service account. For example, + /// `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`. + /// + /// * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`: + /// A Google Cloud service account that was deleted recently. For example, + /// `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`. + /// If the service account is undeleted, this identifier reverts to the + /// standard identifier for a service account. + /// + /// * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the + /// principals associated with the specified Google Workspace or Cloud + /// Identity customer ID. For example, + /// `principalSet://goog/cloudIdentityCustomerId/C01Abc35`. + @$pb.TagNumber(1) + $core.List<$core.String> get deniedPrincipals => $_getList(0); + + /// The identities that are excluded from the deny rule, even if they are + /// listed in the `denied_principals`. For example, you could add a Google + /// group to the `denied_principals`, then exclude specific users who belong to + /// that group. + /// + /// This field can contain the same values as the `denied_principals` field, + /// excluding `principalSet://goog/public:all`, which represents all users on + /// the internet. + @$pb.TagNumber(2) + $core.List<$core.String> get exceptionPrincipals => $_getList(1); + + /// The permissions that are explicitly denied by this rule. Each permission + /// uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` + /// is the fully qualified domain name for the service. For example, + /// `iam.googleapis.com/roles.list`. + @$pb.TagNumber(3) + $core.List<$core.String> get deniedPermissions => $_getList(2); + + /// Specifies the permissions that this rule excludes from the set of denied + /// permissions given by `denied_permissions`. If a permission appears in + /// `denied_permissions` _and_ in `exception_permissions` then it will _not_ be + /// denied. + /// + /// The excluded permissions can be specified using the same syntax as + /// `denied_permissions`. + @$pb.TagNumber(4) + $core.List<$core.String> get exceptionPermissions => $_getList(3); + + /// The condition that determines whether this deny rule applies to a request. + /// If the condition expression evaluates to `true`, then the deny rule is + /// applied; otherwise, the deny rule is not applied. + /// + /// Each deny rule is evaluated independently. If this deny rule does not apply + /// to a request, other deny rules might still apply. + /// + /// The condition can use CEL functions that evaluate + /// [resource + /// tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other + /// functions and operators are not supported. + @$pb.TagNumber(5) + $114.Expr get denialCondition => $_getN(4); + @$pb.TagNumber(5) + set denialCondition($114.Expr v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasDenialCondition() => $_has(4); + @$pb.TagNumber(5) + void clearDenialCondition() => clearField(5); + @$pb.TagNumber(5) + $114.Expr ensureDenialCondition() => $_ensure(4); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/deny.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/deny.pbenum.dart new file mode 100644 index 00000000..999935dc --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/deny.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2/deny.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/deny.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/deny.pbjson.dart new file mode 100644 index 00000000..327104b9 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/deny.pbjson.dart @@ -0,0 +1,65 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2/deny.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 denyRuleDescriptor instead') +const DenyRule$json = { + '1': 'DenyRule', + '2': [ + { + '1': 'denied_principals', + '3': 1, + '4': 3, + '5': 9, + '10': 'deniedPrincipals' + }, + { + '1': 'exception_principals', + '3': 2, + '4': 3, + '5': 9, + '10': 'exceptionPrincipals' + }, + { + '1': 'denied_permissions', + '3': 3, + '4': 3, + '5': 9, + '10': 'deniedPermissions' + }, + { + '1': 'exception_permissions', + '3': 4, + '4': 3, + '5': 9, + '10': 'exceptionPermissions' + }, + { + '1': 'denial_condition', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.type.Expr', + '10': 'denialCondition' + }, + ], +}; + +/// Descriptor for `DenyRule`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List denyRuleDescriptor = $convert.base64Decode( + 'CghEZW55UnVsZRIrChFkZW5pZWRfcHJpbmNpcGFscxgBIAMoCVIQZGVuaWVkUHJpbmNpcGFscx' + 'IxChRleGNlcHRpb25fcHJpbmNpcGFscxgCIAMoCVITZXhjZXB0aW9uUHJpbmNpcGFscxItChJk' + 'ZW5pZWRfcGVybWlzc2lvbnMYAyADKAlSEWRlbmllZFBlcm1pc3Npb25zEjMKFWV4Y2VwdGlvbl' + '9wZXJtaXNzaW9ucxgEIAMoCVIUZXhjZXB0aW9uUGVybWlzc2lvbnMSPAoQZGVuaWFsX2NvbmRp' + 'dGlvbhgFIAEoCzIRLmdvb2dsZS50eXBlLkV4cHJSD2RlbmlhbENvbmRpdGlvbg=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pb.dart new file mode 100644 index 00000000..6caa999c --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pb.dart @@ -0,0 +1,977 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/timestamp.pb.dart' as $50; +import 'deny.pb.dart' as $117; + +/// Data for an IAM policy. +class Policy extends $pb.GeneratedMessage { + factory Policy({ + $core.String? name, + $core.String? uid, + $core.String? kind, + $core.String? displayName, + $core.Map<$core.String, $core.String>? annotations, + $core.String? etag, + $50.Timestamp? createTime, + $50.Timestamp? updateTime, + $50.Timestamp? deleteTime, + $core.Iterable? rules, + $core.String? managingAuthority, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (uid != null) { + $result.uid = uid; + } + if (kind != null) { + $result.kind = kind; + } + if (displayName != null) { + $result.displayName = displayName; + } + if (annotations != null) { + $result.annotations.addAll(annotations); + } + if (etag != null) { + $result.etag = etag; + } + if (createTime != null) { + $result.createTime = createTime; + } + if (updateTime != null) { + $result.updateTime = updateTime; + } + if (deleteTime != null) { + $result.deleteTime = deleteTime; + } + if (rules != null) { + $result.rules.addAll(rules); + } + if (managingAuthority != null) { + $result.managingAuthority = managingAuthority; + } + return $result; + } + Policy._() : super(); + factory Policy.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Policy.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Policy', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'uid') + ..aOS(3, _omitFieldNames ? '' : 'kind') + ..aOS(4, _omitFieldNames ? '' : 'displayName') + ..m<$core.String, $core.String>(5, _omitFieldNames ? '' : 'annotations', + entryClassName: 'Policy.AnnotationsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.iam.v2')) + ..aOS(6, _omitFieldNames ? '' : 'etag') + ..aOM<$50.Timestamp>(7, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(8, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(9, _omitFieldNames ? '' : 'deleteTime', + subBuilder: $50.Timestamp.create) + ..pc(10, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: PolicyRule.create) + ..aOS(11, _omitFieldNames ? '' : 'managingAuthority') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + Policy clone() => Policy()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Policy copyWith(void Function(Policy) updates) => + super.copyWith((message) => updates(message as Policy)) as Policy; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Policy create() => Policy._(); + Policy createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Policy getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Policy? _defaultInstance; + + /// Immutable. The resource name of the `Policy`, which must be unique. Format: + /// `policies/{attachment_point}/denypolicies/{policy_id}` + /// + /// + /// The attachment point is identified by its URL-encoded full resource name, + /// which means that the forward-slash character, `/`, must be written as + /// `%2F`. For example, + /// `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`. + /// + /// For organizations and folders, use the numeric ID in the full resource + /// name. For projects, requests can use the alphanumeric or the numeric ID. + /// Responses always contain the numeric ID. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Immutable. The globally unique ID of the `Policy`. Assigned automatically when the + /// `Policy` is created. + @$pb.TagNumber(2) + $core.String get uid => $_getSZ(1); + @$pb.TagNumber(2) + set uid($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasUid() => $_has(1); + @$pb.TagNumber(2) + void clearUid() => clearField(2); + + /// Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`. + @$pb.TagNumber(3) + $core.String get kind => $_getSZ(2); + @$pb.TagNumber(3) + set kind($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasKind() => $_has(2); + @$pb.TagNumber(3) + void clearKind() => clearField(3); + + /// A user-specified description of the `Policy`. This value can be up to 63 + /// characters. + @$pb.TagNumber(4) + $core.String get displayName => $_getSZ(3); + @$pb.TagNumber(4) + set displayName($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasDisplayName() => $_has(3); + @$pb.TagNumber(4) + void clearDisplayName() => clearField(4); + + /// A key-value map to store arbitrary metadata for the `Policy`. Keys + /// can be up to 63 characters. Values can be up to 255 characters. + @$pb.TagNumber(5) + $core.Map<$core.String, $core.String> get annotations => $_getMap(4); + + /// An opaque tag that identifies the current version of the `Policy`. IAM uses + /// this value to help manage concurrent updates, so they do not cause one + /// update to be overwritten by another. + /// + /// If this field is present in a [CreatePolicy][] request, the value is + /// ignored. + @$pb.TagNumber(6) + $core.String get etag => $_getSZ(5); + @$pb.TagNumber(6) + set etag($core.String v) { + $_setString(5, v); + } + + @$pb.TagNumber(6) + $core.bool hasEtag() => $_has(5); + @$pb.TagNumber(6) + void clearEtag() => clearField(6); + + /// Output only. The time when the `Policy` was created. + @$pb.TagNumber(7) + $50.Timestamp get createTime => $_getN(6); + @$pb.TagNumber(7) + set createTime($50.Timestamp v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasCreateTime() => $_has(6); + @$pb.TagNumber(7) + void clearCreateTime() => clearField(7); + @$pb.TagNumber(7) + $50.Timestamp ensureCreateTime() => $_ensure(6); + + /// Output only. The time when the `Policy` was last updated. + @$pb.TagNumber(8) + $50.Timestamp get updateTime => $_getN(7); + @$pb.TagNumber(8) + set updateTime($50.Timestamp v) { + setField(8, v); + } + + @$pb.TagNumber(8) + $core.bool hasUpdateTime() => $_has(7); + @$pb.TagNumber(8) + void clearUpdateTime() => clearField(8); + @$pb.TagNumber(8) + $50.Timestamp ensureUpdateTime() => $_ensure(7); + + /// Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted. + @$pb.TagNumber(9) + $50.Timestamp get deleteTime => $_getN(8); + @$pb.TagNumber(9) + set deleteTime($50.Timestamp v) { + setField(9, v); + } + + @$pb.TagNumber(9) + $core.bool hasDeleteTime() => $_has(8); + @$pb.TagNumber(9) + void clearDeleteTime() => clearField(9); + @$pb.TagNumber(9) + $50.Timestamp ensureDeleteTime() => $_ensure(8); + + /// A list of rules that specify the behavior of the `Policy`. All of the rules + /// should be of the `kind` specified in the `Policy`. + @$pb.TagNumber(10) + $core.List get rules => $_getList(9); + + /// Immutable. Specifies that this policy is managed by an authority and can only be + /// modified by that authority. Usage is restricted. + @$pb.TagNumber(11) + $core.String get managingAuthority => $_getSZ(10); + @$pb.TagNumber(11) + set managingAuthority($core.String v) { + $_setString(10, v); + } + + @$pb.TagNumber(11) + $core.bool hasManagingAuthority() => $_has(10); + @$pb.TagNumber(11) + void clearManagingAuthority() => clearField(11); +} + +enum PolicyRule_Kind { denyRule, notSet } + +/// A single rule in a `Policy`. +class PolicyRule extends $pb.GeneratedMessage { + factory PolicyRule({ + $core.String? description, + $117.DenyRule? denyRule, + }) { + final $result = create(); + if (description != null) { + $result.description = description; + } + if (denyRule != null) { + $result.denyRule = denyRule; + } + return $result; + } + PolicyRule._() : super(); + factory PolicyRule.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PolicyRule.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, PolicyRule_Kind> _PolicyRule_KindByTag = { + 2: PolicyRule_Kind.denyRule, + 0: PolicyRule_Kind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PolicyRule', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2'), + createEmptyInstance: create) + ..oo(0, [2]) + ..aOS(1, _omitFieldNames ? '' : 'description') + ..aOM<$117.DenyRule>(2, _omitFieldNames ? '' : 'denyRule', + subBuilder: $117.DenyRule.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') + PolicyRule clone() => PolicyRule()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PolicyRule copyWith(void Function(PolicyRule) updates) => + super.copyWith((message) => updates(message as PolicyRule)) as PolicyRule; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PolicyRule create() => PolicyRule._(); + PolicyRule createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PolicyRule getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PolicyRule? _defaultInstance; + + PolicyRule_Kind whichKind() => _PolicyRule_KindByTag[$_whichOneof(0)]!; + void clearKind() => clearField($_whichOneof(0)); + + /// A user-specified description of the rule. This value can be up to 256 + /// characters. + @$pb.TagNumber(1) + $core.String get description => $_getSZ(0); + @$pb.TagNumber(1) + set description($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasDescription() => $_has(0); + @$pb.TagNumber(1) + void clearDescription() => clearField(1); + + /// A rule for a deny policy. + @$pb.TagNumber(2) + $117.DenyRule get denyRule => $_getN(1); + @$pb.TagNumber(2) + set denyRule($117.DenyRule v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasDenyRule() => $_has(1); + @$pb.TagNumber(2) + void clearDenyRule() => clearField(2); + @$pb.TagNumber(2) + $117.DenyRule ensureDenyRule() => $_ensure(1); +} + +/// Request message for `ListPolicies`. +class ListPoliciesRequest extends $pb.GeneratedMessage { + factory ListPoliciesRequest({ + $core.String? parent, + $core.int? pageSize, + $core.String? pageToken, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (pageSize != null) { + $result.pageSize = pageSize; + } + if (pageToken != null) { + $result.pageToken = pageToken; + } + return $result; + } + ListPoliciesRequest._() : super(); + factory ListPoliciesRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListPoliciesRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListPoliciesRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListPoliciesRequest clone() => ListPoliciesRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListPoliciesRequest copyWith(void Function(ListPoliciesRequest) updates) => + super.copyWith((message) => updates(message as ListPoliciesRequest)) + as ListPoliciesRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListPoliciesRequest create() => ListPoliciesRequest._(); + ListPoliciesRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListPoliciesRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListPoliciesRequest? _defaultInstance; + + /// Required. The resource that the policy is attached to, along with the kind of policy + /// to list. Format: + /// `policies/{attachment_point}/denypolicies` + /// + /// + /// The attachment point is identified by its URL-encoded full resource name, + /// which means that the forward-slash character, `/`, must be written as + /// `%2F`. For example, + /// `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + /// + /// For organizations and folders, use the numeric ID in the full resource + /// name. For projects, you can use the alphanumeric or the numeric ID. + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// The maximum number of policies to return. IAM ignores this value and uses + /// the value 1000. + @$pb.TagNumber(2) + $core.int get pageSize => $_getIZ(1); + @$pb.TagNumber(2) + set pageSize($core.int v) { + $_setSignedInt32(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPageSize() => $_has(1); + @$pb.TagNumber(2) + void clearPageSize() => clearField(2); + + /// A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to + /// retrieve the next page. + @$pb.TagNumber(3) + $core.String get pageToken => $_getSZ(2); + @$pb.TagNumber(3) + set pageToken($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasPageToken() => $_has(2); + @$pb.TagNumber(3) + void clearPageToken() => clearField(3); +} + +/// Response message for `ListPolicies`. +class ListPoliciesResponse extends $pb.GeneratedMessage { + factory ListPoliciesResponse({ + $core.Iterable? policies, + $core.String? nextPageToken, + }) { + final $result = create(); + if (policies != null) { + $result.policies.addAll(policies); + } + if (nextPageToken != null) { + $result.nextPageToken = nextPageToken; + } + return $result; + } + ListPoliciesResponse._() : super(); + factory ListPoliciesResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListPoliciesResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListPoliciesResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'policies', $pb.PbFieldType.PM, + subBuilder: Policy.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListPoliciesResponse clone() => + ListPoliciesResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListPoliciesResponse copyWith(void Function(ListPoliciesResponse) updates) => + super.copyWith((message) => updates(message as ListPoliciesResponse)) + as ListPoliciesResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListPoliciesResponse create() => ListPoliciesResponse._(); + ListPoliciesResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListPoliciesResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListPoliciesResponse? _defaultInstance; + + /// Metadata for the policies that are attached to the resource. + @$pb.TagNumber(1) + $core.List get policies => $_getList(0); + + /// A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the + /// next page. If this field is omitted, there are no additional pages. + @$pb.TagNumber(2) + $core.String get nextPageToken => $_getSZ(1); + @$pb.TagNumber(2) + set nextPageToken($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasNextPageToken() => $_has(1); + @$pb.TagNumber(2) + void clearNextPageToken() => clearField(2); +} + +/// Request message for `GetPolicy`. +class GetPolicyRequest extends $pb.GeneratedMessage { + factory GetPolicyRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + GetPolicyRequest._() : super(); + factory GetPolicyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetPolicyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetPolicyRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetPolicyRequest clone() => GetPolicyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetPolicyRequest copyWith(void Function(GetPolicyRequest) updates) => + super.copyWith((message) => updates(message as GetPolicyRequest)) + as GetPolicyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetPolicyRequest create() => GetPolicyRequest._(); + GetPolicyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetPolicyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetPolicyRequest? _defaultInstance; + + /// Required. The resource name of the policy to retrieve. Format: + /// `policies/{attachment_point}/denypolicies/{policy_id}` + /// + /// + /// Use the URL-encoded full resource name, which means that the forward-slash + /// character, `/`, must be written as `%2F`. For example, + /// `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`. + /// + /// For organizations and folders, use the numeric ID in the full resource + /// name. For projects, you can use the alphanumeric or the numeric ID. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// Request message for `CreatePolicy`. +class CreatePolicyRequest extends $pb.GeneratedMessage { + factory CreatePolicyRequest({ + $core.String? parent, + Policy? policy, + $core.String? policyId, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (policy != null) { + $result.policy = policy; + } + if (policyId != null) { + $result.policyId = policyId; + } + return $result; + } + CreatePolicyRequest._() : super(); + factory CreatePolicyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CreatePolicyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreatePolicyRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM(2, _omitFieldNames ? '' : 'policy', subBuilder: Policy.create) + ..aOS(3, _omitFieldNames ? '' : 'policyId') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CreatePolicyRequest clone() => CreatePolicyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CreatePolicyRequest copyWith(void Function(CreatePolicyRequest) updates) => + super.copyWith((message) => updates(message as CreatePolicyRequest)) + as CreatePolicyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CreatePolicyRequest create() => CreatePolicyRequest._(); + CreatePolicyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CreatePolicyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CreatePolicyRequest? _defaultInstance; + + /// Required. The resource that the policy is attached to, along with the kind of policy + /// to create. Format: `policies/{attachment_point}/denypolicies` + /// + /// + /// The attachment point is identified by its URL-encoded full resource name, + /// which means that the forward-slash character, `/`, must be written as + /// `%2F`. For example, + /// `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + /// + /// For organizations and folders, use the numeric ID in the full resource + /// name. For projects, you can use the alphanumeric or the numeric ID. + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// Required. The policy to create. + @$pb.TagNumber(2) + Policy get policy => $_getN(1); + @$pb.TagNumber(2) + set policy(Policy v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasPolicy() => $_has(1); + @$pb.TagNumber(2) + void clearPolicy() => clearField(2); + @$pb.TagNumber(2) + Policy ensurePolicy() => $_ensure(1); + + /// The ID to use for this policy, which will become the final component of + /// the policy's resource name. The ID must contain 3 to 63 characters. It can + /// contain lowercase letters and numbers, as well as dashes (`-`) and periods + /// (`.`). The first character must be a lowercase letter. + @$pb.TagNumber(3) + $core.String get policyId => $_getSZ(2); + @$pb.TagNumber(3) + set policyId($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasPolicyId() => $_has(2); + @$pb.TagNumber(3) + void clearPolicyId() => clearField(3); +} + +/// Request message for `UpdatePolicy`. +class UpdatePolicyRequest extends $pb.GeneratedMessage { + factory UpdatePolicyRequest({ + Policy? policy, + }) { + final $result = create(); + if (policy != null) { + $result.policy = policy; + } + return $result; + } + UpdatePolicyRequest._() : super(); + factory UpdatePolicyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdatePolicyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdatePolicyRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'policy', subBuilder: Policy.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') + UpdatePolicyRequest clone() => UpdatePolicyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdatePolicyRequest copyWith(void Function(UpdatePolicyRequest) updates) => + super.copyWith((message) => updates(message as UpdatePolicyRequest)) + as UpdatePolicyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdatePolicyRequest create() => UpdatePolicyRequest._(); + UpdatePolicyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UpdatePolicyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static UpdatePolicyRequest? _defaultInstance; + + /// Required. The policy to update. + /// + /// To prevent conflicting updates, the `etag` value must match the value that + /// is stored in IAM. If the `etag` values do not match, the request fails with + /// a `409` error code and `ABORTED` status. + @$pb.TagNumber(1) + Policy get policy => $_getN(0); + @$pb.TagNumber(1) + set policy(Policy v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasPolicy() => $_has(0); + @$pb.TagNumber(1) + void clearPolicy() => clearField(1); + @$pb.TagNumber(1) + Policy ensurePolicy() => $_ensure(0); +} + +/// Request message for `DeletePolicy`. +class DeletePolicyRequest extends $pb.GeneratedMessage { + factory DeletePolicyRequest({ + $core.String? name, + $core.String? etag, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (etag != null) { + $result.etag = etag; + } + return $result; + } + DeletePolicyRequest._() : super(); + factory DeletePolicyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DeletePolicyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeletePolicyRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'etag') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeletePolicyRequest clone() => DeletePolicyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeletePolicyRequest copyWith(void Function(DeletePolicyRequest) updates) => + super.copyWith((message) => updates(message as DeletePolicyRequest)) + as DeletePolicyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DeletePolicyRequest create() => DeletePolicyRequest._(); + DeletePolicyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DeletePolicyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static DeletePolicyRequest? _defaultInstance; + + /// Required. The resource name of the policy to delete. Format: + /// `policies/{attachment_point}/denypolicies/{policy_id}` + /// + /// + /// Use the URL-encoded full resource name, which means that the forward-slash + /// character, `/`, must be written as `%2F`. For example, + /// `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`. + /// + /// For organizations and folders, use the numeric ID in the full resource + /// name. For projects, you can use the alphanumeric or the numeric ID. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Optional. The expected `etag` of the policy to delete. If the value does not match + /// the value that is stored in IAM, the request fails with a `409` error code + /// and `ABORTED` status. + /// + /// If you omit this field, the policy is deleted regardless of its current + /// `etag`. + @$pb.TagNumber(2) + $core.String get etag => $_getSZ(1); + @$pb.TagNumber(2) + set etag($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasEtag() => $_has(1); + @$pb.TagNumber(2) + void clearEtag() => clearField(2); +} + +/// Metadata for long-running `Policy` operations. +class PolicyOperationMetadata extends $pb.GeneratedMessage { + factory PolicyOperationMetadata({ + $50.Timestamp? createTime, + }) { + final $result = create(); + if (createTime != null) { + $result.createTime = createTime; + } + return $result; + } + PolicyOperationMetadata._() : super(); + factory PolicyOperationMetadata.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PolicyOperationMetadata.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PolicyOperationMetadata', + package: const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2'), + createEmptyInstance: create) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.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') + PolicyOperationMetadata clone() => + PolicyOperationMetadata()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PolicyOperationMetadata copyWith( + void Function(PolicyOperationMetadata) updates) => + super.copyWith((message) => updates(message as PolicyOperationMetadata)) + as PolicyOperationMetadata; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PolicyOperationMetadata create() => PolicyOperationMetadata._(); + PolicyOperationMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PolicyOperationMetadata getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PolicyOperationMetadata? _defaultInstance; + + /// Timestamp when the `google.longrunning.Operation` was created. + @$pb.TagNumber(1) + $50.Timestamp get createTime => $_getN(0); + @$pb.TagNumber(1) + set createTime($50.Timestamp v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCreateTime() => $_has(0); + @$pb.TagNumber(1) + void clearCreateTime() => clearField(1); + @$pb.TagNumber(1) + $50.Timestamp ensureCreateTime() => $_ensure(0); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pbenum.dart new file mode 100644 index 00000000..0c068740 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pbgrpc.dart new file mode 100644 index 00000000..e500adf0 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pbgrpc.dart @@ -0,0 +1,170 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; +import 'dart:core' as $core; + +import 'package:grpc/service_api.dart' as $grpc; +import 'package:protobuf/protobuf.dart' as $pb; + +import '../../longrunning/operations.pb.dart' as $0; +import 'policy.pb.dart' as $47; + +export 'policy.pb.dart'; + +@$pb.GrpcServiceName('google.iam.v2.Policies') +class PoliciesClient extends $grpc.Client { + static final _$listPolicies = + $grpc.ClientMethod<$47.ListPoliciesRequest, $47.ListPoliciesResponse>( + '/google.iam.v2.Policies/ListPolicies', + ($47.ListPoliciesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $47.ListPoliciesResponse.fromBuffer(value)); + static final _$getPolicy = + $grpc.ClientMethod<$47.GetPolicyRequest, $47.Policy>( + '/google.iam.v2.Policies/GetPolicy', + ($47.GetPolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $47.Policy.fromBuffer(value)); + static final _$createPolicy = + $grpc.ClientMethod<$47.CreatePolicyRequest, $0.Operation>( + '/google.iam.v2.Policies/CreatePolicy', + ($47.CreatePolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$updatePolicy = + $grpc.ClientMethod<$47.UpdatePolicyRequest, $0.Operation>( + '/google.iam.v2.Policies/UpdatePolicy', + ($47.UpdatePolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$deletePolicy = + $grpc.ClientMethod<$47.DeletePolicyRequest, $0.Operation>( + '/google.iam.v2.Policies/DeletePolicy', + ($47.DeletePolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + + PoliciesClient($grpc.ClientChannel channel, + {$grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors}) + : super(channel, options: options, interceptors: interceptors); + + $grpc.ResponseFuture<$47.ListPoliciesResponse> listPolicies( + $47.ListPoliciesRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$listPolicies, request, options: options); + } + + $grpc.ResponseFuture<$47.Policy> getPolicy($47.GetPolicyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getPolicy, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> createPolicy( + $47.CreatePolicyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$createPolicy, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> updatePolicy( + $47.UpdatePolicyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$updatePolicy, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> deletePolicy( + $47.DeletePolicyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$deletePolicy, request, options: options); + } +} + +@$pb.GrpcServiceName('google.iam.v2.Policies') +abstract class PoliciesServiceBase extends $grpc.Service { + $core.String get $name => 'google.iam.v2.Policies'; + + PoliciesServiceBase() { + $addMethod( + $grpc.ServiceMethod<$47.ListPoliciesRequest, $47.ListPoliciesResponse>( + 'ListPolicies', + listPolicies_Pre, + false, + false, + ($core.List<$core.int> value) => + $47.ListPoliciesRequest.fromBuffer(value), + ($47.ListPoliciesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$47.GetPolicyRequest, $47.Policy>( + 'GetPolicy', + getPolicy_Pre, + false, + false, + ($core.List<$core.int> value) => $47.GetPolicyRequest.fromBuffer(value), + ($47.Policy value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$47.CreatePolicyRequest, $0.Operation>( + 'CreatePolicy', + createPolicy_Pre, + false, + false, + ($core.List<$core.int> value) => + $47.CreatePolicyRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$47.UpdatePolicyRequest, $0.Operation>( + 'UpdatePolicy', + updatePolicy_Pre, + false, + false, + ($core.List<$core.int> value) => + $47.UpdatePolicyRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$47.DeletePolicyRequest, $0.Operation>( + 'DeletePolicy', + deletePolicy_Pre, + false, + false, + ($core.List<$core.int> value) => + $47.DeletePolicyRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + } + + $async.Future<$47.ListPoliciesResponse> listPolicies_Pre( + $grpc.ServiceCall call, + $async.Future<$47.ListPoliciesRequest> request) async { + return listPolicies(call, await request); + } + + $async.Future<$47.Policy> getPolicy_Pre($grpc.ServiceCall call, + $async.Future<$47.GetPolicyRequest> request) async { + return getPolicy(call, await request); + } + + $async.Future<$0.Operation> createPolicy_Pre($grpc.ServiceCall call, + $async.Future<$47.CreatePolicyRequest> request) async { + return createPolicy(call, await request); + } + + $async.Future<$0.Operation> updatePolicy_Pre($grpc.ServiceCall call, + $async.Future<$47.UpdatePolicyRequest> request) async { + return updatePolicy(call, await request); + } + + $async.Future<$0.Operation> deletePolicy_Pre($grpc.ServiceCall call, + $async.Future<$47.DeletePolicyRequest> request) async { + return deletePolicy(call, await request); + } + + $async.Future<$47.ListPoliciesResponse> listPolicies( + $grpc.ServiceCall call, $47.ListPoliciesRequest request); + $async.Future<$47.Policy> getPolicy( + $grpc.ServiceCall call, $47.GetPolicyRequest request); + $async.Future<$0.Operation> createPolicy( + $grpc.ServiceCall call, $47.CreatePolicyRequest request); + $async.Future<$0.Operation> updatePolicy( + $grpc.ServiceCall call, $47.UpdatePolicyRequest request); + $async.Future<$0.Operation> deletePolicy( + $grpc.ServiceCall call, $47.DeletePolicyRequest request); +} diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pbjson.dart new file mode 100644 index 00000000..0c189b86 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2/policy.pbjson.dart @@ -0,0 +1,256 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 policyDescriptor instead') +const Policy$json = { + '1': 'Policy', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + {'1': 'uid', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'uid'}, + {'1': 'kind', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'kind'}, + {'1': 'display_name', '3': 4, '4': 1, '5': 9, '10': 'displayName'}, + { + '1': 'annotations', + '3': 5, + '4': 3, + '5': 11, + '6': '.google.iam.v2.Policy.AnnotationsEntry', + '10': 'annotations' + }, + {'1': 'etag', '3': 6, '4': 1, '5': 9, '10': 'etag'}, + { + '1': 'create_time', + '3': 7, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'createTime' + }, + { + '1': 'update_time', + '3': 8, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'updateTime' + }, + { + '1': 'delete_time', + '3': 9, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'deleteTime' + }, + { + '1': 'rules', + '3': 10, + '4': 3, + '5': 11, + '6': '.google.iam.v2.PolicyRule', + '10': 'rules' + }, + { + '1': 'managing_authority', + '3': 11, + '4': 1, + '5': 9, + '8': {}, + '10': 'managingAuthority' + }, + ], + '3': [Policy_AnnotationsEntry$json], +}; + +@$core.Deprecated('Use policyDescriptor instead') +const Policy_AnnotationsEntry$json = { + '1': 'AnnotationsEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `Policy`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List policyDescriptor = $convert.base64Decode( + 'CgZQb2xpY3kSFwoEbmFtZRgBIAEoCUID4EEFUgRuYW1lEhUKA3VpZBgCIAEoCUID4EEFUgN1aW' + 'QSFwoEa2luZBgDIAEoCUID4EEDUgRraW5kEiEKDGRpc3BsYXlfbmFtZRgEIAEoCVILZGlzcGxh' + 'eU5hbWUSSAoLYW5ub3RhdGlvbnMYBSADKAsyJi5nb29nbGUuaWFtLnYyLlBvbGljeS5Bbm5vdG' + 'F0aW9uc0VudHJ5Ugthbm5vdGF0aW9ucxISCgRldGFnGAYgASgJUgRldGFnEkAKC2NyZWF0ZV90' + 'aW1lGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDUgpjcmVhdGVUaW1lEk' + 'AKC3VwZGF0ZV90aW1lGAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDUgp1' + 'cGRhdGVUaW1lEkAKC2RlbGV0ZV90aW1lGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdG' + 'FtcEID4EEDUgpkZWxldGVUaW1lEi8KBXJ1bGVzGAogAygLMhkuZ29vZ2xlLmlhbS52Mi5Qb2xp' + 'Y3lSdWxlUgVydWxlcxIyChJtYW5hZ2luZ19hdXRob3JpdHkYCyABKAlCA+BBBVIRbWFuYWdpbm' + 'dBdXRob3JpdHkaPgoQQW5ub3RhdGlvbnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1' + 'ZRgCIAEoCVIFdmFsdWU6AjgB'); + +@$core.Deprecated('Use policyRuleDescriptor instead') +const PolicyRule$json = { + '1': 'PolicyRule', + '2': [ + { + '1': 'deny_rule', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.iam.v2.DenyRule', + '9': 0, + '10': 'denyRule' + }, + {'1': 'description', '3': 1, '4': 1, '5': 9, '10': 'description'}, + ], + '8': [ + {'1': 'kind'}, + ], +}; + +/// Descriptor for `PolicyRule`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List policyRuleDescriptor = $convert.base64Decode( + 'CgpQb2xpY3lSdWxlEjYKCWRlbnlfcnVsZRgCIAEoCzIXLmdvb2dsZS5pYW0udjIuRGVueVJ1bG' + 'VIAFIIZGVueVJ1bGUSIAoLZGVzY3JpcHRpb24YASABKAlSC2Rlc2NyaXB0aW9uQgYKBGtpbmQ='); + +@$core.Deprecated('Use listPoliciesRequestDescriptor instead') +const ListPoliciesRequest$json = { + '1': 'ListPoliciesRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + {'1': 'page_size', '3': 2, '4': 1, '5': 5, '10': 'pageSize'}, + {'1': 'page_token', '3': 3, '4': 1, '5': 9, '10': 'pageToken'}, + ], +}; + +/// Descriptor for `ListPoliciesRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listPoliciesRequestDescriptor = $convert.base64Decode( + 'ChNMaXN0UG9saWNpZXNSZXF1ZXN0EhsKBnBhcmVudBgBIAEoCUID4EECUgZwYXJlbnQSGwoJcG' + 'FnZV9zaXplGAIgASgFUghwYWdlU2l6ZRIdCgpwYWdlX3Rva2VuGAMgASgJUglwYWdlVG9rZW4='); + +@$core.Deprecated('Use listPoliciesResponseDescriptor instead') +const ListPoliciesResponse$json = { + '1': 'ListPoliciesResponse', + '2': [ + { + '1': 'policies', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.iam.v2.Policy', + '10': 'policies' + }, + {'1': 'next_page_token', '3': 2, '4': 1, '5': 9, '10': 'nextPageToken'}, + ], +}; + +/// Descriptor for `ListPoliciesResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listPoliciesResponseDescriptor = $convert.base64Decode( + 'ChRMaXN0UG9saWNpZXNSZXNwb25zZRIxCghwb2xpY2llcxgBIAMoCzIVLmdvb2dsZS5pYW0udj' + 'IuUG9saWN5Ughwb2xpY2llcxImCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9r' + 'ZW4='); + +@$core.Deprecated('Use getPolicyRequestDescriptor instead') +const GetPolicyRequest$json = { + '1': 'GetPolicyRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `GetPolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getPolicyRequestDescriptor = $convert.base64Decode( + 'ChBHZXRQb2xpY3lSZXF1ZXN0EhcKBG5hbWUYASABKAlCA+BBAlIEbmFtZQ=='); + +@$core.Deprecated('Use createPolicyRequestDescriptor instead') +const CreatePolicyRequest$json = { + '1': 'CreatePolicyRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + { + '1': 'policy', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.iam.v2.Policy', + '8': {}, + '10': 'policy' + }, + {'1': 'policy_id', '3': 3, '4': 1, '5': 9, '10': 'policyId'}, + ], +}; + +/// Descriptor for `CreatePolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List createPolicyRequestDescriptor = $convert.base64Decode( + 'ChNDcmVhdGVQb2xpY3lSZXF1ZXN0EhsKBnBhcmVudBgBIAEoCUID4EECUgZwYXJlbnQSMgoGcG' + '9saWN5GAIgASgLMhUuZ29vZ2xlLmlhbS52Mi5Qb2xpY3lCA+BBAlIGcG9saWN5EhsKCXBvbGlj' + 'eV9pZBgDIAEoCVIIcG9saWN5SWQ='); + +@$core.Deprecated('Use updatePolicyRequestDescriptor instead') +const UpdatePolicyRequest$json = { + '1': 'UpdatePolicyRequest', + '2': [ + { + '1': 'policy', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.iam.v2.Policy', + '8': {}, + '10': 'policy' + }, + ], +}; + +/// Descriptor for `UpdatePolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List updatePolicyRequestDescriptor = $convert.base64Decode( + 'ChNVcGRhdGVQb2xpY3lSZXF1ZXN0EjIKBnBvbGljeRgBIAEoCzIVLmdvb2dsZS5pYW0udjIuUG' + '9saWN5QgPgQQJSBnBvbGljeQ=='); + +@$core.Deprecated('Use deletePolicyRequestDescriptor instead') +const DeletePolicyRequest$json = { + '1': 'DeletePolicyRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + {'1': 'etag', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'etag'}, + ], +}; + +/// Descriptor for `DeletePolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List deletePolicyRequestDescriptor = $convert.base64Decode( + 'ChNEZWxldGVQb2xpY3lSZXF1ZXN0EhcKBG5hbWUYASABKAlCA+BBAlIEbmFtZRIXCgRldGFnGA' + 'IgASgJQgPgQQFSBGV0YWc='); + +@$core.Deprecated('Use policyOperationMetadataDescriptor instead') +const PolicyOperationMetadata$json = { + '1': 'PolicyOperationMetadata', + '2': [ + { + '1': 'create_time', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'createTime' + }, + ], +}; + +/// Descriptor for `PolicyOperationMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List policyOperationMetadataDescriptor = + $convert.base64Decode( + 'ChdQb2xpY3lPcGVyYXRpb25NZXRhZGF0YRI7CgtjcmVhdGVfdGltZRgBIAEoCzIaLmdvb2dsZS' + '5wcm90b2J1Zi5UaW1lc3RhbXBSCmNyZWF0ZVRpbWU='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/deny.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/deny.pb.dart new file mode 100644 index 00000000..f6fa8bdc --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/deny.pb.dart @@ -0,0 +1,186 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2beta/deny.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 '../../type/expr.pb.dart' as $114; + +/// A deny rule in an IAM deny policy. +class DenyRule extends $pb.GeneratedMessage { + factory DenyRule({ + $core.Iterable<$core.String>? deniedPrincipals, + $core.Iterable<$core.String>? exceptionPrincipals, + $core.Iterable<$core.String>? deniedPermissions, + $core.Iterable<$core.String>? exceptionPermissions, + $114.Expr? denialCondition, + }) { + final $result = create(); + if (deniedPrincipals != null) { + $result.deniedPrincipals.addAll(deniedPrincipals); + } + if (exceptionPrincipals != null) { + $result.exceptionPrincipals.addAll(exceptionPrincipals); + } + if (deniedPermissions != null) { + $result.deniedPermissions.addAll(deniedPermissions); + } + if (exceptionPermissions != null) { + $result.exceptionPermissions.addAll(exceptionPermissions); + } + if (denialCondition != null) { + $result.denialCondition = denialCondition; + } + return $result; + } + DenyRule._() : super(); + factory DenyRule.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DenyRule.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DenyRule', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2beta'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'deniedPrincipals') + ..pPS(2, _omitFieldNames ? '' : 'exceptionPrincipals') + ..pPS(3, _omitFieldNames ? '' : 'deniedPermissions') + ..pPS(4, _omitFieldNames ? '' : 'exceptionPermissions') + ..aOM<$114.Expr>(5, _omitFieldNames ? '' : 'denialCondition', + subBuilder: $114.Expr.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') + DenyRule clone() => DenyRule()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DenyRule copyWith(void Function(DenyRule) updates) => + super.copyWith((message) => updates(message as DenyRule)) as DenyRule; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DenyRule create() => DenyRule._(); + DenyRule createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DenyRule getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DenyRule? _defaultInstance; + + /// The identities that are prevented from using one or more permissions on + /// Google Cloud resources. This field can contain the following values: + /// + /// * `principalSet://goog/public:all`: A special identifier that represents + /// any principal that is on the internet, even if they do not have a Google + /// Account or are not logged in. + /// + /// * `principal://goog/subject/{email_id}`: A specific Google Account. + /// Includes Gmail, Cloud Identity, and Google Workspace user accounts. For + /// example, `principal://goog/subject/alice@example.com`. + /// + /// * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific + /// Google Account that was deleted recently. For example, + /// `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If + /// the Google Account is recovered, this identifier reverts to the standard + /// identifier for a Google Account. + /// + /// * `principalSet://goog/group/{group_id}`: A Google group. For example, + /// `principalSet://goog/group/admins@example.com`. + /// + /// * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group + /// that was deleted recently. For example, + /// `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If + /// the Google group is restored, this identifier reverts to the standard + /// identifier for a Google group. + /// + /// * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`: + /// A Google Cloud service account. For example, + /// `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`. + /// + /// * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`: + /// A Google Cloud service account that was deleted recently. For example, + /// `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`. + /// If the service account is undeleted, this identifier reverts to the + /// standard identifier for a service account. + /// + /// * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the + /// principals associated with the specified Google Workspace or Cloud + /// Identity customer ID. For example, + /// `principalSet://goog/cloudIdentityCustomerId/C01Abc35`. + @$pb.TagNumber(1) + $core.List<$core.String> get deniedPrincipals => $_getList(0); + + /// The identities that are excluded from the deny rule, even if they are + /// listed in the `denied_principals`. For example, you could add a Google + /// group to the `denied_principals`, then exclude specific users who belong to + /// that group. + /// + /// This field can contain the same values as the `denied_principals` field, + /// excluding `principalSet://goog/public:all`, which represents all users on + /// the internet. + @$pb.TagNumber(2) + $core.List<$core.String> get exceptionPrincipals => $_getList(1); + + /// The permissions that are explicitly denied by this rule. Each permission + /// uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` + /// is the fully qualified domain name for the service. For example, + /// `iam.googleapis.com/roles.list`. + @$pb.TagNumber(3) + $core.List<$core.String> get deniedPermissions => $_getList(2); + + /// Specifies the permissions that this rule excludes from the set of denied + /// permissions given by `denied_permissions`. If a permission appears in + /// `denied_permissions` _and_ in `exception_permissions` then it will _not_ be + /// denied. + /// + /// The excluded permissions can be specified using the same syntax as + /// `denied_permissions`. + @$pb.TagNumber(4) + $core.List<$core.String> get exceptionPermissions => $_getList(3); + + /// The condition that determines whether this deny rule applies to a request. + /// If the condition expression evaluates to `true`, then the deny rule is + /// applied; otherwise, the deny rule is not applied. + /// + /// Each deny rule is evaluated independently. If this deny rule does not apply + /// to a request, other deny rules might still apply. + /// + /// The condition can use CEL functions that evaluate + /// [resource + /// tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other + /// functions and operators are not supported. + @$pb.TagNumber(5) + $114.Expr get denialCondition => $_getN(4); + @$pb.TagNumber(5) + set denialCondition($114.Expr v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasDenialCondition() => $_has(4); + @$pb.TagNumber(5) + void clearDenialCondition() => clearField(5); + @$pb.TagNumber(5) + $114.Expr ensureDenialCondition() => $_ensure(4); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/deny.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/deny.pbenum.dart new file mode 100644 index 00000000..3b2fc898 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/deny.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2beta/deny.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/deny.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/deny.pbjson.dart new file mode 100644 index 00000000..e2af0686 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/deny.pbjson.dart @@ -0,0 +1,65 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2beta/deny.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 denyRuleDescriptor instead') +const DenyRule$json = { + '1': 'DenyRule', + '2': [ + { + '1': 'denied_principals', + '3': 1, + '4': 3, + '5': 9, + '10': 'deniedPrincipals' + }, + { + '1': 'exception_principals', + '3': 2, + '4': 3, + '5': 9, + '10': 'exceptionPrincipals' + }, + { + '1': 'denied_permissions', + '3': 3, + '4': 3, + '5': 9, + '10': 'deniedPermissions' + }, + { + '1': 'exception_permissions', + '3': 4, + '4': 3, + '5': 9, + '10': 'exceptionPermissions' + }, + { + '1': 'denial_condition', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.type.Expr', + '10': 'denialCondition' + }, + ], +}; + +/// Descriptor for `DenyRule`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List denyRuleDescriptor = $convert.base64Decode( + 'CghEZW55UnVsZRIrChFkZW5pZWRfcHJpbmNpcGFscxgBIAMoCVIQZGVuaWVkUHJpbmNpcGFscx' + 'IxChRleGNlcHRpb25fcHJpbmNpcGFscxgCIAMoCVITZXhjZXB0aW9uUHJpbmNpcGFscxItChJk' + 'ZW5pZWRfcGVybWlzc2lvbnMYAyADKAlSEWRlbmllZFBlcm1pc3Npb25zEjMKFWV4Y2VwdGlvbl' + '9wZXJtaXNzaW9ucxgEIAMoCVIUZXhjZXB0aW9uUGVybWlzc2lvbnMSPAoQZGVuaWFsX2NvbmRp' + 'dGlvbhgFIAEoCzIRLmdvb2dsZS50eXBlLkV4cHJSD2RlbmlhbENvbmRpdGlvbg=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pb.dart new file mode 100644 index 00000000..3e169584 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pb.dart @@ -0,0 +1,967 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2beta/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/timestamp.pb.dart' as $50; +import 'deny.pb.dart' as $116; + +/// Data for an IAM policy. +class Policy extends $pb.GeneratedMessage { + factory Policy({ + $core.String? name, + $core.String? uid, + $core.String? kind, + $core.String? displayName, + $core.Map<$core.String, $core.String>? annotations, + $core.String? etag, + $50.Timestamp? createTime, + $50.Timestamp? updateTime, + $50.Timestamp? deleteTime, + $core.Iterable? rules, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (uid != null) { + $result.uid = uid; + } + if (kind != null) { + $result.kind = kind; + } + if (displayName != null) { + $result.displayName = displayName; + } + if (annotations != null) { + $result.annotations.addAll(annotations); + } + if (etag != null) { + $result.etag = etag; + } + if (createTime != null) { + $result.createTime = createTime; + } + if (updateTime != null) { + $result.updateTime = updateTime; + } + if (deleteTime != null) { + $result.deleteTime = deleteTime; + } + if (rules != null) { + $result.rules.addAll(rules); + } + return $result; + } + Policy._() : super(); + factory Policy.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Policy.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Policy', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'uid') + ..aOS(3, _omitFieldNames ? '' : 'kind') + ..aOS(4, _omitFieldNames ? '' : 'displayName') + ..m<$core.String, $core.String>(5, _omitFieldNames ? '' : 'annotations', + entryClassName: 'Policy.AnnotationsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.iam.v2beta')) + ..aOS(6, _omitFieldNames ? '' : 'etag') + ..aOM<$50.Timestamp>(7, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(8, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(9, _omitFieldNames ? '' : 'deleteTime', + subBuilder: $50.Timestamp.create) + ..pc(10, _omitFieldNames ? '' : 'rules', $pb.PbFieldType.PM, + subBuilder: PolicyRule.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') + Policy clone() => Policy()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Policy copyWith(void Function(Policy) updates) => + super.copyWith((message) => updates(message as Policy)) as Policy; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Policy create() => Policy._(); + Policy createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Policy getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Policy? _defaultInstance; + + /// Immutable. The resource name of the `Policy`, which must be unique. Format: + /// `policies/{attachment_point}/denypolicies/{policy_id}` + /// + /// + /// The attachment point is identified by its URL-encoded full resource name, + /// which means that the forward-slash character, `/`, must be written as + /// `%2F`. For example, + /// `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`. + /// + /// For organizations and folders, use the numeric ID in the full resource + /// name. For projects, requests can use the alphanumeric or the numeric ID. + /// Responses always contain the numeric ID. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Immutable. The globally unique ID of the `Policy`. Assigned automatically when the + /// `Policy` is created. + @$pb.TagNumber(2) + $core.String get uid => $_getSZ(1); + @$pb.TagNumber(2) + set uid($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasUid() => $_has(1); + @$pb.TagNumber(2) + void clearUid() => clearField(2); + + /// Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`. + @$pb.TagNumber(3) + $core.String get kind => $_getSZ(2); + @$pb.TagNumber(3) + set kind($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasKind() => $_has(2); + @$pb.TagNumber(3) + void clearKind() => clearField(3); + + /// A user-specified description of the `Policy`. This value can be up to 63 + /// characters. + @$pb.TagNumber(4) + $core.String get displayName => $_getSZ(3); + @$pb.TagNumber(4) + set displayName($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasDisplayName() => $_has(3); + @$pb.TagNumber(4) + void clearDisplayName() => clearField(4); + + /// A key-value map to store arbitrary metadata for the `Policy`. Keys + /// can be up to 63 characters. Values can be up to 255 characters. + @$pb.TagNumber(5) + $core.Map<$core.String, $core.String> get annotations => $_getMap(4); + + /// An opaque tag that identifies the current version of the `Policy`. IAM uses + /// this value to help manage concurrent updates, so they do not cause one + /// update to be overwritten by another. + /// + /// If this field is present in a [CreatePolicy][] request, the value is + /// ignored. + @$pb.TagNumber(6) + $core.String get etag => $_getSZ(5); + @$pb.TagNumber(6) + set etag($core.String v) { + $_setString(5, v); + } + + @$pb.TagNumber(6) + $core.bool hasEtag() => $_has(5); + @$pb.TagNumber(6) + void clearEtag() => clearField(6); + + /// Output only. The time when the `Policy` was created. + @$pb.TagNumber(7) + $50.Timestamp get createTime => $_getN(6); + @$pb.TagNumber(7) + set createTime($50.Timestamp v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasCreateTime() => $_has(6); + @$pb.TagNumber(7) + void clearCreateTime() => clearField(7); + @$pb.TagNumber(7) + $50.Timestamp ensureCreateTime() => $_ensure(6); + + /// Output only. The time when the `Policy` was last updated. + @$pb.TagNumber(8) + $50.Timestamp get updateTime => $_getN(7); + @$pb.TagNumber(8) + set updateTime($50.Timestamp v) { + setField(8, v); + } + + @$pb.TagNumber(8) + $core.bool hasUpdateTime() => $_has(7); + @$pb.TagNumber(8) + void clearUpdateTime() => clearField(8); + @$pb.TagNumber(8) + $50.Timestamp ensureUpdateTime() => $_ensure(7); + + /// Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted. + @$pb.TagNumber(9) + $50.Timestamp get deleteTime => $_getN(8); + @$pb.TagNumber(9) + set deleteTime($50.Timestamp v) { + setField(9, v); + } + + @$pb.TagNumber(9) + $core.bool hasDeleteTime() => $_has(8); + @$pb.TagNumber(9) + void clearDeleteTime() => clearField(9); + @$pb.TagNumber(9) + $50.Timestamp ensureDeleteTime() => $_ensure(8); + + /// A list of rules that specify the behavior of the `Policy`. All of the rules + /// should be of the `kind` specified in the `Policy`. + @$pb.TagNumber(10) + $core.List get rules => $_getList(9); +} + +enum PolicyRule_Kind { denyRule, notSet } + +/// A single rule in a `Policy`. +class PolicyRule extends $pb.GeneratedMessage { + factory PolicyRule({ + $core.String? description, + $116.DenyRule? denyRule, + }) { + final $result = create(); + if (description != null) { + $result.description = description; + } + if (denyRule != null) { + $result.denyRule = denyRule; + } + return $result; + } + PolicyRule._() : super(); + factory PolicyRule.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PolicyRule.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, PolicyRule_Kind> _PolicyRule_KindByTag = { + 2: PolicyRule_Kind.denyRule, + 0: PolicyRule_Kind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PolicyRule', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2beta'), + createEmptyInstance: create) + ..oo(0, [2]) + ..aOS(1, _omitFieldNames ? '' : 'description') + ..aOM<$116.DenyRule>(2, _omitFieldNames ? '' : 'denyRule', + subBuilder: $116.DenyRule.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') + PolicyRule clone() => PolicyRule()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PolicyRule copyWith(void Function(PolicyRule) updates) => + super.copyWith((message) => updates(message as PolicyRule)) as PolicyRule; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PolicyRule create() => PolicyRule._(); + PolicyRule createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PolicyRule getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PolicyRule? _defaultInstance; + + PolicyRule_Kind whichKind() => _PolicyRule_KindByTag[$_whichOneof(0)]!; + void clearKind() => clearField($_whichOneof(0)); + + /// A user-specified description of the rule. This value can be up to 256 + /// characters. + @$pb.TagNumber(1) + $core.String get description => $_getSZ(0); + @$pb.TagNumber(1) + set description($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasDescription() => $_has(0); + @$pb.TagNumber(1) + void clearDescription() => clearField(1); + + /// A rule for a deny policy. + @$pb.TagNumber(2) + $116.DenyRule get denyRule => $_getN(1); + @$pb.TagNumber(2) + set denyRule($116.DenyRule v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasDenyRule() => $_has(1); + @$pb.TagNumber(2) + void clearDenyRule() => clearField(2); + @$pb.TagNumber(2) + $116.DenyRule ensureDenyRule() => $_ensure(1); +} + +/// Request message for `ListPolicies`. +class ListPoliciesRequest extends $pb.GeneratedMessage { + factory ListPoliciesRequest({ + $core.String? parent, + $core.int? pageSize, + $core.String? pageToken, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (pageSize != null) { + $result.pageSize = pageSize; + } + if (pageToken != null) { + $result.pageToken = pageToken; + } + return $result; + } + ListPoliciesRequest._() : super(); + factory ListPoliciesRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListPoliciesRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListPoliciesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListPoliciesRequest clone() => ListPoliciesRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListPoliciesRequest copyWith(void Function(ListPoliciesRequest) updates) => + super.copyWith((message) => updates(message as ListPoliciesRequest)) + as ListPoliciesRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListPoliciesRequest create() => ListPoliciesRequest._(); + ListPoliciesRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListPoliciesRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListPoliciesRequest? _defaultInstance; + + /// Required. The resource that the policy is attached to, along with the kind of policy + /// to list. Format: + /// `policies/{attachment_point}/denypolicies` + /// + /// + /// The attachment point is identified by its URL-encoded full resource name, + /// which means that the forward-slash character, `/`, must be written as + /// `%2F`. For example, + /// `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + /// + /// For organizations and folders, use the numeric ID in the full resource + /// name. For projects, you can use the alphanumeric or the numeric ID. + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// The maximum number of policies to return. IAM ignores this value and uses + /// the value 1000. + @$pb.TagNumber(2) + $core.int get pageSize => $_getIZ(1); + @$pb.TagNumber(2) + set pageSize($core.int v) { + $_setSignedInt32(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPageSize() => $_has(1); + @$pb.TagNumber(2) + void clearPageSize() => clearField(2); + + /// A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to + /// retrieve the next page. + @$pb.TagNumber(3) + $core.String get pageToken => $_getSZ(2); + @$pb.TagNumber(3) + set pageToken($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasPageToken() => $_has(2); + @$pb.TagNumber(3) + void clearPageToken() => clearField(3); +} + +/// Response message for `ListPolicies`. +class ListPoliciesResponse extends $pb.GeneratedMessage { + factory ListPoliciesResponse({ + $core.Iterable? policies, + $core.String? nextPageToken, + }) { + final $result = create(); + if (policies != null) { + $result.policies.addAll(policies); + } + if (nextPageToken != null) { + $result.nextPageToken = nextPageToken; + } + return $result; + } + ListPoliciesResponse._() : super(); + factory ListPoliciesResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListPoliciesResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListPoliciesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2beta'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'policies', $pb.PbFieldType.PM, + subBuilder: Policy.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListPoliciesResponse clone() => + ListPoliciesResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListPoliciesResponse copyWith(void Function(ListPoliciesResponse) updates) => + super.copyWith((message) => updates(message as ListPoliciesResponse)) + as ListPoliciesResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListPoliciesResponse create() => ListPoliciesResponse._(); + ListPoliciesResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListPoliciesResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListPoliciesResponse? _defaultInstance; + + /// Metadata for the policies that are attached to the resource. + @$pb.TagNumber(1) + $core.List get policies => $_getList(0); + + /// A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the + /// next page. If this field is omitted, there are no additional pages. + @$pb.TagNumber(2) + $core.String get nextPageToken => $_getSZ(1); + @$pb.TagNumber(2) + set nextPageToken($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasNextPageToken() => $_has(1); + @$pb.TagNumber(2) + void clearNextPageToken() => clearField(2); +} + +/// Request message for `GetPolicy`. +class GetPolicyRequest extends $pb.GeneratedMessage { + factory GetPolicyRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + GetPolicyRequest._() : super(); + factory GetPolicyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetPolicyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetPolicyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetPolicyRequest clone() => GetPolicyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetPolicyRequest copyWith(void Function(GetPolicyRequest) updates) => + super.copyWith((message) => updates(message as GetPolicyRequest)) + as GetPolicyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetPolicyRequest create() => GetPolicyRequest._(); + GetPolicyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetPolicyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetPolicyRequest? _defaultInstance; + + /// Required. The resource name of the policy to retrieve. Format: + /// `policies/{attachment_point}/denypolicies/{policy_id}` + /// + /// + /// Use the URL-encoded full resource name, which means that the forward-slash + /// character, `/`, must be written as `%2F`. For example, + /// `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`. + /// + /// For organizations and folders, use the numeric ID in the full resource + /// name. For projects, you can use the alphanumeric or the numeric ID. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// Request message for `CreatePolicy`. +class CreatePolicyRequest extends $pb.GeneratedMessage { + factory CreatePolicyRequest({ + $core.String? parent, + Policy? policy, + $core.String? policyId, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (policy != null) { + $result.policy = policy; + } + if (policyId != null) { + $result.policyId = policyId; + } + return $result; + } + CreatePolicyRequest._() : super(); + factory CreatePolicyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CreatePolicyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreatePolicyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM(2, _omitFieldNames ? '' : 'policy', subBuilder: Policy.create) + ..aOS(3, _omitFieldNames ? '' : 'policyId') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CreatePolicyRequest clone() => CreatePolicyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CreatePolicyRequest copyWith(void Function(CreatePolicyRequest) updates) => + super.copyWith((message) => updates(message as CreatePolicyRequest)) + as CreatePolicyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CreatePolicyRequest create() => CreatePolicyRequest._(); + CreatePolicyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CreatePolicyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CreatePolicyRequest? _defaultInstance; + + /// Required. The resource that the policy is attached to, along with the kind of policy + /// to create. Format: `policies/{attachment_point}/denypolicies` + /// + /// + /// The attachment point is identified by its URL-encoded full resource name, + /// which means that the forward-slash character, `/`, must be written as + /// `%2F`. For example, + /// `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + /// + /// For organizations and folders, use the numeric ID in the full resource + /// name. For projects, you can use the alphanumeric or the numeric ID. + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// Required. The policy to create. + @$pb.TagNumber(2) + Policy get policy => $_getN(1); + @$pb.TagNumber(2) + set policy(Policy v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasPolicy() => $_has(1); + @$pb.TagNumber(2) + void clearPolicy() => clearField(2); + @$pb.TagNumber(2) + Policy ensurePolicy() => $_ensure(1); + + /// The ID to use for this policy, which will become the final component of + /// the policy's resource name. The ID must contain 3 to 63 characters. It can + /// contain lowercase letters and numbers, as well as dashes (`-`) and periods + /// (`.`). The first character must be a lowercase letter. + @$pb.TagNumber(3) + $core.String get policyId => $_getSZ(2); + @$pb.TagNumber(3) + set policyId($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasPolicyId() => $_has(2); + @$pb.TagNumber(3) + void clearPolicyId() => clearField(3); +} + +/// Request message for `UpdatePolicy`. +class UpdatePolicyRequest extends $pb.GeneratedMessage { + factory UpdatePolicyRequest({ + Policy? policy, + }) { + final $result = create(); + if (policy != null) { + $result.policy = policy; + } + return $result; + } + UpdatePolicyRequest._() : super(); + factory UpdatePolicyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdatePolicyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdatePolicyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2beta'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'policy', subBuilder: Policy.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') + UpdatePolicyRequest clone() => UpdatePolicyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdatePolicyRequest copyWith(void Function(UpdatePolicyRequest) updates) => + super.copyWith((message) => updates(message as UpdatePolicyRequest)) + as UpdatePolicyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdatePolicyRequest create() => UpdatePolicyRequest._(); + UpdatePolicyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UpdatePolicyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static UpdatePolicyRequest? _defaultInstance; + + /// Required. The policy to update. + /// + /// To prevent conflicting updates, the `etag` value must match the value that + /// is stored in IAM. If the `etag` values do not match, the request fails with + /// a `409` error code and `ABORTED` status. + @$pb.TagNumber(1) + Policy get policy => $_getN(0); + @$pb.TagNumber(1) + set policy(Policy v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasPolicy() => $_has(0); + @$pb.TagNumber(1) + void clearPolicy() => clearField(1); + @$pb.TagNumber(1) + Policy ensurePolicy() => $_ensure(0); +} + +/// Request message for `DeletePolicy`. +class DeletePolicyRequest extends $pb.GeneratedMessage { + factory DeletePolicyRequest({ + $core.String? name, + $core.String? etag, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (etag != null) { + $result.etag = etag; + } + return $result; + } + DeletePolicyRequest._() : super(); + factory DeletePolicyRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DeletePolicyRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeletePolicyRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2beta'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'etag') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeletePolicyRequest clone() => DeletePolicyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeletePolicyRequest copyWith(void Function(DeletePolicyRequest) updates) => + super.copyWith((message) => updates(message as DeletePolicyRequest)) + as DeletePolicyRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DeletePolicyRequest create() => DeletePolicyRequest._(); + DeletePolicyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DeletePolicyRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static DeletePolicyRequest? _defaultInstance; + + /// Required. The resource name of the policy to delete. Format: + /// `policies/{attachment_point}/denypolicies/{policy_id}` + /// + /// + /// Use the URL-encoded full resource name, which means that the forward-slash + /// character, `/`, must be written as `%2F`. For example, + /// `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`. + /// + /// For organizations and folders, use the numeric ID in the full resource + /// name. For projects, you can use the alphanumeric or the numeric ID. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Optional. The expected `etag` of the policy to delete. If the value does not match + /// the value that is stored in IAM, the request fails with a `409` error code + /// and `ABORTED` status. + /// + /// If you omit this field, the policy is deleted regardless of its current + /// `etag`. + @$pb.TagNumber(2) + $core.String get etag => $_getSZ(1); + @$pb.TagNumber(2) + set etag($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasEtag() => $_has(1); + @$pb.TagNumber(2) + void clearEtag() => clearField(2); +} + +/// Metadata for long-running `Policy` operations. +class PolicyOperationMetadata extends $pb.GeneratedMessage { + factory PolicyOperationMetadata({ + $50.Timestamp? createTime, + }) { + final $result = create(); + if (createTime != null) { + $result.createTime = createTime; + } + return $result; + } + PolicyOperationMetadata._() : super(); + factory PolicyOperationMetadata.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory PolicyOperationMetadata.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PolicyOperationMetadata', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.iam.v2beta'), + createEmptyInstance: create) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.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') + PolicyOperationMetadata clone() => + PolicyOperationMetadata()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PolicyOperationMetadata copyWith( + void Function(PolicyOperationMetadata) updates) => + super.copyWith((message) => updates(message as PolicyOperationMetadata)) + as PolicyOperationMetadata; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PolicyOperationMetadata create() => PolicyOperationMetadata._(); + PolicyOperationMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static PolicyOperationMetadata getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PolicyOperationMetadata? _defaultInstance; + + /// Timestamp when the `google.longrunning.Operation` was created. + @$pb.TagNumber(1) + $50.Timestamp get createTime => $_getN(0); + @$pb.TagNumber(1) + set createTime($50.Timestamp v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCreateTime() => $_has(0); + @$pb.TagNumber(1) + void clearCreateTime() => clearField(1); + @$pb.TagNumber(1) + $50.Timestamp ensureCreateTime() => $_ensure(0); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pbenum.dart new file mode 100644 index 00000000..678eaba5 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pbenum.dart @@ -0,0 +1,10 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2beta/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pbgrpc.dart new file mode 100644 index 00000000..5c74027f --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pbgrpc.dart @@ -0,0 +1,170 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2beta/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; +import 'dart:core' as $core; + +import 'package:grpc/service_api.dart' as $grpc; +import 'package:protobuf/protobuf.dart' as $pb; + +import '../../longrunning/operations.pb.dart' as $0; +import 'policy.pb.dart' as $46; + +export 'policy.pb.dart'; + +@$pb.GrpcServiceName('google.iam.v2beta.Policies') +class PoliciesClient extends $grpc.Client { + static final _$listPolicies = + $grpc.ClientMethod<$46.ListPoliciesRequest, $46.ListPoliciesResponse>( + '/google.iam.v2beta.Policies/ListPolicies', + ($46.ListPoliciesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $46.ListPoliciesResponse.fromBuffer(value)); + static final _$getPolicy = + $grpc.ClientMethod<$46.GetPolicyRequest, $46.Policy>( + '/google.iam.v2beta.Policies/GetPolicy', + ($46.GetPolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $46.Policy.fromBuffer(value)); + static final _$createPolicy = + $grpc.ClientMethod<$46.CreatePolicyRequest, $0.Operation>( + '/google.iam.v2beta.Policies/CreatePolicy', + ($46.CreatePolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$updatePolicy = + $grpc.ClientMethod<$46.UpdatePolicyRequest, $0.Operation>( + '/google.iam.v2beta.Policies/UpdatePolicy', + ($46.UpdatePolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$deletePolicy = + $grpc.ClientMethod<$46.DeletePolicyRequest, $0.Operation>( + '/google.iam.v2beta.Policies/DeletePolicy', + ($46.DeletePolicyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + + PoliciesClient($grpc.ClientChannel channel, + {$grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors}) + : super(channel, options: options, interceptors: interceptors); + + $grpc.ResponseFuture<$46.ListPoliciesResponse> listPolicies( + $46.ListPoliciesRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$listPolicies, request, options: options); + } + + $grpc.ResponseFuture<$46.Policy> getPolicy($46.GetPolicyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getPolicy, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> createPolicy( + $46.CreatePolicyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$createPolicy, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> updatePolicy( + $46.UpdatePolicyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$updatePolicy, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> deletePolicy( + $46.DeletePolicyRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$deletePolicy, request, options: options); + } +} + +@$pb.GrpcServiceName('google.iam.v2beta.Policies') +abstract class PoliciesServiceBase extends $grpc.Service { + $core.String get $name => 'google.iam.v2beta.Policies'; + + PoliciesServiceBase() { + $addMethod( + $grpc.ServiceMethod<$46.ListPoliciesRequest, $46.ListPoliciesResponse>( + 'ListPolicies', + listPolicies_Pre, + false, + false, + ($core.List<$core.int> value) => + $46.ListPoliciesRequest.fromBuffer(value), + ($46.ListPoliciesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$46.GetPolicyRequest, $46.Policy>( + 'GetPolicy', + getPolicy_Pre, + false, + false, + ($core.List<$core.int> value) => $46.GetPolicyRequest.fromBuffer(value), + ($46.Policy value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$46.CreatePolicyRequest, $0.Operation>( + 'CreatePolicy', + createPolicy_Pre, + false, + false, + ($core.List<$core.int> value) => + $46.CreatePolicyRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$46.UpdatePolicyRequest, $0.Operation>( + 'UpdatePolicy', + updatePolicy_Pre, + false, + false, + ($core.List<$core.int> value) => + $46.UpdatePolicyRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$46.DeletePolicyRequest, $0.Operation>( + 'DeletePolicy', + deletePolicy_Pre, + false, + false, + ($core.List<$core.int> value) => + $46.DeletePolicyRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + } + + $async.Future<$46.ListPoliciesResponse> listPolicies_Pre( + $grpc.ServiceCall call, + $async.Future<$46.ListPoliciesRequest> request) async { + return listPolicies(call, await request); + } + + $async.Future<$46.Policy> getPolicy_Pre($grpc.ServiceCall call, + $async.Future<$46.GetPolicyRequest> request) async { + return getPolicy(call, await request); + } + + $async.Future<$0.Operation> createPolicy_Pre($grpc.ServiceCall call, + $async.Future<$46.CreatePolicyRequest> request) async { + return createPolicy(call, await request); + } + + $async.Future<$0.Operation> updatePolicy_Pre($grpc.ServiceCall call, + $async.Future<$46.UpdatePolicyRequest> request) async { + return updatePolicy(call, await request); + } + + $async.Future<$0.Operation> deletePolicy_Pre($grpc.ServiceCall call, + $async.Future<$46.DeletePolicyRequest> request) async { + return deletePolicy(call, await request); + } + + $async.Future<$46.ListPoliciesResponse> listPolicies( + $grpc.ServiceCall call, $46.ListPoliciesRequest request); + $async.Future<$46.Policy> getPolicy( + $grpc.ServiceCall call, $46.GetPolicyRequest request); + $async.Future<$0.Operation> createPolicy( + $grpc.ServiceCall call, $46.CreatePolicyRequest request); + $async.Future<$0.Operation> updatePolicy( + $grpc.ServiceCall call, $46.UpdatePolicyRequest request); + $async.Future<$0.Operation> deletePolicy( + $grpc.ServiceCall call, $46.DeletePolicyRequest request); +} diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pbjson.dart new file mode 100644 index 00000000..7705fd6e --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/iam/v2beta/policy.pbjson.dart @@ -0,0 +1,248 @@ +// +// Generated code. Do not modify. +// source: google/iam/v2beta/policy.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 policyDescriptor instead') +const Policy$json = { + '1': 'Policy', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + {'1': 'uid', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'uid'}, + {'1': 'kind', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'kind'}, + {'1': 'display_name', '3': 4, '4': 1, '5': 9, '10': 'displayName'}, + { + '1': 'annotations', + '3': 5, + '4': 3, + '5': 11, + '6': '.google.iam.v2beta.Policy.AnnotationsEntry', + '10': 'annotations' + }, + {'1': 'etag', '3': 6, '4': 1, '5': 9, '10': 'etag'}, + { + '1': 'create_time', + '3': 7, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'createTime' + }, + { + '1': 'update_time', + '3': 8, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'updateTime' + }, + { + '1': 'delete_time', + '3': 9, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'deleteTime' + }, + { + '1': 'rules', + '3': 10, + '4': 3, + '5': 11, + '6': '.google.iam.v2beta.PolicyRule', + '10': 'rules' + }, + ], + '3': [Policy_AnnotationsEntry$json], +}; + +@$core.Deprecated('Use policyDescriptor instead') +const Policy_AnnotationsEntry$json = { + '1': 'AnnotationsEntry', + '2': [ + {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], + '7': {'7': true}, +}; + +/// Descriptor for `Policy`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List policyDescriptor = $convert.base64Decode( + 'CgZQb2xpY3kSFwoEbmFtZRgBIAEoCUID4EEFUgRuYW1lEhUKA3VpZBgCIAEoCUID4EEFUgN1aW' + 'QSFwoEa2luZBgDIAEoCUID4EEDUgRraW5kEiEKDGRpc3BsYXlfbmFtZRgEIAEoCVILZGlzcGxh' + 'eU5hbWUSTAoLYW5ub3RhdGlvbnMYBSADKAsyKi5nb29nbGUuaWFtLnYyYmV0YS5Qb2xpY3kuQW' + '5ub3RhdGlvbnNFbnRyeVILYW5ub3RhdGlvbnMSEgoEZXRhZxgGIAEoCVIEZXRhZxJACgtjcmVh' + 'dGVfdGltZRgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBA1IKY3JlYXRlVG' + 'ltZRJACgt1cGRhdGVfdGltZRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB' + 'A1IKdXBkYXRlVGltZRJACgtkZWxldGVfdGltZRgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW' + '1lc3RhbXBCA+BBA1IKZGVsZXRlVGltZRIzCgVydWxlcxgKIAMoCzIdLmdvb2dsZS5pYW0udjJi' + 'ZXRhLlBvbGljeVJ1bGVSBXJ1bGVzGj4KEEFubm90YXRpb25zRW50cnkSEAoDa2V5GAEgASgJUg' + 'NrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + +@$core.Deprecated('Use policyRuleDescriptor instead') +const PolicyRule$json = { + '1': 'PolicyRule', + '2': [ + { + '1': 'deny_rule', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.iam.v2beta.DenyRule', + '9': 0, + '10': 'denyRule' + }, + {'1': 'description', '3': 1, '4': 1, '5': 9, '10': 'description'}, + ], + '8': [ + {'1': 'kind'}, + ], +}; + +/// Descriptor for `PolicyRule`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List policyRuleDescriptor = $convert.base64Decode( + 'CgpQb2xpY3lSdWxlEjoKCWRlbnlfcnVsZRgCIAEoCzIbLmdvb2dsZS5pYW0udjJiZXRhLkRlbn' + 'lSdWxlSABSCGRlbnlSdWxlEiAKC2Rlc2NyaXB0aW9uGAEgASgJUgtkZXNjcmlwdGlvbkIGCgRr' + 'aW5k'); + +@$core.Deprecated('Use listPoliciesRequestDescriptor instead') +const ListPoliciesRequest$json = { + '1': 'ListPoliciesRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + {'1': 'page_size', '3': 2, '4': 1, '5': 5, '10': 'pageSize'}, + {'1': 'page_token', '3': 3, '4': 1, '5': 9, '10': 'pageToken'}, + ], +}; + +/// Descriptor for `ListPoliciesRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listPoliciesRequestDescriptor = $convert.base64Decode( + 'ChNMaXN0UG9saWNpZXNSZXF1ZXN0EhsKBnBhcmVudBgBIAEoCUID4EECUgZwYXJlbnQSGwoJcG' + 'FnZV9zaXplGAIgASgFUghwYWdlU2l6ZRIdCgpwYWdlX3Rva2VuGAMgASgJUglwYWdlVG9rZW4='); + +@$core.Deprecated('Use listPoliciesResponseDescriptor instead') +const ListPoliciesResponse$json = { + '1': 'ListPoliciesResponse', + '2': [ + { + '1': 'policies', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.iam.v2beta.Policy', + '10': 'policies' + }, + {'1': 'next_page_token', '3': 2, '4': 1, '5': 9, '10': 'nextPageToken'}, + ], +}; + +/// Descriptor for `ListPoliciesResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listPoliciesResponseDescriptor = $convert.base64Decode( + 'ChRMaXN0UG9saWNpZXNSZXNwb25zZRI1Cghwb2xpY2llcxgBIAMoCzIZLmdvb2dsZS5pYW0udj' + 'JiZXRhLlBvbGljeVIIcG9saWNpZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFn' + 'ZVRva2Vu'); + +@$core.Deprecated('Use getPolicyRequestDescriptor instead') +const GetPolicyRequest$json = { + '1': 'GetPolicyRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `GetPolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getPolicyRequestDescriptor = $convert.base64Decode( + 'ChBHZXRQb2xpY3lSZXF1ZXN0EhcKBG5hbWUYASABKAlCA+BBAlIEbmFtZQ=='); + +@$core.Deprecated('Use createPolicyRequestDescriptor instead') +const CreatePolicyRequest$json = { + '1': 'CreatePolicyRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + { + '1': 'policy', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.iam.v2beta.Policy', + '8': {}, + '10': 'policy' + }, + {'1': 'policy_id', '3': 3, '4': 1, '5': 9, '10': 'policyId'}, + ], +}; + +/// Descriptor for `CreatePolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List createPolicyRequestDescriptor = $convert.base64Decode( + 'ChNDcmVhdGVQb2xpY3lSZXF1ZXN0EhsKBnBhcmVudBgBIAEoCUID4EECUgZwYXJlbnQSNgoGcG' + '9saWN5GAIgASgLMhkuZ29vZ2xlLmlhbS52MmJldGEuUG9saWN5QgPgQQJSBnBvbGljeRIbCglw' + 'b2xpY3lfaWQYAyABKAlSCHBvbGljeUlk'); + +@$core.Deprecated('Use updatePolicyRequestDescriptor instead') +const UpdatePolicyRequest$json = { + '1': 'UpdatePolicyRequest', + '2': [ + { + '1': 'policy', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.iam.v2beta.Policy', + '8': {}, + '10': 'policy' + }, + ], +}; + +/// Descriptor for `UpdatePolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List updatePolicyRequestDescriptor = $convert.base64Decode( + 'ChNVcGRhdGVQb2xpY3lSZXF1ZXN0EjYKBnBvbGljeRgBIAEoCzIZLmdvb2dsZS5pYW0udjJiZX' + 'RhLlBvbGljeUID4EECUgZwb2xpY3k='); + +@$core.Deprecated('Use deletePolicyRequestDescriptor instead') +const DeletePolicyRequest$json = { + '1': 'DeletePolicyRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + {'1': 'etag', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'etag'}, + ], +}; + +/// Descriptor for `DeletePolicyRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List deletePolicyRequestDescriptor = $convert.base64Decode( + 'ChNEZWxldGVQb2xpY3lSZXF1ZXN0EhcKBG5hbWUYASABKAlCA+BBAlIEbmFtZRIXCgRldGFnGA' + 'IgASgJQgPgQQFSBGV0YWc='); + +@$core.Deprecated('Use policyOperationMetadataDescriptor instead') +const PolicyOperationMetadata$json = { + '1': 'PolicyOperationMetadata', + '2': [ + { + '1': 'create_time', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'createTime' + }, + ], +}; + +/// Descriptor for `PolicyOperationMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List policyOperationMetadataDescriptor = + $convert.base64Decode( + 'ChdQb2xpY3lPcGVyYXRpb25NZXRhZGF0YRI7CgtjcmVhdGVfdGltZRgBIAEoCzIaLmdvb2dsZS' + '5wcm90b2J1Zi5UaW1lc3RhbXBSCmNyZWF0ZVRpbWU='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pb.dart index 40741cda..b78888d3 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pb.dart @@ -1,60 +1,25 @@ -/// +// // Generated code. Do not modify. // source: google/logging/type/http_request.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../protobuf/duration.pb.dart' as $0; +import '../../protobuf/duration.pb.dart' as $51; +/// A common proto for logging HTTP requests. Only contains semantics +/// defined by the HTTP specification. Product-specific logging +/// information MUST be defined in a separate message. class HttpRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'HttpRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.type'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requestMethod') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requestUrl') - ..aInt64( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requestSize') - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'status', - $pb.PbFieldType.O3) - ..aInt64(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'responseSize') - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'userAgent') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'remoteIp') - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'referer') - ..aOB(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cacheHit') - ..aOB(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cacheValidatedWithOriginServer') - ..aOB(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cacheLookup') - ..aInt64(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cacheFillBytes') - ..aOS(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serverIp') - ..aOM<$0.Duration>(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'latency', subBuilder: $0.Duration.create) - ..aOS(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'protocol') - ..hasRequiredFields = false; - - HttpRequest._() : super(); factory HttpRequest({ $core.String? requestMethod, $core.String? requestUrl, @@ -69,63 +34,88 @@ class HttpRequest extends $pb.GeneratedMessage { $core.bool? cacheLookup, $fixnum.Int64? cacheFillBytes, $core.String? serverIp, - $0.Duration? latency, + $51.Duration? latency, $core.String? protocol, }) { - final _result = create(); + final $result = create(); if (requestMethod != null) { - _result.requestMethod = requestMethod; + $result.requestMethod = requestMethod; } if (requestUrl != null) { - _result.requestUrl = requestUrl; + $result.requestUrl = requestUrl; } if (requestSize != null) { - _result.requestSize = requestSize; + $result.requestSize = requestSize; } if (status != null) { - _result.status = status; + $result.status = status; } if (responseSize != null) { - _result.responseSize = responseSize; + $result.responseSize = responseSize; } if (userAgent != null) { - _result.userAgent = userAgent; + $result.userAgent = userAgent; } if (remoteIp != null) { - _result.remoteIp = remoteIp; + $result.remoteIp = remoteIp; } if (referer != null) { - _result.referer = referer; + $result.referer = referer; } if (cacheHit != null) { - _result.cacheHit = cacheHit; + $result.cacheHit = cacheHit; } if (cacheValidatedWithOriginServer != null) { - _result.cacheValidatedWithOriginServer = cacheValidatedWithOriginServer; + $result.cacheValidatedWithOriginServer = cacheValidatedWithOriginServer; } if (cacheLookup != null) { - _result.cacheLookup = cacheLookup; + $result.cacheLookup = cacheLookup; } if (cacheFillBytes != null) { - _result.cacheFillBytes = cacheFillBytes; + $result.cacheFillBytes = cacheFillBytes; } if (serverIp != null) { - _result.serverIp = serverIp; + $result.serverIp = serverIp; } if (latency != null) { - _result.latency = latency; + $result.latency = latency; } if (protocol != null) { - _result.protocol = protocol; + $result.protocol = protocol; } - return _result; + return $result; } + HttpRequest._() : super(); factory HttpRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory HttpRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'HttpRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.type'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'requestMethod') + ..aOS(2, _omitFieldNames ? '' : 'requestUrl') + ..aInt64(3, _omitFieldNames ? '' : 'requestSize') + ..a<$core.int>(4, _omitFieldNames ? '' : 'status', $pb.PbFieldType.O3) + ..aInt64(5, _omitFieldNames ? '' : 'responseSize') + ..aOS(6, _omitFieldNames ? '' : 'userAgent') + ..aOS(7, _omitFieldNames ? '' : 'remoteIp') + ..aOS(8, _omitFieldNames ? '' : 'referer') + ..aOB(9, _omitFieldNames ? '' : 'cacheHit') + ..aOB(10, _omitFieldNames ? '' : 'cacheValidatedWithOriginServer') + ..aOB(11, _omitFieldNames ? '' : 'cacheLookup') + ..aInt64(12, _omitFieldNames ? '' : 'cacheFillBytes') + ..aOS(13, _omitFieldNames ? '' : 'serverIp') + ..aOM<$51.Duration>(14, _omitFieldNames ? '' : 'latency', + subBuilder: $51.Duration.create) + ..aOS(15, _omitFieldNames ? '' : 'protocol') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -135,8 +125,10 @@ class HttpRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') HttpRequest copyWith(void Function(HttpRequest) updates) => super.copyWith((message) => updates(message as HttpRequest)) - as HttpRequest; // ignore: deprecated_member_use + as HttpRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static HttpRequest create() => HttpRequest._(); HttpRequest createEmptyInstance() => create(); @@ -146,6 +138,7 @@ class HttpRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static HttpRequest? _defaultInstance; + /// The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. @$pb.TagNumber(1) $core.String get requestMethod => $_getSZ(0); @$pb.TagNumber(1) @@ -158,6 +151,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearRequestMethod() => clearField(1); + /// The scheme (http, https), the host name, the path and the query + /// portion of the URL that was requested. + /// Example: `"http://example.com/some/info?color=red"`. @$pb.TagNumber(2) $core.String get requestUrl => $_getSZ(1); @$pb.TagNumber(2) @@ -170,6 +166,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRequestUrl() => clearField(2); + /// The size of the HTTP request message in bytes, including the request + /// headers and the request body. @$pb.TagNumber(3) $fixnum.Int64 get requestSize => $_getI64(2); @$pb.TagNumber(3) @@ -182,6 +180,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearRequestSize() => clearField(3); + /// The response code indicating the status of response. + /// Examples: 200, 404. @$pb.TagNumber(4) $core.int get status => $_getIZ(3); @$pb.TagNumber(4) @@ -194,6 +194,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearStatus() => clearField(4); + /// The size of the HTTP response message sent back to the client, in bytes, + /// including the response headers and the response body. @$pb.TagNumber(5) $fixnum.Int64 get responseSize => $_getI64(4); @$pb.TagNumber(5) @@ -206,6 +208,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearResponseSize() => clearField(5); + /// The user agent sent by the client. Example: + /// `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + /// CLR 1.0.3705)"`. @$pb.TagNumber(6) $core.String get userAgent => $_getSZ(5); @$pb.TagNumber(6) @@ -218,6 +223,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearUserAgent() => clearField(6); + /// The IP address (IPv4 or IPv6) of the client that issued the HTTP + /// request. This field can include port information. Examples: + /// `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. @$pb.TagNumber(7) $core.String get remoteIp => $_getSZ(6); @$pb.TagNumber(7) @@ -230,6 +238,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearRemoteIp() => clearField(7); + /// The referer URL of the request, as defined in + /// [HTTP/1.1 Header Field + /// Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). @$pb.TagNumber(8) $core.String get referer => $_getSZ(7); @$pb.TagNumber(8) @@ -242,6 +253,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearReferer() => clearField(8); + /// Whether or not an entity was served from cache + /// (with or without validation). @$pb.TagNumber(9) $core.bool get cacheHit => $_getBF(8); @$pb.TagNumber(9) @@ -254,6 +267,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearCacheHit() => clearField(9); + /// Whether or not the response was validated with the origin server before + /// being served from cache. This field is only meaningful if `cache_hit` is + /// True. @$pb.TagNumber(10) $core.bool get cacheValidatedWithOriginServer => $_getBF(9); @$pb.TagNumber(10) @@ -266,6 +282,7 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearCacheValidatedWithOriginServer() => clearField(10); + /// Whether or not a cache lookup was attempted. @$pb.TagNumber(11) $core.bool get cacheLookup => $_getBF(10); @$pb.TagNumber(11) @@ -278,6 +295,8 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearCacheLookup() => clearField(11); + /// The number of HTTP response bytes inserted into cache. Set only when a + /// cache fill was attempted. @$pb.TagNumber(12) $fixnum.Int64 get cacheFillBytes => $_getI64(11); @$pb.TagNumber(12) @@ -290,6 +309,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearCacheFillBytes() => clearField(12); + /// The IP address (IPv4 or IPv6) of the origin server that the request was + /// sent to. This field can include port information. Examples: + /// `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. @$pb.TagNumber(13) $core.String get serverIp => $_getSZ(12); @$pb.TagNumber(13) @@ -302,10 +324,12 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(13) void clearServerIp() => clearField(13); + /// The request processing latency on the server, from the time the request was + /// received until the response was sent. @$pb.TagNumber(14) - $0.Duration get latency => $_getN(13); + $51.Duration get latency => $_getN(13); @$pb.TagNumber(14) - set latency($0.Duration v) { + set latency($51.Duration v) { setField(14, v); } @@ -314,8 +338,9 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearLatency() => clearField(14); @$pb.TagNumber(14) - $0.Duration ensureLatency() => $_ensure(13); + $51.Duration ensureLatency() => $_ensure(13); + /// Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" @$pb.TagNumber(15) $core.String get protocol => $_getSZ(14); @$pb.TagNumber(15) @@ -328,3 +353,7 @@ class HttpRequest extends $pb.GeneratedMessage { @$pb.TagNumber(15) void clearProtocol() => clearField(15); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pbenum.dart index a77cd9e9..fc82b412 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/logging/type/http_request.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pbjson.dart index 61f1081a..8cb06df6 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/http_request.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/logging/type/http_request.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 httpRequestDescriptor instead') @@ -46,4 +50,14 @@ const HttpRequest$json = { /// Descriptor for `HttpRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List httpRequestDescriptor = $convert.base64Decode( - 'CgtIdHRwUmVxdWVzdBIlCg5yZXF1ZXN0X21ldGhvZBgBIAEoCVINcmVxdWVzdE1ldGhvZBIfCgtyZXF1ZXN0X3VybBgCIAEoCVIKcmVxdWVzdFVybBIhCgxyZXF1ZXN0X3NpemUYAyABKANSC3JlcXVlc3RTaXplEhYKBnN0YXR1cxgEIAEoBVIGc3RhdHVzEiMKDXJlc3BvbnNlX3NpemUYBSABKANSDHJlc3BvbnNlU2l6ZRIdCgp1c2VyX2FnZW50GAYgASgJUgl1c2VyQWdlbnQSGwoJcmVtb3RlX2lwGAcgASgJUghyZW1vdGVJcBIbCglzZXJ2ZXJfaXAYDSABKAlSCHNlcnZlcklwEhgKB3JlZmVyZXIYCCABKAlSB3JlZmVyZXISMwoHbGF0ZW5jeRgOIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvblIHbGF0ZW5jeRIhCgxjYWNoZV9sb29rdXAYCyABKAhSC2NhY2hlTG9va3VwEhsKCWNhY2hlX2hpdBgJIAEoCFIIY2FjaGVIaXQSSgoiY2FjaGVfdmFsaWRhdGVkX3dpdGhfb3JpZ2luX3NlcnZlchgKIAEoCFIeY2FjaGVWYWxpZGF0ZWRXaXRoT3JpZ2luU2VydmVyEigKEGNhY2hlX2ZpbGxfYnl0ZXMYDCABKANSDmNhY2hlRmlsbEJ5dGVzEhoKCHByb3RvY29sGA8gASgJUghwcm90b2NvbA=='); + 'CgtIdHRwUmVxdWVzdBIlCg5yZXF1ZXN0X21ldGhvZBgBIAEoCVINcmVxdWVzdE1ldGhvZBIfCg' + 'tyZXF1ZXN0X3VybBgCIAEoCVIKcmVxdWVzdFVybBIhCgxyZXF1ZXN0X3NpemUYAyABKANSC3Jl' + 'cXVlc3RTaXplEhYKBnN0YXR1cxgEIAEoBVIGc3RhdHVzEiMKDXJlc3BvbnNlX3NpemUYBSABKA' + 'NSDHJlc3BvbnNlU2l6ZRIdCgp1c2VyX2FnZW50GAYgASgJUgl1c2VyQWdlbnQSGwoJcmVtb3Rl' + 'X2lwGAcgASgJUghyZW1vdGVJcBIbCglzZXJ2ZXJfaXAYDSABKAlSCHNlcnZlcklwEhgKB3JlZm' + 'VyZXIYCCABKAlSB3JlZmVyZXISMwoHbGF0ZW5jeRgOIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5E' + 'dXJhdGlvblIHbGF0ZW5jeRIhCgxjYWNoZV9sb29rdXAYCyABKAhSC2NhY2hlTG9va3VwEhsKCW' + 'NhY2hlX2hpdBgJIAEoCFIIY2FjaGVIaXQSSgoiY2FjaGVfdmFsaWRhdGVkX3dpdGhfb3JpZ2lu' + 'X3NlcnZlchgKIAEoCFIeY2FjaGVWYWxpZGF0ZWRXaXRoT3JpZ2luU2VydmVyEigKEGNhY2hlX2' + 'ZpbGxfYnl0ZXMYDCABKANSDmNhY2hlRmlsbEJ5dGVzEhoKCHByb3RvY29sGA8gASgJUghwcm90' + 'b2NvbA=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pb.dart index 48a8d391..da0684fc 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/logging/type/log_severity.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pbenum.dart index 2835443b..f9816c97 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pbenum.dart @@ -1,36 +1,52 @@ -/// +// // Generated code. Do not modify. // source: google/logging/type/log_severity.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The severity of the event described in a log entry, expressed as one of the +/// standard severity levels listed below. For your reference, the levels are +/// assigned the listed numeric values. The effect of using numeric values other +/// than those listed is undefined. +/// +/// You can filter for log entries by severity. For example, the following +/// filter expression will match log entries with severities `INFO`, `NOTICE`, +/// and `WARNING`: +/// +/// severity > DEBUG AND severity <= WARNING +/// +/// If you are writing log entries, you should map other severity encodings to +/// one of these standard levels. For example, you might map all of Java's FINE, +/// FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the +/// original severity level in the log entry payload if you wish. class LogSeverity extends $pb.ProtobufEnum { - static const LogSeverity DEFAULT = LogSeverity._(0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DEFAULT'); - static const LogSeverity DEBUG = LogSeverity._(100, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'DEBUG'); - static const LogSeverity INFO = LogSeverity._(200, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'INFO'); - static const LogSeverity NOTICE = LogSeverity._(300, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'NOTICE'); - static const LogSeverity WARNING = LogSeverity._(400, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WARNING'); - static const LogSeverity ERROR = LogSeverity._(500, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ERROR'); - static const LogSeverity CRITICAL = LogSeverity._(600, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CRITICAL'); - static const LogSeverity ALERT = LogSeverity._(700, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ALERT'); - static const LogSeverity EMERGENCY = LogSeverity._( - 800, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'EMERGENCY'); + static const LogSeverity DEFAULT = + LogSeverity._(0, _omitEnumNames ? '' : 'DEFAULT'); + static const LogSeverity DEBUG = + LogSeverity._(100, _omitEnumNames ? '' : 'DEBUG'); + static const LogSeverity INFO = + LogSeverity._(200, _omitEnumNames ? '' : 'INFO'); + static const LogSeverity NOTICE = + LogSeverity._(300, _omitEnumNames ? '' : 'NOTICE'); + static const LogSeverity WARNING = + LogSeverity._(400, _omitEnumNames ? '' : 'WARNING'); + static const LogSeverity ERROR = + LogSeverity._(500, _omitEnumNames ? '' : 'ERROR'); + static const LogSeverity CRITICAL = + LogSeverity._(600, _omitEnumNames ? '' : 'CRITICAL'); + static const LogSeverity ALERT = + LogSeverity._(700, _omitEnumNames ? '' : 'ALERT'); + static const LogSeverity EMERGENCY = + LogSeverity._(800, _omitEnumNames ? '' : 'EMERGENCY'); static const $core.List values = [ DEFAULT, @@ -50,3 +66,5 @@ class LogSeverity extends $pb.ProtobufEnum { const LogSeverity._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pbjson.dart index d4c60c04..37d3dfd9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/type/log_severity.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/logging/type/log_severity.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 logSeverityDescriptor instead') @@ -27,4 +31,6 @@ const LogSeverity$json = { /// Descriptor for `LogSeverity`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List logSeverityDescriptor = $convert.base64Decode( - 'CgtMb2dTZXZlcml0eRILCgdERUZBVUxUEAASCQoFREVCVUcQZBIJCgRJTkZPEMgBEgsKBk5PVElDRRCsAhIMCgdXQVJOSU5HEJADEgoKBUVSUk9SEPQDEg0KCENSSVRJQ0FMENgEEgoKBUFMRVJUELwFEg4KCUVNRVJHRU5DWRCgBg=='); + 'CgtMb2dTZXZlcml0eRILCgdERUZBVUxUEAASCQoFREVCVUcQZBIJCgRJTkZPEMgBEgsKBk5PVE' + 'lDRRCsAhIMCgdXQVJOSU5HEJADEgoKBUVSUk9SEPQDEg0KCENSSVRJQ0FMENgEEgoKBUFMRVJU' + 'ELwFEg4KCUVNRVJHRU5DWRCgBg=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pb.dart index ab3c4039..0c1af94f 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pb.dart @@ -1,142 +1,159 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/log_entry.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../protobuf/any.pb.dart' as $0; -import '../../protobuf/struct.pb.dart' as $1; -import '../type/http_request.pb.dart' as $2; -import '../../api/monitored_resource.pb.dart' as $3; -import '../../protobuf/timestamp.pb.dart' as $4; - -import '../type/log_severity.pbenum.dart' as $5; +import '../../api/monitored_resource.pb.dart' as $67; +import '../../protobuf/any.pb.dart' as $49; +import '../../protobuf/struct.pb.dart' as $48; +import '../../protobuf/timestamp.pb.dart' as $50; +import '../type/http_request.pb.dart' as $66; +import '../type/log_severity.pbenum.dart' as $64; enum LogEntry_Payload { protoPayload, textPayload, jsonPayload, notSet } +/// An individual entry in a log. class LogEntry extends $pb.GeneratedMessage { - static const $core.Map<$core.int, LogEntry_Payload> _LogEntry_PayloadByTag = { - 2: LogEntry_Payload.protoPayload, - 3: LogEntry_Payload.textPayload, - 6: LogEntry_Payload.jsonPayload, - 0: LogEntry_Payload.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogEntry', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..oo(0, [2, 3, 6]) - ..aOM<$0.Any>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'protoPayload', - subBuilder: $0.Any.create) - ..aOS(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'textPayload') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'insertId') - ..aOM<$1.Struct>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'jsonPayload', subBuilder: $1.Struct.create) - ..aOM<$2.HttpRequest>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'httpRequest', subBuilder: $2.HttpRequest.create) - ..aOM<$3.MonitoredResource>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resource', subBuilder: $3.MonitoredResource.create) - ..aOM<$4.Timestamp>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timestamp', subBuilder: $4.Timestamp.create) - ..e<$5.LogSeverity>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'severity', $pb.PbFieldType.OE, defaultOrMaker: $5.LogSeverity.DEFAULT, valueOf: $5.LogSeverity.valueOf, enumValues: $5.LogSeverity.values) - ..m<$core.String, $core.String>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', entryClassName: 'LogEntry.LabelsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.logging.v2')) - ..aOS(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'logName') - ..aOM(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'operation', subBuilder: LogEntryOperation.create) - ..aOS(22, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'trace') - ..aOM(23, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sourceLocation', subBuilder: LogEntrySourceLocation.create) - ..aOM<$4.Timestamp>(24, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'receiveTimestamp', subBuilder: $4.Timestamp.create) - ..aOS(27, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'spanId') - ..aOB(30, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'traceSampled') - ..hasRequiredFields = false; - - LogEntry._() : super(); factory LogEntry({ - $0.Any? protoPayload, + $49.Any? protoPayload, $core.String? textPayload, $core.String? insertId, - $1.Struct? jsonPayload, - $2.HttpRequest? httpRequest, - $3.MonitoredResource? resource, - $4.Timestamp? timestamp, - $5.LogSeverity? severity, + $48.Struct? jsonPayload, + $66.HttpRequest? httpRequest, + $67.MonitoredResource? resource, + $50.Timestamp? timestamp, + $64.LogSeverity? severity, $core.Map<$core.String, $core.String>? labels, $core.String? logName, LogEntryOperation? operation, $core.String? trace, LogEntrySourceLocation? sourceLocation, - $4.Timestamp? receiveTimestamp, + $50.Timestamp? receiveTimestamp, $core.String? spanId, $core.bool? traceSampled, + LogSplit? split, }) { - final _result = create(); + final $result = create(); if (protoPayload != null) { - _result.protoPayload = protoPayload; + $result.protoPayload = protoPayload; } if (textPayload != null) { - _result.textPayload = textPayload; + $result.textPayload = textPayload; } if (insertId != null) { - _result.insertId = insertId; + $result.insertId = insertId; } if (jsonPayload != null) { - _result.jsonPayload = jsonPayload; + $result.jsonPayload = jsonPayload; } if (httpRequest != null) { - _result.httpRequest = httpRequest; + $result.httpRequest = httpRequest; } if (resource != null) { - _result.resource = resource; + $result.resource = resource; } if (timestamp != null) { - _result.timestamp = timestamp; + $result.timestamp = timestamp; } if (severity != null) { - _result.severity = severity; + $result.severity = severity; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (logName != null) { - _result.logName = logName; + $result.logName = logName; } if (operation != null) { - _result.operation = operation; + $result.operation = operation; } if (trace != null) { - _result.trace = trace; + $result.trace = trace; } if (sourceLocation != null) { - _result.sourceLocation = sourceLocation; + $result.sourceLocation = sourceLocation; } if (receiveTimestamp != null) { - _result.receiveTimestamp = receiveTimestamp; + $result.receiveTimestamp = receiveTimestamp; } if (spanId != null) { - _result.spanId = spanId; + $result.spanId = spanId; } if (traceSampled != null) { - _result.traceSampled = traceSampled; + $result.traceSampled = traceSampled; + } + if (split != null) { + $result.split = split; } - return _result; + return $result; } + LogEntry._() : super(); factory LogEntry.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogEntry.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, LogEntry_Payload> _LogEntry_PayloadByTag = { + 2: LogEntry_Payload.protoPayload, + 3: LogEntry_Payload.textPayload, + 6: LogEntry_Payload.jsonPayload, + 0: LogEntry_Payload.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogEntry', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..oo(0, [2, 3, 6]) + ..aOM<$49.Any>(2, _omitFieldNames ? '' : 'protoPayload', + subBuilder: $49.Any.create) + ..aOS(3, _omitFieldNames ? '' : 'textPayload') + ..aOS(4, _omitFieldNames ? '' : 'insertId') + ..aOM<$48.Struct>(6, _omitFieldNames ? '' : 'jsonPayload', + subBuilder: $48.Struct.create) + ..aOM<$66.HttpRequest>(7, _omitFieldNames ? '' : 'httpRequest', + subBuilder: $66.HttpRequest.create) + ..aOM<$67.MonitoredResource>(8, _omitFieldNames ? '' : 'resource', + subBuilder: $67.MonitoredResource.create) + ..aOM<$50.Timestamp>(9, _omitFieldNames ? '' : 'timestamp', + subBuilder: $50.Timestamp.create) + ..e<$64.LogSeverity>( + 10, _omitFieldNames ? '' : 'severity', $pb.PbFieldType.OE, + defaultOrMaker: $64.LogSeverity.DEFAULT, + valueOf: $64.LogSeverity.valueOf, + enumValues: $64.LogSeverity.values) + ..m<$core.String, $core.String>(11, _omitFieldNames ? '' : 'labels', + entryClassName: 'LogEntry.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.logging.v2')) + ..aOS(12, _omitFieldNames ? '' : 'logName') + ..aOM(15, _omitFieldNames ? '' : 'operation', + subBuilder: LogEntryOperation.create) + ..aOS(22, _omitFieldNames ? '' : 'trace') + ..aOM(23, _omitFieldNames ? '' : 'sourceLocation', + subBuilder: LogEntrySourceLocation.create) + ..aOM<$50.Timestamp>(24, _omitFieldNames ? '' : 'receiveTimestamp', + subBuilder: $50.Timestamp.create) + ..aOS(27, _omitFieldNames ? '' : 'spanId') + ..aOB(30, _omitFieldNames ? '' : 'traceSampled') + ..aOM(35, _omitFieldNames ? '' : 'split', + subBuilder: LogSplit.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') @@ -145,9 +162,10 @@ class LogEntry extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') LogEntry copyWith(void Function(LogEntry) updates) => - super.copyWith((message) => updates(message as LogEntry)) - as LogEntry; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as LogEntry)) as LogEntry; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogEntry create() => LogEntry._(); LogEntry createEmptyInstance() => create(); @@ -160,10 +178,18 @@ class LogEntry extends $pb.GeneratedMessage { LogEntry_Payload whichPayload() => _LogEntry_PayloadByTag[$_whichOneof(0)]!; void clearPayload() => clearField($_whichOneof(0)); + /// The log entry payload, represented as a protocol buffer. Some Google + /// Cloud Platform services use this field for their log entry payloads. + /// + /// The following protocol buffer types are supported; user-defined types + /// are not supported: + /// + /// "type.googleapis.com/google.cloud.audit.AuditLog" + /// "type.googleapis.com/google.appengine.logging.v1.RequestLog" @$pb.TagNumber(2) - $0.Any get protoPayload => $_getN(0); + $49.Any get protoPayload => $_getN(0); @$pb.TagNumber(2) - set protoPayload($0.Any v) { + set protoPayload($49.Any v) { setField(2, v); } @@ -172,8 +198,9 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearProtoPayload() => clearField(2); @$pb.TagNumber(2) - $0.Any ensureProtoPayload() => $_ensure(0); + $49.Any ensureProtoPayload() => $_ensure(0); + /// The log entry payload, represented as a Unicode string (UTF-8). @$pb.TagNumber(3) $core.String get textPayload => $_getSZ(1); @$pb.TagNumber(3) @@ -186,6 +213,17 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearTextPayload() => clearField(3); + /// Optional. A unique identifier for the log entry. If you provide a value, + /// then Logging considers other log entries in the same project, with the same + /// `timestamp`, and with the same `insert_id` to be duplicates which are + /// removed in a single query result. However, there are no guarantees of + /// de-duplication in the export of logs. + /// + /// If the `insert_id` is omitted when writing a log entry, the Logging API + /// assigns its own unique identifier in this field. + /// + /// In queries, the `insert_id` is also used to order log entries that have + /// the same `log_name` and `timestamp` values. @$pb.TagNumber(4) $core.String get insertId => $_getSZ(2); @$pb.TagNumber(4) @@ -198,10 +236,12 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearInsertId() => clearField(4); + /// The log entry payload, represented as a structure that is + /// expressed as a JSON object. @$pb.TagNumber(6) - $1.Struct get jsonPayload => $_getN(3); + $48.Struct get jsonPayload => $_getN(3); @$pb.TagNumber(6) - set jsonPayload($1.Struct v) { + set jsonPayload($48.Struct v) { setField(6, v); } @@ -210,12 +250,14 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearJsonPayload() => clearField(6); @$pb.TagNumber(6) - $1.Struct ensureJsonPayload() => $_ensure(3); + $48.Struct ensureJsonPayload() => $_ensure(3); + /// Optional. Information about the HTTP request associated with this log + /// entry, if applicable. @$pb.TagNumber(7) - $2.HttpRequest get httpRequest => $_getN(4); + $66.HttpRequest get httpRequest => $_getN(4); @$pb.TagNumber(7) - set httpRequest($2.HttpRequest v) { + set httpRequest($66.HttpRequest v) { setField(7, v); } @@ -224,12 +266,17 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearHttpRequest() => clearField(7); @$pb.TagNumber(7) - $2.HttpRequest ensureHttpRequest() => $_ensure(4); + $66.HttpRequest ensureHttpRequest() => $_ensure(4); + /// Required. The monitored resource that produced this log entry. + /// + /// Example: a log entry that reports a database error would be associated with + /// the monitored resource designating the particular database that reported + /// the error. @$pb.TagNumber(8) - $3.MonitoredResource get resource => $_getN(5); + $67.MonitoredResource get resource => $_getN(5); @$pb.TagNumber(8) - set resource($3.MonitoredResource v) { + set resource($67.MonitoredResource v) { setField(8, v); } @@ -238,12 +285,24 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearResource() => clearField(8); @$pb.TagNumber(8) - $3.MonitoredResource ensureResource() => $_ensure(5); - + $67.MonitoredResource ensureResource() => $_ensure(5); + + /// Optional. The time the event described by the log entry occurred. This time + /// is used to compute the log entry's age and to enforce the logs retention + /// period. If this field is omitted in a new log entry, then Logging assigns + /// it the current time. Timestamps have nanosecond accuracy, but trailing + /// zeros in the fractional seconds might be omitted when the timestamp is + /// displayed. + /// + /// Incoming log entries must have timestamps that don't exceed the + /// [logs retention + /// period](https://cloud.google.com/logging/quotas#logs_retention_periods) in + /// the past, and that don't exceed 24 hours in the future. Log entries outside + /// those time boundaries aren't ingested by Logging. @$pb.TagNumber(9) - $4.Timestamp get timestamp => $_getN(6); + $50.Timestamp get timestamp => $_getN(6); @$pb.TagNumber(9) - set timestamp($4.Timestamp v) { + set timestamp($50.Timestamp v) { setField(9, v); } @@ -252,12 +311,14 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearTimestamp() => clearField(9); @$pb.TagNumber(9) - $4.Timestamp ensureTimestamp() => $_ensure(6); + $50.Timestamp ensureTimestamp() => $_ensure(6); + /// Optional. The severity of the log entry. The default value is + /// `LogSeverity.DEFAULT`. @$pb.TagNumber(10) - $5.LogSeverity get severity => $_getN(7); + $64.LogSeverity get severity => $_getN(7); @$pb.TagNumber(10) - set severity($5.LogSeverity v) { + set severity($64.LogSeverity v) { setField(10, v); } @@ -266,9 +327,46 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearSeverity() => clearField(10); + /// Optional. A map of key, value pairs that provides additional information + /// about the log entry. The labels can be user-defined or system-defined. + /// + /// User-defined labels are arbitrary key, value pairs that you can use to + /// classify logs. + /// + /// System-defined labels are defined by GCP services for platform logs. + /// They have two components - a service namespace component and the + /// attribute name. For example: `compute.googleapis.com/resource_name`. + /// + /// Cloud Logging truncates label keys that exceed 512 B and label + /// values that exceed 64 KB upon their associated log entry being + /// written. The truncation is indicated by an ellipsis at the + /// end of the character string. @$pb.TagNumber(11) $core.Map<$core.String, $core.String> get labels => $_getMap(8); + /// Required. The resource name of the log to which this log entry belongs: + /// + /// "projects/[PROJECT_ID]/logs/[LOG_ID]" + /// "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + /// "folders/[FOLDER_ID]/logs/[LOG_ID]" + /// + /// A project number may be used in place of PROJECT_ID. The project number is + /// translated to its corresponding PROJECT_ID internally and the `log_name` + /// field will contain PROJECT_ID in queries and exports. + /// + /// `[LOG_ID]` must be URL-encoded within `log_name`. Example: + /// `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. + /// + /// `[LOG_ID]` must be less than 512 characters long and can only include the + /// following characters: upper and lower case alphanumeric characters, + /// forward-slash, underscore, hyphen, and period. + /// + /// For backward compatibility, if `log_name` begins with a forward-slash, such + /// as `/projects/...`, then the log entry is ingested as usual, but the + /// forward-slash is removed. Listing the log entry will not show the leading + /// slash and filtering for a log name with a leading slash will never return + /// any results. @$pb.TagNumber(12) $core.String get logName => $_getSZ(9); @$pb.TagNumber(12) @@ -281,6 +379,8 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(12) void clearLogName() => clearField(12); + /// Optional. Information about an operation associated with the log entry, if + /// applicable. @$pb.TagNumber(15) LogEntryOperation get operation => $_getN(10); @$pb.TagNumber(15) @@ -295,6 +395,15 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(15) LogEntryOperation ensureOperation() => $_ensure(10); + /// Optional. The REST resource name of the trace being written to + /// [Cloud Trace](https://cloud.google.com/trace) in + /// association with this log entry. For example, if your trace data is stored + /// in the Cloud project "my-trace-project" and if the service that is creating + /// the log entry receives a trace header that includes the trace ID "12345", + /// then the service should use "projects/my-tracing-project/traces/12345". + /// + /// The `trace` field provides the link between logs and traces. By using + /// this field, you can navigate from a log entry to a trace. @$pb.TagNumber(22) $core.String get trace => $_getSZ(11); @$pb.TagNumber(22) @@ -307,6 +416,8 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(22) void clearTrace() => clearField(22); + /// Optional. Source code location information associated with the log entry, + /// if any. @$pb.TagNumber(23) LogEntrySourceLocation get sourceLocation => $_getN(12); @$pb.TagNumber(23) @@ -321,10 +432,11 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(23) LogEntrySourceLocation ensureSourceLocation() => $_ensure(12); + /// Output only. The time the log entry was received by Logging. @$pb.TagNumber(24) - $4.Timestamp get receiveTimestamp => $_getN(13); + $50.Timestamp get receiveTimestamp => $_getN(13); @$pb.TagNumber(24) - set receiveTimestamp($4.Timestamp v) { + set receiveTimestamp($50.Timestamp v) { setField(24, v); } @@ -333,8 +445,38 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(24) void clearReceiveTimestamp() => clearField(24); @$pb.TagNumber(24) - $4.Timestamp ensureReceiveTimestamp() => $_ensure(13); - + $50.Timestamp ensureReceiveTimestamp() => $_ensure(13); + + /// Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span + /// associated with the current operation in which the log is being written. + /// For example, if a span has the REST resource name of + /// "projects/some-project/traces/some-trace/spans/some-span-id", then the + /// `span_id` field is "some-span-id". + /// + /// A + /// [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span) + /// represents a single operation within a trace. Whereas a trace may involve + /// multiple different microservices running on multiple different machines, + /// a span generally corresponds to a single logical operation being performed + /// in a single instance of a microservice on one specific machine. Spans + /// are the nodes within the tree that is a trace. + /// + /// Applications that are [instrumented for + /// tracing](https://cloud.google.com/trace/docs/setup) will generally assign a + /// new, unique span ID on each incoming request. It is also common to create + /// and record additional spans corresponding to internal processing elements + /// as well as issuing requests to dependencies. + /// + /// The span ID is expected to be a 16-character, hexadecimal encoding of an + /// 8-byte array and should not be zero. It should be unique within the trace + /// and should, ideally, be generated in a manner that is uniformly random. + /// + /// Example values: + /// + /// - `000000000000004a` + /// - `7a2190356c3fc94b` + /// - `0000f00300090021` + /// - `d39223e101960076` @$pb.TagNumber(27) $core.String get spanId => $_getSZ(14); @$pb.TagNumber(27) @@ -347,6 +489,13 @@ class LogEntry extends $pb.GeneratedMessage { @$pb.TagNumber(27) void clearSpanId() => clearField(27); + /// Optional. The sampling decision of the trace associated with the log entry. + /// + /// True means that the trace resource name in the `trace` field was sampled + /// for storage in a trace backend. False means that the trace was not sampled + /// for storage when this log entry was written, or the sampling decision was + /// unknown at the time. A non-sampled `trace` value is still useful as a + /// request correlation identifier. The default is False. @$pb.TagNumber(30) $core.bool get traceSampled => $_getBF(15); @$pb.TagNumber(30) @@ -358,68 +507,67 @@ class LogEntry extends $pb.GeneratedMessage { $core.bool hasTraceSampled() => $_has(15); @$pb.TagNumber(30) void clearTraceSampled() => clearField(30); + + /// Optional. Information indicating this LogEntry is part of a sequence of + /// multiple log entries split from a single LogEntry. + @$pb.TagNumber(35) + LogSplit get split => $_getN(16); + @$pb.TagNumber(35) + set split(LogSplit v) { + setField(35, v); + } + + @$pb.TagNumber(35) + $core.bool hasSplit() => $_has(16); + @$pb.TagNumber(35) + void clearSplit() => clearField(35); + @$pb.TagNumber(35) + LogSplit ensureSplit() => $_ensure(16); } +/// Additional information about a potentially long-running operation with which +/// a log entry is associated. class LogEntryOperation extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogEntryOperation', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'id') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'producer') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'first') - ..aOB( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'last') - ..hasRequiredFields = false; - - LogEntryOperation._() : super(); factory LogEntryOperation({ $core.String? id, $core.String? producer, $core.bool? first, $core.bool? last, }) { - final _result = create(); + final $result = create(); if (id != null) { - _result.id = id; + $result.id = id; } if (producer != null) { - _result.producer = producer; + $result.producer = producer; } if (first != null) { - _result.first = first; + $result.first = first; } if (last != null) { - _result.last = last; + $result.last = last; } - return _result; + return $result; } + LogEntryOperation._() : super(); factory LogEntryOperation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogEntryOperation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogEntryOperation', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'id') + ..aOS(2, _omitFieldNames ? '' : 'producer') + ..aOB(3, _omitFieldNames ? '' : 'first') + ..aOB(4, _omitFieldNames ? '' : 'last') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -429,8 +577,10 @@ class LogEntryOperation extends $pb.GeneratedMessage { 'Will be removed in next major version') LogEntryOperation copyWith(void Function(LogEntryOperation) updates) => super.copyWith((message) => updates(message as LogEntryOperation)) - as LogEntryOperation; // ignore: deprecated_member_use + as LogEntryOperation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogEntryOperation create() => LogEntryOperation._(); LogEntryOperation createEmptyInstance() => create(); @@ -441,6 +591,8 @@ class LogEntryOperation extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LogEntryOperation? _defaultInstance; + /// Optional. An arbitrary operation identifier. Log entries with the same + /// identifier are assumed to be part of the same operation. @$pb.TagNumber(1) $core.String get id => $_getSZ(0); @$pb.TagNumber(1) @@ -453,6 +605,9 @@ class LogEntryOperation extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearId() => clearField(1); + /// Optional. An arbitrary producer identifier. The combination of `id` and + /// `producer` must be globally unique. Examples for `producer`: + /// `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. @$pb.TagNumber(2) $core.String get producer => $_getSZ(1); @$pb.TagNumber(2) @@ -465,6 +620,7 @@ class LogEntryOperation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearProducer() => clearField(2); + /// Optional. Set this to True if this is the first log entry in the operation. @$pb.TagNumber(3) $core.bool get first => $_getBF(2); @$pb.TagNumber(3) @@ -477,6 +633,7 @@ class LogEntryOperation extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFirst() => clearField(3); + /// Optional. Set this to True if this is the last log entry in the operation. @$pb.TagNumber(4) $core.bool get last => $_getBF(3); @$pb.TagNumber(4) @@ -490,57 +647,44 @@ class LogEntryOperation extends $pb.GeneratedMessage { void clearLast() => clearField(4); } +/// Additional information about the source code location that produced the log +/// entry. class LogEntrySourceLocation extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogEntrySourceLocation', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'file') - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'line') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'function') - ..hasRequiredFields = false; - - LogEntrySourceLocation._() : super(); factory LogEntrySourceLocation({ $core.String? file, $fixnum.Int64? line, $core.String? function, }) { - final _result = create(); + final $result = create(); if (file != null) { - _result.file = file; + $result.file = file; } if (line != null) { - _result.line = line; + $result.line = line; } if (function != null) { - _result.function = function; + $result.function = function; } - return _result; + return $result; } + LogEntrySourceLocation._() : super(); factory LogEntrySourceLocation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogEntrySourceLocation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogEntrySourceLocation', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'file') + ..aInt64(2, _omitFieldNames ? '' : 'line') + ..aOS(3, _omitFieldNames ? '' : 'function') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -552,8 +696,10 @@ class LogEntrySourceLocation extends $pb.GeneratedMessage { LogEntrySourceLocation copyWith( void Function(LogEntrySourceLocation) updates) => super.copyWith((message) => updates(message as LogEntrySourceLocation)) - as LogEntrySourceLocation; // ignore: deprecated_member_use + as LogEntrySourceLocation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogEntrySourceLocation create() => LogEntrySourceLocation._(); LogEntrySourceLocation createEmptyInstance() => create(); @@ -564,6 +710,8 @@ class LogEntrySourceLocation extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static LogEntrySourceLocation? _defaultInstance; + /// Optional. Source file name. Depending on the runtime environment, this + /// might be a simple name or a fully-qualified name. @$pb.TagNumber(1) $core.String get file => $_getSZ(0); @$pb.TagNumber(1) @@ -576,6 +724,8 @@ class LogEntrySourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearFile() => clearField(1); + /// Optional. Line within the source file. 1-based; 0 indicates no line number + /// available. @$pb.TagNumber(2) $fixnum.Int64 get line => $_getI64(1); @$pb.TagNumber(2) @@ -588,6 +738,12 @@ class LogEntrySourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearLine() => clearField(2); + /// Optional. Human-readable name of the function or method being invoked, with + /// optional context such as the class or package name. This information may be + /// used in contexts such as the logs viewer, where a file and line number are + /// less meaningful. The format can vary by language. For example: + /// `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function` + /// (Python). @$pb.TagNumber(3) $core.String get function => $_getSZ(2); @$pb.TagNumber(3) @@ -600,3 +756,111 @@ class LogEntrySourceLocation extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFunction() => clearField(3); } + +/// Additional information used to correlate multiple log entries. Used when a +/// single LogEntry would exceed the Google Cloud Logging size limit and is +/// split across multiple log entries. +class LogSplit extends $pb.GeneratedMessage { + factory LogSplit({ + $core.String? uid, + $core.int? index, + $core.int? totalSplits, + }) { + final $result = create(); + if (uid != null) { + $result.uid = uid; + } + if (index != null) { + $result.index = index; + } + if (totalSplits != null) { + $result.totalSplits = totalSplits; + } + return $result; + } + LogSplit._() : super(); + factory LogSplit.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory LogSplit.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogSplit', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'uid') + ..a<$core.int>(2, _omitFieldNames ? '' : 'index', $pb.PbFieldType.O3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'totalSplits', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + LogSplit clone() => LogSplit()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + LogSplit copyWith(void Function(LogSplit) updates) => + super.copyWith((message) => updates(message as LogSplit)) as LogSplit; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static LogSplit create() => LogSplit._(); + LogSplit createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static LogSplit getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static LogSplit? _defaultInstance; + + /// A globally unique identifier for all log entries in a sequence of split log + /// entries. All log entries with the same |LogSplit.uid| are assumed to be + /// part of the same sequence of split log entries. + @$pb.TagNumber(1) + $core.String get uid => $_getSZ(0); + @$pb.TagNumber(1) + set uid($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasUid() => $_has(0); + @$pb.TagNumber(1) + void clearUid() => clearField(1); + + /// The index of this LogEntry in the sequence of split log entries. Log + /// entries are given |index| values 0, 1, ..., n-1 for a sequence of n log + /// entries. + @$pb.TagNumber(2) + $core.int get index => $_getIZ(1); + @$pb.TagNumber(2) + set index($core.int v) { + $_setSignedInt32(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasIndex() => $_has(1); + @$pb.TagNumber(2) + void clearIndex() => clearField(2); + + /// The total number of log entries that the original LogEntry was split into. + @$pb.TagNumber(3) + $core.int get totalSplits => $_getIZ(2); + @$pb.TagNumber(3) + set totalSplits($core.int v) { + $_setSignedInt32(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasTotalSplits() => $_has(2); + @$pb.TagNumber(3) + void clearTotalSplits() => clearField(3); +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pbenum.dart index 24e070d5..0219522a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/log_entry.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pbjson.dart index 6e3e9c2c..4a54b3dc 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/log_entry.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/log_entry.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 logEntryDescriptor instead') @@ -116,6 +120,15 @@ const LogEntry$json = { '8': {}, '10': 'sourceLocation' }, + { + '1': 'split', + '3': 35, + '4': 1, + '5': 11, + '6': '.google.logging.v2.LogSplit', + '8': {}, + '10': 'split' + }, ], '3': [LogEntry_LabelsEntry$json], '7': {}, @@ -136,7 +149,30 @@ const LogEntry_LabelsEntry$json = { /// Descriptor for `LogEntry`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logEntryDescriptor = $convert.base64Decode( - 'CghMb2dFbnRyeRIeCghsb2dfbmFtZRgMIAEoCUID4EECUgdsb2dOYW1lEj4KCHJlc291cmNlGAggASgLMh0uZ29vZ2xlLmFwaS5Nb25pdG9yZWRSZXNvdXJjZUID4EECUghyZXNvdXJjZRI7Cg1wcm90b19wYXlsb2FkGAIgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueUgAUgxwcm90b1BheWxvYWQSIwoMdGV4dF9wYXlsb2FkGAMgASgJSABSC3RleHRQYXlsb2FkEjwKDGpzb25fcGF5bG9hZBgGIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIAFILanNvblBheWxvYWQSPQoJdGltZXN0YW1wGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEBUgl0aW1lc3RhbXASTAoRcmVjZWl2ZV90aW1lc3RhbXAYGCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSEHJlY2VpdmVUaW1lc3RhbXASQQoIc2V2ZXJpdHkYCiABKA4yIC5nb29nbGUubG9nZ2luZy50eXBlLkxvZ1NldmVyaXR5QgPgQQFSCHNldmVyaXR5EiAKCWluc2VydF9pZBgEIAEoCUID4EEBUghpbnNlcnRJZBJICgxodHRwX3JlcXVlc3QYByABKAsyIC5nb29nbGUubG9nZ2luZy50eXBlLkh0dHBSZXF1ZXN0QgPgQQFSC2h0dHBSZXF1ZXN0EkQKBmxhYmVscxgLIAMoCzInLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ0VudHJ5LkxhYmVsc0VudHJ5QgPgQQFSBmxhYmVscxJHCglvcGVyYXRpb24YDyABKAsyJC5nb29nbGUubG9nZ2luZy52Mi5Mb2dFbnRyeU9wZXJhdGlvbkID4EEBUglvcGVyYXRpb24SGQoFdHJhY2UYFiABKAlCA+BBAVIFdHJhY2USHAoHc3Bhbl9pZBgbIAEoCUID4EEBUgZzcGFuSWQSKAoNdHJhY2Vfc2FtcGxlZBgeIAEoCEID4EEBUgx0cmFjZVNhbXBsZWQSVwoPc291cmNlX2xvY2F0aW9uGBcgASgLMikuZ29vZ2xlLmxvZ2dpbmcudjIuTG9nRW50cnlTb3VyY2VMb2NhdGlvbkID4EEBUg5zb3VyY2VMb2NhdGlvbho5CgtMYWJlbHNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBOr0B6kG5AQoabG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2cSHXByb2plY3RzL3twcm9qZWN0fS9sb2dzL3tsb2d9Eidvcmdhbml6YXRpb25zL3tvcmdhbml6YXRpb259L2xvZ3Mve2xvZ30SG2ZvbGRlcnMve2ZvbGRlcn0vbG9ncy97bG9nfRIsYmlsbGluZ0FjY291bnRzL3tiaWxsaW5nX2FjY291bnR9L2xvZ3Mve2xvZ30aCGxvZ19uYW1lQgkKB3BheWxvYWQ='); + 'CghMb2dFbnRyeRIeCghsb2dfbmFtZRgMIAEoCUID4EECUgdsb2dOYW1lEj4KCHJlc291cmNlGA' + 'ggASgLMh0uZ29vZ2xlLmFwaS5Nb25pdG9yZWRSZXNvdXJjZUID4EECUghyZXNvdXJjZRI7Cg1w' + 'cm90b19wYXlsb2FkGAIgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueUgAUgxwcm90b1BheWxvYW' + 'QSIwoMdGV4dF9wYXlsb2FkGAMgASgJSABSC3RleHRQYXlsb2FkEjwKDGpzb25fcGF5bG9hZBgG' + 'IAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIAFILanNvblBheWxvYWQSPQoJdGltZXN0YW' + '1wGAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEBUgl0aW1lc3RhbXASTAoR' + 'cmVjZWl2ZV90aW1lc3RhbXAYGCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQ' + 'NSEHJlY2VpdmVUaW1lc3RhbXASQQoIc2V2ZXJpdHkYCiABKA4yIC5nb29nbGUubG9nZ2luZy50' + 'eXBlLkxvZ1NldmVyaXR5QgPgQQFSCHNldmVyaXR5EiAKCWluc2VydF9pZBgEIAEoCUID4EEBUg' + 'hpbnNlcnRJZBJICgxodHRwX3JlcXVlc3QYByABKAsyIC5nb29nbGUubG9nZ2luZy50eXBlLkh0' + 'dHBSZXF1ZXN0QgPgQQFSC2h0dHBSZXF1ZXN0EkQKBmxhYmVscxgLIAMoCzInLmdvb2dsZS5sb2' + 'dnaW5nLnYyLkxvZ0VudHJ5LkxhYmVsc0VudHJ5QgPgQQFSBmxhYmVscxJHCglvcGVyYXRpb24Y' + 'DyABKAsyJC5nb29nbGUubG9nZ2luZy52Mi5Mb2dFbnRyeU9wZXJhdGlvbkID4EEBUglvcGVyYX' + 'Rpb24SGQoFdHJhY2UYFiABKAlCA+BBAVIFdHJhY2USHAoHc3Bhbl9pZBgbIAEoCUID4EEBUgZz' + 'cGFuSWQSKAoNdHJhY2Vfc2FtcGxlZBgeIAEoCEID4EEBUgx0cmFjZVNhbXBsZWQSVwoPc291cm' + 'NlX2xvY2F0aW9uGBcgASgLMikuZ29vZ2xlLmxvZ2dpbmcudjIuTG9nRW50cnlTb3VyY2VMb2Nh' + 'dGlvbkID4EEBUg5zb3VyY2VMb2NhdGlvbhI2CgVzcGxpdBgjIAEoCzIbLmdvb2dsZS5sb2dnaW' + '5nLnYyLkxvZ1NwbGl0QgPgQQFSBXNwbGl0GjkKC0xhYmVsc0VudHJ5EhAKA2tleRgBIAEoCVID' + 'a2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAE6vQHqQbkBChpsb2dnaW5nLmdvb2dsZWFwaX' + 'MuY29tL0xvZxIdcHJvamVjdHMve3Byb2plY3R9L2xvZ3Mve2xvZ30SJ29yZ2FuaXphdGlvbnMv' + 'e29yZ2FuaXphdGlvbn0vbG9ncy97bG9nfRIbZm9sZGVycy97Zm9sZGVyfS9sb2dzL3tsb2d9Ei' + 'xiaWxsaW5nQWNjb3VudHMve2JpbGxpbmdfYWNjb3VudH0vbG9ncy97bG9nfRoIbG9nX25hbWVC' + 'CQoHcGF5bG9hZA=='); + @$core.Deprecated('Use logEntryOperationDescriptor instead') const LogEntryOperation$json = { '1': 'LogEntryOperation', @@ -150,7 +186,10 @@ const LogEntryOperation$json = { /// Descriptor for `LogEntryOperation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logEntryOperationDescriptor = $convert.base64Decode( - 'ChFMb2dFbnRyeU9wZXJhdGlvbhITCgJpZBgBIAEoCUID4EEBUgJpZBIfCghwcm9kdWNlchgCIAEoCUID4EEBUghwcm9kdWNlchIZCgVmaXJzdBgDIAEoCEID4EEBUgVmaXJzdBIXCgRsYXN0GAQgASgIQgPgQQFSBGxhc3Q='); + 'ChFMb2dFbnRyeU9wZXJhdGlvbhITCgJpZBgBIAEoCUID4EEBUgJpZBIfCghwcm9kdWNlchgCIA' + 'EoCUID4EEBUghwcm9kdWNlchIZCgVmaXJzdBgDIAEoCEID4EEBUgVmaXJzdBIXCgRsYXN0GAQg' + 'ASgIQgPgQQFSBGxhc3Q='); + @$core.Deprecated('Use logEntrySourceLocationDescriptor instead') const LogEntrySourceLocation$json = { '1': 'LogEntrySourceLocation', @@ -162,6 +201,21 @@ const LogEntrySourceLocation$json = { }; /// Descriptor for `LogEntrySourceLocation`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List logEntrySourceLocationDescriptor = - $convert.base64Decode( - 'ChZMb2dFbnRyeVNvdXJjZUxvY2F0aW9uEhcKBGZpbGUYASABKAlCA+BBAVIEZmlsZRIXCgRsaW5lGAIgASgDQgPgQQFSBGxpbmUSHwoIZnVuY3Rpb24YAyABKAlCA+BBAVIIZnVuY3Rpb24='); +final $typed_data.Uint8List logEntrySourceLocationDescriptor = $convert.base64Decode( + 'ChZMb2dFbnRyeVNvdXJjZUxvY2F0aW9uEhcKBGZpbGUYASABKAlCA+BBAVIEZmlsZRIXCgRsaW' + '5lGAIgASgDQgPgQQFSBGxpbmUSHwoIZnVuY3Rpb24YAyABKAlCA+BBAVIIZnVuY3Rpb24='); + +@$core.Deprecated('Use logSplitDescriptor instead') +const LogSplit$json = { + '1': 'LogSplit', + '2': [ + {'1': 'uid', '3': 1, '4': 1, '5': 9, '10': 'uid'}, + {'1': 'index', '3': 2, '4': 1, '5': 5, '10': 'index'}, + {'1': 'total_splits', '3': 3, '4': 1, '5': 5, '10': 'totalSplits'}, + ], +}; + +/// Descriptor for `LogSplit`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List logSplitDescriptor = $convert.base64Decode( + 'CghMb2dTcGxpdBIQCgN1aWQYASABKAlSA3VpZBIUCgVpbmRleBgCIAEoBVIFaW5kZXgSIQoMdG' + '90YWxfc3BsaXRzGAMgASgFUgt0b3RhbFNwbGl0cw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pb.dart index 5f0a27ee..0c1c1f68 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pb.dart @@ -1,56 +1,53 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 '../../api/monitored_resource.pb.dart' as $3; -import 'log_entry.pb.dart' as $4; -import '../../rpc/status.pb.dart' as $5; -import '../../protobuf/duration.pb.dart' as $6; - +import '../../api/monitored_resource.pb.dart' as $67; +import '../../protobuf/duration.pb.dart' as $51; +import '../../rpc/status.pb.dart' as $57; +import 'log_entry.pb.dart' as $68; import 'logging.pbenum.dart'; export 'logging.pbenum.dart'; +/// The parameters to DeleteLog. class DeleteLogRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteLogRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'logName') - ..hasRequiredFields = false; - - DeleteLogRequest._() : super(); factory DeleteLogRequest({ $core.String? logName, }) { - final _result = create(); + final $result = create(); if (logName != null) { - _result.logName = logName; + $result.logName = logName; } - return _result; + return $result; } + DeleteLogRequest._() : super(); factory DeleteLogRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteLogRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteLogRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'logName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -60,8 +57,10 @@ class DeleteLogRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteLogRequest copyWith(void Function(DeleteLogRequest) updates) => super.copyWith((message) => updates(message as DeleteLogRequest)) - as DeleteLogRequest; // ignore: deprecated_member_use + as DeleteLogRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteLogRequest create() => DeleteLogRequest._(); DeleteLogRequest createEmptyInstance() => create(); @@ -72,6 +71,19 @@ class DeleteLogRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteLogRequest? _defaultInstance; + /// Required. The resource name of the log to delete: + /// + /// * `projects/[PROJECT_ID]/logs/[LOG_ID]` + /// * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + /// * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + /// * `folders/[FOLDER_ID]/logs/[LOG_ID]` + /// + /// `[LOG_ID]` must be URL-encoded. For example, + /// `"projects/my-project-id/logs/syslog"`, + /// `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`. + /// + /// For more information about log names, see + /// [LogEntry][google.logging.v2.LogEntry]. @$pb.TagNumber(1) $core.String get logName => $_getSZ(0); @$pb.TagNumber(1) @@ -85,72 +97,64 @@ class DeleteLogRequest extends $pb.GeneratedMessage { void clearLogName() => clearField(1); } +/// The parameters to WriteLogEntries. class WriteLogEntriesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'WriteLogEntriesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'logName') - ..aOM<$3.MonitoredResource>( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resource', - subBuilder: $3.MonitoredResource.create) - ..m<$core.String, $core.String>( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labels', - entryClassName: 'WriteLogEntriesRequest.LabelsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS, - packageName: const $pb.PackageName('google.logging.v2')) - ..pc<$4.LogEntry>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entries', - $pb.PbFieldType.PM, - subBuilder: $4.LogEntry.create) - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'partialSuccess') - ..aOB(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'dryRun') - ..hasRequiredFields = false; - - WriteLogEntriesRequest._() : super(); factory WriteLogEntriesRequest({ $core.String? logName, - $3.MonitoredResource? resource, + $67.MonitoredResource? resource, $core.Map<$core.String, $core.String>? labels, - $core.Iterable<$4.LogEntry>? entries, + $core.Iterable<$68.LogEntry>? entries, $core.bool? partialSuccess, $core.bool? dryRun, }) { - final _result = create(); + final $result = create(); if (logName != null) { - _result.logName = logName; + $result.logName = logName; } if (resource != null) { - _result.resource = resource; + $result.resource = resource; } if (labels != null) { - _result.labels.addAll(labels); + $result.labels.addAll(labels); } if (entries != null) { - _result.entries.addAll(entries); + $result.entries.addAll(entries); } if (partialSuccess != null) { - _result.partialSuccess = partialSuccess; + $result.partialSuccess = partialSuccess; } if (dryRun != null) { - _result.dryRun = dryRun; + $result.dryRun = dryRun; } - return _result; + return $result; } + WriteLogEntriesRequest._() : super(); factory WriteLogEntriesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory WriteLogEntriesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WriteLogEntriesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'logName') + ..aOM<$67.MonitoredResource>(2, _omitFieldNames ? '' : 'resource', + subBuilder: $67.MonitoredResource.create) + ..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'labels', + entryClassName: 'WriteLogEntriesRequest.LabelsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.logging.v2')) + ..pc<$68.LogEntry>(4, _omitFieldNames ? '' : 'entries', $pb.PbFieldType.PM, + subBuilder: $68.LogEntry.create) + ..aOB(5, _omitFieldNames ? '' : 'partialSuccess') + ..aOB(6, _omitFieldNames ? '' : 'dryRun') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -162,8 +166,10 @@ class WriteLogEntriesRequest extends $pb.GeneratedMessage { WriteLogEntriesRequest copyWith( void Function(WriteLogEntriesRequest) updates) => super.copyWith((message) => updates(message as WriteLogEntriesRequest)) - as WriteLogEntriesRequest; // ignore: deprecated_member_use + as WriteLogEntriesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static WriteLogEntriesRequest create() => WriteLogEntriesRequest._(); WriteLogEntriesRequest createEmptyInstance() => create(); @@ -174,6 +180,23 @@ class WriteLogEntriesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static WriteLogEntriesRequest? _defaultInstance; + /// Optional. A default log resource name that is assigned to all log entries + /// in `entries` that do not specify a value for `log_name`: + /// + /// * `projects/[PROJECT_ID]/logs/[LOG_ID]` + /// * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + /// * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + /// * `folders/[FOLDER_ID]/logs/[LOG_ID]` + /// + /// `[LOG_ID]` must be URL-encoded. For example: + /// + /// "projects/my-project-id/logs/syslog" + /// "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" + /// + /// The permission `logging.logEntries.create` is needed on each project, + /// organization, billing account, or folder that is receiving new log + /// entries, whether the resource is specified in `logName` or in an + /// individual log entry. @$pb.TagNumber(1) $core.String get logName => $_getSZ(0); @$pb.TagNumber(1) @@ -186,10 +209,18 @@ class WriteLogEntriesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearLogName() => clearField(1); + /// Optional. A default monitored resource object that is assigned to all log + /// entries in `entries` that do not specify a value for `resource`. Example: + /// + /// { "type": "gce_instance", + /// "labels": { + /// "zone": "us-central1-a", "instance_id": "00000000000000000000" }} + /// + /// See [LogEntry][google.logging.v2.LogEntry]. @$pb.TagNumber(2) - $3.MonitoredResource get resource => $_getN(1); + $67.MonitoredResource get resource => $_getN(1); @$pb.TagNumber(2) - set resource($3.MonitoredResource v) { + set resource($67.MonitoredResource v) { setField(2, v); } @@ -198,14 +229,49 @@ class WriteLogEntriesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearResource() => clearField(2); @$pb.TagNumber(2) - $3.MonitoredResource ensureResource() => $_ensure(1); + $67.MonitoredResource ensureResource() => $_ensure(1); + /// Optional. Default labels that are added to the `labels` field of all log + /// entries in `entries`. If a log entry already has a label with the same key + /// as a label in this parameter, then the log entry's label is not changed. + /// See [LogEntry][google.logging.v2.LogEntry]. @$pb.TagNumber(3) $core.Map<$core.String, $core.String> get labels => $_getMap(2); + /// Required. The log entries to send to Logging. The order of log + /// entries in this list does not matter. Values supplied in this method's + /// `log_name`, `resource`, and `labels` fields are copied into those log + /// entries in this list that do not include values for their corresponding + /// fields. For more information, see the + /// [LogEntry][google.logging.v2.LogEntry] type. + /// + /// If the `timestamp` or `insert_id` fields are missing in log entries, then + /// this method supplies the current time or a unique identifier, respectively. + /// The supplied values are chosen so that, among the log entries that did not + /// supply their own values, the entries earlier in the list will sort before + /// the entries later in the list. See the `entries.list` method. + /// + /// Log entries with timestamps that are more than the + /// [logs retention period](https://cloud.google.com/logging/quotas) in + /// the past or more than 24 hours in the future will not be available when + /// calling `entries.list`. However, those log entries can still be [exported + /// with + /// LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). + /// + /// To improve throughput and to avoid exceeding the + /// [quota limit](https://cloud.google.com/logging/quotas) for calls to + /// `entries.write`, you should try to include several log entries in this + /// list, rather than calling this method for each individual log entry. @$pb.TagNumber(4) - $core.List<$4.LogEntry> get entries => $_getList(3); - + $core.List<$68.LogEntry> get entries => $_getList(3); + + /// Optional. Whether a batch's valid entries should be written even if some + /// other entry failed due to a permanent error such as INVALID_ARGUMENT or + /// PERMISSION_DENIED. If any entry failed, then the response status is the + /// response status of one of the failed entries. The response will include + /// error details in `WriteLogEntriesPartialErrors.log_entry_errors` keyed by + /// the entries' zero-based index in the `entries`. Failed requests for which + /// no entries are written will not include per-entry errors. @$pb.TagNumber(5) $core.bool get partialSuccess => $_getBF(4); @$pb.TagNumber(5) @@ -218,6 +284,9 @@ class WriteLogEntriesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearPartialSuccess() => clearField(5); + /// Optional. If true, the request should expect normal response, but the + /// entries won't be persisted nor exported. Useful for checking whether the + /// logging API endpoints are working properly before sending valuable data. @$pb.TagNumber(6) $core.bool get dryRun => $_getBF(5); @$pb.TagNumber(6) @@ -231,26 +300,24 @@ class WriteLogEntriesRequest extends $pb.GeneratedMessage { void clearDryRun() => clearField(6); } +/// Result returned from WriteLogEntries. class WriteLogEntriesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'WriteLogEntriesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - WriteLogEntriesResponse._() : super(); factory WriteLogEntriesResponse() => create(); + WriteLogEntriesResponse._() : super(); factory WriteLogEntriesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory WriteLogEntriesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WriteLogEntriesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + 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') @@ -262,8 +329,10 @@ class WriteLogEntriesResponse extends $pb.GeneratedMessage { WriteLogEntriesResponse copyWith( void Function(WriteLogEntriesResponse) updates) => super.copyWith((message) => updates(message as WriteLogEntriesResponse)) - as WriteLogEntriesResponse; // ignore: deprecated_member_use + as WriteLogEntriesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static WriteLogEntriesResponse create() => WriteLogEntriesResponse._(); WriteLogEntriesResponse createEmptyInstance() => create(); @@ -275,44 +344,39 @@ class WriteLogEntriesResponse extends $pb.GeneratedMessage { static WriteLogEntriesResponse? _defaultInstance; } +/// Error details for WriteLogEntries with partial success. class WriteLogEntriesPartialErrors extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'WriteLogEntriesPartialErrors', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..m<$core.int, $5.Status>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'logEntryErrors', - entryClassName: 'WriteLogEntriesPartialErrors.LogEntryErrorsEntry', - keyFieldType: $pb.PbFieldType.O3, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: $5.Status.create, - packageName: const $pb.PackageName('google.logging.v2')) - ..hasRequiredFields = false; - - WriteLogEntriesPartialErrors._() : super(); factory WriteLogEntriesPartialErrors({ - $core.Map<$core.int, $5.Status>? logEntryErrors, + $core.Map<$core.int, $57.Status>? logEntryErrors, }) { - final _result = create(); + final $result = create(); if (logEntryErrors != null) { - _result.logEntryErrors.addAll(logEntryErrors); + $result.logEntryErrors.addAll(logEntryErrors); } - return _result; + return $result; } + WriteLogEntriesPartialErrors._() : super(); factory WriteLogEntriesPartialErrors.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory WriteLogEntriesPartialErrors.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WriteLogEntriesPartialErrors', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..m<$core.int, $57.Status>(1, _omitFieldNames ? '' : 'logEntryErrors', + entryClassName: 'WriteLogEntriesPartialErrors.LogEntryErrorsEntry', + keyFieldType: $pb.PbFieldType.O3, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: $57.Status.create, + valueDefaultOrMaker: $57.Status.getDefault, + packageName: const $pb.PackageName('google.logging.v2')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -325,8 +389,10 @@ class WriteLogEntriesPartialErrors extends $pb.GeneratedMessage { void Function(WriteLogEntriesPartialErrors) updates) => super.copyWith( (message) => updates(message as WriteLogEntriesPartialErrors)) - as WriteLogEntriesPartialErrors; // ignore: deprecated_member_use + as WriteLogEntriesPartialErrors; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static WriteLogEntriesPartialErrors create() => WriteLogEntriesPartialErrors._(); @@ -338,42 +404,18 @@ class WriteLogEntriesPartialErrors extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static WriteLogEntriesPartialErrors? _defaultInstance; + /// When `WriteLogEntriesRequest.partial_success` is true, records the error + /// status for entries that were not written due to a permanent error, keyed + /// by the entry's zero-based index in `WriteLogEntriesRequest.entries`. + /// + /// Failed requests for which no entries are written will not include + /// per-entry errors. @$pb.TagNumber(1) - $core.Map<$core.int, $5.Status> get logEntryErrors => $_getMap(0); + $core.Map<$core.int, $57.Status> get logEntryErrors => $_getMap(0); } +/// The parameters to `ListLogEntries`. class ListLogEntriesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListLogEntriesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filter') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'orderBy') - ..a<$core.int>( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS(5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pageToken') - ..pPS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resourceNames') - ..hasRequiredFields = false; - - ListLogEntriesRequest._() : super(); factory ListLogEntriesRequest({ $core.String? filter, $core.String? orderBy, @@ -381,30 +423,44 @@ class ListLogEntriesRequest extends $pb.GeneratedMessage { $core.String? pageToken, $core.Iterable<$core.String>? resourceNames, }) { - final _result = create(); + final $result = create(); if (filter != null) { - _result.filter = filter; + $result.filter = filter; } if (orderBy != null) { - _result.orderBy = orderBy; + $result.orderBy = orderBy; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (resourceNames != null) { - _result.resourceNames.addAll(resourceNames); + $result.resourceNames.addAll(resourceNames); } - return _result; + return $result; } + ListLogEntriesRequest._() : super(); factory ListLogEntriesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListLogEntriesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListLogEntriesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'filter') + ..aOS(3, _omitFieldNames ? '' : 'orderBy') + ..a<$core.int>(4, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(5, _omitFieldNames ? '' : 'pageToken') + ..pPS(8, _omitFieldNames ? '' : 'resourceNames') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -416,8 +472,10 @@ class ListLogEntriesRequest extends $pb.GeneratedMessage { ListLogEntriesRequest copyWith( void Function(ListLogEntriesRequest) updates) => super.copyWith((message) => updates(message as ListLogEntriesRequest)) - as ListLogEntriesRequest; // ignore: deprecated_member_use + as ListLogEntriesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListLogEntriesRequest create() => ListLogEntriesRequest._(); ListLogEntriesRequest createEmptyInstance() => create(); @@ -428,6 +486,11 @@ class ListLogEntriesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListLogEntriesRequest? _defaultInstance; + /// Optional. Only log entries that match the filter are returned. An empty + /// filter matches all log entries in the resources listed in `resource_names`. + /// Referencing a parent resource that is not listed in `resource_names` will + /// cause the filter to return no results. The maximum length of a filter is + /// 20,000 characters. @$pb.TagNumber(2) $core.String get filter => $_getSZ(0); @$pb.TagNumber(2) @@ -440,6 +503,12 @@ class ListLogEntriesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearFilter() => clearField(2); + /// Optional. How the results should be sorted. Presently, the only permitted + /// values are `"timestamp asc"` (default) and `"timestamp desc"`. The first + /// option returns entries in order of increasing values of + /// `LogEntry.timestamp` (oldest first), and the second option returns entries + /// in order of decreasing timestamps (newest first). Entries with equal + /// timestamps are returned in order of their `insert_id` values. @$pb.TagNumber(3) $core.String get orderBy => $_getSZ(1); @$pb.TagNumber(3) @@ -452,6 +521,10 @@ class ListLogEntriesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearOrderBy() => clearField(3); + /// Optional. The maximum number of results to return from this request. + /// Default is 50. If the value is negative or exceeds 1000, the request is + /// rejected. The presence of `next_page_token` in the response indicates that + /// more results might be available. @$pb.TagNumber(4) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(4) @@ -464,6 +537,10 @@ class ListLogEntriesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearPageSize() => clearField(4); + /// Optional. If present, then retrieve the next batch of results from the + /// preceding call to this method. `page_token` must be the value of + /// `next_page_token` from the previous response. The values of other method + /// parameters should be identical to those in the previous call. @$pb.TagNumber(5) $core.String get pageToken => $_getSZ(3); @$pb.TagNumber(5) @@ -476,51 +553,60 @@ class ListLogEntriesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearPageToken() => clearField(5); + /// Required. Names of one or more parent resources from which to + /// retrieve log entries: + /// + /// * `projects/[PROJECT_ID]` + /// * `organizations/[ORGANIZATION_ID]` + /// * `billingAccounts/[BILLING_ACCOUNT_ID]` + /// * `folders/[FOLDER_ID]` + /// + /// May alternatively be one or more views: + /// + /// * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// + /// Projects listed in the `project_ids` field are added to this list. + /// A maximum of 100 resources may be specified in a single request. @$pb.TagNumber(8) $core.List<$core.String> get resourceNames => $_getList(4); } +/// Result returned from `ListLogEntries`. class ListLogEntriesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListLogEntriesResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..pc<$4.LogEntry>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'entries', - $pb.PbFieldType.PM, - subBuilder: $4.LogEntry.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListLogEntriesResponse._() : super(); factory ListLogEntriesResponse({ - $core.Iterable<$4.LogEntry>? entries, + $core.Iterable<$68.LogEntry>? entries, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (entries != null) { - _result.entries.addAll(entries); + $result.entries.addAll(entries); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListLogEntriesResponse._() : super(); factory ListLogEntriesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListLogEntriesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListLogEntriesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..pc<$68.LogEntry>(1, _omitFieldNames ? '' : 'entries', $pb.PbFieldType.PM, + subBuilder: $68.LogEntry.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -532,8 +618,10 @@ class ListLogEntriesResponse extends $pb.GeneratedMessage { ListLogEntriesResponse copyWith( void Function(ListLogEntriesResponse) updates) => super.copyWith((message) => updates(message as ListLogEntriesResponse)) - as ListLogEntriesResponse; // ignore: deprecated_member_use + as ListLogEntriesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListLogEntriesResponse create() => ListLogEntriesResponse._(); ListLogEntriesResponse createEmptyInstance() => create(); @@ -544,9 +632,22 @@ class ListLogEntriesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListLogEntriesResponse? _defaultInstance; + /// A list of log entries. If `entries` is empty, `nextPageToken` may still be + /// returned, indicating that more entries may exist. See `nextPageToken` for + /// more information. @$pb.TagNumber(1) - $core.List<$4.LogEntry> get entries => $_getList(0); - + $core.List<$68.LogEntry> get entries => $_getList(0); + + /// If there might be more results than those appearing in this response, then + /// `nextPageToken` is included. To get the next set of results, call this + /// method again using the value of `nextPageToken` as `pageToken`. + /// + /// If a value for `next_page_token` appears and the `entries` field is empty, + /// it means that the search found no log entries so far but it did not have + /// time to search all the possible log entries. Retry the method with this + /// value for `page_token` to continue the search. Alternatively, consider + /// speeding up the search by changing your filter to specify a single log name + /// or resource type, or to narrow the time range of the search. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -560,43 +661,22 @@ class ListLogEntriesResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// The parameters to ListMonitoredResourceDescriptors class ListMonitoredResourceDescriptorsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListMonitoredResourceDescriptorsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..hasRequiredFields = false; - - ListMonitoredResourceDescriptorsRequest._() : super(); factory ListMonitoredResourceDescriptorsRequest({ $core.int? pageSize, $core.String? pageToken, }) { - final _result = create(); + final $result = create(); if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } - return _result; + return $result; } + ListMonitoredResourceDescriptorsRequest._() : super(); factory ListMonitoredResourceDescriptorsRequest.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -604,6 +684,16 @@ class ListMonitoredResourceDescriptorsRequest extends $pb.GeneratedMessage { factory ListMonitoredResourceDescriptorsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListMonitoredResourceDescriptorsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'pageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -616,8 +706,10 @@ class ListMonitoredResourceDescriptorsRequest extends $pb.GeneratedMessage { void Function(ListMonitoredResourceDescriptorsRequest) updates) => super.copyWith((message) => updates(message as ListMonitoredResourceDescriptorsRequest)) - as ListMonitoredResourceDescriptorsRequest; // ignore: deprecated_member_use + as ListMonitoredResourceDescriptorsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListMonitoredResourceDescriptorsRequest create() => ListMonitoredResourceDescriptorsRequest._(); @@ -630,6 +722,9 @@ class ListMonitoredResourceDescriptorsRequest extends $pb.GeneratedMessage { ListMonitoredResourceDescriptorsRequest>(create); static ListMonitoredResourceDescriptorsRequest? _defaultInstance; + /// Optional. The maximum number of results to return from this request. + /// Non-positive values are ignored. The presence of `nextPageToken` in the + /// response indicates that more results might be available. @$pb.TagNumber(1) $core.int get pageSize => $_getIZ(0); @$pb.TagNumber(1) @@ -642,6 +737,10 @@ class ListMonitoredResourceDescriptorsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearPageSize() => clearField(1); + /// Optional. If present, then retrieve the next batch of results from the + /// preceding call to this method. `pageToken` must be the value of + /// `nextPageToken` from the previous response. The values of other method + /// parameters should be identical to those in the previous call. @$pb.TagNumber(2) $core.String get pageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -655,41 +754,22 @@ class ListMonitoredResourceDescriptorsRequest extends $pb.GeneratedMessage { void clearPageToken() => clearField(2); } +/// Result returned from ListMonitoredResourceDescriptors. class ListMonitoredResourceDescriptorsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListMonitoredResourceDescriptorsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..pc<$3.MonitoredResourceDescriptor>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resourceDescriptors', - $pb.PbFieldType.PM, - subBuilder: $3.MonitoredResourceDescriptor.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListMonitoredResourceDescriptorsResponse._() : super(); factory ListMonitoredResourceDescriptorsResponse({ - $core.Iterable<$3.MonitoredResourceDescriptor>? resourceDescriptors, + $core.Iterable<$67.MonitoredResourceDescriptor>? resourceDescriptors, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (resourceDescriptors != null) { - _result.resourceDescriptors.addAll(resourceDescriptors); + $result.resourceDescriptors.addAll(resourceDescriptors); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListMonitoredResourceDescriptorsResponse._() : super(); factory ListMonitoredResourceDescriptorsResponse.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -697,6 +777,18 @@ class ListMonitoredResourceDescriptorsResponse extends $pb.GeneratedMessage { factory ListMonitoredResourceDescriptorsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListMonitoredResourceDescriptorsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..pc<$67.MonitoredResourceDescriptor>( + 1, _omitFieldNames ? '' : 'resourceDescriptors', $pb.PbFieldType.PM, + subBuilder: $67.MonitoredResourceDescriptor.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -709,8 +801,10 @@ class ListMonitoredResourceDescriptorsResponse extends $pb.GeneratedMessage { void Function(ListMonitoredResourceDescriptorsResponse) updates) => super.copyWith((message) => updates(message as ListMonitoredResourceDescriptorsResponse)) - as ListMonitoredResourceDescriptorsResponse; // ignore: deprecated_member_use + as ListMonitoredResourceDescriptorsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListMonitoredResourceDescriptorsResponse create() => ListMonitoredResourceDescriptorsResponse._(); @@ -724,10 +818,14 @@ class ListMonitoredResourceDescriptorsResponse extends $pb.GeneratedMessage { ListMonitoredResourceDescriptorsResponse>(create); static ListMonitoredResourceDescriptorsResponse? _defaultInstance; + /// A list of resource descriptors. @$pb.TagNumber(1) - $core.List<$3.MonitoredResourceDescriptor> get resourceDescriptors => + $core.List<$67.MonitoredResourceDescriptor> get resourceDescriptors => $_getList(0); + /// If there might be more results than those appearing in this response, then + /// `nextPageToken` is included. To get the next set of results, call this + /// method again using the value of `nextPageToken` as `pageToken`. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -741,63 +839,48 @@ class ListMonitoredResourceDescriptorsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// The parameters to ListLogs. class ListLogsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListLogsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..pPS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'resourceNames') - ..hasRequiredFields = false; - - ListLogsRequest._() : super(); factory ListLogsRequest({ $core.String? parent, $core.int? pageSize, $core.String? pageToken, $core.Iterable<$core.String>? resourceNames, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (resourceNames != null) { - _result.resourceNames.addAll(resourceNames); + $result.resourceNames.addAll(resourceNames); } - return _result; + return $result; } + ListLogsRequest._() : super(); factory ListLogsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListLogsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListLogsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..pPS(8, _omitFieldNames ? '' : 'resourceNames') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -807,8 +890,10 @@ class ListLogsRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListLogsRequest copyWith(void Function(ListLogsRequest) updates) => super.copyWith((message) => updates(message as ListLogsRequest)) - as ListLogsRequest; // ignore: deprecated_member_use + as ListLogsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListLogsRequest create() => ListLogsRequest._(); ListLogsRequest createEmptyInstance() => create(); @@ -819,6 +904,12 @@ class ListLogsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListLogsRequest? _defaultInstance; + /// Required. The resource name to list logs for: + /// + /// * `projects/[PROJECT_ID]` + /// * `organizations/[ORGANIZATION_ID]` + /// * `billingAccounts/[BILLING_ACCOUNT_ID]` + /// * `folders/[FOLDER_ID]` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -831,6 +922,9 @@ class ListLogsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Optional. The maximum number of results to return from this request. + /// Non-positive values are ignored. The presence of `nextPageToken` in the + /// response indicates that more results might be available. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -843,6 +937,10 @@ class ListLogsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// Optional. If present, then retrieve the next batch of results from the + /// preceding call to this method. `pageToken` must be the value of + /// `nextPageToken` from the previous response. The values of other method + /// parameters should be identical to those in the previous call. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -855,52 +953,57 @@ class ListLogsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// Optional. List of resource names to list logs for: + /// + /// * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// + /// To support legacy queries, it could also be: + /// + /// * `projects/[PROJECT_ID]` + /// * `organizations/[ORGANIZATION_ID]` + /// * `billingAccounts/[BILLING_ACCOUNT_ID]` + /// * `folders/[FOLDER_ID]` + /// + /// The resource name in the `parent` field is added to this list. @$pb.TagNumber(8) $core.List<$core.String> get resourceNames => $_getList(3); } +/// Result returned from ListLogs. class ListLogsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListLogsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nextPageToken') - ..pPS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'logNames') - ..hasRequiredFields = false; - - ListLogsResponse._() : super(); factory ListLogsResponse({ $core.String? nextPageToken, $core.Iterable<$core.String>? logNames, }) { - final _result = create(); + final $result = create(); if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } if (logNames != null) { - _result.logNames.addAll(logNames); + $result.logNames.addAll(logNames); } - return _result; + return $result; } + ListLogsResponse._() : super(); factory ListLogsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListLogsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListLogsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..pPS(3, _omitFieldNames ? '' : 'logNames') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -910,8 +1013,10 @@ class ListLogsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListLogsResponse copyWith(void Function(ListLogsResponse) updates) => super.copyWith((message) => updates(message as ListLogsResponse)) - as ListLogsResponse; // ignore: deprecated_member_use + as ListLogsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListLogsResponse create() => ListLogsResponse._(); ListLogsResponse createEmptyInstance() => create(); @@ -922,6 +1027,9 @@ class ListLogsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListLogsResponse? _defaultInstance; + /// If there might be more results than those appearing in this response, then + /// `nextPageToken` is included. To get the next set of results, call this + /// method again using the value of `nextPageToken` as `pageToken`. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(0); @$pb.TagNumber(2) @@ -934,62 +1042,51 @@ class ListLogsResponse extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearNextPageToken() => clearField(2); + /// A list of log names. For example, + /// `"projects/my-project/logs/syslog"` or + /// `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`. @$pb.TagNumber(3) $core.List<$core.String> get logNames => $_getList(1); } +/// The parameters to `TailLogEntries`. class TailLogEntriesRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TailLogEntriesRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'resourceNames') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filter') - ..aOM<$6.Duration>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bufferWindow', - subBuilder: $6.Duration.create) - ..hasRequiredFields = false; - - TailLogEntriesRequest._() : super(); factory TailLogEntriesRequest({ $core.Iterable<$core.String>? resourceNames, $core.String? filter, - $6.Duration? bufferWindow, + $51.Duration? bufferWindow, }) { - final _result = create(); + final $result = create(); if (resourceNames != null) { - _result.resourceNames.addAll(resourceNames); + $result.resourceNames.addAll(resourceNames); } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } if (bufferWindow != null) { - _result.bufferWindow = bufferWindow; + $result.bufferWindow = bufferWindow; } - return _result; + return $result; } + TailLogEntriesRequest._() : super(); factory TailLogEntriesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TailLogEntriesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TailLogEntriesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..pPS(1, _omitFieldNames ? '' : 'resourceNames') + ..aOS(2, _omitFieldNames ? '' : 'filter') + ..aOM<$51.Duration>(3, _omitFieldNames ? '' : 'bufferWindow', + subBuilder: $51.Duration.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') @@ -1001,8 +1098,10 @@ class TailLogEntriesRequest extends $pb.GeneratedMessage { TailLogEntriesRequest copyWith( void Function(TailLogEntriesRequest) updates) => super.copyWith((message) => updates(message as TailLogEntriesRequest)) - as TailLogEntriesRequest; // ignore: deprecated_member_use + as TailLogEntriesRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TailLogEntriesRequest create() => TailLogEntriesRequest._(); TailLogEntriesRequest createEmptyInstance() => create(); @@ -1013,9 +1112,27 @@ class TailLogEntriesRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static TailLogEntriesRequest? _defaultInstance; + /// Required. Name of a parent resource from which to retrieve log entries: + /// + /// * `projects/[PROJECT_ID]` + /// * `organizations/[ORGANIZATION_ID]` + /// * `billingAccounts/[BILLING_ACCOUNT_ID]` + /// * `folders/[FOLDER_ID]` + /// + /// May alternatively be one or more views: + /// + /// * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + /// * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` @$pb.TagNumber(1) $core.List<$core.String> get resourceNames => $_getList(0); + /// Optional. Only log entries that match the filter are returned. An empty + /// filter matches all log entries in the resources listed in `resource_names`. + /// Referencing a parent resource that is not listed in `resource_names` will + /// cause the filter to return no results. The maximum length of a filter is + /// 20,000 characters. @$pb.TagNumber(2) $core.String get filter => $_getSZ(1); @$pb.TagNumber(2) @@ -1028,10 +1145,14 @@ class TailLogEntriesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearFilter() => clearField(2); + /// Optional. The amount of time to buffer log entries at the server before + /// being returned to prevent out of order results due to late arriving log + /// entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 + /// milliseconds. @$pb.TagNumber(3) - $6.Duration get bufferWindow => $_getN(2); + $51.Duration get bufferWindow => $_getN(2); @$pb.TagNumber(3) - set bufferWindow($6.Duration v) { + set bufferWindow($51.Duration v) { setField(3, v); } @@ -1040,47 +1161,25 @@ class TailLogEntriesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearBufferWindow() => clearField(3); @$pb.TagNumber(3) - $6.Duration ensureBufferWindow() => $_ensure(2); + $51.Duration ensureBufferWindow() => $_ensure(2); } +/// Information about entries that were omitted from the session. class TailLogEntriesResponse_SuppressionInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TailLogEntriesResponse.SuppressionInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..e( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reason', $pb.PbFieldType.OE, - defaultOrMaker: - TailLogEntriesResponse_SuppressionInfo_Reason.REASON_UNSPECIFIED, - valueOf: TailLogEntriesResponse_SuppressionInfo_Reason.valueOf, - enumValues: TailLogEntriesResponse_SuppressionInfo_Reason.values) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'suppressedCount', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - TailLogEntriesResponse_SuppressionInfo._() : super(); factory TailLogEntriesResponse_SuppressionInfo({ TailLogEntriesResponse_SuppressionInfo_Reason? reason, $core.int? suppressedCount, }) { - final _result = create(); + final $result = create(); if (reason != null) { - _result.reason = reason; + $result.reason = reason; } if (suppressedCount != null) { - _result.suppressedCount = suppressedCount; + $result.suppressedCount = suppressedCount; } - return _result; + return $result; } + TailLogEntriesResponse_SuppressionInfo._() : super(); factory TailLogEntriesResponse_SuppressionInfo.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1088,6 +1187,22 @@ class TailLogEntriesResponse_SuppressionInfo extends $pb.GeneratedMessage { factory TailLogEntriesResponse_SuppressionInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TailLogEntriesResponse.SuppressionInfo', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'reason', $pb.PbFieldType.OE, + defaultOrMaker: + TailLogEntriesResponse_SuppressionInfo_Reason.REASON_UNSPECIFIED, + valueOf: TailLogEntriesResponse_SuppressionInfo_Reason.valueOf, + enumValues: TailLogEntriesResponse_SuppressionInfo_Reason.values) + ..a<$core.int>( + 2, _omitFieldNames ? '' : 'suppressedCount', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1100,8 +1215,10 @@ class TailLogEntriesResponse_SuppressionInfo extends $pb.GeneratedMessage { void Function(TailLogEntriesResponse_SuppressionInfo) updates) => super.copyWith((message) => updates(message as TailLogEntriesResponse_SuppressionInfo)) - as TailLogEntriesResponse_SuppressionInfo; // ignore: deprecated_member_use + as TailLogEntriesResponse_SuppressionInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TailLogEntriesResponse_SuppressionInfo create() => TailLogEntriesResponse_SuppressionInfo._(); @@ -1114,6 +1231,7 @@ class TailLogEntriesResponse_SuppressionInfo extends $pb.GeneratedMessage { TailLogEntriesResponse_SuppressionInfo>(create); static TailLogEntriesResponse_SuppressionInfo? _defaultInstance; + /// The reason that entries were omitted from the session. @$pb.TagNumber(1) TailLogEntriesResponse_SuppressionInfo_Reason get reason => $_getN(0); @$pb.TagNumber(1) @@ -1126,6 +1244,7 @@ class TailLogEntriesResponse_SuppressionInfo extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearReason() => clearField(1); + /// A lower bound on the count of entries omitted due to `reason`. @$pb.TagNumber(2) $core.int get suppressedCount => $_getIZ(1); @$pb.TagNumber(2) @@ -1139,47 +1258,41 @@ class TailLogEntriesResponse_SuppressionInfo extends $pb.GeneratedMessage { void clearSuppressedCount() => clearField(2); } +/// Result returned from `TailLogEntries`. class TailLogEntriesResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TailLogEntriesResponse', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..pc<$4.LogEntry>( - 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'entries', $pb.PbFieldType.PM, - subBuilder: $4.LogEntry.create) - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'suppressionInfo', - $pb.PbFieldType.PM, - subBuilder: TailLogEntriesResponse_SuppressionInfo.create) - ..hasRequiredFields = false; - - TailLogEntriesResponse._() : super(); factory TailLogEntriesResponse({ - $core.Iterable<$4.LogEntry>? entries, + $core.Iterable<$68.LogEntry>? entries, $core.Iterable? suppressionInfo, }) { - final _result = create(); + final $result = create(); if (entries != null) { - _result.entries.addAll(entries); + $result.entries.addAll(entries); } if (suppressionInfo != null) { - _result.suppressionInfo.addAll(suppressionInfo); + $result.suppressionInfo.addAll(suppressionInfo); } - return _result; + return $result; } + TailLogEntriesResponse._() : super(); factory TailLogEntriesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TailLogEntriesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TailLogEntriesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..pc<$68.LogEntry>(1, _omitFieldNames ? '' : 'entries', $pb.PbFieldType.PM, + subBuilder: $68.LogEntry.create) + ..pc( + 2, _omitFieldNames ? '' : 'suppressionInfo', $pb.PbFieldType.PM, + subBuilder: TailLogEntriesResponse_SuppressionInfo.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') @@ -1191,8 +1304,10 @@ class TailLogEntriesResponse extends $pb.GeneratedMessage { TailLogEntriesResponse copyWith( void Function(TailLogEntriesResponse) updates) => super.copyWith((message) => updates(message as TailLogEntriesResponse)) - as TailLogEntriesResponse; // ignore: deprecated_member_use + as TailLogEntriesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TailLogEntriesResponse create() => TailLogEntriesResponse._(); TailLogEntriesResponse createEmptyInstance() => create(); @@ -1203,10 +1318,22 @@ class TailLogEntriesResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static TailLogEntriesResponse? _defaultInstance; + /// A list of log entries. Each response in the stream will order entries with + /// increasing values of `LogEntry.timestamp`. Ordering is not guaranteed + /// between separate responses. @$pb.TagNumber(1) - $core.List<$4.LogEntry> get entries => $_getList(0); + $core.List<$68.LogEntry> get entries => $_getList(0); + /// If entries that otherwise would have been included in the session were not + /// sent back to the client, counts of relevant entries omitted from the + /// session with the reason that they were not included. There will be at most + /// one of each reason per response. The counts represent the number of + /// suppressed entries since the last streamed response. @$pb.TagNumber(2) $core.List get suppressionInfo => $_getList(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbenum.dart index 659c6774..fbdb18e4 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbenum.dart @@ -1,33 +1,29 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// An indicator of why entries were omitted. class TailLogEntriesResponse_SuppressionInfo_Reason extends $pb.ProtobufEnum { static const TailLogEntriesResponse_SuppressionInfo_Reason REASON_UNSPECIFIED = TailLogEntriesResponse_SuppressionInfo_Reason._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'REASON_UNSPECIFIED'); + 0, _omitEnumNames ? '' : 'REASON_UNSPECIFIED'); static const TailLogEntriesResponse_SuppressionInfo_Reason RATE_LIMIT = TailLogEntriesResponse_SuppressionInfo_Reason._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'RATE_LIMIT'); + 1, _omitEnumNames ? '' : 'RATE_LIMIT'); static const TailLogEntriesResponse_SuppressionInfo_Reason NOT_CONSUMED = TailLogEntriesResponse_SuppressionInfo_Reason._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NOT_CONSUMED'); + 2, _omitEnumNames ? '' : 'NOT_CONSUMED'); static const $core.List values = [ @@ -37,8 +33,8 @@ class TailLogEntriesResponse_SuppressionInfo_Reason extends $pb.ProtobufEnum { ]; static final $core - .Map<$core.int, TailLogEntriesResponse_SuppressionInfo_Reason> - _byValue = $pb.ProtobufEnum.initByValue(values); + .Map<$core.int, TailLogEntriesResponse_SuppressionInfo_Reason> _byValue = + $pb.ProtobufEnum.initByValue(values); static TailLogEntriesResponse_SuppressionInfo_Reason? valueOf( $core.int value) => _byValue[value]; @@ -47,3 +43,5 @@ class TailLogEntriesResponse_SuppressionInfo_Reason extends $pb.ProtobufEnum { $core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbgrpc.dart index c549eb5b..93b5c033 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbgrpc.dart @@ -1,197 +1,206 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'logging.pb.dart' as $2; +import 'package:protobuf/protobuf.dart' as $pb; + import '../../protobuf/empty.pb.dart' as $1; +import 'logging.pb.dart' as $18; + export 'logging.pb.dart'; +@$pb.GrpcServiceName('google.logging.v2.LoggingServiceV2') class LoggingServiceV2Client extends $grpc.Client { - static final _$deleteLog = $grpc.ClientMethod<$2.DeleteLogRequest, $1.Empty>( + static final _$deleteLog = $grpc.ClientMethod<$18.DeleteLogRequest, $1.Empty>( '/google.logging.v2.LoggingServiceV2/DeleteLog', - ($2.DeleteLogRequest value) => value.writeToBuffer(), + ($18.DeleteLogRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); - static final _$writeLogEntries = - $grpc.ClientMethod<$2.WriteLogEntriesRequest, $2.WriteLogEntriesResponse>( - '/google.logging.v2.LoggingServiceV2/WriteLogEntries', - ($2.WriteLogEntriesRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $2.WriteLogEntriesResponse.fromBuffer(value)); + static final _$writeLogEntries = $grpc.ClientMethod< + $18.WriteLogEntriesRequest, $18.WriteLogEntriesResponse>( + '/google.logging.v2.LoggingServiceV2/WriteLogEntries', + ($18.WriteLogEntriesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $18.WriteLogEntriesResponse.fromBuffer(value)); static final _$listLogEntries = - $grpc.ClientMethod<$2.ListLogEntriesRequest, $2.ListLogEntriesResponse>( + $grpc.ClientMethod<$18.ListLogEntriesRequest, $18.ListLogEntriesResponse>( '/google.logging.v2.LoggingServiceV2/ListLogEntries', - ($2.ListLogEntriesRequest value) => value.writeToBuffer(), + ($18.ListLogEntriesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListLogEntriesResponse.fromBuffer(value)); + $18.ListLogEntriesResponse.fromBuffer(value)); static final _$listMonitoredResourceDescriptors = $grpc.ClientMethod< - $2.ListMonitoredResourceDescriptorsRequest, - $2.ListMonitoredResourceDescriptorsResponse>( + $18.ListMonitoredResourceDescriptorsRequest, + $18.ListMonitoredResourceDescriptorsResponse>( '/google.logging.v2.LoggingServiceV2/ListMonitoredResourceDescriptors', - ($2.ListMonitoredResourceDescriptorsRequest value) => + ($18.ListMonitoredResourceDescriptorsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListMonitoredResourceDescriptorsResponse.fromBuffer(value)); + $18.ListMonitoredResourceDescriptorsResponse.fromBuffer(value)); static final _$listLogs = - $grpc.ClientMethod<$2.ListLogsRequest, $2.ListLogsResponse>( + $grpc.ClientMethod<$18.ListLogsRequest, $18.ListLogsResponse>( '/google.logging.v2.LoggingServiceV2/ListLogs', - ($2.ListLogsRequest value) => value.writeToBuffer(), + ($18.ListLogsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.ListLogsResponse.fromBuffer(value)); + $18.ListLogsResponse.fromBuffer(value)); static final _$tailLogEntries = - $grpc.ClientMethod<$2.TailLogEntriesRequest, $2.TailLogEntriesResponse>( + $grpc.ClientMethod<$18.TailLogEntriesRequest, $18.TailLogEntriesResponse>( '/google.logging.v2.LoggingServiceV2/TailLogEntries', - ($2.TailLogEntriesRequest value) => value.writeToBuffer(), + ($18.TailLogEntriesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $2.TailLogEntriesResponse.fromBuffer(value)); + $18.TailLogEntriesResponse.fromBuffer(value)); LoggingServiceV2Client($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$1.Empty> deleteLog($2.DeleteLogRequest request, + $grpc.ResponseFuture<$1.Empty> deleteLog($18.DeleteLogRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteLog, request, options: options); } - $grpc.ResponseFuture<$2.WriteLogEntriesResponse> writeLogEntries( - $2.WriteLogEntriesRequest request, + $grpc.ResponseFuture<$18.WriteLogEntriesResponse> writeLogEntries( + $18.WriteLogEntriesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$writeLogEntries, request, options: options); } - $grpc.ResponseFuture<$2.ListLogEntriesResponse> listLogEntries( - $2.ListLogEntriesRequest request, + $grpc.ResponseFuture<$18.ListLogEntriesResponse> listLogEntries( + $18.ListLogEntriesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listLogEntries, request, options: options); } - $grpc.ResponseFuture<$2.ListMonitoredResourceDescriptorsResponse> + $grpc.ResponseFuture<$18.ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptors( - $2.ListMonitoredResourceDescriptorsRequest request, + $18.ListMonitoredResourceDescriptorsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listMonitoredResourceDescriptors, request, options: options); } - $grpc.ResponseFuture<$2.ListLogsResponse> listLogs($2.ListLogsRequest request, + $grpc.ResponseFuture<$18.ListLogsResponse> listLogs( + $18.ListLogsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listLogs, request, options: options); } - $grpc.ResponseStream<$2.TailLogEntriesResponse> tailLogEntries( - $async.Stream<$2.TailLogEntriesRequest> request, + $grpc.ResponseStream<$18.TailLogEntriesResponse> tailLogEntries( + $async.Stream<$18.TailLogEntriesRequest> request, {$grpc.CallOptions? options}) { return $createStreamingCall(_$tailLogEntries, request, options: options); } } +@$pb.GrpcServiceName('google.logging.v2.LoggingServiceV2') abstract class LoggingServiceV2ServiceBase extends $grpc.Service { $core.String get $name => 'google.logging.v2.LoggingServiceV2'; LoggingServiceV2ServiceBase() { - $addMethod($grpc.ServiceMethod<$2.DeleteLogRequest, $1.Empty>( + $addMethod($grpc.ServiceMethod<$18.DeleteLogRequest, $1.Empty>( 'DeleteLog', deleteLog_Pre, false, false, - ($core.List<$core.int> value) => $2.DeleteLogRequest.fromBuffer(value), + ($core.List<$core.int> value) => $18.DeleteLogRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.WriteLogEntriesRequest, - $2.WriteLogEntriesResponse>( + $addMethod($grpc.ServiceMethod<$18.WriteLogEntriesRequest, + $18.WriteLogEntriesResponse>( 'WriteLogEntries', writeLogEntries_Pre, false, false, ($core.List<$core.int> value) => - $2.WriteLogEntriesRequest.fromBuffer(value), - ($2.WriteLogEntriesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListLogEntriesRequest, - $2.ListLogEntriesResponse>( + $18.WriteLogEntriesRequest.fromBuffer(value), + ($18.WriteLogEntriesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$18.ListLogEntriesRequest, + $18.ListLogEntriesResponse>( 'ListLogEntries', listLogEntries_Pre, false, false, ($core.List<$core.int> value) => - $2.ListLogEntriesRequest.fromBuffer(value), - ($2.ListLogEntriesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListMonitoredResourceDescriptorsRequest, - $2.ListMonitoredResourceDescriptorsResponse>( + $18.ListLogEntriesRequest.fromBuffer(value), + ($18.ListLogEntriesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$18.ListMonitoredResourceDescriptorsRequest, + $18.ListMonitoredResourceDescriptorsResponse>( 'ListMonitoredResourceDescriptors', listMonitoredResourceDescriptors_Pre, false, false, ($core.List<$core.int> value) => - $2.ListMonitoredResourceDescriptorsRequest.fromBuffer(value), - ($2.ListMonitoredResourceDescriptorsResponse value) => + $18.ListMonitoredResourceDescriptorsRequest.fromBuffer(value), + ($18.ListMonitoredResourceDescriptorsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.ListLogsRequest, $2.ListLogsResponse>( + $addMethod($grpc.ServiceMethod<$18.ListLogsRequest, $18.ListLogsResponse>( 'ListLogs', listLogs_Pre, false, false, - ($core.List<$core.int> value) => $2.ListLogsRequest.fromBuffer(value), - ($2.ListLogsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.TailLogEntriesRequest, - $2.TailLogEntriesResponse>( + ($core.List<$core.int> value) => $18.ListLogsRequest.fromBuffer(value), + ($18.ListLogsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$18.TailLogEntriesRequest, + $18.TailLogEntriesResponse>( 'TailLogEntries', tailLogEntries, true, true, ($core.List<$core.int> value) => - $2.TailLogEntriesRequest.fromBuffer(value), - ($2.TailLogEntriesResponse value) => value.writeToBuffer())); + $18.TailLogEntriesRequest.fromBuffer(value), + ($18.TailLogEntriesResponse value) => value.writeToBuffer())); } $async.Future<$1.Empty> deleteLog_Pre($grpc.ServiceCall call, - $async.Future<$2.DeleteLogRequest> request) async { + $async.Future<$18.DeleteLogRequest> request) async { return deleteLog(call, await request); } - $async.Future<$2.WriteLogEntriesResponse> writeLogEntries_Pre( + $async.Future<$18.WriteLogEntriesResponse> writeLogEntries_Pre( $grpc.ServiceCall call, - $async.Future<$2.WriteLogEntriesRequest> request) async { + $async.Future<$18.WriteLogEntriesRequest> request) async { return writeLogEntries(call, await request); } - $async.Future<$2.ListLogEntriesResponse> listLogEntries_Pre( + $async.Future<$18.ListLogEntriesResponse> listLogEntries_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListLogEntriesRequest> request) async { + $async.Future<$18.ListLogEntriesRequest> request) async { return listLogEntries(call, await request); } - $async.Future<$2.ListMonitoredResourceDescriptorsResponse> + $async.Future<$18.ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptors_Pre( $grpc.ServiceCall call, - $async.Future<$2.ListMonitoredResourceDescriptorsRequest> + $async.Future<$18.ListMonitoredResourceDescriptorsRequest> request) async { return listMonitoredResourceDescriptors(call, await request); } - $async.Future<$2.ListLogsResponse> listLogs_Pre( - $grpc.ServiceCall call, $async.Future<$2.ListLogsRequest> request) async { + $async.Future<$18.ListLogsResponse> listLogs_Pre($grpc.ServiceCall call, + $async.Future<$18.ListLogsRequest> request) async { return listLogs(call, await request); } $async.Future<$1.Empty> deleteLog( - $grpc.ServiceCall call, $2.DeleteLogRequest request); - $async.Future<$2.WriteLogEntriesResponse> writeLogEntries( - $grpc.ServiceCall call, $2.WriteLogEntriesRequest request); - $async.Future<$2.ListLogEntriesResponse> listLogEntries( - $grpc.ServiceCall call, $2.ListLogEntriesRequest request); - $async.Future<$2.ListMonitoredResourceDescriptorsResponse> + $grpc.ServiceCall call, $18.DeleteLogRequest request); + $async.Future<$18.WriteLogEntriesResponse> writeLogEntries( + $grpc.ServiceCall call, $18.WriteLogEntriesRequest request); + $async.Future<$18.ListLogEntriesResponse> listLogEntries( + $grpc.ServiceCall call, $18.ListLogEntriesRequest request); + $async.Future<$18.ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptors($grpc.ServiceCall call, - $2.ListMonitoredResourceDescriptorsRequest request); - $async.Future<$2.ListLogsResponse> listLogs( - $grpc.ServiceCall call, $2.ListLogsRequest request); - $async.Stream<$2.TailLogEntriesResponse> tailLogEntries( - $grpc.ServiceCall call, $async.Stream<$2.TailLogEntriesRequest> request); + $18.ListMonitoredResourceDescriptorsRequest request); + $async.Future<$18.ListLogsResponse> listLogs( + $grpc.ServiceCall call, $18.ListLogsRequest request); + $async.Stream<$18.TailLogEntriesResponse> tailLogEntries( + $grpc.ServiceCall call, $async.Stream<$18.TailLogEntriesRequest> request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbjson.dart index 937811d4..df191dbd 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 deleteLogRequestDescriptor instead') @@ -19,7 +23,9 @@ const DeleteLogRequest$json = { /// Descriptor for `DeleteLogRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteLogRequestDescriptor = $convert.base64Decode( - 'ChBEZWxldGVMb2dSZXF1ZXN0Ej0KCGxvZ19uYW1lGAEgASgJQiLgQQL6QRwKGmxvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nUgdsb2dOYW1l'); + 'ChBEZWxldGVMb2dSZXF1ZXN0Ej0KCGxvZ19uYW1lGAEgASgJQiLgQQL6QRwKGmxvZ2dpbmcuZ2' + '9vZ2xlYXBpcy5jb20vTG9nUgdsb2dOYW1l'); + @$core.Deprecated('Use writeLogEntriesRequestDescriptor instead') const WriteLogEntriesRequest$json = { '1': 'WriteLogEntriesRequest', @@ -76,9 +82,16 @@ const WriteLogEntriesRequest_LabelsEntry$json = { }; /// Descriptor for `WriteLogEntriesRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List writeLogEntriesRequestDescriptor = - $convert.base64Decode( - 'ChZXcml0ZUxvZ0VudHJpZXNSZXF1ZXN0Ej0KCGxvZ19uYW1lGAEgASgJQiLgQQH6QRwKGmxvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nUgdsb2dOYW1lEj4KCHJlc291cmNlGAIgASgLMh0uZ29vZ2xlLmFwaS5Nb25pdG9yZWRSZXNvdXJjZUID4EEBUghyZXNvdXJjZRJSCgZsYWJlbHMYAyADKAsyNS5nb29nbGUubG9nZ2luZy52Mi5Xcml0ZUxvZ0VudHJpZXNSZXF1ZXN0LkxhYmVsc0VudHJ5QgPgQQFSBmxhYmVscxI6CgdlbnRyaWVzGAQgAygLMhsuZ29vZ2xlLmxvZ2dpbmcudjIuTG9nRW50cnlCA+BBAlIHZW50cmllcxIsCg9wYXJ0aWFsX3N1Y2Nlc3MYBSABKAhCA+BBAVIOcGFydGlhbFN1Y2Nlc3MSHAoHZHJ5X3J1bhgGIAEoCEID4EEBUgZkcnlSdW4aOQoLTGFiZWxzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); +final $typed_data.Uint8List writeLogEntriesRequestDescriptor = $convert.base64Decode( + 'ChZXcml0ZUxvZ0VudHJpZXNSZXF1ZXN0Ej0KCGxvZ19uYW1lGAEgASgJQiLgQQH6QRwKGmxvZ2' + 'dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nUgdsb2dOYW1lEj4KCHJlc291cmNlGAIgASgLMh0uZ29v' + 'Z2xlLmFwaS5Nb25pdG9yZWRSZXNvdXJjZUID4EEBUghyZXNvdXJjZRJSCgZsYWJlbHMYAyADKA' + 'syNS5nb29nbGUubG9nZ2luZy52Mi5Xcml0ZUxvZ0VudHJpZXNSZXF1ZXN0LkxhYmVsc0VudHJ5' + 'QgPgQQFSBmxhYmVscxI6CgdlbnRyaWVzGAQgAygLMhsuZ29vZ2xlLmxvZ2dpbmcudjIuTG9nRW' + '50cnlCA+BBAlIHZW50cmllcxIsCg9wYXJ0aWFsX3N1Y2Nlc3MYBSABKAhCA+BBAVIOcGFydGlh' + 'bFN1Y2Nlc3MSHAoHZHJ5X3J1bhgGIAEoCEID4EEBUgZkcnlSdW4aOQoLTGFiZWxzRW50cnkSEA' + 'oDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + @$core.Deprecated('Use writeLogEntriesResponseDescriptor instead') const WriteLogEntriesResponse$json = { '1': 'WriteLogEntriesResponse', @@ -87,6 +100,7 @@ const WriteLogEntriesResponse$json = { /// Descriptor for `WriteLogEntriesResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List writeLogEntriesResponseDescriptor = $convert.base64Decode('ChdXcml0ZUxvZ0VudHJpZXNSZXNwb25zZQ=='); + @$core.Deprecated('Use writeLogEntriesPartialErrorsDescriptor instead') const WriteLogEntriesPartialErrors$json = { '1': 'WriteLogEntriesPartialErrors', @@ -122,9 +136,13 @@ const WriteLogEntriesPartialErrors_LogEntryErrorsEntry$json = { }; /// Descriptor for `WriteLogEntriesPartialErrors`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List writeLogEntriesPartialErrorsDescriptor = - $convert.base64Decode( - 'ChxXcml0ZUxvZ0VudHJpZXNQYXJ0aWFsRXJyb3JzEm0KEGxvZ19lbnRyeV9lcnJvcnMYASADKAsyQy5nb29nbGUubG9nZ2luZy52Mi5Xcml0ZUxvZ0VudHJpZXNQYXJ0aWFsRXJyb3JzLkxvZ0VudHJ5RXJyb3JzRW50cnlSDmxvZ0VudHJ5RXJyb3JzGlUKE0xvZ0VudHJ5RXJyb3JzRW50cnkSEAoDa2V5GAEgASgFUgNrZXkSKAoFdmFsdWUYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1c1IFdmFsdWU6AjgB'); +final $typed_data.Uint8List writeLogEntriesPartialErrorsDescriptor = $convert.base64Decode( + 'ChxXcml0ZUxvZ0VudHJpZXNQYXJ0aWFsRXJyb3JzEm0KEGxvZ19lbnRyeV9lcnJvcnMYASADKA' + 'syQy5nb29nbGUubG9nZ2luZy52Mi5Xcml0ZUxvZ0VudHJpZXNQYXJ0aWFsRXJyb3JzLkxvZ0Vu' + 'dHJ5RXJyb3JzRW50cnlSDmxvZ0VudHJ5RXJyb3JzGlUKE0xvZ0VudHJ5RXJyb3JzRW50cnkSEA' + 'oDa2V5GAEgASgFUgNrZXkSKAoFdmFsdWUYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1c1IFdmFs' + 'dWU6AjgB'); + @$core.Deprecated('Use listLogEntriesRequestDescriptor instead') const ListLogEntriesRequest$json = { '1': 'ListLogEntriesRequest', @@ -146,7 +164,12 @@ const ListLogEntriesRequest$json = { /// Descriptor for `ListLogEntriesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listLogEntriesRequestDescriptor = $convert.base64Decode( - 'ChVMaXN0TG9nRW50cmllc1JlcXVlc3QSSQoOcmVzb3VyY2VfbmFtZXMYCCADKAlCIuBBAvpBHBIabG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dSDXJlc291cmNlTmFtZXMSGwoGZmlsdGVyGAIgASgJQgPgQQFSBmZpbHRlchIeCghvcmRlcl9ieRgDIAEoCUID4EEBUgdvcmRlckJ5EiAKCXBhZ2Vfc2l6ZRgEIAEoBUID4EEBUghwYWdlU2l6ZRIiCgpwYWdlX3Rva2VuGAUgASgJQgPgQQFSCXBhZ2VUb2tlbg=='); + 'ChVMaXN0TG9nRW50cmllc1JlcXVlc3QSSQoOcmVzb3VyY2VfbmFtZXMYCCADKAlCIuBBAvpBHB' + 'IabG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dSDXJlc291cmNlTmFtZXMSGwoGZmlsdGVyGAIg' + 'ASgJQgPgQQFSBmZpbHRlchIeCghvcmRlcl9ieRgDIAEoCUID4EEBUgdvcmRlckJ5EiAKCXBhZ2' + 'Vfc2l6ZRgEIAEoBUID4EEBUghwYWdlU2l6ZRIiCgpwYWdlX3Rva2VuGAUgASgJQgPgQQFSCXBh' + 'Z2VUb2tlbg=='); + @$core.Deprecated('Use listLogEntriesResponseDescriptor instead') const ListLogEntriesResponse$json = { '1': 'ListLogEntriesResponse', @@ -164,9 +187,11 @@ const ListLogEntriesResponse$json = { }; /// Descriptor for `ListLogEntriesResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listLogEntriesResponseDescriptor = - $convert.base64Decode( - 'ChZMaXN0TG9nRW50cmllc1Jlc3BvbnNlEjUKB2VudHJpZXMYASADKAsyGy5nb29nbGUubG9nZ2luZy52Mi5Mb2dFbnRyeVIHZW50cmllcxImCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQYWdlVG9rZW4='); +final $typed_data.Uint8List listLogEntriesResponseDescriptor = $convert.base64Decode( + 'ChZMaXN0TG9nRW50cmllc1Jlc3BvbnNlEjUKB2VudHJpZXMYASADKAsyGy5nb29nbGUubG9nZ2' + 'luZy52Mi5Mb2dFbnRyeVIHZW50cmllcxImCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAlSDW5leHRQ' + 'YWdlVG9rZW4='); + @$core .Deprecated('Use listMonitoredResourceDescriptorsRequestDescriptor instead') const ListMonitoredResourceDescriptorsRequest$json = { @@ -180,7 +205,9 @@ const ListMonitoredResourceDescriptorsRequest$json = { /// Descriptor for `ListMonitoredResourceDescriptorsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listMonitoredResourceDescriptorsRequestDescriptor = $convert.base64Decode( - 'CidMaXN0TW9uaXRvcmVkUmVzb3VyY2VEZXNjcmlwdG9yc1JlcXVlc3QSIAoJcGFnZV9zaXplGAEgASgFQgPgQQFSCHBhZ2VTaXplEiIKCnBhZ2VfdG9rZW4YAiABKAlCA+BBAVIJcGFnZVRva2Vu'); + 'CidMaXN0TW9uaXRvcmVkUmVzb3VyY2VEZXNjcmlwdG9yc1JlcXVlc3QSIAoJcGFnZV9zaXplGA' + 'EgASgFQgPgQQFSCHBhZ2VTaXplEiIKCnBhZ2VfdG9rZW4YAiABKAlCA+BBAVIJcGFnZVRva2Vu'); + @$core.Deprecated( 'Use listMonitoredResourceDescriptorsResponseDescriptor instead') const ListMonitoredResourceDescriptorsResponse$json = { @@ -201,14 +228,16 @@ const ListMonitoredResourceDescriptorsResponse$json = { /// Descriptor for `ListMonitoredResourceDescriptorsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listMonitoredResourceDescriptorsResponseDescriptor = $convert.base64Decode( - 'CihMaXN0TW9uaXRvcmVkUmVzb3VyY2VEZXNjcmlwdG9yc1Jlc3BvbnNlEloKFHJlc291cmNlX2Rlc2NyaXB0b3JzGAEgAygLMicuZ29vZ2xlLmFwaS5Nb25pdG9yZWRSZXNvdXJjZURlc2NyaXB0b3JSE3Jlc291cmNlRGVzY3JpcHRvcnMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + 'CihMaXN0TW9uaXRvcmVkUmVzb3VyY2VEZXNjcmlwdG9yc1Jlc3BvbnNlEloKFHJlc291cmNlX2' + 'Rlc2NyaXB0b3JzGAEgAygLMicuZ29vZ2xlLmFwaS5Nb25pdG9yZWRSZXNvdXJjZURlc2NyaXB0' + 'b3JSE3Jlc291cmNlRGVzY3JpcHRvcnMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UG' + 'FnZVRva2Vu'); + @$core.Deprecated('Use listLogsRequestDescriptor instead') const ListLogsRequest$json = { '1': 'ListLogsRequest', '2': [ {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, - {'1': 'page_size', '3': 2, '4': 1, '5': 5, '8': {}, '10': 'pageSize'}, - {'1': 'page_token', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'pageToken'}, { '1': 'resource_names', '3': 8, @@ -217,12 +246,18 @@ const ListLogsRequest$json = { '8': {}, '10': 'resourceNames' }, + {'1': 'page_size', '3': 2, '4': 1, '5': 5, '8': {}, '10': 'pageSize'}, + {'1': 'page_token', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'pageToken'}, ], }; /// Descriptor for `ListLogsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listLogsRequestDescriptor = $convert.base64Decode( - 'Cg9MaXN0TG9nc1JlcXVlc3QSOgoGcGFyZW50GAEgASgJQiLgQQL6QRwSGmxvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nUgZwYXJlbnQSIAoJcGFnZV9zaXplGAIgASgFQgPgQQFSCHBhZ2VTaXplEiIKCnBhZ2VfdG9rZW4YAyABKAlCA+BBAVIJcGFnZVRva2VuEioKDnJlc291cmNlX25hbWVzGAggAygJQgPgQQFSDXJlc291cmNlTmFtZXM='); + 'Cg9MaXN0TG9nc1JlcXVlc3QSOgoGcGFyZW50GAEgASgJQiLgQQL6QRwSGmxvZ2dpbmcuZ29vZ2' + 'xlYXBpcy5jb20vTG9nUgZwYXJlbnQSSQoOcmVzb3VyY2VfbmFtZXMYCCADKAlCIuBBAfpBHBIa' + 'bG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dSDXJlc291cmNlTmFtZXMSIAoJcGFnZV9zaXplGA' + 'IgASgFQgPgQQFSCHBhZ2VTaXplEiIKCnBhZ2VfdG9rZW4YAyABKAlCA+BBAVIJcGFnZVRva2Vu'); + @$core.Deprecated('Use listLogsResponseDescriptor instead') const ListLogsResponse$json = { '1': 'ListLogsResponse', @@ -234,7 +269,9 @@ const ListLogsResponse$json = { /// Descriptor for `ListLogsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listLogsResponseDescriptor = $convert.base64Decode( - 'ChBMaXN0TG9nc1Jlc3BvbnNlEhsKCWxvZ19uYW1lcxgDIAMoCVIIbG9nTmFtZXMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + 'ChBMaXN0TG9nc1Jlc3BvbnNlEhsKCWxvZ19uYW1lcxgDIAMoCVIIbG9nTmFtZXMSJgoPbmV4dF' + '9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + @$core.Deprecated('Use tailLogEntriesRequestDescriptor instead') const TailLogEntriesRequest$json = { '1': 'TailLogEntriesRequest', @@ -262,7 +299,10 @@ const TailLogEntriesRequest$json = { /// Descriptor for `TailLogEntriesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List tailLogEntriesRequestDescriptor = $convert.base64Decode( - 'ChVUYWlsTG9nRW50cmllc1JlcXVlc3QSKgoOcmVzb3VyY2VfbmFtZXMYASADKAlCA+BBAlINcmVzb3VyY2VOYW1lcxIbCgZmaWx0ZXIYAiABKAlCA+BBAVIGZmlsdGVyEkMKDWJ1ZmZlcl93aW5kb3cYAyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25CA+BBAVIMYnVmZmVyV2luZG93'); + 'ChVUYWlsTG9nRW50cmllc1JlcXVlc3QSKgoOcmVzb3VyY2VfbmFtZXMYASADKAlCA+BBAlINcm' + 'Vzb3VyY2VOYW1lcxIbCgZmaWx0ZXIYAiABKAlCA+BBAVIGZmlsdGVyEkMKDWJ1ZmZlcl93aW5k' + 'b3cYAyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25CA+BBAVIMYnVmZmVyV2luZG93'); + @$core.Deprecated('Use tailLogEntriesResponseDescriptor instead') const TailLogEntriesResponse$json = { '1': 'TailLogEntriesResponse', @@ -315,6 +355,12 @@ const TailLogEntriesResponse_SuppressionInfo_Reason$json = { }; /// Descriptor for `TailLogEntriesResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List tailLogEntriesResponseDescriptor = - $convert.base64Decode( - 'ChZUYWlsTG9nRW50cmllc1Jlc3BvbnNlEjUKB2VudHJpZXMYASADKAsyGy5nb29nbGUubG9nZ2luZy52Mi5Mb2dFbnRyeVIHZW50cmllcxJkChBzdXBwcmVzc2lvbl9pbmZvGAIgAygLMjkuZ29vZ2xlLmxvZ2dpbmcudjIuVGFpbExvZ0VudHJpZXNSZXNwb25zZS5TdXBwcmVzc2lvbkluZm9SD3N1cHByZXNzaW9uSW5mbxraAQoPU3VwcHJlc3Npb25JbmZvElgKBnJlYXNvbhgBIAEoDjJALmdvb2dsZS5sb2dnaW5nLnYyLlRhaWxMb2dFbnRyaWVzUmVzcG9uc2UuU3VwcHJlc3Npb25JbmZvLlJlYXNvblIGcmVhc29uEikKEHN1cHByZXNzZWRfY291bnQYAiABKAVSD3N1cHByZXNzZWRDb3VudCJCCgZSZWFzb24SFgoSUkVBU09OX1VOU1BFQ0lGSUVEEAASDgoKUkFURV9MSU1JVBABEhAKDE5PVF9DT05TVU1FRBAC'); +final $typed_data.Uint8List tailLogEntriesResponseDescriptor = $convert.base64Decode( + 'ChZUYWlsTG9nRW50cmllc1Jlc3BvbnNlEjUKB2VudHJpZXMYASADKAsyGy5nb29nbGUubG9nZ2' + 'luZy52Mi5Mb2dFbnRyeVIHZW50cmllcxJkChBzdXBwcmVzc2lvbl9pbmZvGAIgAygLMjkuZ29v' + 'Z2xlLmxvZ2dpbmcudjIuVGFpbExvZ0VudHJpZXNSZXNwb25zZS5TdXBwcmVzc2lvbkluZm9SD3' + 'N1cHByZXNzaW9uSW5mbxraAQoPU3VwcHJlc3Npb25JbmZvElgKBnJlYXNvbhgBIAEoDjJALmdv' + 'b2dsZS5sb2dnaW5nLnYyLlRhaWxMb2dFbnRyaWVzUmVzcG9uc2UuU3VwcHJlc3Npb25JbmZvLl' + 'JlYXNvblIGcmVhc29uEikKEHN1cHByZXNzZWRfY291bnQYAiABKAVSD3N1cHByZXNzZWRDb3Vu' + 'dCJCCgZSZWFzb24SFgoSUkVBU09OX1VOU1BFQ0lGSUVEEAASDgoKUkFURV9MSU1JVBABEhAKDE' + '5PVF9DT05TVU1FRBAC'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pb.dart index 198dce3d..503d3623 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pb.dart @@ -1,92 +1,227 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging_config.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import '../../protobuf/timestamp.pb.dart' as $2; -import '../../protobuf/field_mask.pb.dart' as $3; - +import '../../protobuf/field_mask.pb.dart' as $58; +import '../../protobuf/timestamp.pb.dart' as $50; import 'logging_config.pbenum.dart'; export 'logging_config.pbenum.dart'; -class LogBucket extends $pb.GeneratedMessage { +/// Configuration for an indexed field. +class IndexConfig extends $pb.GeneratedMessage { + factory IndexConfig({ + $core.String? fieldPath, + IndexType? type, + $50.Timestamp? createTime, + }) { + final $result = create(); + if (fieldPath != null) { + $result.fieldPath = fieldPath; + } + if (type != null) { + $result.type = type; + } + if (createTime != null) { + $result.createTime = createTime; + } + return $result; + } + IndexConfig._() : super(); + factory IndexConfig.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory IndexConfig.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogBucket', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), + _omitMessageNames ? '' : 'IndexConfig', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..aOM<$2.Timestamp>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createTime', - subBuilder: $2.Timestamp.create) - ..aOM<$2.Timestamp>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateTime', - subBuilder: $2.Timestamp.create) - ..aOB(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'locked') - ..a<$core.int>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'retentionDays', $pb.PbFieldType.O3) - ..e(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'lifecycleState', $pb.PbFieldType.OE, defaultOrMaker: LifecycleState.LIFECYCLE_STATE_UNSPECIFIED, valueOf: LifecycleState.valueOf, enumValues: LifecycleState.values) + ..aOS(1, _omitFieldNames ? '' : 'fieldPath') + ..e(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: IndexType.INDEX_TYPE_UNSPECIFIED, + valueOf: IndexType.valueOf, + enumValues: IndexType.values) + ..aOM<$50.Timestamp>(3, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) ..hasRequiredFields = false; - LogBucket._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + IndexConfig clone() => IndexConfig()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + IndexConfig copyWith(void Function(IndexConfig) updates) => + super.copyWith((message) => updates(message as IndexConfig)) + as IndexConfig; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static IndexConfig create() => IndexConfig._(); + IndexConfig createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static IndexConfig getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static IndexConfig? _defaultInstance; + + /// Required. The LogEntry field path to index. + /// + /// Note that some paths are automatically indexed, and other paths are not + /// eligible for indexing. See [indexing documentation]( + /// https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields) + /// for details. + /// + /// For example: `jsonPayload.request.status` + @$pb.TagNumber(1) + $core.String get fieldPath => $_getSZ(0); + @$pb.TagNumber(1) + set fieldPath($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasFieldPath() => $_has(0); + @$pb.TagNumber(1) + void clearFieldPath() => clearField(1); + + /// Required. The type of data in this index. + @$pb.TagNumber(2) + IndexType get type => $_getN(1); + @$pb.TagNumber(2) + set type(IndexType v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasType() => $_has(1); + @$pb.TagNumber(2) + void clearType() => clearField(2); + + /// Output only. The timestamp when the index was last modified. + /// + /// This is used to return the timestamp, and will be ignored if supplied + /// during update. + @$pb.TagNumber(3) + $50.Timestamp get createTime => $_getN(2); + @$pb.TagNumber(3) + set createTime($50.Timestamp v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasCreateTime() => $_has(2); + @$pb.TagNumber(3) + void clearCreateTime() => clearField(3); + @$pb.TagNumber(3) + $50.Timestamp ensureCreateTime() => $_ensure(2); +} + +/// Describes a repository in which log entries are stored. +class LogBucket extends $pb.GeneratedMessage { factory LogBucket({ $core.String? name, $core.String? description, - $2.Timestamp? createTime, - $2.Timestamp? updateTime, + $50.Timestamp? createTime, + $50.Timestamp? updateTime, $core.bool? locked, $core.int? retentionDays, LifecycleState? lifecycleState, + $core.bool? analyticsEnabled, + $core.Iterable<$core.String>? restrictedFields, + $core.Iterable? indexConfigs, + CmekSettings? cmekSettings, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (description != null) { - _result.description = description; + $result.description = description; } if (createTime != null) { - _result.createTime = createTime; + $result.createTime = createTime; } if (updateTime != null) { - _result.updateTime = updateTime; + $result.updateTime = updateTime; } if (locked != null) { - _result.locked = locked; + $result.locked = locked; } if (retentionDays != null) { - _result.retentionDays = retentionDays; + $result.retentionDays = retentionDays; } if (lifecycleState != null) { - _result.lifecycleState = lifecycleState; + $result.lifecycleState = lifecycleState; + } + if (analyticsEnabled != null) { + $result.analyticsEnabled = analyticsEnabled; + } + if (restrictedFields != null) { + $result.restrictedFields.addAll(restrictedFields); + } + if (indexConfigs != null) { + $result.indexConfigs.addAll(indexConfigs); } - return _result; + if (cmekSettings != null) { + $result.cmekSettings = cmekSettings; + } + return $result; } + LogBucket._() : super(); factory LogBucket.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogBucket.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogBucket', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(3, _omitFieldNames ? '' : 'description') + ..aOM<$50.Timestamp>(4, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(5, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) + ..aOB(9, _omitFieldNames ? '' : 'locked') + ..a<$core.int>( + 11, _omitFieldNames ? '' : 'retentionDays', $pb.PbFieldType.O3) + ..e( + 12, _omitFieldNames ? '' : 'lifecycleState', $pb.PbFieldType.OE, + defaultOrMaker: LifecycleState.LIFECYCLE_STATE_UNSPECIFIED, + valueOf: LifecycleState.valueOf, + enumValues: LifecycleState.values) + ..aOB(14, _omitFieldNames ? '' : 'analyticsEnabled') + ..pPS(15, _omitFieldNames ? '' : 'restrictedFields') + ..pc( + 17, _omitFieldNames ? '' : 'indexConfigs', $pb.PbFieldType.PM, + subBuilder: IndexConfig.create) + ..aOM(19, _omitFieldNames ? '' : 'cmekSettings', + subBuilder: CmekSettings.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') @@ -95,9 +230,10 @@ class LogBucket extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') LogBucket copyWith(void Function(LogBucket) updates) => - super.copyWith((message) => updates(message as LogBucket)) - as LogBucket; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as LogBucket)) as LogBucket; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogBucket create() => LogBucket._(); LogBucket createEmptyInstance() => create(); @@ -107,6 +243,19 @@ class LogBucket extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static LogBucket? _defaultInstance; + /// Output only. The resource name of the bucket. + /// + /// For example: + /// + /// `projects/my-project/locations/global/buckets/my-bucket` + /// + /// For a list of supported locations, see [Supported + /// Regions](https://cloud.google.com/logging/docs/region-support) + /// + /// For the location of `global` it is unspecified where log entries are + /// actually stored. + /// + /// After a bucket has been created, the location cannot be changed. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -119,6 +268,7 @@ class LogBucket extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Describes this bucket. @$pb.TagNumber(3) $core.String get description => $_getSZ(1); @$pb.TagNumber(3) @@ -131,10 +281,12 @@ class LogBucket extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDescription() => clearField(3); + /// Output only. The creation timestamp of the bucket. This is not set for any + /// of the default buckets. @$pb.TagNumber(4) - $2.Timestamp get createTime => $_getN(2); + $50.Timestamp get createTime => $_getN(2); @$pb.TagNumber(4) - set createTime($2.Timestamp v) { + set createTime($50.Timestamp v) { setField(4, v); } @@ -143,12 +295,13 @@ class LogBucket extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearCreateTime() => clearField(4); @$pb.TagNumber(4) - $2.Timestamp ensureCreateTime() => $_ensure(2); + $50.Timestamp ensureCreateTime() => $_ensure(2); + /// Output only. The last update timestamp of the bucket. @$pb.TagNumber(5) - $2.Timestamp get updateTime => $_getN(3); + $50.Timestamp get updateTime => $_getN(3); @$pb.TagNumber(5) - set updateTime($2.Timestamp v) { + set updateTime($50.Timestamp v) { setField(5, v); } @@ -157,8 +310,12 @@ class LogBucket extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearUpdateTime() => clearField(5); @$pb.TagNumber(5) - $2.Timestamp ensureUpdateTime() => $_ensure(3); + $50.Timestamp ensureUpdateTime() => $_ensure(3); + /// Whether the bucket is locked. + /// + /// The retention period on a locked bucket cannot be changed. Locked buckets + /// may only be deleted if they are empty. @$pb.TagNumber(9) $core.bool get locked => $_getBF(4); @$pb.TagNumber(9) @@ -171,6 +328,10 @@ class LogBucket extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearLocked() => clearField(9); + /// Logs will be retained by default for this amount of time, after which they + /// will automatically be deleted. The minimum retention period is 1 day. If + /// this value is set to zero at bucket creation time, the default time of 30 + /// days will be used. @$pb.TagNumber(11) $core.int get retentionDays => $_getIZ(5); @$pb.TagNumber(11) @@ -183,6 +344,7 @@ class LogBucket extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearRetentionDays() => clearField(11); + /// Output only. The bucket lifecycle state. @$pb.TagNumber(12) LifecycleState get lifecycleState => $_getN(6); @$pb.TagNumber(12) @@ -194,69 +356,105 @@ class LogBucket extends $pb.GeneratedMessage { $core.bool hasLifecycleState() => $_has(6); @$pb.TagNumber(12) void clearLifecycleState() => clearField(12); + + /// Whether log analytics is enabled for this bucket. + /// + /// Once enabled, log analytics features cannot be disabled. + @$pb.TagNumber(14) + $core.bool get analyticsEnabled => $_getBF(7); + @$pb.TagNumber(14) + set analyticsEnabled($core.bool v) { + $_setBool(7, v); + } + + @$pb.TagNumber(14) + $core.bool hasAnalyticsEnabled() => $_has(7); + @$pb.TagNumber(14) + void clearAnalyticsEnabled() => clearField(14); + + /// Log entry field paths that are denied access in this bucket. + /// + /// The following fields and their children are eligible: `textPayload`, + /// `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`. + /// + /// Restricting a repeated field will restrict all values. Adding a parent will + /// block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`) + @$pb.TagNumber(15) + $core.List<$core.String> get restrictedFields => $_getList(8); + + /// A list of indexed fields and related configuration data. + @$pb.TagNumber(17) + $core.List get indexConfigs => $_getList(9); + + /// The CMEK settings of the log bucket. If present, new log entries written to + /// this log bucket are encrypted using the CMEK key provided in this + /// configuration. If a log bucket has CMEK settings, the CMEK settings cannot + /// be disabled later by updating the log bucket. Changing the KMS key is + /// allowed. + @$pb.TagNumber(19) + CmekSettings get cmekSettings => $_getN(10); + @$pb.TagNumber(19) + set cmekSettings(CmekSettings v) { + setField(19, v); + } + + @$pb.TagNumber(19) + $core.bool hasCmekSettings() => $_has(10); + @$pb.TagNumber(19) + void clearCmekSettings() => clearField(19); + @$pb.TagNumber(19) + CmekSettings ensureCmekSettings() => $_ensure(10); } +/// Describes a view over log entries in a bucket. class LogView extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogView', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..aOM<$2.Timestamp>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createTime', - subBuilder: $2.Timestamp.create) - ..aOM<$2.Timestamp>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateTime', - subBuilder: $2.Timestamp.create) - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter') - ..hasRequiredFields = false; - - LogView._() : super(); factory LogView({ $core.String? name, $core.String? description, - $2.Timestamp? createTime, - $2.Timestamp? updateTime, + $50.Timestamp? createTime, + $50.Timestamp? updateTime, $core.String? filter, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (description != null) { - _result.description = description; + $result.description = description; } if (createTime != null) { - _result.createTime = createTime; + $result.createTime = createTime; } if (updateTime != null) { - _result.updateTime = updateTime; + $result.updateTime = updateTime; } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } - return _result; + return $result; } + LogView._() : super(); factory LogView.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogView.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogView', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(3, _omitFieldNames ? '' : 'description') + ..aOM<$50.Timestamp>(4, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(5, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) + ..aOS(7, _omitFieldNames ? '' : 'filter') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -265,9 +463,10 @@ class LogView extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') LogView copyWith(void Function(LogView) updates) => - super.copyWith((message) => updates(message as LogView)) - as LogView; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as LogView)) as LogView; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogView create() => LogView._(); LogView createEmptyInstance() => create(); @@ -277,6 +476,11 @@ class LogView extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static LogView? _defaultInstance; + /// The resource name of the view. + /// + /// For example: + /// + /// `projects/my-project/locations/global/buckets/my-bucket/views/my-view` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -289,6 +493,7 @@ class LogView extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Describes this view. @$pb.TagNumber(3) $core.String get description => $_getSZ(1); @$pb.TagNumber(3) @@ -301,10 +506,11 @@ class LogView extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDescription() => clearField(3); + /// Output only. The creation timestamp of the view. @$pb.TagNumber(4) - $2.Timestamp get createTime => $_getN(2); + $50.Timestamp get createTime => $_getN(2); @$pb.TagNumber(4) - set createTime($2.Timestamp v) { + set createTime($50.Timestamp v) { setField(4, v); } @@ -313,12 +519,13 @@ class LogView extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearCreateTime() => clearField(4); @$pb.TagNumber(4) - $2.Timestamp ensureCreateTime() => $_ensure(2); + $50.Timestamp ensureCreateTime() => $_ensure(2); + /// Output only. The last update timestamp of the view. @$pb.TagNumber(5) - $2.Timestamp get updateTime => $_getN(3); + $50.Timestamp get updateTime => $_getN(3); @$pb.TagNumber(5) - set updateTime($2.Timestamp v) { + set updateTime($50.Timestamp v) { setField(5, v); } @@ -327,8 +534,22 @@ class LogView extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearUpdateTime() => clearField(5); @$pb.TagNumber(5) - $2.Timestamp ensureUpdateTime() => $_ensure(3); - + $50.Timestamp ensureUpdateTime() => $_ensure(3); + + /// Filter that restricts which log entries in a bucket are visible in this + /// view. + /// + /// Filters are restricted to be a logical AND of ==/!= of any of the + /// following: + /// + /// - originating project/folder/organization/billing account. + /// - resource type + /// - log id + /// + /// For example: + /// + /// SOURCE("projects/myproject") AND resource.type = "gce_instance" + /// AND LOG_ID("stdout") @$pb.TagNumber(7) $core.String get filter => $_getSZ(4); @$pb.TagNumber(7) @@ -344,114 +565,108 @@ class LogView extends $pb.GeneratedMessage { enum LogSink_Options { bigqueryOptions, notSet } +/// Describes a sink used to export log entries to one of the following +/// destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a +/// Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which log +/// entries are exported. The sink must be created within a project, +/// organization, billing account, or folder. class LogSink extends $pb.GeneratedMessage { - static const $core.Map<$core.int, LogSink_Options> _LogSink_OptionsByTag = { - 12: LogSink_Options.bigqueryOptions, - 0: LogSink_Options.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogSink', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..oo(0, [12]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'destination') - ..aOS( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filter') - ..e( - 6, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputVersionFormat', - $pb.PbFieldType.OE, - defaultOrMaker: LogSink_VersionFormat.VERSION_FORMAT_UNSPECIFIED, - valueOf: LogSink_VersionFormat.valueOf, - enumValues: LogSink_VersionFormat.values) - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'writerIdentity') - ..aOB(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'includeChildren') - ..aOM(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bigqueryOptions', subBuilder: BigQueryOptions.create) - ..aOM<$2.Timestamp>(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createTime', subBuilder: $2.Timestamp.create) - ..aOM<$2.Timestamp>(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateTime', subBuilder: $2.Timestamp.create) - ..pc(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'exclusions', $pb.PbFieldType.PM, subBuilder: LogExclusion.create) - ..aOS(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'description') - ..aOB(19, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'disabled') - ..hasRequiredFields = false; - - LogSink._() : super(); factory LogSink({ $core.String? name, $core.String? destination, $core.String? filter, @$core.Deprecated('This field is deprecated.') - LogSink_VersionFormat? outputVersionFormat, + LogSink_VersionFormat? outputVersionFormat, $core.String? writerIdentity, $core.bool? includeChildren, BigQueryOptions? bigqueryOptions, - $2.Timestamp? createTime, - $2.Timestamp? updateTime, + $50.Timestamp? createTime, + $50.Timestamp? updateTime, $core.Iterable? exclusions, $core.String? description, $core.bool? disabled, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (destination != null) { - _result.destination = destination; + $result.destination = destination; } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } if (outputVersionFormat != null) { // ignore: deprecated_member_use_from_same_package - _result.outputVersionFormat = outputVersionFormat; + $result.outputVersionFormat = outputVersionFormat; } if (writerIdentity != null) { - _result.writerIdentity = writerIdentity; + $result.writerIdentity = writerIdentity; } if (includeChildren != null) { - _result.includeChildren = includeChildren; + $result.includeChildren = includeChildren; } if (bigqueryOptions != null) { - _result.bigqueryOptions = bigqueryOptions; + $result.bigqueryOptions = bigqueryOptions; } if (createTime != null) { - _result.createTime = createTime; + $result.createTime = createTime; } if (updateTime != null) { - _result.updateTime = updateTime; + $result.updateTime = updateTime; } if (exclusions != null) { - _result.exclusions.addAll(exclusions); + $result.exclusions.addAll(exclusions); } if (description != null) { - _result.description = description; + $result.description = description; } if (disabled != null) { - _result.disabled = disabled; + $result.disabled = disabled; } - return _result; + return $result; } + LogSink._() : super(); factory LogSink.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogSink.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, LogSink_Options> _LogSink_OptionsByTag = { + 12: LogSink_Options.bigqueryOptions, + 0: LogSink_Options.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogSink', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..oo(0, [12]) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(3, _omitFieldNames ? '' : 'destination') + ..aOS(5, _omitFieldNames ? '' : 'filter') + ..e( + 6, _omitFieldNames ? '' : 'outputVersionFormat', $pb.PbFieldType.OE, + defaultOrMaker: LogSink_VersionFormat.VERSION_FORMAT_UNSPECIFIED, + valueOf: LogSink_VersionFormat.valueOf, + enumValues: LogSink_VersionFormat.values) + ..aOS(8, _omitFieldNames ? '' : 'writerIdentity') + ..aOB(9, _omitFieldNames ? '' : 'includeChildren') + ..aOM(12, _omitFieldNames ? '' : 'bigqueryOptions', + subBuilder: BigQueryOptions.create) + ..aOM<$50.Timestamp>(13, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(14, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) + ..pc( + 16, _omitFieldNames ? '' : 'exclusions', $pb.PbFieldType.PM, + subBuilder: LogExclusion.create) + ..aOS(18, _omitFieldNames ? '' : 'description') + ..aOB(19, _omitFieldNames ? '' : 'disabled') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -460,9 +675,10 @@ class LogSink extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') LogSink copyWith(void Function(LogSink) updates) => - super.copyWith((message) => updates(message as LogSink)) - as LogSink; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as LogSink)) as LogSink; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogSink create() => LogSink._(); LogSink createEmptyInstance() => create(); @@ -475,6 +691,12 @@ class LogSink extends $pb.GeneratedMessage { LogSink_Options whichOptions() => _LogSink_OptionsByTag[$_whichOneof(0)]!; void clearOptions() => clearField($_whichOneof(0)); + /// Required. The client-assigned sink identifier, unique within the project. + /// + /// For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited + /// to 100 characters and can include only the following characters: upper and + /// lower-case alphanumeric characters, underscores, hyphens, and periods. + /// First character has to be alphanumeric. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -487,6 +709,17 @@ class LogSink extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Required. The export destination: + /// + /// "storage.googleapis.com/[GCS_BUCKET]" + /// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" + /// "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" + /// + /// The sink's `writer_identity`, set when the sink is created, must have + /// permission to write to the destination or else the log entries are not + /// exported. For more information, see + /// [Exporting Logs with + /// Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). @$pb.TagNumber(3) $core.String get destination => $_getSZ(1); @$pb.TagNumber(3) @@ -499,6 +732,14 @@ class LogSink extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDestination() => clearField(3); + /// Optional. An [advanced logs + /// filter](https://cloud.google.com/logging/docs/view/advanced-queries). The + /// only exported log entries are those that are in the resource owning the + /// sink and that match the filter. + /// + /// For example: + /// + /// `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` @$pb.TagNumber(5) $core.String get filter => $_getSZ(2); @$pb.TagNumber(5) @@ -511,6 +752,7 @@ class LogSink extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearFilter() => clearField(5); + /// Deprecated. This field is unused. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(6) LogSink_VersionFormat get outputVersionFormat => $_getN(3); @@ -527,6 +769,24 @@ class LogSink extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearOutputVersionFormat() => clearField(6); + /// Output only. An IAM identity—a service account or group—under + /// which Cloud Logging writes the exported log entries to the sink's + /// destination. This field is either set by specifying + /// `custom_writer_identity` or set automatically by + /// [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and + /// [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the + /// value of `unique_writer_identity` in those methods. + /// + /// Until you grant this identity write-access to the destination, log entry + /// exports from this sink will fail. For more information, see [Granting + /// Access for a + /// Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). + /// Consult the destination service's documentation to determine the + /// appropriate IAM roles to assign to the identity. + /// + /// Sinks that have a destination that is a log bucket in the same project as + /// the sink cannot have a writer_identity and no additional permissions are + /// required. @$pb.TagNumber(8) $core.String get writerIdentity => $_getSZ(4); @$pb.TagNumber(8) @@ -539,6 +799,23 @@ class LogSink extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearWriterIdentity() => clearField(8); + /// Optional. This field applies only to sinks owned by organizations and + /// folders. If the field is false, the default, only the logs owned by the + /// sink's parent resource are available for export. If the field is true, then + /// log entries from all the projects, folders, and billing accounts contained + /// in the sink's parent resource are also available for export. Whether a + /// particular log entry from the children is exported depends on the sink's + /// filter expression. + /// + /// For example, if this field is true, then the filter + /// `resource.type=gce_instance` would export all Compute Engine VM instance + /// log entries from all projects in the sink's parent. + /// + /// To only export entries from certain child projects, filter on the project + /// part of the log name: + /// + /// logName:("projects/test-project1/" OR "projects/test-project2/") AND + /// resource.type=gce_instance @$pb.TagNumber(9) $core.bool get includeChildren => $_getBF(5); @$pb.TagNumber(9) @@ -551,6 +828,7 @@ class LogSink extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearIncludeChildren() => clearField(9); + /// Optional. Options that affect sinks exporting data to BigQuery. @$pb.TagNumber(12) BigQueryOptions get bigqueryOptions => $_getN(6); @$pb.TagNumber(12) @@ -565,10 +843,13 @@ class LogSink extends $pb.GeneratedMessage { @$pb.TagNumber(12) BigQueryOptions ensureBigqueryOptions() => $_ensure(6); + /// Output only. The creation timestamp of the sink. + /// + /// This field may not be present for older sinks. @$pb.TagNumber(13) - $2.Timestamp get createTime => $_getN(7); + $50.Timestamp get createTime => $_getN(7); @$pb.TagNumber(13) - set createTime($2.Timestamp v) { + set createTime($50.Timestamp v) { setField(13, v); } @@ -577,12 +858,15 @@ class LogSink extends $pb.GeneratedMessage { @$pb.TagNumber(13) void clearCreateTime() => clearField(13); @$pb.TagNumber(13) - $2.Timestamp ensureCreateTime() => $_ensure(7); + $50.Timestamp ensureCreateTime() => $_ensure(7); + /// Output only. The last update timestamp of the sink. + /// + /// This field may not be present for older sinks. @$pb.TagNumber(14) - $2.Timestamp get updateTime => $_getN(8); + $50.Timestamp get updateTime => $_getN(8); @$pb.TagNumber(14) - set updateTime($2.Timestamp v) { + set updateTime($50.Timestamp v) { setField(14, v); } @@ -591,11 +875,19 @@ class LogSink extends $pb.GeneratedMessage { @$pb.TagNumber(14) void clearUpdateTime() => clearField(14); @$pb.TagNumber(14) - $2.Timestamp ensureUpdateTime() => $_ensure(8); + $50.Timestamp ensureUpdateTime() => $_ensure(8); + /// Optional. Log entries that match any of these exclusion filters will not be + /// exported. + /// + /// If a log entry is matched by both `filter` and one of `exclusion_filters` + /// it will not be exported. @$pb.TagNumber(16) $core.List get exclusions => $_getList(9); + /// Optional. A description of this sink. + /// + /// The maximum length of the description is 8000 characters. @$pb.TagNumber(18) $core.String get description => $_getSZ(10); @$pb.TagNumber(18) @@ -608,6 +900,8 @@ class LogSink extends $pb.GeneratedMessage { @$pb.TagNumber(18) void clearDescription() => clearField(18); + /// Optional. If set to true, then this sink is disabled and it does not export + /// any log entries. @$pb.TagNumber(19) $core.bool get disabled => $_getBF(11); @$pb.TagNumber(19) @@ -621,245 +915,478 @@ class LogSink extends $pb.GeneratedMessage { void clearDisabled() => clearField(19); } -class BigQueryOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'BigQueryOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'usePartitionedTables') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'usesTimestampColumnPartitioning') - ..hasRequiredFields = false; - - BigQueryOptions._() : super(); - factory BigQueryOptions({ - $core.bool? usePartitionedTables, - $core.bool? usesTimestampColumnPartitioning, +/// Describes a BigQuery dataset that was created by a link. +class BigQueryDataset extends $pb.GeneratedMessage { + factory BigQueryDataset({ + $core.String? datasetId, }) { - final _result = create(); - if (usePartitionedTables != null) { - _result.usePartitionedTables = usePartitionedTables; + final $result = create(); + if (datasetId != null) { + $result.datasetId = datasetId; } - if (usesTimestampColumnPartitioning != null) { - _result.usesTimestampColumnPartitioning = usesTimestampColumnPartitioning; - } - return _result; + return $result; } - factory BigQueryOptions.fromBuffer($core.List<$core.int> i, + BigQueryDataset._() : super(); + factory BigQueryDataset.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory BigQueryOptions.fromJson($core.String i, + factory BigQueryDataset.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BigQueryDataset', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'datasetId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - BigQueryOptions clone() => BigQueryOptions()..mergeFromMessage(this); + BigQueryDataset clone() => BigQueryDataset()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - BigQueryOptions copyWith(void Function(BigQueryOptions) updates) => - super.copyWith((message) => updates(message as BigQueryOptions)) - as BigQueryOptions; // ignore: deprecated_member_use + BigQueryDataset copyWith(void Function(BigQueryDataset) updates) => + super.copyWith((message) => updates(message as BigQueryDataset)) + as BigQueryDataset; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static BigQueryOptions create() => BigQueryOptions._(); - BigQueryOptions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static BigQueryDataset create() => BigQueryDataset._(); + BigQueryDataset createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static BigQueryOptions getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static BigQueryOptions? _defaultInstance; - + static BigQueryDataset getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static BigQueryDataset? _defaultInstance; + + /// Output only. The full resource name of the BigQuery dataset. The DATASET_ID + /// will match the ID of the link, so the link must match the naming + /// restrictions of BigQuery datasets (alphanumeric characters and underscores + /// only). + /// + /// The dataset will have a resource path of + /// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]" @$pb.TagNumber(1) - $core.bool get usePartitionedTables => $_getBF(0); + $core.String get datasetId => $_getSZ(0); @$pb.TagNumber(1) - set usePartitionedTables($core.bool v) { - $_setBool(0, v); + set datasetId($core.String v) { + $_setString(0, v); } @$pb.TagNumber(1) - $core.bool hasUsePartitionedTables() => $_has(0); + $core.bool hasDatasetId() => $_has(0); @$pb.TagNumber(1) - void clearUsePartitionedTables() => clearField(1); - - @$pb.TagNumber(3) - $core.bool get usesTimestampColumnPartitioning => $_getBF(1); - @$pb.TagNumber(3) - set usesTimestampColumnPartitioning($core.bool v) { - $_setBool(1, v); - } - - @$pb.TagNumber(3) - $core.bool hasUsesTimestampColumnPartitioning() => $_has(1); - @$pb.TagNumber(3) - void clearUsesTimestampColumnPartitioning() => clearField(3); + void clearDatasetId() => clearField(1); } -class ListBucketsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListBucketsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ListBucketsRequest._() : super(); - factory ListBucketsRequest({ - $core.String? parent, - $core.String? pageToken, - $core.int? pageSize, +/// Describes a link connected to an analytics enabled bucket. +class Link extends $pb.GeneratedMessage { + factory Link({ + $core.String? name, + $core.String? description, + $50.Timestamp? createTime, + LifecycleState? lifecycleState, + BigQueryDataset? bigqueryDataset, }) { - final _result = create(); - if (parent != null) { - _result.parent = parent; + final $result = create(); + if (name != null) { + $result.name = name; } - if (pageToken != null) { - _result.pageToken = pageToken; + if (description != null) { + $result.description = description; } - if (pageSize != null) { - _result.pageSize = pageSize; + if (createTime != null) { + $result.createTime = createTime; } - return _result; + if (lifecycleState != null) { + $result.lifecycleState = lifecycleState; + } + if (bigqueryDataset != null) { + $result.bigqueryDataset = bigqueryDataset; + } + return $result; } - factory ListBucketsRequest.fromBuffer($core.List<$core.int> i, + Link._() : super(); + factory Link.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ListBucketsRequest.fromJson($core.String i, + factory Link.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Link', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'description') + ..aOM<$50.Timestamp>(3, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..e( + 4, _omitFieldNames ? '' : 'lifecycleState', $pb.PbFieldType.OE, + defaultOrMaker: LifecycleState.LIFECYCLE_STATE_UNSPECIFIED, + valueOf: LifecycleState.valueOf, + enumValues: LifecycleState.values) + ..aOM(5, _omitFieldNames ? '' : 'bigqueryDataset', + subBuilder: BigQueryDataset.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') - ListBucketsRequest clone() => ListBucketsRequest()..mergeFromMessage(this); + Link clone() => Link()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - ListBucketsRequest copyWith(void Function(ListBucketsRequest) updates) => - super.copyWith((message) => updates(message as ListBucketsRequest)) - as ListBucketsRequest; // ignore: deprecated_member_use + Link copyWith(void Function(Link) updates) => + super.copyWith((message) => updates(message as Link)) as Link; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static ListBucketsRequest create() => ListBucketsRequest._(); - ListBucketsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static Link create() => Link._(); + Link createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListBucketsRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static ListBucketsRequest? _defaultInstance; - + static Link getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Link? _defaultInstance; + + /// The resource name of the link. The name can have up to 100 characters. + /// A valid link id (at the end of the link name) must only have alphanumeric + /// characters and underscores within it. + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + /// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + /// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + /// + /// For example: + /// + /// `projects/my-project/locations/global/buckets/my-bucket/links/my_link @$pb.TagNumber(1) - $core.String get parent => $_getSZ(0); + $core.String get name => $_getSZ(0); @$pb.TagNumber(1) - set parent($core.String v) { + set name($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) - $core.bool hasParent() => $_has(0); + $core.bool hasName() => $_has(0); @$pb.TagNumber(1) - void clearParent() => clearField(1); + void clearName() => clearField(1); + /// Describes this link. + /// + /// The maximum length of the description is 8000 characters. @$pb.TagNumber(2) - $core.String get pageToken => $_getSZ(1); + $core.String get description => $_getSZ(1); @$pb.TagNumber(2) - set pageToken($core.String v) { + set description($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) - $core.bool hasPageToken() => $_has(1); + $core.bool hasDescription() => $_has(1); @$pb.TagNumber(2) - void clearPageToken() => clearField(2); + void clearDescription() => clearField(2); + /// Output only. The creation timestamp of the link. @$pb.TagNumber(3) - $core.int get pageSize => $_getIZ(2); + $50.Timestamp get createTime => $_getN(2); @$pb.TagNumber(3) - set pageSize($core.int v) { - $_setSignedInt32(2, v); + set createTime($50.Timestamp v) { + setField(3, v); } @$pb.TagNumber(3) - $core.bool hasPageSize() => $_has(2); + $core.bool hasCreateTime() => $_has(2); @$pb.TagNumber(3) - void clearPageSize() => clearField(3); -} + void clearCreateTime() => clearField(3); + @$pb.TagNumber(3) + $50.Timestamp ensureCreateTime() => $_ensure(2); -class ListBucketsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListBucketsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'buckets', - $pb.PbFieldType.PM, - subBuilder: LogBucket.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') + /// Output only. The resource lifecycle state. + @$pb.TagNumber(4) + LifecycleState get lifecycleState => $_getN(3); + @$pb.TagNumber(4) + set lifecycleState(LifecycleState v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasLifecycleState() => $_has(3); + @$pb.TagNumber(4) + void clearLifecycleState() => clearField(4); + + /// The information of a BigQuery Dataset. When a link is created, a BigQuery + /// dataset is created along with it, in the same project as the LogBucket it's + /// linked to. This dataset will also have BigQuery Views corresponding to the + /// LogViews in the bucket. + @$pb.TagNumber(5) + BigQueryDataset get bigqueryDataset => $_getN(4); + @$pb.TagNumber(5) + set bigqueryDataset(BigQueryDataset v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasBigqueryDataset() => $_has(4); + @$pb.TagNumber(5) + void clearBigqueryDataset() => clearField(5); + @$pb.TagNumber(5) + BigQueryDataset ensureBigqueryDataset() => $_ensure(4); +} + +/// Options that change functionality of a sink exporting data to BigQuery. +class BigQueryOptions extends $pb.GeneratedMessage { + factory BigQueryOptions({ + $core.bool? usePartitionedTables, + $core.bool? usesTimestampColumnPartitioning, + }) { + final $result = create(); + if (usePartitionedTables != null) { + $result.usePartitionedTables = usePartitionedTables; + } + if (usesTimestampColumnPartitioning != null) { + $result.usesTimestampColumnPartitioning = usesTimestampColumnPartitioning; + } + return $result; + } + BigQueryOptions._() : super(); + factory BigQueryOptions.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory BigQueryOptions.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BigQueryOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'usePartitionedTables') + ..aOB(3, _omitFieldNames ? '' : 'usesTimestampColumnPartitioning') ..hasRequiredFields = false; - ListBucketsResponse._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + BigQueryOptions clone() => BigQueryOptions()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + BigQueryOptions copyWith(void Function(BigQueryOptions) updates) => + super.copyWith((message) => updates(message as BigQueryOptions)) + as BigQueryOptions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static BigQueryOptions create() => BigQueryOptions._(); + BigQueryOptions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static BigQueryOptions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static BigQueryOptions? _defaultInstance; + + /// Optional. Whether to use [BigQuery's partition + /// tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By + /// default, Cloud Logging creates dated tables based on the log entries' + /// timestamps, e.g. syslog_20170523. With partitioned tables the date suffix + /// is no longer present and [special query + /// syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables) + /// has to be used instead. In both cases, tables are sharded based on UTC + /// timezone. + @$pb.TagNumber(1) + $core.bool get usePartitionedTables => $_getBF(0); + @$pb.TagNumber(1) + set usePartitionedTables($core.bool v) { + $_setBool(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasUsePartitionedTables() => $_has(0); + @$pb.TagNumber(1) + void clearUsePartitionedTables() => clearField(1); + + /// Output only. True if new timestamp column based partitioning is in use, + /// false if legacy ingestion-time partitioning is in use. + /// + /// All new sinks will have this field set true and will use timestamp column + /// based partitioning. If use_partitioned_tables is false, this value has no + /// meaning and will be false. Legacy sinks using partitioned tables will have + /// this field set to false. + @$pb.TagNumber(3) + $core.bool get usesTimestampColumnPartitioning => $_getBF(1); + @$pb.TagNumber(3) + set usesTimestampColumnPartitioning($core.bool v) { + $_setBool(1, v); + } + + @$pb.TagNumber(3) + $core.bool hasUsesTimestampColumnPartitioning() => $_has(1); + @$pb.TagNumber(3) + void clearUsesTimestampColumnPartitioning() => clearField(3); +} + +/// The parameters to `ListBuckets`. +class ListBucketsRequest extends $pb.GeneratedMessage { + factory ListBucketsRequest({ + $core.String? parent, + $core.String? pageToken, + $core.int? pageSize, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (pageToken != null) { + $result.pageToken = pageToken; + } + if (pageSize != null) { + $result.pageSize = pageSize; + } + return $result; + } + ListBucketsRequest._() : super(); + factory ListBucketsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListBucketsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListBucketsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'pageToken') + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListBucketsRequest clone() => ListBucketsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListBucketsRequest copyWith(void Function(ListBucketsRequest) updates) => + super.copyWith((message) => updates(message as ListBucketsRequest)) + as ListBucketsRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListBucketsRequest create() => ListBucketsRequest._(); + ListBucketsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListBucketsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListBucketsRequest? _defaultInstance; + + /// Required. The parent resource whose buckets are to be listed: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]" + /// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" + /// "folders/[FOLDER_ID]/locations/[LOCATION_ID]" + /// + /// Note: The locations portion of the resource must be specified, but + /// supplying the character `-` in place of [LOCATION_ID] will return all + /// buckets. + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// Optional. If present, then retrieve the next batch of results from the + /// preceding call to this method. `pageToken` must be the value of + /// `nextPageToken` from the previous response. The values of other method + /// parameters should be identical to those in the previous call. + @$pb.TagNumber(2) + $core.String get pageToken => $_getSZ(1); + @$pb.TagNumber(2) + set pageToken($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPageToken() => $_has(1); + @$pb.TagNumber(2) + void clearPageToken() => clearField(2); + + /// Optional. The maximum number of results to return from this request. + /// Non-positive values are ignored. The presence of `nextPageToken` in the + /// response indicates that more results might be available. + @$pb.TagNumber(3) + $core.int get pageSize => $_getIZ(2); + @$pb.TagNumber(3) + set pageSize($core.int v) { + $_setSignedInt32(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasPageSize() => $_has(2); + @$pb.TagNumber(3) + void clearPageSize() => clearField(3); +} + +/// The response from ListBuckets. +class ListBucketsResponse extends $pb.GeneratedMessage { factory ListBucketsResponse({ $core.Iterable? buckets, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (buckets != null) { - _result.buckets.addAll(buckets); + $result.buckets.addAll(buckets); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListBucketsResponse._() : super(); factory ListBucketsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListBucketsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListBucketsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'buckets', $pb.PbFieldType.PM, + subBuilder: LogBucket.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -869,8 +1396,10 @@ class ListBucketsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListBucketsResponse copyWith(void Function(ListBucketsResponse) updates) => super.copyWith((message) => updates(message as ListBucketsResponse)) - as ListBucketsResponse; // ignore: deprecated_member_use + as ListBucketsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListBucketsResponse create() => ListBucketsResponse._(); ListBucketsResponse createEmptyInstance() => create(); @@ -881,9 +1410,13 @@ class ListBucketsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListBucketsResponse? _defaultInstance; + /// A list of buckets. @$pb.TagNumber(1) $core.List get buckets => $_getList(0); + /// If there might be more results than appear in this response, then + /// `nextPageToken` is included. To get the next set of results, call the same + /// method again using the value of `nextPageToken` as `pageToken`. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -897,58 +1430,44 @@ class ListBucketsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// The parameters to `CreateBucket`. class CreateBucketRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateBucketRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bucketId') - ..aOM( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'bucket', - subBuilder: LogBucket.create) - ..hasRequiredFields = false; - - CreateBucketRequest._() : super(); factory CreateBucketRequest({ $core.String? parent, $core.String? bucketId, LogBucket? bucket, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (bucketId != null) { - _result.bucketId = bucketId; + $result.bucketId = bucketId; } if (bucket != null) { - _result.bucket = bucket; + $result.bucket = bucket; } - return _result; + return $result; } + CreateBucketRequest._() : super(); factory CreateBucketRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateBucketRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateBucketRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'bucketId') + ..aOM(3, _omitFieldNames ? '' : 'bucket', + subBuilder: LogBucket.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') @@ -958,8 +1477,10 @@ class CreateBucketRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CreateBucketRequest copyWith(void Function(CreateBucketRequest) updates) => super.copyWith((message) => updates(message as CreateBucketRequest)) - as CreateBucketRequest; // ignore: deprecated_member_use + as CreateBucketRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateBucketRequest create() => CreateBucketRequest._(); CreateBucketRequest createEmptyInstance() => create(); @@ -970,6 +1491,13 @@ class CreateBucketRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateBucketRequest? _defaultInstance; + /// Required. The resource in which to create the log bucket: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]" + /// + /// For example: + /// + /// `"projects/my-project/locations/global"` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -982,6 +1510,9 @@ class CreateBucketRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Required. A client-assigned identifier such as `"my-bucket"`. Identifiers + /// are limited to 100 characters and can include only letters, digits, + /// underscores, hyphens, and periods. @$pb.TagNumber(2) $core.String get bucketId => $_getSZ(1); @$pb.TagNumber(2) @@ -994,6 +1525,9 @@ class CreateBucketRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearBucketId() => clearField(2); + /// Required. The new bucket. The region specified in the new bucket must be + /// compliant with any Location Restriction Org Policy. The name field in the + /// bucket is ignored. @$pb.TagNumber(3) LogBucket get bucket => $_getN(2); @$pb.TagNumber(3) @@ -1009,53 +1543,45 @@ class CreateBucketRequest extends $pb.GeneratedMessage { LogBucket ensureBucket() => $_ensure(2); } +/// The parameters to `UpdateBucket`. class UpdateBucketRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateBucketRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bucket', - subBuilder: LogBucket.create) - ..aOM<$3.FieldMask>(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $3.FieldMask.create) - ..hasRequiredFields = false; - - UpdateBucketRequest._() : super(); factory UpdateBucketRequest({ $core.String? name, LogBucket? bucket, - $3.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (bucket != null) { - _result.bucket = bucket; + $result.bucket = bucket; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateBucketRequest._() : super(); factory UpdateBucketRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateBucketRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateBucketRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM(2, _omitFieldNames ? '' : 'bucket', + subBuilder: LogBucket.create) + ..aOM<$58.FieldMask>(4, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -1065,8 +1591,10 @@ class UpdateBucketRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') UpdateBucketRequest copyWith(void Function(UpdateBucketRequest) updates) => super.copyWith((message) => updates(message as UpdateBucketRequest)) - as UpdateBucketRequest; // ignore: deprecated_member_use + as UpdateBucketRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateBucketRequest create() => UpdateBucketRequest._(); UpdateBucketRequest createEmptyInstance() => create(); @@ -1077,6 +1605,16 @@ class UpdateBucketRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateBucketRequest? _defaultInstance; + /// Required. The full resource name of the bucket to update. + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// + /// For example: + /// + /// `"projects/my-project/locations/global/buckets/my-bucket"` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1089,6 +1627,7 @@ class UpdateBucketRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Required. The updated bucket. @$pb.TagNumber(2) LogBucket get bucket => $_getN(1); @$pb.TagNumber(2) @@ -1103,10 +1642,18 @@ class UpdateBucketRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) LogBucket ensureBucket() => $_ensure(1); + /// Required. Field mask that specifies the fields in `bucket` that need an + /// update. A bucket field will be overwritten if, and only if, it is in the + /// update mask. `name` and output only fields cannot be updated. + /// + /// For a detailed `FieldMask` definition, see: + /// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask + /// + /// For example: `updateMask=retention_days` @$pb.TagNumber(4) - $3.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(4) - set updateMask($3.FieldMask v) { + set updateMask($58.FieldMask v) { setField(4, v); } @@ -1115,42 +1662,36 @@ class UpdateBucketRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUpdateMask() => clearField(4); @$pb.TagNumber(4) - $3.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// The parameters to `GetBucket`. class GetBucketRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetBucketRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetBucketRequest._() : super(); factory GetBucketRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetBucketRequest._() : super(); factory GetBucketRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetBucketRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetBucketRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1160,8 +1701,10 @@ class GetBucketRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetBucketRequest copyWith(void Function(GetBucketRequest) updates) => super.copyWith((message) => updates(message as GetBucketRequest)) - as GetBucketRequest; // ignore: deprecated_member_use + as GetBucketRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetBucketRequest create() => GetBucketRequest._(); GetBucketRequest createEmptyInstance() => create(); @@ -1172,6 +1715,16 @@ class GetBucketRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetBucketRequest? _defaultInstance; + /// Required. The resource name of the bucket: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// + /// For example: + /// + /// `"projects/my-project/locations/global/buckets/my-bucket"` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1185,39 +1738,33 @@ class GetBucketRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The parameters to `DeleteBucket`. class DeleteBucketRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteBucketRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteBucketRequest._() : super(); factory DeleteBucketRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteBucketRequest._() : super(); factory DeleteBucketRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteBucketRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteBucketRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1227,8 +1774,10 @@ class DeleteBucketRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteBucketRequest copyWith(void Function(DeleteBucketRequest) updates) => super.copyWith((message) => updates(message as DeleteBucketRequest)) - as DeleteBucketRequest; // ignore: deprecated_member_use + as DeleteBucketRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteBucketRequest create() => DeleteBucketRequest._(); DeleteBucketRequest createEmptyInstance() => create(); @@ -1239,6 +1788,16 @@ class DeleteBucketRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteBucketRequest? _defaultInstance; + /// Required. The full resource name of the bucket to delete. + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// + /// For example: + /// + /// `"projects/my-project/locations/global/buckets/my-bucket"` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1252,39 +1811,33 @@ class DeleteBucketRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The parameters to `UndeleteBucket`. class UndeleteBucketRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UndeleteBucketRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - UndeleteBucketRequest._() : super(); factory UndeleteBucketRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + UndeleteBucketRequest._() : super(); factory UndeleteBucketRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UndeleteBucketRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UndeleteBucketRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1296,8 +1849,10 @@ class UndeleteBucketRequest extends $pb.GeneratedMessage { UndeleteBucketRequest copyWith( void Function(UndeleteBucketRequest) updates) => super.copyWith((message) => updates(message as UndeleteBucketRequest)) - as UndeleteBucketRequest; // ignore: deprecated_member_use + as UndeleteBucketRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UndeleteBucketRequest create() => UndeleteBucketRequest._(); UndeleteBucketRequest createEmptyInstance() => create(); @@ -1308,6 +1863,16 @@ class UndeleteBucketRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UndeleteBucketRequest? _defaultInstance; + /// Required. The full resource name of the bucket to undelete. + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// + /// For example: + /// + /// `"projects/my-project/locations/global/buckets/my-bucket"` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1321,58 +1886,43 @@ class UndeleteBucketRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The parameters to `ListViews`. class ListViewsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListViewsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ListViewsRequest._() : super(); factory ListViewsRequest({ $core.String? parent, $core.String? pageToken, $core.int? pageSize, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } - return _result; + return $result; } + ListViewsRequest._() : super(); factory ListViewsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListViewsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListViewsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'pageToken') + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1382,8 +1932,10 @@ class ListViewsRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListViewsRequest copyWith(void Function(ListViewsRequest) updates) => super.copyWith((message) => updates(message as ListViewsRequest)) - as ListViewsRequest; // ignore: deprecated_member_use + as ListViewsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListViewsRequest create() => ListViewsRequest._(); ListViewsRequest createEmptyInstance() => create(); @@ -1394,6 +1946,9 @@ class ListViewsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListViewsRequest? _defaultInstance; + /// Required. The bucket whose views are to be listed: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1406,6 +1961,10 @@ class ListViewsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Optional. If present, then retrieve the next batch of results from the + /// preceding call to this method. `pageToken` must be the value of + /// `nextPageToken` from the previous response. The values of other method + /// parameters should be identical to those in the previous call. @$pb.TagNumber(2) $core.String get pageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1418,6 +1977,10 @@ class ListViewsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageToken() => clearField(2); + /// Optional. The maximum number of results to return from this request. + /// + /// Non-positive values are ignored. The presence of `nextPageToken` in the + /// response indicates that more results might be available. @$pb.TagNumber(3) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(3) @@ -1431,47 +1994,39 @@ class ListViewsRequest extends $pb.GeneratedMessage { void clearPageSize() => clearField(3); } +/// The response from ListViews. class ListViewsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListViewsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'views', - $pb.PbFieldType.PM, - subBuilder: LogView.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListViewsResponse._() : super(); factory ListViewsResponse({ $core.Iterable? views, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (views != null) { - _result.views.addAll(views); + $result.views.addAll(views); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListViewsResponse._() : super(); factory ListViewsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListViewsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListViewsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'views', $pb.PbFieldType.PM, + subBuilder: LogView.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1481,8 +2036,10 @@ class ListViewsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListViewsResponse copyWith(void Function(ListViewsResponse) updates) => super.copyWith((message) => updates(message as ListViewsResponse)) - as ListViewsResponse; // ignore: deprecated_member_use + as ListViewsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListViewsResponse create() => ListViewsResponse._(); ListViewsResponse createEmptyInstance() => create(); @@ -1493,9 +2050,13 @@ class ListViewsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListViewsResponse? _defaultInstance; + /// A list of views. @$pb.TagNumber(1) $core.List get views => $_getList(0); + /// If there might be more results than appear in this response, then + /// `nextPageToken` is included. To get the next set of results, call the same + /// method again using the value of `nextPageToken` as `pageToken`. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1509,58 +2070,43 @@ class ListViewsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// The parameters to `CreateView`. class CreateViewRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateViewRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'viewId') - ..aOM( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'view', - subBuilder: LogView.create) - ..hasRequiredFields = false; - - CreateViewRequest._() : super(); factory CreateViewRequest({ $core.String? parent, $core.String? viewId, LogView? view, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (viewId != null) { - _result.viewId = viewId; + $result.viewId = viewId; } if (view != null) { - _result.view = view; + $result.view = view; } - return _result; + return $result; } + CreateViewRequest._() : super(); factory CreateViewRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateViewRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateViewRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'viewId') + ..aOM(3, _omitFieldNames ? '' : 'view', subBuilder: LogView.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') @@ -1570,8 +2116,10 @@ class CreateViewRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CreateViewRequest copyWith(void Function(CreateViewRequest) updates) => super.copyWith((message) => updates(message as CreateViewRequest)) - as CreateViewRequest; // ignore: deprecated_member_use + as CreateViewRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateViewRequest create() => CreateViewRequest._(); CreateViewRequest createEmptyInstance() => create(); @@ -1582,6 +2130,13 @@ class CreateViewRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateViewRequest? _defaultInstance; + /// Required. The bucket in which to create the view + /// + /// `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` + /// + /// For example: + /// + /// `"projects/my-project/locations/global/buckets/my-bucket"` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1594,6 +2149,9 @@ class CreateViewRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Required. A client-assigned identifier such as `"my-view"`. Identifiers are + /// limited to 100 characters and can include only letters, digits, + /// underscores, hyphens, and periods. @$pb.TagNumber(2) $core.String get viewId => $_getSZ(1); @$pb.TagNumber(2) @@ -1606,6 +2164,7 @@ class CreateViewRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearViewId() => clearField(2); + /// Required. The new view. @$pb.TagNumber(3) LogView get view => $_getN(2); @$pb.TagNumber(3) @@ -1621,53 +2180,44 @@ class CreateViewRequest extends $pb.GeneratedMessage { LogView ensureView() => $_ensure(2); } +/// The parameters to `UpdateView`. class UpdateViewRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateViewRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'view', - subBuilder: LogView.create) - ..aOM<$3.FieldMask>(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $3.FieldMask.create) - ..hasRequiredFields = false; - - UpdateViewRequest._() : super(); factory UpdateViewRequest({ $core.String? name, LogView? view, - $3.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (view != null) { - _result.view = view; + $result.view = view; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateViewRequest._() : super(); factory UpdateViewRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateViewRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateViewRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM(2, _omitFieldNames ? '' : 'view', subBuilder: LogView.create) + ..aOM<$58.FieldMask>(4, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -1677,8 +2227,10 @@ class UpdateViewRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') UpdateViewRequest copyWith(void Function(UpdateViewRequest) updates) => super.copyWith((message) => updates(message as UpdateViewRequest)) - as UpdateViewRequest; // ignore: deprecated_member_use + as UpdateViewRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateViewRequest create() => UpdateViewRequest._(); UpdateViewRequest createEmptyInstance() => create(); @@ -1689,6 +2241,13 @@ class UpdateViewRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateViewRequest? _defaultInstance; + /// Required. The full resource name of the view to update + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + /// + /// For example: + /// + /// `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1701,6 +2260,7 @@ class UpdateViewRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Required. The updated view. @$pb.TagNumber(2) LogView get view => $_getN(1); @$pb.TagNumber(2) @@ -1715,10 +2275,18 @@ class UpdateViewRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) LogView ensureView() => $_ensure(1); + /// Optional. Field mask that specifies the fields in `view` that need + /// an update. A field will be overwritten if, and only if, it is + /// in the update mask. `name` and output only fields cannot be updated. + /// + /// For a detailed `FieldMask` definition, see + /// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask + /// + /// For example: `updateMask=filter` @$pb.TagNumber(4) - $3.FieldMask get updateMask => $_getN(2); + $58.FieldMask get updateMask => $_getN(2); @$pb.TagNumber(4) - set updateMask($3.FieldMask v) { + set updateMask($58.FieldMask v) { setField(4, v); } @@ -1727,42 +2295,36 @@ class UpdateViewRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUpdateMask() => clearField(4); @$pb.TagNumber(4) - $3.FieldMask ensureUpdateMask() => $_ensure(2); + $58.FieldMask ensureUpdateMask() => $_ensure(2); } +/// The parameters to `GetView`. class GetViewRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetViewRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetViewRequest._() : super(); factory GetViewRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetViewRequest._() : super(); factory GetViewRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetViewRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetViewRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1772,8 +2334,10 @@ class GetViewRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetViewRequest copyWith(void Function(GetViewRequest) updates) => super.copyWith((message) => updates(message as GetViewRequest)) - as GetViewRequest; // ignore: deprecated_member_use + as GetViewRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetViewRequest create() => GetViewRequest._(); GetViewRequest createEmptyInstance() => create(); @@ -1784,6 +2348,13 @@ class GetViewRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetViewRequest? _defaultInstance; + /// Required. The resource name of the policy: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + /// + /// For example: + /// + /// `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1797,39 +2368,33 @@ class GetViewRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The parameters to `DeleteView`. class DeleteViewRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteViewRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteViewRequest._() : super(); factory DeleteViewRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteViewRequest._() : super(); factory DeleteViewRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteViewRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteViewRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1839,8 +2404,10 @@ class DeleteViewRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteViewRequest copyWith(void Function(DeleteViewRequest) updates) => super.copyWith((message) => updates(message as DeleteViewRequest)) - as DeleteViewRequest; // ignore: deprecated_member_use + as DeleteViewRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteViewRequest create() => DeleteViewRequest._(); DeleteViewRequest createEmptyInstance() => create(); @@ -1851,6 +2418,13 @@ class DeleteViewRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteViewRequest? _defaultInstance; + /// Required. The full resource name of the view to delete: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + /// + /// For example: + /// + /// `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -1864,58 +2438,43 @@ class DeleteViewRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The parameters to `ListSinks`. class ListSinksRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListSinksRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ListSinksRequest._() : super(); factory ListSinksRequest({ $core.String? parent, $core.String? pageToken, $core.int? pageSize, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } - return _result; + return $result; } + ListSinksRequest._() : super(); factory ListSinksRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListSinksRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListSinksRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'pageToken') + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1925,8 +2484,10 @@ class ListSinksRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') ListSinksRequest copyWith(void Function(ListSinksRequest) updates) => super.copyWith((message) => updates(message as ListSinksRequest)) - as ListSinksRequest; // ignore: deprecated_member_use + as ListSinksRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListSinksRequest create() => ListSinksRequest._(); ListSinksRequest createEmptyInstance() => create(); @@ -1937,6 +2498,12 @@ class ListSinksRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListSinksRequest? _defaultInstance; + /// Required. The parent resource whose sinks are to be listed: + /// + /// "projects/[PROJECT_ID]" + /// "organizations/[ORGANIZATION_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]" + /// "folders/[FOLDER_ID]" @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -1949,6 +2516,10 @@ class ListSinksRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Optional. If present, then retrieve the next batch of results from the + /// preceding call to this method. `pageToken` must be the value of + /// `nextPageToken` from the previous response. The values of other method + /// parameters should be identical to those in the previous call. @$pb.TagNumber(2) $core.String get pageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -1961,6 +2532,9 @@ class ListSinksRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageToken() => clearField(2); + /// Optional. The maximum number of results to return from this request. + /// Non-positive values are ignored. The presence of `nextPageToken` in the + /// response indicates that more results might be available. @$pb.TagNumber(3) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(3) @@ -1974,47 +2548,39 @@ class ListSinksRequest extends $pb.GeneratedMessage { void clearPageSize() => clearField(3); } +/// Result returned from `ListSinks`. class ListSinksResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListSinksResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sinks', - $pb.PbFieldType.PM, - subBuilder: LogSink.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListSinksResponse._() : super(); factory ListSinksResponse({ $core.Iterable? sinks, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (sinks != null) { - _result.sinks.addAll(sinks); + $result.sinks.addAll(sinks); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListSinksResponse._() : super(); factory ListSinksResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListSinksResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListSinksResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'sinks', $pb.PbFieldType.PM, + subBuilder: LogSink.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2024,8 +2590,10 @@ class ListSinksResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') ListSinksResponse copyWith(void Function(ListSinksResponse) updates) => super.copyWith((message) => updates(message as ListSinksResponse)) - as ListSinksResponse; // ignore: deprecated_member_use + as ListSinksResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListSinksResponse create() => ListSinksResponse._(); ListSinksResponse createEmptyInstance() => create(); @@ -2036,9 +2604,13 @@ class ListSinksResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListSinksResponse? _defaultInstance; + /// A list of sinks. @$pb.TagNumber(1) $core.List get sinks => $_getList(0); + /// If there might be more results than appear in this response, then + /// `nextPageToken` is included. To get the next set of results, call the same + /// method again using the value of `nextPageToken` as `pageToken`. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -2052,39 +2624,33 @@ class ListSinksResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// The parameters to `GetSink`. class GetSinkRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetSinkRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sinkName') - ..hasRequiredFields = false; - - GetSinkRequest._() : super(); factory GetSinkRequest({ $core.String? sinkName, }) { - final _result = create(); + final $result = create(); if (sinkName != null) { - _result.sinkName = sinkName; + $result.sinkName = sinkName; } - return _result; + return $result; } + GetSinkRequest._() : super(); factory GetSinkRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetSinkRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetSinkRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sinkName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2094,8 +2660,10 @@ class GetSinkRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetSinkRequest copyWith(void Function(GetSinkRequest) updates) => super.copyWith((message) => updates(message as GetSinkRequest)) - as GetSinkRequest; // ignore: deprecated_member_use + as GetSinkRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetSinkRequest create() => GetSinkRequest._(); GetSinkRequest createEmptyInstance() => create(); @@ -2106,6 +2674,16 @@ class GetSinkRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetSinkRequest? _defaultInstance; + /// Required. The resource name of the sink: + /// + /// "projects/[PROJECT_ID]/sinks/[SINK_ID]" + /// "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + /// "folders/[FOLDER_ID]/sinks/[SINK_ID]" + /// + /// For example: + /// + /// `"projects/my-project/sinks/my-sink"` @$pb.TagNumber(1) $core.String get sinkName => $_getSZ(0); @$pb.TagNumber(1) @@ -2119,55 +2697,43 @@ class GetSinkRequest extends $pb.GeneratedMessage { void clearSinkName() => clearField(1); } +/// The parameters to `CreateSink`. class CreateSinkRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateSinkRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sink', - subBuilder: LogSink.create) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uniqueWriterIdentity') - ..hasRequiredFields = false; - - CreateSinkRequest._() : super(); factory CreateSinkRequest({ $core.String? parent, LogSink? sink, $core.bool? uniqueWriterIdentity, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (sink != null) { - _result.sink = sink; + $result.sink = sink; } if (uniqueWriterIdentity != null) { - _result.uniqueWriterIdentity = uniqueWriterIdentity; + $result.uniqueWriterIdentity = uniqueWriterIdentity; } - return _result; + return $result; } + CreateSinkRequest._() : super(); factory CreateSinkRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateSinkRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateSinkRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM(2, _omitFieldNames ? '' : 'sink', subBuilder: LogSink.create) + ..aOB(3, _omitFieldNames ? '' : 'uniqueWriterIdentity') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2177,8 +2743,10 @@ class CreateSinkRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') CreateSinkRequest copyWith(void Function(CreateSinkRequest) updates) => super.copyWith((message) => updates(message as CreateSinkRequest)) - as CreateSinkRequest; // ignore: deprecated_member_use + as CreateSinkRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateSinkRequest create() => CreateSinkRequest._(); CreateSinkRequest createEmptyInstance() => create(); @@ -2189,6 +2757,17 @@ class CreateSinkRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateSinkRequest? _defaultInstance; + /// Required. The resource in which to create the sink: + /// + /// "projects/[PROJECT_ID]" + /// "organizations/[ORGANIZATION_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]" + /// "folders/[FOLDER_ID]" + /// + /// For examples: + /// + /// `"projects/my-project"` + /// `"organizations/123456789"` @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2201,6 +2780,8 @@ class CreateSinkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Required. The new sink, whose `name` parameter is a sink identifier that + /// is not already in use. @$pb.TagNumber(2) LogSink get sink => $_getN(1); @$pb.TagNumber(2) @@ -2215,6 +2796,18 @@ class CreateSinkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) LogSink ensureSink() => $_ensure(1); + /// Optional. Determines the kind of IAM identity returned as `writer_identity` + /// in the new sink. If this value is omitted or set to false, and if the + /// sink's parent is a project, then the value returned as `writer_identity` is + /// the same group or service account used by Cloud Logging before the addition + /// of writer identities to this API. The sink's destination must be in the + /// same project as the sink itself. + /// + /// If this field is set to true, or if the sink is owned by a non-project + /// resource such as an organization, then the value of `writer_identity` will + /// be a unique service account used only for exports from the new sink. For + /// more information, see `writer_identity` in + /// [LogSink][google.logging.v2.LogSink]. @$pb.TagNumber(3) $core.bool get uniqueWriterIdentity => $_getBF(2); @$pb.TagNumber(3) @@ -2228,59 +2821,49 @@ class CreateSinkRequest extends $pb.GeneratedMessage { void clearUniqueWriterIdentity() => clearField(3); } +/// The parameters to `UpdateSink`. class UpdateSinkRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateSinkRequest', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sinkName') - ..aOM(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sink', - subBuilder: LogSink.create) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uniqueWriterIdentity') - ..aOM<$3.FieldMask>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $3.FieldMask.create) - ..hasRequiredFields = false; - - UpdateSinkRequest._() : super(); factory UpdateSinkRequest({ $core.String? sinkName, LogSink? sink, $core.bool? uniqueWriterIdentity, - $3.FieldMask? updateMask, + $58.FieldMask? updateMask, }) { - final _result = create(); + final $result = create(); if (sinkName != null) { - _result.sinkName = sinkName; + $result.sinkName = sinkName; } if (sink != null) { - _result.sink = sink; + $result.sink = sink; } if (uniqueWriterIdentity != null) { - _result.uniqueWriterIdentity = uniqueWriterIdentity; + $result.uniqueWriterIdentity = uniqueWriterIdentity; } if (updateMask != null) { - _result.updateMask = updateMask; + $result.updateMask = updateMask; } - return _result; + return $result; } + UpdateSinkRequest._() : super(); factory UpdateSinkRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateSinkRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateSinkRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sinkName') + ..aOM(2, _omitFieldNames ? '' : 'sink', subBuilder: LogSink.create) + ..aOB(3, _omitFieldNames ? '' : 'uniqueWriterIdentity') + ..aOM<$58.FieldMask>(4, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') @@ -2290,8 +2873,10 @@ class UpdateSinkRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') UpdateSinkRequest copyWith(void Function(UpdateSinkRequest) updates) => super.copyWith((message) => updates(message as UpdateSinkRequest)) - as UpdateSinkRequest; // ignore: deprecated_member_use + as UpdateSinkRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateSinkRequest create() => UpdateSinkRequest._(); UpdateSinkRequest createEmptyInstance() => create(); @@ -2302,6 +2887,17 @@ class UpdateSinkRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateSinkRequest? _defaultInstance; + /// Required. The full resource name of the sink to update, including the + /// parent resource and the sink identifier: + /// + /// "projects/[PROJECT_ID]/sinks/[SINK_ID]" + /// "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + /// "folders/[FOLDER_ID]/sinks/[SINK_ID]" + /// + /// For example: + /// + /// `"projects/my-project/sinks/my-sink"` @$pb.TagNumber(1) $core.String get sinkName => $_getSZ(0); @$pb.TagNumber(1) @@ -2314,6 +2910,8 @@ class UpdateSinkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearSinkName() => clearField(1); + /// Required. The updated sink, whose name is the same identifier that appears + /// as part of `sink_name`. @$pb.TagNumber(2) LogSink get sink => $_getN(1); @$pb.TagNumber(2) @@ -2328,6 +2926,17 @@ class UpdateSinkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) LogSink ensureSink() => $_ensure(1); + /// Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] + /// for a description of this field. When updating a sink, the effect of this + /// field on the value of `writer_identity` in the updated sink depends on both + /// the old and new values of this field: + /// + /// + If the old and new values of this field are both false or both true, + /// then there is no change to the sink's `writer_identity`. + /// + If the old value is false and the new value is true, then + /// `writer_identity` is changed to a unique service account. + /// + It is an error if the old value is true and the new value is + /// set to false or defaulted to false. @$pb.TagNumber(3) $core.bool get uniqueWriterIdentity => $_getBF(2); @$pb.TagNumber(3) @@ -2340,10 +2949,26 @@ class UpdateSinkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearUniqueWriterIdentity() => clearField(3); + /// Optional. Field mask that specifies the fields in `sink` that need + /// an update. A sink field will be overwritten if, and only if, it is + /// in the update mask. `name` and output only fields cannot be updated. + /// + /// An empty `updateMask` is temporarily treated as using the following mask + /// for backwards compatibility purposes: + /// + /// `destination,filter,includeChildren` + /// + /// At some point in the future, behavior will be removed and specifying an + /// empty `updateMask` will be an error. + /// + /// For a detailed `FieldMask` definition, see + /// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask + /// + /// For example: `updateMask=filter` @$pb.TagNumber(4) - $3.FieldMask get updateMask => $_getN(3); + $58.FieldMask get updateMask => $_getN(3); @$pb.TagNumber(4) - set updateMask($3.FieldMask v) { + set updateMask($58.FieldMask v) { setField(4, v); } @@ -2352,42 +2977,36 @@ class UpdateSinkRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearUpdateMask() => clearField(4); @$pb.TagNumber(4) - $3.FieldMask ensureUpdateMask() => $_ensure(3); + $58.FieldMask ensureUpdateMask() => $_ensure(3); } +/// The parameters to `DeleteSink`. class DeleteSinkRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteSinkRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sinkName') - ..hasRequiredFields = false; - - DeleteSinkRequest._() : super(); factory DeleteSinkRequest({ $core.String? sinkName, }) { - final _result = create(); + final $result = create(); if (sinkName != null) { - _result.sinkName = sinkName; + $result.sinkName = sinkName; } - return _result; + return $result; } + DeleteSinkRequest._() : super(); factory DeleteSinkRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteSinkRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteSinkRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'sinkName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2397,8 +3016,10 @@ class DeleteSinkRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteSinkRequest copyWith(void Function(DeleteSinkRequest) updates) => super.copyWith((message) => updates(message as DeleteSinkRequest)) - as DeleteSinkRequest; // ignore: deprecated_member_use + as DeleteSinkRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteSinkRequest create() => DeleteSinkRequest._(); DeleteSinkRequest createEmptyInstance() => create(); @@ -2409,6 +3030,17 @@ class DeleteSinkRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteSinkRequest? _defaultInstance; + /// Required. The full resource name of the sink to delete, including the + /// parent resource and the sink identifier: + /// + /// "projects/[PROJECT_ID]/sinks/[SINK_ID]" + /// "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + /// "folders/[FOLDER_ID]/sinks/[SINK_ID]" + /// + /// For example: + /// + /// `"projects/my-project/sinks/my-sink"` @$pb.TagNumber(1) $core.String get sinkName => $_getSZ(0); @$pb.TagNumber(1) @@ -2422,246 +3054,250 @@ class DeleteSinkRequest extends $pb.GeneratedMessage { void clearSinkName() => clearField(1); } -class LogExclusion extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'LogExclusion', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filter') - ..aOB(4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'disabled') - ..aOM<$2.Timestamp>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createTime', subBuilder: $2.Timestamp.create) - ..aOM<$2.Timestamp>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateTime', subBuilder: $2.Timestamp.create) - ..hasRequiredFields = false; - - LogExclusion._() : super(); - factory LogExclusion({ - $core.String? name, - $core.String? description, - $core.String? filter, - $core.bool? disabled, - $2.Timestamp? createTime, - $2.Timestamp? updateTime, +/// The parameters to CreateLink. +class CreateLinkRequest extends $pb.GeneratedMessage { + factory CreateLinkRequest({ + $core.String? parent, + Link? link, + $core.String? linkId, }) { - final _result = create(); - if (name != null) { - _result.name = name; - } - if (description != null) { - _result.description = description; - } - if (filter != null) { - _result.filter = filter; - } - if (disabled != null) { - _result.disabled = disabled; + final $result = create(); + if (parent != null) { + $result.parent = parent; } - if (createTime != null) { - _result.createTime = createTime; + if (link != null) { + $result.link = link; } - if (updateTime != null) { - _result.updateTime = updateTime; + if (linkId != null) { + $result.linkId = linkId; } - return _result; + return $result; } - factory LogExclusion.fromBuffer($core.List<$core.int> i, + CreateLinkRequest._() : super(); + factory CreateLinkRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory LogExclusion.fromJson($core.String i, + factory CreateLinkRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateLinkRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM(2, _omitFieldNames ? '' : 'link', subBuilder: Link.create) + ..aOS(3, _omitFieldNames ? '' : 'linkId') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - LogExclusion clone() => LogExclusion()..mergeFromMessage(this); + CreateLinkRequest clone() => CreateLinkRequest()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - LogExclusion copyWith(void Function(LogExclusion) updates) => - super.copyWith((message) => updates(message as LogExclusion)) - as LogExclusion; // ignore: deprecated_member_use + CreateLinkRequest copyWith(void Function(CreateLinkRequest) updates) => + super.copyWith((message) => updates(message as CreateLinkRequest)) + as CreateLinkRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static LogExclusion create() => LogExclusion._(); - LogExclusion createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static CreateLinkRequest create() => CreateLinkRequest._(); + CreateLinkRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static LogExclusion getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static LogExclusion? _defaultInstance; - + static CreateLinkRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CreateLinkRequest? _defaultInstance; + + /// Required. The full resource name of the bucket to create a link for. + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + /// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" @$pb.TagNumber(1) - $core.String get name => $_getSZ(0); + $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) - set name($core.String v) { + set parent($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) - $core.bool hasName() => $_has(0); + $core.bool hasParent() => $_has(0); @$pb.TagNumber(1) - void clearName() => clearField(1); + void clearParent() => clearField(1); + /// Required. The new link. @$pb.TagNumber(2) - $core.String get description => $_getSZ(1); + Link get link => $_getN(1); @$pb.TagNumber(2) - set description($core.String v) { - $_setString(1, v); + set link(Link v) { + setField(2, v); } @$pb.TagNumber(2) - $core.bool hasDescription() => $_has(1); + $core.bool hasLink() => $_has(1); @$pb.TagNumber(2) - void clearDescription() => clearField(2); + void clearLink() => clearField(2); + @$pb.TagNumber(2) + Link ensureLink() => $_ensure(1); + /// Required. The ID to use for the link. The link_id can have up to 100 + /// characters. A valid link_id must only have alphanumeric characters and + /// underscores within it. @$pb.TagNumber(3) - $core.String get filter => $_getSZ(2); + $core.String get linkId => $_getSZ(2); @$pb.TagNumber(3) - set filter($core.String v) { + set linkId($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) - $core.bool hasFilter() => $_has(2); + $core.bool hasLinkId() => $_has(2); @$pb.TagNumber(3) - void clearFilter() => clearField(3); + void clearLinkId() => clearField(3); +} - @$pb.TagNumber(4) - $core.bool get disabled => $_getBF(3); - @$pb.TagNumber(4) - set disabled($core.bool v) { - $_setBool(3, v); +/// The parameters to DeleteLink. +class DeleteLinkRequest extends $pb.GeneratedMessage { + factory DeleteLinkRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; } + DeleteLinkRequest._() : super(); + factory DeleteLinkRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DeleteLinkRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); - @$pb.TagNumber(4) - $core.bool hasDisabled() => $_has(3); - @$pb.TagNumber(4) - void clearDisabled() => clearField(4); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteLinkRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; - @$pb.TagNumber(5) - $2.Timestamp get createTime => $_getN(4); - @$pb.TagNumber(5) - set createTime($2.Timestamp v) { - setField(5, v); - } + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeleteLinkRequest clone() => DeleteLinkRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeleteLinkRequest copyWith(void Function(DeleteLinkRequest) updates) => + super.copyWith((message) => updates(message as DeleteLinkRequest)) + as DeleteLinkRequest; - @$pb.TagNumber(5) - $core.bool hasCreateTime() => $_has(4); - @$pb.TagNumber(5) - void clearCreateTime() => clearField(5); - @$pb.TagNumber(5) - $2.Timestamp ensureCreateTime() => $_ensure(4); + $pb.BuilderInfo get info_ => _i; - @$pb.TagNumber(6) - $2.Timestamp get updateTime => $_getN(5); - @$pb.TagNumber(6) - set updateTime($2.Timestamp v) { - setField(6, v); + @$core.pragma('dart2js:noInline') + static DeleteLinkRequest create() => DeleteLinkRequest._(); + DeleteLinkRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DeleteLinkRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static DeleteLinkRequest? _defaultInstance; + + /// Required. The full resource name of the link to delete. + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + /// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + /// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); } - @$pb.TagNumber(6) - $core.bool hasUpdateTime() => $_has(5); - @$pb.TagNumber(6) - void clearUpdateTime() => clearField(6); - @$pb.TagNumber(6) - $2.Timestamp ensureUpdateTime() => $_ensure(5); + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); } -class ListExclusionsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListExclusionsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ListExclusionsRequest._() : super(); - factory ListExclusionsRequest({ +/// The parameters to ListLinks. +class ListLinksRequest extends $pb.GeneratedMessage { + factory ListLinksRequest({ $core.String? parent, $core.String? pageToken, $core.int? pageSize, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } - return _result; + return $result; } - factory ListExclusionsRequest.fromBuffer($core.List<$core.int> i, + ListLinksRequest._() : super(); + factory ListLinksRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ListExclusionsRequest.fromJson($core.String i, + factory ListLinksRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListLinksRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'pageToken') + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - ListExclusionsRequest clone() => - ListExclusionsRequest()..mergeFromMessage(this); + ListLinksRequest clone() => ListLinksRequest()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - ListExclusionsRequest copyWith( - void Function(ListExclusionsRequest) updates) => - super.copyWith((message) => updates(message as ListExclusionsRequest)) - as ListExclusionsRequest; // ignore: deprecated_member_use + ListLinksRequest copyWith(void Function(ListLinksRequest) updates) => + super.copyWith((message) => updates(message as ListLinksRequest)) + as ListLinksRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static ListExclusionsRequest create() => ListExclusionsRequest._(); - ListExclusionsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static ListLinksRequest create() => ListLinksRequest._(); + ListLinksRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListExclusionsRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static ListExclusionsRequest? _defaultInstance; - + static ListLinksRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListLinksRequest? _defaultInstance; + + /// Required. The parent resource whose links are to be listed: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/" + /// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + /// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/ @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -2674,6 +3310,9 @@ class ListExclusionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Optional. If present, then retrieve the next batch of results from the + /// preceding call to this method. `pageToken` must be the value of + /// `nextPageToken` from the previous response. @$pb.TagNumber(2) $core.String get pageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -2686,6 +3325,7 @@ class ListExclusionsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageToken() => clearField(2); + /// Optional. The maximum number of results to return from this request. @$pb.TagNumber(3) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(3) @@ -2699,73 +3339,69 @@ class ListExclusionsRequest extends $pb.GeneratedMessage { void clearPageSize() => clearField(3); } -class ListExclusionsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListExclusionsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'exclusions', - $pb.PbFieldType.PM, - subBuilder: LogExclusion.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListExclusionsResponse._() : super(); - factory ListExclusionsResponse({ - $core.Iterable? exclusions, +/// The response from ListLinks. +class ListLinksResponse extends $pb.GeneratedMessage { + factory ListLinksResponse({ + $core.Iterable? links, $core.String? nextPageToken, }) { - final _result = create(); - if (exclusions != null) { - _result.exclusions.addAll(exclusions); + final $result = create(); + if (links != null) { + $result.links.addAll(links); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } - factory ListExclusionsResponse.fromBuffer($core.List<$core.int> i, + ListLinksResponse._() : super(); + factory ListLinksResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory ListExclusionsResponse.fromJson($core.String i, + factory ListLinksResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListLinksResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'links', $pb.PbFieldType.PM, + subBuilder: Link.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - ListExclusionsResponse clone() => - ListExclusionsResponse()..mergeFromMessage(this); + ListLinksResponse clone() => ListLinksResponse()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - ListExclusionsResponse copyWith( - void Function(ListExclusionsResponse) updates) => - super.copyWith((message) => updates(message as ListExclusionsResponse)) - as ListExclusionsResponse; // ignore: deprecated_member_use + ListLinksResponse copyWith(void Function(ListLinksResponse) updates) => + super.copyWith((message) => updates(message as ListLinksResponse)) + as ListLinksResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static ListExclusionsResponse create() => ListExclusionsResponse._(); - ListExclusionsResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static ListLinksResponse create() => ListLinksResponse._(); + ListLinksResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static ListExclusionsResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static ListExclusionsResponse? _defaultInstance; + static ListLinksResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListLinksResponse? _defaultInstance; + /// A list of links. @$pb.TagNumber(1) - $core.List get exclusions => $_getList(0); + $core.List get links => $_getList(0); + /// If there might be more results than those appearing in this response, then + /// `nextPageToken` is included. To get the next set of results, call the same + /// method again using the value of `nextPageToken` as `pageToken`. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -2779,60 +3415,62 @@ class ListExclusionsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } -class GetExclusionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetExclusionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetExclusionRequest._() : super(); - factory GetExclusionRequest({ +/// The parameters to GetLink. +class GetLinkRequest extends $pb.GeneratedMessage { + factory GetLinkRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } - factory GetExclusionRequest.fromBuffer($core.List<$core.int> i, + GetLinkRequest._() : super(); + factory GetLinkRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetExclusionRequest.fromJson($core.String i, + factory GetLinkRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetLinkRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - GetExclusionRequest clone() => GetExclusionRequest()..mergeFromMessage(this); + GetLinkRequest clone() => GetLinkRequest()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - GetExclusionRequest copyWith(void Function(GetExclusionRequest) updates) => - super.copyWith((message) => updates(message as GetExclusionRequest)) - as GetExclusionRequest; // ignore: deprecated_member_use + GetLinkRequest copyWith(void Function(GetLinkRequest) updates) => + super.copyWith((message) => updates(message as GetLinkRequest)) + as GetLinkRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static GetExclusionRequest create() => GetExclusionRequest._(); - GetExclusionRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static GetLinkRequest create() => GetLinkRequest._(); + GetLinkRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetExclusionRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static GetExclusionRequest? _defaultInstance; - + static GetLinkRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetLinkRequest? _defaultInstance; + + /// Required. The resource name of the link: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + /// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + /// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -2846,169 +3484,91 @@ class GetExclusionRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } -class CreateExclusionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateExclusionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'exclusion', - subBuilder: LogExclusion.create) - ..hasRequiredFields = false; - - CreateExclusionRequest._() : super(); - factory CreateExclusionRequest({ - $core.String? parent, - LogExclusion? exclusion, +/// Specifies a set of log entries that are filtered out by a sink. If +/// your Google Cloud resource receives a large volume of log entries, you can +/// use exclusions to reduce your chargeable logs. Note that exclusions on +/// organization-level and folder-level sinks don't apply to child resources. +/// Note also that you cannot modify the _Required sink or exclude logs from it. +class LogExclusion extends $pb.GeneratedMessage { + factory LogExclusion({ + $core.String? name, + $core.String? description, + $core.String? filter, + $core.bool? disabled, + $50.Timestamp? createTime, + $50.Timestamp? updateTime, }) { - final _result = create(); - if (parent != null) { - _result.parent = parent; + final $result = create(); + if (name != null) { + $result.name = name; } - if (exclusion != null) { - _result.exclusion = exclusion; + if (description != null) { + $result.description = description; + } + if (filter != null) { + $result.filter = filter; + } + if (disabled != null) { + $result.disabled = disabled; + } + if (createTime != null) { + $result.createTime = createTime; + } + if (updateTime != null) { + $result.updateTime = updateTime; } - return _result; + return $result; } - factory CreateExclusionRequest.fromBuffer($core.List<$core.int> i, + LogExclusion._() : super(); + factory LogExclusion.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory CreateExclusionRequest.fromJson($core.String i, + factory LogExclusion.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - CreateExclusionRequest clone() => - CreateExclusionRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - CreateExclusionRequest copyWith( - void Function(CreateExclusionRequest) updates) => - super.copyWith((message) => updates(message as CreateExclusionRequest)) - as CreateExclusionRequest; // ignore: deprecated_member_use - $pb.BuilderInfo get info_ => _i; - @$core.pragma('dart2js:noInline') - static CreateExclusionRequest create() => CreateExclusionRequest._(); - CreateExclusionRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static CreateExclusionRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static CreateExclusionRequest? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get parent => $_getSZ(0); - @$pb.TagNumber(1) - set parent($core.String v) { - $_setString(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasParent() => $_has(0); - @$pb.TagNumber(1) - void clearParent() => clearField(1); - - @$pb.TagNumber(2) - LogExclusion get exclusion => $_getN(1); - @$pb.TagNumber(2) - set exclusion(LogExclusion v) { - setField(2, v); - } - - @$pb.TagNumber(2) - $core.bool hasExclusion() => $_has(1); - @$pb.TagNumber(2) - void clearExclusion() => clearField(2); - @$pb.TagNumber(2) - LogExclusion ensureExclusion() => $_ensure(1); -} -class UpdateExclusionRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateExclusionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), + _omitMessageNames ? '' : 'LogExclusion', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'exclusion', - subBuilder: LogExclusion.create) - ..aOM<$3.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $3.FieldMask.create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'description') + ..aOS(3, _omitFieldNames ? '' : 'filter') + ..aOB(4, _omitFieldNames ? '' : 'disabled') + ..aOM<$50.Timestamp>(5, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(6, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) ..hasRequiredFields = false; - UpdateExclusionRequest._() : super(); - factory UpdateExclusionRequest({ - $core.String? name, - LogExclusion? exclusion, - $3.FieldMask? updateMask, - }) { - final _result = create(); - if (name != null) { - _result.name = name; - } - if (exclusion != null) { - _result.exclusion = exclusion; - } - if (updateMask != null) { - _result.updateMask = updateMask; - } - return _result; - } - factory UpdateExclusionRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory UpdateExclusionRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - UpdateExclusionRequest clone() => - UpdateExclusionRequest()..mergeFromMessage(this); + LogExclusion clone() => LogExclusion()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - UpdateExclusionRequest copyWith( - void Function(UpdateExclusionRequest) updates) => - super.copyWith((message) => updates(message as UpdateExclusionRequest)) - as UpdateExclusionRequest; // ignore: deprecated_member_use + LogExclusion copyWith(void Function(LogExclusion) updates) => + super.copyWith((message) => updates(message as LogExclusion)) + as LogExclusion; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static UpdateExclusionRequest create() => UpdateExclusionRequest._(); - UpdateExclusionRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static LogExclusion create() => LogExclusion._(); + LogExclusion createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateExclusionRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static UpdateExclusionRequest? _defaultInstance; + static LogExclusion getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static LogExclusion? _defaultInstance; + /// Required. A client-assigned identifier, such as + /// `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and + /// can include only letters, digits, underscores, hyphens, and periods. First + /// character has to be alphanumeric. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -3021,389 +3581,2207 @@ class UpdateExclusionRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Optional. A description of this exclusion. @$pb.TagNumber(2) - LogExclusion get exclusion => $_getN(1); + $core.String get description => $_getSZ(1); @$pb.TagNumber(2) - set exclusion(LogExclusion v) { - setField(2, v); + set description($core.String v) { + $_setString(1, v); } @$pb.TagNumber(2) - $core.bool hasExclusion() => $_has(1); - @$pb.TagNumber(2) - void clearExclusion() => clearField(2); + $core.bool hasDescription() => $_has(1); @$pb.TagNumber(2) - LogExclusion ensureExclusion() => $_ensure(1); + void clearDescription() => clearField(2); + /// Required. An [advanced logs + /// filter](https://cloud.google.com/logging/docs/view/advanced-queries) that + /// matches the log entries to be excluded. By using the [sample + /// function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), + /// you can exclude less than 100% of the matching log entries. + /// + /// For example, the following query matches 99% of low-severity log entries + /// from Google Cloud Storage buckets: + /// + /// `resource.type=gcs_bucket severity $_getN(2); + $core.String get filter => $_getSZ(2); @$pb.TagNumber(3) - set updateMask($3.FieldMask v) { - setField(3, v); + set filter($core.String v) { + $_setString(2, v); } @$pb.TagNumber(3) - $core.bool hasUpdateMask() => $_has(2); - @$pb.TagNumber(3) - void clearUpdateMask() => clearField(3); + $core.bool hasFilter() => $_has(2); @$pb.TagNumber(3) - $3.FieldMask ensureUpdateMask() => $_ensure(2); + void clearFilter() => clearField(3); + + /// Optional. If set to True, then this exclusion is disabled and it does not + /// exclude any log entries. You can [update an + /// exclusion][google.logging.v2.ConfigServiceV2.UpdateExclusion] to change the + /// value of this field. + @$pb.TagNumber(4) + $core.bool get disabled => $_getBF(3); + @$pb.TagNumber(4) + set disabled($core.bool v) { + $_setBool(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasDisabled() => $_has(3); + @$pb.TagNumber(4) + void clearDisabled() => clearField(4); + + /// Output only. The creation timestamp of the exclusion. + /// + /// This field may not be present for older exclusions. + @$pb.TagNumber(5) + $50.Timestamp get createTime => $_getN(4); + @$pb.TagNumber(5) + set createTime($50.Timestamp v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasCreateTime() => $_has(4); + @$pb.TagNumber(5) + void clearCreateTime() => clearField(5); + @$pb.TagNumber(5) + $50.Timestamp ensureCreateTime() => $_ensure(4); + + /// Output only. The last update timestamp of the exclusion. + /// + /// This field may not be present for older exclusions. + @$pb.TagNumber(6) + $50.Timestamp get updateTime => $_getN(5); + @$pb.TagNumber(6) + set updateTime($50.Timestamp v) { + setField(6, v); + } + + @$pb.TagNumber(6) + $core.bool hasUpdateTime() => $_has(5); + @$pb.TagNumber(6) + void clearUpdateTime() => clearField(6); + @$pb.TagNumber(6) + $50.Timestamp ensureUpdateTime() => $_ensure(5); +} + +/// The parameters to `ListExclusions`. +class ListExclusionsRequest extends $pb.GeneratedMessage { + factory ListExclusionsRequest({ + $core.String? parent, + $core.String? pageToken, + $core.int? pageSize, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (pageToken != null) { + $result.pageToken = pageToken; + } + if (pageSize != null) { + $result.pageSize = pageSize; + } + return $result; + } + ListExclusionsRequest._() : super(); + factory ListExclusionsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListExclusionsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListExclusionsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'pageToken') + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListExclusionsRequest clone() => + ListExclusionsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListExclusionsRequest copyWith( + void Function(ListExclusionsRequest) updates) => + super.copyWith((message) => updates(message as ListExclusionsRequest)) + as ListExclusionsRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListExclusionsRequest create() => ListExclusionsRequest._(); + ListExclusionsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListExclusionsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListExclusionsRequest? _defaultInstance; + + /// Required. The parent resource whose exclusions are to be listed. + /// + /// "projects/[PROJECT_ID]" + /// "organizations/[ORGANIZATION_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]" + /// "folders/[FOLDER_ID]" + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// Optional. If present, then retrieve the next batch of results from the + /// preceding call to this method. `pageToken` must be the value of + /// `nextPageToken` from the previous response. The values of other method + /// parameters should be identical to those in the previous call. + @$pb.TagNumber(2) + $core.String get pageToken => $_getSZ(1); + @$pb.TagNumber(2) + set pageToken($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPageToken() => $_has(1); + @$pb.TagNumber(2) + void clearPageToken() => clearField(2); + + /// Optional. The maximum number of results to return from this request. + /// Non-positive values are ignored. The presence of `nextPageToken` in the + /// response indicates that more results might be available. + @$pb.TagNumber(3) + $core.int get pageSize => $_getIZ(2); + @$pb.TagNumber(3) + set pageSize($core.int v) { + $_setSignedInt32(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasPageSize() => $_has(2); + @$pb.TagNumber(3) + void clearPageSize() => clearField(3); +} + +/// Result returned from `ListExclusions`. +class ListExclusionsResponse extends $pb.GeneratedMessage { + factory ListExclusionsResponse({ + $core.Iterable? exclusions, + $core.String? nextPageToken, + }) { + final $result = create(); + if (exclusions != null) { + $result.exclusions.addAll(exclusions); + } + if (nextPageToken != null) { + $result.nextPageToken = nextPageToken; + } + return $result; + } + ListExclusionsResponse._() : super(); + factory ListExclusionsResponse.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ListExclusionsResponse.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListExclusionsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'exclusions', $pb.PbFieldType.PM, + subBuilder: LogExclusion.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListExclusionsResponse clone() => + ListExclusionsResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListExclusionsResponse copyWith( + void Function(ListExclusionsResponse) updates) => + super.copyWith((message) => updates(message as ListExclusionsResponse)) + as ListExclusionsResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ListExclusionsResponse create() => ListExclusionsResponse._(); + ListExclusionsResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ListExclusionsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ListExclusionsResponse? _defaultInstance; + + /// A list of exclusions. + @$pb.TagNumber(1) + $core.List get exclusions => $_getList(0); + + /// If there might be more results than appear in this response, then + /// `nextPageToken` is included. To get the next set of results, call the same + /// method again using the value of `nextPageToken` as `pageToken`. + @$pb.TagNumber(2) + $core.String get nextPageToken => $_getSZ(1); + @$pb.TagNumber(2) + set nextPageToken($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasNextPageToken() => $_has(1); + @$pb.TagNumber(2) + void clearNextPageToken() => clearField(2); +} + +/// The parameters to `GetExclusion`. +class GetExclusionRequest extends $pb.GeneratedMessage { + factory GetExclusionRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + GetExclusionRequest._() : super(); + factory GetExclusionRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetExclusionRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetExclusionRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetExclusionRequest clone() => GetExclusionRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetExclusionRequest copyWith(void Function(GetExclusionRequest) updates) => + super.copyWith((message) => updates(message as GetExclusionRequest)) + as GetExclusionRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetExclusionRequest create() => GetExclusionRequest._(); + GetExclusionRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetExclusionRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetExclusionRequest? _defaultInstance; + + /// Required. The resource name of an existing exclusion: + /// + /// "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + /// "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + /// "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + /// + /// For example: + /// + /// `"projects/my-project/exclusions/my-exclusion"` + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// The parameters to `CreateExclusion`. +class CreateExclusionRequest extends $pb.GeneratedMessage { + factory CreateExclusionRequest({ + $core.String? parent, + LogExclusion? exclusion, + }) { + final $result = create(); + if (parent != null) { + $result.parent = parent; + } + if (exclusion != null) { + $result.exclusion = exclusion; + } + return $result; + } + CreateExclusionRequest._() : super(); + factory CreateExclusionRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CreateExclusionRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateExclusionRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM(2, _omitFieldNames ? '' : 'exclusion', + subBuilder: LogExclusion.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') + CreateExclusionRequest clone() => + CreateExclusionRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CreateExclusionRequest copyWith( + void Function(CreateExclusionRequest) updates) => + super.copyWith((message) => updates(message as CreateExclusionRequest)) + as CreateExclusionRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CreateExclusionRequest create() => CreateExclusionRequest._(); + CreateExclusionRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CreateExclusionRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CreateExclusionRequest? _defaultInstance; + + /// Required. The parent resource in which to create the exclusion: + /// + /// "projects/[PROJECT_ID]" + /// "organizations/[ORGANIZATION_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]" + /// "folders/[FOLDER_ID]" + /// + /// For examples: + /// + /// `"projects/my-logging-project"` + /// `"organizations/123456789"` + @$pb.TagNumber(1) + $core.String get parent => $_getSZ(0); + @$pb.TagNumber(1) + set parent($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasParent() => $_has(0); + @$pb.TagNumber(1) + void clearParent() => clearField(1); + + /// Required. The new exclusion, whose `name` parameter is an exclusion name + /// that is not already used in the parent resource. + @$pb.TagNumber(2) + LogExclusion get exclusion => $_getN(1); + @$pb.TagNumber(2) + set exclusion(LogExclusion v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasExclusion() => $_has(1); + @$pb.TagNumber(2) + void clearExclusion() => clearField(2); + @$pb.TagNumber(2) + LogExclusion ensureExclusion() => $_ensure(1); +} + +/// The parameters to `UpdateExclusion`. +class UpdateExclusionRequest extends $pb.GeneratedMessage { + factory UpdateExclusionRequest({ + $core.String? name, + LogExclusion? exclusion, + $58.FieldMask? updateMask, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (exclusion != null) { + $result.exclusion = exclusion; + } + if (updateMask != null) { + $result.updateMask = updateMask; + } + return $result; + } + UpdateExclusionRequest._() : super(); + factory UpdateExclusionRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdateExclusionRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateExclusionRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM(2, _omitFieldNames ? '' : 'exclusion', + subBuilder: LogExclusion.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') + UpdateExclusionRequest clone() => + UpdateExclusionRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateExclusionRequest copyWith( + void Function(UpdateExclusionRequest) updates) => + super.copyWith((message) => updates(message as UpdateExclusionRequest)) + as UpdateExclusionRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdateExclusionRequest create() => UpdateExclusionRequest._(); + UpdateExclusionRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UpdateExclusionRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static UpdateExclusionRequest? _defaultInstance; + + /// Required. The resource name of the exclusion to update: + /// + /// "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + /// "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + /// "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + /// + /// For example: + /// + /// `"projects/my-project/exclusions/my-exclusion"` + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Required. New values for the existing exclusion. Only the fields specified + /// in `update_mask` are relevant. + @$pb.TagNumber(2) + LogExclusion get exclusion => $_getN(1); + @$pb.TagNumber(2) + set exclusion(LogExclusion v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasExclusion() => $_has(1); + @$pb.TagNumber(2) + void clearExclusion() => clearField(2); + @$pb.TagNumber(2) + LogExclusion ensureExclusion() => $_ensure(1); + + /// Required. A non-empty list of fields to change in the existing exclusion. + /// New values for the fields are taken from the corresponding fields in the + /// [LogExclusion][google.logging.v2.LogExclusion] included in this request. + /// Fields not mentioned in `update_mask` are not changed and are ignored in + /// the request. + /// + /// For example, to change the filter and description of an exclusion, + /// specify an `update_mask` of `"filter,description"`. + @$pb.TagNumber(3) + $58.FieldMask get updateMask => $_getN(2); + @$pb.TagNumber(3) + set updateMask($58.FieldMask v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasUpdateMask() => $_has(2); + @$pb.TagNumber(3) + void clearUpdateMask() => clearField(3); + @$pb.TagNumber(3) + $58.FieldMask ensureUpdateMask() => $_ensure(2); +} + +/// The parameters to `DeleteExclusion`. +class DeleteExclusionRequest extends $pb.GeneratedMessage { + factory DeleteExclusionRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + DeleteExclusionRequest._() : super(); + factory DeleteExclusionRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory DeleteExclusionRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteExclusionRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeleteExclusionRequest clone() => + DeleteExclusionRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeleteExclusionRequest copyWith( + void Function(DeleteExclusionRequest) updates) => + super.copyWith((message) => updates(message as DeleteExclusionRequest)) + as DeleteExclusionRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static DeleteExclusionRequest create() => DeleteExclusionRequest._(); + DeleteExclusionRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DeleteExclusionRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static DeleteExclusionRequest? _defaultInstance; + + /// Required. The resource name of an existing exclusion to delete: + /// + /// "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + /// "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + /// "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" + /// + /// For example: + /// + /// `"projects/my-project/exclusions/my-exclusion"` + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// The parameters to +/// [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings]. +/// +/// See [Enabling CMEK for Log +/// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for +/// more information. +class GetCmekSettingsRequest extends $pb.GeneratedMessage { + factory GetCmekSettingsRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + GetCmekSettingsRequest._() : super(); + factory GetCmekSettingsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetCmekSettingsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetCmekSettingsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetCmekSettingsRequest clone() => + GetCmekSettingsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetCmekSettingsRequest copyWith( + void Function(GetCmekSettingsRequest) updates) => + super.copyWith((message) => updates(message as GetCmekSettingsRequest)) + as GetCmekSettingsRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetCmekSettingsRequest create() => GetCmekSettingsRequest._(); + GetCmekSettingsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetCmekSettingsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetCmekSettingsRequest? _defaultInstance; + + /// Required. The resource for which to retrieve CMEK settings. + /// + /// "projects/[PROJECT_ID]/cmekSettings" + /// "organizations/[ORGANIZATION_ID]/cmekSettings" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" + /// "folders/[FOLDER_ID]/cmekSettings" + /// + /// For example: + /// + /// `"organizations/12345/cmekSettings"` + /// + /// Note: CMEK for the Log Router can be configured for Google Cloud projects, + /// folders, organizations and billing accounts. Once configured for an + /// organization, it applies to all projects and folders in the Google Cloud + /// organization. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// The parameters to +/// [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]. +/// +/// See [Enabling CMEK for Log +/// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for +/// more information. +class UpdateCmekSettingsRequest extends $pb.GeneratedMessage { + factory UpdateCmekSettingsRequest({ + $core.String? name, + CmekSettings? cmekSettings, + $58.FieldMask? updateMask, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (cmekSettings != null) { + $result.cmekSettings = cmekSettings; + } + if (updateMask != null) { + $result.updateMask = updateMask; + } + return $result; + } + UpdateCmekSettingsRequest._() : super(); + factory UpdateCmekSettingsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdateCmekSettingsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateCmekSettingsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM(2, _omitFieldNames ? '' : 'cmekSettings', + subBuilder: CmekSettings.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') + UpdateCmekSettingsRequest clone() => + UpdateCmekSettingsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateCmekSettingsRequest copyWith( + void Function(UpdateCmekSettingsRequest) updates) => + super.copyWith((message) => updates(message as UpdateCmekSettingsRequest)) + as UpdateCmekSettingsRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdateCmekSettingsRequest create() => UpdateCmekSettingsRequest._(); + UpdateCmekSettingsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UpdateCmekSettingsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static UpdateCmekSettingsRequest? _defaultInstance; + + /// Required. The resource name for the CMEK settings to update. + /// + /// "projects/[PROJECT_ID]/cmekSettings" + /// "organizations/[ORGANIZATION_ID]/cmekSettings" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" + /// "folders/[FOLDER_ID]/cmekSettings" + /// + /// For example: + /// + /// `"organizations/12345/cmekSettings"` + /// + /// Note: CMEK for the Log Router can currently only be configured for Google + /// Cloud organizations. Once configured, it applies to all projects and + /// folders in the Google Cloud organization. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Required. The CMEK settings to update. + /// + /// See [Enabling CMEK for Log + /// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + /// for more information. + @$pb.TagNumber(2) + CmekSettings get cmekSettings => $_getN(1); + @$pb.TagNumber(2) + set cmekSettings(CmekSettings v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasCmekSettings() => $_has(1); + @$pb.TagNumber(2) + void clearCmekSettings() => clearField(2); + @$pb.TagNumber(2) + CmekSettings ensureCmekSettings() => $_ensure(1); + + /// Optional. Field mask identifying which fields from `cmek_settings` should + /// be updated. A field will be overwritten if and only if it is in the update + /// mask. Output only fields cannot be updated. + /// + /// See [FieldMask][google.protobuf.FieldMask] for more information. + /// + /// For example: `"updateMask=kmsKeyName"` + @$pb.TagNumber(3) + $58.FieldMask get updateMask => $_getN(2); + @$pb.TagNumber(3) + set updateMask($58.FieldMask v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasUpdateMask() => $_has(2); + @$pb.TagNumber(3) + void clearUpdateMask() => clearField(3); + @$pb.TagNumber(3) + $58.FieldMask ensureUpdateMask() => $_ensure(2); +} + +/// Describes the customer-managed encryption key (CMEK) settings associated with +/// a project, folder, organization, billing account, or flexible resource. +/// +/// Note: CMEK for the Log Router can currently only be configured for Google +/// Cloud organizations. Once configured, it applies to all projects and folders +/// in the Google Cloud organization. +/// +/// See [Enabling CMEK for Log +/// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for +/// more information. +class CmekSettings extends $pb.GeneratedMessage { + factory CmekSettings({ + $core.String? name, + $core.String? kmsKeyName, + $core.String? serviceAccountId, + $core.String? kmsKeyVersionName, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (kmsKeyName != null) { + $result.kmsKeyName = kmsKeyName; + } + if (serviceAccountId != null) { + $result.serviceAccountId = serviceAccountId; + } + if (kmsKeyVersionName != null) { + $result.kmsKeyVersionName = kmsKeyVersionName; + } + return $result; + } + CmekSettings._() : super(); + factory CmekSettings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CmekSettings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CmekSettings', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'kmsKeyName') + ..aOS(3, _omitFieldNames ? '' : 'serviceAccountId') + ..aOS(4, _omitFieldNames ? '' : 'kmsKeyVersionName') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CmekSettings clone() => CmekSettings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CmekSettings copyWith(void Function(CmekSettings) updates) => + super.copyWith((message) => updates(message as CmekSettings)) + as CmekSettings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CmekSettings create() => CmekSettings._(); + CmekSettings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CmekSettings getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CmekSettings? _defaultInstance; + + /// Output only. The resource name of the CMEK settings. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// The resource name for the configured Cloud KMS key. + /// + /// KMS key name format: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]" + /// + /// For example: + /// + /// `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"` + /// + /// + /// + /// To enable CMEK for the Log Router, set this field to a valid + /// `kms_key_name` for which the associated service account has the required + /// cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key. + /// + /// The Cloud KMS key used by the Log Router can be updated by changing the + /// `kms_key_name` to a new valid key name or disabled by setting the key name + /// to an empty string. Encryption operations that are in progress will be + /// completed with the key that was in use when they started. Decryption + /// operations will be completed using the key that was used at the time of + /// encryption unless access to that key has been revoked. + /// + /// To disable CMEK for the Log Router, set this field to an empty string. + /// + /// See [Enabling CMEK for Log + /// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + /// for more information. + @$pb.TagNumber(2) + $core.String get kmsKeyName => $_getSZ(1); + @$pb.TagNumber(2) + set kmsKeyName($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasKmsKeyName() => $_has(1); + @$pb.TagNumber(2) + void clearKmsKeyName() => clearField(2); + + /// Output only. The service account that will be used by the Log Router to + /// access your Cloud KMS key. + /// + /// Before enabling CMEK for Log Router, you must first assign the + /// cloudkms.cryptoKeyEncrypterDecrypter role to the service account that + /// the Log Router will use to access your Cloud KMS key. Use + /// [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to + /// obtain the service account ID. + /// + /// See [Enabling CMEK for Log + /// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + /// for more information. + @$pb.TagNumber(3) + $core.String get serviceAccountId => $_getSZ(2); + @$pb.TagNumber(3) + set serviceAccountId($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasServiceAccountId() => $_has(2); + @$pb.TagNumber(3) + void clearServiceAccountId() => clearField(3); + + /// The CryptoKeyVersion resource name for the configured Cloud KMS key. + /// + /// KMS key name format: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]" + /// + /// For example: + /// + /// `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"` + /// + /// This is a read-only field used to convey the specific configured + /// CryptoKeyVersion of `kms_key` that has been configured. It will be + /// populated in cases where the CMEK settings are bound to a single key + /// version. + /// + /// If this field is populated, the `kms_key` is tied to a specific + /// CryptoKeyVersion. + @$pb.TagNumber(4) + $core.String get kmsKeyVersionName => $_getSZ(3); + @$pb.TagNumber(4) + set kmsKeyVersionName($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasKmsKeyVersionName() => $_has(3); + @$pb.TagNumber(4) + void clearKmsKeyVersionName() => clearField(4); +} + +/// The parameters to +/// [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings]. +/// +/// See [Enabling CMEK for Log +/// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for +/// more information. +class GetSettingsRequest extends $pb.GeneratedMessage { + factory GetSettingsRequest({ + $core.String? name, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + return $result; + } + GetSettingsRequest._() : super(); + factory GetSettingsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GetSettingsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetSettingsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetSettingsRequest clone() => GetSettingsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetSettingsRequest copyWith(void Function(GetSettingsRequest) updates) => + super.copyWith((message) => updates(message as GetSettingsRequest)) + as GetSettingsRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetSettingsRequest create() => GetSettingsRequest._(); + GetSettingsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetSettingsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetSettingsRequest? _defaultInstance; + + /// Required. The resource for which to retrieve settings. + /// + /// "projects/[PROJECT_ID]/settings" + /// "organizations/[ORGANIZATION_ID]/settings" + /// "billingAccounts/[BILLING_ACCOUNT_ID]/settings" + /// "folders/[FOLDER_ID]/settings" + /// + /// For example: + /// + /// `"organizations/12345/settings"` + /// + /// Note: Settings for the Log Router can be get for Google Cloud projects, + /// folders, organizations and billing accounts. Currently it can only be + /// configured for organizations. Once configured for an organization, it + /// applies to all projects and folders in the Google Cloud organization. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +/// The parameters to +/// [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]. +/// +/// See [Enabling CMEK for Log +/// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for +/// more information. +class UpdateSettingsRequest extends $pb.GeneratedMessage { + factory UpdateSettingsRequest({ + $core.String? name, + Settings? settings, + $58.FieldMask? updateMask, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (settings != null) { + $result.settings = settings; + } + if (updateMask != null) { + $result.updateMask = updateMask; + } + return $result; + } + UpdateSettingsRequest._() : super(); + factory UpdateSettingsRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory UpdateSettingsRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateSettingsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM(2, _omitFieldNames ? '' : 'settings', + subBuilder: Settings.create) + ..aOM<$58.FieldMask>(3, _omitFieldNames ? '' : 'updateMask', + subBuilder: $58.FieldMask.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') + UpdateSettingsRequest clone() => + UpdateSettingsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + UpdateSettingsRequest copyWith( + void Function(UpdateSettingsRequest) updates) => + super.copyWith((message) => updates(message as UpdateSettingsRequest)) + as UpdateSettingsRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static UpdateSettingsRequest create() => UpdateSettingsRequest._(); + UpdateSettingsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static UpdateSettingsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static UpdateSettingsRequest? _defaultInstance; + + /// Required. The resource name for the settings to update. + /// + /// "organizations/[ORGANIZATION_ID]/settings" + /// + /// For example: + /// + /// `"organizations/12345/settings"` + /// + /// Note: Settings for the Log Router can currently only be configured for + /// Google Cloud organizations. Once configured, it applies to all projects and + /// folders in the Google Cloud organization. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Required. The settings to update. + /// + /// See [Enabling CMEK for Log + /// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + /// for more information. + @$pb.TagNumber(2) + Settings get settings => $_getN(1); + @$pb.TagNumber(2) + set settings(Settings v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasSettings() => $_has(1); + @$pb.TagNumber(2) + void clearSettings() => clearField(2); + @$pb.TagNumber(2) + Settings ensureSettings() => $_ensure(1); + + /// Optional. Field mask identifying which fields from `settings` should + /// be updated. A field will be overwritten if and only if it is in the update + /// mask. Output only fields cannot be updated. + /// + /// See [FieldMask][google.protobuf.FieldMask] for more information. + /// + /// For example: `"updateMask=kmsKeyName"` + @$pb.TagNumber(3) + $58.FieldMask get updateMask => $_getN(2); + @$pb.TagNumber(3) + set updateMask($58.FieldMask v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasUpdateMask() => $_has(2); + @$pb.TagNumber(3) + void clearUpdateMask() => clearField(3); + @$pb.TagNumber(3) + $58.FieldMask ensureUpdateMask() => $_ensure(2); +} + +/// Describes the settings associated with a project, folder, organization, +/// billing account, or flexible resource. +class Settings extends $pb.GeneratedMessage { + factory Settings({ + $core.String? name, + $core.String? kmsKeyName, + $core.String? kmsServiceAccountId, + $core.String? storageLocation, + $core.bool? disableDefaultSink, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (kmsKeyName != null) { + $result.kmsKeyName = kmsKeyName; + } + if (kmsServiceAccountId != null) { + $result.kmsServiceAccountId = kmsServiceAccountId; + } + if (storageLocation != null) { + $result.storageLocation = storageLocation; + } + if (disableDefaultSink != null) { + $result.disableDefaultSink = disableDefaultSink; + } + return $result; + } + Settings._() : super(); + factory Settings.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Settings.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Settings', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'kmsKeyName') + ..aOS(3, _omitFieldNames ? '' : 'kmsServiceAccountId') + ..aOS(4, _omitFieldNames ? '' : 'storageLocation') + ..aOB(5, _omitFieldNames ? '' : 'disableDefaultSink') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + Settings clone() => Settings()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Settings copyWith(void Function(Settings) updates) => + super.copyWith((message) => updates(message as Settings)) as Settings; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Settings create() => Settings._(); + Settings createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static Settings getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Settings? _defaultInstance; + + /// Output only. The resource name of the settings. + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Optional. The resource name for the configured Cloud KMS key. + /// + /// KMS key name format: + /// + /// "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]" + /// + /// For example: + /// + /// `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"` + /// + /// + /// + /// To enable CMEK for the Log Router, set this field to a valid + /// `kms_key_name` for which the associated service account has the required + /// `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key. + /// + /// The Cloud KMS key used by the Log Router can be updated by changing the + /// `kms_key_name` to a new valid key name. Encryption operations that are in + /// progress will be completed with the key that was in use when they started. + /// Decryption operations will be completed using the key that was used at the + /// time of encryption unless access to that key has been revoked. + /// + /// To disable CMEK for the Log Router, set this field to an empty string. + /// + /// See [Enabling CMEK for Log + /// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + /// for more information. + @$pb.TagNumber(2) + $core.String get kmsKeyName => $_getSZ(1); + @$pb.TagNumber(2) + set kmsKeyName($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasKmsKeyName() => $_has(1); + @$pb.TagNumber(2) + void clearKmsKeyName() => clearField(2); + + /// Output only. The service account that will be used by the Log Router to + /// access your Cloud KMS key. + /// + /// Before enabling CMEK for Log Router, you must first assign the role + /// `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that + /// the Log Router will use to access your Cloud KMS key. Use + /// [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to + /// obtain the service account ID. + /// + /// See [Enabling CMEK for Log + /// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + /// for more information. + @$pb.TagNumber(3) + $core.String get kmsServiceAccountId => $_getSZ(2); + @$pb.TagNumber(3) + set kmsServiceAccountId($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasKmsServiceAccountId() => $_has(2); + @$pb.TagNumber(3) + void clearKmsServiceAccountId() => clearField(3); + + /// Optional. The Cloud region that will be used for _Default and _Required log + /// buckets for newly created projects and folders. For example `europe-west1`. + /// This setting does not affect the location of custom log buckets. + @$pb.TagNumber(4) + $core.String get storageLocation => $_getSZ(3); + @$pb.TagNumber(4) + set storageLocation($core.String v) { + $_setString(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasStorageLocation() => $_has(3); + @$pb.TagNumber(4) + void clearStorageLocation() => clearField(4); + + /// Optional. If set to true, the _Default sink in newly created projects and + /// folders will created in a disabled state. This can be used to automatically + /// disable log ingestion if there is already an aggregated sink configured in + /// the hierarchy. The _Default sink can be re-enabled manually if needed. + @$pb.TagNumber(5) + $core.bool get disableDefaultSink => $_getBF(4); + @$pb.TagNumber(5) + set disableDefaultSink($core.bool v) { + $_setBool(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasDisableDefaultSink() => $_has(4); + @$pb.TagNumber(5) + void clearDisableDefaultSink() => clearField(5); +} + +/// The parameters to CopyLogEntries. +class CopyLogEntriesRequest extends $pb.GeneratedMessage { + factory CopyLogEntriesRequest({ + $core.String? name, + $core.String? filter, + $core.String? destination, + }) { + final $result = create(); + if (name != null) { + $result.name = name; + } + if (filter != null) { + $result.filter = filter; + } + if (destination != null) { + $result.destination = destination; + } + return $result; + } + CopyLogEntriesRequest._() : super(); + factory CopyLogEntriesRequest.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CopyLogEntriesRequest.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CopyLogEntriesRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(3, _omitFieldNames ? '' : 'filter') + ..aOS(4, _omitFieldNames ? '' : 'destination') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CopyLogEntriesRequest clone() => + CopyLogEntriesRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CopyLogEntriesRequest copyWith( + void Function(CopyLogEntriesRequest) updates) => + super.copyWith((message) => updates(message as CopyLogEntriesRequest)) + as CopyLogEntriesRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CopyLogEntriesRequest create() => CopyLogEntriesRequest._(); + CopyLogEntriesRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CopyLogEntriesRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CopyLogEntriesRequest? _defaultInstance; + + /// Required. Log bucket from which to copy log entries. + /// + /// For example: + /// + /// `"projects/my-project/locations/global/buckets/my-source-bucket"` + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); + + /// Optional. A filter specifying which log entries to copy. The filter must be + /// no more than 20k characters. An empty filter matches all log entries. + @$pb.TagNumber(3) + $core.String get filter => $_getSZ(1); + @$pb.TagNumber(3) + set filter($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(3) + $core.bool hasFilter() => $_has(1); + @$pb.TagNumber(3) + void clearFilter() => clearField(3); + + /// Required. Destination to which to copy log entries. + @$pb.TagNumber(4) + $core.String get destination => $_getSZ(2); + @$pb.TagNumber(4) + set destination($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(4) + $core.bool hasDestination() => $_has(2); + @$pb.TagNumber(4) + void clearDestination() => clearField(4); } -class DeleteExclusionRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteExclusionRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; +/// Metadata for CopyLogEntries long running operations. +class CopyLogEntriesMetadata extends $pb.GeneratedMessage { + factory CopyLogEntriesMetadata({ + $50.Timestamp? startTime, + $50.Timestamp? endTime, + OperationState? state, + $core.bool? cancellationRequested, + CopyLogEntriesRequest? request, + $core.int? progress, + $core.String? writerIdentity, + }) { + final $result = create(); + if (startTime != null) { + $result.startTime = startTime; + } + if (endTime != null) { + $result.endTime = endTime; + } + if (state != null) { + $result.state = state; + } + if (cancellationRequested != null) { + $result.cancellationRequested = cancellationRequested; + } + if (request != null) { + $result.request = request; + } + if (progress != null) { + $result.progress = progress; + } + if (writerIdentity != null) { + $result.writerIdentity = writerIdentity; + } + return $result; + } + CopyLogEntriesMetadata._() : super(); + factory CopyLogEntriesMetadata.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CopyLogEntriesMetadata.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CopyLogEntriesMetadata', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(2, _omitFieldNames ? '' : 'endTime', + subBuilder: $50.Timestamp.create) + ..e(3, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: OperationState.OPERATION_STATE_UNSPECIFIED, + valueOf: OperationState.valueOf, + enumValues: OperationState.values) + ..aOB(4, _omitFieldNames ? '' : 'cancellationRequested') + ..aOM(5, _omitFieldNames ? '' : 'request', + subBuilder: CopyLogEntriesRequest.create) + ..a<$core.int>(6, _omitFieldNames ? '' : 'progress', $pb.PbFieldType.O3) + ..aOS(7, _omitFieldNames ? '' : 'writerIdentity') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CopyLogEntriesMetadata clone() => + CopyLogEntriesMetadata()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CopyLogEntriesMetadata copyWith( + void Function(CopyLogEntriesMetadata) updates) => + super.copyWith((message) => updates(message as CopyLogEntriesMetadata)) + as CopyLogEntriesMetadata; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CopyLogEntriesMetadata create() => CopyLogEntriesMetadata._(); + CopyLogEntriesMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CopyLogEntriesMetadata getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CopyLogEntriesMetadata? _defaultInstance; + + /// The create time of an operation. + @$pb.TagNumber(1) + $50.Timestamp get startTime => $_getN(0); + @$pb.TagNumber(1) + set startTime($50.Timestamp v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasStartTime() => $_has(0); + @$pb.TagNumber(1) + void clearStartTime() => clearField(1); + @$pb.TagNumber(1) + $50.Timestamp ensureStartTime() => $_ensure(0); + + /// The end time of an operation. + @$pb.TagNumber(2) + $50.Timestamp get endTime => $_getN(1); + @$pb.TagNumber(2) + set endTime($50.Timestamp v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasEndTime() => $_has(1); + @$pb.TagNumber(2) + void clearEndTime() => clearField(2); + @$pb.TagNumber(2) + $50.Timestamp ensureEndTime() => $_ensure(1); + + /// State of an operation. + @$pb.TagNumber(3) + OperationState get state => $_getN(2); + @$pb.TagNumber(3) + set state(OperationState v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasState() => $_has(2); + @$pb.TagNumber(3) + void clearState() => clearField(3); + + /// Identifies whether the user has requested cancellation of the operation. + @$pb.TagNumber(4) + $core.bool get cancellationRequested => $_getBF(3); + @$pb.TagNumber(4) + set cancellationRequested($core.bool v) { + $_setBool(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasCancellationRequested() => $_has(3); + @$pb.TagNumber(4) + void clearCancellationRequested() => clearField(4); + + /// CopyLogEntries RPC request. + @$pb.TagNumber(5) + CopyLogEntriesRequest get request => $_getN(4); + @$pb.TagNumber(5) + set request(CopyLogEntriesRequest v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasRequest() => $_has(4); + @$pb.TagNumber(5) + void clearRequest() => clearField(5); + @$pb.TagNumber(5) + CopyLogEntriesRequest ensureRequest() => $_ensure(4); + + /// Estimated progress of the operation (0 - 100%). + @$pb.TagNumber(6) + $core.int get progress => $_getIZ(5); + @$pb.TagNumber(6) + set progress($core.int v) { + $_setSignedInt32(5, v); + } + + @$pb.TagNumber(6) + $core.bool hasProgress() => $_has(5); + @$pb.TagNumber(6) + void clearProgress() => clearField(6); + + /// The IAM identity of a service account that must be granted access to the + /// destination. + /// + /// If the service account is not granted permission to the destination within + /// an hour, the operation will be cancelled. + /// + /// For example: `"serviceAccount:foo@bar.com"` + @$pb.TagNumber(7) + $core.String get writerIdentity => $_getSZ(6); + @$pb.TagNumber(7) + set writerIdentity($core.String v) { + $_setString(6, v); + } - DeleteExclusionRequest._() : super(); - factory DeleteExclusionRequest({ - $core.String? name, + @$pb.TagNumber(7) + $core.bool hasWriterIdentity() => $_has(6); + @$pb.TagNumber(7) + void clearWriterIdentity() => clearField(7); +} + +/// Response type for CopyLogEntries long running operations. +class CopyLogEntriesResponse extends $pb.GeneratedMessage { + factory CopyLogEntriesResponse({ + $fixnum.Int64? logEntriesCopiedCount, }) { - final _result = create(); - if (name != null) { - _result.name = name; + final $result = create(); + if (logEntriesCopiedCount != null) { + $result.logEntriesCopiedCount = logEntriesCopiedCount; } - return _result; + return $result; } - factory DeleteExclusionRequest.fromBuffer($core.List<$core.int> i, + CopyLogEntriesResponse._() : super(); + factory CopyLogEntriesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory DeleteExclusionRequest.fromJson($core.String i, + factory CopyLogEntriesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CopyLogEntriesResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aInt64(1, _omitFieldNames ? '' : 'logEntriesCopiedCount') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - DeleteExclusionRequest clone() => - DeleteExclusionRequest()..mergeFromMessage(this); + CopyLogEntriesResponse clone() => + CopyLogEntriesResponse()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - DeleteExclusionRequest copyWith( - void Function(DeleteExclusionRequest) updates) => - super.copyWith((message) => updates(message as DeleteExclusionRequest)) - as DeleteExclusionRequest; // ignore: deprecated_member_use + CopyLogEntriesResponse copyWith( + void Function(CopyLogEntriesResponse) updates) => + super.copyWith((message) => updates(message as CopyLogEntriesResponse)) + as CopyLogEntriesResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static DeleteExclusionRequest create() => DeleteExclusionRequest._(); - DeleteExclusionRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static CopyLogEntriesResponse create() => CopyLogEntriesResponse._(); + CopyLogEntriesResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static DeleteExclusionRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static DeleteExclusionRequest? _defaultInstance; + static CopyLogEntriesResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CopyLogEntriesResponse? _defaultInstance; + /// Number of log entries copied. @$pb.TagNumber(1) - $core.String get name => $_getSZ(0); + $fixnum.Int64 get logEntriesCopiedCount => $_getI64(0); @$pb.TagNumber(1) - set name($core.String v) { - $_setString(0, v); + set logEntriesCopiedCount($fixnum.Int64 v) { + $_setInt64(0, v); } @$pb.TagNumber(1) - $core.bool hasName() => $_has(0); + $core.bool hasLogEntriesCopiedCount() => $_has(0); @$pb.TagNumber(1) - void clearName() => clearField(1); + void clearLogEntriesCopiedCount() => clearField(1); } -class GetCmekSettingsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetCmekSettingsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; +enum BucketMetadata_Request { createBucketRequest, updateBucketRequest, notSet } - GetCmekSettingsRequest._() : super(); - factory GetCmekSettingsRequest({ - $core.String? name, +/// Metadata for LongRunningUpdateBucket Operations. +class BucketMetadata extends $pb.GeneratedMessage { + factory BucketMetadata({ + $50.Timestamp? startTime, + $50.Timestamp? endTime, + OperationState? state, + CreateBucketRequest? createBucketRequest, + UpdateBucketRequest? updateBucketRequest, }) { - final _result = create(); - if (name != null) { - _result.name = name; + final $result = create(); + if (startTime != null) { + $result.startTime = startTime; + } + if (endTime != null) { + $result.endTime = endTime; + } + if (state != null) { + $result.state = state; } - return _result; + if (createBucketRequest != null) { + $result.createBucketRequest = createBucketRequest; + } + if (updateBucketRequest != null) { + $result.updateBucketRequest = updateBucketRequest; + } + return $result; } - factory GetCmekSettingsRequest.fromBuffer($core.List<$core.int> i, + BucketMetadata._() : super(); + factory BucketMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetCmekSettingsRequest.fromJson($core.String i, + factory BucketMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, BucketMetadata_Request> + _BucketMetadata_RequestByTag = { + 4: BucketMetadata_Request.createBucketRequest, + 5: BucketMetadata_Request.updateBucketRequest, + 0: BucketMetadata_Request.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'BucketMetadata', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..oo(0, [4, 5]) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(2, _omitFieldNames ? '' : 'endTime', + subBuilder: $50.Timestamp.create) + ..e(3, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: OperationState.OPERATION_STATE_UNSPECIFIED, + valueOf: OperationState.valueOf, + enumValues: OperationState.values) + ..aOM(4, _omitFieldNames ? '' : 'createBucketRequest', + subBuilder: CreateBucketRequest.create) + ..aOM(5, _omitFieldNames ? '' : 'updateBucketRequest', + subBuilder: UpdateBucketRequest.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') - GetCmekSettingsRequest clone() => - GetCmekSettingsRequest()..mergeFromMessage(this); + BucketMetadata clone() => BucketMetadata()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - GetCmekSettingsRequest copyWith( - void Function(GetCmekSettingsRequest) updates) => - super.copyWith((message) => updates(message as GetCmekSettingsRequest)) - as GetCmekSettingsRequest; // ignore: deprecated_member_use + BucketMetadata copyWith(void Function(BucketMetadata) updates) => + super.copyWith((message) => updates(message as BucketMetadata)) + as BucketMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static GetCmekSettingsRequest create() => GetCmekSettingsRequest._(); - GetCmekSettingsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static BucketMetadata create() => BucketMetadata._(); + BucketMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetCmekSettingsRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static GetCmekSettingsRequest? _defaultInstance; + static BucketMetadata getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static BucketMetadata? _defaultInstance; + BucketMetadata_Request whichRequest() => + _BucketMetadata_RequestByTag[$_whichOneof(0)]!; + void clearRequest() => clearField($_whichOneof(0)); + + /// The create time of an operation. @$pb.TagNumber(1) - $core.String get name => $_getSZ(0); + $50.Timestamp get startTime => $_getN(0); @$pb.TagNumber(1) - set name($core.String v) { - $_setString(0, v); + set startTime($50.Timestamp v) { + setField(1, v); } @$pb.TagNumber(1) - $core.bool hasName() => $_has(0); + $core.bool hasStartTime() => $_has(0); @$pb.TagNumber(1) - void clearName() => clearField(1); + void clearStartTime() => clearField(1); + @$pb.TagNumber(1) + $50.Timestamp ensureStartTime() => $_ensure(0); + + /// The end time of an operation. + @$pb.TagNumber(2) + $50.Timestamp get endTime => $_getN(1); + @$pb.TagNumber(2) + set endTime($50.Timestamp v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasEndTime() => $_has(1); + @$pb.TagNumber(2) + void clearEndTime() => clearField(2); + @$pb.TagNumber(2) + $50.Timestamp ensureEndTime() => $_ensure(1); + + /// State of an operation. + @$pb.TagNumber(3) + OperationState get state => $_getN(2); + @$pb.TagNumber(3) + set state(OperationState v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasState() => $_has(2); + @$pb.TagNumber(3) + void clearState() => clearField(3); + + /// LongRunningCreateBucket RPC request. + @$pb.TagNumber(4) + CreateBucketRequest get createBucketRequest => $_getN(3); + @$pb.TagNumber(4) + set createBucketRequest(CreateBucketRequest v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasCreateBucketRequest() => $_has(3); + @$pb.TagNumber(4) + void clearCreateBucketRequest() => clearField(4); + @$pb.TagNumber(4) + CreateBucketRequest ensureCreateBucketRequest() => $_ensure(3); + + /// LongRunningUpdateBucket RPC request. + @$pb.TagNumber(5) + UpdateBucketRequest get updateBucketRequest => $_getN(4); + @$pb.TagNumber(5) + set updateBucketRequest(UpdateBucketRequest v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasUpdateBucketRequest() => $_has(4); + @$pb.TagNumber(5) + void clearUpdateBucketRequest() => clearField(5); + @$pb.TagNumber(5) + UpdateBucketRequest ensureUpdateBucketRequest() => $_ensure(4); } -class UpdateCmekSettingsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateCmekSettingsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cmekSettings', - subBuilder: CmekSettings.create) - ..aOM<$3.FieldMask>(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateMask', - subBuilder: $3.FieldMask.create) - ..hasRequiredFields = false; +enum LinkMetadata_Request { createLinkRequest, deleteLinkRequest, notSet } - UpdateCmekSettingsRequest._() : super(); - factory UpdateCmekSettingsRequest({ - $core.String? name, - CmekSettings? cmekSettings, - $3.FieldMask? updateMask, +/// Metadata for long running Link operations. +class LinkMetadata extends $pb.GeneratedMessage { + factory LinkMetadata({ + $50.Timestamp? startTime, + $50.Timestamp? endTime, + OperationState? state, + CreateLinkRequest? createLinkRequest, + DeleteLinkRequest? deleteLinkRequest, }) { - final _result = create(); - if (name != null) { - _result.name = name; + final $result = create(); + if (startTime != null) { + $result.startTime = startTime; } - if (cmekSettings != null) { - _result.cmekSettings = cmekSettings; + if (endTime != null) { + $result.endTime = endTime; } - if (updateMask != null) { - _result.updateMask = updateMask; + if (state != null) { + $result.state = state; + } + if (createLinkRequest != null) { + $result.createLinkRequest = createLinkRequest; + } + if (deleteLinkRequest != null) { + $result.deleteLinkRequest = deleteLinkRequest; } - return _result; + return $result; } - factory UpdateCmekSettingsRequest.fromBuffer($core.List<$core.int> i, + LinkMetadata._() : super(); + factory LinkMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory UpdateCmekSettingsRequest.fromJson($core.String i, + factory LinkMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, LinkMetadata_Request> + _LinkMetadata_RequestByTag = { + 4: LinkMetadata_Request.createLinkRequest, + 5: LinkMetadata_Request.deleteLinkRequest, + 0: LinkMetadata_Request.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LinkMetadata', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..oo(0, [4, 5]) + ..aOM<$50.Timestamp>(1, _omitFieldNames ? '' : 'startTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(2, _omitFieldNames ? '' : 'endTime', + subBuilder: $50.Timestamp.create) + ..e(3, _omitFieldNames ? '' : 'state', $pb.PbFieldType.OE, + defaultOrMaker: OperationState.OPERATION_STATE_UNSPECIFIED, + valueOf: OperationState.valueOf, + enumValues: OperationState.values) + ..aOM(4, _omitFieldNames ? '' : 'createLinkRequest', + subBuilder: CreateLinkRequest.create) + ..aOM(5, _omitFieldNames ? '' : 'deleteLinkRequest', + subBuilder: DeleteLinkRequest.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') - UpdateCmekSettingsRequest clone() => - UpdateCmekSettingsRequest()..mergeFromMessage(this); + LinkMetadata clone() => LinkMetadata()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - UpdateCmekSettingsRequest copyWith( - void Function(UpdateCmekSettingsRequest) updates) => - super.copyWith((message) => updates(message as UpdateCmekSettingsRequest)) - as UpdateCmekSettingsRequest; // ignore: deprecated_member_use + LinkMetadata copyWith(void Function(LinkMetadata) updates) => + super.copyWith((message) => updates(message as LinkMetadata)) + as LinkMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static UpdateCmekSettingsRequest create() => UpdateCmekSettingsRequest._(); - UpdateCmekSettingsRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static LinkMetadata create() => LinkMetadata._(); + LinkMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static UpdateCmekSettingsRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static UpdateCmekSettingsRequest? _defaultInstance; + static LinkMetadata getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static LinkMetadata? _defaultInstance; + LinkMetadata_Request whichRequest() => + _LinkMetadata_RequestByTag[$_whichOneof(0)]!; + void clearRequest() => clearField($_whichOneof(0)); + + /// The start time of an operation. @$pb.TagNumber(1) - $core.String get name => $_getSZ(0); + $50.Timestamp get startTime => $_getN(0); @$pb.TagNumber(1) - set name($core.String v) { - $_setString(0, v); + set startTime($50.Timestamp v) { + setField(1, v); } @$pb.TagNumber(1) - $core.bool hasName() => $_has(0); + $core.bool hasStartTime() => $_has(0); @$pb.TagNumber(1) - void clearName() => clearField(1); + void clearStartTime() => clearField(1); + @$pb.TagNumber(1) + $50.Timestamp ensureStartTime() => $_ensure(0); + /// The end time of an operation. @$pb.TagNumber(2) - CmekSettings get cmekSettings => $_getN(1); + $50.Timestamp get endTime => $_getN(1); @$pb.TagNumber(2) - set cmekSettings(CmekSettings v) { + set endTime($50.Timestamp v) { setField(2, v); } @$pb.TagNumber(2) - $core.bool hasCmekSettings() => $_has(1); + $core.bool hasEndTime() => $_has(1); @$pb.TagNumber(2) - void clearCmekSettings() => clearField(2); + void clearEndTime() => clearField(2); @$pb.TagNumber(2) - CmekSettings ensureCmekSettings() => $_ensure(1); + $50.Timestamp ensureEndTime() => $_ensure(1); + /// State of an operation. @$pb.TagNumber(3) - $3.FieldMask get updateMask => $_getN(2); + OperationState get state => $_getN(2); @$pb.TagNumber(3) - set updateMask($3.FieldMask v) { + set state(OperationState v) { setField(3, v); } @$pb.TagNumber(3) - $core.bool hasUpdateMask() => $_has(2); - @$pb.TagNumber(3) - void clearUpdateMask() => clearField(3); + $core.bool hasState() => $_has(2); @$pb.TagNumber(3) - $3.FieldMask ensureUpdateMask() => $_ensure(2); -} + void clearState() => clearField(3); -class CmekSettings extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CmekSettings', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'kmsKeyName') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceAccountId') - ..hasRequiredFields = false; + /// CreateLink RPC request. + @$pb.TagNumber(4) + CreateLinkRequest get createLinkRequest => $_getN(3); + @$pb.TagNumber(4) + set createLinkRequest(CreateLinkRequest v) { + setField(4, v); + } - CmekSettings._() : super(); - factory CmekSettings({ - $core.String? name, - $core.String? kmsKeyName, - $core.String? serviceAccountId, + @$pb.TagNumber(4) + $core.bool hasCreateLinkRequest() => $_has(3); + @$pb.TagNumber(4) + void clearCreateLinkRequest() => clearField(4); + @$pb.TagNumber(4) + CreateLinkRequest ensureCreateLinkRequest() => $_ensure(3); + + /// DeleteLink RPC request. + @$pb.TagNumber(5) + DeleteLinkRequest get deleteLinkRequest => $_getN(4); + @$pb.TagNumber(5) + set deleteLinkRequest(DeleteLinkRequest v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasDeleteLinkRequest() => $_has(4); + @$pb.TagNumber(5) + void clearDeleteLinkRequest() => clearField(5); + @$pb.TagNumber(5) + DeleteLinkRequest ensureDeleteLinkRequest() => $_ensure(4); +} + +/// Cloud Logging specific location metadata. +class LocationMetadata extends $pb.GeneratedMessage { + factory LocationMetadata({ + $core.bool? logAnalyticsEnabled, }) { - final _result = create(); - if (name != null) { - _result.name = name; - } - if (kmsKeyName != null) { - _result.kmsKeyName = kmsKeyName; + final $result = create(); + if (logAnalyticsEnabled != null) { + $result.logAnalyticsEnabled = logAnalyticsEnabled; } - if (serviceAccountId != null) { - _result.serviceAccountId = serviceAccountId; - } - return _result; + return $result; } - factory CmekSettings.fromBuffer($core.List<$core.int> i, + LocationMetadata._() : super(); + factory LocationMetadata.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory CmekSettings.fromJson($core.String i, + factory LocationMetadata.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LocationMetadata', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'logAnalyticsEnabled') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - CmekSettings clone() => CmekSettings()..mergeFromMessage(this); + LocationMetadata clone() => LocationMetadata()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - CmekSettings copyWith(void Function(CmekSettings) updates) => - super.copyWith((message) => updates(message as CmekSettings)) - as CmekSettings; // ignore: deprecated_member_use + LocationMetadata copyWith(void Function(LocationMetadata) updates) => + super.copyWith((message) => updates(message as LocationMetadata)) + as LocationMetadata; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static CmekSettings create() => CmekSettings._(); - CmekSettings createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static LocationMetadata create() => LocationMetadata._(); + LocationMetadata createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static CmekSettings getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static CmekSettings? _defaultInstance; + static LocationMetadata getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static LocationMetadata? _defaultInstance; + /// Indicates whether or not Log Analytics features are supported in the given + /// location. @$pb.TagNumber(1) - $core.String get name => $_getSZ(0); + $core.bool get logAnalyticsEnabled => $_getBF(0); @$pb.TagNumber(1) - set name($core.String v) { - $_setString(0, v); + set logAnalyticsEnabled($core.bool v) { + $_setBool(0, v); } @$pb.TagNumber(1) - $core.bool hasName() => $_has(0); + $core.bool hasLogAnalyticsEnabled() => $_has(0); @$pb.TagNumber(1) - void clearName() => clearField(1); - - @$pb.TagNumber(2) - $core.String get kmsKeyName => $_getSZ(1); - @$pb.TagNumber(2) - set kmsKeyName($core.String v) { - $_setString(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasKmsKeyName() => $_has(1); - @$pb.TagNumber(2) - void clearKmsKeyName() => clearField(2); - - @$pb.TagNumber(3) - $core.String get serviceAccountId => $_getSZ(2); - @$pb.TagNumber(3) - set serviceAccountId($core.String v) { - $_setString(2, v); - } - - @$pb.TagNumber(3) - $core.bool hasServiceAccountId() => $_has(2); - @$pb.TagNumber(3) - void clearServiceAccountId() => clearField(3); + void clearLogAnalyticsEnabled() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbenum.dart index 4ae74b09..38e4dc94 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbenum.dart @@ -1,32 +1,79 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging_config.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// List of different operation states. +/// High level state of the operation. This is used to report the job's +/// current state to the user. Once a long running operation is created, +/// the current state of the operation can be queried even before the +/// operation is finished and the final result is available. +class OperationState extends $pb.ProtobufEnum { + static const OperationState OPERATION_STATE_UNSPECIFIED = + OperationState._(0, _omitEnumNames ? '' : 'OPERATION_STATE_UNSPECIFIED'); + static const OperationState OPERATION_STATE_SCHEDULED = + OperationState._(1, _omitEnumNames ? '' : 'OPERATION_STATE_SCHEDULED'); + static const OperationState OPERATION_STATE_WAITING_FOR_PERMISSIONS = + OperationState._( + 2, _omitEnumNames ? '' : 'OPERATION_STATE_WAITING_FOR_PERMISSIONS'); + static const OperationState OPERATION_STATE_RUNNING = + OperationState._(3, _omitEnumNames ? '' : 'OPERATION_STATE_RUNNING'); + static const OperationState OPERATION_STATE_SUCCEEDED = + OperationState._(4, _omitEnumNames ? '' : 'OPERATION_STATE_SUCCEEDED'); + static const OperationState OPERATION_STATE_FAILED = + OperationState._(5, _omitEnumNames ? '' : 'OPERATION_STATE_FAILED'); + static const OperationState OPERATION_STATE_CANCELLED = + OperationState._(6, _omitEnumNames ? '' : 'OPERATION_STATE_CANCELLED'); + + static const $core.List values = [ + OPERATION_STATE_UNSPECIFIED, + OPERATION_STATE_SCHEDULED, + OPERATION_STATE_WAITING_FOR_PERMISSIONS, + OPERATION_STATE_RUNNING, + OPERATION_STATE_SUCCEEDED, + OPERATION_STATE_FAILED, + OPERATION_STATE_CANCELLED, + ]; + + static final $core.Map<$core.int, OperationState> _byValue = + $pb.ProtobufEnum.initByValue(values); + static OperationState? valueOf($core.int value) => _byValue[value]; + + const OperationState._($core.int v, $core.String n) : super(v, n); +} + +/// LogBucket lifecycle states. class LifecycleState extends $pb.ProtobufEnum { - static const LifecycleState LIFECYCLE_STATE_UNSPECIFIED = LifecycleState._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LIFECYCLE_STATE_UNSPECIFIED'); - static const LifecycleState ACTIVE = LifecycleState._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'ACTIVE'); - static const LifecycleState DELETE_REQUESTED = LifecycleState._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'DELETE_REQUESTED'); + static const LifecycleState LIFECYCLE_STATE_UNSPECIFIED = + LifecycleState._(0, _omitEnumNames ? '' : 'LIFECYCLE_STATE_UNSPECIFIED'); + static const LifecycleState ACTIVE = + LifecycleState._(1, _omitEnumNames ? '' : 'ACTIVE'); + static const LifecycleState DELETE_REQUESTED = + LifecycleState._(2, _omitEnumNames ? '' : 'DELETE_REQUESTED'); + static const LifecycleState UPDATING = + LifecycleState._(3, _omitEnumNames ? '' : 'UPDATING'); + static const LifecycleState CREATING = + LifecycleState._(4, _omitEnumNames ? '' : 'CREATING'); + static const LifecycleState FAILED = + LifecycleState._(5, _omitEnumNames ? '' : 'FAILED'); static const $core.List values = [ LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED, + UPDATING, + CREATING, + FAILED, ]; static final $core.Map<$core.int, LifecycleState> _byValue = @@ -36,17 +83,38 @@ class LifecycleState extends $pb.ProtobufEnum { const LifecycleState._($core.int v, $core.String n) : super(v, n); } +/// IndexType is used for custom indexing. It describes the type of an indexed +/// field. +class IndexType extends $pb.ProtobufEnum { + static const IndexType INDEX_TYPE_UNSPECIFIED = + IndexType._(0, _omitEnumNames ? '' : 'INDEX_TYPE_UNSPECIFIED'); + static const IndexType INDEX_TYPE_STRING = + IndexType._(1, _omitEnumNames ? '' : 'INDEX_TYPE_STRING'); + static const IndexType INDEX_TYPE_INTEGER = + IndexType._(2, _omitEnumNames ? '' : 'INDEX_TYPE_INTEGER'); + + static const $core.List values = [ + INDEX_TYPE_UNSPECIFIED, + INDEX_TYPE_STRING, + INDEX_TYPE_INTEGER, + ]; + + static final $core.Map<$core.int, IndexType> _byValue = + $pb.ProtobufEnum.initByValue(values); + static IndexType? valueOf($core.int value) => _byValue[value]; + + const IndexType._($core.int v, $core.String n) : super(v, n); +} + +/// Deprecated. This is unused. class LogSink_VersionFormat extends $pb.ProtobufEnum { static const LogSink_VersionFormat VERSION_FORMAT_UNSPECIFIED = LogSink_VersionFormat._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'VERSION_FORMAT_UNSPECIFIED'); - static const LogSink_VersionFormat V2 = LogSink_VersionFormat._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'V2'); - static const LogSink_VersionFormat V1 = LogSink_VersionFormat._( - 2, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'V1'); + 0, _omitEnumNames ? '' : 'VERSION_FORMAT_UNSPECIFIED'); + static const LogSink_VersionFormat V2 = + LogSink_VersionFormat._(1, _omitEnumNames ? '' : 'V2'); + static const LogSink_VersionFormat V1 = + LogSink_VersionFormat._(2, _omitEnumNames ? '' : 'V1'); static const $core.List values = [ @@ -61,3 +129,5 @@ class LogSink_VersionFormat extends $pb.ProtobufEnum { const LogSink_VersionFormat._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbgrpc.dart index 081dec0e..16df52e8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbgrpc.dart @@ -1,614 +1,860 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging_config.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'logging_config.pb.dart' as $0; +import 'package:protobuf/protobuf.dart' as $pb; + +import '../../longrunning/operations.pb.dart' as $0; import '../../protobuf/empty.pb.dart' as $1; +import 'logging_config.pb.dart' as $19; + export 'logging_config.pb.dart'; +@$pb.GrpcServiceName('google.logging.v2.ConfigServiceV2') class ConfigServiceV2Client extends $grpc.Client { static final _$listBuckets = - $grpc.ClientMethod<$0.ListBucketsRequest, $0.ListBucketsResponse>( + $grpc.ClientMethod<$19.ListBucketsRequest, $19.ListBucketsResponse>( '/google.logging.v2.ConfigServiceV2/ListBuckets', - ($0.ListBucketsRequest value) => value.writeToBuffer(), + ($19.ListBucketsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.ListBucketsResponse.fromBuffer(value)); + $19.ListBucketsResponse.fromBuffer(value)); static final _$getBucket = - $grpc.ClientMethod<$0.GetBucketRequest, $0.LogBucket>( + $grpc.ClientMethod<$19.GetBucketRequest, $19.LogBucket>( '/google.logging.v2.ConfigServiceV2/GetBucket', - ($0.GetBucketRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogBucket.fromBuffer(value)); + ($19.GetBucketRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogBucket.fromBuffer(value)); + static final _$createBucketAsync = + $grpc.ClientMethod<$19.CreateBucketRequest, $0.Operation>( + '/google.logging.v2.ConfigServiceV2/CreateBucketAsync', + ($19.CreateBucketRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$updateBucketAsync = + $grpc.ClientMethod<$19.UpdateBucketRequest, $0.Operation>( + '/google.logging.v2.ConfigServiceV2/UpdateBucketAsync', + ($19.UpdateBucketRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); static final _$createBucket = - $grpc.ClientMethod<$0.CreateBucketRequest, $0.LogBucket>( + $grpc.ClientMethod<$19.CreateBucketRequest, $19.LogBucket>( '/google.logging.v2.ConfigServiceV2/CreateBucket', - ($0.CreateBucketRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogBucket.fromBuffer(value)); + ($19.CreateBucketRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogBucket.fromBuffer(value)); static final _$updateBucket = - $grpc.ClientMethod<$0.UpdateBucketRequest, $0.LogBucket>( + $grpc.ClientMethod<$19.UpdateBucketRequest, $19.LogBucket>( '/google.logging.v2.ConfigServiceV2/UpdateBucket', - ($0.UpdateBucketRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogBucket.fromBuffer(value)); + ($19.UpdateBucketRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogBucket.fromBuffer(value)); static final _$deleteBucket = - $grpc.ClientMethod<$0.DeleteBucketRequest, $1.Empty>( + $grpc.ClientMethod<$19.DeleteBucketRequest, $1.Empty>( '/google.logging.v2.ConfigServiceV2/DeleteBucket', - ($0.DeleteBucketRequest value) => value.writeToBuffer(), + ($19.DeleteBucketRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); static final _$undeleteBucket = - $grpc.ClientMethod<$0.UndeleteBucketRequest, $1.Empty>( + $grpc.ClientMethod<$19.UndeleteBucketRequest, $1.Empty>( '/google.logging.v2.ConfigServiceV2/UndeleteBucket', - ($0.UndeleteBucketRequest value) => value.writeToBuffer(), + ($19.UndeleteBucketRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); static final _$listViews = - $grpc.ClientMethod<$0.ListViewsRequest, $0.ListViewsResponse>( + $grpc.ClientMethod<$19.ListViewsRequest, $19.ListViewsResponse>( '/google.logging.v2.ConfigServiceV2/ListViews', - ($0.ListViewsRequest value) => value.writeToBuffer(), + ($19.ListViewsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.ListViewsResponse.fromBuffer(value)); - static final _$getView = $grpc.ClientMethod<$0.GetViewRequest, $0.LogView>( + $19.ListViewsResponse.fromBuffer(value)); + static final _$getView = $grpc.ClientMethod<$19.GetViewRequest, $19.LogView>( '/google.logging.v2.ConfigServiceV2/GetView', - ($0.GetViewRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogView.fromBuffer(value)); + ($19.GetViewRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogView.fromBuffer(value)); static final _$createView = - $grpc.ClientMethod<$0.CreateViewRequest, $0.LogView>( + $grpc.ClientMethod<$19.CreateViewRequest, $19.LogView>( '/google.logging.v2.ConfigServiceV2/CreateView', - ($0.CreateViewRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogView.fromBuffer(value)); + ($19.CreateViewRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogView.fromBuffer(value)); static final _$updateView = - $grpc.ClientMethod<$0.UpdateViewRequest, $0.LogView>( + $grpc.ClientMethod<$19.UpdateViewRequest, $19.LogView>( '/google.logging.v2.ConfigServiceV2/UpdateView', - ($0.UpdateViewRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogView.fromBuffer(value)); + ($19.UpdateViewRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogView.fromBuffer(value)); static final _$deleteView = - $grpc.ClientMethod<$0.DeleteViewRequest, $1.Empty>( + $grpc.ClientMethod<$19.DeleteViewRequest, $1.Empty>( '/google.logging.v2.ConfigServiceV2/DeleteView', - ($0.DeleteViewRequest value) => value.writeToBuffer(), + ($19.DeleteViewRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); static final _$listSinks = - $grpc.ClientMethod<$0.ListSinksRequest, $0.ListSinksResponse>( + $grpc.ClientMethod<$19.ListSinksRequest, $19.ListSinksResponse>( '/google.logging.v2.ConfigServiceV2/ListSinks', - ($0.ListSinksRequest value) => value.writeToBuffer(), + ($19.ListSinksRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.ListSinksResponse.fromBuffer(value)); - static final _$getSink = $grpc.ClientMethod<$0.GetSinkRequest, $0.LogSink>( + $19.ListSinksResponse.fromBuffer(value)); + static final _$getSink = $grpc.ClientMethod<$19.GetSinkRequest, $19.LogSink>( '/google.logging.v2.ConfigServiceV2/GetSink', - ($0.GetSinkRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogSink.fromBuffer(value)); + ($19.GetSinkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogSink.fromBuffer(value)); static final _$createSink = - $grpc.ClientMethod<$0.CreateSinkRequest, $0.LogSink>( + $grpc.ClientMethod<$19.CreateSinkRequest, $19.LogSink>( '/google.logging.v2.ConfigServiceV2/CreateSink', - ($0.CreateSinkRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogSink.fromBuffer(value)); + ($19.CreateSinkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogSink.fromBuffer(value)); static final _$updateSink = - $grpc.ClientMethod<$0.UpdateSinkRequest, $0.LogSink>( + $grpc.ClientMethod<$19.UpdateSinkRequest, $19.LogSink>( '/google.logging.v2.ConfigServiceV2/UpdateSink', - ($0.UpdateSinkRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogSink.fromBuffer(value)); + ($19.UpdateSinkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogSink.fromBuffer(value)); static final _$deleteSink = - $grpc.ClientMethod<$0.DeleteSinkRequest, $1.Empty>( + $grpc.ClientMethod<$19.DeleteSinkRequest, $1.Empty>( '/google.logging.v2.ConfigServiceV2/DeleteSink', - ($0.DeleteSinkRequest value) => value.writeToBuffer(), + ($19.DeleteSinkRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); + static final _$createLink = + $grpc.ClientMethod<$19.CreateLinkRequest, $0.Operation>( + '/google.logging.v2.ConfigServiceV2/CreateLink', + ($19.CreateLinkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$deleteLink = + $grpc.ClientMethod<$19.DeleteLinkRequest, $0.Operation>( + '/google.logging.v2.ConfigServiceV2/DeleteLink', + ($19.DeleteLinkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); + static final _$listLinks = + $grpc.ClientMethod<$19.ListLinksRequest, $19.ListLinksResponse>( + '/google.logging.v2.ConfigServiceV2/ListLinks', + ($19.ListLinksRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $19.ListLinksResponse.fromBuffer(value)); + static final _$getLink = $grpc.ClientMethod<$19.GetLinkRequest, $19.Link>( + '/google.logging.v2.ConfigServiceV2/GetLink', + ($19.GetLinkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.Link.fromBuffer(value)); static final _$listExclusions = - $grpc.ClientMethod<$0.ListExclusionsRequest, $0.ListExclusionsResponse>( + $grpc.ClientMethod<$19.ListExclusionsRequest, $19.ListExclusionsResponse>( '/google.logging.v2.ConfigServiceV2/ListExclusions', - ($0.ListExclusionsRequest value) => value.writeToBuffer(), + ($19.ListExclusionsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.ListExclusionsResponse.fromBuffer(value)); + $19.ListExclusionsResponse.fromBuffer(value)); static final _$getExclusion = - $grpc.ClientMethod<$0.GetExclusionRequest, $0.LogExclusion>( + $grpc.ClientMethod<$19.GetExclusionRequest, $19.LogExclusion>( '/google.logging.v2.ConfigServiceV2/GetExclusion', - ($0.GetExclusionRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogExclusion.fromBuffer(value)); + ($19.GetExclusionRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogExclusion.fromBuffer(value)); static final _$createExclusion = - $grpc.ClientMethod<$0.CreateExclusionRequest, $0.LogExclusion>( + $grpc.ClientMethod<$19.CreateExclusionRequest, $19.LogExclusion>( '/google.logging.v2.ConfigServiceV2/CreateExclusion', - ($0.CreateExclusionRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogExclusion.fromBuffer(value)); + ($19.CreateExclusionRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogExclusion.fromBuffer(value)); static final _$updateExclusion = - $grpc.ClientMethod<$0.UpdateExclusionRequest, $0.LogExclusion>( + $grpc.ClientMethod<$19.UpdateExclusionRequest, $19.LogExclusion>( '/google.logging.v2.ConfigServiceV2/UpdateExclusion', - ($0.UpdateExclusionRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogExclusion.fromBuffer(value)); + ($19.UpdateExclusionRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.LogExclusion.fromBuffer(value)); static final _$deleteExclusion = - $grpc.ClientMethod<$0.DeleteExclusionRequest, $1.Empty>( + $grpc.ClientMethod<$19.DeleteExclusionRequest, $1.Empty>( '/google.logging.v2.ConfigServiceV2/DeleteExclusion', - ($0.DeleteExclusionRequest value) => value.writeToBuffer(), + ($19.DeleteExclusionRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); static final _$getCmekSettings = - $grpc.ClientMethod<$0.GetCmekSettingsRequest, $0.CmekSettings>( + $grpc.ClientMethod<$19.GetCmekSettingsRequest, $19.CmekSettings>( '/google.logging.v2.ConfigServiceV2/GetCmekSettings', - ($0.GetCmekSettingsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.CmekSettings.fromBuffer(value)); + ($19.GetCmekSettingsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.CmekSettings.fromBuffer(value)); static final _$updateCmekSettings = - $grpc.ClientMethod<$0.UpdateCmekSettingsRequest, $0.CmekSettings>( + $grpc.ClientMethod<$19.UpdateCmekSettingsRequest, $19.CmekSettings>( '/google.logging.v2.ConfigServiceV2/UpdateCmekSettings', - ($0.UpdateCmekSettingsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.CmekSettings.fromBuffer(value)); + ($19.UpdateCmekSettingsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.CmekSettings.fromBuffer(value)); + static final _$getSettings = + $grpc.ClientMethod<$19.GetSettingsRequest, $19.Settings>( + '/google.logging.v2.ConfigServiceV2/GetSettings', + ($19.GetSettingsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.Settings.fromBuffer(value)); + static final _$updateSettings = + $grpc.ClientMethod<$19.UpdateSettingsRequest, $19.Settings>( + '/google.logging.v2.ConfigServiceV2/UpdateSettings', + ($19.UpdateSettingsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $19.Settings.fromBuffer(value)); + static final _$copyLogEntries = + $grpc.ClientMethod<$19.CopyLogEntriesRequest, $0.Operation>( + '/google.logging.v2.ConfigServiceV2/CopyLogEntries', + ($19.CopyLogEntriesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.Operation.fromBuffer(value)); ConfigServiceV2Client($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.ListBucketsResponse> listBuckets( - $0.ListBucketsRequest request, + $grpc.ResponseFuture<$19.ListBucketsResponse> listBuckets( + $19.ListBucketsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listBuckets, request, options: options); } - $grpc.ResponseFuture<$0.LogBucket> getBucket($0.GetBucketRequest request, + $grpc.ResponseFuture<$19.LogBucket> getBucket($19.GetBucketRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getBucket, request, options: options); } - $grpc.ResponseFuture<$0.LogBucket> createBucket( - $0.CreateBucketRequest request, + $grpc.ResponseFuture<$0.Operation> createBucketAsync( + $19.CreateBucketRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$createBucketAsync, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> updateBucketAsync( + $19.UpdateBucketRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$updateBucketAsync, request, options: options); + } + + $grpc.ResponseFuture<$19.LogBucket> createBucket( + $19.CreateBucketRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createBucket, request, options: options); } - $grpc.ResponseFuture<$0.LogBucket> updateBucket( - $0.UpdateBucketRequest request, + $grpc.ResponseFuture<$19.LogBucket> updateBucket( + $19.UpdateBucketRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateBucket, request, options: options); } - $grpc.ResponseFuture<$1.Empty> deleteBucket($0.DeleteBucketRequest request, + $grpc.ResponseFuture<$1.Empty> deleteBucket($19.DeleteBucketRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteBucket, request, options: options); } $grpc.ResponseFuture<$1.Empty> undeleteBucket( - $0.UndeleteBucketRequest request, + $19.UndeleteBucketRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$undeleteBucket, request, options: options); } - $grpc.ResponseFuture<$0.ListViewsResponse> listViews( - $0.ListViewsRequest request, + $grpc.ResponseFuture<$19.ListViewsResponse> listViews( + $19.ListViewsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listViews, request, options: options); } - $grpc.ResponseFuture<$0.LogView> getView($0.GetViewRequest request, + $grpc.ResponseFuture<$19.LogView> getView($19.GetViewRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getView, request, options: options); } - $grpc.ResponseFuture<$0.LogView> createView($0.CreateViewRequest request, + $grpc.ResponseFuture<$19.LogView> createView($19.CreateViewRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createView, request, options: options); } - $grpc.ResponseFuture<$0.LogView> updateView($0.UpdateViewRequest request, + $grpc.ResponseFuture<$19.LogView> updateView($19.UpdateViewRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateView, request, options: options); } - $grpc.ResponseFuture<$1.Empty> deleteView($0.DeleteViewRequest request, + $grpc.ResponseFuture<$1.Empty> deleteView($19.DeleteViewRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteView, request, options: options); } - $grpc.ResponseFuture<$0.ListSinksResponse> listSinks( - $0.ListSinksRequest request, + $grpc.ResponseFuture<$19.ListSinksResponse> listSinks( + $19.ListSinksRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listSinks, request, options: options); } - $grpc.ResponseFuture<$0.LogSink> getSink($0.GetSinkRequest request, + $grpc.ResponseFuture<$19.LogSink> getSink($19.GetSinkRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getSink, request, options: options); } - $grpc.ResponseFuture<$0.LogSink> createSink($0.CreateSinkRequest request, + $grpc.ResponseFuture<$19.LogSink> createSink($19.CreateSinkRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createSink, request, options: options); } - $grpc.ResponseFuture<$0.LogSink> updateSink($0.UpdateSinkRequest request, + $grpc.ResponseFuture<$19.LogSink> updateSink($19.UpdateSinkRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateSink, request, options: options); } - $grpc.ResponseFuture<$1.Empty> deleteSink($0.DeleteSinkRequest request, + $grpc.ResponseFuture<$1.Empty> deleteSink($19.DeleteSinkRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteSink, request, options: options); } - $grpc.ResponseFuture<$0.ListExclusionsResponse> listExclusions( - $0.ListExclusionsRequest request, + $grpc.ResponseFuture<$0.Operation> createLink($19.CreateLinkRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$createLink, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> deleteLink($19.DeleteLinkRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$deleteLink, request, options: options); + } + + $grpc.ResponseFuture<$19.ListLinksResponse> listLinks( + $19.ListLinksRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$listLinks, request, options: options); + } + + $grpc.ResponseFuture<$19.Link> getLink($19.GetLinkRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getLink, request, options: options); + } + + $grpc.ResponseFuture<$19.ListExclusionsResponse> listExclusions( + $19.ListExclusionsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listExclusions, request, options: options); } - $grpc.ResponseFuture<$0.LogExclusion> getExclusion( - $0.GetExclusionRequest request, + $grpc.ResponseFuture<$19.LogExclusion> getExclusion( + $19.GetExclusionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getExclusion, request, options: options); } - $grpc.ResponseFuture<$0.LogExclusion> createExclusion( - $0.CreateExclusionRequest request, + $grpc.ResponseFuture<$19.LogExclusion> createExclusion( + $19.CreateExclusionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createExclusion, request, options: options); } - $grpc.ResponseFuture<$0.LogExclusion> updateExclusion( - $0.UpdateExclusionRequest request, + $grpc.ResponseFuture<$19.LogExclusion> updateExclusion( + $19.UpdateExclusionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateExclusion, request, options: options); } $grpc.ResponseFuture<$1.Empty> deleteExclusion( - $0.DeleteExclusionRequest request, + $19.DeleteExclusionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteExclusion, request, options: options); } - $grpc.ResponseFuture<$0.CmekSettings> getCmekSettings( - $0.GetCmekSettingsRequest request, + $grpc.ResponseFuture<$19.CmekSettings> getCmekSettings( + $19.GetCmekSettingsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getCmekSettings, request, options: options); } - $grpc.ResponseFuture<$0.CmekSettings> updateCmekSettings( - $0.UpdateCmekSettingsRequest request, + $grpc.ResponseFuture<$19.CmekSettings> updateCmekSettings( + $19.UpdateCmekSettingsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateCmekSettings, request, options: options); } + + $grpc.ResponseFuture<$19.Settings> getSettings($19.GetSettingsRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getSettings, request, options: options); + } + + $grpc.ResponseFuture<$19.Settings> updateSettings( + $19.UpdateSettingsRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$updateSettings, request, options: options); + } + + $grpc.ResponseFuture<$0.Operation> copyLogEntries( + $19.CopyLogEntriesRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$copyLogEntries, request, options: options); + } } +@$pb.GrpcServiceName('google.logging.v2.ConfigServiceV2') abstract class ConfigServiceV2ServiceBase extends $grpc.Service { $core.String get $name => 'google.logging.v2.ConfigServiceV2'; ConfigServiceV2ServiceBase() { $addMethod( - $grpc.ServiceMethod<$0.ListBucketsRequest, $0.ListBucketsResponse>( + $grpc.ServiceMethod<$19.ListBucketsRequest, $19.ListBucketsResponse>( 'ListBuckets', listBuckets_Pre, false, false, ($core.List<$core.int> value) => - $0.ListBucketsRequest.fromBuffer(value), - ($0.ListBucketsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetBucketRequest, $0.LogBucket>( + $19.ListBucketsRequest.fromBuffer(value), + ($19.ListBucketsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.GetBucketRequest, $19.LogBucket>( 'GetBucket', getBucket_Pre, false, false, - ($core.List<$core.int> value) => $0.GetBucketRequest.fromBuffer(value), - ($0.LogBucket value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.CreateBucketRequest, $0.LogBucket>( + ($core.List<$core.int> value) => $19.GetBucketRequest.fromBuffer(value), + ($19.LogBucket value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.CreateBucketRequest, $0.Operation>( + 'CreateBucketAsync', + createBucketAsync_Pre, + false, + false, + ($core.List<$core.int> value) => + $19.CreateBucketRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.UpdateBucketRequest, $0.Operation>( + 'UpdateBucketAsync', + updateBucketAsync_Pre, + false, + false, + ($core.List<$core.int> value) => + $19.UpdateBucketRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.CreateBucketRequest, $19.LogBucket>( 'CreateBucket', createBucket_Pre, false, false, ($core.List<$core.int> value) => - $0.CreateBucketRequest.fromBuffer(value), - ($0.LogBucket value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.UpdateBucketRequest, $0.LogBucket>( + $19.CreateBucketRequest.fromBuffer(value), + ($19.LogBucket value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.UpdateBucketRequest, $19.LogBucket>( 'UpdateBucket', updateBucket_Pre, false, false, ($core.List<$core.int> value) => - $0.UpdateBucketRequest.fromBuffer(value), - ($0.LogBucket value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.DeleteBucketRequest, $1.Empty>( + $19.UpdateBucketRequest.fromBuffer(value), + ($19.LogBucket value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.DeleteBucketRequest, $1.Empty>( 'DeleteBucket', deleteBucket_Pre, false, false, ($core.List<$core.int> value) => - $0.DeleteBucketRequest.fromBuffer(value), + $19.DeleteBucketRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.UndeleteBucketRequest, $1.Empty>( + $addMethod($grpc.ServiceMethod<$19.UndeleteBucketRequest, $1.Empty>( 'UndeleteBucket', undeleteBucket_Pre, false, false, ($core.List<$core.int> value) => - $0.UndeleteBucketRequest.fromBuffer(value), + $19.UndeleteBucketRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ListViewsRequest, $0.ListViewsResponse>( + $addMethod($grpc.ServiceMethod<$19.ListViewsRequest, $19.ListViewsResponse>( 'ListViews', listViews_Pre, false, false, - ($core.List<$core.int> value) => $0.ListViewsRequest.fromBuffer(value), - ($0.ListViewsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetViewRequest, $0.LogView>( + ($core.List<$core.int> value) => $19.ListViewsRequest.fromBuffer(value), + ($19.ListViewsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.GetViewRequest, $19.LogView>( 'GetView', getView_Pre, false, false, - ($core.List<$core.int> value) => $0.GetViewRequest.fromBuffer(value), - ($0.LogView value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.CreateViewRequest, $0.LogView>( + ($core.List<$core.int> value) => $19.GetViewRequest.fromBuffer(value), + ($19.LogView value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.CreateViewRequest, $19.LogView>( 'CreateView', createView_Pre, false, false, - ($core.List<$core.int> value) => $0.CreateViewRequest.fromBuffer(value), - ($0.LogView value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.UpdateViewRequest, $0.LogView>( + ($core.List<$core.int> value) => + $19.CreateViewRequest.fromBuffer(value), + ($19.LogView value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.UpdateViewRequest, $19.LogView>( 'UpdateView', updateView_Pre, false, false, - ($core.List<$core.int> value) => $0.UpdateViewRequest.fromBuffer(value), - ($0.LogView value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.DeleteViewRequest, $1.Empty>( + ($core.List<$core.int> value) => + $19.UpdateViewRequest.fromBuffer(value), + ($19.LogView value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.DeleteViewRequest, $1.Empty>( 'DeleteView', deleteView_Pre, false, false, - ($core.List<$core.int> value) => $0.DeleteViewRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $19.DeleteViewRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ListSinksRequest, $0.ListSinksResponse>( + $addMethod($grpc.ServiceMethod<$19.ListSinksRequest, $19.ListSinksResponse>( 'ListSinks', listSinks_Pre, false, false, - ($core.List<$core.int> value) => $0.ListSinksRequest.fromBuffer(value), - ($0.ListSinksResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetSinkRequest, $0.LogSink>( + ($core.List<$core.int> value) => $19.ListSinksRequest.fromBuffer(value), + ($19.ListSinksResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.GetSinkRequest, $19.LogSink>( 'GetSink', getSink_Pre, false, false, - ($core.List<$core.int> value) => $0.GetSinkRequest.fromBuffer(value), - ($0.LogSink value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.CreateSinkRequest, $0.LogSink>( + ($core.List<$core.int> value) => $19.GetSinkRequest.fromBuffer(value), + ($19.LogSink value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.CreateSinkRequest, $19.LogSink>( 'CreateSink', createSink_Pre, false, false, - ($core.List<$core.int> value) => $0.CreateSinkRequest.fromBuffer(value), - ($0.LogSink value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.UpdateSinkRequest, $0.LogSink>( + ($core.List<$core.int> value) => + $19.CreateSinkRequest.fromBuffer(value), + ($19.LogSink value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.UpdateSinkRequest, $19.LogSink>( 'UpdateSink', updateSink_Pre, false, false, - ($core.List<$core.int> value) => $0.UpdateSinkRequest.fromBuffer(value), - ($0.LogSink value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.DeleteSinkRequest, $1.Empty>( + ($core.List<$core.int> value) => + $19.UpdateSinkRequest.fromBuffer(value), + ($19.LogSink value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.DeleteSinkRequest, $1.Empty>( 'DeleteSink', deleteSink_Pre, false, false, - ($core.List<$core.int> value) => $0.DeleteSinkRequest.fromBuffer(value), + ($core.List<$core.int> value) => + $19.DeleteSinkRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ListExclusionsRequest, - $0.ListExclusionsResponse>( - 'ListExclusions', - listExclusions_Pre, + $addMethod($grpc.ServiceMethod<$19.CreateLinkRequest, $0.Operation>( + 'CreateLink', + createLink_Pre, false, false, ($core.List<$core.int> value) => - $0.ListExclusionsRequest.fromBuffer(value), - ($0.ListExclusionsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetExclusionRequest, $0.LogExclusion>( - 'GetExclusion', - getExclusion_Pre, + $19.CreateLinkRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.DeleteLinkRequest, $0.Operation>( + 'DeleteLink', + deleteLink_Pre, false, false, ($core.List<$core.int> value) => - $0.GetExclusionRequest.fromBuffer(value), - ($0.LogExclusion value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.CreateExclusionRequest, $0.LogExclusion>( - 'CreateExclusion', - createExclusion_Pre, + $19.DeleteLinkRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.ListLinksRequest, $19.ListLinksResponse>( + 'ListLinks', + listLinks_Pre, + false, + false, + ($core.List<$core.int> value) => $19.ListLinksRequest.fromBuffer(value), + ($19.ListLinksResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.GetLinkRequest, $19.Link>( + 'GetLink', + getLink_Pre, + false, + false, + ($core.List<$core.int> value) => $19.GetLinkRequest.fromBuffer(value), + ($19.Link value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.ListExclusionsRequest, + $19.ListExclusionsResponse>( + 'ListExclusions', + listExclusions_Pre, false, false, ($core.List<$core.int> value) => - $0.CreateExclusionRequest.fromBuffer(value), - ($0.LogExclusion value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.UpdateExclusionRequest, $0.LogExclusion>( - 'UpdateExclusion', - updateExclusion_Pre, + $19.ListExclusionsRequest.fromBuffer(value), + ($19.ListExclusionsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.GetExclusionRequest, $19.LogExclusion>( + 'GetExclusion', + getExclusion_Pre, false, false, ($core.List<$core.int> value) => - $0.UpdateExclusionRequest.fromBuffer(value), - ($0.LogExclusion value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.DeleteExclusionRequest, $1.Empty>( + $19.GetExclusionRequest.fromBuffer(value), + ($19.LogExclusion value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$19.CreateExclusionRequest, $19.LogExclusion>( + 'CreateExclusion', + createExclusion_Pre, + false, + false, + ($core.List<$core.int> value) => + $19.CreateExclusionRequest.fromBuffer(value), + ($19.LogExclusion value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$19.UpdateExclusionRequest, $19.LogExclusion>( + 'UpdateExclusion', + updateExclusion_Pre, + false, + false, + ($core.List<$core.int> value) => + $19.UpdateExclusionRequest.fromBuffer(value), + ($19.LogExclusion value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.DeleteExclusionRequest, $1.Empty>( 'DeleteExclusion', deleteExclusion_Pre, false, false, ($core.List<$core.int> value) => - $0.DeleteExclusionRequest.fromBuffer(value), + $19.DeleteExclusionRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetCmekSettingsRequest, $0.CmekSettings>( - 'GetCmekSettings', - getCmekSettings_Pre, - false, - false, - ($core.List<$core.int> value) => - $0.GetCmekSettingsRequest.fromBuffer(value), - ($0.CmekSettings value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.UpdateCmekSettingsRequest, $0.CmekSettings>( + $grpc.ServiceMethod<$19.GetCmekSettingsRequest, $19.CmekSettings>( + 'GetCmekSettings', + getCmekSettings_Pre, + false, + false, + ($core.List<$core.int> value) => + $19.GetCmekSettingsRequest.fromBuffer(value), + ($19.CmekSettings value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$19.UpdateCmekSettingsRequest, $19.CmekSettings>( 'UpdateCmekSettings', updateCmekSettings_Pre, false, false, ($core.List<$core.int> value) => - $0.UpdateCmekSettingsRequest.fromBuffer(value), - ($0.CmekSettings value) => value.writeToBuffer())); + $19.UpdateCmekSettingsRequest.fromBuffer(value), + ($19.CmekSettings value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.GetSettingsRequest, $19.Settings>( + 'GetSettings', + getSettings_Pre, + false, + false, + ($core.List<$core.int> value) => + $19.GetSettingsRequest.fromBuffer(value), + ($19.Settings value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.UpdateSettingsRequest, $19.Settings>( + 'UpdateSettings', + updateSettings_Pre, + false, + false, + ($core.List<$core.int> value) => + $19.UpdateSettingsRequest.fromBuffer(value), + ($19.Settings value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$19.CopyLogEntriesRequest, $0.Operation>( + 'CopyLogEntries', + copyLogEntries_Pre, + false, + false, + ($core.List<$core.int> value) => + $19.CopyLogEntriesRequest.fromBuffer(value), + ($0.Operation value) => value.writeToBuffer())); } - $async.Future<$0.ListBucketsResponse> listBuckets_Pre($grpc.ServiceCall call, - $async.Future<$0.ListBucketsRequest> request) async { + $async.Future<$19.ListBucketsResponse> listBuckets_Pre($grpc.ServiceCall call, + $async.Future<$19.ListBucketsRequest> request) async { return listBuckets(call, await request); } - $async.Future<$0.LogBucket> getBucket_Pre($grpc.ServiceCall call, - $async.Future<$0.GetBucketRequest> request) async { + $async.Future<$19.LogBucket> getBucket_Pre($grpc.ServiceCall call, + $async.Future<$19.GetBucketRequest> request) async { return getBucket(call, await request); } - $async.Future<$0.LogBucket> createBucket_Pre($grpc.ServiceCall call, - $async.Future<$0.CreateBucketRequest> request) async { + $async.Future<$0.Operation> createBucketAsync_Pre($grpc.ServiceCall call, + $async.Future<$19.CreateBucketRequest> request) async { + return createBucketAsync(call, await request); + } + + $async.Future<$0.Operation> updateBucketAsync_Pre($grpc.ServiceCall call, + $async.Future<$19.UpdateBucketRequest> request) async { + return updateBucketAsync(call, await request); + } + + $async.Future<$19.LogBucket> createBucket_Pre($grpc.ServiceCall call, + $async.Future<$19.CreateBucketRequest> request) async { return createBucket(call, await request); } - $async.Future<$0.LogBucket> updateBucket_Pre($grpc.ServiceCall call, - $async.Future<$0.UpdateBucketRequest> request) async { + $async.Future<$19.LogBucket> updateBucket_Pre($grpc.ServiceCall call, + $async.Future<$19.UpdateBucketRequest> request) async { return updateBucket(call, await request); } $async.Future<$1.Empty> deleteBucket_Pre($grpc.ServiceCall call, - $async.Future<$0.DeleteBucketRequest> request) async { + $async.Future<$19.DeleteBucketRequest> request) async { return deleteBucket(call, await request); } $async.Future<$1.Empty> undeleteBucket_Pre($grpc.ServiceCall call, - $async.Future<$0.UndeleteBucketRequest> request) async { + $async.Future<$19.UndeleteBucketRequest> request) async { return undeleteBucket(call, await request); } - $async.Future<$0.ListViewsResponse> listViews_Pre($grpc.ServiceCall call, - $async.Future<$0.ListViewsRequest> request) async { + $async.Future<$19.ListViewsResponse> listViews_Pre($grpc.ServiceCall call, + $async.Future<$19.ListViewsRequest> request) async { return listViews(call, await request); } - $async.Future<$0.LogView> getView_Pre( - $grpc.ServiceCall call, $async.Future<$0.GetViewRequest> request) async { + $async.Future<$19.LogView> getView_Pre( + $grpc.ServiceCall call, $async.Future<$19.GetViewRequest> request) async { return getView(call, await request); } - $async.Future<$0.LogView> createView_Pre($grpc.ServiceCall call, - $async.Future<$0.CreateViewRequest> request) async { + $async.Future<$19.LogView> createView_Pre($grpc.ServiceCall call, + $async.Future<$19.CreateViewRequest> request) async { return createView(call, await request); } - $async.Future<$0.LogView> updateView_Pre($grpc.ServiceCall call, - $async.Future<$0.UpdateViewRequest> request) async { + $async.Future<$19.LogView> updateView_Pre($grpc.ServiceCall call, + $async.Future<$19.UpdateViewRequest> request) async { return updateView(call, await request); } $async.Future<$1.Empty> deleteView_Pre($grpc.ServiceCall call, - $async.Future<$0.DeleteViewRequest> request) async { + $async.Future<$19.DeleteViewRequest> request) async { return deleteView(call, await request); } - $async.Future<$0.ListSinksResponse> listSinks_Pre($grpc.ServiceCall call, - $async.Future<$0.ListSinksRequest> request) async { + $async.Future<$19.ListSinksResponse> listSinks_Pre($grpc.ServiceCall call, + $async.Future<$19.ListSinksRequest> request) async { return listSinks(call, await request); } - $async.Future<$0.LogSink> getSink_Pre( - $grpc.ServiceCall call, $async.Future<$0.GetSinkRequest> request) async { + $async.Future<$19.LogSink> getSink_Pre( + $grpc.ServiceCall call, $async.Future<$19.GetSinkRequest> request) async { return getSink(call, await request); } - $async.Future<$0.LogSink> createSink_Pre($grpc.ServiceCall call, - $async.Future<$0.CreateSinkRequest> request) async { + $async.Future<$19.LogSink> createSink_Pre($grpc.ServiceCall call, + $async.Future<$19.CreateSinkRequest> request) async { return createSink(call, await request); } - $async.Future<$0.LogSink> updateSink_Pre($grpc.ServiceCall call, - $async.Future<$0.UpdateSinkRequest> request) async { + $async.Future<$19.LogSink> updateSink_Pre($grpc.ServiceCall call, + $async.Future<$19.UpdateSinkRequest> request) async { return updateSink(call, await request); } $async.Future<$1.Empty> deleteSink_Pre($grpc.ServiceCall call, - $async.Future<$0.DeleteSinkRequest> request) async { + $async.Future<$19.DeleteSinkRequest> request) async { return deleteSink(call, await request); } - $async.Future<$0.ListExclusionsResponse> listExclusions_Pre( + $async.Future<$0.Operation> createLink_Pre($grpc.ServiceCall call, + $async.Future<$19.CreateLinkRequest> request) async { + return createLink(call, await request); + } + + $async.Future<$0.Operation> deleteLink_Pre($grpc.ServiceCall call, + $async.Future<$19.DeleteLinkRequest> request) async { + return deleteLink(call, await request); + } + + $async.Future<$19.ListLinksResponse> listLinks_Pre($grpc.ServiceCall call, + $async.Future<$19.ListLinksRequest> request) async { + return listLinks(call, await request); + } + + $async.Future<$19.Link> getLink_Pre( + $grpc.ServiceCall call, $async.Future<$19.GetLinkRequest> request) async { + return getLink(call, await request); + } + + $async.Future<$19.ListExclusionsResponse> listExclusions_Pre( $grpc.ServiceCall call, - $async.Future<$0.ListExclusionsRequest> request) async { + $async.Future<$19.ListExclusionsRequest> request) async { return listExclusions(call, await request); } - $async.Future<$0.LogExclusion> getExclusion_Pre($grpc.ServiceCall call, - $async.Future<$0.GetExclusionRequest> request) async { + $async.Future<$19.LogExclusion> getExclusion_Pre($grpc.ServiceCall call, + $async.Future<$19.GetExclusionRequest> request) async { return getExclusion(call, await request); } - $async.Future<$0.LogExclusion> createExclusion_Pre($grpc.ServiceCall call, - $async.Future<$0.CreateExclusionRequest> request) async { + $async.Future<$19.LogExclusion> createExclusion_Pre($grpc.ServiceCall call, + $async.Future<$19.CreateExclusionRequest> request) async { return createExclusion(call, await request); } - $async.Future<$0.LogExclusion> updateExclusion_Pre($grpc.ServiceCall call, - $async.Future<$0.UpdateExclusionRequest> request) async { + $async.Future<$19.LogExclusion> updateExclusion_Pre($grpc.ServiceCall call, + $async.Future<$19.UpdateExclusionRequest> request) async { return updateExclusion(call, await request); } $async.Future<$1.Empty> deleteExclusion_Pre($grpc.ServiceCall call, - $async.Future<$0.DeleteExclusionRequest> request) async { + $async.Future<$19.DeleteExclusionRequest> request) async { return deleteExclusion(call, await request); } - $async.Future<$0.CmekSettings> getCmekSettings_Pre($grpc.ServiceCall call, - $async.Future<$0.GetCmekSettingsRequest> request) async { + $async.Future<$19.CmekSettings> getCmekSettings_Pre($grpc.ServiceCall call, + $async.Future<$19.GetCmekSettingsRequest> request) async { return getCmekSettings(call, await request); } - $async.Future<$0.CmekSettings> updateCmekSettings_Pre($grpc.ServiceCall call, - $async.Future<$0.UpdateCmekSettingsRequest> request) async { + $async.Future<$19.CmekSettings> updateCmekSettings_Pre($grpc.ServiceCall call, + $async.Future<$19.UpdateCmekSettingsRequest> request) async { return updateCmekSettings(call, await request); } - $async.Future<$0.ListBucketsResponse> listBuckets( - $grpc.ServiceCall call, $0.ListBucketsRequest request); - $async.Future<$0.LogBucket> getBucket( - $grpc.ServiceCall call, $0.GetBucketRequest request); - $async.Future<$0.LogBucket> createBucket( - $grpc.ServiceCall call, $0.CreateBucketRequest request); - $async.Future<$0.LogBucket> updateBucket( - $grpc.ServiceCall call, $0.UpdateBucketRequest request); + $async.Future<$19.Settings> getSettings_Pre($grpc.ServiceCall call, + $async.Future<$19.GetSettingsRequest> request) async { + return getSettings(call, await request); + } + + $async.Future<$19.Settings> updateSettings_Pre($grpc.ServiceCall call, + $async.Future<$19.UpdateSettingsRequest> request) async { + return updateSettings(call, await request); + } + + $async.Future<$0.Operation> copyLogEntries_Pre($grpc.ServiceCall call, + $async.Future<$19.CopyLogEntriesRequest> request) async { + return copyLogEntries(call, await request); + } + + $async.Future<$19.ListBucketsResponse> listBuckets( + $grpc.ServiceCall call, $19.ListBucketsRequest request); + $async.Future<$19.LogBucket> getBucket( + $grpc.ServiceCall call, $19.GetBucketRequest request); + $async.Future<$0.Operation> createBucketAsync( + $grpc.ServiceCall call, $19.CreateBucketRequest request); + $async.Future<$0.Operation> updateBucketAsync( + $grpc.ServiceCall call, $19.UpdateBucketRequest request); + $async.Future<$19.LogBucket> createBucket( + $grpc.ServiceCall call, $19.CreateBucketRequest request); + $async.Future<$19.LogBucket> updateBucket( + $grpc.ServiceCall call, $19.UpdateBucketRequest request); $async.Future<$1.Empty> deleteBucket( - $grpc.ServiceCall call, $0.DeleteBucketRequest request); + $grpc.ServiceCall call, $19.DeleteBucketRequest request); $async.Future<$1.Empty> undeleteBucket( - $grpc.ServiceCall call, $0.UndeleteBucketRequest request); - $async.Future<$0.ListViewsResponse> listViews( - $grpc.ServiceCall call, $0.ListViewsRequest request); - $async.Future<$0.LogView> getView( - $grpc.ServiceCall call, $0.GetViewRequest request); - $async.Future<$0.LogView> createView( - $grpc.ServiceCall call, $0.CreateViewRequest request); - $async.Future<$0.LogView> updateView( - $grpc.ServiceCall call, $0.UpdateViewRequest request); + $grpc.ServiceCall call, $19.UndeleteBucketRequest request); + $async.Future<$19.ListViewsResponse> listViews( + $grpc.ServiceCall call, $19.ListViewsRequest request); + $async.Future<$19.LogView> getView( + $grpc.ServiceCall call, $19.GetViewRequest request); + $async.Future<$19.LogView> createView( + $grpc.ServiceCall call, $19.CreateViewRequest request); + $async.Future<$19.LogView> updateView( + $grpc.ServiceCall call, $19.UpdateViewRequest request); $async.Future<$1.Empty> deleteView( - $grpc.ServiceCall call, $0.DeleteViewRequest request); - $async.Future<$0.ListSinksResponse> listSinks( - $grpc.ServiceCall call, $0.ListSinksRequest request); - $async.Future<$0.LogSink> getSink( - $grpc.ServiceCall call, $0.GetSinkRequest request); - $async.Future<$0.LogSink> createSink( - $grpc.ServiceCall call, $0.CreateSinkRequest request); - $async.Future<$0.LogSink> updateSink( - $grpc.ServiceCall call, $0.UpdateSinkRequest request); + $grpc.ServiceCall call, $19.DeleteViewRequest request); + $async.Future<$19.ListSinksResponse> listSinks( + $grpc.ServiceCall call, $19.ListSinksRequest request); + $async.Future<$19.LogSink> getSink( + $grpc.ServiceCall call, $19.GetSinkRequest request); + $async.Future<$19.LogSink> createSink( + $grpc.ServiceCall call, $19.CreateSinkRequest request); + $async.Future<$19.LogSink> updateSink( + $grpc.ServiceCall call, $19.UpdateSinkRequest request); $async.Future<$1.Empty> deleteSink( - $grpc.ServiceCall call, $0.DeleteSinkRequest request); - $async.Future<$0.ListExclusionsResponse> listExclusions( - $grpc.ServiceCall call, $0.ListExclusionsRequest request); - $async.Future<$0.LogExclusion> getExclusion( - $grpc.ServiceCall call, $0.GetExclusionRequest request); - $async.Future<$0.LogExclusion> createExclusion( - $grpc.ServiceCall call, $0.CreateExclusionRequest request); - $async.Future<$0.LogExclusion> updateExclusion( - $grpc.ServiceCall call, $0.UpdateExclusionRequest request); + $grpc.ServiceCall call, $19.DeleteSinkRequest request); + $async.Future<$0.Operation> createLink( + $grpc.ServiceCall call, $19.CreateLinkRequest request); + $async.Future<$0.Operation> deleteLink( + $grpc.ServiceCall call, $19.DeleteLinkRequest request); + $async.Future<$19.ListLinksResponse> listLinks( + $grpc.ServiceCall call, $19.ListLinksRequest request); + $async.Future<$19.Link> getLink( + $grpc.ServiceCall call, $19.GetLinkRequest request); + $async.Future<$19.ListExclusionsResponse> listExclusions( + $grpc.ServiceCall call, $19.ListExclusionsRequest request); + $async.Future<$19.LogExclusion> getExclusion( + $grpc.ServiceCall call, $19.GetExclusionRequest request); + $async.Future<$19.LogExclusion> createExclusion( + $grpc.ServiceCall call, $19.CreateExclusionRequest request); + $async.Future<$19.LogExclusion> updateExclusion( + $grpc.ServiceCall call, $19.UpdateExclusionRequest request); $async.Future<$1.Empty> deleteExclusion( - $grpc.ServiceCall call, $0.DeleteExclusionRequest request); - $async.Future<$0.CmekSettings> getCmekSettings( - $grpc.ServiceCall call, $0.GetCmekSettingsRequest request); - $async.Future<$0.CmekSettings> updateCmekSettings( - $grpc.ServiceCall call, $0.UpdateCmekSettingsRequest request); + $grpc.ServiceCall call, $19.DeleteExclusionRequest request); + $async.Future<$19.CmekSettings> getCmekSettings( + $grpc.ServiceCall call, $19.GetCmekSettingsRequest request); + $async.Future<$19.CmekSettings> updateCmekSettings( + $grpc.ServiceCall call, $19.UpdateCmekSettingsRequest request); + $async.Future<$19.Settings> getSettings( + $grpc.ServiceCall call, $19.GetSettingsRequest request); + $async.Future<$19.Settings> updateSettings( + $grpc.ServiceCall call, $19.UpdateSettingsRequest request); + $async.Future<$0.Operation> copyLogEntries( + $grpc.ServiceCall call, $19.CopyLogEntriesRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbjson.dart index aad19aa1..10915848 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_config.pbjson.dart @@ -1,14 +1,40 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging_config.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 operationStateDescriptor instead') +const OperationState$json = { + '1': 'OperationState', + '2': [ + {'1': 'OPERATION_STATE_UNSPECIFIED', '2': 0}, + {'1': 'OPERATION_STATE_SCHEDULED', '2': 1}, + {'1': 'OPERATION_STATE_WAITING_FOR_PERMISSIONS', '2': 2}, + {'1': 'OPERATION_STATE_RUNNING', '2': 3}, + {'1': 'OPERATION_STATE_SUCCEEDED', '2': 4}, + {'1': 'OPERATION_STATE_FAILED', '2': 5}, + {'1': 'OPERATION_STATE_CANCELLED', '2': 6}, + ], +}; + +/// Descriptor for `OperationState`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List operationStateDescriptor = $convert.base64Decode( + 'Cg5PcGVyYXRpb25TdGF0ZRIfChtPUEVSQVRJT05fU1RBVEVfVU5TUEVDSUZJRUQQABIdChlPUE' + 'VSQVRJT05fU1RBVEVfU0NIRURVTEVEEAESKwonT1BFUkFUSU9OX1NUQVRFX1dBSVRJTkdfRk9S' + 'X1BFUk1JU1NJT05TEAISGwoXT1BFUkFUSU9OX1NUQVRFX1JVTk5JTkcQAxIdChlPUEVSQVRJT0' + '5fU1RBVEVfU1VDQ0VFREVEEAQSGgoWT1BFUkFUSU9OX1NUQVRFX0ZBSUxFRBAFEh0KGU9QRVJB' + 'VElPTl9TVEFURV9DQU5DRUxMRUQQBg=='); + @$core.Deprecated('Use lifecycleStateDescriptor instead') const LifecycleState$json = { '1': 'LifecycleState', @@ -16,17 +42,71 @@ const LifecycleState$json = { {'1': 'LIFECYCLE_STATE_UNSPECIFIED', '2': 0}, {'1': 'ACTIVE', '2': 1}, {'1': 'DELETE_REQUESTED', '2': 2}, + {'1': 'UPDATING', '2': 3}, + {'1': 'CREATING', '2': 4}, + {'1': 'FAILED', '2': 5}, ], }; /// Descriptor for `LifecycleState`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List lifecycleStateDescriptor = $convert.base64Decode( - 'Cg5MaWZlY3ljbGVTdGF0ZRIfChtMSUZFQ1lDTEVfU1RBVEVfVU5TUEVDSUZJRUQQABIKCgZBQ1RJVkUQARIUChBERUxFVEVfUkVRVUVTVEVEEAI='); + 'Cg5MaWZlY3ljbGVTdGF0ZRIfChtMSUZFQ1lDTEVfU1RBVEVfVU5TUEVDSUZJRUQQABIKCgZBQ1' + 'RJVkUQARIUChBERUxFVEVfUkVRVUVTVEVEEAISDAoIVVBEQVRJTkcQAxIMCghDUkVBVElORxAE' + 'EgoKBkZBSUxFRBAF'); + +@$core.Deprecated('Use indexTypeDescriptor instead') +const IndexType$json = { + '1': 'IndexType', + '2': [ + {'1': 'INDEX_TYPE_UNSPECIFIED', '2': 0}, + {'1': 'INDEX_TYPE_STRING', '2': 1}, + {'1': 'INDEX_TYPE_INTEGER', '2': 2}, + ], +}; + +/// Descriptor for `IndexType`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List indexTypeDescriptor = $convert.base64Decode( + 'CglJbmRleFR5cGUSGgoWSU5ERVhfVFlQRV9VTlNQRUNJRklFRBAAEhUKEUlOREVYX1RZUEVfU1' + 'RSSU5HEAESFgoSSU5ERVhfVFlQRV9JTlRFR0VSEAI='); + +@$core.Deprecated('Use indexConfigDescriptor instead') +const IndexConfig$json = { + '1': 'IndexConfig', + '2': [ + {'1': 'field_path', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'fieldPath'}, + { + '1': 'type', + '3': 2, + '4': 1, + '5': 14, + '6': '.google.logging.v2.IndexType', + '8': {}, + '10': 'type' + }, + { + '1': 'create_time', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'createTime' + }, + ], +}; + +/// Descriptor for `IndexConfig`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List indexConfigDescriptor = $convert.base64Decode( + 'CgtJbmRleENvbmZpZxIiCgpmaWVsZF9wYXRoGAEgASgJQgPgQQJSCWZpZWxkUGF0aBI1CgR0eX' + 'BlGAIgASgOMhwuZ29vZ2xlLmxvZ2dpbmcudjIuSW5kZXhUeXBlQgPgQQJSBHR5cGUSQAoLY3Jl' + 'YXRlX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCmNyZWF0ZV' + 'RpbWU='); + @$core.Deprecated('Use logBucketDescriptor instead') const LogBucket$json = { '1': 'LogBucket', '2': [ - {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, {'1': 'description', '3': 3, '4': 1, '5': 9, '10': 'description'}, { '1': 'create_time', @@ -57,13 +137,59 @@ const LogBucket$json = { '8': {}, '10': 'lifecycleState' }, + { + '1': 'analytics_enabled', + '3': 14, + '4': 1, + '5': 8, + '10': 'analyticsEnabled' + }, + { + '1': 'restricted_fields', + '3': 15, + '4': 3, + '5': 9, + '10': 'restrictedFields' + }, + { + '1': 'index_configs', + '3': 17, + '4': 3, + '5': 11, + '6': '.google.logging.v2.IndexConfig', + '10': 'indexConfigs' + }, + { + '1': 'cmek_settings', + '3': 19, + '4': 1, + '5': 11, + '6': '.google.logging.v2.CmekSettings', + '10': 'cmekSettings' + }, ], '7': {}, }; /// Descriptor for `LogBucket`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logBucketDescriptor = $convert.base64Decode( - 'CglMb2dCdWNrZXQSEgoEbmFtZRgBIAEoCVIEbmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRpb24SQAoLY3JlYXRlX3RpbWUYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCmNyZWF0ZVRpbWUSQAoLdXBkYXRlX3RpbWUYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCnVwZGF0ZVRpbWUSJQoOcmV0ZW50aW9uX2RheXMYCyABKAVSDXJldGVudGlvbkRheXMSFgoGbG9ja2VkGAkgASgIUgZsb2NrZWQSTwoPbGlmZWN5Y2xlX3N0YXRlGAwgASgOMiEuZ29vZ2xlLmxvZ2dpbmcudjIuTGlmZWN5Y2xlU3RhdGVCA+BBA1IObGlmZWN5Y2xlU3RhdGU6pQLqQaECCiBsb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ0J1Y2tldBI4cHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L2J1Y2tldHMve2J1Y2tldH0SQm9yZ2FuaXphdGlvbnMve29yZ2FuaXphdGlvbn0vbG9jYXRpb25zL3tsb2NhdGlvbn0vYnVja2V0cy97YnVja2V0fRI2Zm9sZGVycy97Zm9sZGVyfS9sb2NhdGlvbnMve2xvY2F0aW9ufS9idWNrZXRzL3tidWNrZXR9EkdiaWxsaW5nQWNjb3VudHMve2JpbGxpbmdfYWNjb3VudH0vbG9jYXRpb25zL3tsb2NhdGlvbn0vYnVja2V0cy97YnVja2V0fQ=='); + 'CglMb2dCdWNrZXQSFwoEbmFtZRgBIAEoCUID4EEDUgRuYW1lEiAKC2Rlc2NyaXB0aW9uGAMgAS' + 'gJUgtkZXNjcmlwdGlvbhJACgtjcmVhdGVfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U' + 'aW1lc3RhbXBCA+BBA1IKY3JlYXRlVGltZRJACgt1cGRhdGVfdGltZRgFIAEoCzIaLmdvb2dsZS' + '5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBA1IKdXBkYXRlVGltZRIlCg5yZXRlbnRpb25fZGF5cxgL' + 'IAEoBVINcmV0ZW50aW9uRGF5cxIWCgZsb2NrZWQYCSABKAhSBmxvY2tlZBJPCg9saWZlY3ljbG' + 'Vfc3RhdGUYDCABKA4yIS5nb29nbGUubG9nZ2luZy52Mi5MaWZlY3ljbGVTdGF0ZUID4EEDUg5s' + 'aWZlY3ljbGVTdGF0ZRIrChFhbmFseXRpY3NfZW5hYmxlZBgOIAEoCFIQYW5hbHl0aWNzRW5hYm' + 'xlZBIrChFyZXN0cmljdGVkX2ZpZWxkcxgPIAMoCVIQcmVzdHJpY3RlZEZpZWxkcxJDCg1pbmRl' + 'eF9jb25maWdzGBEgAygLMh4uZ29vZ2xlLmxvZ2dpbmcudjIuSW5kZXhDb25maWdSDGluZGV4Q2' + '9uZmlncxJECg1jbWVrX3NldHRpbmdzGBMgASgLMh8uZ29vZ2xlLmxvZ2dpbmcudjIuQ21la1Nl' + 'dHRpbmdzUgxjbWVrU2V0dGluZ3M6pQLqQaECCiBsb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ0' + 'J1Y2tldBI4cHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L2J1Y2tldHMv' + 'e2J1Y2tldH0SQm9yZ2FuaXphdGlvbnMve29yZ2FuaXphdGlvbn0vbG9jYXRpb25zL3tsb2NhdG' + 'lvbn0vYnVja2V0cy97YnVja2V0fRI2Zm9sZGVycy97Zm9sZGVyfS9sb2NhdGlvbnMve2xvY2F0' + 'aW9ufS9idWNrZXRzL3tidWNrZXR9EkdiaWxsaW5nQWNjb3VudHMve2JpbGxpbmdfYWNjb3VudH' + '0vbG9jYXRpb25zL3tsb2NhdGlvbn0vYnVja2V0cy97YnVja2V0fQ=='); + @$core.Deprecated('Use logViewDescriptor instead') const LogView$json = { '1': 'LogView', @@ -95,7 +221,18 @@ const LogView$json = { /// Descriptor for `LogView`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logViewDescriptor = $convert.base64Decode( - 'CgdMb2dWaWV3EhIKBG5hbWUYASABKAlSBG5hbWUSIAoLZGVzY3JpcHRpb24YAyABKAlSC2Rlc2NyaXB0aW9uEkAKC2NyZWF0ZV90aW1lGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDUgpjcmVhdGVUaW1lEkAKC3VwZGF0ZV90aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDUgp1cGRhdGVUaW1lEhYKBmZpbHRlchgHIAEoCVIGZmlsdGVyOtcC6kHTAgoebG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dWaWV3EkVwcm9qZWN0cy97cHJvamVjdH0vbG9jYXRpb25zL3tsb2NhdGlvbn0vYnVja2V0cy97YnVja2V0fS92aWV3cy97dmlld30ST29yZ2FuaXphdGlvbnMve29yZ2FuaXphdGlvbn0vbG9jYXRpb25zL3tsb2NhdGlvbn0vYnVja2V0cy97YnVja2V0fS92aWV3cy97dmlld30SQ2ZvbGRlcnMve2ZvbGRlcn0vbG9jYXRpb25zL3tsb2NhdGlvbn0vYnVja2V0cy97YnVja2V0fS92aWV3cy97dmlld30SVGJpbGxpbmdBY2NvdW50cy97YmlsbGluZ19hY2NvdW50fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9idWNrZXRzL3tidWNrZXR9L3ZpZXdzL3t2aWV3fQ=='); + 'CgdMb2dWaWV3EhIKBG5hbWUYASABKAlSBG5hbWUSIAoLZGVzY3JpcHRpb24YAyABKAlSC2Rlc2' + 'NyaXB0aW9uEkAKC2NyZWF0ZV90aW1lGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt' + 'cEID4EEDUgpjcmVhdGVUaW1lEkAKC3VwZGF0ZV90aW1lGAUgASgLMhouZ29vZ2xlLnByb3RvYn' + 'VmLlRpbWVzdGFtcEID4EEDUgp1cGRhdGVUaW1lEhYKBmZpbHRlchgHIAEoCVIGZmlsdGVyOtcC' + '6kHTAgoebG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dWaWV3EkVwcm9qZWN0cy97cHJvamVjdH' + '0vbG9jYXRpb25zL3tsb2NhdGlvbn0vYnVja2V0cy97YnVja2V0fS92aWV3cy97dmlld30ST29y' + 'Z2FuaXphdGlvbnMve29yZ2FuaXphdGlvbn0vbG9jYXRpb25zL3tsb2NhdGlvbn0vYnVja2V0cy' + '97YnVja2V0fS92aWV3cy97dmlld30SQ2ZvbGRlcnMve2ZvbGRlcn0vbG9jYXRpb25zL3tsb2Nh' + 'dGlvbn0vYnVja2V0cy97YnVja2V0fS92aWV3cy97dmlld30SVGJpbGxpbmdBY2NvdW50cy97Ym' + 'lsbGluZ19hY2NvdW50fS9sb2NhdGlvbnMve2xvY2F0aW9ufS9idWNrZXRzL3tidWNrZXR9L3Zp' + 'ZXdzL3t2aWV3fQ=='); + @$core.Deprecated('Use logSinkDescriptor instead') const LogSink$json = { '1': 'LogSink', @@ -187,7 +324,87 @@ const LogSink_VersionFormat$json = { /// Descriptor for `LogSink`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logSinkDescriptor = $convert.base64Decode( - 'CgdMb2dTaW5rEhcKBG5hbWUYASABKAlCA+BBAlIEbmFtZRIrCgtkZXN0aW5hdGlvbhgDIAEoCUIJ4EEC+kEDCgEqUgtkZXN0aW5hdGlvbhIbCgZmaWx0ZXIYBSABKAlCA+BBAVIGZmlsdGVyEiUKC2Rlc2NyaXB0aW9uGBIgASgJQgPgQQFSC2Rlc2NyaXB0aW9uEh8KCGRpc2FibGVkGBMgASgIQgPgQQFSCGRpc2FibGVkEkQKCmV4Y2x1c2lvbnMYECADKAsyHy5nb29nbGUubG9nZ2luZy52Mi5Mb2dFeGNsdXNpb25CA+BBAVIKZXhjbHVzaW9ucxJgChVvdXRwdXRfdmVyc2lvbl9mb3JtYXQYBiABKA4yKC5nb29nbGUubG9nZ2luZy52Mi5Mb2dTaW5rLlZlcnNpb25Gb3JtYXRCAhgBUhNvdXRwdXRWZXJzaW9uRm9ybWF0EiwKD3dyaXRlcl9pZGVudGl0eRgIIAEoCUID4EEDUg53cml0ZXJJZGVudGl0eRIuChBpbmNsdWRlX2NoaWxkcmVuGAkgASgIQgPgQQFSD2luY2x1ZGVDaGlsZHJlbhJUChBiaWdxdWVyeV9vcHRpb25zGAwgASgLMiIuZ29vZ2xlLmxvZ2dpbmcudjIuQmlnUXVlcnlPcHRpb25zQgPgQQFIAFIPYmlncXVlcnlPcHRpb25zEkAKC2NyZWF0ZV90aW1lGA0gASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDUgpjcmVhdGVUaW1lEkAKC3VwZGF0ZV90aW1lGA4gASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDUgp1cGRhdGVUaW1lIj8KDVZlcnNpb25Gb3JtYXQSHgoaVkVSU0lPTl9GT1JNQVRfVU5TUEVDSUZJRUQQABIGCgJWMhABEgYKAlYxEAI6vwHqQbsBCh5sb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ1NpbmsSH3Byb2plY3RzL3twcm9qZWN0fS9zaW5rcy97c2lua30SKW9yZ2FuaXphdGlvbnMve29yZ2FuaXphdGlvbn0vc2lua3Mve3Npbmt9Eh1mb2xkZXJzL3tmb2xkZXJ9L3NpbmtzL3tzaW5rfRIuYmlsbGluZ0FjY291bnRzL3tiaWxsaW5nX2FjY291bnR9L3NpbmtzL3tzaW5rfUIJCgdvcHRpb25z'); + 'CgdMb2dTaW5rEhcKBG5hbWUYASABKAlCA+BBAlIEbmFtZRIrCgtkZXN0aW5hdGlvbhgDIAEoCU' + 'IJ4EEC+kEDCgEqUgtkZXN0aW5hdGlvbhIbCgZmaWx0ZXIYBSABKAlCA+BBAVIGZmlsdGVyEiUK' + 'C2Rlc2NyaXB0aW9uGBIgASgJQgPgQQFSC2Rlc2NyaXB0aW9uEh8KCGRpc2FibGVkGBMgASgIQg' + 'PgQQFSCGRpc2FibGVkEkQKCmV4Y2x1c2lvbnMYECADKAsyHy5nb29nbGUubG9nZ2luZy52Mi5M' + 'b2dFeGNsdXNpb25CA+BBAVIKZXhjbHVzaW9ucxJgChVvdXRwdXRfdmVyc2lvbl9mb3JtYXQYBi' + 'ABKA4yKC5nb29nbGUubG9nZ2luZy52Mi5Mb2dTaW5rLlZlcnNpb25Gb3JtYXRCAhgBUhNvdXRw' + 'dXRWZXJzaW9uRm9ybWF0EiwKD3dyaXRlcl9pZGVudGl0eRgIIAEoCUID4EEDUg53cml0ZXJJZG' + 'VudGl0eRIuChBpbmNsdWRlX2NoaWxkcmVuGAkgASgIQgPgQQFSD2luY2x1ZGVDaGlsZHJlbhJU' + 'ChBiaWdxdWVyeV9vcHRpb25zGAwgASgLMiIuZ29vZ2xlLmxvZ2dpbmcudjIuQmlnUXVlcnlPcH' + 'Rpb25zQgPgQQFIAFIPYmlncXVlcnlPcHRpb25zEkAKC2NyZWF0ZV90aW1lGA0gASgLMhouZ29v' + 'Z2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDUgpjcmVhdGVUaW1lEkAKC3VwZGF0ZV90aW1lGA' + '4gASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDUgp1cGRhdGVUaW1lIj8KDVZl' + 'cnNpb25Gb3JtYXQSHgoaVkVSU0lPTl9GT1JNQVRfVU5TUEVDSUZJRUQQABIGCgJWMhABEgYKAl' + 'YxEAI6vwHqQbsBCh5sb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ1NpbmsSH3Byb2plY3RzL3tw' + 'cm9qZWN0fS9zaW5rcy97c2lua30SKW9yZ2FuaXphdGlvbnMve29yZ2FuaXphdGlvbn0vc2lua3' + 'Mve3Npbmt9Eh1mb2xkZXJzL3tmb2xkZXJ9L3NpbmtzL3tzaW5rfRIuYmlsbGluZ0FjY291bnRz' + 'L3tiaWxsaW5nX2FjY291bnR9L3NpbmtzL3tzaW5rfUIJCgdvcHRpb25z'); + +@$core.Deprecated('Use bigQueryDatasetDescriptor instead') +const BigQueryDataset$json = { + '1': 'BigQueryDataset', + '2': [ + {'1': 'dataset_id', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'datasetId'}, + ], +}; + +/// Descriptor for `BigQueryDataset`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List bigQueryDatasetDescriptor = $convert.base64Decode( + 'Cg9CaWdRdWVyeURhdGFzZXQSIgoKZGF0YXNldF9pZBgBIAEoCUID4EEDUglkYXRhc2V0SWQ='); + +@$core.Deprecated('Use linkDescriptor instead') +const Link$json = { + '1': 'Link', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + {'1': 'description', '3': 2, '4': 1, '5': 9, '10': 'description'}, + { + '1': 'create_time', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '8': {}, + '10': 'createTime' + }, + { + '1': 'lifecycle_state', + '3': 4, + '4': 1, + '5': 14, + '6': '.google.logging.v2.LifecycleState', + '8': {}, + '10': 'lifecycleState' + }, + { + '1': 'bigquery_dataset', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.logging.v2.BigQueryDataset', + '10': 'bigqueryDataset' + }, + ], + '7': {}, +}; + +/// Descriptor for `Link`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List linkDescriptor = $convert.base64Decode( + 'CgRMaW5rEhIKBG5hbWUYASABKAlSBG5hbWUSIAoLZGVzY3JpcHRpb24YAiABKAlSC2Rlc2NyaX' + 'B0aW9uEkAKC2NyZWF0ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID' + '4EEDUgpjcmVhdGVUaW1lEk8KD2xpZmVjeWNsZV9zdGF0ZRgEIAEoDjIhLmdvb2dsZS5sb2dnaW' + '5nLnYyLkxpZmVjeWNsZVN0YXRlQgPgQQNSDmxpZmVjeWNsZVN0YXRlEk0KEGJpZ3F1ZXJ5X2Rh' + 'dGFzZXQYBSABKAsyIi5nb29nbGUubG9nZ2luZy52Mi5CaWdRdWVyeURhdGFzZXRSD2JpZ3F1ZX' + 'J5RGF0YXNldDrUAupB0AIKG2xvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTGluaxJFcHJvamVjdHMv' + 'e3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L2J1Y2tldHMve2J1Y2tldH0vbGlua3Mve2' + 'xpbmt9Ek9vcmdhbml6YXRpb25zL3tvcmdhbml6YXRpb259L2xvY2F0aW9ucy97bG9jYXRpb259' + 'L2J1Y2tldHMve2J1Y2tldH0vbGlua3Mve2xpbmt9EkNmb2xkZXJzL3tmb2xkZXJ9L2xvY2F0aW' + '9ucy97bG9jYXRpb259L2J1Y2tldHMve2J1Y2tldH0vbGlua3Mve2xpbmt9ElRiaWxsaW5nQWNj' + 'b3VudHMve2JpbGxpbmdfYWNjb3VudH0vbG9jYXRpb25zL3tsb2NhdGlvbn0vYnVja2V0cy97Yn' + 'Vja2V0fS9saW5rcy97bGlua30='); + @$core.Deprecated('Use bigQueryOptionsDescriptor instead') const BigQueryOptions$json = { '1': 'BigQueryOptions', @@ -213,7 +430,10 @@ const BigQueryOptions$json = { /// Descriptor for `BigQueryOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List bigQueryOptionsDescriptor = $convert.base64Decode( - 'Cg9CaWdRdWVyeU9wdGlvbnMSOQoWdXNlX3BhcnRpdGlvbmVkX3RhYmxlcxgBIAEoCEID4EEBUhR1c2VQYXJ0aXRpb25lZFRhYmxlcxJQCiJ1c2VzX3RpbWVzdGFtcF9jb2x1bW5fcGFydGl0aW9uaW5nGAMgASgIQgPgQQNSH3VzZXNUaW1lc3RhbXBDb2x1bW5QYXJ0aXRpb25pbmc='); + 'Cg9CaWdRdWVyeU9wdGlvbnMSOQoWdXNlX3BhcnRpdGlvbmVkX3RhYmxlcxgBIAEoCEID4EEBUh' + 'R1c2VQYXJ0aXRpb25lZFRhYmxlcxJQCiJ1c2VzX3RpbWVzdGFtcF9jb2x1bW5fcGFydGl0aW9u' + 'aW5nGAMgASgIQgPgQQNSH3VzZXNUaW1lc3RhbXBDb2x1bW5QYXJ0aXRpb25pbmc='); + @$core.Deprecated('Use listBucketsRequestDescriptor instead') const ListBucketsRequest$json = { '1': 'ListBucketsRequest', @@ -226,7 +446,10 @@ const ListBucketsRequest$json = { /// Descriptor for `ListBucketsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listBucketsRequestDescriptor = $convert.base64Decode( - 'ChJMaXN0QnVja2V0c1JlcXVlc3QSQAoGcGFyZW50GAEgASgJQijgQQL6QSISIGxvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nQnVja2V0UgZwYXJlbnQSIgoKcGFnZV90b2tlbhgCIAEoCUID4EEBUglwYWdlVG9rZW4SIAoJcGFnZV9zaXplGAMgASgFQgPgQQFSCHBhZ2VTaXpl'); + 'ChJMaXN0QnVja2V0c1JlcXVlc3QSQAoGcGFyZW50GAEgASgJQijgQQL6QSISIGxvZ2dpbmcuZ2' + '9vZ2xlYXBpcy5jb20vTG9nQnVja2V0UgZwYXJlbnQSIgoKcGFnZV90b2tlbhgCIAEoCUID4EEB' + 'UglwYWdlVG9rZW4SIAoJcGFnZV9zaXplGAMgASgFQgPgQQFSCHBhZ2VTaXpl'); + @$core.Deprecated('Use listBucketsResponseDescriptor instead') const ListBucketsResponse$json = { '1': 'ListBucketsResponse', @@ -245,7 +468,10 @@ const ListBucketsResponse$json = { /// Descriptor for `ListBucketsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listBucketsResponseDescriptor = $convert.base64Decode( - 'ChNMaXN0QnVja2V0c1Jlc3BvbnNlEjYKB2J1Y2tldHMYASADKAsyHC5nb29nbGUubG9nZ2luZy52Mi5Mb2dCdWNrZXRSB2J1Y2tldHMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); + 'ChNMaXN0QnVja2V0c1Jlc3BvbnNlEjYKB2J1Y2tldHMYASADKAsyHC5nb29nbGUubG9nZ2luZy' + '52Mi5Mb2dCdWNrZXRSB2J1Y2tldHMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFn' + 'ZVRva2Vu'); + @$core.Deprecated('Use createBucketRequestDescriptor instead') const CreateBucketRequest$json = { '1': 'CreateBucketRequest', @@ -266,7 +492,11 @@ const CreateBucketRequest$json = { /// Descriptor for `CreateBucketRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createBucketRequestDescriptor = $convert.base64Decode( - 'ChNDcmVhdGVCdWNrZXRSZXF1ZXN0EkAKBnBhcmVudBgBIAEoCUIo4EEC+kEiEiBsb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ0J1Y2tldFIGcGFyZW50EiAKCWJ1Y2tldF9pZBgCIAEoCUID4EECUghidWNrZXRJZBI5CgZidWNrZXQYAyABKAsyHC5nb29nbGUubG9nZ2luZy52Mi5Mb2dCdWNrZXRCA+BBAlIGYnVja2V0'); + 'ChNDcmVhdGVCdWNrZXRSZXF1ZXN0EkAKBnBhcmVudBgBIAEoCUIo4EEC+kEiEiBsb2dnaW5nLm' + 'dvb2dsZWFwaXMuY29tL0xvZ0J1Y2tldFIGcGFyZW50EiAKCWJ1Y2tldF9pZBgCIAEoCUID4EEC' + 'UghidWNrZXRJZBI5CgZidWNrZXQYAyABKAsyHC5nb29nbGUubG9nZ2luZy52Mi5Mb2dCdWNrZX' + 'RCA+BBAlIGYnVja2V0'); + @$core.Deprecated('Use updateBucketRequestDescriptor instead') const UpdateBucketRequest$json = { '1': 'UpdateBucketRequest', @@ -295,7 +525,11 @@ const UpdateBucketRequest$json = { /// Descriptor for `UpdateBucketRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateBucketRequestDescriptor = $convert.base64Decode( - 'ChNVcGRhdGVCdWNrZXRSZXF1ZXN0EjwKBG5hbWUYASABKAlCKOBBAvpBIgogbG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dCdWNrZXRSBG5hbWUSOQoGYnVja2V0GAIgASgLMhwuZ29vZ2xlLmxvZ2dpbmcudjIuTG9nQnVja2V0QgPgQQJSBmJ1Y2tldBJACgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAlIKdXBkYXRlTWFzaw=='); + 'ChNVcGRhdGVCdWNrZXRSZXF1ZXN0EjwKBG5hbWUYASABKAlCKOBBAvpBIgogbG9nZ2luZy5nb2' + '9nbGVhcGlzLmNvbS9Mb2dCdWNrZXRSBG5hbWUSOQoGYnVja2V0GAIgASgLMhwuZ29vZ2xlLmxv' + 'Z2dpbmcudjIuTG9nQnVja2V0QgPgQQJSBmJ1Y2tldBJACgt1cGRhdGVfbWFzaxgEIAEoCzIaLm' + 'dvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAlIKdXBkYXRlTWFzaw=='); + @$core.Deprecated('Use getBucketRequestDescriptor instead') const GetBucketRequest$json = { '1': 'GetBucketRequest', @@ -306,7 +540,9 @@ const GetBucketRequest$json = { /// Descriptor for `GetBucketRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getBucketRequestDescriptor = $convert.base64Decode( - 'ChBHZXRCdWNrZXRSZXF1ZXN0EjwKBG5hbWUYASABKAlCKOBBAvpBIgogbG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dCdWNrZXRSBG5hbWU='); + 'ChBHZXRCdWNrZXRSZXF1ZXN0EjwKBG5hbWUYASABKAlCKOBBAvpBIgogbG9nZ2luZy5nb29nbG' + 'VhcGlzLmNvbS9Mb2dCdWNrZXRSBG5hbWU='); + @$core.Deprecated('Use deleteBucketRequestDescriptor instead') const DeleteBucketRequest$json = { '1': 'DeleteBucketRequest', @@ -317,7 +553,9 @@ const DeleteBucketRequest$json = { /// Descriptor for `DeleteBucketRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteBucketRequestDescriptor = $convert.base64Decode( - 'ChNEZWxldGVCdWNrZXRSZXF1ZXN0EjwKBG5hbWUYASABKAlCKOBBAvpBIgogbG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dCdWNrZXRSBG5hbWU='); + 'ChNEZWxldGVCdWNrZXRSZXF1ZXN0EjwKBG5hbWUYASABKAlCKOBBAvpBIgogbG9nZ2luZy5nb2' + '9nbGVhcGlzLmNvbS9Mb2dCdWNrZXRSBG5hbWU='); + @$core.Deprecated('Use undeleteBucketRequestDescriptor instead') const UndeleteBucketRequest$json = { '1': 'UndeleteBucketRequest', @@ -328,7 +566,9 @@ const UndeleteBucketRequest$json = { /// Descriptor for `UndeleteBucketRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List undeleteBucketRequestDescriptor = $convert.base64Decode( - 'ChVVbmRlbGV0ZUJ1Y2tldFJlcXVlc3QSPAoEbmFtZRgBIAEoCUIo4EEC+kEiCiBsb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ0J1Y2tldFIEbmFtZQ=='); + 'ChVVbmRlbGV0ZUJ1Y2tldFJlcXVlc3QSPAoEbmFtZRgBIAEoCUIo4EEC+kEiCiBsb2dnaW5nLm' + 'dvb2dsZWFwaXMuY29tL0xvZ0J1Y2tldFIEbmFtZQ=='); + @$core.Deprecated('Use listViewsRequestDescriptor instead') const ListViewsRequest$json = { '1': 'ListViewsRequest', @@ -341,7 +581,10 @@ const ListViewsRequest$json = { /// Descriptor for `ListViewsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listViewsRequestDescriptor = $convert.base64Decode( - 'ChBMaXN0Vmlld3NSZXF1ZXN0EhsKBnBhcmVudBgBIAEoCUID4EECUgZwYXJlbnQSIgoKcGFnZV90b2tlbhgCIAEoCUID4EEBUglwYWdlVG9rZW4SIAoJcGFnZV9zaXplGAMgASgFQgPgQQFSCHBhZ2VTaXpl'); + 'ChBMaXN0Vmlld3NSZXF1ZXN0EhsKBnBhcmVudBgBIAEoCUID4EECUgZwYXJlbnQSIgoKcGFnZV' + '90b2tlbhgCIAEoCUID4EEBUglwYWdlVG9rZW4SIAoJcGFnZV9zaXplGAMgASgFQgPgQQFSCHBh' + 'Z2VTaXpl'); + @$core.Deprecated('Use listViewsResponseDescriptor instead') const ListViewsResponse$json = { '1': 'ListViewsResponse', @@ -360,7 +603,9 @@ const ListViewsResponse$json = { /// Descriptor for `ListViewsResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listViewsResponseDescriptor = $convert.base64Decode( - 'ChFMaXN0Vmlld3NSZXNwb25zZRIwCgV2aWV3cxgBIAMoCzIaLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ1ZpZXdSBXZpZXdzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChFMaXN0Vmlld3NSZXNwb25zZRIwCgV2aWV3cxgBIAMoCzIaLmdvb2dsZS5sb2dnaW5nLnYyLk' + 'xvZ1ZpZXdSBXZpZXdzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use createViewRequestDescriptor instead') const CreateViewRequest$json = { '1': 'CreateViewRequest', @@ -381,7 +626,10 @@ const CreateViewRequest$json = { /// Descriptor for `CreateViewRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createViewRequestDescriptor = $convert.base64Decode( - 'ChFDcmVhdGVWaWV3UmVxdWVzdBIbCgZwYXJlbnQYASABKAlCA+BBAlIGcGFyZW50EhwKB3ZpZXdfaWQYAiABKAlCA+BBAlIGdmlld0lkEjMKBHZpZXcYAyABKAsyGi5nb29nbGUubG9nZ2luZy52Mi5Mb2dWaWV3QgPgQQJSBHZpZXc='); + 'ChFDcmVhdGVWaWV3UmVxdWVzdBIbCgZwYXJlbnQYASABKAlCA+BBAlIGcGFyZW50EhwKB3ZpZX' + 'dfaWQYAiABKAlCA+BBAlIGdmlld0lkEjMKBHZpZXcYAyABKAsyGi5nb29nbGUubG9nZ2luZy52' + 'Mi5Mb2dWaWV3QgPgQQJSBHZpZXc='); + @$core.Deprecated('Use updateViewRequestDescriptor instead') const UpdateViewRequest$json = { '1': 'UpdateViewRequest', @@ -410,7 +658,10 @@ const UpdateViewRequest$json = { /// Descriptor for `UpdateViewRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateViewRequestDescriptor = $convert.base64Decode( - 'ChFVcGRhdGVWaWV3UmVxdWVzdBIXCgRuYW1lGAEgASgJQgPgQQJSBG5hbWUSMwoEdmlldxgCIAEoCzIaLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ1ZpZXdCA+BBAlIEdmlldxJACgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAVIKdXBkYXRlTWFzaw=='); + 'ChFVcGRhdGVWaWV3UmVxdWVzdBIXCgRuYW1lGAEgASgJQgPgQQJSBG5hbWUSMwoEdmlldxgCIA' + 'EoCzIaLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ1ZpZXdCA+BBAlIEdmlldxJACgt1cGRhdGVfbWFz' + 'axgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAVIKdXBkYXRlTWFzaw=='); + @$core.Deprecated('Use getViewRequestDescriptor instead') const GetViewRequest$json = { '1': 'GetViewRequest', @@ -421,7 +672,9 @@ const GetViewRequest$json = { /// Descriptor for `GetViewRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getViewRequestDescriptor = $convert.base64Decode( - 'Cg5HZXRWaWV3UmVxdWVzdBI6CgRuYW1lGAEgASgJQibgQQL6QSAKHmxvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nVmlld1IEbmFtZQ=='); + 'Cg5HZXRWaWV3UmVxdWVzdBI6CgRuYW1lGAEgASgJQibgQQL6QSAKHmxvZ2dpbmcuZ29vZ2xlYX' + 'Bpcy5jb20vTG9nVmlld1IEbmFtZQ=='); + @$core.Deprecated('Use deleteViewRequestDescriptor instead') const DeleteViewRequest$json = { '1': 'DeleteViewRequest', @@ -432,7 +685,9 @@ const DeleteViewRequest$json = { /// Descriptor for `DeleteViewRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteViewRequestDescriptor = $convert.base64Decode( - 'ChFEZWxldGVWaWV3UmVxdWVzdBI6CgRuYW1lGAEgASgJQibgQQL6QSAKHmxvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nVmlld1IEbmFtZQ=='); + 'ChFEZWxldGVWaWV3UmVxdWVzdBI6CgRuYW1lGAEgASgJQibgQQL6QSAKHmxvZ2dpbmcuZ29vZ2' + 'xlYXBpcy5jb20vTG9nVmlld1IEbmFtZQ=='); + @$core.Deprecated('Use listSinksRequestDescriptor instead') const ListSinksRequest$json = { '1': 'ListSinksRequest', @@ -445,7 +700,10 @@ const ListSinksRequest$json = { /// Descriptor for `ListSinksRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listSinksRequestDescriptor = $convert.base64Decode( - 'ChBMaXN0U2lua3NSZXF1ZXN0Ej4KBnBhcmVudBgBIAEoCUIm4EEC+kEgEh5sb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ1NpbmtSBnBhcmVudBIiCgpwYWdlX3Rva2VuGAIgASgJQgPgQQFSCXBhZ2VUb2tlbhIgCglwYWdlX3NpemUYAyABKAVCA+BBAVIIcGFnZVNpemU='); + 'ChBMaXN0U2lua3NSZXF1ZXN0Ej4KBnBhcmVudBgBIAEoCUIm4EEC+kEgEh5sb2dnaW5nLmdvb2' + 'dsZWFwaXMuY29tL0xvZ1NpbmtSBnBhcmVudBIiCgpwYWdlX3Rva2VuGAIgASgJQgPgQQFSCXBh' + 'Z2VUb2tlbhIgCglwYWdlX3NpemUYAyABKAVCA+BBAVIIcGFnZVNpemU='); + @$core.Deprecated('Use listSinksResponseDescriptor instead') const ListSinksResponse$json = { '1': 'ListSinksResponse', @@ -464,7 +722,9 @@ const ListSinksResponse$json = { /// Descriptor for `ListSinksResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listSinksResponseDescriptor = $convert.base64Decode( - 'ChFMaXN0U2lua3NSZXNwb25zZRIwCgVzaW5rcxgBIAMoCzIaLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ1NpbmtSBXNpbmtzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + 'ChFMaXN0U2lua3NSZXNwb25zZRIwCgVzaW5rcxgBIAMoCzIaLmdvb2dsZS5sb2dnaW5nLnYyLk' + 'xvZ1NpbmtSBXNpbmtzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use getSinkRequestDescriptor instead') const GetSinkRequest$json = { '1': 'GetSinkRequest', @@ -475,7 +735,9 @@ const GetSinkRequest$json = { /// Descriptor for `GetSinkRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getSinkRequestDescriptor = $convert.base64Decode( - 'Cg5HZXRTaW5rUmVxdWVzdBJDCglzaW5rX25hbWUYASABKAlCJuBBAvpBIAoebG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dTaW5rUghzaW5rTmFtZQ=='); + 'Cg5HZXRTaW5rUmVxdWVzdBJDCglzaW5rX25hbWUYASABKAlCJuBBAvpBIAoebG9nZ2luZy5nb2' + '9nbGVhcGlzLmNvbS9Mb2dTaW5rUghzaW5rTmFtZQ=='); + @$core.Deprecated('Use createSinkRequestDescriptor instead') const CreateSinkRequest$json = { '1': 'CreateSinkRequest', @@ -503,7 +765,11 @@ const CreateSinkRequest$json = { /// Descriptor for `CreateSinkRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List createSinkRequestDescriptor = $convert.base64Decode( - 'ChFDcmVhdGVTaW5rUmVxdWVzdBI+CgZwYXJlbnQYASABKAlCJuBBAvpBIBIebG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dTaW5rUgZwYXJlbnQSMwoEc2luaxgCIAEoCzIaLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ1NpbmtCA+BBAlIEc2luaxI5ChZ1bmlxdWVfd3JpdGVyX2lkZW50aXR5GAMgASgIQgPgQQFSFHVuaXF1ZVdyaXRlcklkZW50aXR5'); + 'ChFDcmVhdGVTaW5rUmVxdWVzdBI+CgZwYXJlbnQYASABKAlCJuBBAvpBIBIebG9nZ2luZy5nb2' + '9nbGVhcGlzLmNvbS9Mb2dTaW5rUgZwYXJlbnQSMwoEc2luaxgCIAEoCzIaLmdvb2dsZS5sb2dn' + 'aW5nLnYyLkxvZ1NpbmtCA+BBAlIEc2luaxI5ChZ1bmlxdWVfd3JpdGVyX2lkZW50aXR5GAMgAS' + 'gIQgPgQQFSFHVuaXF1ZVdyaXRlcklkZW50aXR5'); + @$core.Deprecated('Use updateSinkRequestDescriptor instead') const UpdateSinkRequest$json = { '1': 'UpdateSinkRequest', @@ -540,7 +806,12 @@ const UpdateSinkRequest$json = { /// Descriptor for `UpdateSinkRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List updateSinkRequestDescriptor = $convert.base64Decode( - 'ChFVcGRhdGVTaW5rUmVxdWVzdBJDCglzaW5rX25hbWUYASABKAlCJuBBAvpBIAoebG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dTaW5rUghzaW5rTmFtZRIzCgRzaW5rGAIgASgLMhouZ29vZ2xlLmxvZ2dpbmcudjIuTG9nU2lua0ID4EECUgRzaW5rEjkKFnVuaXF1ZV93cml0ZXJfaWRlbnRpdHkYAyABKAhCA+BBAVIUdW5pcXVlV3JpdGVySWRlbnRpdHkSQAoLdXBkYXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQFSCnVwZGF0ZU1hc2s='); + 'ChFVcGRhdGVTaW5rUmVxdWVzdBJDCglzaW5rX25hbWUYASABKAlCJuBBAvpBIAoebG9nZ2luZy' + '5nb29nbGVhcGlzLmNvbS9Mb2dTaW5rUghzaW5rTmFtZRIzCgRzaW5rGAIgASgLMhouZ29vZ2xl' + 'LmxvZ2dpbmcudjIuTG9nU2lua0ID4EECUgRzaW5rEjkKFnVuaXF1ZV93cml0ZXJfaWRlbnRpdH' + 'kYAyABKAhCA+BBAVIUdW5pcXVlV3JpdGVySWRlbnRpdHkSQAoLdXBkYXRlX21hc2sYBCABKAsy' + 'Gi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQFSCnVwZGF0ZU1hc2s='); + @$core.Deprecated('Use deleteSinkRequestDescriptor instead') const DeleteSinkRequest$json = { '1': 'DeleteSinkRequest', @@ -551,7 +822,96 @@ const DeleteSinkRequest$json = { /// Descriptor for `DeleteSinkRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteSinkRequestDescriptor = $convert.base64Decode( - 'ChFEZWxldGVTaW5rUmVxdWVzdBJDCglzaW5rX25hbWUYASABKAlCJuBBAvpBIAoebG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dTaW5rUghzaW5rTmFtZQ=='); + 'ChFEZWxldGVTaW5rUmVxdWVzdBJDCglzaW5rX25hbWUYASABKAlCJuBBAvpBIAoebG9nZ2luZy' + '5nb29nbGVhcGlzLmNvbS9Mb2dTaW5rUghzaW5rTmFtZQ=='); + +@$core.Deprecated('Use createLinkRequestDescriptor instead') +const CreateLinkRequest$json = { + '1': 'CreateLinkRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + { + '1': 'link', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.logging.v2.Link', + '8': {}, + '10': 'link' + }, + {'1': 'link_id', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'linkId'}, + ], +}; + +/// Descriptor for `CreateLinkRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List createLinkRequestDescriptor = $convert.base64Decode( + 'ChFDcmVhdGVMaW5rUmVxdWVzdBI7CgZwYXJlbnQYASABKAlCI+BBAvpBHRIbbG9nZ2luZy5nb2' + '9nbGVhcGlzLmNvbS9MaW5rUgZwYXJlbnQSMAoEbGluaxgCIAEoCzIXLmdvb2dsZS5sb2dnaW5n' + 'LnYyLkxpbmtCA+BBAlIEbGluaxIcCgdsaW5rX2lkGAMgASgJQgPgQQJSBmxpbmtJZA=='); + +@$core.Deprecated('Use deleteLinkRequestDescriptor instead') +const DeleteLinkRequest$json = { + '1': 'DeleteLinkRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `DeleteLinkRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List deleteLinkRequestDescriptor = $convert.base64Decode( + 'ChFEZWxldGVMaW5rUmVxdWVzdBI3CgRuYW1lGAEgASgJQiPgQQL6QR0KG2xvZ2dpbmcuZ29vZ2' + 'xlYXBpcy5jb20vTGlua1IEbmFtZQ=='); + +@$core.Deprecated('Use listLinksRequestDescriptor instead') +const ListLinksRequest$json = { + '1': 'ListLinksRequest', + '2': [ + {'1': 'parent', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'parent'}, + {'1': 'page_token', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'pageToken'}, + {'1': 'page_size', '3': 3, '4': 1, '5': 5, '8': {}, '10': 'pageSize'}, + ], +}; + +/// Descriptor for `ListLinksRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listLinksRequestDescriptor = $convert.base64Decode( + 'ChBMaXN0TGlua3NSZXF1ZXN0EjsKBnBhcmVudBgBIAEoCUIj4EEC+kEdEhtsb2dnaW5nLmdvb2' + 'dsZWFwaXMuY29tL0xpbmtSBnBhcmVudBIiCgpwYWdlX3Rva2VuGAIgASgJQgPgQQFSCXBhZ2VU' + 'b2tlbhIgCglwYWdlX3NpemUYAyABKAVCA+BBAVIIcGFnZVNpemU='); + +@$core.Deprecated('Use listLinksResponseDescriptor instead') +const ListLinksResponse$json = { + '1': 'ListLinksResponse', + '2': [ + { + '1': 'links', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.logging.v2.Link', + '10': 'links' + }, + {'1': 'next_page_token', '3': 2, '4': 1, '5': 9, '10': 'nextPageToken'}, + ], +}; + +/// Descriptor for `ListLinksResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listLinksResponseDescriptor = $convert.base64Decode( + 'ChFMaXN0TGlua3NSZXNwb25zZRItCgVsaW5rcxgBIAMoCzIXLmdvb2dsZS5sb2dnaW5nLnYyLk' + 'xpbmtSBWxpbmtzEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); + +@$core.Deprecated('Use getLinkRequestDescriptor instead') +const GetLinkRequest$json = { + '1': 'GetLinkRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `GetLinkRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getLinkRequestDescriptor = $convert.base64Decode( + 'Cg5HZXRMaW5rUmVxdWVzdBI3CgRuYW1lGAEgASgJQiPgQQL6QR0KG2xvZ2dpbmcuZ29vZ2xlYX' + 'Bpcy5jb20vTGlua1IEbmFtZQ=='); + @$core.Deprecated('Use logExclusionDescriptor instead') const LogExclusion$json = { '1': 'LogExclusion', @@ -584,7 +944,17 @@ const LogExclusion$json = { /// Descriptor for `LogExclusion`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logExclusionDescriptor = $convert.base64Decode( - 'CgxMb2dFeGNsdXNpb24SFwoEbmFtZRgBIAEoCUID4EECUgRuYW1lEiUKC2Rlc2NyaXB0aW9uGAIgASgJQgPgQQFSC2Rlc2NyaXB0aW9uEhsKBmZpbHRlchgDIAEoCUID4EECUgZmaWx0ZXISHwoIZGlzYWJsZWQYBCABKAhCA+BBAVIIZGlzYWJsZWQSQAoLY3JlYXRlX3RpbWUYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCmNyZWF0ZVRpbWUSQAoLdXBkYXRlX3RpbWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCnVwZGF0ZVRpbWU67AHqQegBCiNsb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ0V4Y2x1c2lvbhIpcHJvamVjdHMve3Byb2plY3R9L2V4Y2x1c2lvbnMve2V4Y2x1c2lvbn0SM29yZ2FuaXphdGlvbnMve29yZ2FuaXphdGlvbn0vZXhjbHVzaW9ucy97ZXhjbHVzaW9ufRInZm9sZGVycy97Zm9sZGVyfS9leGNsdXNpb25zL3tleGNsdXNpb259EjhiaWxsaW5nQWNjb3VudHMve2JpbGxpbmdfYWNjb3VudH0vZXhjbHVzaW9ucy97ZXhjbHVzaW9ufQ=='); + 'CgxMb2dFeGNsdXNpb24SFwoEbmFtZRgBIAEoCUID4EECUgRuYW1lEiUKC2Rlc2NyaXB0aW9uGA' + 'IgASgJQgPgQQFSC2Rlc2NyaXB0aW9uEhsKBmZpbHRlchgDIAEoCUID4EECUgZmaWx0ZXISHwoI' + 'ZGlzYWJsZWQYBCABKAhCA+BBAVIIZGlzYWJsZWQSQAoLY3JlYXRlX3RpbWUYBSABKAsyGi5nb2' + '9nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCmNyZWF0ZVRpbWUSQAoLdXBkYXRlX3RpbWUY' + 'BiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCnVwZGF0ZVRpbWU67AHqQe' + 'gBCiNsb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ0V4Y2x1c2lvbhIpcHJvamVjdHMve3Byb2pl' + 'Y3R9L2V4Y2x1c2lvbnMve2V4Y2x1c2lvbn0SM29yZ2FuaXphdGlvbnMve29yZ2FuaXphdGlvbn' + '0vZXhjbHVzaW9ucy97ZXhjbHVzaW9ufRInZm9sZGVycy97Zm9sZGVyfS9leGNsdXNpb25zL3tl' + 'eGNsdXNpb259EjhiaWxsaW5nQWNjb3VudHMve2JpbGxpbmdfYWNjb3VudH0vZXhjbHVzaW9ucy' + '97ZXhjbHVzaW9ufQ=='); + @$core.Deprecated('Use listExclusionsRequestDescriptor instead') const ListExclusionsRequest$json = { '1': 'ListExclusionsRequest', @@ -597,7 +967,10 @@ const ListExclusionsRequest$json = { /// Descriptor for `ListExclusionsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listExclusionsRequestDescriptor = $convert.base64Decode( - 'ChVMaXN0RXhjbHVzaW9uc1JlcXVlc3QSQwoGcGFyZW50GAEgASgJQivgQQL6QSUSI2xvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nRXhjbHVzaW9uUgZwYXJlbnQSIgoKcGFnZV90b2tlbhgCIAEoCUID4EEBUglwYWdlVG9rZW4SIAoJcGFnZV9zaXplGAMgASgFQgPgQQFSCHBhZ2VTaXpl'); + 'ChVMaXN0RXhjbHVzaW9uc1JlcXVlc3QSQwoGcGFyZW50GAEgASgJQivgQQL6QSUSI2xvZ2dpbm' + 'cuZ29vZ2xlYXBpcy5jb20vTG9nRXhjbHVzaW9uUgZwYXJlbnQSIgoKcGFnZV90b2tlbhgCIAEo' + 'CUID4EEBUglwYWdlVG9rZW4SIAoJcGFnZV9zaXplGAMgASgFQgPgQQFSCHBhZ2VTaXpl'); + @$core.Deprecated('Use listExclusionsResponseDescriptor instead') const ListExclusionsResponse$json = { '1': 'ListExclusionsResponse', @@ -615,9 +988,11 @@ const ListExclusionsResponse$json = { }; /// Descriptor for `ListExclusionsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listExclusionsResponseDescriptor = - $convert.base64Decode( - 'ChZMaXN0RXhjbHVzaW9uc1Jlc3BvbnNlEj8KCmV4Y2x1c2lvbnMYASADKAsyHy5nb29nbGUubG9nZ2luZy52Mi5Mb2dFeGNsdXNpb25SCmV4Y2x1c2lvbnMSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); +final $typed_data.Uint8List listExclusionsResponseDescriptor = $convert.base64Decode( + 'ChZMaXN0RXhjbHVzaW9uc1Jlc3BvbnNlEj8KCmV4Y2x1c2lvbnMYASADKAsyHy5nb29nbGUubG' + '9nZ2luZy52Mi5Mb2dFeGNsdXNpb25SCmV4Y2x1c2lvbnMSJgoPbmV4dF9wYWdlX3Rva2VuGAIg' + 'ASgJUg1uZXh0UGFnZVRva2Vu'); + @$core.Deprecated('Use getExclusionRequestDescriptor instead') const GetExclusionRequest$json = { '1': 'GetExclusionRequest', @@ -628,7 +1003,9 @@ const GetExclusionRequest$json = { /// Descriptor for `GetExclusionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getExclusionRequestDescriptor = $convert.base64Decode( - 'ChNHZXRFeGNsdXNpb25SZXF1ZXN0Ej8KBG5hbWUYASABKAlCK+BBAvpBJQojbG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dFeGNsdXNpb25SBG5hbWU='); + 'ChNHZXRFeGNsdXNpb25SZXF1ZXN0Ej8KBG5hbWUYASABKAlCK+BBAvpBJQojbG9nZ2luZy5nb2' + '9nbGVhcGlzLmNvbS9Mb2dFeGNsdXNpb25SBG5hbWU='); + @$core.Deprecated('Use createExclusionRequestDescriptor instead') const CreateExclusionRequest$json = { '1': 'CreateExclusionRequest', @@ -647,9 +1024,11 @@ const CreateExclusionRequest$json = { }; /// Descriptor for `CreateExclusionRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List createExclusionRequestDescriptor = - $convert.base64Decode( - 'ChZDcmVhdGVFeGNsdXNpb25SZXF1ZXN0EkMKBnBhcmVudBgBIAEoCUIr4EEC+kElEiNsb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ0V4Y2x1c2lvblIGcGFyZW50EkIKCWV4Y2x1c2lvbhgCIAEoCzIfLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ0V4Y2x1c2lvbkID4EECUglleGNsdXNpb24='); +final $typed_data.Uint8List createExclusionRequestDescriptor = $convert.base64Decode( + 'ChZDcmVhdGVFeGNsdXNpb25SZXF1ZXN0EkMKBnBhcmVudBgBIAEoCUIr4EEC+kElEiNsb2dnaW' + '5nLmdvb2dsZWFwaXMuY29tL0xvZ0V4Y2x1c2lvblIGcGFyZW50EkIKCWV4Y2x1c2lvbhgCIAEo' + 'CzIfLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ0V4Y2x1c2lvbkID4EECUglleGNsdXNpb24='); + @$core.Deprecated('Use updateExclusionRequestDescriptor instead') const UpdateExclusionRequest$json = { '1': 'UpdateExclusionRequest', @@ -677,9 +1056,13 @@ const UpdateExclusionRequest$json = { }; /// Descriptor for `UpdateExclusionRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateExclusionRequestDescriptor = - $convert.base64Decode( - 'ChZVcGRhdGVFeGNsdXNpb25SZXF1ZXN0Ej8KBG5hbWUYASABKAlCK+BBAvpBJQojbG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dFeGNsdXNpb25SBG5hbWUSQgoJZXhjbHVzaW9uGAIgASgLMh8uZ29vZ2xlLmxvZ2dpbmcudjIuTG9nRXhjbHVzaW9uQgPgQQJSCWV4Y2x1c2lvbhJACgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAlIKdXBkYXRlTWFzaw=='); +final $typed_data.Uint8List updateExclusionRequestDescriptor = $convert.base64Decode( + 'ChZVcGRhdGVFeGNsdXNpb25SZXF1ZXN0Ej8KBG5hbWUYASABKAlCK+BBAvpBJQojbG9nZ2luZy' + '5nb29nbGVhcGlzLmNvbS9Mb2dFeGNsdXNpb25SBG5hbWUSQgoJZXhjbHVzaW9uGAIgASgLMh8u' + 'Z29vZ2xlLmxvZ2dpbmcudjIuTG9nRXhjbHVzaW9uQgPgQQJSCWV4Y2x1c2lvbhJACgt1cGRhdG' + 'VfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAlIKdXBkYXRlTWFz' + 'aw=='); + @$core.Deprecated('Use deleteExclusionRequestDescriptor instead') const DeleteExclusionRequest$json = { '1': 'DeleteExclusionRequest', @@ -691,7 +1074,9 @@ const DeleteExclusionRequest$json = { /// Descriptor for `DeleteExclusionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteExclusionRequestDescriptor = $convert.base64Decode( - 'ChZEZWxldGVFeGNsdXNpb25SZXF1ZXN0Ej8KBG5hbWUYASABKAlCK+BBAvpBJQojbG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dFeGNsdXNpb25SBG5hbWU='); + 'ChZEZWxldGVFeGNsdXNpb25SZXF1ZXN0Ej8KBG5hbWUYASABKAlCK+BBAvpBJQojbG9nZ2luZy' + '5nb29nbGVhcGlzLmNvbS9Mb2dFeGNsdXNpb25SBG5hbWU='); + @$core.Deprecated('Use getCmekSettingsRequestDescriptor instead') const GetCmekSettingsRequest$json = { '1': 'GetCmekSettingsRequest', @@ -703,7 +1088,9 @@ const GetCmekSettingsRequest$json = { /// Descriptor for `GetCmekSettingsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getCmekSettingsRequestDescriptor = $convert.base64Decode( - 'ChZHZXRDbWVrU2V0dGluZ3NSZXF1ZXN0Ej8KBG5hbWUYASABKAlCK+BBAvpBJQojbG9nZ2luZy5nb29nbGVhcGlzLmNvbS9DbWVrU2V0dGluZ3NSBG5hbWU='); + 'ChZHZXRDbWVrU2V0dGluZ3NSZXF1ZXN0Ej8KBG5hbWUYASABKAlCK+BBAvpBJQojbG9nZ2luZy' + '5nb29nbGVhcGlzLmNvbS9DbWVrU2V0dGluZ3NSBG5hbWU='); + @$core.Deprecated('Use updateCmekSettingsRequestDescriptor instead') const UpdateCmekSettingsRequest$json = { '1': 'UpdateCmekSettingsRequest', @@ -731,15 +1118,25 @@ const UpdateCmekSettingsRequest$json = { }; /// Descriptor for `UpdateCmekSettingsRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateCmekSettingsRequestDescriptor = - $convert.base64Decode( - 'ChlVcGRhdGVDbWVrU2V0dGluZ3NSZXF1ZXN0EhcKBG5hbWUYASABKAlCA+BBAlIEbmFtZRJJCg1jbWVrX3NldHRpbmdzGAIgASgLMh8uZ29vZ2xlLmxvZ2dpbmcudjIuQ21la1NldHRpbmdzQgPgQQJSDGNtZWtTZXR0aW5ncxJACgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAVIKdXBkYXRlTWFzaw=='); +final $typed_data.Uint8List updateCmekSettingsRequestDescriptor = $convert.base64Decode( + 'ChlVcGRhdGVDbWVrU2V0dGluZ3NSZXF1ZXN0EhcKBG5hbWUYASABKAlCA+BBAlIEbmFtZRJJCg' + '1jbWVrX3NldHRpbmdzGAIgASgLMh8uZ29vZ2xlLmxvZ2dpbmcudjIuQ21la1NldHRpbmdzQgPg' + 'QQJSDGNtZWtTZXR0aW5ncxJACgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi' + '5GaWVsZE1hc2tCA+BBAVIKdXBkYXRlTWFzaw=='); + @$core.Deprecated('Use cmekSettingsDescriptor instead') const CmekSettings$json = { '1': 'CmekSettings', '2': [ {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, {'1': 'kms_key_name', '3': 2, '4': 1, '5': 9, '10': 'kmsKeyName'}, + { + '1': 'kms_key_version_name', + '3': 4, + '4': 1, + '5': 9, + '10': 'kmsKeyVersionName' + }, { '1': 'service_account_id', '3': 3, @@ -754,4 +1151,338 @@ const CmekSettings$json = { /// Descriptor for `CmekSettings`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List cmekSettingsDescriptor = $convert.base64Decode( - 'CgxDbWVrU2V0dGluZ3MSFwoEbmFtZRgBIAEoCUID4EEDUgRuYW1lEiAKDGttc19rZXlfbmFtZRgCIAEoCVIKa21zS2V5TmFtZRIxChJzZXJ2aWNlX2FjY291bnRfaWQYAyABKAlCA+BBA1IQc2VydmljZUFjY291bnRJZDrEAepBwAEKI2xvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vQ21la1NldHRpbmdzEh9wcm9qZWN0cy97cHJvamVjdH0vY21la1NldHRpbmdzEilvcmdhbml6YXRpb25zL3tvcmdhbml6YXRpb259L2NtZWtTZXR0aW5ncxIdZm9sZGVycy97Zm9sZGVyfS9jbWVrU2V0dGluZ3MSLmJpbGxpbmdBY2NvdW50cy97YmlsbGluZ19hY2NvdW50fS9jbWVrU2V0dGluZ3M='); + 'CgxDbWVrU2V0dGluZ3MSFwoEbmFtZRgBIAEoCUID4EEDUgRuYW1lEiAKDGttc19rZXlfbmFtZR' + 'gCIAEoCVIKa21zS2V5TmFtZRIvChRrbXNfa2V5X3ZlcnNpb25fbmFtZRgEIAEoCVIRa21zS2V5' + 'VmVyc2lvbk5hbWUSMQoSc2VydmljZV9hY2NvdW50X2lkGAMgASgJQgPgQQNSEHNlcnZpY2VBY2' + 'NvdW50SWQ6xAHqQcABCiNsb2dnaW5nLmdvb2dsZWFwaXMuY29tL0NtZWtTZXR0aW5ncxIfcHJv' + 'amVjdHMve3Byb2plY3R9L2NtZWtTZXR0aW5ncxIpb3JnYW5pemF0aW9ucy97b3JnYW5pemF0aW' + '9ufS9jbWVrU2V0dGluZ3MSHWZvbGRlcnMve2ZvbGRlcn0vY21la1NldHRpbmdzEi5iaWxsaW5n' + 'QWNjb3VudHMve2JpbGxpbmdfYWNjb3VudH0vY21la1NldHRpbmdz'); + +@$core.Deprecated('Use getSettingsRequestDescriptor instead') +const GetSettingsRequest$json = { + '1': 'GetSettingsRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + ], +}; + +/// Descriptor for `GetSettingsRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getSettingsRequestDescriptor = $convert.base64Decode( + 'ChJHZXRTZXR0aW5nc1JlcXVlc3QSOwoEbmFtZRgBIAEoCUIn4EEC+kEhCh9sb2dnaW5nLmdvb2' + 'dsZWFwaXMuY29tL1NldHRpbmdzUgRuYW1l'); + +@$core.Deprecated('Use updateSettingsRequestDescriptor instead') +const UpdateSettingsRequest$json = { + '1': 'UpdateSettingsRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + { + '1': 'settings', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.logging.v2.Settings', + '8': {}, + '10': 'settings' + }, + { + '1': 'update_mask', + '3': 3, + '4': 1, + '5': 11, + '6': '.google.protobuf.FieldMask', + '8': {}, + '10': 'updateMask' + }, + ], +}; + +/// Descriptor for `UpdateSettingsRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List updateSettingsRequestDescriptor = $convert.base64Decode( + 'ChVVcGRhdGVTZXR0aW5nc1JlcXVlc3QSFwoEbmFtZRgBIAEoCUID4EECUgRuYW1lEjwKCHNldH' + 'RpbmdzGAIgASgLMhsuZ29vZ2xlLmxvZ2dpbmcudjIuU2V0dGluZ3NCA+BBAlIIc2V0dGluZ3MS' + 'QAoLdXBkYXRlX21hc2sYAyABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQFSCn' + 'VwZGF0ZU1hc2s='); + +@$core.Deprecated('Use settingsDescriptor instead') +const Settings$json = { + '1': 'Settings', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + {'1': 'kms_key_name', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'kmsKeyName'}, + { + '1': 'kms_service_account_id', + '3': 3, + '4': 1, + '5': 9, + '8': {}, + '10': 'kmsServiceAccountId' + }, + { + '1': 'storage_location', + '3': 4, + '4': 1, + '5': 9, + '8': {}, + '10': 'storageLocation' + }, + { + '1': 'disable_default_sink', + '3': 5, + '4': 1, + '5': 8, + '8': {}, + '10': 'disableDefaultSink' + }, + ], + '7': {}, +}; + +/// Descriptor for `Settings`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List settingsDescriptor = $convert.base64Decode( + 'CghTZXR0aW5ncxIXCgRuYW1lGAEgASgJQgPgQQNSBG5hbWUSJQoMa21zX2tleV9uYW1lGAIgAS' + 'gJQgPgQQFSCmttc0tleU5hbWUSOAoWa21zX3NlcnZpY2VfYWNjb3VudF9pZBgDIAEoCUID4EED' + 'UhNrbXNTZXJ2aWNlQWNjb3VudElkEi4KEHN0b3JhZ2VfbG9jYXRpb24YBCABKAlCA+BBAVIPc3' + 'RvcmFnZUxvY2F0aW9uEjUKFGRpc2FibGVfZGVmYXVsdF9zaW5rGAUgASgIQgPgQQFSEmRpc2Fi' + 'bGVEZWZhdWx0U2luazqwAepBrAEKH2xvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vU2V0dGluZ3MSG3' + 'Byb2plY3RzL3twcm9qZWN0fS9zZXR0aW5ncxIlb3JnYW5pemF0aW9ucy97b3JnYW5pemF0aW9u' + 'fS9zZXR0aW5ncxIZZm9sZGVycy97Zm9sZGVyfS9zZXR0aW5ncxIqYmlsbGluZ0FjY291bnRzL3' + 'tiaWxsaW5nX2FjY291bnR9L3NldHRpbmdz'); + +@$core.Deprecated('Use copyLogEntriesRequestDescriptor instead') +const CopyLogEntriesRequest$json = { + '1': 'CopyLogEntriesRequest', + '2': [ + {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, + {'1': 'filter', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'filter'}, + {'1': 'destination', '3': 4, '4': 1, '5': 9, '8': {}, '10': 'destination'}, + ], +}; + +/// Descriptor for `CopyLogEntriesRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List copyLogEntriesRequestDescriptor = $convert.base64Decode( + 'ChVDb3B5TG9nRW50cmllc1JlcXVlc3QSFwoEbmFtZRgBIAEoCUID4EECUgRuYW1lEhsKBmZpbH' + 'RlchgDIAEoCUID4EEBUgZmaWx0ZXISJQoLZGVzdGluYXRpb24YBCABKAlCA+BBAlILZGVzdGlu' + 'YXRpb24='); + +@$core.Deprecated('Use copyLogEntriesMetadataDescriptor instead') +const CopyLogEntriesMetadata$json = { + '1': 'CopyLogEntriesMetadata', + '2': [ + { + '1': 'start_time', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'startTime' + }, + { + '1': 'end_time', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'endTime' + }, + { + '1': 'state', + '3': 3, + '4': 1, + '5': 14, + '6': '.google.logging.v2.OperationState', + '10': 'state' + }, + { + '1': 'cancellation_requested', + '3': 4, + '4': 1, + '5': 8, + '10': 'cancellationRequested' + }, + { + '1': 'request', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.logging.v2.CopyLogEntriesRequest', + '10': 'request' + }, + {'1': 'progress', '3': 6, '4': 1, '5': 5, '10': 'progress'}, + {'1': 'writer_identity', '3': 7, '4': 1, '5': 9, '10': 'writerIdentity'}, + ], +}; + +/// Descriptor for `CopyLogEntriesMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List copyLogEntriesMetadataDescriptor = $convert.base64Decode( + 'ChZDb3B5TG9nRW50cmllc01ldGFkYXRhEjkKCnN0YXJ0X3RpbWUYASABKAsyGi5nb29nbGUucH' + 'JvdG9idWYuVGltZXN0YW1wUglzdGFydFRpbWUSNQoIZW5kX3RpbWUYAiABKAsyGi5nb29nbGUu' + 'cHJvdG9idWYuVGltZXN0YW1wUgdlbmRUaW1lEjcKBXN0YXRlGAMgASgOMiEuZ29vZ2xlLmxvZ2' + 'dpbmcudjIuT3BlcmF0aW9uU3RhdGVSBXN0YXRlEjUKFmNhbmNlbGxhdGlvbl9yZXF1ZXN0ZWQY' + 'BCABKAhSFWNhbmNlbGxhdGlvblJlcXVlc3RlZBJCCgdyZXF1ZXN0GAUgASgLMiguZ29vZ2xlLm' + 'xvZ2dpbmcudjIuQ29weUxvZ0VudHJpZXNSZXF1ZXN0UgdyZXF1ZXN0EhoKCHByb2dyZXNzGAYg' + 'ASgFUghwcm9ncmVzcxInCg93cml0ZXJfaWRlbnRpdHkYByABKAlSDndyaXRlcklkZW50aXR5'); + +@$core.Deprecated('Use copyLogEntriesResponseDescriptor instead') +const CopyLogEntriesResponse$json = { + '1': 'CopyLogEntriesResponse', + '2': [ + { + '1': 'log_entries_copied_count', + '3': 1, + '4': 1, + '5': 3, + '10': 'logEntriesCopiedCount' + }, + ], +}; + +/// Descriptor for `CopyLogEntriesResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List copyLogEntriesResponseDescriptor = + $convert.base64Decode( + 'ChZDb3B5TG9nRW50cmllc1Jlc3BvbnNlEjcKGGxvZ19lbnRyaWVzX2NvcGllZF9jb3VudBgBIA' + 'EoA1IVbG9nRW50cmllc0NvcGllZENvdW50'); + +@$core.Deprecated('Use bucketMetadataDescriptor instead') +const BucketMetadata$json = { + '1': 'BucketMetadata', + '2': [ + { + '1': 'start_time', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'startTime' + }, + { + '1': 'end_time', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'endTime' + }, + { + '1': 'state', + '3': 3, + '4': 1, + '5': 14, + '6': '.google.logging.v2.OperationState', + '10': 'state' + }, + { + '1': 'create_bucket_request', + '3': 4, + '4': 1, + '5': 11, + '6': '.google.logging.v2.CreateBucketRequest', + '9': 0, + '10': 'createBucketRequest' + }, + { + '1': 'update_bucket_request', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.logging.v2.UpdateBucketRequest', + '9': 0, + '10': 'updateBucketRequest' + }, + ], + '8': [ + {'1': 'request'}, + ], +}; + +/// Descriptor for `BucketMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List bucketMetadataDescriptor = $convert.base64Decode( + 'Cg5CdWNrZXRNZXRhZGF0YRI5CgpzdGFydF90aW1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVmLl' + 'RpbWVzdGFtcFIJc3RhcnRUaW1lEjUKCGVuZF90aW1lGAIgASgLMhouZ29vZ2xlLnByb3RvYnVm' + 'LlRpbWVzdGFtcFIHZW5kVGltZRI3CgVzdGF0ZRgDIAEoDjIhLmdvb2dsZS5sb2dnaW5nLnYyLk' + '9wZXJhdGlvblN0YXRlUgVzdGF0ZRJcChVjcmVhdGVfYnVja2V0X3JlcXVlc3QYBCABKAsyJi5n' + 'b29nbGUubG9nZ2luZy52Mi5DcmVhdGVCdWNrZXRSZXF1ZXN0SABSE2NyZWF0ZUJ1Y2tldFJlcX' + 'Vlc3QSXAoVdXBkYXRlX2J1Y2tldF9yZXF1ZXN0GAUgASgLMiYuZ29vZ2xlLmxvZ2dpbmcudjIu' + 'VXBkYXRlQnVja2V0UmVxdWVzdEgAUhN1cGRhdGVCdWNrZXRSZXF1ZXN0QgkKB3JlcXVlc3Q='); + +@$core.Deprecated('Use linkMetadataDescriptor instead') +const LinkMetadata$json = { + '1': 'LinkMetadata', + '2': [ + { + '1': 'start_time', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'startTime' + }, + { + '1': 'end_time', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.protobuf.Timestamp', + '10': 'endTime' + }, + { + '1': 'state', + '3': 3, + '4': 1, + '5': 14, + '6': '.google.logging.v2.OperationState', + '10': 'state' + }, + { + '1': 'create_link_request', + '3': 4, + '4': 1, + '5': 11, + '6': '.google.logging.v2.CreateLinkRequest', + '9': 0, + '10': 'createLinkRequest' + }, + { + '1': 'delete_link_request', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.logging.v2.DeleteLinkRequest', + '9': 0, + '10': 'deleteLinkRequest' + }, + ], + '8': [ + {'1': 'request'}, + ], +}; + +/// Descriptor for `LinkMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List linkMetadataDescriptor = $convert.base64Decode( + 'CgxMaW5rTWV0YWRhdGESOQoKc3RhcnRfdGltZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW' + '1lc3RhbXBSCXN0YXJ0VGltZRI1CghlbmRfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U' + 'aW1lc3RhbXBSB2VuZFRpbWUSNwoFc3RhdGUYAyABKA4yIS5nb29nbGUubG9nZ2luZy52Mi5PcG' + 'VyYXRpb25TdGF0ZVIFc3RhdGUSVgoTY3JlYXRlX2xpbmtfcmVxdWVzdBgEIAEoCzIkLmdvb2ds' + 'ZS5sb2dnaW5nLnYyLkNyZWF0ZUxpbmtSZXF1ZXN0SABSEWNyZWF0ZUxpbmtSZXF1ZXN0ElYKE2' + 'RlbGV0ZV9saW5rX3JlcXVlc3QYBSABKAsyJC5nb29nbGUubG9nZ2luZy52Mi5EZWxldGVMaW5r' + 'UmVxdWVzdEgAUhFkZWxldGVMaW5rUmVxdWVzdEIJCgdyZXF1ZXN0'); + +@$core.Deprecated('Use locationMetadataDescriptor instead') +const LocationMetadata$json = { + '1': 'LocationMetadata', + '2': [ + { + '1': 'log_analytics_enabled', + '3': 1, + '4': 1, + '5': 8, + '10': 'logAnalyticsEnabled' + }, + ], +}; + +/// Descriptor for `LocationMetadata`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List locationMetadataDescriptor = $convert.base64Decode( + 'ChBMb2NhdGlvbk1ldGFkYXRhEjIKFWxvZ19hbmFseXRpY3NfZW5hYmxlZBgBIAEoCFITbG9nQW' + '5hbHl0aWNzRW5hYmxlZA=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pb.dart index c8e1ecfa..97d46234 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pb.dart @@ -1,113 +1,128 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging_metrics.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 '../../api/metric.pb.dart' as $2; -import '../../api/distribution.pb.dart' as $3; -import '../../protobuf/timestamp.pb.dart' as $4; - +import '../../api/distribution.pb.dart' as $70; +import '../../api/metric.pb.dart' as $69; +import '../../protobuf/timestamp.pb.dart' as $50; import 'logging_metrics.pbenum.dart'; export 'logging_metrics.pbenum.dart'; +/// Describes a logs-based metric. The value of the metric is the number of log +/// entries that match a logs filter in a given time interval. +/// +/// Logs-based metrics can also be used to extract values from logs and create a +/// distribution of the values. The distribution records the statistics of the +/// extracted values along with an optional histogram of the values as specified +/// by the bucket options. class LogMetric extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'LogMetric', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'description') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filter') - ..e( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version', $pb.PbFieldType.OE, - defaultOrMaker: LogMetric_ApiVersion.V2, - valueOf: LogMetric_ApiVersion.valueOf, - enumValues: LogMetric_ApiVersion.values) - ..aOM<$2.MetricDescriptor>( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metricDescriptor', - subBuilder: $2.MetricDescriptor.create) - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'valueExtractor') - ..m<$core.String, $core.String>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'labelExtractors', entryClassName: 'LogMetric.LabelExtractorsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('google.logging.v2')) - ..aOM<$3.Distribution_BucketOptions>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'bucketOptions', subBuilder: $3.Distribution_BucketOptions.create) - ..aOM<$4.Timestamp>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createTime', subBuilder: $4.Timestamp.create) - ..aOM<$4.Timestamp>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'updateTime', subBuilder: $4.Timestamp.create) - ..hasRequiredFields = false; - - LogMetric._() : super(); factory LogMetric({ $core.String? name, $core.String? description, $core.String? filter, @$core.Deprecated('This field is deprecated.') - LogMetric_ApiVersion? version, - $2.MetricDescriptor? metricDescriptor, + LogMetric_ApiVersion? version, + $69.MetricDescriptor? metricDescriptor, $core.String? valueExtractor, $core.Map<$core.String, $core.String>? labelExtractors, - $3.Distribution_BucketOptions? bucketOptions, - $4.Timestamp? createTime, - $4.Timestamp? updateTime, + $70.Distribution_BucketOptions? bucketOptions, + $50.Timestamp? createTime, + $50.Timestamp? updateTime, + $core.bool? disabled, + $core.String? bucketName, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (description != null) { - _result.description = description; + $result.description = description; } if (filter != null) { - _result.filter = filter; + $result.filter = filter; } if (version != null) { // ignore: deprecated_member_use_from_same_package - _result.version = version; + $result.version = version; } if (metricDescriptor != null) { - _result.metricDescriptor = metricDescriptor; + $result.metricDescriptor = metricDescriptor; } if (valueExtractor != null) { - _result.valueExtractor = valueExtractor; + $result.valueExtractor = valueExtractor; } if (labelExtractors != null) { - _result.labelExtractors.addAll(labelExtractors); + $result.labelExtractors.addAll(labelExtractors); } if (bucketOptions != null) { - _result.bucketOptions = bucketOptions; + $result.bucketOptions = bucketOptions; } if (createTime != null) { - _result.createTime = createTime; + $result.createTime = createTime; } if (updateTime != null) { - _result.updateTime = updateTime; + $result.updateTime = updateTime; + } + if (disabled != null) { + $result.disabled = disabled; + } + if (bucketName != null) { + $result.bucketName = bucketName; } - return _result; + return $result; } + LogMetric._() : super(); factory LogMetric.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory LogMetric.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'LogMetric', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'description') + ..aOS(3, _omitFieldNames ? '' : 'filter') + ..e( + 4, _omitFieldNames ? '' : 'version', $pb.PbFieldType.OE, + defaultOrMaker: LogMetric_ApiVersion.V2, + valueOf: LogMetric_ApiVersion.valueOf, + enumValues: LogMetric_ApiVersion.values) + ..aOM<$69.MetricDescriptor>(5, _omitFieldNames ? '' : 'metricDescriptor', + subBuilder: $69.MetricDescriptor.create) + ..aOS(6, _omitFieldNames ? '' : 'valueExtractor') + ..m<$core.String, $core.String>(7, _omitFieldNames ? '' : 'labelExtractors', + entryClassName: 'LogMetric.LabelExtractorsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('google.logging.v2')) + ..aOM<$70.Distribution_BucketOptions>( + 8, _omitFieldNames ? '' : 'bucketOptions', + subBuilder: $70.Distribution_BucketOptions.create) + ..aOM<$50.Timestamp>(9, _omitFieldNames ? '' : 'createTime', + subBuilder: $50.Timestamp.create) + ..aOM<$50.Timestamp>(10, _omitFieldNames ? '' : 'updateTime', + subBuilder: $50.Timestamp.create) + ..aOB(12, _omitFieldNames ? '' : 'disabled') + ..aOS(13, _omitFieldNames ? '' : 'bucketName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -116,9 +131,10 @@ class LogMetric extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') LogMetric copyWith(void Function(LogMetric) updates) => - super.copyWith((message) => updates(message as LogMetric)) - as LogMetric; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as LogMetric)) as LogMetric; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static LogMetric create() => LogMetric._(); LogMetric createEmptyInstance() => create(); @@ -128,6 +144,19 @@ class LogMetric extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static LogMetric? _defaultInstance; + /// Required. The client-assigned metric identifier. + /// Examples: `"error_count"`, `"nginx/requests"`. + /// + /// Metric identifiers are limited to 100 characters and can include only the + /// following characters: `A-Z`, `a-z`, `0-9`, and the special characters + /// `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of + /// name pieces, and it cannot be the first character of the name. + /// + /// This field is the `[METRIC_ID]` part of a metric resource name in the + /// format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the + /// resource name of a metric is + /// `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is + /// `"nginx/requests"`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -140,6 +169,8 @@ class LogMetric extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Optional. A description of this metric, which is used in documentation. + /// The maximum length of the description is 8000 characters. @$pb.TagNumber(2) $core.String get description => $_getSZ(1); @$pb.TagNumber(2) @@ -152,6 +183,13 @@ class LogMetric extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearDescription() => clearField(2); + /// Required. An [advanced logs + /// filter](https://cloud.google.com/logging/docs/view/advanced_filters) which + /// is used to match log entries. Example: + /// + /// "resource.type=gae_app AND severity>=ERROR" + /// + /// The maximum length of the filter is 20000 characters. @$pb.TagNumber(3) $core.String get filter => $_getSZ(2); @$pb.TagNumber(3) @@ -164,6 +202,8 @@ class LogMetric extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearFilter() => clearField(3); + /// Deprecated. The API version that created or updated this metric. + /// The v2 format is used by default and cannot be changed. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(4) LogMetric_ApiVersion get version => $_getN(3); @@ -180,10 +220,31 @@ class LogMetric extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearVersion() => clearField(4); + /// Optional. The metric descriptor associated with the logs-based metric. + /// If unspecified, it uses a default metric descriptor with a DELTA metric + /// kind, INT64 value type, with no labels and a unit of "1". Such a metric + /// counts the number of log entries matching the `filter` expression. + /// + /// The `name`, `type`, and `description` fields in the `metric_descriptor` + /// are output only, and is constructed using the `name` and `description` + /// field in the LogMetric. + /// + /// To create a logs-based metric that records a distribution of log values, a + /// DELTA metric kind with a DISTRIBUTION value type must be used along with + /// a `value_extractor` expression in the LogMetric. + /// + /// Each label in the metric descriptor must have a matching label + /// name as the key and an extractor expression as the value in the + /// `label_extractors` map. + /// + /// The `metric_kind` and `value_type` fields in the `metric_descriptor` cannot + /// be updated once initially configured. New labels can be added in the + /// `metric_descriptor`, but existing labels cannot be modified except for + /// their description. @$pb.TagNumber(5) - $2.MetricDescriptor get metricDescriptor => $_getN(4); + $69.MetricDescriptor get metricDescriptor => $_getN(4); @$pb.TagNumber(5) - set metricDescriptor($2.MetricDescriptor v) { + set metricDescriptor($69.MetricDescriptor v) { setField(5, v); } @@ -192,8 +253,28 @@ class LogMetric extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearMetricDescriptor() => clearField(5); @$pb.TagNumber(5) - $2.MetricDescriptor ensureMetricDescriptor() => $_ensure(4); - + $69.MetricDescriptor ensureMetricDescriptor() => $_ensure(4); + + /// Optional. A `value_extractor` is required when using a distribution + /// logs-based metric to extract the values to record from a log entry. + /// Two functions are supported for value extraction: `EXTRACT(field)` or + /// `REGEXP_EXTRACT(field, regex)`. The arguments are: + /// + /// 1. field: The name of the log entry field from which the value is to be + /// extracted. + /// 2. regex: A regular expression using the Google RE2 syntax + /// (https://github.com/google/re2/wiki/Syntax) with a single capture + /// group to extract data from the specified log entry field. The value + /// of the field is converted to a string before applying the regex. + /// It is an error to specify a regex that does not include exactly one + /// capture group. + /// + /// The result of the extraction must be convertible to a double type, as the + /// distribution always records double values. If either the extraction or + /// the conversion to double fails, then those values are not recorded in the + /// distribution. + /// + /// Example: `REGEXP_EXTRACT(jsonPayload.request, ".*quantity=(\d+).*")` @$pb.TagNumber(6) $core.String get valueExtractor => $_getSZ(5); @$pb.TagNumber(6) @@ -206,13 +287,30 @@ class LogMetric extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearValueExtractor() => clearField(6); + /// Optional. A map from a label key string to an extractor expression which is + /// used to extract data from a log entry field and assign as the label value. + /// Each label key specified in the LabelDescriptor must have an associated + /// extractor expression in this map. The syntax of the extractor expression + /// is the same as for the `value_extractor` field. + /// + /// The extracted value is converted to the type defined in the label + /// descriptor. If either the extraction or the type conversion fails, + /// the label will have a default value. The default value for a string + /// label is an empty string, for an integer label its 0, and for a boolean + /// label its `false`. + /// + /// Note that there are upper bounds on the maximum number of labels and the + /// number of active time series that are allowed in a project. @$pb.TagNumber(7) $core.Map<$core.String, $core.String> get labelExtractors => $_getMap(6); + /// Optional. The `bucket_options` are required when the logs-based metric is + /// using a DISTRIBUTION value type and it describes the bucket boundaries + /// used to create a histogram of the extracted values. @$pb.TagNumber(8) - $3.Distribution_BucketOptions get bucketOptions => $_getN(7); + $70.Distribution_BucketOptions get bucketOptions => $_getN(7); @$pb.TagNumber(8) - set bucketOptions($3.Distribution_BucketOptions v) { + set bucketOptions($70.Distribution_BucketOptions v) { setField(8, v); } @@ -221,12 +319,15 @@ class LogMetric extends $pb.GeneratedMessage { @$pb.TagNumber(8) void clearBucketOptions() => clearField(8); @$pb.TagNumber(8) - $3.Distribution_BucketOptions ensureBucketOptions() => $_ensure(7); + $70.Distribution_BucketOptions ensureBucketOptions() => $_ensure(7); + /// Output only. The creation timestamp of the metric. + /// + /// This field may not be present for older metrics. @$pb.TagNumber(9) - $4.Timestamp get createTime => $_getN(8); + $50.Timestamp get createTime => $_getN(8); @$pb.TagNumber(9) - set createTime($4.Timestamp v) { + set createTime($50.Timestamp v) { setField(9, v); } @@ -235,12 +336,15 @@ class LogMetric extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearCreateTime() => clearField(9); @$pb.TagNumber(9) - $4.Timestamp ensureCreateTime() => $_ensure(8); + $50.Timestamp ensureCreateTime() => $_ensure(8); + /// Output only. The last update timestamp of the metric. + /// + /// This field may not be present for older metrics. @$pb.TagNumber(10) - $4.Timestamp get updateTime => $_getN(9); + $50.Timestamp get updateTime => $_getN(9); @$pb.TagNumber(10) - set updateTime($4.Timestamp v) { + set updateTime($50.Timestamp v) { setField(10, v); } @@ -249,61 +353,81 @@ class LogMetric extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearUpdateTime() => clearField(10); @$pb.TagNumber(10) - $4.Timestamp ensureUpdateTime() => $_ensure(9); + $50.Timestamp ensureUpdateTime() => $_ensure(9); + + /// Optional. If set to True, then this metric is disabled and it does not + /// generate any points. + @$pb.TagNumber(12) + $core.bool get disabled => $_getBF(10); + @$pb.TagNumber(12) + set disabled($core.bool v) { + $_setBool(10, v); + } + + @$pb.TagNumber(12) + $core.bool hasDisabled() => $_has(10); + @$pb.TagNumber(12) + void clearDisabled() => clearField(12); + + /// Optional. The resource name of the Log Bucket that owns the Log Metric. + /// Only Log Buckets in projects are supported. The bucket has to be in the + /// same project as the metric. + /// + /// For example: + /// + /// `projects/my-project/locations/global/buckets/my-bucket` + /// + /// If empty, then the Log Metric is considered a non-Bucket Log Metric. + @$pb.TagNumber(13) + $core.String get bucketName => $_getSZ(11); + @$pb.TagNumber(13) + set bucketName($core.String v) { + $_setString(11, v); + } + + @$pb.TagNumber(13) + $core.bool hasBucketName() => $_has(11); + @$pb.TagNumber(13) + void clearBucketName() => clearField(13); } +/// The parameters to ListLogMetrics. class ListLogMetricsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListLogMetricsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ListLogMetricsRequest._() : super(); factory ListLogMetricsRequest({ $core.String? parent, $core.String? pageToken, $core.int? pageSize, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } - return _result; + return $result; } + ListLogMetricsRequest._() : super(); factory ListLogMetricsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListLogMetricsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListLogMetricsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOS(2, _omitFieldNames ? '' : 'pageToken') + ..a<$core.int>(3, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -315,8 +439,10 @@ class ListLogMetricsRequest extends $pb.GeneratedMessage { ListLogMetricsRequest copyWith( void Function(ListLogMetricsRequest) updates) => super.copyWith((message) => updates(message as ListLogMetricsRequest)) - as ListLogMetricsRequest; // ignore: deprecated_member_use + as ListLogMetricsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListLogMetricsRequest create() => ListLogMetricsRequest._(); ListLogMetricsRequest createEmptyInstance() => create(); @@ -327,6 +453,9 @@ class ListLogMetricsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListLogMetricsRequest? _defaultInstance; + /// Required. The name of the project containing the metrics: + /// + /// "projects/[PROJECT_ID]" @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -339,6 +468,10 @@ class ListLogMetricsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Optional. If present, then retrieve the next batch of results from the + /// preceding call to this method. `pageToken` must be the value of + /// `nextPageToken` from the previous response. The values of other method + /// parameters should be identical to those in the previous call. @$pb.TagNumber(2) $core.String get pageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -351,6 +484,9 @@ class ListLogMetricsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageToken() => clearField(2); + /// Optional. The maximum number of results to return from this request. + /// Non-positive values are ignored. The presence of `nextPageToken` in the + /// response indicates that more results might be available. @$pb.TagNumber(3) $core.int get pageSize => $_getIZ(2); @$pb.TagNumber(3) @@ -364,47 +500,39 @@ class ListLogMetricsRequest extends $pb.GeneratedMessage { void clearPageSize() => clearField(3); } +/// Result returned from ListLogMetrics. class ListLogMetricsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListLogMetricsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metrics', - $pb.PbFieldType.PM, - subBuilder: LogMetric.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListLogMetricsResponse._() : super(); factory ListLogMetricsResponse({ $core.Iterable? metrics, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (metrics != null) { - _result.metrics.addAll(metrics); + $result.metrics.addAll(metrics); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListLogMetricsResponse._() : super(); factory ListLogMetricsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListLogMetricsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListLogMetricsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'metrics', $pb.PbFieldType.PM, + subBuilder: LogMetric.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -416,8 +544,10 @@ class ListLogMetricsResponse extends $pb.GeneratedMessage { ListLogMetricsResponse copyWith( void Function(ListLogMetricsResponse) updates) => super.copyWith((message) => updates(message as ListLogMetricsResponse)) - as ListLogMetricsResponse; // ignore: deprecated_member_use + as ListLogMetricsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListLogMetricsResponse create() => ListLogMetricsResponse._(); ListLogMetricsResponse createEmptyInstance() => create(); @@ -428,9 +558,13 @@ class ListLogMetricsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListLogMetricsResponse? _defaultInstance; + /// A list of logs-based metrics. @$pb.TagNumber(1) $core.List get metrics => $_getList(0); + /// If there might be more results than appear in this response, then + /// `nextPageToken` is included. To get the next set of results, call this + /// method again using the value of `nextPageToken` as `pageToken`. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -444,39 +578,33 @@ class ListLogMetricsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// The parameters to GetLogMetric. class GetLogMetricRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetLogMetricRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metricName') - ..hasRequiredFields = false; - - GetLogMetricRequest._() : super(); factory GetLogMetricRequest({ $core.String? metricName, }) { - final _result = create(); + final $result = create(); if (metricName != null) { - _result.metricName = metricName; + $result.metricName = metricName; } - return _result; + return $result; } + GetLogMetricRequest._() : super(); factory GetLogMetricRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetLogMetricRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetLogMetricRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'metricName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -486,8 +614,10 @@ class GetLogMetricRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetLogMetricRequest copyWith(void Function(GetLogMetricRequest) updates) => super.copyWith((message) => updates(message as GetLogMetricRequest)) - as GetLogMetricRequest; // ignore: deprecated_member_use + as GetLogMetricRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetLogMetricRequest create() => GetLogMetricRequest._(); GetLogMetricRequest createEmptyInstance() => create(); @@ -498,6 +628,9 @@ class GetLogMetricRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetLogMetricRequest? _defaultInstance; + /// Required. The resource name of the desired metric: + /// + /// "projects/[PROJECT_ID]/metrics/[METRIC_ID]" @$pb.TagNumber(1) $core.String get metricName => $_getSZ(0); @$pb.TagNumber(1) @@ -511,49 +644,39 @@ class GetLogMetricRequest extends $pb.GeneratedMessage { void clearMetricName() => clearField(1); } +/// The parameters to CreateLogMetric. class CreateLogMetricRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CreateLogMetricRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'parent') - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metric', - subBuilder: LogMetric.create) - ..hasRequiredFields = false; - - CreateLogMetricRequest._() : super(); factory CreateLogMetricRequest({ $core.String? parent, LogMetric? metric, }) { - final _result = create(); + final $result = create(); if (parent != null) { - _result.parent = parent; + $result.parent = parent; } if (metric != null) { - _result.metric = metric; + $result.metric = metric; } - return _result; + return $result; } + CreateLogMetricRequest._() : super(); factory CreateLogMetricRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateLogMetricRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CreateLogMetricRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'parent') + ..aOM(2, _omitFieldNames ? '' : 'metric', + subBuilder: LogMetric.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') @@ -565,8 +688,10 @@ class CreateLogMetricRequest extends $pb.GeneratedMessage { CreateLogMetricRequest copyWith( void Function(CreateLogMetricRequest) updates) => super.copyWith((message) => updates(message as CreateLogMetricRequest)) - as CreateLogMetricRequest; // ignore: deprecated_member_use + as CreateLogMetricRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CreateLogMetricRequest create() => CreateLogMetricRequest._(); CreateLogMetricRequest createEmptyInstance() => create(); @@ -577,6 +702,11 @@ class CreateLogMetricRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CreateLogMetricRequest? _defaultInstance; + /// Required. The resource name of the project in which to create the metric: + /// + /// "projects/[PROJECT_ID]" + /// + /// The new metric must be provided in the request. @$pb.TagNumber(1) $core.String get parent => $_getSZ(0); @$pb.TagNumber(1) @@ -589,6 +719,8 @@ class CreateLogMetricRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearParent() => clearField(1); + /// Required. The new logs-based metric, which must not have an identifier that + /// already exists. @$pb.TagNumber(2) LogMetric get metric => $_getN(1); @$pb.TagNumber(2) @@ -604,49 +736,39 @@ class CreateLogMetricRequest extends $pb.GeneratedMessage { LogMetric ensureMetric() => $_ensure(1); } +/// The parameters to UpdateLogMetric. class UpdateLogMetricRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UpdateLogMetricRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metricName') - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metric', - subBuilder: LogMetric.create) - ..hasRequiredFields = false; - - UpdateLogMetricRequest._() : super(); factory UpdateLogMetricRequest({ $core.String? metricName, LogMetric? metric, }) { - final _result = create(); + final $result = create(); if (metricName != null) { - _result.metricName = metricName; + $result.metricName = metricName; } if (metric != null) { - _result.metric = metric; + $result.metric = metric; } - return _result; + return $result; } + UpdateLogMetricRequest._() : super(); factory UpdateLogMetricRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateLogMetricRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UpdateLogMetricRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'metricName') + ..aOM(2, _omitFieldNames ? '' : 'metric', + subBuilder: LogMetric.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') @@ -658,8 +780,10 @@ class UpdateLogMetricRequest extends $pb.GeneratedMessage { UpdateLogMetricRequest copyWith( void Function(UpdateLogMetricRequest) updates) => super.copyWith((message) => updates(message as UpdateLogMetricRequest)) - as UpdateLogMetricRequest; // ignore: deprecated_member_use + as UpdateLogMetricRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UpdateLogMetricRequest create() => UpdateLogMetricRequest._(); UpdateLogMetricRequest createEmptyInstance() => create(); @@ -670,6 +794,13 @@ class UpdateLogMetricRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static UpdateLogMetricRequest? _defaultInstance; + /// Required. The resource name of the metric to update: + /// + /// "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + /// + /// The updated metric must be provided in the request and it's + /// `name` field must be the same as `[METRIC_ID]` If the metric + /// does not exist in `[PROJECT_ID]`, then a new metric is created. @$pb.TagNumber(1) $core.String get metricName => $_getSZ(0); @$pb.TagNumber(1) @@ -682,6 +813,7 @@ class UpdateLogMetricRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMetricName() => clearField(1); + /// Required. The updated metric. @$pb.TagNumber(2) LogMetric get metric => $_getN(1); @$pb.TagNumber(2) @@ -697,39 +829,33 @@ class UpdateLogMetricRequest extends $pb.GeneratedMessage { LogMetric ensureMetric() => $_ensure(1); } +/// The parameters to DeleteLogMetric. class DeleteLogMetricRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteLogMetricRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.logging.v2'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metricName') - ..hasRequiredFields = false; - - DeleteLogMetricRequest._() : super(); factory DeleteLogMetricRequest({ $core.String? metricName, }) { - final _result = create(); + final $result = create(); if (metricName != null) { - _result.metricName = metricName; + $result.metricName = metricName; } - return _result; + return $result; } + DeleteLogMetricRequest._() : super(); factory DeleteLogMetricRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteLogMetricRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteLogMetricRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.logging.v2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'metricName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -741,8 +867,10 @@ class DeleteLogMetricRequest extends $pb.GeneratedMessage { DeleteLogMetricRequest copyWith( void Function(DeleteLogMetricRequest) updates) => super.copyWith((message) => updates(message as DeleteLogMetricRequest)) - as DeleteLogMetricRequest; // ignore: deprecated_member_use + as DeleteLogMetricRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteLogMetricRequest create() => DeleteLogMetricRequest._(); DeleteLogMetricRequest createEmptyInstance() => create(); @@ -753,6 +881,9 @@ class DeleteLogMetricRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteLogMetricRequest? _defaultInstance; + /// Required. The resource name of the metric to delete: + /// + /// "projects/[PROJECT_ID]/metrics/[METRIC_ID]" @$pb.TagNumber(1) $core.String get metricName => $_getSZ(0); @$pb.TagNumber(1) @@ -765,3 +896,7 @@ class DeleteLogMetricRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMetricName() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbenum.dart index 2611197f..a5f69363 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbenum.dart @@ -1,19 +1,24 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging_metrics.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// Logging API version. class LogMetric_ApiVersion extends $pb.ProtobufEnum { - static const LogMetric_ApiVersion V2 = LogMetric_ApiVersion._( - 0, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'V2'); - static const LogMetric_ApiVersion V1 = LogMetric_ApiVersion._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'V1'); + static const LogMetric_ApiVersion V2 = + LogMetric_ApiVersion._(0, _omitEnumNames ? '' : 'V2'); + static const LogMetric_ApiVersion V1 = + LogMetric_ApiVersion._(1, _omitEnumNames ? '' : 'V1'); static const $core.List values = [ V2, @@ -26,3 +31,5 @@ class LogMetric_ApiVersion extends $pb.ProtobufEnum { const LogMetric_ApiVersion._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbgrpc.dart index b4e86548..fcd9900a 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbgrpc.dart @@ -1,45 +1,52 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging_metrics.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'logging_metrics.pb.dart' as $0; +import 'package:protobuf/protobuf.dart' as $pb; + import '../../protobuf/empty.pb.dart' as $1; +import 'logging_metrics.pb.dart' as $20; + export 'logging_metrics.pb.dart'; +@$pb.GrpcServiceName('google.logging.v2.MetricsServiceV2') class MetricsServiceV2Client extends $grpc.Client { static final _$listLogMetrics = - $grpc.ClientMethod<$0.ListLogMetricsRequest, $0.ListLogMetricsResponse>( + $grpc.ClientMethod<$20.ListLogMetricsRequest, $20.ListLogMetricsResponse>( '/google.logging.v2.MetricsServiceV2/ListLogMetrics', - ($0.ListLogMetricsRequest value) => value.writeToBuffer(), + ($20.ListLogMetricsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.ListLogMetricsResponse.fromBuffer(value)); + $20.ListLogMetricsResponse.fromBuffer(value)); static final _$getLogMetric = - $grpc.ClientMethod<$0.GetLogMetricRequest, $0.LogMetric>( + $grpc.ClientMethod<$20.GetLogMetricRequest, $20.LogMetric>( '/google.logging.v2.MetricsServiceV2/GetLogMetric', - ($0.GetLogMetricRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogMetric.fromBuffer(value)); + ($20.GetLogMetricRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $20.LogMetric.fromBuffer(value)); static final _$createLogMetric = - $grpc.ClientMethod<$0.CreateLogMetricRequest, $0.LogMetric>( + $grpc.ClientMethod<$20.CreateLogMetricRequest, $20.LogMetric>( '/google.logging.v2.MetricsServiceV2/CreateLogMetric', - ($0.CreateLogMetricRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogMetric.fromBuffer(value)); + ($20.CreateLogMetricRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $20.LogMetric.fromBuffer(value)); static final _$updateLogMetric = - $grpc.ClientMethod<$0.UpdateLogMetricRequest, $0.LogMetric>( + $grpc.ClientMethod<$20.UpdateLogMetricRequest, $20.LogMetric>( '/google.logging.v2.MetricsServiceV2/UpdateLogMetric', - ($0.UpdateLogMetricRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.LogMetric.fromBuffer(value)); + ($20.UpdateLogMetricRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $20.LogMetric.fromBuffer(value)); static final _$deleteLogMetric = - $grpc.ClientMethod<$0.DeleteLogMetricRequest, $1.Empty>( + $grpc.ClientMethod<$20.DeleteLogMetricRequest, $1.Empty>( '/google.logging.v2.MetricsServiceV2/DeleteLogMetric', - ($0.DeleteLogMetricRequest value) => value.writeToBuffer(), + ($20.DeleteLogMetricRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); MetricsServiceV2Client($grpc.ClientChannel channel, @@ -47,118 +54,119 @@ class MetricsServiceV2Client extends $grpc.Client { $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.ListLogMetricsResponse> listLogMetrics( - $0.ListLogMetricsRequest request, + $grpc.ResponseFuture<$20.ListLogMetricsResponse> listLogMetrics( + $20.ListLogMetricsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listLogMetrics, request, options: options); } - $grpc.ResponseFuture<$0.LogMetric> getLogMetric( - $0.GetLogMetricRequest request, + $grpc.ResponseFuture<$20.LogMetric> getLogMetric( + $20.GetLogMetricRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getLogMetric, request, options: options); } - $grpc.ResponseFuture<$0.LogMetric> createLogMetric( - $0.CreateLogMetricRequest request, + $grpc.ResponseFuture<$20.LogMetric> createLogMetric( + $20.CreateLogMetricRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createLogMetric, request, options: options); } - $grpc.ResponseFuture<$0.LogMetric> updateLogMetric( - $0.UpdateLogMetricRequest request, + $grpc.ResponseFuture<$20.LogMetric> updateLogMetric( + $20.UpdateLogMetricRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateLogMetric, request, options: options); } $grpc.ResponseFuture<$1.Empty> deleteLogMetric( - $0.DeleteLogMetricRequest request, + $20.DeleteLogMetricRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteLogMetric, request, options: options); } } +@$pb.GrpcServiceName('google.logging.v2.MetricsServiceV2') abstract class MetricsServiceV2ServiceBase extends $grpc.Service { $core.String get $name => 'google.logging.v2.MetricsServiceV2'; MetricsServiceV2ServiceBase() { - $addMethod($grpc.ServiceMethod<$0.ListLogMetricsRequest, - $0.ListLogMetricsResponse>( + $addMethod($grpc.ServiceMethod<$20.ListLogMetricsRequest, + $20.ListLogMetricsResponse>( 'ListLogMetrics', listLogMetrics_Pre, false, false, ($core.List<$core.int> value) => - $0.ListLogMetricsRequest.fromBuffer(value), - ($0.ListLogMetricsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetLogMetricRequest, $0.LogMetric>( + $20.ListLogMetricsRequest.fromBuffer(value), + ($20.ListLogMetricsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$20.GetLogMetricRequest, $20.LogMetric>( 'GetLogMetric', getLogMetric_Pre, false, false, ($core.List<$core.int> value) => - $0.GetLogMetricRequest.fromBuffer(value), - ($0.LogMetric value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.CreateLogMetricRequest, $0.LogMetric>( + $20.GetLogMetricRequest.fromBuffer(value), + ($20.LogMetric value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$20.CreateLogMetricRequest, $20.LogMetric>( 'CreateLogMetric', createLogMetric_Pre, false, false, ($core.List<$core.int> value) => - $0.CreateLogMetricRequest.fromBuffer(value), - ($0.LogMetric value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.UpdateLogMetricRequest, $0.LogMetric>( + $20.CreateLogMetricRequest.fromBuffer(value), + ($20.LogMetric value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$20.UpdateLogMetricRequest, $20.LogMetric>( 'UpdateLogMetric', updateLogMetric_Pre, false, false, ($core.List<$core.int> value) => - $0.UpdateLogMetricRequest.fromBuffer(value), - ($0.LogMetric value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.DeleteLogMetricRequest, $1.Empty>( + $20.UpdateLogMetricRequest.fromBuffer(value), + ($20.LogMetric value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$20.DeleteLogMetricRequest, $1.Empty>( 'DeleteLogMetric', deleteLogMetric_Pre, false, false, ($core.List<$core.int> value) => - $0.DeleteLogMetricRequest.fromBuffer(value), + $20.DeleteLogMetricRequest.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); } - $async.Future<$0.ListLogMetricsResponse> listLogMetrics_Pre( + $async.Future<$20.ListLogMetricsResponse> listLogMetrics_Pre( $grpc.ServiceCall call, - $async.Future<$0.ListLogMetricsRequest> request) async { + $async.Future<$20.ListLogMetricsRequest> request) async { return listLogMetrics(call, await request); } - $async.Future<$0.LogMetric> getLogMetric_Pre($grpc.ServiceCall call, - $async.Future<$0.GetLogMetricRequest> request) async { + $async.Future<$20.LogMetric> getLogMetric_Pre($grpc.ServiceCall call, + $async.Future<$20.GetLogMetricRequest> request) async { return getLogMetric(call, await request); } - $async.Future<$0.LogMetric> createLogMetric_Pre($grpc.ServiceCall call, - $async.Future<$0.CreateLogMetricRequest> request) async { + $async.Future<$20.LogMetric> createLogMetric_Pre($grpc.ServiceCall call, + $async.Future<$20.CreateLogMetricRequest> request) async { return createLogMetric(call, await request); } - $async.Future<$0.LogMetric> updateLogMetric_Pre($grpc.ServiceCall call, - $async.Future<$0.UpdateLogMetricRequest> request) async { + $async.Future<$20.LogMetric> updateLogMetric_Pre($grpc.ServiceCall call, + $async.Future<$20.UpdateLogMetricRequest> request) async { return updateLogMetric(call, await request); } $async.Future<$1.Empty> deleteLogMetric_Pre($grpc.ServiceCall call, - $async.Future<$0.DeleteLogMetricRequest> request) async { + $async.Future<$20.DeleteLogMetricRequest> request) async { return deleteLogMetric(call, await request); } - $async.Future<$0.ListLogMetricsResponse> listLogMetrics( - $grpc.ServiceCall call, $0.ListLogMetricsRequest request); - $async.Future<$0.LogMetric> getLogMetric( - $grpc.ServiceCall call, $0.GetLogMetricRequest request); - $async.Future<$0.LogMetric> createLogMetric( - $grpc.ServiceCall call, $0.CreateLogMetricRequest request); - $async.Future<$0.LogMetric> updateLogMetric( - $grpc.ServiceCall call, $0.UpdateLogMetricRequest request); + $async.Future<$20.ListLogMetricsResponse> listLogMetrics( + $grpc.ServiceCall call, $20.ListLogMetricsRequest request); + $async.Future<$20.LogMetric> getLogMetric( + $grpc.ServiceCall call, $20.GetLogMetricRequest request); + $async.Future<$20.LogMetric> createLogMetric( + $grpc.ServiceCall call, $20.CreateLogMetricRequest request); + $async.Future<$20.LogMetric> updateLogMetric( + $grpc.ServiceCall call, $20.UpdateLogMetricRequest request); $async.Future<$1.Empty> deleteLogMetric( - $grpc.ServiceCall call, $0.DeleteLogMetricRequest request); + $grpc.ServiceCall call, $20.DeleteLogMetricRequest request); } diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbjson.dart index 21de3ac4..c5c3e040 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/logging/v2/logging_metrics.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/logging/v2/logging_metrics.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 logMetricDescriptor instead') @@ -16,6 +20,8 @@ const LogMetric$json = { {'1': 'name', '3': 1, '4': 1, '5': 9, '8': {}, '10': 'name'}, {'1': 'description', '3': 2, '4': 1, '5': 9, '8': {}, '10': 'description'}, {'1': 'filter', '3': 3, '4': 1, '5': 9, '8': {}, '10': 'filter'}, + {'1': 'bucket_name', '3': 13, '4': 1, '5': 9, '8': {}, '10': 'bucketName'}, + {'1': 'disabled', '3': 12, '4': 1, '5': 8, '8': {}, '10': 'disabled'}, { '1': 'metric_descriptor', '3': 5, @@ -105,7 +111,23 @@ const LogMetric_ApiVersion$json = { /// Descriptor for `LogMetric`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List logMetricDescriptor = $convert.base64Decode( - 'CglMb2dNZXRyaWMSFwoEbmFtZRgBIAEoCUID4EECUgRuYW1lEiUKC2Rlc2NyaXB0aW9uGAIgASgJQgPgQQFSC2Rlc2NyaXB0aW9uEhsKBmZpbHRlchgDIAEoCUID4EECUgZmaWx0ZXISTgoRbWV0cmljX2Rlc2NyaXB0b3IYBSABKAsyHC5nb29nbGUuYXBpLk1ldHJpY0Rlc2NyaXB0b3JCA+BBAVIQbWV0cmljRGVzY3JpcHRvchIsCg92YWx1ZV9leHRyYWN0b3IYBiABKAlCA+BBAVIOdmFsdWVFeHRyYWN0b3ISYQoQbGFiZWxfZXh0cmFjdG9ycxgHIAMoCzIxLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ01ldHJpYy5MYWJlbEV4dHJhY3RvcnNFbnRyeUID4EEBUg9sYWJlbEV4dHJhY3RvcnMSUgoOYnVja2V0X29wdGlvbnMYCCABKAsyJi5nb29nbGUuYXBpLkRpc3RyaWJ1dGlvbi5CdWNrZXRPcHRpb25zQgPgQQFSDWJ1Y2tldE9wdGlvbnMSQAoLY3JlYXRlX3RpbWUYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCmNyZWF0ZVRpbWUSQAoLdXBkYXRlX3RpbWUYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQNSCnVwZGF0ZVRpbWUSRQoHdmVyc2lvbhgEIAEoDjInLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ01ldHJpYy5BcGlWZXJzaW9uQgIYAVIHdmVyc2lvbhpCChRMYWJlbEV4dHJhY3RvcnNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBIhwKCkFwaVZlcnNpb24SBgoCVjIQABIGCgJWMRABOkrqQUcKIGxvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nTWV0cmljEiNwcm9qZWN0cy97cHJvamVjdH0vbWV0cmljcy97bWV0cmljfQ=='); + 'CglMb2dNZXRyaWMSFwoEbmFtZRgBIAEoCUID4EECUgRuYW1lEiUKC2Rlc2NyaXB0aW9uGAIgAS' + 'gJQgPgQQFSC2Rlc2NyaXB0aW9uEhsKBmZpbHRlchgDIAEoCUID4EECUgZmaWx0ZXISJAoLYnVj' + 'a2V0X25hbWUYDSABKAlCA+BBAVIKYnVja2V0TmFtZRIfCghkaXNhYmxlZBgMIAEoCEID4EEBUg' + 'hkaXNhYmxlZBJOChFtZXRyaWNfZGVzY3JpcHRvchgFIAEoCzIcLmdvb2dsZS5hcGkuTWV0cmlj' + 'RGVzY3JpcHRvckID4EEBUhBtZXRyaWNEZXNjcmlwdG9yEiwKD3ZhbHVlX2V4dHJhY3RvchgGIA' + 'EoCUID4EEBUg52YWx1ZUV4dHJhY3RvchJhChBsYWJlbF9leHRyYWN0b3JzGAcgAygLMjEuZ29v' + 'Z2xlLmxvZ2dpbmcudjIuTG9nTWV0cmljLkxhYmVsRXh0cmFjdG9yc0VudHJ5QgPgQQFSD2xhYm' + 'VsRXh0cmFjdG9ycxJSCg5idWNrZXRfb3B0aW9ucxgIIAEoCzImLmdvb2dsZS5hcGkuRGlzdHJp' + 'YnV0aW9uLkJ1Y2tldE9wdGlvbnNCA+BBAVINYnVja2V0T3B0aW9ucxJACgtjcmVhdGVfdGltZR' + 'gJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBA1IKY3JlYXRlVGltZRJACgt1' + 'cGRhdGVfdGltZRgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBA1IKdXBkYX' + 'RlVGltZRJFCgd2ZXJzaW9uGAQgASgOMicuZ29vZ2xlLmxvZ2dpbmcudjIuTG9nTWV0cmljLkFw' + 'aVZlcnNpb25CAhgBUgd2ZXJzaW9uGkIKFExhYmVsRXh0cmFjdG9yc0VudHJ5EhAKA2tleRgBIA' + 'EoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAEiHAoKQXBpVmVyc2lvbhIGCgJWMhAA' + 'EgYKAlYxEAE6SupBRwogbG9nZ2luZy5nb29nbGVhcGlzLmNvbS9Mb2dNZXRyaWMSI3Byb2plY3' + 'RzL3twcm9qZWN0fS9tZXRyaWNzL3ttZXRyaWN9'); + @$core.Deprecated('Use listLogMetricsRequestDescriptor instead') const ListLogMetricsRequest$json = { '1': 'ListLogMetricsRequest', @@ -118,7 +140,11 @@ const ListLogMetricsRequest$json = { /// Descriptor for `ListLogMetricsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listLogMetricsRequestDescriptor = $convert.base64Decode( - 'ChVMaXN0TG9nTWV0cmljc1JlcXVlc3QSSwoGcGFyZW50GAEgASgJQjPgQQL6QS0KK2Nsb3VkcmVzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1Byb2plY3RSBnBhcmVudBIiCgpwYWdlX3Rva2VuGAIgASgJQgPgQQFSCXBhZ2VUb2tlbhIgCglwYWdlX3NpemUYAyABKAVCA+BBAVIIcGFnZVNpemU='); + 'ChVMaXN0TG9nTWV0cmljc1JlcXVlc3QSSwoGcGFyZW50GAEgASgJQjPgQQL6QS0KK2Nsb3Vkcm' + 'Vzb3VyY2VtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1Byb2plY3RSBnBhcmVudBIiCgpwYWdlX3Rv' + 'a2VuGAIgASgJQgPgQQFSCXBhZ2VUb2tlbhIgCglwYWdlX3NpemUYAyABKAVCA+BBAVIIcGFnZV' + 'NpemU='); + @$core.Deprecated('Use listLogMetricsResponseDescriptor instead') const ListLogMetricsResponse$json = { '1': 'ListLogMetricsResponse', @@ -136,9 +162,11 @@ const ListLogMetricsResponse$json = { }; /// Descriptor for `ListLogMetricsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listLogMetricsResponseDescriptor = - $convert.base64Decode( - 'ChZMaXN0TG9nTWV0cmljc1Jlc3BvbnNlEjYKB21ldHJpY3MYASADKAsyHC5nb29nbGUubG9nZ2luZy52Mi5Mb2dNZXRyaWNSB21ldHJpY3MSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0UGFnZVRva2Vu'); +final $typed_data.Uint8List listLogMetricsResponseDescriptor = $convert.base64Decode( + 'ChZMaXN0TG9nTWV0cmljc1Jlc3BvbnNlEjYKB21ldHJpY3MYASADKAsyHC5nb29nbGUubG9nZ2' + 'luZy52Mi5Mb2dNZXRyaWNSB21ldHJpY3MSJgoPbmV4dF9wYWdlX3Rva2VuGAIgASgJUg1uZXh0' + 'UGFnZVRva2Vu'); + @$core.Deprecated('Use getLogMetricRequestDescriptor instead') const GetLogMetricRequest$json = { '1': 'GetLogMetricRequest', @@ -149,7 +177,9 @@ const GetLogMetricRequest$json = { /// Descriptor for `GetLogMetricRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getLogMetricRequestDescriptor = $convert.base64Decode( - 'ChNHZXRMb2dNZXRyaWNSZXF1ZXN0EkkKC21ldHJpY19uYW1lGAEgASgJQijgQQL6QSIKIGxvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nTWV0cmljUgptZXRyaWNOYW1l'); + 'ChNHZXRMb2dNZXRyaWNSZXF1ZXN0EkkKC21ldHJpY19uYW1lGAEgASgJQijgQQL6QSIKIGxvZ2' + 'dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nTWV0cmljUgptZXRyaWNOYW1l'); + @$core.Deprecated('Use createLogMetricRequestDescriptor instead') const CreateLogMetricRequest$json = { '1': 'CreateLogMetricRequest', @@ -168,9 +198,11 @@ const CreateLogMetricRequest$json = { }; /// Descriptor for `CreateLogMetricRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List createLogMetricRequestDescriptor = - $convert.base64Decode( - 'ChZDcmVhdGVMb2dNZXRyaWNSZXF1ZXN0EkAKBnBhcmVudBgBIAEoCUIo4EEC+kEiEiBsb2dnaW5nLmdvb2dsZWFwaXMuY29tL0xvZ01ldHJpY1IGcGFyZW50EjkKBm1ldHJpYxgCIAEoCzIcLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ01ldHJpY0ID4EECUgZtZXRyaWM='); +final $typed_data.Uint8List createLogMetricRequestDescriptor = $convert.base64Decode( + 'ChZDcmVhdGVMb2dNZXRyaWNSZXF1ZXN0EkAKBnBhcmVudBgBIAEoCUIo4EEC+kEiEiBsb2dnaW' + '5nLmdvb2dsZWFwaXMuY29tL0xvZ01ldHJpY1IGcGFyZW50EjkKBm1ldHJpYxgCIAEoCzIcLmdv' + 'b2dsZS5sb2dnaW5nLnYyLkxvZ01ldHJpY0ID4EECUgZtZXRyaWM='); + @$core.Deprecated('Use updateLogMetricRequestDescriptor instead') const UpdateLogMetricRequest$json = { '1': 'UpdateLogMetricRequest', @@ -189,9 +221,11 @@ const UpdateLogMetricRequest$json = { }; /// Descriptor for `UpdateLogMetricRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List updateLogMetricRequestDescriptor = - $convert.base64Decode( - 'ChZVcGRhdGVMb2dNZXRyaWNSZXF1ZXN0EkkKC21ldHJpY19uYW1lGAEgASgJQijgQQL6QSIKIGxvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nTWV0cmljUgptZXRyaWNOYW1lEjkKBm1ldHJpYxgCIAEoCzIcLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ01ldHJpY0ID4EECUgZtZXRyaWM='); +final $typed_data.Uint8List updateLogMetricRequestDescriptor = $convert.base64Decode( + 'ChZVcGRhdGVMb2dNZXRyaWNSZXF1ZXN0EkkKC21ldHJpY19uYW1lGAEgASgJQijgQQL6QSIKIG' + 'xvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nTWV0cmljUgptZXRyaWNOYW1lEjkKBm1ldHJpYxgC' + 'IAEoCzIcLmdvb2dsZS5sb2dnaW5nLnYyLkxvZ01ldHJpY0ID4EECUgZtZXRyaWM='); + @$core.Deprecated('Use deleteLogMetricRequestDescriptor instead') const DeleteLogMetricRequest$json = { '1': 'DeleteLogMetricRequest', @@ -203,4 +237,5 @@ const DeleteLogMetricRequest$json = { /// Descriptor for `DeleteLogMetricRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteLogMetricRequestDescriptor = $convert.base64Decode( - 'ChZEZWxldGVMb2dNZXRyaWNSZXF1ZXN0EkkKC21ldHJpY19uYW1lGAEgASgJQijgQQL6QSIKIGxvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nTWV0cmljUgptZXRyaWNOYW1l'); + 'ChZEZWxldGVMb2dNZXRyaWNSZXF1ZXN0EkkKC21ldHJpY19uYW1lGAEgASgJQijgQQL6QSIKIG' + 'xvZ2dpbmcuZ29vZ2xlYXBpcy5jb20vTG9nTWV0cmljUgptZXRyaWNOYW1l'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pb.dart index 642d6da7..52c9b209 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pb.dart @@ -1,84 +1,81 @@ -/// +// // Generated code. Do not modify. // source: google/longrunning/operations.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 $2; -import '../rpc/status.pb.dart' as $3; -import '../protobuf/duration.pb.dart' as $4; +import '../protobuf/any.pb.dart' as $49; +import '../protobuf/duration.pb.dart' as $51; +import '../rpc/status.pb.dart' as $57; enum Operation_Result { error, response, notSet } +/// This resource represents a long-running operation that is the result of a +/// network API call. class Operation extends $pb.GeneratedMessage { - static const $core.Map<$core.int, Operation_Result> _Operation_ResultByTag = { - 4: Operation_Result.error, - 5: Operation_Result.response, - 0: Operation_Result.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Operation', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.longrunning'), - createEmptyInstance: create) - ..oo(0, [4, 5]) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$2.Any>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metadata', - subBuilder: $2.Any.create) - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'done') - ..aOM<$3.Status>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'error', - subBuilder: $3.Status.create) - ..aOM<$2.Any>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'response', subBuilder: $2.Any.create) - ..hasRequiredFields = false; - - Operation._() : super(); factory Operation({ $core.String? name, - $2.Any? metadata, + $49.Any? metadata, $core.bool? done, - $3.Status? error, - $2.Any? response, + $57.Status? error, + $49.Any? response, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (metadata != null) { - _result.metadata = metadata; + $result.metadata = metadata; } if (done != null) { - _result.done = done; + $result.done = done; } if (error != null) { - _result.error = error; + $result.error = error; } if (response != null) { - _result.response = response; + $result.response = response; } - return _result; + return $result; } + Operation._() : super(); factory Operation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Operation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Operation_Result> _Operation_ResultByTag = { + 4: Operation_Result.error, + 5: Operation_Result.response, + 0: Operation_Result.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Operation', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.longrunning'), + createEmptyInstance: create) + ..oo(0, [4, 5]) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$49.Any>(2, _omitFieldNames ? '' : 'metadata', + subBuilder: $49.Any.create) + ..aOB(3, _omitFieldNames ? '' : 'done') + ..aOM<$57.Status>(4, _omitFieldNames ? '' : 'error', + subBuilder: $57.Status.create) + ..aOM<$49.Any>(5, _omitFieldNames ? '' : 'response', + subBuilder: $49.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') @@ -87,9 +84,10 @@ class Operation extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Operation copyWith(void Function(Operation) updates) => - super.copyWith((message) => updates(message as Operation)) - as Operation; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Operation)) as Operation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Operation create() => Operation._(); Operation createEmptyInstance() => create(); @@ -102,6 +100,9 @@ class Operation extends $pb.GeneratedMessage { Operation_Result whichResult() => _Operation_ResultByTag[$_whichOneof(0)]!; void clearResult() => clearField($_whichOneof(0)); + /// The server-assigned name, which is only unique within the same service that + /// originally returns it. If you use the default HTTP mapping, the + /// `name` should be a resource name ending with `operations/{unique_id}`. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -114,10 +115,14 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Service-specific metadata associated with the operation. It typically + /// contains progress information and common metadata such as create time. + /// Some services might not provide such metadata. Any method that returns a + /// long-running operation should document the metadata type, if any. @$pb.TagNumber(2) - $2.Any get metadata => $_getN(1); + $49.Any get metadata => $_getN(1); @$pb.TagNumber(2) - set metadata($2.Any v) { + set metadata($49.Any v) { setField(2, v); } @@ -126,8 +131,11 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearMetadata() => clearField(2); @$pb.TagNumber(2) - $2.Any ensureMetadata() => $_ensure(1); + $49.Any ensureMetadata() => $_ensure(1); + /// If the value is `false`, it means the operation is still in progress. + /// If `true`, the operation is completed, and either `error` or `response` is + /// available. @$pb.TagNumber(3) $core.bool get done => $_getBF(2); @$pb.TagNumber(3) @@ -140,10 +148,11 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDone() => clearField(3); + /// The error result of the operation in case of failure or cancellation. @$pb.TagNumber(4) - $3.Status get error => $_getN(3); + $57.Status get error => $_getN(3); @$pb.TagNumber(4) - set error($3.Status v) { + set error($57.Status v) { setField(4, v); } @@ -152,12 +161,20 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearError() => clearField(4); @$pb.TagNumber(4) - $3.Status ensureError() => $_ensure(3); - + $57.Status ensureError() => $_ensure(3); + + /// The normal response of the operation in case of success. If the original + /// method returns no data on success, such as `Delete`, the response is + /// `google.protobuf.Empty`. If the original method is standard + /// `Get`/`Create`/`Update`, the response should be the resource. For other + /// methods, the response should have the type `XxxResponse`, where `Xxx` + /// is the original method name. For example, if the original method name + /// is `TakeSnapshot()`, the inferred response type is + /// `TakeSnapshotResponse`. @$pb.TagNumber(5) - $2.Any get response => $_getN(4); + $49.Any get response => $_getN(4); @$pb.TagNumber(5) - set response($2.Any v) { + set response($49.Any v) { setField(5, v); } @@ -166,42 +183,36 @@ class Operation extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearResponse() => clearField(5); @$pb.TagNumber(5) - $2.Any ensureResponse() => $_ensure(4); + $49.Any ensureResponse() => $_ensure(4); } +/// The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation]. class GetOperationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GetOperationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.longrunning'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - GetOperationRequest._() : super(); factory GetOperationRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + GetOperationRequest._() : super(); factory GetOperationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetOperationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetOperationRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.longrunning'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -211,8 +222,10 @@ class GetOperationRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetOperationRequest copyWith(void Function(GetOperationRequest) updates) => super.copyWith((message) => updates(message as GetOperationRequest)) - as GetOperationRequest; // ignore: deprecated_member_use + as GetOperationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GetOperationRequest create() => GetOperationRequest._(); GetOperationRequest createEmptyInstance() => create(); @@ -223,6 +236,7 @@ class GetOperationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GetOperationRequest? _defaultInstance; + /// The name of the operation resource. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -236,64 +250,48 @@ class GetOperationRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations]. class ListOperationsRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListOperationsRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.longrunning'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filter') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageSize', - $pb.PbFieldType.O3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pageToken') - ..aOS( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') - ..hasRequiredFields = false; - - ListOperationsRequest._() : super(); factory ListOperationsRequest({ $core.String? filter, $core.int? pageSize, $core.String? pageToken, $core.String? name, }) { - final _result = create(); + final $result = create(); if (filter != null) { - _result.filter = filter; + $result.filter = filter; } if (pageSize != null) { - _result.pageSize = pageSize; + $result.pageSize = pageSize; } if (pageToken != null) { - _result.pageToken = pageToken; + $result.pageToken = pageToken; } if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + ListOperationsRequest._() : super(); factory ListOperationsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListOperationsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListOperationsRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.longrunning'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'filter') + ..a<$core.int>(2, _omitFieldNames ? '' : 'pageSize', $pb.PbFieldType.O3) + ..aOS(3, _omitFieldNames ? '' : 'pageToken') + ..aOS(4, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -305,8 +303,10 @@ class ListOperationsRequest extends $pb.GeneratedMessage { ListOperationsRequest copyWith( void Function(ListOperationsRequest) updates) => super.copyWith((message) => updates(message as ListOperationsRequest)) - as ListOperationsRequest; // ignore: deprecated_member_use + as ListOperationsRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListOperationsRequest create() => ListOperationsRequest._(); ListOperationsRequest createEmptyInstance() => create(); @@ -317,6 +317,7 @@ class ListOperationsRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListOperationsRequest? _defaultInstance; + /// The standard list filter. @$pb.TagNumber(1) $core.String get filter => $_getSZ(0); @$pb.TagNumber(1) @@ -329,6 +330,7 @@ class ListOperationsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearFilter() => clearField(1); + /// The standard list page size. @$pb.TagNumber(2) $core.int get pageSize => $_getIZ(1); @$pb.TagNumber(2) @@ -341,6 +343,7 @@ class ListOperationsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPageSize() => clearField(2); + /// The standard list page token. @$pb.TagNumber(3) $core.String get pageToken => $_getSZ(2); @$pb.TagNumber(3) @@ -353,6 +356,7 @@ class ListOperationsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearPageToken() => clearField(3); + /// The name of the operation's parent resource. @$pb.TagNumber(4) $core.String get name => $_getSZ(3); @$pb.TagNumber(4) @@ -366,47 +370,39 @@ class ListOperationsRequest extends $pb.GeneratedMessage { void clearName() => clearField(4); } +/// The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations]. class ListOperationsResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListOperationsResponse', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.longrunning'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operations', - $pb.PbFieldType.PM, - subBuilder: Operation.create) - ..aOS(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nextPageToken') - ..hasRequiredFields = false; - - ListOperationsResponse._() : super(); factory ListOperationsResponse({ $core.Iterable? operations, $core.String? nextPageToken, }) { - final _result = create(); + final $result = create(); if (operations != null) { - _result.operations.addAll(operations); + $result.operations.addAll(operations); } if (nextPageToken != null) { - _result.nextPageToken = nextPageToken; + $result.nextPageToken = nextPageToken; } - return _result; + return $result; } + ListOperationsResponse._() : super(); factory ListOperationsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListOperationsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListOperationsResponse', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.longrunning'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'operations', $pb.PbFieldType.PM, + subBuilder: Operation.create) + ..aOS(2, _omitFieldNames ? '' : 'nextPageToken') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -418,8 +414,10 @@ class ListOperationsResponse extends $pb.GeneratedMessage { ListOperationsResponse copyWith( void Function(ListOperationsResponse) updates) => super.copyWith((message) => updates(message as ListOperationsResponse)) - as ListOperationsResponse; // ignore: deprecated_member_use + as ListOperationsResponse; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListOperationsResponse create() => ListOperationsResponse._(); ListOperationsResponse createEmptyInstance() => create(); @@ -430,9 +428,11 @@ class ListOperationsResponse extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ListOperationsResponse? _defaultInstance; + /// A list of operations that matches the specified filter in the request. @$pb.TagNumber(1) $core.List get operations => $_getList(0); + /// The standard List next-page token. @$pb.TagNumber(2) $core.String get nextPageToken => $_getSZ(1); @$pb.TagNumber(2) @@ -446,39 +446,33 @@ class ListOperationsResponse extends $pb.GeneratedMessage { void clearNextPageToken() => clearField(2); } +/// The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]. class CancelOperationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CancelOperationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.longrunning'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - CancelOperationRequest._() : super(); factory CancelOperationRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + CancelOperationRequest._() : super(); factory CancelOperationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CancelOperationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CancelOperationRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.longrunning'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -490,8 +484,10 @@ class CancelOperationRequest extends $pb.GeneratedMessage { CancelOperationRequest copyWith( void Function(CancelOperationRequest) updates) => super.copyWith((message) => updates(message as CancelOperationRequest)) - as CancelOperationRequest; // ignore: deprecated_member_use + as CancelOperationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static CancelOperationRequest create() => CancelOperationRequest._(); CancelOperationRequest createEmptyInstance() => create(); @@ -502,6 +498,7 @@ class CancelOperationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static CancelOperationRequest? _defaultInstance; + /// The name of the operation resource to be cancelled. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -515,39 +512,33 @@ class CancelOperationRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation]. class DeleteOperationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DeleteOperationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.longrunning'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..hasRequiredFields = false; - - DeleteOperationRequest._() : super(); factory DeleteOperationRequest({ $core.String? name, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } - return _result; + return $result; } + DeleteOperationRequest._() : super(); factory DeleteOperationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteOperationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DeleteOperationRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.longrunning'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -559,8 +550,10 @@ class DeleteOperationRequest extends $pb.GeneratedMessage { DeleteOperationRequest copyWith( void Function(DeleteOperationRequest) updates) => super.copyWith((message) => updates(message as DeleteOperationRequest)) - as DeleteOperationRequest; // ignore: deprecated_member_use + as DeleteOperationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DeleteOperationRequest create() => DeleteOperationRequest._(); DeleteOperationRequest createEmptyInstance() => create(); @@ -571,6 +564,7 @@ class DeleteOperationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static DeleteOperationRequest? _defaultInstance; + /// The name of the operation resource to be deleted. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -584,49 +578,39 @@ class DeleteOperationRequest extends $pb.GeneratedMessage { void clearName() => clearField(1); } +/// The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation]. class WaitOperationRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'WaitOperationRequest', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.longrunning'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM<$4.Duration>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'timeout', - subBuilder: $4.Duration.create) - ..hasRequiredFields = false; - - WaitOperationRequest._() : super(); factory WaitOperationRequest({ $core.String? name, - $4.Duration? timeout, + $51.Duration? timeout, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (timeout != null) { - _result.timeout = timeout; + $result.timeout = timeout; } - return _result; + return $result; } + WaitOperationRequest._() : super(); factory WaitOperationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory WaitOperationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'WaitOperationRequest', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.longrunning'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM<$51.Duration>(2, _omitFieldNames ? '' : 'timeout', + subBuilder: $51.Duration.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') @@ -637,8 +621,10 @@ class WaitOperationRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') WaitOperationRequest copyWith(void Function(WaitOperationRequest) updates) => super.copyWith((message) => updates(message as WaitOperationRequest)) - as WaitOperationRequest; // ignore: deprecated_member_use + as WaitOperationRequest; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static WaitOperationRequest create() => WaitOperationRequest._(); WaitOperationRequest createEmptyInstance() => create(); @@ -649,6 +635,7 @@ class WaitOperationRequest extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static WaitOperationRequest? _defaultInstance; + /// The name of the operation resource to wait on. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -661,10 +648,13 @@ class WaitOperationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The maximum duration to wait before timing out. If left blank, the wait + /// will be at most the time permitted by the underlying HTTP/RPC protocol. + /// If RPC context deadline is also specified, the shorter one will be used. @$pb.TagNumber(2) - $4.Duration get timeout => $_getN(1); + $51.Duration get timeout => $_getN(1); @$pb.TagNumber(2) - set timeout($4.Duration v) { + set timeout($51.Duration v) { setField(2, v); } @@ -673,51 +663,51 @@ class WaitOperationRequest extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearTimeout() => clearField(2); @$pb.TagNumber(2) - $4.Duration ensureTimeout() => $_ensure(1); + $51.Duration ensureTimeout() => $_ensure(1); } +/// A message representing the message types used by a long-running operation. +/// +/// Example: +/// +/// rpc LongRunningRecognize(LongRunningRecognizeRequest) +/// returns (google.longrunning.Operation) { +/// option (google.longrunning.operation_info) = { +/// response_type: "LongRunningRecognizeResponse" +/// metadata_type: "LongRunningRecognizeMetadata" +/// }; +/// } class OperationInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OperationInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.longrunning'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'responseType') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metadataType') - ..hasRequiredFields = false; - - OperationInfo._() : super(); factory OperationInfo({ $core.String? responseType, $core.String? metadataType, }) { - final _result = create(); + final $result = create(); if (responseType != null) { - _result.responseType = responseType; + $result.responseType = responseType; } if (metadataType != null) { - _result.metadataType = metadataType; + $result.metadataType = metadataType; } - return _result; + return $result; } + OperationInfo._() : super(); factory OperationInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OperationInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OperationInfo', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.longrunning'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'responseType') + ..aOS(2, _omitFieldNames ? '' : 'metadataType') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -727,8 +717,10 @@ class OperationInfo extends $pb.GeneratedMessage { 'Will be removed in next major version') OperationInfo copyWith(void Function(OperationInfo) updates) => super.copyWith((message) => updates(message as OperationInfo)) - as OperationInfo; // ignore: deprecated_member_use + as OperationInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OperationInfo create() => OperationInfo._(); OperationInfo createEmptyInstance() => create(); @@ -739,6 +731,14 @@ class OperationInfo extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static OperationInfo? _defaultInstance; + /// Required. The message name of the primary return type for this + /// long-running operation. + /// This type will be used to deserialize the LRO's response. + /// + /// If the response is in a different package from the rpc, a fully-qualified + /// message name must be used (e.g. `google.protobuf.Struct`). + /// + /// Note: Altering this value constitutes a breaking change. @$pb.TagNumber(1) $core.String get responseType => $_getSZ(0); @$pb.TagNumber(1) @@ -751,6 +751,13 @@ class OperationInfo extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearResponseType() => clearField(1); + /// Required. The message name of the metadata type for this long-running + /// operation. + /// + /// If the response is in a different package from the rpc, a fully-qualified + /// message name must be used (e.g. `google.protobuf.Struct`). + /// + /// Note: Altering this value constitutes a breaking change. @$pb.TagNumber(2) $core.String get metadataType => $_getSZ(1); @$pb.TagNumber(2) @@ -766,12 +773,8 @@ class OperationInfo extends $pb.GeneratedMessage { class Operations { static final operationInfo = $pb.Extension( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf.MethodOptions', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'operationInfo', + _omitMessageNames ? '' : 'google.protobuf.MethodOptions', + _omitFieldNames ? '' : 'operationInfo', 1049, $pb.PbFieldType.OM, defaultOrMaker: OperationInfo.getDefault, @@ -780,3 +783,7 @@ class Operations { registry.add(operationInfo); } } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbenum.dart index ca1c3be3..90c1cd54 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/longrunning/operations.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbgrpc.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbgrpc.dart index 74a42907..a4e6c79d 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbgrpc.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbgrpc.dart @@ -1,19 +1,26 @@ -/// +// // Generated code. Do not modify. // source: google/longrunning/operations.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -import 'dart:async' as $async; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:async' as $async; import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; -import 'operations.pb.dart' as $0; +import 'package:protobuf/protobuf.dart' as $pb; + import '../protobuf/empty.pb.dart' as $1; +import 'operations.pb.dart' as $0; + export 'operations.pb.dart'; +@$pb.GrpcServiceName('google.longrunning.Operations') class OperationsClient extends $grpc.Client { static final _$listOperations = $grpc.ClientMethod<$0.ListOperationsRequest, $0.ListOperationsResponse>( @@ -78,6 +85,7 @@ class OperationsClient extends $grpc.Client { } } +@$pb.GrpcServiceName('google.longrunning.Operations') abstract class OperationsServiceBase extends $grpc.Service { $core.String get $name => 'google.longrunning.Operations'; diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbjson.dart index 9acc3032..5aec5465 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/longrunning/operations.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/longrunning/operations.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 operationDescriptor instead') @@ -49,7 +53,11 @@ const Operation$json = { /// Descriptor for `Operation`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List operationDescriptor = $convert.base64Decode( - 'CglPcGVyYXRpb24SEgoEbmFtZRgBIAEoCVIEbmFtZRIwCghtZXRhZGF0YRgCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlSCG1ldGFkYXRhEhIKBGRvbmUYAyABKAhSBGRvbmUSKgoFZXJyb3IYBCABKAsyEi5nb29nbGUucnBjLlN0YXR1c0gAUgVlcnJvchIyCghyZXNwb25zZRgFIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlIAFIIcmVzcG9uc2VCCAoGcmVzdWx0'); + 'CglPcGVyYXRpb24SEgoEbmFtZRgBIAEoCVIEbmFtZRIwCghtZXRhZGF0YRgCIAEoCzIULmdvb2' + 'dsZS5wcm90b2J1Zi5BbnlSCG1ldGFkYXRhEhIKBGRvbmUYAyABKAhSBGRvbmUSKgoFZXJyb3IY' + 'BCABKAsyEi5nb29nbGUucnBjLlN0YXR1c0gAUgVlcnJvchIyCghyZXNwb25zZRgFIAEoCzIULm' + 'dvb2dsZS5wcm90b2J1Zi5BbnlIAFIIcmVzcG9uc2VCCAoGcmVzdWx0'); + @$core.Deprecated('Use getOperationRequestDescriptor instead') const GetOperationRequest$json = { '1': 'GetOperationRequest', @@ -61,6 +69,7 @@ const GetOperationRequest$json = { /// Descriptor for `GetOperationRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getOperationRequestDescriptor = $convert .base64Decode('ChNHZXRPcGVyYXRpb25SZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWU='); + @$core.Deprecated('Use listOperationsRequestDescriptor instead') const ListOperationsRequest$json = { '1': 'ListOperationsRequest', @@ -74,7 +83,10 @@ const ListOperationsRequest$json = { /// Descriptor for `ListOperationsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listOperationsRequestDescriptor = $convert.base64Decode( - 'ChVMaXN0T3BlcmF0aW9uc1JlcXVlc3QSEgoEbmFtZRgEIAEoCVIEbmFtZRIWCgZmaWx0ZXIYASABKAlSBmZpbHRlchIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4YAyABKAlSCXBhZ2VUb2tlbg=='); + 'ChVMaXN0T3BlcmF0aW9uc1JlcXVlc3QSEgoEbmFtZRgEIAEoCVIEbmFtZRIWCgZmaWx0ZXIYAS' + 'ABKAlSBmZpbHRlchIbCglwYWdlX3NpemUYAiABKAVSCHBhZ2VTaXplEh0KCnBhZ2VfdG9rZW4Y' + 'AyABKAlSCXBhZ2VUb2tlbg=='); + @$core.Deprecated('Use listOperationsResponseDescriptor instead') const ListOperationsResponse$json = { '1': 'ListOperationsResponse', @@ -92,9 +104,11 @@ const ListOperationsResponse$json = { }; /// Descriptor for `ListOperationsResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List listOperationsResponseDescriptor = - $convert.base64Decode( - 'ChZMaXN0T3BlcmF0aW9uc1Jlc3BvbnNlEj0KCm9wZXJhdGlvbnMYASADKAsyHS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0aW9uUgpvcGVyYXRpb25zEiYKD25leHRfcGFnZV90b2tlbhgCIAEoCVINbmV4dFBhZ2VUb2tlbg=='); +final $typed_data.Uint8List listOperationsResponseDescriptor = $convert.base64Decode( + 'ChZMaXN0T3BlcmF0aW9uc1Jlc3BvbnNlEj0KCm9wZXJhdGlvbnMYASADKAsyHS5nb29nbGUubG' + '9uZ3J1bm5pbmcuT3BlcmF0aW9uUgpvcGVyYXRpb25zEiYKD25leHRfcGFnZV90b2tlbhgCIAEo' + 'CVINbmV4dFBhZ2VUb2tlbg=='); + @$core.Deprecated('Use cancelOperationRequestDescriptor instead') const CancelOperationRequest$json = { '1': 'CancelOperationRequest', @@ -107,6 +121,7 @@ const CancelOperationRequest$json = { final $typed_data.Uint8List cancelOperationRequestDescriptor = $convert.base64Decode( 'ChZDYW5jZWxPcGVyYXRpb25SZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWU='); + @$core.Deprecated('Use deleteOperationRequestDescriptor instead') const DeleteOperationRequest$json = { '1': 'DeleteOperationRequest', @@ -119,6 +134,7 @@ const DeleteOperationRequest$json = { final $typed_data.Uint8List deleteOperationRequestDescriptor = $convert.base64Decode( 'ChZEZWxldGVPcGVyYXRpb25SZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWU='); + @$core.Deprecated('Use waitOperationRequestDescriptor instead') const WaitOperationRequest$json = { '1': 'WaitOperationRequest', @@ -137,7 +153,9 @@ const WaitOperationRequest$json = { /// Descriptor for `WaitOperationRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List waitOperationRequestDescriptor = $convert.base64Decode( - 'ChRXYWl0T3BlcmF0aW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjMKB3RpbWVvdXQYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SB3RpbWVvdXQ='); + 'ChRXYWl0T3BlcmF0aW9uUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEjMKB3RpbWVvdXQYAi' + 'ABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SB3RpbWVvdXQ='); + @$core.Deprecated('Use operationInfoDescriptor instead') const OperationInfo$json = { '1': 'OperationInfo', @@ -149,4 +167,5 @@ const OperationInfo$json = { /// Descriptor for `OperationInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List operationInfoDescriptor = $convert.base64Decode( - 'Cg1PcGVyYXRpb25JbmZvEiMKDXJlc3BvbnNlX3R5cGUYASABKAlSDHJlc3BvbnNlVHlwZRIjCg1tZXRhZGF0YV90eXBlGAIgASgJUgxtZXRhZGF0YVR5cGU='); + 'Cg1PcGVyYXRpb25JbmZvEiMKDXJlc3BvbnNlX3R5cGUYASABKAlSDHJlc3BvbnNlVHlwZRIjCg' + '1tZXRhZGF0YV90eXBlGAIgASgJUgxtZXRhZGF0YVR5cGU='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pb.dart index 4cbe83a3..9f9d4c72 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pb.dart @@ -1,61 +1,138 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/any.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// `Any` contains an arbitrary serialized protocol buffer message along with a +/// URL that describes the type of the serialized message. +/// +/// Protobuf library provides support to pack/unpack Any values in the form +/// of utility functions or additional generated methods of the Any type. +/// +/// Example 1: Pack and unpack a message in C++. +/// +/// Foo foo = ...; +/// Any any; +/// any.PackFrom(foo); +/// ... +/// if (any.UnpackTo(&foo)) { +/// ... +/// } +/// +/// Example 2: Pack and unpack a message in Java. +/// +/// Foo foo = ...; +/// Any any = Any.pack(foo); +/// ... +/// if (any.is(Foo.class)) { +/// foo = any.unpack(Foo.class); +/// } +/// // or ... +/// if (any.isSameTypeAs(Foo.getDefaultInstance())) { +/// foo = any.unpack(Foo.getDefaultInstance()); +/// } +/// +/// Example 3: Pack and unpack a message in Python. +/// +/// foo = Foo(...) +/// any = Any() +/// any.Pack(foo) +/// ... +/// if any.Is(Foo.DESCRIPTOR): +/// any.Unpack(foo) +/// ... +/// +/// Example 4: Pack and unpack a message in Go +/// +/// foo := &pb.Foo{...} +/// any, err := anypb.New(foo) +/// if err != nil { +/// ... +/// } +/// ... +/// foo := &pb.Foo{} +/// if err := any.UnmarshalTo(foo); err != nil { +/// ... +/// } +/// +/// The pack methods provided by protobuf library will by default use +/// 'type.googleapis.com/full.type.name' as the type URL and the unpack +/// methods only use the fully qualified type name after the last '/' +/// in the type URL, for example "foo.bar.com/x/y.z" will yield type +/// name "y.z". +/// +/// JSON +/// ==== +/// The JSON representation of an `Any` value uses the regular +/// representation of the deserialized, embedded message, with an +/// additional field `@type` which contains the type URL. Example: +/// +/// package google.profile; +/// message Person { +/// string first_name = 1; +/// string last_name = 2; +/// } +/// +/// { +/// "@type": "type.googleapis.com/google.profile.Person", +/// "firstName": , +/// "lastName": +/// } +/// +/// If the embedded message type is well-known and has a custom JSON +/// representation, that representation will be embedded adding a field +/// `value` which holds the custom JSON in addition to the `@type` +/// field. Example (for message [google.protobuf.Duration][]): +/// +/// { +/// "@type": "type.googleapis.com/google.protobuf.Duration", +/// "value": "1.212s" +/// } class Any extends $pb.GeneratedMessage with $mixin.AnyMixin { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Any', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.AnyMixin.toProto3JsonHelper, - fromProto3Json: $mixin.AnyMixin.fromProto3JsonHelper) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'typeUrl') - ..a<$core.List<$core.int>>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'value', - $pb.PbFieldType.OY) - ..hasRequiredFields = false; - - Any._() : super(); factory Any({ $core.String? typeUrl, $core.List<$core.int>? value, }) { - final _result = create(); + final $result = create(); if (typeUrl != null) { - _result.typeUrl = typeUrl; + $result.typeUrl = typeUrl; } if (value != null) { - _result.value = value; + $result.value = value; } - return _result; + return $result; } + 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') @@ -64,9 +141,10 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin { '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; // ignore: deprecated_member_use + 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(); @@ -76,6 +154,34 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Any? _defaultInstance; + /// A URL/resource name that uniquely identifies the type of the serialized + /// protocol buffer message. This string must contain at least + /// one "/" character. The last segment of the URL's path must represent + /// the fully qualified name of the type (as in + /// `path/google.protobuf.Duration`). The name should be in a canonical form + /// (e.g., leading "." is not accepted). + /// + /// In practice, teams usually precompile into the binary all types that they + /// expect it to use in the context of Any. However, for URLs which use the + /// scheme `http`, `https`, or no scheme, one can optionally set up a type + /// server that maps type URLs to message definitions as follows: + /// + /// * If no scheme is provided, `https` is assumed. + /// * An HTTP GET on the URL must yield a [google.protobuf.Type][] + /// value in binary format, or produce an error. + /// * Applications are allowed to cache lookup results based on the + /// URL, or have them precompiled into a binary to avoid any + /// lookup. Therefore, binary compatibility needs to be preserved + /// on changes to types. (Use versioned type names to manage + /// breaking changes.) + /// + /// Note: this functionality is not currently available in the official + /// protobuf release, and it is not used for type URLs beginning with + /// type.googleapis.com. As of May 2023, there are no widely used type server + /// implementations and no plans to implement one. + /// + /// Schemes other than `http`, `https` (or the empty scheme) might be + /// used with implementation specific semantics. @$pb.TagNumber(1) $core.String get typeUrl => $_getSZ(0); @$pb.TagNumber(1) @@ -88,6 +194,7 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin { @$pb.TagNumber(1) void clearTypeUrl() => clearField(1); + /// Must be a valid serialized protocol buffer of the above specified type. @$pb.TagNumber(2) $core.List<$core.int> get value => $_getN(1); @$pb.TagNumber(2) @@ -111,3 +218,7 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin { return result; } } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pbenum.dart index e03f029c..3744f124 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/any.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pbjson.dart index cd6a196b..eafbc6bd 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/any.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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') diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pb.dart index e741e1bb..e74fcf53 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pb.dart @@ -1,70 +1,64 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/any_test.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'any.pb.dart' as $0; +import 'any.pb.dart' as $49; class TestAny extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TestAny', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_unittest'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'int32Value', - $pb.PbFieldType.O3) - ..aOM<$0.Any>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'anyValue', - subBuilder: $0.Any.create) - ..pc<$0.Any>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedAnyValue', - $pb.PbFieldType.PM, - subBuilder: $0.Any.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'text') - ..hasRequiredFields = false; - - TestAny._() : super(); factory TestAny({ $core.int? int32Value, - $0.Any? anyValue, - $core.Iterable<$0.Any>? repeatedAnyValue, + $49.Any? anyValue, + $core.Iterable<$49.Any>? repeatedAnyValue, $core.String? text, }) { - final _result = create(); + final $result = create(); if (int32Value != null) { - _result.int32Value = int32Value; + $result.int32Value = int32Value; } if (anyValue != null) { - _result.anyValue = anyValue; + $result.anyValue = anyValue; } if (repeatedAnyValue != null) { - _result.repeatedAnyValue.addAll(repeatedAnyValue); + $result.repeatedAnyValue.addAll(repeatedAnyValue); } if (text != null) { - _result.text = text; + $result.text = text; } - return _result; + return $result; } + TestAny._() : super(); factory TestAny.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TestAny.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAny', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'protobuf_unittest'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'int32Value', $pb.PbFieldType.O3) + ..aOM<$49.Any>(2, _omitFieldNames ? '' : 'anyValue', + subBuilder: $49.Any.create) + ..pc<$49.Any>( + 3, _omitFieldNames ? '' : 'repeatedAnyValue', $pb.PbFieldType.PM, + subBuilder: $49.Any.create) + ..aOS(4, _omitFieldNames ? '' : 'text') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -73,9 +67,10 @@ class TestAny extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') TestAny copyWith(void Function(TestAny) updates) => - super.copyWith((message) => updates(message as TestAny)) - as TestAny; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as TestAny)) as TestAny; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TestAny create() => TestAny._(); TestAny createEmptyInstance() => create(); @@ -98,9 +93,9 @@ class TestAny extends $pb.GeneratedMessage { void clearInt32Value() => clearField(1); @$pb.TagNumber(2) - $0.Any get anyValue => $_getN(1); + $49.Any get anyValue => $_getN(1); @$pb.TagNumber(2) - set anyValue($0.Any v) { + set anyValue($49.Any v) { setField(2, v); } @@ -109,10 +104,10 @@ class TestAny extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearAnyValue() => clearField(2); @$pb.TagNumber(2) - $0.Any ensureAnyValue() => $_ensure(1); + $49.Any ensureAnyValue() => $_ensure(1); @$pb.TagNumber(3) - $core.List<$0.Any> get repeatedAnyValue => $_getList(2); + $core.List<$49.Any> get repeatedAnyValue => $_getList(2); @$pb.TagNumber(4) $core.String get text => $_getSZ(3); @@ -126,3 +121,7 @@ class TestAny extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearText() => clearField(4); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pbenum.dart index f4ee4d76..074f93d5 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/any_test.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pbjson.dart index 5f366412..a22b4153 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/any_test.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/any_test.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 testAnyDescriptor instead') @@ -36,4 +40,7 @@ const TestAny$json = { /// Descriptor for `TestAny`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List testAnyDescriptor = $convert.base64Decode( - 'CgdUZXN0QW55Eh8KC2ludDMyX3ZhbHVlGAEgASgFUgppbnQzMlZhbHVlEjEKCWFueV92YWx1ZRgCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlSCGFueVZhbHVlEkIKEnJlcGVhdGVkX2FueV92YWx1ZRgDIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlSEHJlcGVhdGVkQW55VmFsdWUSEgoEdGV4dBgEIAEoCVIEdGV4dA=='); + 'CgdUZXN0QW55Eh8KC2ludDMyX3ZhbHVlGAEgASgFUgppbnQzMlZhbHVlEjEKCWFueV92YWx1ZR' + 'gCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlSCGFueVZhbHVlEkIKEnJlcGVhdGVkX2FueV92' + 'YWx1ZRgDIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlSEHJlcGVhdGVkQW55VmFsdWUSEgoEdG' + 'V4dBgEIAEoCVIEdGV4dA=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pb.dart index a7aaabe0..39747632 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pb.dart @@ -1,87 +1,94 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/api.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'type.pb.dart' as $0; -import 'source_context.pb.dart' as $1; - -import 'type.pbenum.dart' as $0; +import 'source_context.pb.dart' as $82; +import 'type.pb.dart' as $83; +import 'type.pbenum.dart' as $83; +/// Api is a light-weight descriptor for an API Interface. +/// +/// Interfaces are also described as "protocol buffer services" in some contexts, +/// such as by the "service" keyword in a .proto file, but they are different +/// from API Services, which represent a concrete implementation of an interface +/// as opposed to simply a description of methods and bindings. They are also +/// sometimes simply referred to as "APIs" in other contexts, such as the name of +/// this message itself. See https://cloud.google.com/apis/design/glossary for +/// detailed terminology. class Api extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Api', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'methods', $pb.PbFieldType.PM, - subBuilder: Method.create) - ..pc<$0.Option>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'options', - $pb.PbFieldType.PM, - subBuilder: $0.Option.create) - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'version') - ..aOM<$1.SourceContext>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sourceContext', subBuilder: $1.SourceContext.create) - ..pc(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mixins', $pb.PbFieldType.PM, subBuilder: Mixin.create) - ..e<$0.Syntax>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $0.Syntax.SYNTAX_PROTO2, valueOf: $0.Syntax.valueOf, enumValues: $0.Syntax.values) - ..hasRequiredFields = false; - - Api._() : super(); factory Api({ $core.String? name, $core.Iterable? methods, - $core.Iterable<$0.Option>? options, + $core.Iterable<$83.Option>? options, $core.String? version, - $1.SourceContext? sourceContext, + $82.SourceContext? sourceContext, $core.Iterable? mixins, - $0.Syntax? syntax, + $83.Syntax? syntax, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (methods != null) { - _result.methods.addAll(methods); + $result.methods.addAll(methods); } if (options != null) { - _result.options.addAll(options); + $result.options.addAll(options); } if (version != null) { - _result.version = version; + $result.version = version; } if (sourceContext != null) { - _result.sourceContext = sourceContext; + $result.sourceContext = sourceContext; } if (mixins != null) { - _result.mixins.addAll(mixins); + $result.mixins.addAll(mixins); } if (syntax != null) { - _result.syntax = syntax; + $result.syntax = syntax; } - return _result; + return $result; } + Api._() : super(); factory Api.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Api.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Api', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pc(2, _omitFieldNames ? '' : 'methods', $pb.PbFieldType.PM, + subBuilder: Method.create) + ..pc<$83.Option>(3, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, + subBuilder: $83.Option.create) + ..aOS(4, _omitFieldNames ? '' : 'version') + ..aOM<$82.SourceContext>(5, _omitFieldNames ? '' : 'sourceContext', + subBuilder: $82.SourceContext.create) + ..pc(6, _omitFieldNames ? '' : 'mixins', $pb.PbFieldType.PM, + subBuilder: Mixin.create) + ..e<$83.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, + defaultOrMaker: $83.Syntax.SYNTAX_PROTO2, + valueOf: $83.Syntax.valueOf, + enumValues: $83.Syntax.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -90,9 +97,10 @@ class Api extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Api copyWith(void Function(Api) updates) => - super.copyWith((message) => updates(message as Api)) - as Api; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Api)) as Api; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Api create() => Api._(); Api createEmptyInstance() => create(); @@ -102,6 +110,8 @@ class Api extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Api? _defaultInstance; + /// The fully qualified name of this interface, including package name + /// followed by the interface's simple name. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -114,12 +124,33 @@ class Api extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// The methods of this interface, in unspecified order. @$pb.TagNumber(2) $core.List get methods => $_getList(1); + /// Any metadata attached to the interface. @$pb.TagNumber(3) - $core.List<$0.Option> get options => $_getList(2); - + $core.List<$83.Option> get options => $_getList(2); + + /// A version string for this interface. If specified, must have the form + /// `major-version.minor-version`, as in `1.10`. If the minor version is + /// omitted, it defaults to zero. If the entire version field is empty, the + /// major version is derived from the package name, as outlined below. If the + /// field is not empty, the version in the package name will be verified to be + /// consistent with what is provided here. + /// + /// The versioning schema uses [semantic + /// versioning](http://semver.org) where the major version number + /// indicates a breaking change and the minor version an additive, + /// non-breaking change. Both version numbers are signals to users + /// what to expect from different versions, and should be carefully + /// chosen based on the product plan. + /// + /// The major version is also reflected in the package name of the + /// interface, which must end in `v`, as in + /// `google.feature.v1`. For major versions 0 and 1, the suffix can + /// be omitted. Zero major versions must only be used for + /// experimental, non-GA interfaces. @$pb.TagNumber(4) $core.String get version => $_getSZ(3); @$pb.TagNumber(4) @@ -132,10 +163,12 @@ class Api extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearVersion() => clearField(4); + /// Source context for the protocol buffer service represented by this + /// message. @$pb.TagNumber(5) - $1.SourceContext get sourceContext => $_getN(4); + $82.SourceContext get sourceContext => $_getN(4); @$pb.TagNumber(5) - set sourceContext($1.SourceContext v) { + set sourceContext($82.SourceContext v) { setField(5, v); } @@ -144,15 +177,17 @@ class Api extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearSourceContext() => clearField(5); @$pb.TagNumber(5) - $1.SourceContext ensureSourceContext() => $_ensure(4); + $82.SourceContext ensureSourceContext() => $_ensure(4); + /// Included interfaces. See [Mixin][]. @$pb.TagNumber(6) $core.List get mixins => $_getList(5); + /// The source syntax of the service. @$pb.TagNumber(7) - $0.Syntax get syntax => $_getN(6); + $83.Syntax get syntax => $_getN(6); @$pb.TagNumber(7) - set syntax($0.Syntax v) { + set syntax($83.Syntax v) { setField(7, v); } @@ -162,81 +197,67 @@ class Api extends $pb.GeneratedMessage { void clearSyntax() => clearField(7); } +/// Method represents a method of an API interface. class Method extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Method', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requestTypeUrl') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'requestStreaming') - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'responseTypeUrl') - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'responseStreaming') - ..pc<$0.Option>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $0.Option.create) - ..e<$0.Syntax>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $0.Syntax.SYNTAX_PROTO2, valueOf: $0.Syntax.valueOf, enumValues: $0.Syntax.values) - ..hasRequiredFields = false; - - Method._() : super(); factory Method({ $core.String? name, $core.String? requestTypeUrl, $core.bool? requestStreaming, $core.String? responseTypeUrl, $core.bool? responseStreaming, - $core.Iterable<$0.Option>? options, - $0.Syntax? syntax, + $core.Iterable<$83.Option>? options, + $83.Syntax? syntax, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (requestTypeUrl != null) { - _result.requestTypeUrl = requestTypeUrl; + $result.requestTypeUrl = requestTypeUrl; } if (requestStreaming != null) { - _result.requestStreaming = requestStreaming; + $result.requestStreaming = requestStreaming; } if (responseTypeUrl != null) { - _result.responseTypeUrl = responseTypeUrl; + $result.responseTypeUrl = responseTypeUrl; } if (responseStreaming != null) { - _result.responseStreaming = responseStreaming; + $result.responseStreaming = responseStreaming; } if (options != null) { - _result.options.addAll(options); + $result.options.addAll(options); } if (syntax != null) { - _result.syntax = syntax; + $result.syntax = syntax; } - return _result; + return $result; } + Method._() : super(); factory Method.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Method.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Method', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'requestTypeUrl') + ..aOB(3, _omitFieldNames ? '' : 'requestStreaming') + ..aOS(4, _omitFieldNames ? '' : 'responseTypeUrl') + ..aOB(5, _omitFieldNames ? '' : 'responseStreaming') + ..pc<$83.Option>(6, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, + subBuilder: $83.Option.create) + ..e<$83.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, + defaultOrMaker: $83.Syntax.SYNTAX_PROTO2, + valueOf: $83.Syntax.valueOf, + enumValues: $83.Syntax.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -245,9 +266,10 @@ class Method extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Method copyWith(void Function(Method) updates) => - super.copyWith((message) => updates(message as Method)) - as Method; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Method)) as Method; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Method create() => Method._(); Method createEmptyInstance() => create(); @@ -257,6 +279,7 @@ class Method extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Method? _defaultInstance; + /// The simple name of this method. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -269,6 +292,7 @@ class Method extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// A URL of the input message type. @$pb.TagNumber(2) $core.String get requestTypeUrl => $_getSZ(1); @$pb.TagNumber(2) @@ -281,6 +305,7 @@ class Method extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRequestTypeUrl() => clearField(2); + /// If true, the request is streamed. @$pb.TagNumber(3) $core.bool get requestStreaming => $_getBF(2); @$pb.TagNumber(3) @@ -293,6 +318,7 @@ class Method extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearRequestStreaming() => clearField(3); + /// The URL of the output message type. @$pb.TagNumber(4) $core.String get responseTypeUrl => $_getSZ(3); @$pb.TagNumber(4) @@ -305,6 +331,7 @@ class Method extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearResponseTypeUrl() => clearField(4); + /// If true, the response is streamed. @$pb.TagNumber(5) $core.bool get responseStreaming => $_getBF(4); @$pb.TagNumber(5) @@ -317,13 +344,15 @@ class Method extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearResponseStreaming() => clearField(5); + /// Any metadata attached to the method. @$pb.TagNumber(6) - $core.List<$0.Option> get options => $_getList(5); + $core.List<$83.Option> get options => $_getList(5); + /// The source syntax of this method. @$pb.TagNumber(7) - $0.Syntax get syntax => $_getN(6); + $83.Syntax get syntax => $_getN(6); @$pb.TagNumber(7) - set syntax($0.Syntax v) { + set syntax($83.Syntax v) { setField(7, v); } @@ -333,48 +362,115 @@ class Method extends $pb.GeneratedMessage { void clearSyntax() => clearField(7); } +/// Declares an API Interface to be included in this interface. The including +/// interface must redeclare all the methods from the included interface, but +/// documentation and options are inherited as follows: +/// +/// - If after comment and whitespace stripping, the documentation +/// string of the redeclared method is empty, it will be inherited +/// from the original method. +/// +/// - Each annotation belonging to the service config (http, +/// visibility) which is not set in the redeclared method will be +/// inherited. +/// +/// - If an http annotation is inherited, the path pattern will be +/// modified as follows. Any version prefix will be replaced by the +/// version of the including interface plus the [root][] path if +/// specified. +/// +/// Example of a simple mixin: +/// +/// package google.acl.v1; +/// service AccessControl { +/// // Get the underlying ACL object. +/// rpc GetAcl(GetAclRequest) returns (Acl) { +/// option (google.api.http).get = "/v1/{resource=**}:getAcl"; +/// } +/// } +/// +/// package google.storage.v2; +/// service Storage { +/// rpc GetAcl(GetAclRequest) returns (Acl); +/// +/// // Get a data record. +/// rpc GetData(GetDataRequest) returns (Data) { +/// option (google.api.http).get = "/v2/{resource=**}"; +/// } +/// } +/// +/// Example of a mixin configuration: +/// +/// apis: +/// - name: google.storage.v2.Storage +/// mixins: +/// - name: google.acl.v1.AccessControl +/// +/// The mixin construct implies that all methods in `AccessControl` are +/// also declared with same name and request/response types in +/// `Storage`. A documentation generator or annotation processor will +/// see the effective `Storage.GetAcl` method after inherting +/// documentation and annotations as follows: +/// +/// service Storage { +/// // Get the underlying ACL object. +/// rpc GetAcl(GetAclRequest) returns (Acl) { +/// option (google.api.http).get = "/v2/{resource=**}:getAcl"; +/// } +/// ... +/// } +/// +/// Note how the version in the path pattern changed from `v1` to `v2`. +/// +/// If the `root` field in the mixin is specified, it should be a +/// relative path under which inherited HTTP paths are placed. Example: +/// +/// apis: +/// - name: google.storage.v2.Storage +/// mixins: +/// - name: google.acl.v1.AccessControl +/// root: acls +/// +/// This implies the following inherited HTTP annotation: +/// +/// service Storage { +/// // Get the underlying ACL object. +/// rpc GetAcl(GetAclRequest) returns (Acl) { +/// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; +/// } +/// ... +/// } class Mixin extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Mixin', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'root') - ..hasRequiredFields = false; - - Mixin._() : super(); factory Mixin({ $core.String? name, $core.String? root, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (root != null) { - _result.root = root; + $result.root = root; } - return _result; + return $result; } + Mixin._() : super(); factory Mixin.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Mixin.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Mixin', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'root') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -383,9 +479,10 @@ class Mixin extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Mixin copyWith(void Function(Mixin) updates) => - super.copyWith((message) => updates(message as Mixin)) - as Mixin; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Mixin)) as Mixin; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Mixin create() => Mixin._(); Mixin createEmptyInstance() => create(); @@ -395,6 +492,7 @@ class Mixin extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Mixin? _defaultInstance; + /// The fully qualified name of the interface which is included. @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) @@ -407,6 +505,8 @@ class Mixin extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// If non-empty specifies a path under which inherited HTTP paths + /// are rooted. @$pb.TagNumber(2) $core.String get root => $_getSZ(1); @$pb.TagNumber(2) @@ -419,3 +519,7 @@ class Mixin extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearRoot() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pbenum.dart index 36e20f70..e43cec5c 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/api.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pbjson.dart index 78974aac..56ee478e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/api.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/api.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 apiDescriptor instead') @@ -60,7 +64,13 @@ const Api$json = { /// Descriptor for `Api`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List apiDescriptor = $convert.base64Decode( - 'CgNBcGkSEgoEbmFtZRgBIAEoCVIEbmFtZRIxCgdtZXRob2RzGAIgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk1ldGhvZFIHbWV0aG9kcxIxCgdvcHRpb25zGAMgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvblIHb3B0aW9ucxIYCgd2ZXJzaW9uGAQgASgJUgd2ZXJzaW9uEkUKDnNvdXJjZV9jb250ZXh0GAUgASgLMh4uZ29vZ2xlLnByb3RvYnVmLlNvdXJjZUNvbnRleHRSDXNvdXJjZUNvbnRleHQSLgoGbWl4aW5zGAYgAygLMhYuZ29vZ2xlLnByb3RvYnVmLk1peGluUgZtaXhpbnMSLwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheFIGc3ludGF4'); + 'CgNBcGkSEgoEbmFtZRgBIAEoCVIEbmFtZRIxCgdtZXRob2RzGAIgAygLMhcuZ29vZ2xlLnByb3' + 'RvYnVmLk1ldGhvZFIHbWV0aG9kcxIxCgdvcHRpb25zGAMgAygLMhcuZ29vZ2xlLnByb3RvYnVm' + 'Lk9wdGlvblIHb3B0aW9ucxIYCgd2ZXJzaW9uGAQgASgJUgd2ZXJzaW9uEkUKDnNvdXJjZV9jb2' + '50ZXh0GAUgASgLMh4uZ29vZ2xlLnByb3RvYnVmLlNvdXJjZUNvbnRleHRSDXNvdXJjZUNvbnRl' + 'eHQSLgoGbWl4aW5zGAYgAygLMhYuZ29vZ2xlLnByb3RvYnVmLk1peGluUgZtaXhpbnMSLwoGc3' + 'ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheFIGc3ludGF4'); + @$core.Deprecated('Use methodDescriptor instead') const Method$json = { '1': 'Method', @@ -103,7 +113,13 @@ const Method$json = { /// Descriptor for `Method`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List methodDescriptor = $convert.base64Decode( - 'CgZNZXRob2QSEgoEbmFtZRgBIAEoCVIEbmFtZRIoChByZXF1ZXN0X3R5cGVfdXJsGAIgASgJUg5yZXF1ZXN0VHlwZVVybBIrChFyZXF1ZXN0X3N0cmVhbWluZxgDIAEoCFIQcmVxdWVzdFN0cmVhbWluZxIqChFyZXNwb25zZV90eXBlX3VybBgEIAEoCVIPcmVzcG9uc2VUeXBlVXJsEi0KEnJlc3BvbnNlX3N0cmVhbWluZxgFIAEoCFIRcmVzcG9uc2VTdHJlYW1pbmcSMQoHb3B0aW9ucxgGIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5PcHRpb25SB29wdGlvbnMSLwoGc3ludGF4GAcgASgOMhcuZ29vZ2xlLnByb3RvYnVmLlN5bnRheFIGc3ludGF4'); + 'CgZNZXRob2QSEgoEbmFtZRgBIAEoCVIEbmFtZRIoChByZXF1ZXN0X3R5cGVfdXJsGAIgASgJUg' + '5yZXF1ZXN0VHlwZVVybBIrChFyZXF1ZXN0X3N0cmVhbWluZxgDIAEoCFIQcmVxdWVzdFN0cmVh' + 'bWluZxIqChFyZXNwb25zZV90eXBlX3VybBgEIAEoCVIPcmVzcG9uc2VUeXBlVXJsEi0KEnJlc3' + 'BvbnNlX3N0cmVhbWluZxgFIAEoCFIRcmVzcG9uc2VTdHJlYW1pbmcSMQoHb3B0aW9ucxgGIAMo' + 'CzIXLmdvb2dsZS5wcm90b2J1Zi5PcHRpb25SB29wdGlvbnMSLwoGc3ludGF4GAcgASgOMhcuZ2' + '9vZ2xlLnByb3RvYnVmLlN5bnRheFIGc3ludGF4'); + @$core.Deprecated('Use mixinDescriptor instead') const Mixin$json = { '1': 'Mixin', diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/cpp_features.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/cpp_features.pb.dart new file mode 100644 index 00000000..bc37a3ad --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/cpp_features.pb.dart @@ -0,0 +1,137 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/cpp_features.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'cpp_features.pbenum.dart'; + +export 'cpp_features.pbenum.dart'; + +class CppFeatures extends $pb.GeneratedMessage { + factory CppFeatures({ + $core.bool? legacyClosedEnum, + CppFeatures_StringType? stringType, + $core.bool? enumNameUsesStringView, + }) { + final $result = create(); + if (legacyClosedEnum != null) { + $result.legacyClosedEnum = legacyClosedEnum; + } + if (stringType != null) { + $result.stringType = stringType; + } + if (enumNameUsesStringView != null) { + $result.enumNameUsesStringView = enumNameUsesStringView; + } + return $result; + } + CppFeatures._() : super(); + factory CppFeatures.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory CppFeatures.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'CppFeatures', + package: const $pb.PackageName(_omitMessageNames ? '' : 'pb'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'legacyClosedEnum') + ..e( + 2, _omitFieldNames ? '' : 'stringType', $pb.PbFieldType.OE, + defaultOrMaker: CppFeatures_StringType.STRING_TYPE_UNKNOWN, + valueOf: CppFeatures_StringType.valueOf, + enumValues: CppFeatures_StringType.values) + ..aOB(3, _omitFieldNames ? '' : 'enumNameUsesStringView') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + CppFeatures clone() => CppFeatures()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + CppFeatures copyWith(void Function(CppFeatures) updates) => + super.copyWith((message) => updates(message as CppFeatures)) + as CppFeatures; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static CppFeatures create() => CppFeatures._(); + CppFeatures createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static CppFeatures getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static CppFeatures? _defaultInstance; + + /// Whether or not to treat an enum field as closed. This option is only + /// applicable to enum fields, and will be removed in the future. It is + /// consistent with the legacy behavior of using proto3 enum types for proto2 + /// fields. + @$pb.TagNumber(1) + $core.bool get legacyClosedEnum => $_getBF(0); + @$pb.TagNumber(1) + set legacyClosedEnum($core.bool v) { + $_setBool(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasLegacyClosedEnum() => $_has(0); + @$pb.TagNumber(1) + void clearLegacyClosedEnum() => clearField(1); + + @$pb.TagNumber(2) + CppFeatures_StringType get stringType => $_getN(1); + @$pb.TagNumber(2) + set stringType(CppFeatures_StringType v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasStringType() => $_has(1); + @$pb.TagNumber(2) + void clearStringType() => clearField(2); + + @$pb.TagNumber(3) + $core.bool get enumNameUsesStringView => $_getBF(2); + @$pb.TagNumber(3) + set enumNameUsesStringView($core.bool v) { + $_setBool(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasEnumNameUsesStringView() => $_has(2); + @$pb.TagNumber(3) + void clearEnumNameUsesStringView() => clearField(3); +} + +class Cpp_features { + static final cpp = $pb.Extension( + _omitMessageNames ? '' : 'google.protobuf.FeatureSet', + _omitFieldNames ? '' : 'cpp', + 1000, + $pb.PbFieldType.OM, + defaultOrMaker: CppFeatures.getDefault, + subBuilder: CppFeatures.create); + static void registerAllExtensions($pb.ExtensionRegistry registry) { + registry.add(cpp); + } +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/cpp_features.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/cpp_features.pbenum.dart new file mode 100644 index 00000000..b076b366 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/cpp_features.pbenum.dart @@ -0,0 +1,41 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/cpp_features.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 CppFeatures_StringType extends $pb.ProtobufEnum { + static const CppFeatures_StringType STRING_TYPE_UNKNOWN = + CppFeatures_StringType._(0, _omitEnumNames ? '' : 'STRING_TYPE_UNKNOWN'); + static const CppFeatures_StringType VIEW = + CppFeatures_StringType._(1, _omitEnumNames ? '' : 'VIEW'); + static const CppFeatures_StringType CORD = + CppFeatures_StringType._(2, _omitEnumNames ? '' : 'CORD'); + static const CppFeatures_StringType STRING = + CppFeatures_StringType._(3, _omitEnumNames ? '' : 'STRING'); + + static const $core.List values = + [ + STRING_TYPE_UNKNOWN, + VIEW, + CORD, + STRING, + ]; + + static final $core.Map<$core.int, CppFeatures_StringType> _byValue = + $pb.ProtobufEnum.initByValue(values); + static CppFeatures_StringType? valueOf($core.int value) => _byValue[value]; + + const CppFeatures_StringType._($core.int v, $core.String n) : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/cpp_features.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/cpp_features.pbjson.dart new file mode 100644 index 00000000..d68b8fa9 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/cpp_features.pbjson.dart @@ -0,0 +1,72 @@ +// +// Generated code. Do not modify. +// source: google/protobuf/cpp_features.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 cppFeaturesDescriptor instead') +const CppFeatures$json = { + '1': 'CppFeatures', + '2': [ + { + '1': 'legacy_closed_enum', + '3': 1, + '4': 1, + '5': 8, + '8': {}, + '10': 'legacyClosedEnum' + }, + { + '1': 'string_type', + '3': 2, + '4': 1, + '5': 14, + '6': '.pb.CppFeatures.StringType', + '8': {}, + '10': 'stringType' + }, + { + '1': 'enum_name_uses_string_view', + '3': 3, + '4': 1, + '5': 8, + '8': {}, + '10': 'enumNameUsesStringView' + }, + ], + '4': [CppFeatures_StringType$json], +}; + +@$core.Deprecated('Use cppFeaturesDescriptor instead') +const CppFeatures_StringType$json = { + '1': 'StringType', + '2': [ + {'1': 'STRING_TYPE_UNKNOWN', '2': 0}, + {'1': 'VIEW', '2': 1}, + {'1': 'CORD', '2': 2}, + {'1': 'STRING', '2': 3}, + ], +}; + +/// Descriptor for `CppFeatures`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List cppFeaturesDescriptor = $convert.base64Decode( + 'CgtDcHBGZWF0dXJlcxKNAgoSbGVnYWN5X2Nsb3NlZF9lbnVtGAEgASgIQt4BiAEBmAEEmAEBsg' + 'G4AQjoBxDoBxqvAVRoZSBsZWdhY3kgY2xvc2VkIGVudW0gYmVoYXZpb3IgaW4gQysrIGlzIGRl' + 'cHJlY2F0ZWQgYW5kIGlzIHNjaGVkdWxlZCB0byBiZSByZW1vdmVkIGluIGVkaXRpb24gMjAyNS' + '4gIFNlZSBodHRwOi8vcHJvdG9idWYuZGV2L3Byb2dyYW1taW5nLWd1aWRlcy9lbnVtLyNjcHAg' + 'Zm9yIG1vcmUgaW5mb3JtYXRpb26iAQkSBHRydWUYhAeiAQoSBWZhbHNlGOcHUhBsZWdhY3lDbG' + '9zZWRFbnVtEmYKC3N0cmluZ190eXBlGAIgASgOMhoucGIuQ3BwRmVhdHVyZXMuU3RyaW5nVHlw' + 'ZUIpiAEBmAEEmAEBsgEDCOgHogELEgZTVFJJTkcYhAeiAQkSBFZJRVcY6QdSCnN0cmluZ1R5cG' + 'USZAoaZW51bV9uYW1lX3VzZXNfc3RyaW5nX3ZpZXcYAyABKAhCKIgBApgBBpgBAbIBAwjpB6IB' + 'ChIFZmFsc2UYhAeiAQkSBHRydWUY6QdSFmVudW1OYW1lVXNlc1N0cmluZ1ZpZXciRQoKU3RyaW' + '5nVHlwZRIXChNTVFJJTkdfVFlQRV9VTktOT1dOEAASCAoEVklFVxABEggKBENPUkQQAhIKCgZT' + 'VFJJTkcQAw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pb.dart index 7b71f101..d0ac2bad 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/descriptor.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -14,40 +18,35 @@ import 'descriptor.pbenum.dart'; export 'descriptor.pbenum.dart'; +/// The protocol compiler can output a FileDescriptorSet containing the .proto +/// files it parses. class FileDescriptorSet extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'FileDescriptorSet', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'file', - $pb.PbFieldType.PM, - subBuilder: FileDescriptorProto.create); - - FileDescriptorSet._() : super(); factory FileDescriptorSet({ $core.Iterable? file, }) { - final _result = create(); + final $result = create(); if (file != null) { - _result.file.addAll(file); + $result.file.addAll(file); } - return _result; + return $result; } + FileDescriptorSet._() : super(); factory FileDescriptorSet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory FileDescriptorSet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FileDescriptorSet', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'file', $pb.PbFieldType.PM, + subBuilder: FileDescriptorProto.create); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -57,8 +56,10 @@ class FileDescriptorSet extends $pb.GeneratedMessage { 'Will be removed in next major version') FileDescriptorSet copyWith(void Function(FileDescriptorSet) updates) => super.copyWith((message) => updates(message as FileDescriptorSet)) - as FileDescriptorSet; // ignore: deprecated_member_use + as FileDescriptorSet; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static FileDescriptorSet create() => FileDescriptorSet._(); FileDescriptorSet createEmptyInstance() => create(); @@ -73,43 +74,8 @@ class FileDescriptorSet extends $pb.GeneratedMessage { $core.List get file => $_getList(0); } +/// Describes a complete .proto file. class FileDescriptorProto extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'FileDescriptorProto', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'package') - ..pPS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'dependency') - ..pc(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'messageType', $pb.PbFieldType.PM, - subBuilder: DescriptorProto.create) - ..pc( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enumType', $pb.PbFieldType.PM, - subBuilder: EnumDescriptorProto.create) - ..pc( - 6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'service', $pb.PbFieldType.PM, - subBuilder: ServiceDescriptorProto.create) - ..pc(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'extension', $pb.PbFieldType.PM, subBuilder: FieldDescriptorProto.create) - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'options', subBuilder: FileOptions.create) - ..aOM(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sourceCodeInfo', subBuilder: SourceCodeInfo.create) - ..p<$core.int>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'publicDependency', $pb.PbFieldType.P3) - ..p<$core.int>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'weakDependency', $pb.PbFieldType.P3) - ..aOS(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'syntax'); - - FileDescriptorProto._() : super(); factory FileDescriptorProto({ $core.String? name, $core.String? package, @@ -123,52 +89,92 @@ class FileDescriptorProto extends $pb.GeneratedMessage { $core.Iterable<$core.int>? publicDependency, $core.Iterable<$core.int>? weakDependency, $core.String? syntax, + Edition? edition, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (package != null) { - _result.package = package; + $result.package = package; } if (dependency != null) { - _result.dependency.addAll(dependency); + $result.dependency.addAll(dependency); } if (messageType != null) { - _result.messageType.addAll(messageType); + $result.messageType.addAll(messageType); } if (enumType != null) { - _result.enumType.addAll(enumType); + $result.enumType.addAll(enumType); } if (service != null) { - _result.service.addAll(service); + $result.service.addAll(service); } if (extension != null) { - _result.extension.addAll(extension); + $result.extension.addAll(extension); } if (options != null) { - _result.options = options; + $result.options = options; } if (sourceCodeInfo != null) { - _result.sourceCodeInfo = sourceCodeInfo; + $result.sourceCodeInfo = sourceCodeInfo; } if (publicDependency != null) { - _result.publicDependency.addAll(publicDependency); + $result.publicDependency.addAll(publicDependency); } if (weakDependency != null) { - _result.weakDependency.addAll(weakDependency); + $result.weakDependency.addAll(weakDependency); } if (syntax != null) { - _result.syntax = syntax; + $result.syntax = syntax; } - return _result; + if (edition != null) { + $result.edition = edition; + } + return $result; } + FileDescriptorProto._() : super(); factory FileDescriptorProto.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory FileDescriptorProto.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FileDescriptorProto', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'package') + ..pPS(3, _omitFieldNames ? '' : 'dependency') + ..pc( + 4, _omitFieldNames ? '' : 'messageType', $pb.PbFieldType.PM, + subBuilder: DescriptorProto.create) + ..pc( + 5, _omitFieldNames ? '' : 'enumType', $pb.PbFieldType.PM, + subBuilder: EnumDescriptorProto.create) + ..pc( + 6, _omitFieldNames ? '' : 'service', $pb.PbFieldType.PM, + subBuilder: ServiceDescriptorProto.create) + ..pc( + 7, _omitFieldNames ? '' : 'extension', $pb.PbFieldType.PM, + subBuilder: FieldDescriptorProto.create) + ..aOM(8, _omitFieldNames ? '' : 'options', + subBuilder: FileOptions.create) + ..aOM(9, _omitFieldNames ? '' : 'sourceCodeInfo', + subBuilder: SourceCodeInfo.create) + ..p<$core.int>( + 10, _omitFieldNames ? '' : 'publicDependency', $pb.PbFieldType.P3) + ..p<$core.int>( + 11, _omitFieldNames ? '' : 'weakDependency', $pb.PbFieldType.P3) + ..aOS(12, _omitFieldNames ? '' : 'syntax') + ..e(14, _omitFieldNames ? '' : 'edition', $pb.PbFieldType.OE, + defaultOrMaker: Edition.EDITION_UNKNOWN, + valueOf: Edition.valueOf, + enumValues: Edition.values); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -178,8 +184,10 @@ class FileDescriptorProto extends $pb.GeneratedMessage { 'Will be removed in next major version') FileDescriptorProto copyWith(void Function(FileDescriptorProto) updates) => super.copyWith((message) => updates(message as FileDescriptorProto)) - as FileDescriptorProto; // ignore: deprecated_member_use + as FileDescriptorProto; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static FileDescriptorProto create() => FileDescriptorProto._(); FileDescriptorProto createEmptyInstance() => create(); @@ -214,9 +222,11 @@ class FileDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearPackage() => clearField(2); + /// Names of files imported by this file. @$pb.TagNumber(3) $core.List<$core.String> get dependency => $_getList(2); + /// All top-level definitions in this file. @$pb.TagNumber(4) $core.List get messageType => $_getList(3); @@ -243,6 +253,10 @@ class FileDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(8) FileOptions ensureOptions() => $_ensure(7); + /// This field contains optional information about the original source code. + /// You may safely remove this entire field without harming runtime + /// functionality of the descriptors -- the information is needed only by + /// development tools. @$pb.TagNumber(9) SourceCodeInfo get sourceCodeInfo => $_getN(8); @$pb.TagNumber(9) @@ -257,12 +271,19 @@ class FileDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(9) SourceCodeInfo ensureSourceCodeInfo() => $_ensure(8); + /// Indexes of the public imported files in the dependency list above. @$pb.TagNumber(10) $core.List<$core.int> get publicDependency => $_getList(9); + /// Indexes of the weak imported files in the dependency list. + /// For Google-internal migration only. Do not use. @$pb.TagNumber(11) $core.List<$core.int> get weakDependency => $_getList(10); + /// The syntax of the proto file. + /// The supported values are "proto2", "proto3", and "editions". + /// + /// If `edition` is present, this value must be "editions". @$pb.TagNumber(12) $core.String get syntax => $_getSZ(11); @$pb.TagNumber(12) @@ -274,58 +295,57 @@ class FileDescriptorProto extends $pb.GeneratedMessage { $core.bool hasSyntax() => $_has(11); @$pb.TagNumber(12) void clearSyntax() => clearField(12); + + /// The edition of the proto file. + @$pb.TagNumber(14) + Edition get edition => $_getN(12); + @$pb.TagNumber(14) + set edition(Edition v) { + setField(14, v); + } + + @$pb.TagNumber(14) + $core.bool hasEdition() => $_has(12); + @$pb.TagNumber(14) + void clearEdition() => clearField(14); } class DescriptorProto_ExtensionRange extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DescriptorProto.ExtensionRange', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'start', - $pb.PbFieldType.O3) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'end', - $pb.PbFieldType.O3) - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'options', - subBuilder: ExtensionRangeOptions.create); - - DescriptorProto_ExtensionRange._() : super(); factory DescriptorProto_ExtensionRange({ $core.int? start, $core.int? end, ExtensionRangeOptions? options, }) { - final _result = create(); + final $result = create(); if (start != null) { - _result.start = start; + $result.start = start; } if (end != null) { - _result.end = end; + $result.end = end; } if (options != null) { - _result.options = options; + $result.options = options; } - return _result; + return $result; } + DescriptorProto_ExtensionRange._() : super(); factory DescriptorProto_ExtensionRange.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DescriptorProto_ExtensionRange.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DescriptorProto.ExtensionRange', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'start', $pb.PbFieldType.O3) + ..a<$core.int>(2, _omitFieldNames ? '' : 'end', $pb.PbFieldType.O3) + ..aOM(3, _omitFieldNames ? '' : 'options', + subBuilder: ExtensionRangeOptions.create); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -338,8 +358,10 @@ class DescriptorProto_ExtensionRange extends $pb.GeneratedMessage { void Function(DescriptorProto_ExtensionRange) updates) => super.copyWith( (message) => updates(message as DescriptorProto_ExtensionRange)) - as DescriptorProto_ExtensionRange; // ignore: deprecated_member_use + as DescriptorProto_ExtensionRange; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DescriptorProto_ExtensionRange create() => DescriptorProto_ExtensionRange._(); @@ -390,50 +412,40 @@ class DescriptorProto_ExtensionRange extends $pb.GeneratedMessage { ExtensionRangeOptions ensureOptions() => $_ensure(2); } +/// Range of reserved tag numbers. Reserved tag numbers may not be used by +/// fields or extension ranges in the same message. Reserved ranges may +/// not overlap. class DescriptorProto_ReservedRange extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'DescriptorProto.ReservedRange', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'start', - $pb.PbFieldType.O3) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'end', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - DescriptorProto_ReservedRange._() : super(); factory DescriptorProto_ReservedRange({ $core.int? start, $core.int? end, }) { - final _result = create(); + final $result = create(); if (start != null) { - _result.start = start; + $result.start = start; } if (end != null) { - _result.end = end; + $result.end = end; } - return _result; + return $result; } + DescriptorProto_ReservedRange._() : super(); factory DescriptorProto_ReservedRange.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DescriptorProto_ReservedRange.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DescriptorProto.ReservedRange', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'start', $pb.PbFieldType.O3) + ..a<$core.int>(2, _omitFieldNames ? '' : 'end', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -446,8 +458,10 @@ class DescriptorProto_ReservedRange extends $pb.GeneratedMessage { void Function(DescriptorProto_ReservedRange) updates) => super.copyWith( (message) => updates(message as DescriptorProto_ReservedRange)) - as DescriptorProto_ReservedRange; // ignore: deprecated_member_use + as DescriptorProto_ReservedRange; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DescriptorProto_ReservedRange create() => DescriptorProto_ReservedRange._(); @@ -484,35 +498,8 @@ class DescriptorProto_ReservedRange extends $pb.GeneratedMessage { void clearEnd() => clearField(2); } +/// Describes a message type. class DescriptorProto extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DescriptorProto', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'field', $pb.PbFieldType.PM, - subBuilder: FieldDescriptorProto.create) - ..pc(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nestedType', $pb.PbFieldType.PM, - subBuilder: DescriptorProto.create) - ..pc( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'enumType', $pb.PbFieldType.PM, - subBuilder: EnumDescriptorProto.create) - ..pc( - 5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'extensionRange', $pb.PbFieldType.PM, - subBuilder: DescriptorProto_ExtensionRange.create) - ..pc(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'extension', $pb.PbFieldType.PM, subBuilder: FieldDescriptorProto.create) - ..aOM(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'options', subBuilder: MessageOptions.create) - ..pc(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofDecl', $pb.PbFieldType.PM, subBuilder: OneofDescriptorProto.create) - ..pc(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reservedRange', $pb.PbFieldType.PM, subBuilder: DescriptorProto_ReservedRange.create) - ..pPS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reservedName'); - - DescriptorProto._() : super(); factory DescriptorProto({ $core.String? name, $core.Iterable? field, @@ -525,45 +512,78 @@ class DescriptorProto extends $pb.GeneratedMessage { $core.Iterable? reservedRange, $core.Iterable<$core.String>? reservedName, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (field != null) { - _result.field.addAll(field); + $result.field.addAll(field); } if (nestedType != null) { - _result.nestedType.addAll(nestedType); + $result.nestedType.addAll(nestedType); } if (enumType != null) { - _result.enumType.addAll(enumType); + $result.enumType.addAll(enumType); } if (extensionRange != null) { - _result.extensionRange.addAll(extensionRange); + $result.extensionRange.addAll(extensionRange); } if (extension != null) { - _result.extension.addAll(extension); + $result.extension.addAll(extension); } if (options != null) { - _result.options = options; + $result.options = options; } if (oneofDecl != null) { - _result.oneofDecl.addAll(oneofDecl); + $result.oneofDecl.addAll(oneofDecl); } if (reservedRange != null) { - _result.reservedRange.addAll(reservedRange); + $result.reservedRange.addAll(reservedRange); } if (reservedName != null) { - _result.reservedName.addAll(reservedName); + $result.reservedName.addAll(reservedName); } - return _result; + return $result; } + DescriptorProto._() : super(); factory DescriptorProto.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DescriptorProto.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'DescriptorProto', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pc( + 2, _omitFieldNames ? '' : 'field', $pb.PbFieldType.PM, + subBuilder: FieldDescriptorProto.create) + ..pc( + 3, _omitFieldNames ? '' : 'nestedType', $pb.PbFieldType.PM, + subBuilder: DescriptorProto.create) + ..pc( + 4, _omitFieldNames ? '' : 'enumType', $pb.PbFieldType.PM, + subBuilder: EnumDescriptorProto.create) + ..pc( + 5, _omitFieldNames ? '' : 'extensionRange', $pb.PbFieldType.PM, + subBuilder: DescriptorProto_ExtensionRange.create) + ..pc( + 6, _omitFieldNames ? '' : 'extension', $pb.PbFieldType.PM, + subBuilder: FieldDescriptorProto.create) + ..aOM(7, _omitFieldNames ? '' : 'options', + subBuilder: MessageOptions.create) + ..pc( + 8, _omitFieldNames ? '' : 'oneofDecl', $pb.PbFieldType.PM, + subBuilder: OneofDescriptorProto.create) + ..pc( + 9, _omitFieldNames ? '' : 'reservedRange', $pb.PbFieldType.PM, + subBuilder: DescriptorProto_ReservedRange.create) + ..pPS(10, _omitFieldNames ? '' : 'reservedName'); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -573,8 +593,10 @@ class DescriptorProto extends $pb.GeneratedMessage { 'Will be removed in next major version') DescriptorProto copyWith(void Function(DescriptorProto) updates) => super.copyWith((message) => updates(message as DescriptorProto)) - as DescriptorProto; // ignore: deprecated_member_use + as DescriptorProto; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static DescriptorProto create() => DescriptorProto._(); DescriptorProto createEmptyInstance() => create(); @@ -632,45 +654,208 @@ class DescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(9) $core.List get reservedRange => $_getList(8); + /// Reserved field names, which may not be used by fields in the same message. + /// A given name may only be reserved once. @$pb.TagNumber(10) $core.List<$core.String> get reservedName => $_getList(9); } -class ExtensionRangeOptions extends $pb.GeneratedMessage { +class ExtensionRangeOptions_Declaration extends $pb.GeneratedMessage { + factory ExtensionRangeOptions_Declaration({ + $core.int? number, + $core.String? fullName, + $core.String? type, + $core.bool? reserved, + $core.bool? repeated, + }) { + final $result = create(); + if (number != null) { + $result.number = number; + } + if (fullName != null) { + $result.fullName = fullName; + } + if (type != null) { + $result.type = type; + } + if (reserved != null) { + $result.reserved = reserved; + } + if (repeated != null) { + $result.repeated = repeated; + } + return $result; + } + ExtensionRangeOptions_Declaration._() : super(); + factory ExtensionRangeOptions_Declaration.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ExtensionRangeOptions_Declaration.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ExtensionRangeOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), + _omitMessageNames ? '' : 'ExtensionRangeOptions.Declaration', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create) - ..pc( - 999, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uninterpretedOption', - $pb.PbFieldType.PM, - subBuilder: UninterpretedOption.create) - ..hasExtensions = true; + ..a<$core.int>(1, _omitFieldNames ? '' : 'number', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'fullName') + ..aOS(3, _omitFieldNames ? '' : 'type') + ..aOB(5, _omitFieldNames ? '' : 'reserved') + ..aOB(6, _omitFieldNames ? '' : 'repeated') + ..hasRequiredFields = false; - ExtensionRangeOptions._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ExtensionRangeOptions_Declaration clone() => + ExtensionRangeOptions_Declaration()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ExtensionRangeOptions_Declaration copyWith( + void Function(ExtensionRangeOptions_Declaration) updates) => + super.copyWith((message) => + updates(message as ExtensionRangeOptions_Declaration)) + as ExtensionRangeOptions_Declaration; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ExtensionRangeOptions_Declaration create() => + ExtensionRangeOptions_Declaration._(); + ExtensionRangeOptions_Declaration createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ExtensionRangeOptions_Declaration getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); + static ExtensionRangeOptions_Declaration? _defaultInstance; + + /// The extension number declared within the extension range. + @$pb.TagNumber(1) + $core.int get number => $_getIZ(0); + @$pb.TagNumber(1) + set number($core.int v) { + $_setSignedInt32(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasNumber() => $_has(0); + @$pb.TagNumber(1) + void clearNumber() => clearField(1); + + /// The fully-qualified name of the extension field. There must be a leading + /// dot in front of the full name. + @$pb.TagNumber(2) + $core.String get fullName => $_getSZ(1); + @$pb.TagNumber(2) + set fullName($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasFullName() => $_has(1); + @$pb.TagNumber(2) + void clearFullName() => clearField(2); + + /// The fully-qualified type name of the extension field. Unlike + /// Metadata.type, Declaration.type must have a leading dot for messages + /// and enums. + @$pb.TagNumber(3) + $core.String get type => $_getSZ(2); + @$pb.TagNumber(3) + set type($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasType() => $_has(2); + @$pb.TagNumber(3) + void clearType() => clearField(3); + + /// If true, indicates that the number is reserved in the extension range, + /// and any extension field with the number will fail to compile. Set this + /// when a declared extension field is deleted. + @$pb.TagNumber(5) + $core.bool get reserved => $_getBF(3); + @$pb.TagNumber(5) + set reserved($core.bool v) { + $_setBool(3, v); + } + + @$pb.TagNumber(5) + $core.bool hasReserved() => $_has(3); + @$pb.TagNumber(5) + void clearReserved() => clearField(5); + + /// If true, indicates that the extension must be defined as repeated. + /// Otherwise the extension must be defined as optional. + @$pb.TagNumber(6) + $core.bool get repeated => $_getBF(4); + @$pb.TagNumber(6) + set repeated($core.bool v) { + $_setBool(4, v); + } + + @$pb.TagNumber(6) + $core.bool hasRepeated() => $_has(4); + @$pb.TagNumber(6) + void clearRepeated() => clearField(6); +} + +class ExtensionRangeOptions extends $pb.GeneratedMessage { factory ExtensionRangeOptions({ + $core.Iterable? declaration, + ExtensionRangeOptions_VerificationState? verification, + FeatureSet? features, $core.Iterable? uninterpretedOption, }) { - final _result = create(); + final $result = create(); + if (declaration != null) { + $result.declaration.addAll(declaration); + } + if (verification != null) { + $result.verification = verification; + } + if (features != null) { + $result.features = features; + } if (uninterpretedOption != null) { - _result.uninterpretedOption.addAll(uninterpretedOption); + $result.uninterpretedOption.addAll(uninterpretedOption); } - return _result; + return $result; } + ExtensionRangeOptions._() : super(); factory ExtensionRangeOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ExtensionRangeOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ExtensionRangeOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..pc( + 2, _omitFieldNames ? '' : 'declaration', $pb.PbFieldType.PM, + subBuilder: ExtensionRangeOptions_Declaration.create) + ..e( + 3, _omitFieldNames ? '' : 'verification', $pb.PbFieldType.OE, + defaultOrMaker: ExtensionRangeOptions_VerificationState.UNVERIFIED, + valueOf: ExtensionRangeOptions_VerificationState.valueOf, + enumValues: ExtensionRangeOptions_VerificationState.values) + ..aOM(50, _omitFieldNames ? '' : 'features', + subBuilder: FeatureSet.create) + ..pc( + 999, _omitFieldNames ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, + subBuilder: UninterpretedOption.create) + ..hasExtensions = true; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -682,8 +867,10 @@ class ExtensionRangeOptions extends $pb.GeneratedMessage { ExtensionRangeOptions copyWith( void Function(ExtensionRangeOptions) updates) => super.copyWith((message) => updates(message as ExtensionRangeOptions)) - as ExtensionRangeOptions; // ignore: deprecated_member_use + as ExtensionRangeOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ExtensionRangeOptions create() => ExtensionRangeOptions._(); ExtensionRangeOptions createEmptyInstance() => create(); @@ -694,52 +881,49 @@ class ExtensionRangeOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ExtensionRangeOptions? _defaultInstance; + /// For external users: DO NOT USE. We are in the process of open sourcing + /// extension declaration and executing internal cleanups before it can be + /// used externally. + @$pb.TagNumber(2) + $core.List get declaration => $_getList(0); + + /// The verification state of the range. + /// TODO: flip the default to DECLARATION once all empty ranges + /// are marked as UNVERIFIED. + @$pb.TagNumber(3) + ExtensionRangeOptions_VerificationState get verification => $_getN(1); + @$pb.TagNumber(3) + set verification(ExtensionRangeOptions_VerificationState v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasVerification() => $_has(1); + @$pb.TagNumber(3) + void clearVerification() => clearField(3); + + /// Any features defined in the specific edition. + @$pb.TagNumber(50) + FeatureSet get features => $_getN(2); + @$pb.TagNumber(50) + set features(FeatureSet v) { + setField(50, v); + } + + @$pb.TagNumber(50) + $core.bool hasFeatures() => $_has(2); + @$pb.TagNumber(50) + void clearFeatures() => clearField(50); + @$pb.TagNumber(50) + FeatureSet ensureFeatures() => $_ensure(2); + + /// The parser stores options it doesn't recognize here. See above. @$pb.TagNumber(999) - $core.List get uninterpretedOption => $_getList(0); + $core.List get uninterpretedOption => $_getList(3); } +/// Describes a field within a message. class FieldDescriptorProto extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'FieldDescriptorProto', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'extendee') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'number', - $pb.PbFieldType.O3) - ..e( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'label', $pb.PbFieldType.OE, - defaultOrMaker: FieldDescriptorProto_Label.LABEL_OPTIONAL, - valueOf: FieldDescriptorProto_Label.valueOf, - enumValues: FieldDescriptorProto_Label.values) - ..e( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'type', - $pb.PbFieldType.OE, - defaultOrMaker: FieldDescriptorProto_Type.TYPE_DOUBLE, - valueOf: FieldDescriptorProto_Type.valueOf, - enumValues: FieldDescriptorProto_Type.values) - ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'typeName') - ..aOS(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultValue') - ..aOM(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'options', subBuilder: FieldOptions.create) - ..a<$core.int>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofIndex', $pb.PbFieldType.O3) - ..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'jsonName') - ..aOB(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'proto3Optional'); - - FieldDescriptorProto._() : super(); factory FieldDescriptorProto({ $core.String? name, $core.String? extendee, @@ -753,48 +937,76 @@ class FieldDescriptorProto extends $pb.GeneratedMessage { $core.String? jsonName, $core.bool? proto3Optional, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (extendee != null) { - _result.extendee = extendee; + $result.extendee = extendee; } if (number != null) { - _result.number = number; + $result.number = number; } if (label != null) { - _result.label = label; + $result.label = label; } if (type != null) { - _result.type = type; + $result.type = type; } if (typeName != null) { - _result.typeName = typeName; + $result.typeName = typeName; } if (defaultValue != null) { - _result.defaultValue = defaultValue; + $result.defaultValue = defaultValue; } if (options != null) { - _result.options = options; + $result.options = options; } if (oneofIndex != null) { - _result.oneofIndex = oneofIndex; + $result.oneofIndex = oneofIndex; } if (jsonName != null) { - _result.jsonName = jsonName; + $result.jsonName = jsonName; } if (proto3Optional != null) { - _result.proto3Optional = proto3Optional; + $result.proto3Optional = proto3Optional; } - return _result; + return $result; } + FieldDescriptorProto._() : super(); factory FieldDescriptorProto.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory FieldDescriptorProto.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FieldDescriptorProto', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'extendee') + ..a<$core.int>(3, _omitFieldNames ? '' : 'number', $pb.PbFieldType.O3) + ..e( + 4, _omitFieldNames ? '' : 'label', $pb.PbFieldType.OE, + defaultOrMaker: FieldDescriptorProto_Label.LABEL_OPTIONAL, + valueOf: FieldDescriptorProto_Label.valueOf, + enumValues: FieldDescriptorProto_Label.values) + ..e( + 5, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, + defaultOrMaker: FieldDescriptorProto_Type.TYPE_DOUBLE, + valueOf: FieldDescriptorProto_Type.valueOf, + enumValues: FieldDescriptorProto_Type.values) + ..aOS(6, _omitFieldNames ? '' : 'typeName') + ..aOS(7, _omitFieldNames ? '' : 'defaultValue') + ..aOM(8, _omitFieldNames ? '' : 'options', + subBuilder: FieldOptions.create) + ..a<$core.int>(9, _omitFieldNames ? '' : 'oneofIndex', $pb.PbFieldType.O3) + ..aOS(10, _omitFieldNames ? '' : 'jsonName') + ..aOB(17, _omitFieldNames ? '' : 'proto3Optional'); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -805,8 +1017,10 @@ class FieldDescriptorProto extends $pb.GeneratedMessage { 'Will be removed in next major version') FieldDescriptorProto copyWith(void Function(FieldDescriptorProto) updates) => super.copyWith((message) => updates(message as FieldDescriptorProto)) - as FieldDescriptorProto; // ignore: deprecated_member_use + as FieldDescriptorProto; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static FieldDescriptorProto create() => FieldDescriptorProto._(); FieldDescriptorProto createEmptyInstance() => create(); @@ -829,6 +1043,8 @@ class FieldDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// For extensions, this is the name of the type being extended. It is + /// resolved in the same manner as type_name. @$pb.TagNumber(2) $core.String get extendee => $_getSZ(1); @$pb.TagNumber(2) @@ -865,6 +1081,8 @@ class FieldDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(4) void clearLabel() => clearField(4); + /// If type_name is set, this need not be set. If both this and type_name + /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. @$pb.TagNumber(5) FieldDescriptorProto_Type get type => $_getN(4); @$pb.TagNumber(5) @@ -877,6 +1095,11 @@ class FieldDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearType() => clearField(5); + /// For message and enum types, this is the name of the type. If the name + /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + /// rules are used to find the type (i.e. first the nested types within this + /// message are searched, then within the parent, on up to the root + /// namespace). @$pb.TagNumber(6) $core.String get typeName => $_getSZ(5); @$pb.TagNumber(6) @@ -889,6 +1112,10 @@ class FieldDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearTypeName() => clearField(6); + /// For numeric types, contains the original text representation of the value. + /// For booleans, "true" or "false". + /// For strings, contains the default text contents (not escaped in any way). + /// For bytes, contains the C escaped value. All bytes >= 128 are escaped. @$pb.TagNumber(7) $core.String get defaultValue => $_getSZ(6); @$pb.TagNumber(7) @@ -915,6 +1142,8 @@ class FieldDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(8) FieldOptions ensureOptions() => $_ensure(7); + /// If set, gives the index of a oneof in the containing type's oneof_decl + /// list. This field is a member of that oneof. @$pb.TagNumber(9) $core.int get oneofIndex => $_getIZ(8); @$pb.TagNumber(9) @@ -927,6 +1156,10 @@ class FieldDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearOneofIndex() => clearField(9); + /// JSON name of this field. The value is set by protocol compiler. If the + /// user has set a "json_name" option on this field, that option's value + /// will be used. Otherwise, it's deduced from the field's name by converting + /// it to camelCase. @$pb.TagNumber(10) $core.String get jsonName => $_getSZ(9); @$pb.TagNumber(10) @@ -939,6 +1172,27 @@ class FieldDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearJsonName() => clearField(10); + /// If true, this is a proto3 "optional". When a proto3 field is optional, it + /// tracks presence regardless of field type. + /// + /// When proto3_optional is true, this field must belong to a oneof to signal + /// to old proto3 clients that presence is tracked for this field. This oneof + /// is known as a "synthetic" oneof, and this field must be its sole member + /// (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs + /// exist in the descriptor only, and do not generate any API. Synthetic oneofs + /// must be ordered after all "real" oneofs. + /// + /// For message fields, proto3_optional doesn't create any semantic change, + /// since non-repeated message fields always track presence. However it still + /// indicates the semantic detail of whether the user wrote "optional" or not. + /// This can be useful for round-tripping the .proto file. For consistency we + /// give message fields a synthetic oneof also, even though it is not required + /// to track presence. This is especially important because the parser can't + /// tell if a field is a message or an enum, so it must always create a + /// synthetic oneof. + /// + /// Proto2 optional fields do not set this flag, because they already indicate + /// optional with `LABEL_OPTIONAL`. @$pb.TagNumber(17) $core.bool get proto3Optional => $_getBF(10); @$pb.TagNumber(17) @@ -952,48 +1206,38 @@ class FieldDescriptorProto extends $pb.GeneratedMessage { void clearProto3Optional() => clearField(17); } +/// Describes a oneof. class OneofDescriptorProto extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OneofDescriptorProto', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'options', - subBuilder: OneofOptions.create); - - OneofDescriptorProto._() : super(); factory OneofDescriptorProto({ $core.String? name, OneofOptions? options, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (options != null) { - _result.options = options; + $result.options = options; } - return _result; + return $result; } + OneofDescriptorProto._() : super(); factory OneofDescriptorProto.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OneofDescriptorProto.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OneofDescriptorProto', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOM(2, _omitFieldNames ? '' : 'options', + subBuilder: OneofOptions.create); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1004,8 +1248,10 @@ class OneofDescriptorProto extends $pb.GeneratedMessage { 'Will be removed in next major version') OneofDescriptorProto copyWith(void Function(OneofDescriptorProto) updates) => super.copyWith((message) => updates(message as OneofDescriptorProto)) - as OneofDescriptorProto; // ignore: deprecated_member_use + as OneofDescriptorProto; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OneofDescriptorProto create() => OneofDescriptorProto._(); OneofDescriptorProto createEmptyInstance() => create(); @@ -1043,44 +1289,27 @@ class OneofDescriptorProto extends $pb.GeneratedMessage { OneofOptions ensureOptions() => $_ensure(1); } +/// Range of reserved numeric values. Reserved values may not be used by +/// entries in the same enum. Reserved ranges may not overlap. +/// +/// Note that this is distinct from DescriptorProto.ReservedRange in that it +/// is inclusive such that it can appropriately represent the entire int32 +/// domain. class EnumDescriptorProto_EnumReservedRange extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnumDescriptorProto.EnumReservedRange', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'start', - $pb.PbFieldType.O3) - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'end', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - EnumDescriptorProto_EnumReservedRange._() : super(); factory EnumDescriptorProto_EnumReservedRange({ $core.int? start, $core.int? end, }) { - final _result = create(); + final $result = create(); if (start != null) { - _result.start = start; + $result.start = start; } if (end != null) { - _result.end = end; + $result.end = end; } - return _result; + return $result; } + EnumDescriptorProto_EnumReservedRange._() : super(); factory EnumDescriptorProto_EnumReservedRange.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -1088,6 +1317,16 @@ class EnumDescriptorProto_EnumReservedRange extends $pb.GeneratedMessage { factory EnumDescriptorProto_EnumReservedRange.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnumDescriptorProto.EnumReservedRange', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'start', $pb.PbFieldType.O3) + ..a<$core.int>(2, _omitFieldNames ? '' : 'end', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1100,8 +1339,10 @@ class EnumDescriptorProto_EnumReservedRange extends $pb.GeneratedMessage { void Function(EnumDescriptorProto_EnumReservedRange) updates) => super.copyWith((message) => updates(message as EnumDescriptorProto_EnumReservedRange)) - as EnumDescriptorProto_EnumReservedRange; // ignore: deprecated_member_use + as EnumDescriptorProto_EnumReservedRange; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnumDescriptorProto_EnumReservedRange create() => EnumDescriptorProto_EnumReservedRange._(); @@ -1139,32 +1380,8 @@ class EnumDescriptorProto_EnumReservedRange extends $pb.GeneratedMessage { void clearEnd() => clearField(2); } +/// Describes an enum type. class EnumDescriptorProto extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'EnumDescriptorProto', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.PM, - subBuilder: EnumValueDescriptorProto.create) - ..aOM( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'options', - subBuilder: EnumOptions.create) - ..pc( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reservedRange', - $pb.PbFieldType.PM, - subBuilder: EnumDescriptorProto_EnumReservedRange.create) - ..pPS(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reservedName'); - - EnumDescriptorProto._() : super(); factory EnumDescriptorProto({ $core.String? name, $core.Iterable? value, @@ -1172,30 +1389,48 @@ class EnumDescriptorProto extends $pb.GeneratedMessage { $core.Iterable? reservedRange, $core.Iterable<$core.String>? reservedName, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (value != null) { - _result.value.addAll(value); + $result.value.addAll(value); } if (options != null) { - _result.options = options; + $result.options = options; } if (reservedRange != null) { - _result.reservedRange.addAll(reservedRange); + $result.reservedRange.addAll(reservedRange); } if (reservedName != null) { - _result.reservedName.addAll(reservedName); + $result.reservedName.addAll(reservedName); } - return _result; + return $result; } + EnumDescriptorProto._() : super(); factory EnumDescriptorProto.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EnumDescriptorProto.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnumDescriptorProto', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pc( + 2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.PM, + subBuilder: EnumValueDescriptorProto.create) + ..aOM(3, _omitFieldNames ? '' : 'options', + subBuilder: EnumOptions.create) + ..pc( + 4, _omitFieldNames ? '' : 'reservedRange', $pb.PbFieldType.PM, + subBuilder: EnumDescriptorProto_EnumReservedRange.create) + ..pPS(5, _omitFieldNames ? '' : 'reservedName'); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1205,8 +1440,10 @@ class EnumDescriptorProto extends $pb.GeneratedMessage { 'Will be removed in next major version') EnumDescriptorProto copyWith(void Function(EnumDescriptorProto) updates) => super.copyWith((message) => updates(message as EnumDescriptorProto)) - as EnumDescriptorProto; // ignore: deprecated_member_use + as EnumDescriptorProto; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnumDescriptorProto create() => EnumDescriptorProto._(); EnumDescriptorProto createEmptyInstance() => create(); @@ -1246,66 +1483,56 @@ class EnumDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(3) EnumOptions ensureOptions() => $_ensure(2); + /// Range of reserved numeric values. Reserved numeric values may not be used + /// by enum values in the same enum declaration. Reserved ranges may not + /// overlap. @$pb.TagNumber(4) $core.List get reservedRange => $_getList(3); + /// Reserved enum value names, which may not be reused. A given name may only + /// be reserved once. @$pb.TagNumber(5) $core.List<$core.String> get reservedName => $_getList(4); } +/// Describes a value within an enum. class EnumValueDescriptorProto extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnumValueDescriptorProto', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'number', - $pb.PbFieldType.O3) - ..aOM( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'options', - subBuilder: EnumValueOptions.create); - - EnumValueDescriptorProto._() : super(); factory EnumValueDescriptorProto({ $core.String? name, $core.int? number, EnumValueOptions? options, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (number != null) { - _result.number = number; + $result.number = number; } if (options != null) { - _result.options = options; + $result.options = options; } - return _result; + return $result; } + EnumValueDescriptorProto._() : super(); factory EnumValueDescriptorProto.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EnumValueDescriptorProto.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnumValueDescriptorProto', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..a<$core.int>(2, _omitFieldNames ? '' : 'number', $pb.PbFieldType.O3) + ..aOM(3, _omitFieldNames ? '' : 'options', + subBuilder: EnumValueOptions.create); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1317,8 +1544,10 @@ class EnumValueDescriptorProto extends $pb.GeneratedMessage { EnumValueDescriptorProto copyWith( void Function(EnumValueDescriptorProto) updates) => super.copyWith((message) => updates(message as EnumValueDescriptorProto)) - as EnumValueDescriptorProto; // ignore: deprecated_member_use + as EnumValueDescriptorProto; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnumValueDescriptorProto create() => EnumValueDescriptorProto._(); EnumValueDescriptorProto createEmptyInstance() => create(); @@ -1368,52 +1597,45 @@ class EnumValueDescriptorProto extends $pb.GeneratedMessage { EnumValueOptions ensureOptions() => $_ensure(2); } +/// Describes a service. class ServiceDescriptorProto extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ServiceDescriptorProto', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'method', $pb.PbFieldType.PM, - subBuilder: MethodDescriptorProto.create) - ..aOM(3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'options', - subBuilder: ServiceOptions.create); - - ServiceDescriptorProto._() : super(); factory ServiceDescriptorProto({ $core.String? name, $core.Iterable? method, ServiceOptions? options, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (method != null) { - _result.method.addAll(method); + $result.method.addAll(method); } if (options != null) { - _result.options = options; + $result.options = options; } - return _result; + return $result; } + ServiceDescriptorProto._() : super(); factory ServiceDescriptorProto.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ServiceDescriptorProto.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ServiceDescriptorProto', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..pc( + 2, _omitFieldNames ? '' : 'method', $pb.PbFieldType.PM, + subBuilder: MethodDescriptorProto.create) + ..aOM(3, _omitFieldNames ? '' : 'options', + subBuilder: ServiceOptions.create); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1425,8 +1647,10 @@ class ServiceDescriptorProto extends $pb.GeneratedMessage { ServiceDescriptorProto copyWith( void Function(ServiceDescriptorProto) updates) => super.copyWith((message) => updates(message as ServiceDescriptorProto)) - as ServiceDescriptorProto; // ignore: deprecated_member_use + as ServiceDescriptorProto; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ServiceDescriptorProto create() => ServiceDescriptorProto._(); ServiceDescriptorProto createEmptyInstance() => create(); @@ -1467,38 +1691,8 @@ class ServiceDescriptorProto extends $pb.GeneratedMessage { ServiceOptions ensureOptions() => $_ensure(2); } +/// Describes a method of a service. class MethodDescriptorProto extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MethodDescriptorProto', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'inputType') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'outputType') - ..aOM( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'options', - subBuilder: MethodOptions.create) - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'clientStreaming') - ..aOB(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'serverStreaming'); - - MethodDescriptorProto._() : super(); factory MethodDescriptorProto({ $core.String? name, $core.String? inputType, @@ -1507,33 +1701,48 @@ class MethodDescriptorProto extends $pb.GeneratedMessage { $core.bool? clientStreaming, $core.bool? serverStreaming, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name = name; + $result.name = name; } if (inputType != null) { - _result.inputType = inputType; + $result.inputType = inputType; } if (outputType != null) { - _result.outputType = outputType; + $result.outputType = outputType; } if (options != null) { - _result.options = options; + $result.options = options; } if (clientStreaming != null) { - _result.clientStreaming = clientStreaming; + $result.clientStreaming = clientStreaming; } if (serverStreaming != null) { - _result.serverStreaming = serverStreaming; + $result.serverStreaming = serverStreaming; } - return _result; + return $result; } + MethodDescriptorProto._() : super(); factory MethodDescriptorProto.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MethodDescriptorProto.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MethodDescriptorProto', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'name') + ..aOS(2, _omitFieldNames ? '' : 'inputType') + ..aOS(3, _omitFieldNames ? '' : 'outputType') + ..aOM(4, _omitFieldNames ? '' : 'options', + subBuilder: MethodOptions.create) + ..aOB(5, _omitFieldNames ? '' : 'clientStreaming') + ..aOB(6, _omitFieldNames ? '' : 'serverStreaming'); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1545,8 +1754,10 @@ class MethodDescriptorProto extends $pb.GeneratedMessage { MethodDescriptorProto copyWith( void Function(MethodDescriptorProto) updates) => super.copyWith((message) => updates(message as MethodDescriptorProto)) - as MethodDescriptorProto; // ignore: deprecated_member_use + as MethodDescriptorProto; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MethodDescriptorProto create() => MethodDescriptorProto._(); MethodDescriptorProto createEmptyInstance() => create(); @@ -1569,6 +1780,8 @@ class MethodDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearName() => clearField(1); + /// Input and output type names. These are resolved in the same way as + /// FieldDescriptorProto.type_name, but must refer to a message type. @$pb.TagNumber(2) $core.String get inputType => $_getSZ(1); @$pb.TagNumber(2) @@ -1607,6 +1820,7 @@ class MethodDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(4) MethodOptions ensureOptions() => $_ensure(3); + /// Identifies if client streams multiple client messages @$pb.TagNumber(5) $core.bool get clientStreaming => $_getBF(4); @$pb.TagNumber(5) @@ -1619,6 +1833,7 @@ class MethodDescriptorProto extends $pb.GeneratedMessage { @$pb.TagNumber(5) void clearClientStreaming() => clearField(5); + /// Identifies if server streams multiple server messages @$pb.TagNumber(6) $core.bool get serverStreaming => $_getBF(5); @$pb.TagNumber(6) @@ -1633,55 +1848,6 @@ class MethodDescriptorProto extends $pb.GeneratedMessage { } class FileOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'FileOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'javaPackage') - ..aOS( - 8, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'javaOuterClassname') - ..e( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'optimizeFor', - $pb.PbFieldType.OE, - defaultOrMaker: FileOptions_OptimizeMode.SPEED, - valueOf: FileOptions_OptimizeMode.valueOf, - enumValues: FileOptions_OptimizeMode.values) - ..aOB(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'javaMultipleFiles') - ..aOS(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'goPackage') - ..aOB(16, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ccGenericServices') - ..aOB(17, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'javaGenericServices') - ..aOB(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pyGenericServices') - ..aOB(20, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'javaGenerateEqualsAndHash') - ..aOB(23, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'deprecated') - ..aOB(27, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'javaStringCheckUtf8') - ..a<$core.bool>(31, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'ccEnableArenas', $pb.PbFieldType.OB, defaultOrMaker: true) - ..aOS(36, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'objcClassPrefix') - ..aOS(37, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'csharpNamespace') - ..aOS(39, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'swiftPrefix') - ..aOS(40, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'phpClassPrefix') - ..aOS(41, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'phpNamespace') - ..aOB(42, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'phpGenericServices') - ..aOS(44, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'phpMetadataNamespace') - ..aOS(45, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'rubyPackage') - ..pc(999, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, subBuilder: UninterpretedOption.create) - ..hasExtensions = true; - - FileOptions._() : super(); factory FileOptions({ $core.String? javaPackage, $core.String? javaOuterClassname, @@ -1692,7 +1858,7 @@ class FileOptions extends $pb.GeneratedMessage { $core.bool? javaGenericServices, $core.bool? pyGenericServices, @$core.Deprecated('This field is deprecated.') - $core.bool? javaGenerateEqualsAndHash, + $core.bool? javaGenerateEqualsAndHash, $core.bool? deprecated, $core.bool? javaStringCheckUtf8, $core.bool? ccEnableArenas, @@ -1701,84 +1867,123 @@ class FileOptions extends $pb.GeneratedMessage { $core.String? swiftPrefix, $core.String? phpClassPrefix, $core.String? phpNamespace, - $core.bool? phpGenericServices, $core.String? phpMetadataNamespace, $core.String? rubyPackage, + FeatureSet? features, $core.Iterable? uninterpretedOption, }) { - final _result = create(); + final $result = create(); if (javaPackage != null) { - _result.javaPackage = javaPackage; + $result.javaPackage = javaPackage; } if (javaOuterClassname != null) { - _result.javaOuterClassname = javaOuterClassname; + $result.javaOuterClassname = javaOuterClassname; } if (optimizeFor != null) { - _result.optimizeFor = optimizeFor; + $result.optimizeFor = optimizeFor; } if (javaMultipleFiles != null) { - _result.javaMultipleFiles = javaMultipleFiles; + $result.javaMultipleFiles = javaMultipleFiles; } if (goPackage != null) { - _result.goPackage = goPackage; + $result.goPackage = goPackage; } if (ccGenericServices != null) { - _result.ccGenericServices = ccGenericServices; + $result.ccGenericServices = ccGenericServices; } if (javaGenericServices != null) { - _result.javaGenericServices = javaGenericServices; + $result.javaGenericServices = javaGenericServices; } if (pyGenericServices != null) { - _result.pyGenericServices = pyGenericServices; + $result.pyGenericServices = pyGenericServices; } if (javaGenerateEqualsAndHash != null) { // ignore: deprecated_member_use_from_same_package - _result.javaGenerateEqualsAndHash = javaGenerateEqualsAndHash; + $result.javaGenerateEqualsAndHash = javaGenerateEqualsAndHash; } if (deprecated != null) { - _result.deprecated = deprecated; + $result.deprecated = deprecated; } if (javaStringCheckUtf8 != null) { - _result.javaStringCheckUtf8 = javaStringCheckUtf8; + $result.javaStringCheckUtf8 = javaStringCheckUtf8; } if (ccEnableArenas != null) { - _result.ccEnableArenas = ccEnableArenas; + $result.ccEnableArenas = ccEnableArenas; } if (objcClassPrefix != null) { - _result.objcClassPrefix = objcClassPrefix; + $result.objcClassPrefix = objcClassPrefix; } if (csharpNamespace != null) { - _result.csharpNamespace = csharpNamespace; + $result.csharpNamespace = csharpNamespace; } if (swiftPrefix != null) { - _result.swiftPrefix = swiftPrefix; + $result.swiftPrefix = swiftPrefix; } if (phpClassPrefix != null) { - _result.phpClassPrefix = phpClassPrefix; + $result.phpClassPrefix = phpClassPrefix; } if (phpNamespace != null) { - _result.phpNamespace = phpNamespace; - } - if (phpGenericServices != null) { - _result.phpGenericServices = phpGenericServices; + $result.phpNamespace = phpNamespace; } if (phpMetadataNamespace != null) { - _result.phpMetadataNamespace = phpMetadataNamespace; + $result.phpMetadataNamespace = phpMetadataNamespace; } if (rubyPackage != null) { - _result.rubyPackage = rubyPackage; + $result.rubyPackage = rubyPackage; + } + if (features != null) { + $result.features = features; } if (uninterpretedOption != null) { - _result.uninterpretedOption.addAll(uninterpretedOption); + $result.uninterpretedOption.addAll(uninterpretedOption); } - return _result; + return $result; } + FileOptions._() : super(); factory FileOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory FileOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FileOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'javaPackage') + ..aOS(8, _omitFieldNames ? '' : 'javaOuterClassname') + ..e( + 9, _omitFieldNames ? '' : 'optimizeFor', $pb.PbFieldType.OE, + defaultOrMaker: FileOptions_OptimizeMode.SPEED, + valueOf: FileOptions_OptimizeMode.valueOf, + enumValues: FileOptions_OptimizeMode.values) + ..aOB(10, _omitFieldNames ? '' : 'javaMultipleFiles') + ..aOS(11, _omitFieldNames ? '' : 'goPackage') + ..aOB(16, _omitFieldNames ? '' : 'ccGenericServices') + ..aOB(17, _omitFieldNames ? '' : 'javaGenericServices') + ..aOB(18, _omitFieldNames ? '' : 'pyGenericServices') + ..aOB(20, _omitFieldNames ? '' : 'javaGenerateEqualsAndHash') + ..aOB(23, _omitFieldNames ? '' : 'deprecated') + ..aOB(27, _omitFieldNames ? '' : 'javaStringCheckUtf8') + ..a<$core.bool>( + 31, _omitFieldNames ? '' : 'ccEnableArenas', $pb.PbFieldType.OB, + defaultOrMaker: true) + ..aOS(36, _omitFieldNames ? '' : 'objcClassPrefix') + ..aOS(37, _omitFieldNames ? '' : 'csharpNamespace') + ..aOS(39, _omitFieldNames ? '' : 'swiftPrefix') + ..aOS(40, _omitFieldNames ? '' : 'phpClassPrefix') + ..aOS(41, _omitFieldNames ? '' : 'phpNamespace') + ..aOS(44, _omitFieldNames ? '' : 'phpMetadataNamespace') + ..aOS(45, _omitFieldNames ? '' : 'rubyPackage') + ..aOM(50, _omitFieldNames ? '' : 'features', + subBuilder: FeatureSet.create) + ..pc( + 999, _omitFieldNames ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, + subBuilder: UninterpretedOption.create) + ..hasExtensions = true; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1788,8 +1993,10 @@ class FileOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') FileOptions copyWith(void Function(FileOptions) updates) => super.copyWith((message) => updates(message as FileOptions)) - as FileOptions; // ignore: deprecated_member_use + as FileOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static FileOptions create() => FileOptions._(); FileOptions createEmptyInstance() => create(); @@ -1799,6 +2006,10 @@ class FileOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static FileOptions? _defaultInstance; + /// Sets the Java package where classes generated from this .proto will be + /// placed. By default, the proto package is used, but this is often + /// inappropriate because proto packages do not normally start with backwards + /// domain names. @$pb.TagNumber(1) $core.String get javaPackage => $_getSZ(0); @$pb.TagNumber(1) @@ -1811,6 +2022,11 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearJavaPackage() => clearField(1); + /// Controls the name of the wrapper Java class generated for the .proto file. + /// That class will always contain the .proto file's getDescriptor() method as + /// well as any top-level extensions defined in the .proto file. + /// If java_multiple_files is disabled, then all the other classes from the + /// .proto file will be nested inside the single wrapper outer class. @$pb.TagNumber(8) $core.String get javaOuterClassname => $_getSZ(1); @$pb.TagNumber(8) @@ -1835,6 +2051,12 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(9) void clearOptimizeFor() => clearField(9); + /// If enabled, then the Java code generator will generate a separate .java + /// file for each top-level message, enum, and service defined in the .proto + /// file. Thus, these types will *not* be nested inside the wrapper class + /// named by java_outer_classname. However, the wrapper class will still be + /// generated to contain the file's getDescriptor() method as well as any + /// top-level extensions defined in the file. @$pb.TagNumber(10) $core.bool get javaMultipleFiles => $_getBF(3); @$pb.TagNumber(10) @@ -1847,6 +2069,11 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearJavaMultipleFiles() => clearField(10); + /// Sets the Go package where structs generated from this .proto will be + /// placed. If omitted, the Go package will be derived from the following: + /// - The basename of the package import path, if provided. + /// - Otherwise, the package statement in the .proto file, if present. + /// - Otherwise, the basename of the .proto file, without extension. @$pb.TagNumber(11) $core.String get goPackage => $_getSZ(4); @$pb.TagNumber(11) @@ -1859,6 +2086,16 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(11) void clearGoPackage() => clearField(11); + /// Should generic services be generated in each language? "Generic" services + /// are not specific to any particular RPC system. They are generated by the + /// main code generators in each language (without additional plugins). + /// Generic services were the only kind of service generation supported by + /// early versions of google.protobuf. + /// + /// Generic services are now considered deprecated in favor of using plugins + /// that generate code specific to your particular RPC system. Therefore, + /// these default to false. Old code which depends on generic services should + /// explicitly set them to true. @$pb.TagNumber(16) $core.bool get ccGenericServices => $_getBF(5); @$pb.TagNumber(16) @@ -1895,6 +2132,7 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(18) void clearPyGenericServices() => clearField(18); + /// This option does nothing. @$core.Deprecated('This field is deprecated.') @$pb.TagNumber(20) $core.bool get javaGenerateEqualsAndHash => $_getBF(8); @@ -1911,6 +2149,10 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(20) void clearJavaGenerateEqualsAndHash() => clearField(20); + /// Is this file deprecated? + /// Depending on the target platform, this can emit Deprecated annotations + /// for everything in the file, or it will be completely ignored; in the very + /// least, this is a formalization for deprecating files. @$pb.TagNumber(23) $core.bool get deprecated => $_getBF(9); @$pb.TagNumber(23) @@ -1923,6 +2165,16 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(23) void clearDeprecated() => clearField(23); + /// A proto2 file can set this to true to opt in to UTF-8 checking for Java, + /// which will throw an exception if invalid UTF-8 is parsed from the wire or + /// assigned to a string field. + /// + /// TODO: clarify exactly what kinds of field types this option + /// applies to, and update these docs accordingly. + /// + /// Proto3 files already perform these checks. Setting the option explicitly to + /// false has no effect: it cannot be used to opt proto3 files out of UTF-8 + /// checks. @$pb.TagNumber(27) $core.bool get javaStringCheckUtf8 => $_getBF(10); @$pb.TagNumber(27) @@ -1935,6 +2187,8 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(27) void clearJavaStringCheckUtf8() => clearField(27); + /// Enables the use of arenas for the proto messages in this file. This applies + /// only to generated classes for C++. @$pb.TagNumber(31) $core.bool get ccEnableArenas => $_getB(11, true); @$pb.TagNumber(31) @@ -1947,6 +2201,8 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(31) void clearCcEnableArenas() => clearField(31); + /// Sets the objective c class prefix which is prepended to all objective c + /// generated classes from this .proto. There is no default. @$pb.TagNumber(36) $core.String get objcClassPrefix => $_getSZ(12); @$pb.TagNumber(36) @@ -1959,6 +2215,7 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(36) void clearObjcClassPrefix() => clearField(36); + /// Namespace for generated classes; defaults to the package. @$pb.TagNumber(37) $core.String get csharpNamespace => $_getSZ(13); @$pb.TagNumber(37) @@ -1971,6 +2228,10 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(37) void clearCsharpNamespace() => clearField(37); + /// By default Swift generators will take the proto package and CamelCase it + /// replacing '.' with underscore and use that to prefix the types/symbols + /// defined. When this options is provided, they will use this value instead + /// to prefix the types/symbols defined. @$pb.TagNumber(39) $core.String get swiftPrefix => $_getSZ(14); @$pb.TagNumber(39) @@ -1983,6 +2244,8 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(39) void clearSwiftPrefix() => clearField(39); + /// Sets the php class prefix which is prepended to all php generated classes + /// from this .proto. Default is empty. @$pb.TagNumber(40) $core.String get phpClassPrefix => $_getSZ(15); @$pb.TagNumber(40) @@ -1995,6 +2258,9 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(40) void clearPhpClassPrefix() => clearField(40); + /// Use this option to change the namespace of php generated classes. Default + /// is empty. When this option is empty, the package name will be used for + /// determining the namespace. @$pb.TagNumber(41) $core.String get phpNamespace => $_getSZ(16); @$pb.TagNumber(41) @@ -2007,110 +2273,119 @@ class FileOptions extends $pb.GeneratedMessage { @$pb.TagNumber(41) void clearPhpNamespace() => clearField(41); - @$pb.TagNumber(42) - $core.bool get phpGenericServices => $_getBF(17); - @$pb.TagNumber(42) - set phpGenericServices($core.bool v) { - $_setBool(17, v); - } - - @$pb.TagNumber(42) - $core.bool hasPhpGenericServices() => $_has(17); - @$pb.TagNumber(42) - void clearPhpGenericServices() => clearField(42); - + /// Use this option to change the namespace of php generated metadata classes. + /// Default is empty. When this option is empty, the proto file name will be + /// used for determining the namespace. @$pb.TagNumber(44) - $core.String get phpMetadataNamespace => $_getSZ(18); + $core.String get phpMetadataNamespace => $_getSZ(17); @$pb.TagNumber(44) set phpMetadataNamespace($core.String v) { - $_setString(18, v); + $_setString(17, v); } @$pb.TagNumber(44) - $core.bool hasPhpMetadataNamespace() => $_has(18); + $core.bool hasPhpMetadataNamespace() => $_has(17); @$pb.TagNumber(44) void clearPhpMetadataNamespace() => clearField(44); + /// Use this option to change the package of ruby generated classes. Default + /// is empty. When this option is not set, the package name will be used for + /// determining the ruby package. @$pb.TagNumber(45) - $core.String get rubyPackage => $_getSZ(19); + $core.String get rubyPackage => $_getSZ(18); @$pb.TagNumber(45) set rubyPackage($core.String v) { - $_setString(19, v); + $_setString(18, v); } @$pb.TagNumber(45) - $core.bool hasRubyPackage() => $_has(19); + $core.bool hasRubyPackage() => $_has(18); @$pb.TagNumber(45) void clearRubyPackage() => clearField(45); + /// Any features defined in the specific edition. + @$pb.TagNumber(50) + FeatureSet get features => $_getN(19); + @$pb.TagNumber(50) + set features(FeatureSet v) { + setField(50, v); + } + + @$pb.TagNumber(50) + $core.bool hasFeatures() => $_has(19); + @$pb.TagNumber(50) + void clearFeatures() => clearField(50); + @$pb.TagNumber(50) + FeatureSet ensureFeatures() => $_ensure(19); + + /// The parser stores options it doesn't recognize here. + /// See the documentation for the "Options" section above. @$pb.TagNumber(999) $core.List get uninterpretedOption => $_getList(20); } class MessageOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'MessageOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'messageSetWireFormat') - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'noStandardDescriptorAccessor') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'deprecated') - ..aOB( - 7, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'mapEntry') - ..pc( - 999, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, - subBuilder: UninterpretedOption.create) - ..hasExtensions = true; - - MessageOptions._() : super(); factory MessageOptions({ $core.bool? messageSetWireFormat, $core.bool? noStandardDescriptorAccessor, $core.bool? deprecated, $core.bool? mapEntry, + @$core.Deprecated('This field is deprecated.') + $core.bool? deprecatedLegacyJsonFieldConflicts, + FeatureSet? features, $core.Iterable? uninterpretedOption, }) { - final _result = create(); + final $result = create(); if (messageSetWireFormat != null) { - _result.messageSetWireFormat = messageSetWireFormat; + $result.messageSetWireFormat = messageSetWireFormat; } if (noStandardDescriptorAccessor != null) { - _result.noStandardDescriptorAccessor = noStandardDescriptorAccessor; + $result.noStandardDescriptorAccessor = noStandardDescriptorAccessor; } if (deprecated != null) { - _result.deprecated = deprecated; + $result.deprecated = deprecated; } if (mapEntry != null) { - _result.mapEntry = mapEntry; + $result.mapEntry = mapEntry; + } + if (deprecatedLegacyJsonFieldConflicts != null) { + // ignore: deprecated_member_use_from_same_package + $result.deprecatedLegacyJsonFieldConflicts = + deprecatedLegacyJsonFieldConflicts; + } + if (features != null) { + $result.features = features; } if (uninterpretedOption != null) { - _result.uninterpretedOption.addAll(uninterpretedOption); + $result.uninterpretedOption.addAll(uninterpretedOption); } - return _result; + return $result; } + MessageOptions._() : super(); factory MessageOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MessageOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MessageOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'messageSetWireFormat') + ..aOB(2, _omitFieldNames ? '' : 'noStandardDescriptorAccessor') + ..aOB(3, _omitFieldNames ? '' : 'deprecated') + ..aOB(7, _omitFieldNames ? '' : 'mapEntry') + ..aOB(11, _omitFieldNames ? '' : 'deprecatedLegacyJsonFieldConflicts') + ..aOM(12, _omitFieldNames ? '' : 'features', + subBuilder: FeatureSet.create) + ..pc( + 999, _omitFieldNames ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, + subBuilder: UninterpretedOption.create) + ..hasExtensions = true; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2120,8 +2395,10 @@ class MessageOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') MessageOptions copyWith(void Function(MessageOptions) updates) => super.copyWith((message) => updates(message as MessageOptions)) - as MessageOptions; // ignore: deprecated_member_use + as MessageOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MessageOptions create() => MessageOptions._(); MessageOptions createEmptyInstance() => create(); @@ -2132,6 +2409,24 @@ class MessageOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MessageOptions? _defaultInstance; + /// Set true to use the old proto1 MessageSet wire format for extensions. + /// This is provided for backwards-compatibility with the MessageSet wire + /// format. You should not use this for any other reason: It's less + /// efficient, has fewer features, and is more complicated. + /// + /// The message must be defined exactly as follows: + /// message Foo { + /// option message_set_wire_format = true; + /// extensions 4 to max; + /// } + /// Note that the message cannot have any defined fields; MessageSets only + /// have extensions. + /// + /// All extensions of your type must be singular messages; e.g. they cannot + /// be int32s, enums, or repeated messages. + /// + /// Because this is an option, the above two restrictions are not enforced by + /// the protocol compiler. @$pb.TagNumber(1) $core.bool get messageSetWireFormat => $_getBF(0); @$pb.TagNumber(1) @@ -2144,6 +2439,9 @@ class MessageOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearMessageSetWireFormat() => clearField(1); + /// Disables the generation of the standard "descriptor()" accessor, which can + /// conflict with a field of the same name. This is meant to make migration + /// from proto1 easier; new code should avoid fields named "descriptor". @$pb.TagNumber(2) $core.bool get noStandardDescriptorAccessor => $_getBF(1); @$pb.TagNumber(2) @@ -2156,6 +2454,10 @@ class MessageOptions extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearNoStandardDescriptorAccessor() => clearField(2); + /// Is this message deprecated? + /// Depending on the target platform, this can emit Deprecated annotations + /// for the message, or it will be completely ignored; in the very least, + /// this is a formalization for deprecating messages. @$pb.TagNumber(3) $core.bool get deprecated => $_getBF(2); @$pb.TagNumber(3) @@ -2168,6 +2470,27 @@ class MessageOptions extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDeprecated() => clearField(3); + /// Whether the message is an automatically generated map entry type for the + /// maps field. + /// + /// For maps fields: + /// map map_field = 1; + /// The parsed descriptor looks like: + /// message MapFieldEntry { + /// option map_entry = true; + /// optional KeyType key = 1; + /// optional ValueType value = 2; + /// } + /// repeated MapFieldEntry map_field = 1; + /// + /// Implementations may choose not to generate the map_entry=true message, but + /// use a native map in the target language to hold the keys and values. + /// The reflection APIs in such implementations still need to work as + /// if the field is a repeated message field. + /// + /// NOTE: Do not set the option in .proto files. Always use the maps syntax + /// instead. The option should only be implicitly set by the proto compiler + /// parser. @$pb.TagNumber(7) $core.bool get mapEntry => $_getBF(3); @$pb.TagNumber(7) @@ -2180,150 +2503,516 @@ class MessageOptions extends $pb.GeneratedMessage { @$pb.TagNumber(7) void clearMapEntry() => clearField(7); + /// Enable the legacy handling of JSON field name conflicts. This lowercases + /// and strips underscored from the fields before comparison in proto3 only. + /// The new behavior takes `json_name` into account and applies to proto2 as + /// well. + /// + /// This should only be used as a temporary measure against broken builds due + /// to the change in behavior for JSON field name conflicts. + /// + /// TODO This is legacy behavior we plan to remove once downstream + /// teams have had time to migrate. + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(11) + $core.bool get deprecatedLegacyJsonFieldConflicts => $_getBF(4); + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(11) + set deprecatedLegacyJsonFieldConflicts($core.bool v) { + $_setBool(4, v); + } + + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(11) + $core.bool hasDeprecatedLegacyJsonFieldConflicts() => $_has(4); + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(11) + void clearDeprecatedLegacyJsonFieldConflicts() => clearField(11); + + /// Any features defined in the specific edition. + @$pb.TagNumber(12) + FeatureSet get features => $_getN(5); + @$pb.TagNumber(12) + set features(FeatureSet v) { + setField(12, v); + } + + @$pb.TagNumber(12) + $core.bool hasFeatures() => $_has(5); + @$pb.TagNumber(12) + void clearFeatures() => clearField(12); + @$pb.TagNumber(12) + FeatureSet ensureFeatures() => $_ensure(5); + + /// The parser stores options it doesn't recognize here. See above. @$pb.TagNumber(999) - $core.List get uninterpretedOption => $_getList(4); + $core.List get uninterpretedOption => $_getList(6); } -class FieldOptions extends $pb.GeneratedMessage { +class FieldOptions_EditionDefault extends $pb.GeneratedMessage { + factory FieldOptions_EditionDefault({ + $core.String? value, + Edition? edition, + }) { + final $result = create(); + if (value != null) { + $result.value = value; + } + if (edition != null) { + $result.edition = edition; + } + return $result; + } + FieldOptions_EditionDefault._() : super(); + factory FieldOptions_EditionDefault.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory FieldOptions_EditionDefault.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'FieldOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), + _omitMessageNames ? '' : 'FieldOptions.EditionDefault', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'ctype', - $pb.PbFieldType.OE, - defaultOrMaker: FieldOptions_CType.STRING, - valueOf: FieldOptions_CType.valueOf, - enumValues: FieldOptions_CType.values) - ..aOB(2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packed') - ..aOB(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'deprecated') - ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'lazy') - ..e(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'jstype', $pb.PbFieldType.OE, defaultOrMaker: FieldOptions_JSType.JS_NORMAL, valueOf: FieldOptions_JSType.valueOf, enumValues: FieldOptions_JSType.values) - ..aOB(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'weak') - ..pc(999, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, subBuilder: UninterpretedOption.create) - ..hasExtensions = true; + ..aOS(2, _omitFieldNames ? '' : 'value') + ..e(3, _omitFieldNames ? '' : 'edition', $pb.PbFieldType.OE, + defaultOrMaker: Edition.EDITION_UNKNOWN, + valueOf: Edition.valueOf, + enumValues: Edition.values) + ..hasRequiredFields = false; - FieldOptions._() : super(); - factory FieldOptions({ - FieldOptions_CType? ctype, - $core.bool? packed, - $core.bool? deprecated, - $core.bool? lazy, - FieldOptions_JSType? jstype, - $core.bool? weak, - $core.Iterable? uninterpretedOption, + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FieldOptions_EditionDefault clone() => + FieldOptions_EditionDefault()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FieldOptions_EditionDefault copyWith( + void Function(FieldOptions_EditionDefault) updates) => + super.copyWith( + (message) => updates(message as FieldOptions_EditionDefault)) + as FieldOptions_EditionDefault; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static FieldOptions_EditionDefault create() => + FieldOptions_EditionDefault._(); + FieldOptions_EditionDefault createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FieldOptions_EditionDefault getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static FieldOptions_EditionDefault? _defaultInstance; + + @$pb.TagNumber(2) + $core.String get value => $_getSZ(0); + @$pb.TagNumber(2) + set value($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(2) + $core.bool hasValue() => $_has(0); + @$pb.TagNumber(2) + void clearValue() => clearField(2); + + @$pb.TagNumber(3) + Edition get edition => $_getN(1); + @$pb.TagNumber(3) + set edition(Edition v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasEdition() => $_has(1); + @$pb.TagNumber(3) + void clearEdition() => clearField(3); +} + +/// Information about the support window of a feature. +class FieldOptions_FeatureSupport extends $pb.GeneratedMessage { + factory FieldOptions_FeatureSupport({ + Edition? editionIntroduced, + Edition? editionDeprecated, + $core.String? deprecationWarning, + Edition? editionRemoved, }) { - final _result = create(); - if (ctype != null) { - _result.ctype = ctype; - } - if (packed != null) { - _result.packed = packed; - } - if (deprecated != null) { - _result.deprecated = deprecated; - } - if (lazy != null) { - _result.lazy = lazy; + final $result = create(); + if (editionIntroduced != null) { + $result.editionIntroduced = editionIntroduced; } - if (jstype != null) { - _result.jstype = jstype; + if (editionDeprecated != null) { + $result.editionDeprecated = editionDeprecated; } - if (weak != null) { - _result.weak = weak; + if (deprecationWarning != null) { + $result.deprecationWarning = deprecationWarning; } - if (uninterpretedOption != null) { - _result.uninterpretedOption.addAll(uninterpretedOption); + if (editionRemoved != null) { + $result.editionRemoved = editionRemoved; } - return _result; + return $result; } - factory FieldOptions.fromBuffer($core.List<$core.int> i, + FieldOptions_FeatureSupport._() : super(); + factory FieldOptions_FeatureSupport.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory FieldOptions.fromJson($core.String i, + factory FieldOptions_FeatureSupport.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FieldOptions.FeatureSupport', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'editionIntroduced', $pb.PbFieldType.OE, + defaultOrMaker: Edition.EDITION_UNKNOWN, + valueOf: Edition.valueOf, + enumValues: Edition.values) + ..e( + 2, _omitFieldNames ? '' : 'editionDeprecated', $pb.PbFieldType.OE, + defaultOrMaker: Edition.EDITION_UNKNOWN, + valueOf: Edition.valueOf, + enumValues: Edition.values) + ..aOS(3, _omitFieldNames ? '' : 'deprecationWarning') + ..e(4, _omitFieldNames ? '' : 'editionRemoved', $pb.PbFieldType.OE, + defaultOrMaker: Edition.EDITION_UNKNOWN, + valueOf: Edition.valueOf, + enumValues: Edition.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - FieldOptions clone() => FieldOptions()..mergeFromMessage(this); + FieldOptions_FeatureSupport clone() => + FieldOptions_FeatureSupport()..mergeFromMessage(this); @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - FieldOptions copyWith(void Function(FieldOptions) updates) => - super.copyWith((message) => updates(message as FieldOptions)) - as FieldOptions; // ignore: deprecated_member_use + FieldOptions_FeatureSupport copyWith( + void Function(FieldOptions_FeatureSupport) updates) => + super.copyWith( + (message) => updates(message as FieldOptions_FeatureSupport)) + as FieldOptions_FeatureSupport; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') - static FieldOptions create() => FieldOptions._(); - FieldOptions createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); + static FieldOptions_FeatureSupport create() => + FieldOptions_FeatureSupport._(); + FieldOptions_FeatureSupport createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); @$core.pragma('dart2js:noInline') - static FieldOptions getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static FieldOptions? _defaultInstance; + static FieldOptions_FeatureSupport getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static FieldOptions_FeatureSupport? _defaultInstance; + /// The edition that this feature was first available in. In editions + /// earlier than this one, the default assigned to EDITION_LEGACY will be + /// used, and proto files will not be able to override it. @$pb.TagNumber(1) - FieldOptions_CType get ctype => $_getN(0); + Edition get editionIntroduced => $_getN(0); @$pb.TagNumber(1) - set ctype(FieldOptions_CType v) { + set editionIntroduced(Edition v) { setField(1, v); } @$pb.TagNumber(1) - $core.bool hasCtype() => $_has(0); + $core.bool hasEditionIntroduced() => $_has(0); @$pb.TagNumber(1) - void clearCtype() => clearField(1); + void clearEditionIntroduced() => clearField(1); + /// The edition this feature becomes deprecated in. Using this after this + /// edition may trigger warnings. @$pb.TagNumber(2) - $core.bool get packed => $_getBF(1); + Edition get editionDeprecated => $_getN(1); @$pb.TagNumber(2) - set packed($core.bool v) { - $_setBool(1, v); + set editionDeprecated(Edition v) { + setField(2, v); } @$pb.TagNumber(2) - $core.bool hasPacked() => $_has(1); + $core.bool hasEditionDeprecated() => $_has(1); @$pb.TagNumber(2) - void clearPacked() => clearField(2); + void clearEditionDeprecated() => clearField(2); + /// The deprecation warning text if this feature is used after the edition it + /// was marked deprecated in. @$pb.TagNumber(3) - $core.bool get deprecated => $_getBF(2); + $core.String get deprecationWarning => $_getSZ(2); @$pb.TagNumber(3) - set deprecated($core.bool v) { - $_setBool(2, v); + set deprecationWarning($core.String v) { + $_setString(2, v); } @$pb.TagNumber(3) - $core.bool hasDeprecated() => $_has(2); + $core.bool hasDeprecationWarning() => $_has(2); @$pb.TagNumber(3) - void clearDeprecated() => clearField(3); + void clearDeprecationWarning() => clearField(3); - @$pb.TagNumber(5) - $core.bool get lazy => $_getBF(3); - @$pb.TagNumber(5) - set lazy($core.bool v) { - $_setBool(3, v); + /// The edition this feature is no longer available in. In editions after + /// this one, the last default assigned will be used, and proto files will + /// not be able to override it. + @$pb.TagNumber(4) + Edition get editionRemoved => $_getN(3); + @$pb.TagNumber(4) + set editionRemoved(Edition v) { + setField(4, v); } - @$pb.TagNumber(5) - $core.bool hasLazy() => $_has(3); - @$pb.TagNumber(5) - void clearLazy() => clearField(5); + @$pb.TagNumber(4) + $core.bool hasEditionRemoved() => $_has(3); + @$pb.TagNumber(4) + void clearEditionRemoved() => clearField(4); +} - @$pb.TagNumber(6) - FieldOptions_JSType get jstype => $_getN(4); - @$pb.TagNumber(6) +class FieldOptions extends $pb.GeneratedMessage { + factory FieldOptions({ + FieldOptions_CType? ctype, + $core.bool? packed, + $core.bool? deprecated, + $core.bool? lazy, + FieldOptions_JSType? jstype, + $core.bool? weak, + $core.bool? unverifiedLazy, + $core.bool? debugRedact, + FieldOptions_OptionRetention? retention, + $core.Iterable? targets, + $core.Iterable? editionDefaults, + FeatureSet? features, + FieldOptions_FeatureSupport? featureSupport, + $core.Iterable? uninterpretedOption, + }) { + final $result = create(); + if (ctype != null) { + $result.ctype = ctype; + } + if (packed != null) { + $result.packed = packed; + } + if (deprecated != null) { + $result.deprecated = deprecated; + } + if (lazy != null) { + $result.lazy = lazy; + } + if (jstype != null) { + $result.jstype = jstype; + } + if (weak != null) { + $result.weak = weak; + } + if (unverifiedLazy != null) { + $result.unverifiedLazy = unverifiedLazy; + } + if (debugRedact != null) { + $result.debugRedact = debugRedact; + } + if (retention != null) { + $result.retention = retention; + } + if (targets != null) { + $result.targets.addAll(targets); + } + if (editionDefaults != null) { + $result.editionDefaults.addAll(editionDefaults); + } + if (features != null) { + $result.features = features; + } + if (featureSupport != null) { + $result.featureSupport = featureSupport; + } + if (uninterpretedOption != null) { + $result.uninterpretedOption.addAll(uninterpretedOption); + } + return $result; + } + FieldOptions._() : super(); + factory FieldOptions.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory FieldOptions.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FieldOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..e( + 1, _omitFieldNames ? '' : 'ctype', $pb.PbFieldType.OE, + defaultOrMaker: FieldOptions_CType.STRING, + valueOf: FieldOptions_CType.valueOf, + enumValues: FieldOptions_CType.values) + ..aOB(2, _omitFieldNames ? '' : 'packed') + ..aOB(3, _omitFieldNames ? '' : 'deprecated') + ..aOB(5, _omitFieldNames ? '' : 'lazy') + ..e( + 6, _omitFieldNames ? '' : 'jstype', $pb.PbFieldType.OE, + defaultOrMaker: FieldOptions_JSType.JS_NORMAL, + valueOf: FieldOptions_JSType.valueOf, + enumValues: FieldOptions_JSType.values) + ..aOB(10, _omitFieldNames ? '' : 'weak') + ..aOB(15, _omitFieldNames ? '' : 'unverifiedLazy') + ..aOB(16, _omitFieldNames ? '' : 'debugRedact') + ..e( + 17, _omitFieldNames ? '' : 'retention', $pb.PbFieldType.OE, + defaultOrMaker: FieldOptions_OptionRetention.RETENTION_UNKNOWN, + valueOf: FieldOptions_OptionRetention.valueOf, + enumValues: FieldOptions_OptionRetention.values) + ..pc( + 19, _omitFieldNames ? '' : 'targets', $pb.PbFieldType.PE, + valueOf: FieldOptions_OptionTargetType.valueOf, + enumValues: FieldOptions_OptionTargetType.values, + defaultEnumValue: FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN) + ..pc( + 20, _omitFieldNames ? '' : 'editionDefaults', $pb.PbFieldType.PM, + subBuilder: FieldOptions_EditionDefault.create) + ..aOM(21, _omitFieldNames ? '' : 'features', + subBuilder: FeatureSet.create) + ..aOM( + 22, _omitFieldNames ? '' : 'featureSupport', + subBuilder: FieldOptions_FeatureSupport.create) + ..pc( + 999, _omitFieldNames ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, + subBuilder: UninterpretedOption.create) + ..hasExtensions = true; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FieldOptions clone() => FieldOptions()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FieldOptions copyWith(void Function(FieldOptions) updates) => + super.copyWith((message) => updates(message as FieldOptions)) + as FieldOptions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static FieldOptions create() => FieldOptions._(); + FieldOptions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FieldOptions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static FieldOptions? _defaultInstance; + + /// NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead. + /// The ctype option instructs the C++ code generator to use a different + /// representation of the field than it normally would. See the specific + /// options below. This option is only implemented to support use of + /// [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of + /// type "bytes" in the open source release. + /// TODO: make ctype actually deprecated. + @$pb.TagNumber(1) + FieldOptions_CType get ctype => $_getN(0); + @$pb.TagNumber(1) + set ctype(FieldOptions_CType v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasCtype() => $_has(0); + @$pb.TagNumber(1) + void clearCtype() => clearField(1); + + /// The packed option can be enabled for repeated primitive fields to enable + /// a more efficient representation on the wire. Rather than repeatedly + /// writing the tag and type for each element, the entire array is encoded as + /// a single length-delimited blob. In proto3, only explicit setting it to + /// false will avoid using packed encoding. This option is prohibited in + /// Editions, but the `repeated_field_encoding` feature can be used to control + /// the behavior. + @$pb.TagNumber(2) + $core.bool get packed => $_getBF(1); + @$pb.TagNumber(2) + set packed($core.bool v) { + $_setBool(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPacked() => $_has(1); + @$pb.TagNumber(2) + void clearPacked() => clearField(2); + + /// Is this field deprecated? + /// Depending on the target platform, this can emit Deprecated annotations + /// for accessors, or it will be completely ignored; in the very least, this + /// is a formalization for deprecating fields. + @$pb.TagNumber(3) + $core.bool get deprecated => $_getBF(2); + @$pb.TagNumber(3) + set deprecated($core.bool v) { + $_setBool(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasDeprecated() => $_has(2); + @$pb.TagNumber(3) + void clearDeprecated() => clearField(3); + + /// Should this field be parsed lazily? Lazy applies only to message-type + /// fields. It means that when the outer message is initially parsed, the + /// inner message's contents will not be parsed but instead stored in encoded + /// form. The inner message will actually be parsed when it is first accessed. + /// + /// This is only a hint. Implementations are free to choose whether to use + /// eager or lazy parsing regardless of the value of this option. However, + /// setting this option true suggests that the protocol author believes that + /// using lazy parsing on this field is worth the additional bookkeeping + /// overhead typically needed to implement it. + /// + /// This option does not affect the public interface of any generated code; + /// all method signatures remain the same. Furthermore, thread-safety of the + /// interface is not affected by this option; const methods remain safe to + /// call from multiple threads concurrently, while non-const methods continue + /// to require exclusive access. + /// + /// Note that lazy message fields are still eagerly verified to check + /// ill-formed wireformat or missing required fields. Calling IsInitialized() + /// on the outer message would fail if the inner message has missing required + /// fields. Failed verification would result in parsing failure (except when + /// uninitialized messages are acceptable). + @$pb.TagNumber(5) + $core.bool get lazy => $_getBF(3); + @$pb.TagNumber(5) + set lazy($core.bool v) { + $_setBool(3, v); + } + + @$pb.TagNumber(5) + $core.bool hasLazy() => $_has(3); + @$pb.TagNumber(5) + void clearLazy() => clearField(5); + + /// The jstype option determines the JavaScript type used for values of the + /// field. The option is permitted only for 64 bit integral and fixed types + /// (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + /// is represented as JavaScript string, which avoids loss of precision that + /// can happen when a large value is converted to a floating point JavaScript. + /// Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + /// use the JavaScript "number" type. The behavior of the default option + /// JS_NORMAL is implementation dependent. + /// + /// This option is an enum to permit additional types to be added, e.g. + /// goog.math.Integer. + @$pb.TagNumber(6) + FieldOptions_JSType get jstype => $_getN(4); + @$pb.TagNumber(6) set jstype(FieldOptions_JSType v) { setField(6, v); } @@ -2333,6 +3022,7 @@ class FieldOptions extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearJstype() => clearField(6); + /// For Google-internal migration only. Do not use. @$pb.TagNumber(10) $core.bool get weak => $_getBF(5); @$pb.TagNumber(10) @@ -2345,45 +3035,121 @@ class FieldOptions extends $pb.GeneratedMessage { @$pb.TagNumber(10) void clearWeak() => clearField(10); + /// unverified_lazy does no correctness checks on the byte stream. This should + /// only be used where lazy with verification is prohibitive for performance + /// reasons. + @$pb.TagNumber(15) + $core.bool get unverifiedLazy => $_getBF(6); + @$pb.TagNumber(15) + set unverifiedLazy($core.bool v) { + $_setBool(6, v); + } + + @$pb.TagNumber(15) + $core.bool hasUnverifiedLazy() => $_has(6); + @$pb.TagNumber(15) + void clearUnverifiedLazy() => clearField(15); + + /// Indicate that the field value should not be printed out when using debug + /// formats, e.g. when the field contains sensitive credentials. + @$pb.TagNumber(16) + $core.bool get debugRedact => $_getBF(7); + @$pb.TagNumber(16) + set debugRedact($core.bool v) { + $_setBool(7, v); + } + + @$pb.TagNumber(16) + $core.bool hasDebugRedact() => $_has(7); + @$pb.TagNumber(16) + void clearDebugRedact() => clearField(16); + + @$pb.TagNumber(17) + FieldOptions_OptionRetention get retention => $_getN(8); + @$pb.TagNumber(17) + set retention(FieldOptions_OptionRetention v) { + setField(17, v); + } + + @$pb.TagNumber(17) + $core.bool hasRetention() => $_has(8); + @$pb.TagNumber(17) + void clearRetention() => clearField(17); + + @$pb.TagNumber(19) + $core.List get targets => $_getList(9); + + @$pb.TagNumber(20) + $core.List get editionDefaults => $_getList(10); + + /// Any features defined in the specific edition. + @$pb.TagNumber(21) + FeatureSet get features => $_getN(11); + @$pb.TagNumber(21) + set features(FeatureSet v) { + setField(21, v); + } + + @$pb.TagNumber(21) + $core.bool hasFeatures() => $_has(11); + @$pb.TagNumber(21) + void clearFeatures() => clearField(21); + @$pb.TagNumber(21) + FeatureSet ensureFeatures() => $_ensure(11); + + @$pb.TagNumber(22) + FieldOptions_FeatureSupport get featureSupport => $_getN(12); + @$pb.TagNumber(22) + set featureSupport(FieldOptions_FeatureSupport v) { + setField(22, v); + } + + @$pb.TagNumber(22) + $core.bool hasFeatureSupport() => $_has(12); + @$pb.TagNumber(22) + void clearFeatureSupport() => clearField(22); + @$pb.TagNumber(22) + FieldOptions_FeatureSupport ensureFeatureSupport() => $_ensure(12); + + /// The parser stores options it doesn't recognize here. See above. @$pb.TagNumber(999) - $core.List get uninterpretedOption => $_getList(6); + $core.List get uninterpretedOption => $_getList(13); } class OneofOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'OneofOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..pc( - 999, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uninterpretedOption', - $pb.PbFieldType.PM, - subBuilder: UninterpretedOption.create) - ..hasExtensions = true; - - OneofOptions._() : super(); factory OneofOptions({ + FeatureSet? features, $core.Iterable? uninterpretedOption, }) { - final _result = create(); + final $result = create(); + if (features != null) { + $result.features = features; + } if (uninterpretedOption != null) { - _result.uninterpretedOption.addAll(uninterpretedOption); + $result.uninterpretedOption.addAll(uninterpretedOption); } - return _result; + return $result; } + OneofOptions._() : super(); factory OneofOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OneofOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OneofOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'features', + subBuilder: FeatureSet.create) + ..pc( + 999, _omitFieldNames ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, + subBuilder: UninterpretedOption.create) + ..hasExtensions = true; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2393,8 +3159,10 @@ class OneofOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') OneofOptions copyWith(void Function(OneofOptions) updates) => super.copyWith((message) => updates(message as OneofOptions)) - as OneofOptions; // ignore: deprecated_member_use + as OneofOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static OneofOptions create() => OneofOptions._(); OneofOptions createEmptyInstance() => create(); @@ -2405,63 +3173,78 @@ class OneofOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static OneofOptions? _defaultInstance; + /// Any features defined in the specific edition. + @$pb.TagNumber(1) + FeatureSet get features => $_getN(0); + @$pb.TagNumber(1) + set features(FeatureSet v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasFeatures() => $_has(0); + @$pb.TagNumber(1) + void clearFeatures() => clearField(1); + @$pb.TagNumber(1) + FeatureSet ensureFeatures() => $_ensure(0); + + /// The parser stores options it doesn't recognize here. See above. @$pb.TagNumber(999) - $core.List get uninterpretedOption => $_getList(0); + $core.List get uninterpretedOption => $_getList(1); } class EnumOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnumOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOB( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'allowAlias') - ..aOB( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'deprecated') - ..pc( - 999, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uninterpretedOption', - $pb.PbFieldType.PM, - subBuilder: UninterpretedOption.create) - ..hasExtensions = true; - - EnumOptions._() : super(); factory EnumOptions({ $core.bool? allowAlias, $core.bool? deprecated, + @$core.Deprecated('This field is deprecated.') + $core.bool? deprecatedLegacyJsonFieldConflicts, + FeatureSet? features, $core.Iterable? uninterpretedOption, }) { - final _result = create(); + final $result = create(); if (allowAlias != null) { - _result.allowAlias = allowAlias; + $result.allowAlias = allowAlias; } if (deprecated != null) { - _result.deprecated = deprecated; + $result.deprecated = deprecated; + } + if (deprecatedLegacyJsonFieldConflicts != null) { + // ignore: deprecated_member_use_from_same_package + $result.deprecatedLegacyJsonFieldConflicts = + deprecatedLegacyJsonFieldConflicts; + } + if (features != null) { + $result.features = features; } if (uninterpretedOption != null) { - _result.uninterpretedOption.addAll(uninterpretedOption); + $result.uninterpretedOption.addAll(uninterpretedOption); } - return _result; + return $result; } + EnumOptions._() : super(); factory EnumOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EnumOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnumOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOB(2, _omitFieldNames ? '' : 'allowAlias') + ..aOB(3, _omitFieldNames ? '' : 'deprecated') + ..aOB(6, _omitFieldNames ? '' : 'deprecatedLegacyJsonFieldConflicts') + ..aOM(7, _omitFieldNames ? '' : 'features', + subBuilder: FeatureSet.create) + ..pc( + 999, _omitFieldNames ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, + subBuilder: UninterpretedOption.create) + ..hasExtensions = true; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2471,8 +3254,10 @@ class EnumOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') EnumOptions copyWith(void Function(EnumOptions) updates) => super.copyWith((message) => updates(message as EnumOptions)) - as EnumOptions; // ignore: deprecated_member_use + as EnumOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnumOptions create() => EnumOptions._(); EnumOptions createEmptyInstance() => create(); @@ -2482,6 +3267,8 @@ class EnumOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EnumOptions? _defaultInstance; + /// Set this option to true to allow mapping different tag names to the same + /// value. @$pb.TagNumber(2) $core.bool get allowAlias => $_getBF(0); @$pb.TagNumber(2) @@ -2494,6 +3281,10 @@ class EnumOptions extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearAllowAlias() => clearField(2); + /// Is this enum deprecated? + /// Depending on the target platform, this can emit Deprecated annotations + /// for the enum, or it will be completely ignored; in the very least, this + /// is a formalization for deprecating enums. @$pb.TagNumber(3) $core.bool get deprecated => $_getBF(1); @$pb.TagNumber(3) @@ -2506,54 +3297,99 @@ class EnumOptions extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearDeprecated() => clearField(3); + /// Enable the legacy handling of JSON field name conflicts. This lowercases + /// and strips underscored from the fields before comparison in proto3 only. + /// The new behavior takes `json_name` into account and applies to proto2 as + /// well. + /// TODO Remove this legacy behavior once downstream teams have + /// had time to migrate. + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(6) + $core.bool get deprecatedLegacyJsonFieldConflicts => $_getBF(2); + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(6) + set deprecatedLegacyJsonFieldConflicts($core.bool v) { + $_setBool(2, v); + } + + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(6) + $core.bool hasDeprecatedLegacyJsonFieldConflicts() => $_has(2); + @$core.Deprecated('This field is deprecated.') + @$pb.TagNumber(6) + void clearDeprecatedLegacyJsonFieldConflicts() => clearField(6); + + /// Any features defined in the specific edition. + @$pb.TagNumber(7) + FeatureSet get features => $_getN(3); + @$pb.TagNumber(7) + set features(FeatureSet v) { + setField(7, v); + } + + @$pb.TagNumber(7) + $core.bool hasFeatures() => $_has(3); + @$pb.TagNumber(7) + void clearFeatures() => clearField(7); + @$pb.TagNumber(7) + FeatureSet ensureFeatures() => $_ensure(3); + + /// The parser stores options it doesn't recognize here. See above. @$pb.TagNumber(999) - $core.List get uninterpretedOption => $_getList(2); + $core.List get uninterpretedOption => $_getList(4); } class EnumValueOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'EnumValueOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'deprecated') - ..pc( - 999, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uninterpretedOption', - $pb.PbFieldType.PM, - subBuilder: UninterpretedOption.create) - ..hasExtensions = true; - - EnumValueOptions._() : super(); factory EnumValueOptions({ $core.bool? deprecated, + FeatureSet? features, + $core.bool? debugRedact, + FieldOptions_FeatureSupport? featureSupport, $core.Iterable? uninterpretedOption, }) { - final _result = create(); + final $result = create(); if (deprecated != null) { - _result.deprecated = deprecated; + $result.deprecated = deprecated; + } + if (features != null) { + $result.features = features; + } + if (debugRedact != null) { + $result.debugRedact = debugRedact; + } + if (featureSupport != null) { + $result.featureSupport = featureSupport; } if (uninterpretedOption != null) { - _result.uninterpretedOption.addAll(uninterpretedOption); + $result.uninterpretedOption.addAll(uninterpretedOption); } - return _result; + return $result; } + EnumValueOptions._() : super(); factory EnumValueOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory EnumValueOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnumValueOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'deprecated') + ..aOM(2, _omitFieldNames ? '' : 'features', + subBuilder: FeatureSet.create) + ..aOB(3, _omitFieldNames ? '' : 'debugRedact') + ..aOM( + 4, _omitFieldNames ? '' : 'featureSupport', + subBuilder: FieldOptions_FeatureSupport.create) + ..pc( + 999, _omitFieldNames ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, + subBuilder: UninterpretedOption.create) + ..hasExtensions = true; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2563,8 +3399,10 @@ class EnumValueOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') EnumValueOptions copyWith(void Function(EnumValueOptions) updates) => super.copyWith((message) => updates(message as EnumValueOptions)) - as EnumValueOptions; // ignore: deprecated_member_use + as EnumValueOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static EnumValueOptions create() => EnumValueOptions._(); EnumValueOptions createEmptyInstance() => create(); @@ -2575,6 +3413,10 @@ class EnumValueOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static EnumValueOptions? _defaultInstance; + /// Is this enum value deprecated? + /// Depending on the target platform, this can emit Deprecated annotations + /// for the enum value, or it will be completely ignored; in the very least, + /// this is a formalization for deprecating enum values. @$pb.TagNumber(1) $core.bool get deprecated => $_getBF(0); @$pb.TagNumber(1) @@ -2587,54 +3429,95 @@ class EnumValueOptions extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearDeprecated() => clearField(1); + /// Any features defined in the specific edition. + @$pb.TagNumber(2) + FeatureSet get features => $_getN(1); + @$pb.TagNumber(2) + set features(FeatureSet v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasFeatures() => $_has(1); + @$pb.TagNumber(2) + void clearFeatures() => clearField(2); + @$pb.TagNumber(2) + FeatureSet ensureFeatures() => $_ensure(1); + + /// Indicate that fields annotated with this enum value should not be printed + /// out when using debug formats, e.g. when the field contains sensitive + /// credentials. + @$pb.TagNumber(3) + $core.bool get debugRedact => $_getBF(2); + @$pb.TagNumber(3) + set debugRedact($core.bool v) { + $_setBool(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasDebugRedact() => $_has(2); + @$pb.TagNumber(3) + void clearDebugRedact() => clearField(3); + + /// Information about the support window of a feature value. + @$pb.TagNumber(4) + FieldOptions_FeatureSupport get featureSupport => $_getN(3); + @$pb.TagNumber(4) + set featureSupport(FieldOptions_FeatureSupport v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasFeatureSupport() => $_has(3); + @$pb.TagNumber(4) + void clearFeatureSupport() => clearField(4); + @$pb.TagNumber(4) + FieldOptions_FeatureSupport ensureFeatureSupport() => $_ensure(3); + + /// The parser stores options it doesn't recognize here. See above. @$pb.TagNumber(999) - $core.List get uninterpretedOption => $_getList(1); + $core.List get uninterpretedOption => $_getList(4); } class ServiceOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ServiceOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOB( - 33, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'deprecated') - ..pc( - 999, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'uninterpretedOption', - $pb.PbFieldType.PM, - subBuilder: UninterpretedOption.create) - ..hasExtensions = true; - - ServiceOptions._() : super(); factory ServiceOptions({ $core.bool? deprecated, + FeatureSet? features, $core.Iterable? uninterpretedOption, }) { - final _result = create(); + final $result = create(); if (deprecated != null) { - _result.deprecated = deprecated; + $result.deprecated = deprecated; + } + if (features != null) { + $result.features = features; } if (uninterpretedOption != null) { - _result.uninterpretedOption.addAll(uninterpretedOption); + $result.uninterpretedOption.addAll(uninterpretedOption); } - return _result; + return $result; } + ServiceOptions._() : super(); factory ServiceOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ServiceOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ServiceOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOB(33, _omitFieldNames ? '' : 'deprecated') + ..aOM(34, _omitFieldNames ? '' : 'features', + subBuilder: FeatureSet.create) + ..pc( + 999, _omitFieldNames ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, + subBuilder: UninterpretedOption.create) + ..hasExtensions = true; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2644,8 +3527,10 @@ class ServiceOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') ServiceOptions copyWith(void Function(ServiceOptions) updates) => super.copyWith((message) => updates(message as ServiceOptions)) - as ServiceOptions; // ignore: deprecated_member_use + as ServiceOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ServiceOptions create() => ServiceOptions._(); ServiceOptions createEmptyInstance() => create(); @@ -2656,6 +3541,10 @@ class ServiceOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static ServiceOptions? _defaultInstance; + /// Is this service deprecated? + /// Depending on the target platform, this can emit Deprecated annotations + /// for the service, or it will be completely ignored; in the very least, + /// this is a formalization for deprecating services. @$pb.TagNumber(33) $core.bool get deprecated => $_getBF(0); @$pb.TagNumber(33) @@ -2668,61 +3557,74 @@ class ServiceOptions extends $pb.GeneratedMessage { @$pb.TagNumber(33) void clearDeprecated() => clearField(33); + /// Any features defined in the specific edition. + @$pb.TagNumber(34) + FeatureSet get features => $_getN(1); + @$pb.TagNumber(34) + set features(FeatureSet v) { + setField(34, v); + } + + @$pb.TagNumber(34) + $core.bool hasFeatures() => $_has(1); + @$pb.TagNumber(34) + void clearFeatures() => clearField(34); + @$pb.TagNumber(34) + FeatureSet ensureFeatures() => $_ensure(1); + + /// The parser stores options it doesn't recognize here. See above. @$pb.TagNumber(999) - $core.List get uninterpretedOption => $_getList(1); + $core.List get uninterpretedOption => $_getList(2); } class MethodOptions extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'MethodOptions', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOB( - 33, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'deprecated') - ..e( - 34, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'idempotencyLevel', $pb.PbFieldType.OE, - defaultOrMaker: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN, - valueOf: MethodOptions_IdempotencyLevel.valueOf, - enumValues: MethodOptions_IdempotencyLevel.values) - ..pc( - 999, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'uninterpretedOption', - $pb.PbFieldType.PM, - subBuilder: UninterpretedOption.create) - ..hasExtensions = true; - - MethodOptions._() : super(); factory MethodOptions({ $core.bool? deprecated, MethodOptions_IdempotencyLevel? idempotencyLevel, + FeatureSet? features, $core.Iterable? uninterpretedOption, }) { - final _result = create(); + final $result = create(); if (deprecated != null) { - _result.deprecated = deprecated; + $result.deprecated = deprecated; } if (idempotencyLevel != null) { - _result.idempotencyLevel = idempotencyLevel; + $result.idempotencyLevel = idempotencyLevel; + } + if (features != null) { + $result.features = features; } if (uninterpretedOption != null) { - _result.uninterpretedOption.addAll(uninterpretedOption); + $result.uninterpretedOption.addAll(uninterpretedOption); } - return _result; + return $result; } + MethodOptions._() : super(); factory MethodOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory MethodOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'MethodOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOB(33, _omitFieldNames ? '' : 'deprecated') + ..e( + 34, _omitFieldNames ? '' : 'idempotencyLevel', $pb.PbFieldType.OE, + defaultOrMaker: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN, + valueOf: MethodOptions_IdempotencyLevel.valueOf, + enumValues: MethodOptions_IdempotencyLevel.values) + ..aOM(35, _omitFieldNames ? '' : 'features', + subBuilder: FeatureSet.create) + ..pc( + 999, _omitFieldNames ? '' : 'uninterpretedOption', $pb.PbFieldType.PM, + subBuilder: UninterpretedOption.create) + ..hasExtensions = true; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2732,8 +3634,10 @@ class MethodOptions extends $pb.GeneratedMessage { 'Will be removed in next major version') MethodOptions copyWith(void Function(MethodOptions) updates) => super.copyWith((message) => updates(message as MethodOptions)) - as MethodOptions; // ignore: deprecated_member_use + as MethodOptions; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static MethodOptions create() => MethodOptions._(); MethodOptions createEmptyInstance() => create(); @@ -2744,6 +3648,10 @@ class MethodOptions extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static MethodOptions? _defaultInstance; + /// Is this method deprecated? + /// Depending on the target platform, this can emit Deprecated annotations + /// for the method, or it will be completely ignored; in the very least, + /// this is a formalization for deprecating methods. @$pb.TagNumber(33) $core.bool get deprecated => $_getBF(0); @$pb.TagNumber(33) @@ -2768,52 +3676,62 @@ class MethodOptions extends $pb.GeneratedMessage { @$pb.TagNumber(34) void clearIdempotencyLevel() => clearField(34); + /// Any features defined in the specific edition. + @$pb.TagNumber(35) + FeatureSet get features => $_getN(2); + @$pb.TagNumber(35) + set features(FeatureSet v) { + setField(35, v); + } + + @$pb.TagNumber(35) + $core.bool hasFeatures() => $_has(2); + @$pb.TagNumber(35) + void clearFeatures() => clearField(35); + @$pb.TagNumber(35) + FeatureSet ensureFeatures() => $_ensure(2); + + /// The parser stores options it doesn't recognize here. See above. @$pb.TagNumber(999) - $core.List get uninterpretedOption => $_getList(2); + $core.List get uninterpretedOption => $_getList(3); } +/// The name of the uninterpreted option. Each string represents a segment in +/// a dot-separated name. is_extension is true iff a segment represents an +/// extension (denoted with parentheses in options specs in .proto files). +/// E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents +/// "foo.(bar.baz).moo". class UninterpretedOption_NamePart extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UninterpretedOption.NamePart', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aQS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'namePart') - ..a<$core.bool>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'isExtension', - $pb.PbFieldType.QB); - - UninterpretedOption_NamePart._() : super(); factory UninterpretedOption_NamePart({ $core.String? namePart, $core.bool? isExtension, }) { - final _result = create(); + final $result = create(); if (namePart != null) { - _result.namePart = namePart; + $result.namePart = namePart; } if (isExtension != null) { - _result.isExtension = isExtension; + $result.isExtension = isExtension; } - return _result; + return $result; } + UninterpretedOption_NamePart._() : super(); factory UninterpretedOption_NamePart.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UninterpretedOption_NamePart.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UninterpretedOption.NamePart', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aQS(1, _omitFieldNames ? '' : 'namePart') + ..a<$core.bool>( + 2, _omitFieldNames ? '' : 'isExtension', $pb.PbFieldType.QB); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2826,8 +3744,10 @@ class UninterpretedOption_NamePart extends $pb.GeneratedMessage { void Function(UninterpretedOption_NamePart) updates) => super.copyWith( (message) => updates(message as UninterpretedOption_NamePart)) - as UninterpretedOption_NamePart; // ignore: deprecated_member_use + as UninterpretedOption_NamePart; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UninterpretedOption_NamePart create() => UninterpretedOption_NamePart._(); @@ -2864,31 +3784,13 @@ class UninterpretedOption_NamePart extends $pb.GeneratedMessage { void clearIsExtension() => clearField(2); } +/// A message representing a option the parser does not recognize. This only +/// appears in options protos created by the compiler::Parser class. +/// DescriptorPool resolves these when building Descriptor objects. Therefore, +/// options protos in descriptor objects (e.g. returned by Descriptor::options(), +/// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions +/// in them. class UninterpretedOption extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UninterpretedOption', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..pc( - 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name', $pb.PbFieldType.PM, - subBuilder: UninterpretedOption_NamePart.create) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'identifierValue') - ..a<$fixnum.Int64>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'positiveIntValue', $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..aInt64(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'negativeIntValue') - ..a<$core.double>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'doubleValue', $pb.PbFieldType.OD) - ..a<$core.List<$core.int>>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stringValue', $pb.PbFieldType.OY) - ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'aggregateValue'); - - UninterpretedOption._() : super(); factory UninterpretedOption({ $core.Iterable? name, $core.String? identifierValue, @@ -2898,36 +3800,57 @@ class UninterpretedOption extends $pb.GeneratedMessage { $core.List<$core.int>? stringValue, $core.String? aggregateValue, }) { - final _result = create(); + final $result = create(); if (name != null) { - _result.name.addAll(name); + $result.name.addAll(name); } if (identifierValue != null) { - _result.identifierValue = identifierValue; + $result.identifierValue = identifierValue; } if (positiveIntValue != null) { - _result.positiveIntValue = positiveIntValue; + $result.positiveIntValue = positiveIntValue; } if (negativeIntValue != null) { - _result.negativeIntValue = negativeIntValue; + $result.negativeIntValue = negativeIntValue; } if (doubleValue != null) { - _result.doubleValue = doubleValue; + $result.doubleValue = doubleValue; } if (stringValue != null) { - _result.stringValue = stringValue; + $result.stringValue = stringValue; } if (aggregateValue != null) { - _result.aggregateValue = aggregateValue; + $result.aggregateValue = aggregateValue; } - return _result; + return $result; } + UninterpretedOption._() : super(); factory UninterpretedOption.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UninterpretedOption.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UninterpretedOption', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..pc( + 2, _omitFieldNames ? '' : 'name', $pb.PbFieldType.PM, + subBuilder: UninterpretedOption_NamePart.create) + ..aOS(3, _omitFieldNames ? '' : 'identifierValue') + ..a<$fixnum.Int64>( + 4, _omitFieldNames ? '' : 'positiveIntValue', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..aInt64(5, _omitFieldNames ? '' : 'negativeIntValue') + ..a<$core.double>( + 6, _omitFieldNames ? '' : 'doubleValue', $pb.PbFieldType.OD) + ..a<$core.List<$core.int>>( + 7, _omitFieldNames ? '' : 'stringValue', $pb.PbFieldType.OY) + ..aOS(8, _omitFieldNames ? '' : 'aggregateValue'); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2937,8 +3860,10 @@ class UninterpretedOption extends $pb.GeneratedMessage { 'Will be removed in next major version') UninterpretedOption copyWith(void Function(UninterpretedOption) updates) => super.copyWith((message) => updates(message as UninterpretedOption)) - as UninterpretedOption; // ignore: deprecated_member_use + as UninterpretedOption; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UninterpretedOption create() => UninterpretedOption._(); UninterpretedOption createEmptyInstance() => create(); @@ -2952,6 +3877,8 @@ class UninterpretedOption extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.List get name => $_getList(0); + /// The value of the uninterpreted option, in whatever type the tokenizer + /// identified it as during parsing. Exactly one of these should be set. @$pb.TagNumber(3) $core.String get identifierValue => $_getSZ(1); @$pb.TagNumber(3) @@ -3025,37 +3952,403 @@ class UninterpretedOption extends $pb.GeneratedMessage { void clearAggregateValue() => clearField(8); } -class SourceCodeInfo_Location extends $pb.GeneratedMessage { +/// TODO Enums in C++ gencode (and potentially other languages) are +/// not well scoped. This means that each of the feature enums below can clash +/// with each other. The short names we've chosen maximize call-site +/// readability, but leave us very open to this scenario. A future feature will +/// be designed and implemented to handle this, hopefully before we ever hit a +/// conflict here. +class FeatureSet extends $pb.GeneratedMessage { + factory FeatureSet({ + FeatureSet_FieldPresence? fieldPresence, + FeatureSet_EnumType? enumType, + FeatureSet_RepeatedFieldEncoding? repeatedFieldEncoding, + FeatureSet_Utf8Validation? utf8Validation, + FeatureSet_MessageEncoding? messageEncoding, + FeatureSet_JsonFormat? jsonFormat, + }) { + final $result = create(); + if (fieldPresence != null) { + $result.fieldPresence = fieldPresence; + } + if (enumType != null) { + $result.enumType = enumType; + } + if (repeatedFieldEncoding != null) { + $result.repeatedFieldEncoding = repeatedFieldEncoding; + } + if (utf8Validation != null) { + $result.utf8Validation = utf8Validation; + } + if (messageEncoding != null) { + $result.messageEncoding = messageEncoding; + } + if (jsonFormat != null) { + $result.jsonFormat = jsonFormat; + } + return $result; + } + FeatureSet._() : super(); + factory FeatureSet.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory FeatureSet.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SourceCodeInfo.Location', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), + _omitMessageNames ? '' : 'FeatureSet', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create) - ..p<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path', - $pb.PbFieldType.K3) - ..p<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'span', - $pb.PbFieldType.K3) - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'leadingComments') - ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'trailingComments') - ..pPS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'leadingDetachedComments') - ..hasRequiredFields = false; + ..e( + 1, _omitFieldNames ? '' : 'fieldPresence', $pb.PbFieldType.OE, + defaultOrMaker: FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN, + valueOf: FeatureSet_FieldPresence.valueOf, + enumValues: FeatureSet_FieldPresence.values) + ..e( + 2, _omitFieldNames ? '' : 'enumType', $pb.PbFieldType.OE, + defaultOrMaker: FeatureSet_EnumType.ENUM_TYPE_UNKNOWN, + valueOf: FeatureSet_EnumType.valueOf, + enumValues: FeatureSet_EnumType.values) + ..e( + 3, _omitFieldNames ? '' : 'repeatedFieldEncoding', $pb.PbFieldType.OE, + defaultOrMaker: + FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN, + valueOf: FeatureSet_RepeatedFieldEncoding.valueOf, + enumValues: FeatureSet_RepeatedFieldEncoding.values) + ..e( + 4, _omitFieldNames ? '' : 'utf8Validation', $pb.PbFieldType.OE, + defaultOrMaker: FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN, + valueOf: FeatureSet_Utf8Validation.valueOf, + enumValues: FeatureSet_Utf8Validation.values) + ..e( + 5, _omitFieldNames ? '' : 'messageEncoding', $pb.PbFieldType.OE, + defaultOrMaker: FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN, + valueOf: FeatureSet_MessageEncoding.valueOf, + enumValues: FeatureSet_MessageEncoding.values) + ..e( + 6, _omitFieldNames ? '' : 'jsonFormat', $pb.PbFieldType.OE, + defaultOrMaker: FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN, + valueOf: FeatureSet_JsonFormat.valueOf, + enumValues: FeatureSet_JsonFormat.values) + ..hasExtensions = true; - SourceCodeInfo_Location._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FeatureSet clone() => FeatureSet()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FeatureSet copyWith(void Function(FeatureSet) updates) => + super.copyWith((message) => updates(message as FeatureSet)) as FeatureSet; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static FeatureSet create() => FeatureSet._(); + FeatureSet createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FeatureSet getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static FeatureSet? _defaultInstance; + + @$pb.TagNumber(1) + FeatureSet_FieldPresence get fieldPresence => $_getN(0); + @$pb.TagNumber(1) + set fieldPresence(FeatureSet_FieldPresence v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasFieldPresence() => $_has(0); + @$pb.TagNumber(1) + void clearFieldPresence() => clearField(1); + + @$pb.TagNumber(2) + FeatureSet_EnumType get enumType => $_getN(1); + @$pb.TagNumber(2) + set enumType(FeatureSet_EnumType v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasEnumType() => $_has(1); + @$pb.TagNumber(2) + void clearEnumType() => clearField(2); + + @$pb.TagNumber(3) + FeatureSet_RepeatedFieldEncoding get repeatedFieldEncoding => $_getN(2); + @$pb.TagNumber(3) + set repeatedFieldEncoding(FeatureSet_RepeatedFieldEncoding v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasRepeatedFieldEncoding() => $_has(2); + @$pb.TagNumber(3) + void clearRepeatedFieldEncoding() => clearField(3); + + @$pb.TagNumber(4) + FeatureSet_Utf8Validation get utf8Validation => $_getN(3); + @$pb.TagNumber(4) + set utf8Validation(FeatureSet_Utf8Validation v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasUtf8Validation() => $_has(3); + @$pb.TagNumber(4) + void clearUtf8Validation() => clearField(4); + + @$pb.TagNumber(5) + FeatureSet_MessageEncoding get messageEncoding => $_getN(4); + @$pb.TagNumber(5) + set messageEncoding(FeatureSet_MessageEncoding v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasMessageEncoding() => $_has(4); + @$pb.TagNumber(5) + void clearMessageEncoding() => clearField(5); + + @$pb.TagNumber(6) + FeatureSet_JsonFormat get jsonFormat => $_getN(5); + @$pb.TagNumber(6) + set jsonFormat(FeatureSet_JsonFormat v) { + setField(6, v); + } + + @$pb.TagNumber(6) + $core.bool hasJsonFormat() => $_has(5); + @$pb.TagNumber(6) + void clearJsonFormat() => clearField(6); +} + +/// A map from every known edition with a unique set of defaults to its +/// defaults. Not all editions may be contained here. For a given edition, +/// the defaults at the closest matching edition ordered at or before it should +/// be used. This field must be in strict ascending order by edition. +class FeatureSetDefaults_FeatureSetEditionDefault extends $pb.GeneratedMessage { + factory FeatureSetDefaults_FeatureSetEditionDefault({ + Edition? edition, + FeatureSet? overridableFeatures, + FeatureSet? fixedFeatures, + }) { + final $result = create(); + if (edition != null) { + $result.edition = edition; + } + if (overridableFeatures != null) { + $result.overridableFeatures = overridableFeatures; + } + if (fixedFeatures != null) { + $result.fixedFeatures = fixedFeatures; + } + return $result; + } + FeatureSetDefaults_FeatureSetEditionDefault._() : super(); + factory FeatureSetDefaults_FeatureSetEditionDefault.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory FeatureSetDefaults_FeatureSetEditionDefault.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FeatureSetDefaults.FeatureSetEditionDefault', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..e(3, _omitFieldNames ? '' : 'edition', $pb.PbFieldType.OE, + defaultOrMaker: Edition.EDITION_UNKNOWN, + valueOf: Edition.valueOf, + enumValues: Edition.values) + ..aOM(4, _omitFieldNames ? '' : 'overridableFeatures', + subBuilder: FeatureSet.create) + ..aOM(5, _omitFieldNames ? '' : 'fixedFeatures', + subBuilder: FeatureSet.create); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FeatureSetDefaults_FeatureSetEditionDefault clone() => + FeatureSetDefaults_FeatureSetEditionDefault()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FeatureSetDefaults_FeatureSetEditionDefault copyWith( + void Function(FeatureSetDefaults_FeatureSetEditionDefault) updates) => + super.copyWith((message) => + updates(message as FeatureSetDefaults_FeatureSetEditionDefault)) + as FeatureSetDefaults_FeatureSetEditionDefault; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static FeatureSetDefaults_FeatureSetEditionDefault create() => + FeatureSetDefaults_FeatureSetEditionDefault._(); + FeatureSetDefaults_FeatureSetEditionDefault createEmptyInstance() => create(); + static $pb.PbList + createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FeatureSetDefaults_FeatureSetEditionDefault getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + FeatureSetDefaults_FeatureSetEditionDefault>(create); + static FeatureSetDefaults_FeatureSetEditionDefault? _defaultInstance; + + @$pb.TagNumber(3) + Edition get edition => $_getN(0); + @$pb.TagNumber(3) + set edition(Edition v) { + setField(3, v); + } + + @$pb.TagNumber(3) + $core.bool hasEdition() => $_has(0); + @$pb.TagNumber(3) + void clearEdition() => clearField(3); + + /// Defaults of features that can be overridden in this edition. + @$pb.TagNumber(4) + FeatureSet get overridableFeatures => $_getN(1); + @$pb.TagNumber(4) + set overridableFeatures(FeatureSet v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasOverridableFeatures() => $_has(1); + @$pb.TagNumber(4) + void clearOverridableFeatures() => clearField(4); + @$pb.TagNumber(4) + FeatureSet ensureOverridableFeatures() => $_ensure(1); + + /// Defaults of features that can't be overridden in this edition. + @$pb.TagNumber(5) + FeatureSet get fixedFeatures => $_getN(2); + @$pb.TagNumber(5) + set fixedFeatures(FeatureSet v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasFixedFeatures() => $_has(2); + @$pb.TagNumber(5) + void clearFixedFeatures() => clearField(5); + @$pb.TagNumber(5) + FeatureSet ensureFixedFeatures() => $_ensure(2); +} + +/// A compiled specification for the defaults of a set of features. These +/// messages are generated from FeatureSet extensions and can be used to seed +/// feature resolution. The resolution with this object becomes a simple search +/// for the closest matching edition, followed by proto merges. +class FeatureSetDefaults extends $pb.GeneratedMessage { + factory FeatureSetDefaults({ + $core.Iterable? defaults, + Edition? minimumEdition, + Edition? maximumEdition, + }) { + final $result = create(); + if (defaults != null) { + $result.defaults.addAll(defaults); + } + if (minimumEdition != null) { + $result.minimumEdition = minimumEdition; + } + if (maximumEdition != null) { + $result.maximumEdition = maximumEdition; + } + return $result; + } + FeatureSetDefaults._() : super(); + factory FeatureSetDefaults.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory FeatureSetDefaults.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'FeatureSetDefaults', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'defaults', $pb.PbFieldType.PM, + subBuilder: FeatureSetDefaults_FeatureSetEditionDefault.create) + ..e(4, _omitFieldNames ? '' : 'minimumEdition', $pb.PbFieldType.OE, + defaultOrMaker: Edition.EDITION_UNKNOWN, + valueOf: Edition.valueOf, + enumValues: Edition.values) + ..e(5, _omitFieldNames ? '' : 'maximumEdition', $pb.PbFieldType.OE, + defaultOrMaker: Edition.EDITION_UNKNOWN, + valueOf: Edition.valueOf, + enumValues: Edition.values); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FeatureSetDefaults clone() => FeatureSetDefaults()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FeatureSetDefaults copyWith(void Function(FeatureSetDefaults) updates) => + super.copyWith((message) => updates(message as FeatureSetDefaults)) + as FeatureSetDefaults; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static FeatureSetDefaults create() => FeatureSetDefaults._(); + FeatureSetDefaults createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static FeatureSetDefaults getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static FeatureSetDefaults? _defaultInstance; + + @$pb.TagNumber(1) + $core.List get defaults => + $_getList(0); + + /// The minimum supported edition (inclusive) when this was constructed. + /// Editions before this will not have defaults. + @$pb.TagNumber(4) + Edition get minimumEdition => $_getN(1); + @$pb.TagNumber(4) + set minimumEdition(Edition v) { + setField(4, v); + } + + @$pb.TagNumber(4) + $core.bool hasMinimumEdition() => $_has(1); + @$pb.TagNumber(4) + void clearMinimumEdition() => clearField(4); + + /// The maximum known edition (inclusive) when this was constructed. Editions + /// after this will not have reliable defaults. + @$pb.TagNumber(5) + Edition get maximumEdition => $_getN(2); + @$pb.TagNumber(5) + set maximumEdition(Edition v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasMaximumEdition() => $_has(2); + @$pb.TagNumber(5) + void clearMaximumEdition() => clearField(5); +} + +class SourceCodeInfo_Location extends $pb.GeneratedMessage { factory SourceCodeInfo_Location({ $core.Iterable<$core.int>? path, $core.Iterable<$core.int>? span, @@ -3063,30 +4356,44 @@ class SourceCodeInfo_Location extends $pb.GeneratedMessage { $core.String? trailingComments, $core.Iterable<$core.String>? leadingDetachedComments, }) { - final _result = create(); + final $result = create(); if (path != null) { - _result.path.addAll(path); + $result.path.addAll(path); } if (span != null) { - _result.span.addAll(span); + $result.span.addAll(span); } if (leadingComments != null) { - _result.leadingComments = leadingComments; + $result.leadingComments = leadingComments; } if (trailingComments != null) { - _result.trailingComments = trailingComments; + $result.trailingComments = trailingComments; } if (leadingDetachedComments != null) { - _result.leadingDetachedComments.addAll(leadingDetachedComments); + $result.leadingDetachedComments.addAll(leadingDetachedComments); } - return _result; + return $result; } + SourceCodeInfo_Location._() : super(); factory SourceCodeInfo_Location.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SourceCodeInfo_Location.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceCodeInfo.Location', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..p<$core.int>(1, _omitFieldNames ? '' : 'path', $pb.PbFieldType.K3) + ..p<$core.int>(2, _omitFieldNames ? '' : 'span', $pb.PbFieldType.K3) + ..aOS(3, _omitFieldNames ? '' : 'leadingComments') + ..aOS(4, _omitFieldNames ? '' : 'trailingComments') + ..pPS(6, _omitFieldNames ? '' : 'leadingDetachedComments') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3098,8 +4405,10 @@ class SourceCodeInfo_Location extends $pb.GeneratedMessage { SourceCodeInfo_Location copyWith( void Function(SourceCodeInfo_Location) updates) => super.copyWith((message) => updates(message as SourceCodeInfo_Location)) - as SourceCodeInfo_Location; // ignore: deprecated_member_use + as SourceCodeInfo_Location; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SourceCodeInfo_Location create() => SourceCodeInfo_Location._(); SourceCodeInfo_Location createEmptyInstance() => create(); @@ -3110,12 +4419,87 @@ class SourceCodeInfo_Location extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SourceCodeInfo_Location? _defaultInstance; + /// Identifies which part of the FileDescriptorProto was defined at this + /// location. + /// + /// Each element is a field number or an index. They form a path from + /// the root FileDescriptorProto to the place where the definition appears. + /// For example, this path: + /// [ 4, 3, 2, 7, 1 ] + /// refers to: + /// file.message_type(3) // 4, 3 + /// .field(7) // 2, 7 + /// .name() // 1 + /// This is because FileDescriptorProto.message_type has field number 4: + /// repeated DescriptorProto message_type = 4; + /// and DescriptorProto.field has field number 2: + /// repeated FieldDescriptorProto field = 2; + /// and FieldDescriptorProto.name has field number 1: + /// optional string name = 1; + /// + /// Thus, the above path gives the location of a field name. If we removed + /// the last element: + /// [ 4, 3, 2, 7 ] + /// this path refers to the whole field declaration (from the beginning + /// of the label to the terminating semicolon). @$pb.TagNumber(1) $core.List<$core.int> get path => $_getList(0); + /// Always has exactly three or four elements: start line, start column, + /// end line (optional, otherwise assumed same as start line), end column. + /// These are packed into a single field for efficiency. Note that line + /// and column numbers are zero-based -- typically you will want to add + /// 1 to each before displaying to a user. @$pb.TagNumber(2) $core.List<$core.int> get span => $_getList(1); + /// If this SourceCodeInfo represents a complete declaration, these are any + /// comments appearing before and after the declaration which appear to be + /// attached to the declaration. + /// + /// A series of line comments appearing on consecutive lines, with no other + /// tokens appearing on those lines, will be treated as a single comment. + /// + /// leading_detached_comments will keep paragraphs of comments that appear + /// before (but not connected to) the current element. Each paragraph, + /// separated by empty lines, will be one comment element in the repeated + /// field. + /// + /// Only the comment content is provided; comment markers (e.g. //) are + /// stripped out. For block comments, leading whitespace and an asterisk + /// will be stripped from the beginning of each line other than the first. + /// Newlines are included in the output. + /// + /// Examples: + /// + /// optional int32 foo = 1; // Comment attached to foo. + /// // Comment attached to bar. + /// optional int32 bar = 2; + /// + /// optional string baz = 3; + /// // Comment attached to baz. + /// // Another line attached to baz. + /// + /// // Comment attached to moo. + /// // + /// // Another line attached to moo. + /// optional double moo = 4; + /// + /// // Detached comment for corge. This is not leading or trailing comments + /// // to moo or corge because there are blank lines separating it from + /// // both. + /// + /// // Detached comment for corge paragraph 2. + /// + /// optional string corge = 5; + /// /* Block comment attached + /// * to corge. Leading asterisks + /// * will be removed. */ + /// /* Block comment attached to + /// * grault. */ + /// optional int32 grault = 6; + /// + /// // ignored detached comments. @$pb.TagNumber(3) $core.String get leadingComments => $_getSZ(2); @$pb.TagNumber(3) @@ -3144,41 +4528,36 @@ class SourceCodeInfo_Location extends $pb.GeneratedMessage { $core.List<$core.String> get leadingDetachedComments => $_getList(4); } +/// Encapsulates information about the original source file from which a +/// FileDescriptorProto was generated. class SourceCodeInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SourceCodeInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'location', - $pb.PbFieldType.PM, - subBuilder: SourceCodeInfo_Location.create) - ..hasRequiredFields = false; - - SourceCodeInfo._() : super(); factory SourceCodeInfo({ $core.Iterable? location, }) { - final _result = create(); + final $result = create(); if (location != null) { - _result.location.addAll(location); + $result.location.addAll(location); } - return _result; + return $result; } + SourceCodeInfo._() : super(); factory SourceCodeInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SourceCodeInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceCodeInfo', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'location', $pb.PbFieldType.PM, + subBuilder: SourceCodeInfo_Location.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') @@ -3188,8 +4567,10 @@ class SourceCodeInfo extends $pb.GeneratedMessage { 'Will be removed in next major version') SourceCodeInfo copyWith(void Function(SourceCodeInfo) updates) => super.copyWith((message) => updates(message as SourceCodeInfo)) - as SourceCodeInfo; // ignore: deprecated_member_use + as SourceCodeInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SourceCodeInfo create() => SourceCodeInfo._(); SourceCodeInfo createEmptyInstance() => create(); @@ -3200,68 +4581,103 @@ class SourceCodeInfo extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SourceCodeInfo? _defaultInstance; + /// A Location identifies a piece of source code in a .proto file which + /// corresponds to a particular definition. This information is intended + /// to be useful to IDEs, code indexers, documentation generators, and similar + /// tools. + /// + /// For example, say we have a file like: + /// message Foo { + /// optional string foo = 1; + /// } + /// Let's look at just the field definition: + /// optional string foo = 1; + /// ^ ^^ ^^ ^ ^^^ + /// a bc de f ghi + /// We have the following locations: + /// span path represents + /// [a,i) [ 4, 0, 2, 0 ] The whole field definition. + /// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + /// [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + /// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + /// [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + /// + /// Notes: + /// - A location may refer to a repeated field itself (i.e. not to any + /// particular index within it). This is used whenever a set of elements are + /// logically enclosed in a single code segment. For example, an entire + /// extend block (possibly containing multiple extension definitions) will + /// have an outer location whose path refers to the "extensions" repeated + /// field without an index. + /// - Multiple locations may have the same path. This happens when a single + /// logical declaration is spread out across multiple places. The most + /// obvious example is the "extend" block again -- there may be multiple + /// extend blocks in the same scope, each of which will have the same path. + /// - A location's span is not always a subset of its parent's span. For + /// example, the "extendee" of an extension declaration appears at the + /// beginning of the "extend" block and is shared by all extensions within + /// the block. + /// - Just because a location's span is a subset of some other location's span + /// does not mean that it is a descendant. For example, a "group" defines + /// both a type and a field in a single declaration. Thus, the locations + /// corresponding to the type and field and their components will overlap. + /// - Code which tries to interpret locations should probably be designed to + /// ignore those that it doesn't understand, as more types of locations could + /// be recorded in the future. @$pb.TagNumber(1) $core.List get location => $_getList(0); } class GeneratedCodeInfo_Annotation extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GeneratedCodeInfo.Annotation', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..p<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'path', - $pb.PbFieldType.K3) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'sourceFile') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'begin', - $pb.PbFieldType.O3) - ..a<$core.int>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'end', $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - GeneratedCodeInfo_Annotation._() : super(); factory GeneratedCodeInfo_Annotation({ $core.Iterable<$core.int>? path, $core.String? sourceFile, $core.int? begin, $core.int? end, + GeneratedCodeInfo_Annotation_Semantic? semantic, }) { - final _result = create(); + final $result = create(); if (path != null) { - _result.path.addAll(path); + $result.path.addAll(path); } if (sourceFile != null) { - _result.sourceFile = sourceFile; + $result.sourceFile = sourceFile; } if (begin != null) { - _result.begin = begin; + $result.begin = begin; } if (end != null) { - _result.end = end; + $result.end = end; + } + if (semantic != null) { + $result.semantic = semantic; } - return _result; + return $result; } + GeneratedCodeInfo_Annotation._() : super(); factory GeneratedCodeInfo_Annotation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GeneratedCodeInfo_Annotation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GeneratedCodeInfo.Annotation', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..p<$core.int>(1, _omitFieldNames ? '' : 'path', $pb.PbFieldType.K3) + ..aOS(2, _omitFieldNames ? '' : 'sourceFile') + ..a<$core.int>(3, _omitFieldNames ? '' : 'begin', $pb.PbFieldType.O3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'end', $pb.PbFieldType.O3) + ..e( + 5, _omitFieldNames ? '' : 'semantic', $pb.PbFieldType.OE, + defaultOrMaker: GeneratedCodeInfo_Annotation_Semantic.NONE, + valueOf: GeneratedCodeInfo_Annotation_Semantic.valueOf, + enumValues: GeneratedCodeInfo_Annotation_Semantic.values) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -3274,8 +4690,10 @@ class GeneratedCodeInfo_Annotation extends $pb.GeneratedMessage { void Function(GeneratedCodeInfo_Annotation) updates) => super.copyWith( (message) => updates(message as GeneratedCodeInfo_Annotation)) - as GeneratedCodeInfo_Annotation; // ignore: deprecated_member_use + as GeneratedCodeInfo_Annotation; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GeneratedCodeInfo_Annotation create() => GeneratedCodeInfo_Annotation._(); @@ -3287,9 +4705,12 @@ class GeneratedCodeInfo_Annotation extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GeneratedCodeInfo_Annotation? _defaultInstance; + /// Identifies the element in the original source .proto file. This field + /// is formatted the same as SourceCodeInfo.Location.path. @$pb.TagNumber(1) $core.List<$core.int> get path => $_getList(0); + /// Identifies the filesystem path to the original source .proto. @$pb.TagNumber(2) $core.String get sourceFile => $_getSZ(1); @$pb.TagNumber(2) @@ -3302,6 +4723,8 @@ class GeneratedCodeInfo_Annotation extends $pb.GeneratedMessage { @$pb.TagNumber(2) void clearSourceFile() => clearField(2); + /// Identifies the starting offset in bytes in the generated code + /// that relates to the identified object. @$pb.TagNumber(3) $core.int get begin => $_getIZ(2); @$pb.TagNumber(3) @@ -3314,6 +4737,9 @@ class GeneratedCodeInfo_Annotation extends $pb.GeneratedMessage { @$pb.TagNumber(3) void clearBegin() => clearField(3); + /// Identifies the ending offset in bytes in the generated code that + /// relates to the identified object. The end offset should be one past + /// the last relevant byte (so the length of the text = end - begin). @$pb.TagNumber(4) $core.int get end => $_getIZ(3); @$pb.TagNumber(4) @@ -3325,43 +4751,51 @@ class GeneratedCodeInfo_Annotation extends $pb.GeneratedMessage { $core.bool hasEnd() => $_has(3); @$pb.TagNumber(4) void clearEnd() => clearField(4); + + @$pb.TagNumber(5) + GeneratedCodeInfo_Annotation_Semantic get semantic => $_getN(4); + @$pb.TagNumber(5) + set semantic(GeneratedCodeInfo_Annotation_Semantic v) { + setField(5, v); + } + + @$pb.TagNumber(5) + $core.bool hasSemantic() => $_has(4); + @$pb.TagNumber(5) + void clearSemantic() => clearField(5); } +/// Describes the relationship between generated code and its original source +/// file. A GeneratedCodeInfo message is associated with only one generated +/// source file, but may contain references to different source .proto files. class GeneratedCodeInfo extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'GeneratedCodeInfo', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'annotation', - $pb.PbFieldType.PM, - subBuilder: GeneratedCodeInfo_Annotation.create) - ..hasRequiredFields = false; - - GeneratedCodeInfo._() : super(); factory GeneratedCodeInfo({ $core.Iterable? annotation, }) { - final _result = create(); + final $result = create(); if (annotation != null) { - _result.annotation.addAll(annotation); + $result.annotation.addAll(annotation); } - return _result; + return $result; } + GeneratedCodeInfo._() : super(); factory GeneratedCodeInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GeneratedCodeInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GeneratedCodeInfo', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..pc( + 1, _omitFieldNames ? '' : 'annotation', $pb.PbFieldType.PM, + subBuilder: GeneratedCodeInfo_Annotation.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') @@ -3371,8 +4805,10 @@ class GeneratedCodeInfo extends $pb.GeneratedMessage { 'Will be removed in next major version') GeneratedCodeInfo copyWith(void Function(GeneratedCodeInfo) updates) => super.copyWith((message) => updates(message as GeneratedCodeInfo)) - as GeneratedCodeInfo; // ignore: deprecated_member_use + as GeneratedCodeInfo; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static GeneratedCodeInfo create() => GeneratedCodeInfo._(); GeneratedCodeInfo createEmptyInstance() => create(); @@ -3383,6 +4819,12 @@ class GeneratedCodeInfo extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static GeneratedCodeInfo? _defaultInstance; + /// An Annotation connects some span of text in generated code to an element + /// of its generating .proto file. @$pb.TagNumber(1) $core.List get annotation => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pbenum.dart index a3da0cdc..6ae675e9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pbenum.dart @@ -1,123 +1,128 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/descriptor.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// The full set of known editions. +class Edition extends $pb.ProtobufEnum { + static const Edition EDITION_UNKNOWN = + Edition._(0, _omitEnumNames ? '' : 'EDITION_UNKNOWN'); + static const Edition EDITION_LEGACY = + Edition._(900, _omitEnumNames ? '' : 'EDITION_LEGACY'); + static const Edition EDITION_PROTO2 = + Edition._(998, _omitEnumNames ? '' : 'EDITION_PROTO2'); + static const Edition EDITION_PROTO3 = + Edition._(999, _omitEnumNames ? '' : 'EDITION_PROTO3'); + static const Edition EDITION_2023 = + Edition._(1000, _omitEnumNames ? '' : 'EDITION_2023'); + static const Edition EDITION_2024 = + Edition._(1001, _omitEnumNames ? '' : 'EDITION_2024'); + static const Edition EDITION_1_TEST_ONLY = + Edition._(1, _omitEnumNames ? '' : 'EDITION_1_TEST_ONLY'); + static const Edition EDITION_2_TEST_ONLY = + Edition._(2, _omitEnumNames ? '' : 'EDITION_2_TEST_ONLY'); + static const Edition EDITION_99997_TEST_ONLY = + Edition._(99997, _omitEnumNames ? '' : 'EDITION_99997_TEST_ONLY'); + static const Edition EDITION_99998_TEST_ONLY = + Edition._(99998, _omitEnumNames ? '' : 'EDITION_99998_TEST_ONLY'); + static const Edition EDITION_99999_TEST_ONLY = + Edition._(99999, _omitEnumNames ? '' : 'EDITION_99999_TEST_ONLY'); + static const Edition EDITION_MAX = + Edition._(2147483647, _omitEnumNames ? '' : 'EDITION_MAX'); + + static const $core.List values = [ + EDITION_UNKNOWN, + EDITION_LEGACY, + EDITION_PROTO2, + EDITION_PROTO3, + EDITION_2023, + EDITION_2024, + EDITION_1_TEST_ONLY, + EDITION_2_TEST_ONLY, + EDITION_99997_TEST_ONLY, + EDITION_99998_TEST_ONLY, + EDITION_99999_TEST_ONLY, + EDITION_MAX, + ]; + + static final $core.Map<$core.int, Edition> _byValue = + $pb.ProtobufEnum.initByValue(values); + static Edition? valueOf($core.int value) => _byValue[value]; + + const Edition._($core.int v, $core.String n) : super(v, n); +} + +/// The verification state of the extension range. +class ExtensionRangeOptions_VerificationState extends $pb.ProtobufEnum { + static const ExtensionRangeOptions_VerificationState DECLARATION = + ExtensionRangeOptions_VerificationState._( + 0, _omitEnumNames ? '' : 'DECLARATION'); + static const ExtensionRangeOptions_VerificationState UNVERIFIED = + ExtensionRangeOptions_VerificationState._( + 1, _omitEnumNames ? '' : 'UNVERIFIED'); + + static const $core.List values = + [ + DECLARATION, + UNVERIFIED, + ]; + + static final $core.Map<$core.int, ExtensionRangeOptions_VerificationState> + _byValue = $pb.ProtobufEnum.initByValue(values); + static ExtensionRangeOptions_VerificationState? valueOf($core.int value) => + _byValue[value]; + + const ExtensionRangeOptions_VerificationState._($core.int v, $core.String n) + : super(v, n); +} + class FieldDescriptorProto_Type extends $pb.ProtobufEnum { static const FieldDescriptorProto_Type TYPE_DOUBLE = - FieldDescriptorProto_Type._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_DOUBLE'); + FieldDescriptorProto_Type._(1, _omitEnumNames ? '' : 'TYPE_DOUBLE'); static const FieldDescriptorProto_Type TYPE_FLOAT = - FieldDescriptorProto_Type._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_FLOAT'); + FieldDescriptorProto_Type._(2, _omitEnumNames ? '' : 'TYPE_FLOAT'); static const FieldDescriptorProto_Type TYPE_INT64 = - FieldDescriptorProto_Type._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_INT64'); + FieldDescriptorProto_Type._(3, _omitEnumNames ? '' : 'TYPE_INT64'); static const FieldDescriptorProto_Type TYPE_UINT64 = - FieldDescriptorProto_Type._( - 4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_UINT64'); + FieldDescriptorProto_Type._(4, _omitEnumNames ? '' : 'TYPE_UINT64'); static const FieldDescriptorProto_Type TYPE_INT32 = - FieldDescriptorProto_Type._( - 5, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_INT32'); + FieldDescriptorProto_Type._(5, _omitEnumNames ? '' : 'TYPE_INT32'); static const FieldDescriptorProto_Type TYPE_FIXED64 = - FieldDescriptorProto_Type._( - 6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_FIXED64'); + FieldDescriptorProto_Type._(6, _omitEnumNames ? '' : 'TYPE_FIXED64'); static const FieldDescriptorProto_Type TYPE_FIXED32 = - FieldDescriptorProto_Type._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_FIXED32'); + FieldDescriptorProto_Type._(7, _omitEnumNames ? '' : 'TYPE_FIXED32'); static const FieldDescriptorProto_Type TYPE_BOOL = - FieldDescriptorProto_Type._( - 8, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_BOOL'); + FieldDescriptorProto_Type._(8, _omitEnumNames ? '' : 'TYPE_BOOL'); static const FieldDescriptorProto_Type TYPE_STRING = - FieldDescriptorProto_Type._( - 9, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_STRING'); + FieldDescriptorProto_Type._(9, _omitEnumNames ? '' : 'TYPE_STRING'); static const FieldDescriptorProto_Type TYPE_GROUP = - FieldDescriptorProto_Type._( - 10, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_GROUP'); + FieldDescriptorProto_Type._(10, _omitEnumNames ? '' : 'TYPE_GROUP'); static const FieldDescriptorProto_Type TYPE_MESSAGE = - FieldDescriptorProto_Type._( - 11, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_MESSAGE'); + FieldDescriptorProto_Type._(11, _omitEnumNames ? '' : 'TYPE_MESSAGE'); static const FieldDescriptorProto_Type TYPE_BYTES = - FieldDescriptorProto_Type._( - 12, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_BYTES'); + FieldDescriptorProto_Type._(12, _omitEnumNames ? '' : 'TYPE_BYTES'); static const FieldDescriptorProto_Type TYPE_UINT32 = - FieldDescriptorProto_Type._( - 13, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_UINT32'); + FieldDescriptorProto_Type._(13, _omitEnumNames ? '' : 'TYPE_UINT32'); static const FieldDescriptorProto_Type TYPE_ENUM = - FieldDescriptorProto_Type._( - 14, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_ENUM'); + FieldDescriptorProto_Type._(14, _omitEnumNames ? '' : 'TYPE_ENUM'); static const FieldDescriptorProto_Type TYPE_SFIXED32 = - FieldDescriptorProto_Type._( - 15, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_SFIXED32'); + FieldDescriptorProto_Type._(15, _omitEnumNames ? '' : 'TYPE_SFIXED32'); static const FieldDescriptorProto_Type TYPE_SFIXED64 = - FieldDescriptorProto_Type._( - 16, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_SFIXED64'); + FieldDescriptorProto_Type._(16, _omitEnumNames ? '' : 'TYPE_SFIXED64'); static const FieldDescriptorProto_Type TYPE_SINT32 = - FieldDescriptorProto_Type._( - 17, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_SINT32'); + FieldDescriptorProto_Type._(17, _omitEnumNames ? '' : 'TYPE_SINT32'); static const FieldDescriptorProto_Type TYPE_SINT64 = - FieldDescriptorProto_Type._( - 18, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'TYPE_SINT64'); + FieldDescriptorProto_Type._(18, _omitEnumNames ? '' : 'TYPE_SINT64'); static const $core.List values = [ @@ -150,29 +155,17 @@ class FieldDescriptorProto_Type extends $pb.ProtobufEnum { class FieldDescriptorProto_Label extends $pb.ProtobufEnum { static const FieldDescriptorProto_Label LABEL_OPTIONAL = - FieldDescriptorProto_Label._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LABEL_OPTIONAL'); - static const FieldDescriptorProto_Label LABEL_REQUIRED = - FieldDescriptorProto_Label._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LABEL_REQUIRED'); + FieldDescriptorProto_Label._(1, _omitEnumNames ? '' : 'LABEL_OPTIONAL'); static const FieldDescriptorProto_Label LABEL_REPEATED = - FieldDescriptorProto_Label._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LABEL_REPEATED'); + FieldDescriptorProto_Label._(3, _omitEnumNames ? '' : 'LABEL_REPEATED'); + static const FieldDescriptorProto_Label LABEL_REQUIRED = + FieldDescriptorProto_Label._(2, _omitEnumNames ? '' : 'LABEL_REQUIRED'); static const $core.List values = [ LABEL_OPTIONAL, - LABEL_REQUIRED, LABEL_REPEATED, + LABEL_REQUIRED, ]; static final $core.Map<$core.int, FieldDescriptorProto_Label> _byValue = @@ -183,20 +176,14 @@ class FieldDescriptorProto_Label extends $pb.ProtobufEnum { const FieldDescriptorProto_Label._($core.int v, $core.String n) : super(v, n); } +/// Generated classes can be optimized for speed or code size. class FileOptions_OptimizeMode extends $pb.ProtobufEnum { - static const FileOptions_OptimizeMode SPEED = FileOptions_OptimizeMode._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SPEED'); - static const FileOptions_OptimizeMode CODE_SIZE = FileOptions_OptimizeMode._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'CODE_SIZE'); + static const FileOptions_OptimizeMode SPEED = + FileOptions_OptimizeMode._(1, _omitEnumNames ? '' : 'SPEED'); + static const FileOptions_OptimizeMode CODE_SIZE = + FileOptions_OptimizeMode._(2, _omitEnumNames ? '' : 'CODE_SIZE'); static const FileOptions_OptimizeMode LITE_RUNTIME = - FileOptions_OptimizeMode._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'LITE_RUNTIME'); + FileOptions_OptimizeMode._(3, _omitEnumNames ? '' : 'LITE_RUNTIME'); static const $core.List values = [ @@ -213,15 +200,12 @@ class FileOptions_OptimizeMode extends $pb.ProtobufEnum { } class FieldOptions_CType extends $pb.ProtobufEnum { - static const FieldOptions_CType STRING = FieldOptions_CType._(0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'STRING'); - static const FieldOptions_CType CORD = FieldOptions_CType._( - 1, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CORD'); - static const FieldOptions_CType STRING_PIECE = FieldOptions_CType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'STRING_PIECE'); + static const FieldOptions_CType STRING = + FieldOptions_CType._(0, _omitEnumNames ? '' : 'STRING'); + static const FieldOptions_CType CORD = + FieldOptions_CType._(1, _omitEnumNames ? '' : 'CORD'); + static const FieldOptions_CType STRING_PIECE = + FieldOptions_CType._(2, _omitEnumNames ? '' : 'STRING_PIECE'); static const $core.List values = [ STRING, @@ -237,21 +221,12 @@ class FieldOptions_CType extends $pb.ProtobufEnum { } class FieldOptions_JSType extends $pb.ProtobufEnum { - static const FieldOptions_JSType JS_NORMAL = FieldOptions_JSType._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'JS_NORMAL'); - static const FieldOptions_JSType JS_STRING = FieldOptions_JSType._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'JS_STRING'); - static const FieldOptions_JSType JS_NUMBER = FieldOptions_JSType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'JS_NUMBER'); + static const FieldOptions_JSType JS_NORMAL = + FieldOptions_JSType._(0, _omitEnumNames ? '' : 'JS_NORMAL'); + static const FieldOptions_JSType JS_STRING = + FieldOptions_JSType._(1, _omitEnumNames ? '' : 'JS_STRING'); + static const FieldOptions_JSType JS_NUMBER = + FieldOptions_JSType._(2, _omitEnumNames ? '' : 'JS_NUMBER'); static const $core.List values = [ JS_NORMAL, @@ -266,25 +241,107 @@ class FieldOptions_JSType extends $pb.ProtobufEnum { const FieldOptions_JSType._($core.int v, $core.String n) : super(v, n); } +/// If set to RETENTION_SOURCE, the option will be omitted from the binary. +/// Note: as of January 2023, support for this is in progress and does not yet +/// have an effect (b/264593489). +class FieldOptions_OptionRetention extends $pb.ProtobufEnum { + static const FieldOptions_OptionRetention RETENTION_UNKNOWN = + FieldOptions_OptionRetention._( + 0, _omitEnumNames ? '' : 'RETENTION_UNKNOWN'); + static const FieldOptions_OptionRetention RETENTION_RUNTIME = + FieldOptions_OptionRetention._( + 1, _omitEnumNames ? '' : 'RETENTION_RUNTIME'); + static const FieldOptions_OptionRetention RETENTION_SOURCE = + FieldOptions_OptionRetention._( + 2, _omitEnumNames ? '' : 'RETENTION_SOURCE'); + + static const $core.List values = + [ + RETENTION_UNKNOWN, + RETENTION_RUNTIME, + RETENTION_SOURCE, + ]; + + static final $core.Map<$core.int, FieldOptions_OptionRetention> _byValue = + $pb.ProtobufEnum.initByValue(values); + static FieldOptions_OptionRetention? valueOf($core.int value) => + _byValue[value]; + + const FieldOptions_OptionRetention._($core.int v, $core.String n) + : super(v, n); +} + +/// This indicates the types of entities that the field may apply to when used +/// as an option. If it is unset, then the field may be freely used as an +/// option on any kind of entity. Note: as of January 2023, support for this is +/// in progress and does not yet have an effect (b/264593489). +class FieldOptions_OptionTargetType extends $pb.ProtobufEnum { + static const FieldOptions_OptionTargetType TARGET_TYPE_UNKNOWN = + FieldOptions_OptionTargetType._( + 0, _omitEnumNames ? '' : 'TARGET_TYPE_UNKNOWN'); + static const FieldOptions_OptionTargetType TARGET_TYPE_FILE = + FieldOptions_OptionTargetType._( + 1, _omitEnumNames ? '' : 'TARGET_TYPE_FILE'); + static const FieldOptions_OptionTargetType TARGET_TYPE_EXTENSION_RANGE = + FieldOptions_OptionTargetType._( + 2, _omitEnumNames ? '' : 'TARGET_TYPE_EXTENSION_RANGE'); + static const FieldOptions_OptionTargetType TARGET_TYPE_MESSAGE = + FieldOptions_OptionTargetType._( + 3, _omitEnumNames ? '' : 'TARGET_TYPE_MESSAGE'); + static const FieldOptions_OptionTargetType TARGET_TYPE_FIELD = + FieldOptions_OptionTargetType._( + 4, _omitEnumNames ? '' : 'TARGET_TYPE_FIELD'); + static const FieldOptions_OptionTargetType TARGET_TYPE_ONEOF = + FieldOptions_OptionTargetType._( + 5, _omitEnumNames ? '' : 'TARGET_TYPE_ONEOF'); + static const FieldOptions_OptionTargetType TARGET_TYPE_ENUM = + FieldOptions_OptionTargetType._( + 6, _omitEnumNames ? '' : 'TARGET_TYPE_ENUM'); + static const FieldOptions_OptionTargetType TARGET_TYPE_ENUM_ENTRY = + FieldOptions_OptionTargetType._( + 7, _omitEnumNames ? '' : 'TARGET_TYPE_ENUM_ENTRY'); + static const FieldOptions_OptionTargetType TARGET_TYPE_SERVICE = + FieldOptions_OptionTargetType._( + 8, _omitEnumNames ? '' : 'TARGET_TYPE_SERVICE'); + static const FieldOptions_OptionTargetType TARGET_TYPE_METHOD = + FieldOptions_OptionTargetType._( + 9, _omitEnumNames ? '' : 'TARGET_TYPE_METHOD'); + + static const $core.List values = + [ + TARGET_TYPE_UNKNOWN, + TARGET_TYPE_FILE, + TARGET_TYPE_EXTENSION_RANGE, + TARGET_TYPE_MESSAGE, + TARGET_TYPE_FIELD, + TARGET_TYPE_ONEOF, + TARGET_TYPE_ENUM, + TARGET_TYPE_ENUM_ENTRY, + TARGET_TYPE_SERVICE, + TARGET_TYPE_METHOD, + ]; + + static final $core.Map<$core.int, FieldOptions_OptionTargetType> _byValue = + $pb.ProtobufEnum.initByValue(values); + static FieldOptions_OptionTargetType? valueOf($core.int value) => + _byValue[value]; + + const FieldOptions_OptionTargetType._($core.int v, $core.String n) + : super(v, n); +} + +/// Is this method side-effect-free (or safe in HTTP parlance), or idempotent, +/// or neither? HTTP based RPC implementation may choose GET verb for safe +/// methods, and PUT verb for idempotent methods instead of the default POST. class MethodOptions_IdempotencyLevel extends $pb.ProtobufEnum { static const MethodOptions_IdempotencyLevel IDEMPOTENCY_UNKNOWN = MethodOptions_IdempotencyLevel._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'IDEMPOTENCY_UNKNOWN'); + 0, _omitEnumNames ? '' : 'IDEMPOTENCY_UNKNOWN'); static const MethodOptions_IdempotencyLevel NO_SIDE_EFFECTS = MethodOptions_IdempotencyLevel._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NO_SIDE_EFFECTS'); + 1, _omitEnumNames ? '' : 'NO_SIDE_EFFECTS'); static const MethodOptions_IdempotencyLevel IDEMPOTENT = - MethodOptions_IdempotencyLevel._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'IDEMPOTENT'); + MethodOptions_IdempotencyLevel._(2, _omitEnumNames ? '' : 'IDEMPOTENT'); static const $core.List values = [ @@ -301,3 +358,172 @@ class MethodOptions_IdempotencyLevel extends $pb.ProtobufEnum { const MethodOptions_IdempotencyLevel._($core.int v, $core.String n) : super(v, n); } + +class FeatureSet_FieldPresence extends $pb.ProtobufEnum { + static const FeatureSet_FieldPresence FIELD_PRESENCE_UNKNOWN = + FeatureSet_FieldPresence._( + 0, _omitEnumNames ? '' : 'FIELD_PRESENCE_UNKNOWN'); + static const FeatureSet_FieldPresence EXPLICIT = + FeatureSet_FieldPresence._(1, _omitEnumNames ? '' : 'EXPLICIT'); + static const FeatureSet_FieldPresence IMPLICIT = + FeatureSet_FieldPresence._(2, _omitEnumNames ? '' : 'IMPLICIT'); + static const FeatureSet_FieldPresence LEGACY_REQUIRED = + FeatureSet_FieldPresence._(3, _omitEnumNames ? '' : 'LEGACY_REQUIRED'); + + static const $core.List values = + [ + FIELD_PRESENCE_UNKNOWN, + EXPLICIT, + IMPLICIT, + LEGACY_REQUIRED, + ]; + + static final $core.Map<$core.int, FeatureSet_FieldPresence> _byValue = + $pb.ProtobufEnum.initByValue(values); + static FeatureSet_FieldPresence? valueOf($core.int value) => _byValue[value]; + + const FeatureSet_FieldPresence._($core.int v, $core.String n) : super(v, n); +} + +class FeatureSet_EnumType extends $pb.ProtobufEnum { + static const FeatureSet_EnumType ENUM_TYPE_UNKNOWN = + FeatureSet_EnumType._(0, _omitEnumNames ? '' : 'ENUM_TYPE_UNKNOWN'); + static const FeatureSet_EnumType OPEN = + FeatureSet_EnumType._(1, _omitEnumNames ? '' : 'OPEN'); + static const FeatureSet_EnumType CLOSED = + FeatureSet_EnumType._(2, _omitEnumNames ? '' : 'CLOSED'); + + static const $core.List values = [ + ENUM_TYPE_UNKNOWN, + OPEN, + CLOSED, + ]; + + static final $core.Map<$core.int, FeatureSet_EnumType> _byValue = + $pb.ProtobufEnum.initByValue(values); + static FeatureSet_EnumType? valueOf($core.int value) => _byValue[value]; + + const FeatureSet_EnumType._($core.int v, $core.String n) : super(v, n); +} + +class FeatureSet_RepeatedFieldEncoding extends $pb.ProtobufEnum { + static const FeatureSet_RepeatedFieldEncoding + REPEATED_FIELD_ENCODING_UNKNOWN = FeatureSet_RepeatedFieldEncoding._( + 0, _omitEnumNames ? '' : 'REPEATED_FIELD_ENCODING_UNKNOWN'); + static const FeatureSet_RepeatedFieldEncoding PACKED = + FeatureSet_RepeatedFieldEncoding._(1, _omitEnumNames ? '' : 'PACKED'); + static const FeatureSet_RepeatedFieldEncoding EXPANDED = + FeatureSet_RepeatedFieldEncoding._(2, _omitEnumNames ? '' : 'EXPANDED'); + + static const $core.List values = + [ + REPEATED_FIELD_ENCODING_UNKNOWN, + PACKED, + EXPANDED, + ]; + + static final $core.Map<$core.int, FeatureSet_RepeatedFieldEncoding> _byValue = + $pb.ProtobufEnum.initByValue(values); + static FeatureSet_RepeatedFieldEncoding? valueOf($core.int value) => + _byValue[value]; + + const FeatureSet_RepeatedFieldEncoding._($core.int v, $core.String n) + : super(v, n); +} + +class FeatureSet_Utf8Validation extends $pb.ProtobufEnum { + static const FeatureSet_Utf8Validation UTF8_VALIDATION_UNKNOWN = + FeatureSet_Utf8Validation._( + 0, _omitEnumNames ? '' : 'UTF8_VALIDATION_UNKNOWN'); + static const FeatureSet_Utf8Validation VERIFY = + FeatureSet_Utf8Validation._(2, _omitEnumNames ? '' : 'VERIFY'); + static const FeatureSet_Utf8Validation NONE = + FeatureSet_Utf8Validation._(3, _omitEnumNames ? '' : 'NONE'); + + static const $core.List values = + [ + UTF8_VALIDATION_UNKNOWN, + VERIFY, + NONE, + ]; + + static final $core.Map<$core.int, FeatureSet_Utf8Validation> _byValue = + $pb.ProtobufEnum.initByValue(values); + static FeatureSet_Utf8Validation? valueOf($core.int value) => _byValue[value]; + + const FeatureSet_Utf8Validation._($core.int v, $core.String n) : super(v, n); +} + +class FeatureSet_MessageEncoding extends $pb.ProtobufEnum { + static const FeatureSet_MessageEncoding MESSAGE_ENCODING_UNKNOWN = + FeatureSet_MessageEncoding._( + 0, _omitEnumNames ? '' : 'MESSAGE_ENCODING_UNKNOWN'); + static const FeatureSet_MessageEncoding LENGTH_PREFIXED = + FeatureSet_MessageEncoding._(1, _omitEnumNames ? '' : 'LENGTH_PREFIXED'); + static const FeatureSet_MessageEncoding DELIMITED = + FeatureSet_MessageEncoding._(2, _omitEnumNames ? '' : 'DELIMITED'); + + static const $core.List values = + [ + MESSAGE_ENCODING_UNKNOWN, + LENGTH_PREFIXED, + DELIMITED, + ]; + + static final $core.Map<$core.int, FeatureSet_MessageEncoding> _byValue = + $pb.ProtobufEnum.initByValue(values); + static FeatureSet_MessageEncoding? valueOf($core.int value) => + _byValue[value]; + + const FeatureSet_MessageEncoding._($core.int v, $core.String n) : super(v, n); +} + +class FeatureSet_JsonFormat extends $pb.ProtobufEnum { + static const FeatureSet_JsonFormat JSON_FORMAT_UNKNOWN = + FeatureSet_JsonFormat._(0, _omitEnumNames ? '' : 'JSON_FORMAT_UNKNOWN'); + static const FeatureSet_JsonFormat ALLOW = + FeatureSet_JsonFormat._(1, _omitEnumNames ? '' : 'ALLOW'); + static const FeatureSet_JsonFormat LEGACY_BEST_EFFORT = + FeatureSet_JsonFormat._(2, _omitEnumNames ? '' : 'LEGACY_BEST_EFFORT'); + + static const $core.List values = + [ + JSON_FORMAT_UNKNOWN, + ALLOW, + LEGACY_BEST_EFFORT, + ]; + + static final $core.Map<$core.int, FeatureSet_JsonFormat> _byValue = + $pb.ProtobufEnum.initByValue(values); + static FeatureSet_JsonFormat? valueOf($core.int value) => _byValue[value]; + + const FeatureSet_JsonFormat._($core.int v, $core.String n) : super(v, n); +} + +/// Represents the identified object's effect on the element in the original +/// .proto file. +class GeneratedCodeInfo_Annotation_Semantic extends $pb.ProtobufEnum { + static const GeneratedCodeInfo_Annotation_Semantic NONE = + GeneratedCodeInfo_Annotation_Semantic._(0, _omitEnumNames ? '' : 'NONE'); + static const GeneratedCodeInfo_Annotation_Semantic SET = + GeneratedCodeInfo_Annotation_Semantic._(1, _omitEnumNames ? '' : 'SET'); + static const GeneratedCodeInfo_Annotation_Semantic ALIAS = + GeneratedCodeInfo_Annotation_Semantic._(2, _omitEnumNames ? '' : 'ALIAS'); + + static const $core.List values = + [ + NONE, + SET, + ALIAS, + ]; + + static final $core.Map<$core.int, GeneratedCodeInfo_Annotation_Semantic> + _byValue = $pb.ProtobufEnum.initByValue(values); + static GeneratedCodeInfo_Annotation_Semantic? valueOf($core.int value) => + _byValue[value]; + + const GeneratedCodeInfo_Annotation_Semantic._($core.int v, $core.String n) + : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pbjson.dart index 6bc89b8e..a286ea23 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/descriptor.pbjson.dart @@ -1,14 +1,46 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/descriptor.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 editionDescriptor instead') +const Edition$json = { + '1': 'Edition', + '2': [ + {'1': 'EDITION_UNKNOWN', '2': 0}, + {'1': 'EDITION_LEGACY', '2': 900}, + {'1': 'EDITION_PROTO2', '2': 998}, + {'1': 'EDITION_PROTO3', '2': 999}, + {'1': 'EDITION_2023', '2': 1000}, + {'1': 'EDITION_2024', '2': 1001}, + {'1': 'EDITION_1_TEST_ONLY', '2': 1}, + {'1': 'EDITION_2_TEST_ONLY', '2': 2}, + {'1': 'EDITION_99997_TEST_ONLY', '2': 99997}, + {'1': 'EDITION_99998_TEST_ONLY', '2': 99998}, + {'1': 'EDITION_99999_TEST_ONLY', '2': 99999}, + {'1': 'EDITION_MAX', '2': 2147483647}, + ], +}; + +/// Descriptor for `Edition`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List editionDescriptor = $convert.base64Decode( + 'CgdFZGl0aW9uEhMKD0VESVRJT05fVU5LTk9XThAAEhMKDkVESVRJT05fTEVHQUNZEIQHEhMKDk' + 'VESVRJT05fUFJPVE8yEOYHEhMKDkVESVRJT05fUFJPVE8zEOcHEhEKDEVESVRJT05fMjAyMxDo' + 'BxIRCgxFRElUSU9OXzIwMjQQ6QcSFwoTRURJVElPTl8xX1RFU1RfT05MWRABEhcKE0VESVRJT0' + '5fMl9URVNUX09OTFkQAhIdChdFRElUSU9OXzk5OTk3X1RFU1RfT05MWRCdjQYSHQoXRURJVElP' + 'Tl85OTk5OF9URVNUX09OTFkQno0GEh0KF0VESVRJT05fOTk5OTlfVEVTVF9PTkxZEJ+NBhITCg' + 'tFRElUSU9OX01BWBD/////Bw=='); + @$core.Deprecated('Use fileDescriptorSetDescriptor instead') const FileDescriptorSet$json = { '1': 'FileDescriptorSet', @@ -26,7 +58,9 @@ const FileDescriptorSet$json = { /// Descriptor for `FileDescriptorSet`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List fileDescriptorSetDescriptor = $convert.base64Decode( - 'ChFGaWxlRGVzY3JpcHRvclNldBI4CgRmaWxlGAEgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkZpbGVEZXNjcmlwdG9yUHJvdG9SBGZpbGU='); + 'ChFGaWxlRGVzY3JpcHRvclNldBI4CgRmaWxlGAEgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkZpbG' + 'VEZXNjcmlwdG9yUHJvdG9SBGZpbGU='); + @$core.Deprecated('Use fileDescriptorProtoDescriptor instead') const FileDescriptorProto$json = { '1': 'FileDescriptorProto', @@ -91,12 +125,32 @@ const FileDescriptorProto$json = { '10': 'sourceCodeInfo' }, {'1': 'syntax', '3': 12, '4': 1, '5': 9, '10': 'syntax'}, + { + '1': 'edition', + '3': 14, + '4': 1, + '5': 14, + '6': '.google.protobuf.Edition', + '10': 'edition' + }, ], }; /// Descriptor for `FileDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List fileDescriptorProtoDescriptor = $convert.base64Decode( - 'ChNGaWxlRGVzY3JpcHRvclByb3RvEhIKBG5hbWUYASABKAlSBG5hbWUSGAoHcGFja2FnZRgCIAEoCVIHcGFja2FnZRIeCgpkZXBlbmRlbmN5GAMgAygJUgpkZXBlbmRlbmN5EisKEXB1YmxpY19kZXBlbmRlbmN5GAogAygFUhBwdWJsaWNEZXBlbmRlbmN5EicKD3dlYWtfZGVwZW5kZW5jeRgLIAMoBVIOd2Vha0RlcGVuZGVuY3kSQwoMbWVzc2FnZV90eXBlGAQgAygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90b1ILbWVzc2FnZVR5cGUSQQoJZW51bV90eXBlGAUgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9yUHJvdG9SCGVudW1UeXBlEkEKB3NlcnZpY2UYBiADKAsyJy5nb29nbGUucHJvdG9idWYuU2VydmljZURlc2NyaXB0b3JQcm90b1IHc2VydmljZRJDCglleHRlbnNpb24YByADKAsyJS5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG9SCWV4dGVuc2lvbhI2CgdvcHRpb25zGAggASgLMhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcHRpb25zUgdvcHRpb25zEkkKEHNvdXJjZV9jb2RlX2luZm8YCSABKAsyHy5nb29nbGUucHJvdG9idWYuU291cmNlQ29kZUluZm9SDnNvdXJjZUNvZGVJbmZvEhYKBnN5bnRheBgMIAEoCVIGc3ludGF4'); + 'ChNGaWxlRGVzY3JpcHRvclByb3RvEhIKBG5hbWUYASABKAlSBG5hbWUSGAoHcGFja2FnZRgCIA' + 'EoCVIHcGFja2FnZRIeCgpkZXBlbmRlbmN5GAMgAygJUgpkZXBlbmRlbmN5EisKEXB1YmxpY19k' + 'ZXBlbmRlbmN5GAogAygFUhBwdWJsaWNEZXBlbmRlbmN5EicKD3dlYWtfZGVwZW5kZW5jeRgLIA' + 'MoBVIOd2Vha0RlcGVuZGVuY3kSQwoMbWVzc2FnZV90eXBlGAQgAygLMiAuZ29vZ2xlLnByb3Rv' + 'YnVmLkRlc2NyaXB0b3JQcm90b1ILbWVzc2FnZVR5cGUSQQoJZW51bV90eXBlGAUgAygLMiQuZ2' + '9vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9yUHJvdG9SCGVudW1UeXBlEkEKB3NlcnZpY2UY' + 'BiADKAsyJy5nb29nbGUucHJvdG9idWYuU2VydmljZURlc2NyaXB0b3JQcm90b1IHc2VydmljZR' + 'JDCglleHRlbnNpb24YByADKAsyJS5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJv' + 'dG9SCWV4dGVuc2lvbhI2CgdvcHRpb25zGAggASgLMhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcH' + 'Rpb25zUgdvcHRpb25zEkkKEHNvdXJjZV9jb2RlX2luZm8YCSABKAsyHy5nb29nbGUucHJvdG9i' + 'dWYuU291cmNlQ29kZUluZm9SDnNvdXJjZUNvZGVJbmZvEhYKBnN5bnRheBgMIAEoCVIGc3ludG' + 'F4EjIKB2VkaXRpb24YDiABKA4yGC5nb29nbGUucHJvdG9idWYuRWRpdGlvblIHZWRpdGlvbg=='); + @$core.Deprecated('Use descriptorProtoDescriptor instead') const DescriptorProto$json = { '1': 'DescriptorProto', @@ -202,7 +256,22 @@ const DescriptorProto_ReservedRange$json = { /// Descriptor for `DescriptorProto`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List descriptorProtoDescriptor = $convert.base64Decode( - 'Cg9EZXNjcmlwdG9yUHJvdG8SEgoEbmFtZRgBIAEoCVIEbmFtZRI7CgVmaWVsZBgCIAMoCzIlLmdvb2dsZS5wcm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90b1IFZmllbGQSQwoJZXh0ZW5zaW9uGAYgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvUglleHRlbnNpb24SQQoLbmVzdGVkX3R5cGUYAyADKAsyIC5nb29nbGUucHJvdG9idWYuRGVzY3JpcHRvclByb3RvUgpuZXN0ZWRUeXBlEkEKCWVudW1fdHlwZRgEIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5FbnVtRGVzY3JpcHRvclByb3RvUghlbnVtVHlwZRJYCg9leHRlbnNpb25fcmFuZ2UYBSADKAsyLy5nb29nbGUucHJvdG9idWYuRGVzY3JpcHRvclByb3RvLkV4dGVuc2lvblJhbmdlUg5leHRlbnNpb25SYW5nZRJECgpvbmVvZl9kZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9mRGVzY3JpcHRvclByb3RvUglvbmVvZkRlY2wSOQoHb3B0aW9ucxgHIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9uc1IHb3B0aW9ucxJVCg5yZXNlcnZlZF9yYW5nZRgJIAMoCzIuLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8uUmVzZXJ2ZWRSYW5nZVINcmVzZXJ2ZWRSYW5nZRIjCg1yZXNlcnZlZF9uYW1lGAogAygJUgxyZXNlcnZlZE5hbWUaegoORXh0ZW5zaW9uUmFuZ2USFAoFc3RhcnQYASABKAVSBXN0YXJ0EhAKA2VuZBgCIAEoBVIDZW5kEkAKB29wdGlvbnMYAyABKAsyJi5nb29nbGUucHJvdG9idWYuRXh0ZW5zaW9uUmFuZ2VPcHRpb25zUgdvcHRpb25zGjcKDVJlc2VydmVkUmFuZ2USFAoFc3RhcnQYASABKAVSBXN0YXJ0EhAKA2VuZBgCIAEoBVIDZW5k'); + 'Cg9EZXNjcmlwdG9yUHJvdG8SEgoEbmFtZRgBIAEoCVIEbmFtZRI7CgVmaWVsZBgCIAMoCzIlLm' + 'dvb2dsZS5wcm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90b1IFZmllbGQSQwoJZXh0ZW5zaW9u' + 'GAYgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvUglleHRlbnNpb2' + '4SQQoLbmVzdGVkX3R5cGUYAyADKAsyIC5nb29nbGUucHJvdG9idWYuRGVzY3JpcHRvclByb3Rv' + 'UgpuZXN0ZWRUeXBlEkEKCWVudW1fdHlwZRgEIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5FbnVtRG' + 'VzY3JpcHRvclByb3RvUghlbnVtVHlwZRJYCg9leHRlbnNpb25fcmFuZ2UYBSADKAsyLy5nb29n' + 'bGUucHJvdG9idWYuRGVzY3JpcHRvclByb3RvLkV4dGVuc2lvblJhbmdlUg5leHRlbnNpb25SYW' + '5nZRJECgpvbmVvZl9kZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9mRGVzY3JpcHRv' + 'clByb3RvUglvbmVvZkRlY2wSOQoHb3B0aW9ucxgHIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5NZX' + 'NzYWdlT3B0aW9uc1IHb3B0aW9ucxJVCg5yZXNlcnZlZF9yYW5nZRgJIAMoCzIuLmdvb2dsZS5w' + 'cm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8uUmVzZXJ2ZWRSYW5nZVINcmVzZXJ2ZWRSYW5nZRIjCg' + '1yZXNlcnZlZF9uYW1lGAogAygJUgxyZXNlcnZlZE5hbWUaegoORXh0ZW5zaW9uUmFuZ2USFAoF' + 'c3RhcnQYASABKAVSBXN0YXJ0EhAKA2VuZBgCIAEoBVIDZW5kEkAKB29wdGlvbnMYAyABKAsyJi' + '5nb29nbGUucHJvdG9idWYuRXh0ZW5zaW9uUmFuZ2VPcHRpb25zUgdvcHRpb25zGjcKDVJlc2Vy' + 'dmVkUmFuZ2USFAoFc3RhcnQYASABKAVSBXN0YXJ0EhAKA2VuZBgCIAEoBVIDZW5k'); + @$core.Deprecated('Use extensionRangeOptionsDescriptor instead') const ExtensionRangeOptions$json = { '1': 'ExtensionRangeOptions', @@ -215,15 +284,79 @@ const ExtensionRangeOptions$json = { '6': '.google.protobuf.UninterpretedOption', '10': 'uninterpretedOption' }, + { + '1': 'declaration', + '3': 2, + '4': 3, + '5': 11, + '6': '.google.protobuf.ExtensionRangeOptions.Declaration', + '8': {}, + '10': 'declaration' + }, + { + '1': 'features', + '3': 50, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'features' + }, + { + '1': 'verification', + '3': 3, + '4': 1, + '5': 14, + '6': '.google.protobuf.ExtensionRangeOptions.VerificationState', + '7': 'UNVERIFIED', + '8': {}, + '10': 'verification' + }, ], + '3': [ExtensionRangeOptions_Declaration$json], + '4': [ExtensionRangeOptions_VerificationState$json], '5': [ {'1': 1000, '2': 536870912}, ], }; +@$core.Deprecated('Use extensionRangeOptionsDescriptor instead') +const ExtensionRangeOptions_Declaration$json = { + '1': 'Declaration', + '2': [ + {'1': 'number', '3': 1, '4': 1, '5': 5, '10': 'number'}, + {'1': 'full_name', '3': 2, '4': 1, '5': 9, '10': 'fullName'}, + {'1': 'type', '3': 3, '4': 1, '5': 9, '10': 'type'}, + {'1': 'reserved', '3': 5, '4': 1, '5': 8, '10': 'reserved'}, + {'1': 'repeated', '3': 6, '4': 1, '5': 8, '10': 'repeated'}, + ], + '9': [ + {'1': 4, '2': 5}, + ], +}; + +@$core.Deprecated('Use extensionRangeOptionsDescriptor instead') +const ExtensionRangeOptions_VerificationState$json = { + '1': 'VerificationState', + '2': [ + {'1': 'DECLARATION', '2': 0}, + {'1': 'UNVERIFIED', '2': 1}, + ], +}; + /// Descriptor for `ExtensionRangeOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List extensionRangeOptionsDescriptor = $convert.base64Decode( - 'ChVFeHRlbnNpb25SYW5nZU9wdGlvbnMSWAoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb25SE3VuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAg=='); + 'ChVFeHRlbnNpb25SYW5nZU9wdGlvbnMSWAoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMi' + 'QuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb25SE3VuaW50ZXJwcmV0ZWRPcHRp' + 'b24SWQoLZGVjbGFyYXRpb24YAiADKAsyMi5nb29nbGUucHJvdG9idWYuRXh0ZW5zaW9uUmFuZ2' + 'VPcHRpb25zLkRlY2xhcmF0aW9uQgOIAQJSC2RlY2xhcmF0aW9uEjcKCGZlYXR1cmVzGDIgASgL' + 'MhsuZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXRSCGZlYXR1cmVzEm0KDHZlcmlmaWNhdGlvbh' + 'gDIAEoDjI4Lmdvb2dsZS5wcm90b2J1Zi5FeHRlbnNpb25SYW5nZU9wdGlvbnMuVmVyaWZpY2F0' + 'aW9uU3RhdGU6ClVOVkVSSUZJRURCA4gBAlIMdmVyaWZpY2F0aW9uGpQBCgtEZWNsYXJhdGlvbh' + 'IWCgZudW1iZXIYASABKAVSBm51bWJlchIbCglmdWxsX25hbWUYAiABKAlSCGZ1bGxOYW1lEhIK' + 'BHR5cGUYAyABKAlSBHR5cGUSGgoIcmVzZXJ2ZWQYBSABKAhSCHJlc2VydmVkEhoKCHJlcGVhdG' + 'VkGAYgASgIUghyZXBlYXRlZEoECAQQBSI0ChFWZXJpZmljYXRpb25TdGF0ZRIPCgtERUNMQVJB' + 'VElPThAAEg4KClVOVkVSSUZJRUQQASoJCOgHEICAgIAC'); + @$core.Deprecated('Use fieldDescriptorProtoDescriptor instead') const FieldDescriptorProto$json = { '1': 'FieldDescriptorProto', @@ -294,14 +427,30 @@ const FieldDescriptorProto_Label$json = { '1': 'Label', '2': [ {'1': 'LABEL_OPTIONAL', '2': 1}, - {'1': 'LABEL_REQUIRED', '2': 2}, {'1': 'LABEL_REPEATED', '2': 3}, + {'1': 'LABEL_REQUIRED', '2': 2}, ], }; /// Descriptor for `FieldDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List fieldDescriptorProtoDescriptor = $convert.base64Decode( - 'ChRGaWVsZERlc2NyaXB0b3JQcm90bxISCgRuYW1lGAEgASgJUgRuYW1lEhYKBm51bWJlchgDIAEoBVIGbnVtYmVyEkEKBWxhYmVsGAQgASgOMisuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvLkxhYmVsUgVsYWJlbBI+CgR0eXBlGAUgASgOMiouZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvLlR5cGVSBHR5cGUSGwoJdHlwZV9uYW1lGAYgASgJUgh0eXBlTmFtZRIaCghleHRlbmRlZRgCIAEoCVIIZXh0ZW5kZWUSIwoNZGVmYXVsdF92YWx1ZRgHIAEoCVIMZGVmYXVsdFZhbHVlEh8KC29uZW9mX2luZGV4GAkgASgFUgpvbmVvZkluZGV4EhsKCWpzb25fbmFtZRgKIAEoCVIIanNvbk5hbWUSNwoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnNSB29wdGlvbnMSJwoPcHJvdG8zX29wdGlvbmFsGBEgASgIUg5wcm90bzNPcHRpb25hbCK2AgoEVHlwZRIPCgtUWVBFX0RPVUJMRRABEg4KClRZUEVfRkxPQVQQAhIOCgpUWVBFX0lOVDY0EAMSDwoLVFlQRV9VSU5UNjQQBBIOCgpUWVBFX0lOVDMyEAUSEAoMVFlQRV9GSVhFRDY0EAYSEAoMVFlQRV9GSVhFRDMyEAcSDQoJVFlQRV9CT09MEAgSDwoLVFlQRV9TVFJJTkcQCRIOCgpUWVBFX0dST1VQEAoSEAoMVFlQRV9NRVNTQUdFEAsSDgoKVFlQRV9CWVRFUxAMEg8KC1RZUEVfVUlOVDMyEA0SDQoJVFlQRV9FTlVNEA4SEQoNVFlQRV9TRklYRUQzMhAPEhEKDVRZUEVfU0ZJWEVENjQQEBIPCgtUWVBFX1NJTlQzMhAREg8KC1RZUEVfU0lOVDY0EBIiQwoFTGFiZWwSEgoOTEFCRUxfT1BUSU9OQUwQARISCg5MQUJFTF9SRVFVSVJFRBACEhIKDkxBQkVMX1JFUEVBVEVEEAM='); + 'ChRGaWVsZERlc2NyaXB0b3JQcm90bxISCgRuYW1lGAEgASgJUgRuYW1lEhYKBm51bWJlchgDIA' + 'EoBVIGbnVtYmVyEkEKBWxhYmVsGAQgASgOMisuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3Jp' + 'cHRvclByb3RvLkxhYmVsUgVsYWJlbBI+CgR0eXBlGAUgASgOMiouZ29vZ2xlLnByb3RvYnVmLk' + 'ZpZWxkRGVzY3JpcHRvclByb3RvLlR5cGVSBHR5cGUSGwoJdHlwZV9uYW1lGAYgASgJUgh0eXBl' + 'TmFtZRIaCghleHRlbmRlZRgCIAEoCVIIZXh0ZW5kZWUSIwoNZGVmYXVsdF92YWx1ZRgHIAEoCV' + 'IMZGVmYXVsdFZhbHVlEh8KC29uZW9mX2luZGV4GAkgASgFUgpvbmVvZkluZGV4EhsKCWpzb25f' + 'bmFtZRgKIAEoCVIIanNvbk5hbWUSNwoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5wcm90b2J1Zi' + '5GaWVsZE9wdGlvbnNSB29wdGlvbnMSJwoPcHJvdG8zX29wdGlvbmFsGBEgASgIUg5wcm90bzNP' + 'cHRpb25hbCK2AgoEVHlwZRIPCgtUWVBFX0RPVUJMRRABEg4KClRZUEVfRkxPQVQQAhIOCgpUWV' + 'BFX0lOVDY0EAMSDwoLVFlQRV9VSU5UNjQQBBIOCgpUWVBFX0lOVDMyEAUSEAoMVFlQRV9GSVhF' + 'RDY0EAYSEAoMVFlQRV9GSVhFRDMyEAcSDQoJVFlQRV9CT09MEAgSDwoLVFlQRV9TVFJJTkcQCR' + 'IOCgpUWVBFX0dST1VQEAoSEAoMVFlQRV9NRVNTQUdFEAsSDgoKVFlQRV9CWVRFUxAMEg8KC1RZ' + 'UEVfVUlOVDMyEA0SDQoJVFlQRV9FTlVNEA4SEQoNVFlQRV9TRklYRUQzMhAPEhEKDVRZUEVfU0' + 'ZJWEVENjQQEBIPCgtUWVBFX1NJTlQzMhAREg8KC1RZUEVfU0lOVDY0EBIiQwoFTGFiZWwSEgoO' + 'TEFCRUxfT1BUSU9OQUwQARISCg5MQUJFTF9SRVBFQVRFRBADEhIKDkxBQkVMX1JFUVVJUkVEEA' + 'I='); + @$core.Deprecated('Use oneofDescriptorProtoDescriptor instead') const OneofDescriptorProto$json = { '1': 'OneofDescriptorProto', @@ -320,7 +469,9 @@ const OneofDescriptorProto$json = { /// Descriptor for `OneofDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List oneofDescriptorProtoDescriptor = $convert.base64Decode( - 'ChRPbmVvZkRlc2NyaXB0b3JQcm90bxISCgRuYW1lGAEgASgJUgRuYW1lEjcKB29wdGlvbnMYAiABKAsyHS5nb29nbGUucHJvdG9idWYuT25lb2ZPcHRpb25zUgdvcHRpb25z'); + 'ChRPbmVvZkRlc2NyaXB0b3JQcm90bxISCgRuYW1lGAEgASgJUgRuYW1lEjcKB29wdGlvbnMYAi' + 'ABKAsyHS5nb29nbGUucHJvdG9idWYuT25lb2ZPcHRpb25zUgdvcHRpb25z'); + @$core.Deprecated('Use enumDescriptorProtoDescriptor instead') const EnumDescriptorProto$json = { '1': 'EnumDescriptorProto', @@ -366,7 +517,14 @@ const EnumDescriptorProto_EnumReservedRange$json = { /// Descriptor for `EnumDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List enumDescriptorProtoDescriptor = $convert.base64Decode( - 'ChNFbnVtRGVzY3JpcHRvclByb3RvEhIKBG5hbWUYASABKAlSBG5hbWUSPwoFdmFsdWUYAiADKAsyKS5nb29nbGUucHJvdG9idWYuRW51bVZhbHVlRGVzY3JpcHRvclByb3RvUgV2YWx1ZRI2CgdvcHRpb25zGAMgASgLMhwuZ29vZ2xlLnByb3RvYnVmLkVudW1PcHRpb25zUgdvcHRpb25zEl0KDnJlc2VydmVkX3JhbmdlGAQgAygLMjYuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9yUHJvdG8uRW51bVJlc2VydmVkUmFuZ2VSDXJlc2VydmVkUmFuZ2USIwoNcmVzZXJ2ZWRfbmFtZRgFIAMoCVIMcmVzZXJ2ZWROYW1lGjsKEUVudW1SZXNlcnZlZFJhbmdlEhQKBXN0YXJ0GAEgASgFUgVzdGFydBIQCgNlbmQYAiABKAVSA2VuZA=='); + 'ChNFbnVtRGVzY3JpcHRvclByb3RvEhIKBG5hbWUYASABKAlSBG5hbWUSPwoFdmFsdWUYAiADKA' + 'syKS5nb29nbGUucHJvdG9idWYuRW51bVZhbHVlRGVzY3JpcHRvclByb3RvUgV2YWx1ZRI2Cgdv' + 'cHRpb25zGAMgASgLMhwuZ29vZ2xlLnByb3RvYnVmLkVudW1PcHRpb25zUgdvcHRpb25zEl0KDn' + 'Jlc2VydmVkX3JhbmdlGAQgAygLMjYuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9yUHJv' + 'dG8uRW51bVJlc2VydmVkUmFuZ2VSDXJlc2VydmVkUmFuZ2USIwoNcmVzZXJ2ZWRfbmFtZRgFIA' + 'MoCVIMcmVzZXJ2ZWROYW1lGjsKEUVudW1SZXNlcnZlZFJhbmdlEhQKBXN0YXJ0GAEgASgFUgVz' + 'dGFydBIQCgNlbmQYAiABKAVSA2VuZA=='); + @$core.Deprecated('Use enumValueDescriptorProtoDescriptor instead') const EnumValueDescriptorProto$json = { '1': 'EnumValueDescriptorProto', @@ -385,9 +543,11 @@ const EnumValueDescriptorProto$json = { }; /// Descriptor for `EnumValueDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List enumValueDescriptorProtoDescriptor = - $convert.base64Decode( - 'ChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SEgoEbmFtZRgBIAEoCVIEbmFtZRIWCgZudW1iZXIYAiABKAVSBm51bWJlchI7CgdvcHRpb25zGAMgASgLMiEuZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1ZU9wdGlvbnNSB29wdGlvbnM='); +final $typed_data.Uint8List enumValueDescriptorProtoDescriptor = $convert.base64Decode( + 'ChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SEgoEbmFtZRgBIAEoCVIEbmFtZRIWCgZudW1iZX' + 'IYAiABKAVSBm51bWJlchI7CgdvcHRpb25zGAMgASgLMiEuZ29vZ2xlLnByb3RvYnVmLkVudW1W' + 'YWx1ZU9wdGlvbnNSB29wdGlvbnM='); + @$core.Deprecated('Use serviceDescriptorProtoDescriptor instead') const ServiceDescriptorProto$json = { '1': 'ServiceDescriptorProto', @@ -413,9 +573,12 @@ const ServiceDescriptorProto$json = { }; /// Descriptor for `ServiceDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List serviceDescriptorProtoDescriptor = - $convert.base64Decode( - 'ChZTZXJ2aWNlRGVzY3JpcHRvclByb3RvEhIKBG5hbWUYASABKAlSBG5hbWUSPgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnByb3RvYnVmLk1ldGhvZERlc2NyaXB0b3JQcm90b1IGbWV0aG9kEjkKB29wdGlvbnMYAyABKAsyHy5nb29nbGUucHJvdG9idWYuU2VydmljZU9wdGlvbnNSB29wdGlvbnM='); +final $typed_data.Uint8List serviceDescriptorProtoDescriptor = $convert.base64Decode( + 'ChZTZXJ2aWNlRGVzY3JpcHRvclByb3RvEhIKBG5hbWUYASABKAlSBG5hbWUSPgoGbWV0aG9kGA' + 'IgAygLMiYuZ29vZ2xlLnByb3RvYnVmLk1ldGhvZERlc2NyaXB0b3JQcm90b1IGbWV0aG9kEjkK' + 'B29wdGlvbnMYAyABKAsyHy5nb29nbGUucHJvdG9idWYuU2VydmljZU9wdGlvbnNSB29wdGlvbn' + 'M='); + @$core.Deprecated('Use methodDescriptorProtoDescriptor instead') const MethodDescriptorProto$json = { '1': 'MethodDescriptorProto', @@ -452,7 +615,12 @@ const MethodDescriptorProto$json = { /// Descriptor for `MethodDescriptorProto`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List methodDescriptorProtoDescriptor = $convert.base64Decode( - 'ChVNZXRob2REZXNjcmlwdG9yUHJvdG8SEgoEbmFtZRgBIAEoCVIEbmFtZRIdCgppbnB1dF90eXBlGAIgASgJUglpbnB1dFR5cGUSHwoLb3V0cHV0X3R5cGUYAyABKAlSCm91dHB1dFR5cGUSOAoHb3B0aW9ucxgEIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zUgdvcHRpb25zEjAKEGNsaWVudF9zdHJlYW1pbmcYBSABKAg6BWZhbHNlUg9jbGllbnRTdHJlYW1pbmcSMAoQc2VydmVyX3N0cmVhbWluZxgGIAEoCDoFZmFsc2VSD3NlcnZlclN0cmVhbWluZw=='); + 'ChVNZXRob2REZXNjcmlwdG9yUHJvdG8SEgoEbmFtZRgBIAEoCVIEbmFtZRIdCgppbnB1dF90eX' + 'BlGAIgASgJUglpbnB1dFR5cGUSHwoLb3V0cHV0X3R5cGUYAyABKAlSCm91dHB1dFR5cGUSOAoH' + 'b3B0aW9ucxgEIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zUgdvcHRpb25zEj' + 'AKEGNsaWVudF9zdHJlYW1pbmcYBSABKAg6BWZhbHNlUg9jbGllbnRTdHJlYW1pbmcSMAoQc2Vy' + 'dmVyX3N0cmVhbWluZxgGIAEoCDoFZmFsc2VSD3NlcnZlclN0cmVhbWluZw=='); + @$core.Deprecated('Use fileOptionsDescriptor instead') const FileOptions$json = { '1': 'FileOptions', @@ -523,14 +691,6 @@ const FileOptions$json = { '7': 'false', '10': 'pyGenericServices' }, - { - '1': 'php_generic_services', - '3': 42, - '4': 1, - '5': 8, - '7': 'false', - '10': 'phpGenericServices' - }, { '1': 'deprecated', '3': 23, @@ -566,6 +726,14 @@ const FileOptions$json = { '10': 'phpMetadataNamespace' }, {'1': 'ruby_package', '3': 45, '4': 1, '5': 9, '10': 'rubyPackage'}, + { + '1': 'features', + '3': 50, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'features' + }, { '1': 'uninterpreted_option', '3': 999, @@ -580,8 +748,10 @@ const FileOptions$json = { {'1': 1000, '2': 536870912}, ], '9': [ + {'1': 42, '2': 43}, {'1': 38, '2': 39}, ], + '10': ['php_generic_services'], }; @$core.Deprecated('Use fileOptionsDescriptor instead') @@ -596,7 +766,29 @@ const FileOptions_OptimizeMode$json = { /// Descriptor for `FileOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List fileOptionsDescriptor = $convert.base64Decode( - 'CgtGaWxlT3B0aW9ucxIhCgxqYXZhX3BhY2thZ2UYASABKAlSC2phdmFQYWNrYWdlEjAKFGphdmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJUhJqYXZhT3V0ZXJDbGFzc25hbWUSNQoTamF2YV9tdWx0aXBsZV9maWxlcxgKIAEoCDoFZmFsc2VSEWphdmFNdWx0aXBsZUZpbGVzEkQKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2FuZF9oYXNoGBQgASgIQgIYAVIZamF2YUdlbmVyYXRlRXF1YWxzQW5kSGFzaBI6ChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsgASgIOgVmYWxzZVITamF2YVN0cmluZ0NoZWNrVXRmOBJTCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMuT3B0aW1pemVNb2RlOgVTUEVFRFILb3B0aW1pemVGb3ISHQoKZ29fcGFja2FnZRgLIAEoCVIJZ29QYWNrYWdlEjUKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZhbHNlUhFjY0dlbmVyaWNTZXJ2aWNlcxI5ChVqYXZhX2dlbmVyaWNfc2VydmljZXMYESABKAg6BWZhbHNlUhNqYXZhR2VuZXJpY1NlcnZpY2VzEjUKE3B5X2dlbmVyaWNfc2VydmljZXMYEiABKAg6BWZhbHNlUhFweUdlbmVyaWNTZXJ2aWNlcxI3ChRwaHBfZ2VuZXJpY19zZXJ2aWNlcxgqIAEoCDoFZmFsc2VSEnBocEdlbmVyaWNTZXJ2aWNlcxIlCgpkZXByZWNhdGVkGBcgASgIOgVmYWxzZVIKZGVwcmVjYXRlZBIuChBjY19lbmFibGVfYXJlbmFzGB8gASgIOgR0cnVlUg5jY0VuYWJsZUFyZW5hcxIqChFvYmpjX2NsYXNzX3ByZWZpeBgkIAEoCVIPb2JqY0NsYXNzUHJlZml4EikKEGNzaGFycF9uYW1lc3BhY2UYJSABKAlSD2NzaGFycE5hbWVzcGFjZRIhCgxzd2lmdF9wcmVmaXgYJyABKAlSC3N3aWZ0UHJlZml4EigKEHBocF9jbGFzc19wcmVmaXgYKCABKAlSDnBocENsYXNzUHJlZml4EiMKDXBocF9uYW1lc3BhY2UYKSABKAlSDHBocE5hbWVzcGFjZRI0ChZwaHBfbWV0YWRhdGFfbmFtZXNwYWNlGCwgASgJUhRwaHBNZXRhZGF0YU5hbWVzcGFjZRIhCgxydWJ5X3BhY2thZ2UYLSABKAlSC3J1YnlQYWNrYWdlElgKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uUhN1bmludGVycHJldGVkT3B0aW9uIjoKDE9wdGltaXplTW9kZRIJCgVTUEVFRBABEg0KCUNPREVfU0laRRACEhAKDExJVEVfUlVOVElNRRADKgkI6AcQgICAgAJKBAgmECc='); + 'CgtGaWxlT3B0aW9ucxIhCgxqYXZhX3BhY2thZ2UYASABKAlSC2phdmFQYWNrYWdlEjAKFGphdm' + 'Ffb3V0ZXJfY2xhc3NuYW1lGAggASgJUhJqYXZhT3V0ZXJDbGFzc25hbWUSNQoTamF2YV9tdWx0' + 'aXBsZV9maWxlcxgKIAEoCDoFZmFsc2VSEWphdmFNdWx0aXBsZUZpbGVzEkQKHWphdmFfZ2VuZX' + 'JhdGVfZXF1YWxzX2FuZF9oYXNoGBQgASgIQgIYAVIZamF2YUdlbmVyYXRlRXF1YWxzQW5kSGFz' + 'aBI6ChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsgASgIOgVmYWxzZVITamF2YVN0cmluZ0NoZW' + 'NrVXRmOBJTCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlv' + 'bnMuT3B0aW1pemVNb2RlOgVTUEVFRFILb3B0aW1pemVGb3ISHQoKZ29fcGFja2FnZRgLIAEoCV' + 'IJZ29QYWNrYWdlEjUKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZhbHNlUhFjY0dlbmVy' + 'aWNTZXJ2aWNlcxI5ChVqYXZhX2dlbmVyaWNfc2VydmljZXMYESABKAg6BWZhbHNlUhNqYXZhR2' + 'VuZXJpY1NlcnZpY2VzEjUKE3B5X2dlbmVyaWNfc2VydmljZXMYEiABKAg6BWZhbHNlUhFweUdl' + 'bmVyaWNTZXJ2aWNlcxIlCgpkZXByZWNhdGVkGBcgASgIOgVmYWxzZVIKZGVwcmVjYXRlZBIuCh' + 'BjY19lbmFibGVfYXJlbmFzGB8gASgIOgR0cnVlUg5jY0VuYWJsZUFyZW5hcxIqChFvYmpjX2Ns' + 'YXNzX3ByZWZpeBgkIAEoCVIPb2JqY0NsYXNzUHJlZml4EikKEGNzaGFycF9uYW1lc3BhY2UYJS' + 'ABKAlSD2NzaGFycE5hbWVzcGFjZRIhCgxzd2lmdF9wcmVmaXgYJyABKAlSC3N3aWZ0UHJlZml4' + 'EigKEHBocF9jbGFzc19wcmVmaXgYKCABKAlSDnBocENsYXNzUHJlZml4EiMKDXBocF9uYW1lc3' + 'BhY2UYKSABKAlSDHBocE5hbWVzcGFjZRI0ChZwaHBfbWV0YWRhdGFfbmFtZXNwYWNlGCwgASgJ' + 'UhRwaHBNZXRhZGF0YU5hbWVzcGFjZRIhCgxydWJ5X3BhY2thZ2UYLSABKAlSC3J1YnlQYWNrYW' + 'dlEjcKCGZlYXR1cmVzGDIgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXRSCGZlYXR1' + 'cmVzElgKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbm' + 'ludGVycHJldGVkT3B0aW9uUhN1bmludGVycHJldGVkT3B0aW9uIjoKDE9wdGltaXplTW9kZRIJ' + 'CgVTUEVFRBABEg0KCUNPREVfU0laRRACEhAKDExJVEVfUlVOVElNRRADKgkI6AcQgICAgAJKBA' + 'gqECtKBAgmECdSFHBocF9nZW5lcmljX3NlcnZpY2Vz'); + @$core.Deprecated('Use messageOptionsDescriptor instead') const MessageOptions$json = { '1': 'MessageOptions', @@ -626,6 +818,22 @@ const MessageOptions$json = { '10': 'deprecated' }, {'1': 'map_entry', '3': 7, '4': 1, '5': 8, '10': 'mapEntry'}, + { + '1': 'deprecated_legacy_json_field_conflicts', + '3': 11, + '4': 1, + '5': 8, + '8': {'3': true}, + '10': 'deprecatedLegacyJsonFieldConflicts', + }, + { + '1': 'features', + '3': 12, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'features' + }, { '1': 'uninterpreted_option', '3': 999, @@ -649,7 +857,17 @@ const MessageOptions$json = { /// Descriptor for `MessageOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List messageOptionsDescriptor = $convert.base64Decode( - 'Cg5NZXNzYWdlT3B0aW9ucxI8ChdtZXNzYWdlX3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2VSFG1lc3NhZ2VTZXRXaXJlRm9ybWF0EkwKH25vX3N0YW5kYXJkX2Rlc2NyaXB0b3JfYWNjZXNzb3IYAiABKAg6BWZhbHNlUhxub1N0YW5kYXJkRGVzY3JpcHRvckFjY2Vzc29yEiUKCmRlcHJlY2F0ZWQYAyABKAg6BWZhbHNlUgpkZXByZWNhdGVkEhsKCW1hcF9lbnRyeRgHIAEoCFIIbWFwRW50cnkSWAoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb25SE3VuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAkoECAQQBUoECAUQBkoECAYQB0oECAgQCUoECAkQCg=='); + 'Cg5NZXNzYWdlT3B0aW9ucxI8ChdtZXNzYWdlX3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2' + 'VSFG1lc3NhZ2VTZXRXaXJlRm9ybWF0EkwKH25vX3N0YW5kYXJkX2Rlc2NyaXB0b3JfYWNjZXNz' + 'b3IYAiABKAg6BWZhbHNlUhxub1N0YW5kYXJkRGVzY3JpcHRvckFjY2Vzc29yEiUKCmRlcHJlY2' + 'F0ZWQYAyABKAg6BWZhbHNlUgpkZXByZWNhdGVkEhsKCW1hcF9lbnRyeRgHIAEoCFIIbWFwRW50' + 'cnkSVgomZGVwcmVjYXRlZF9sZWdhY3lfanNvbl9maWVsZF9jb25mbGljdHMYCyABKAhCAhgBUi' + 'JkZXByZWNhdGVkTGVnYWN5SnNvbkZpZWxkQ29uZmxpY3RzEjcKCGZlYXR1cmVzGAwgASgLMhsu' + 'Z29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXRSCGZlYXR1cmVzElgKFHVuaW50ZXJwcmV0ZWRfb3' + 'B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uUhN1bmlu' + 'dGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAJKBAgEEAVKBAgFEAZKBAgGEAdKBAgIEAlKBAgJEA' + 'o='); + @$core.Deprecated('Use fieldOptionsDescriptor instead') const FieldOptions$json = { '1': 'FieldOptions', @@ -674,6 +892,14 @@ const FieldOptions$json = { '10': 'jstype' }, {'1': 'lazy', '3': 5, '4': 1, '5': 8, '7': 'false', '10': 'lazy'}, + { + '1': 'unverified_lazy', + '3': 15, + '4': 1, + '5': 8, + '7': 'false', + '10': 'unverifiedLazy' + }, { '1': 'deprecated', '3': 3, @@ -683,6 +909,54 @@ const FieldOptions$json = { '10': 'deprecated' }, {'1': 'weak', '3': 10, '4': 1, '5': 8, '7': 'false', '10': 'weak'}, + { + '1': 'debug_redact', + '3': 16, + '4': 1, + '5': 8, + '7': 'false', + '10': 'debugRedact' + }, + { + '1': 'retention', + '3': 17, + '4': 1, + '5': 14, + '6': '.google.protobuf.FieldOptions.OptionRetention', + '10': 'retention' + }, + { + '1': 'targets', + '3': 19, + '4': 3, + '5': 14, + '6': '.google.protobuf.FieldOptions.OptionTargetType', + '10': 'targets' + }, + { + '1': 'edition_defaults', + '3': 20, + '4': 3, + '5': 11, + '6': '.google.protobuf.FieldOptions.EditionDefault', + '10': 'editionDefaults' + }, + { + '1': 'features', + '3': 21, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'features' + }, + { + '1': 'feature_support', + '3': 22, + '4': 1, + '5': 11, + '6': '.google.protobuf.FieldOptions.FeatureSupport', + '10': 'featureSupport' + }, { '1': 'uninterpreted_option', '3': 999, @@ -692,12 +966,73 @@ const FieldOptions$json = { '10': 'uninterpretedOption' }, ], - '4': [FieldOptions_CType$json, FieldOptions_JSType$json], + '3': [FieldOptions_EditionDefault$json, FieldOptions_FeatureSupport$json], + '4': [ + FieldOptions_CType$json, + FieldOptions_JSType$json, + FieldOptions_OptionRetention$json, + FieldOptions_OptionTargetType$json + ], '5': [ {'1': 1000, '2': 536870912}, ], '9': [ {'1': 4, '2': 5}, + {'1': 18, '2': 19}, + ], +}; + +@$core.Deprecated('Use fieldOptionsDescriptor instead') +const FieldOptions_EditionDefault$json = { + '1': 'EditionDefault', + '2': [ + { + '1': 'edition', + '3': 3, + '4': 1, + '5': 14, + '6': '.google.protobuf.Edition', + '10': 'edition' + }, + {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, + ], +}; + +@$core.Deprecated('Use fieldOptionsDescriptor instead') +const FieldOptions_FeatureSupport$json = { + '1': 'FeatureSupport', + '2': [ + { + '1': 'edition_introduced', + '3': 1, + '4': 1, + '5': 14, + '6': '.google.protobuf.Edition', + '10': 'editionIntroduced' + }, + { + '1': 'edition_deprecated', + '3': 2, + '4': 1, + '5': 14, + '6': '.google.protobuf.Edition', + '10': 'editionDeprecated' + }, + { + '1': 'deprecation_warning', + '3': 3, + '4': 1, + '5': 9, + '10': 'deprecationWarning' + }, + { + '1': 'edition_removed', + '3': 4, + '4': 1, + '5': 14, + '6': '.google.protobuf.Edition', + '10': 'editionRemoved' + }, ], }; @@ -721,13 +1056,79 @@ const FieldOptions_JSType$json = { ], }; +@$core.Deprecated('Use fieldOptionsDescriptor instead') +const FieldOptions_OptionRetention$json = { + '1': 'OptionRetention', + '2': [ + {'1': 'RETENTION_UNKNOWN', '2': 0}, + {'1': 'RETENTION_RUNTIME', '2': 1}, + {'1': 'RETENTION_SOURCE', '2': 2}, + ], +}; + +@$core.Deprecated('Use fieldOptionsDescriptor instead') +const FieldOptions_OptionTargetType$json = { + '1': 'OptionTargetType', + '2': [ + {'1': 'TARGET_TYPE_UNKNOWN', '2': 0}, + {'1': 'TARGET_TYPE_FILE', '2': 1}, + {'1': 'TARGET_TYPE_EXTENSION_RANGE', '2': 2}, + {'1': 'TARGET_TYPE_MESSAGE', '2': 3}, + {'1': 'TARGET_TYPE_FIELD', '2': 4}, + {'1': 'TARGET_TYPE_ONEOF', '2': 5}, + {'1': 'TARGET_TYPE_ENUM', '2': 6}, + {'1': 'TARGET_TYPE_ENUM_ENTRY', '2': 7}, + {'1': 'TARGET_TYPE_SERVICE', '2': 8}, + {'1': 'TARGET_TYPE_METHOD', '2': 9}, + ], +}; + /// Descriptor for `FieldOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List fieldOptionsDescriptor = $convert.base64Decode( - 'CgxGaWVsZE9wdGlvbnMSQQoFY3R5cGUYASABKA4yIy5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zLkNUeXBlOgZTVFJJTkdSBWN0eXBlEhYKBnBhY2tlZBgCIAEoCFIGcGFja2VkEkcKBmpzdHlwZRgGIAEoDjIkLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMuSlNUeXBlOglKU19OT1JNQUxSBmpzdHlwZRIZCgRsYXp5GAUgASgIOgVmYWxzZVIEbGF6eRIlCgpkZXByZWNhdGVkGAMgASgIOgVmYWxzZVIKZGVwcmVjYXRlZBIZCgR3ZWFrGAogASgIOgVmYWxzZVIEd2VhaxJYChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdGlvbiIvCgVDVHlwZRIKCgZTVFJJTkcQABIICgRDT1JEEAESEAoMU1RSSU5HX1BJRUNFEAIiNQoGSlNUeXBlEg0KCUpTX05PUk1BTBAAEg0KCUpTX1NUUklORxABEg0KCUpTX05VTUJFUhACKgkI6AcQgICAgAJKBAgEEAU='); + 'CgxGaWVsZE9wdGlvbnMSQQoFY3R5cGUYASABKA4yIy5nb29nbGUucHJvdG9idWYuRmllbGRPcH' + 'Rpb25zLkNUeXBlOgZTVFJJTkdSBWN0eXBlEhYKBnBhY2tlZBgCIAEoCFIGcGFja2VkEkcKBmpz' + 'dHlwZRgGIAEoDjIkLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMuSlNUeXBlOglKU19OT1' + 'JNQUxSBmpzdHlwZRIZCgRsYXp5GAUgASgIOgVmYWxzZVIEbGF6eRIuCg91bnZlcmlmaWVkX2xh' + 'enkYDyABKAg6BWZhbHNlUg51bnZlcmlmaWVkTGF6eRIlCgpkZXByZWNhdGVkGAMgASgIOgVmYW' + 'xzZVIKZGVwcmVjYXRlZBIZCgR3ZWFrGAogASgIOgVmYWxzZVIEd2VhaxIoCgxkZWJ1Z19yZWRh' + 'Y3QYECABKAg6BWZhbHNlUgtkZWJ1Z1JlZGFjdBJLCglyZXRlbnRpb24YESABKA4yLS5nb29nbG' + 'UucHJvdG9idWYuRmllbGRPcHRpb25zLk9wdGlvblJldGVudGlvblIJcmV0ZW50aW9uEkgKB3Rh' + 'cmdldHMYEyADKA4yLi5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zLk9wdGlvblRhcmdldF' + 'R5cGVSB3RhcmdldHMSVwoQZWRpdGlvbl9kZWZhdWx0cxgUIAMoCzIsLmdvb2dsZS5wcm90b2J1' + 'Zi5GaWVsZE9wdGlvbnMuRWRpdGlvbkRlZmF1bHRSD2VkaXRpb25EZWZhdWx0cxI3CghmZWF0dX' + 'JlcxgVIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0UghmZWF0dXJlcxJVCg9mZWF0' + 'dXJlX3N1cHBvcnQYFiABKAsyLC5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zLkZlYXR1cm' + 'VTdXBwb3J0Ug5mZWF0dXJlU3VwcG9ydBJYChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsy' + 'JC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdG' + 'lvbhpaCg5FZGl0aW9uRGVmYXVsdBIyCgdlZGl0aW9uGAMgASgOMhguZ29vZ2xlLnByb3RvYnVm' + 'LkVkaXRpb25SB2VkaXRpb24SFAoFdmFsdWUYAiABKAlSBXZhbHVlGpYCCg5GZWF0dXJlU3VwcG' + '9ydBJHChJlZGl0aW9uX2ludHJvZHVjZWQYASABKA4yGC5nb29nbGUucHJvdG9idWYuRWRpdGlv' + 'blIRZWRpdGlvbkludHJvZHVjZWQSRwoSZWRpdGlvbl9kZXByZWNhdGVkGAIgASgOMhguZ29vZ2' + 'xlLnByb3RvYnVmLkVkaXRpb25SEWVkaXRpb25EZXByZWNhdGVkEi8KE2RlcHJlY2F0aW9uX3dh' + 'cm5pbmcYAyABKAlSEmRlcHJlY2F0aW9uV2FybmluZxJBCg9lZGl0aW9uX3JlbW92ZWQYBCABKA' + '4yGC5nb29nbGUucHJvdG9idWYuRWRpdGlvblIOZWRpdGlvblJlbW92ZWQiLwoFQ1R5cGUSCgoG' + 'U1RSSU5HEAASCAoEQ09SRBABEhAKDFNUUklOR19QSUVDRRACIjUKBkpTVHlwZRINCglKU19OT1' + 'JNQUwQABINCglKU19TVFJJTkcQARINCglKU19OVU1CRVIQAiJVCg9PcHRpb25SZXRlbnRpb24S' + 'FQoRUkVURU5USU9OX1VOS05PV04QABIVChFSRVRFTlRJT05fUlVOVElNRRABEhQKEFJFVEVOVE' + 'lPTl9TT1VSQ0UQAiKMAgoQT3B0aW9uVGFyZ2V0VHlwZRIXChNUQVJHRVRfVFlQRV9VTktOT1dO' + 'EAASFAoQVEFSR0VUX1RZUEVfRklMRRABEh8KG1RBUkdFVF9UWVBFX0VYVEVOU0lPTl9SQU5HRR' + 'ACEhcKE1RBUkdFVF9UWVBFX01FU1NBR0UQAxIVChFUQVJHRVRfVFlQRV9GSUVMRBAEEhUKEVRB' + 'UkdFVF9UWVBFX09ORU9GEAUSFAoQVEFSR0VUX1RZUEVfRU5VTRAGEhoKFlRBUkdFVF9UWVBFX0' + 'VOVU1fRU5UUlkQBxIXChNUQVJHRVRfVFlQRV9TRVJWSUNFEAgSFgoSVEFSR0VUX1RZUEVfTUVU' + 'SE9EEAkqCQjoBxCAgICAAkoECAQQBUoECBIQEw=='); + @$core.Deprecated('Use oneofOptionsDescriptor instead') const OneofOptions$json = { '1': 'OneofOptions', '2': [ + { + '1': 'features', + '3': 1, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'features' + }, { '1': 'uninterpreted_option', '3': 999, @@ -744,7 +1145,11 @@ const OneofOptions$json = { /// Descriptor for `OneofOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List oneofOptionsDescriptor = $convert.base64Decode( - 'CgxPbmVvZk9wdGlvbnMSWAoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb25SE3VuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAg=='); + 'CgxPbmVvZk9wdGlvbnMSNwoIZmVhdHVyZXMYASABKAsyGy5nb29nbGUucHJvdG9idWYuRmVhdH' + 'VyZVNldFIIZmVhdHVyZXMSWAoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xl' + 'LnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb25SE3VuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBx' + 'CAgICAAg=='); + @$core.Deprecated('Use enumOptionsDescriptor instead') const EnumOptions$json = { '1': 'EnumOptions', @@ -758,6 +1163,22 @@ const EnumOptions$json = { '7': 'false', '10': 'deprecated' }, + { + '1': 'deprecated_legacy_json_field_conflicts', + '3': 6, + '4': 1, + '5': 8, + '8': {'3': true}, + '10': 'deprecatedLegacyJsonFieldConflicts', + }, + { + '1': 'features', + '3': 7, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'features' + }, { '1': 'uninterpreted_option', '3': 999, @@ -777,7 +1198,14 @@ const EnumOptions$json = { /// Descriptor for `EnumOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List enumOptionsDescriptor = $convert.base64Decode( - 'CgtFbnVtT3B0aW9ucxIfCgthbGxvd19hbGlhcxgCIAEoCFIKYWxsb3dBbGlhcxIlCgpkZXByZWNhdGVkGAMgASgIOgVmYWxzZVIKZGVwcmVjYXRlZBJYChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACSgQIBRAG'); + 'CgtFbnVtT3B0aW9ucxIfCgthbGxvd19hbGlhcxgCIAEoCFIKYWxsb3dBbGlhcxIlCgpkZXByZW' + 'NhdGVkGAMgASgIOgVmYWxzZVIKZGVwcmVjYXRlZBJWCiZkZXByZWNhdGVkX2xlZ2FjeV9qc29u' + 'X2ZpZWxkX2NvbmZsaWN0cxgGIAEoCEICGAFSImRlcHJlY2F0ZWRMZWdhY3lKc29uRmllbGRDb2' + '5mbGljdHMSNwoIZmVhdHVyZXMYByABKAsyGy5nb29nbGUucHJvdG9idWYuRmVhdHVyZVNldFII' + 'ZmVhdHVyZXMSWAoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYn' + 'VmLlVuaW50ZXJwcmV0ZWRPcHRpb25SE3VuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAkoE' + 'CAUQBg=='); + @$core.Deprecated('Use enumValueOptionsDescriptor instead') const EnumValueOptions$json = { '1': 'EnumValueOptions', @@ -790,6 +1218,30 @@ const EnumValueOptions$json = { '7': 'false', '10': 'deprecated' }, + { + '1': 'features', + '3': 2, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'features' + }, + { + '1': 'debug_redact', + '3': 3, + '4': 1, + '5': 8, + '7': 'false', + '10': 'debugRedact' + }, + { + '1': 'feature_support', + '3': 4, + '4': 1, + '5': 11, + '6': '.google.protobuf.FieldOptions.FeatureSupport', + '10': 'featureSupport' + }, { '1': 'uninterpreted_option', '3': 999, @@ -806,11 +1258,26 @@ const EnumValueOptions$json = { /// Descriptor for `EnumValueOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List enumValueOptionsDescriptor = $convert.base64Decode( - 'ChBFbnVtVmFsdWVPcHRpb25zEiUKCmRlcHJlY2F0ZWQYASABKAg6BWZhbHNlUgpkZXByZWNhdGVkElgKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uUhN1bmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAI='); + 'ChBFbnVtVmFsdWVPcHRpb25zEiUKCmRlcHJlY2F0ZWQYASABKAg6BWZhbHNlUgpkZXByZWNhdG' + 'VkEjcKCGZlYXR1cmVzGAIgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXRSCGZlYXR1' + 'cmVzEigKDGRlYnVnX3JlZGFjdBgDIAEoCDoFZmFsc2VSC2RlYnVnUmVkYWN0ElUKD2ZlYXR1cm' + 'Vfc3VwcG9ydBgEIAEoCzIsLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMuRmVhdHVyZVN1' + 'cHBvcnRSDmZlYXR1cmVTdXBwb3J0ElgKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLm' + 'dvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uUhN1bmludGVycHJldGVkT3B0aW9u' + 'KgkI6AcQgICAgAI='); + @$core.Deprecated('Use serviceOptionsDescriptor instead') const ServiceOptions$json = { '1': 'ServiceOptions', '2': [ + { + '1': 'features', + '3': 34, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'features' + }, { '1': 'deprecated', '3': 33, @@ -835,7 +1302,11 @@ const ServiceOptions$json = { /// Descriptor for `ServiceOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List serviceOptionsDescriptor = $convert.base64Decode( - 'Cg5TZXJ2aWNlT3B0aW9ucxIlCgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZVIKZGVwcmVjYXRlZBJYChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIAC'); + 'Cg5TZXJ2aWNlT3B0aW9ucxI3CghmZWF0dXJlcxgiIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5GZW' + 'F0dXJlU2V0UghmZWF0dXJlcxIlCgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZVIKZGVwcmVjYXRl' + 'ZBJYChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbn' + 'RlcnByZXRlZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIAC'); + @$core.Deprecated('Use methodOptionsDescriptor instead') const MethodOptions$json = { '1': 'MethodOptions', @@ -857,6 +1328,14 @@ const MethodOptions$json = { '7': 'IDEMPOTENCY_UNKNOWN', '10': 'idempotencyLevel' }, + { + '1': 'features', + '3': 35, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'features' + }, { '1': 'uninterpreted_option', '3': 999, @@ -884,7 +1363,15 @@ const MethodOptions_IdempotencyLevel$json = { /// Descriptor for `MethodOptions`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List methodOptionsDescriptor = $convert.base64Decode( - 'Cg1NZXRob2RPcHRpb25zEiUKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNlUgpkZXByZWNhdGVkEnEKEWlkZW1wb3RlbmN5X2xldmVsGCIgASgOMi8uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMuSWRlbXBvdGVuY3lMZXZlbDoTSURFTVBPVEVOQ1lfVU5LTk9XTlIQaWRlbXBvdGVuY3lMZXZlbBJYChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdGlvbiJQChBJZGVtcG90ZW5jeUxldmVsEhcKE0lERU1QT1RFTkNZX1VOS05PV04QABITCg9OT19TSURFX0VGRkVDVFMQARIOCgpJREVNUE9URU5UEAIqCQjoBxCAgICAAg=='); + 'Cg1NZXRob2RPcHRpb25zEiUKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNlUgpkZXByZWNhdGVkEn' + 'EKEWlkZW1wb3RlbmN5X2xldmVsGCIgASgOMi8uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlv' + 'bnMuSWRlbXBvdGVuY3lMZXZlbDoTSURFTVBPVEVOQ1lfVU5LTk9XTlIQaWRlbXBvdGVuY3lMZX' + 'ZlbBI3CghmZWF0dXJlcxgjIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0UghmZWF0' + 'dXJlcxJYChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW' + '5pbnRlcnByZXRlZE9wdGlvblITdW5pbnRlcnByZXRlZE9wdGlvbiJQChBJZGVtcG90ZW5jeUxl' + 'dmVsEhcKE0lERU1QT1RFTkNZX1VOS05PV04QABITCg9OT19TSURFX0VGRkVDVFMQARIOCgpJRE' + 'VNUE9URU5UEAIqCQjoBxCAgICAAg=='); + @$core.Deprecated('Use uninterpretedOptionDescriptor instead') const UninterpretedOption$json = { '1': 'UninterpretedOption', @@ -930,7 +1417,266 @@ const UninterpretedOption_NamePart$json = { /// Descriptor for `UninterpretedOption`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List uninterpretedOptionDescriptor = $convert.base64Decode( - 'ChNVbmludGVycHJldGVkT3B0aW9uEkEKBG5hbWUYAiADKAsyLS5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbi5OYW1lUGFydFIEbmFtZRIpChBpZGVudGlmaWVyX3ZhbHVlGAMgASgJUg9pZGVudGlmaWVyVmFsdWUSLAoScG9zaXRpdmVfaW50X3ZhbHVlGAQgASgEUhBwb3NpdGl2ZUludFZhbHVlEiwKEm5lZ2F0aXZlX2ludF92YWx1ZRgFIAEoA1IQbmVnYXRpdmVJbnRWYWx1ZRIhCgxkb3VibGVfdmFsdWUYBiABKAFSC2RvdWJsZVZhbHVlEiEKDHN0cmluZ192YWx1ZRgHIAEoDFILc3RyaW5nVmFsdWUSJwoPYWdncmVnYXRlX3ZhbHVlGAggASgJUg5hZ2dyZWdhdGVWYWx1ZRpKCghOYW1lUGFydBIbCgluYW1lX3BhcnQYASACKAlSCG5hbWVQYXJ0EiEKDGlzX2V4dGVuc2lvbhgCIAIoCFILaXNFeHRlbnNpb24='); + 'ChNVbmludGVycHJldGVkT3B0aW9uEkEKBG5hbWUYAiADKAsyLS5nb29nbGUucHJvdG9idWYuVW' + '5pbnRlcnByZXRlZE9wdGlvbi5OYW1lUGFydFIEbmFtZRIpChBpZGVudGlmaWVyX3ZhbHVlGAMg' + 'ASgJUg9pZGVudGlmaWVyVmFsdWUSLAoScG9zaXRpdmVfaW50X3ZhbHVlGAQgASgEUhBwb3NpdG' + 'l2ZUludFZhbHVlEiwKEm5lZ2F0aXZlX2ludF92YWx1ZRgFIAEoA1IQbmVnYXRpdmVJbnRWYWx1' + 'ZRIhCgxkb3VibGVfdmFsdWUYBiABKAFSC2RvdWJsZVZhbHVlEiEKDHN0cmluZ192YWx1ZRgHIA' + 'EoDFILc3RyaW5nVmFsdWUSJwoPYWdncmVnYXRlX3ZhbHVlGAggASgJUg5hZ2dyZWdhdGVWYWx1' + 'ZRpKCghOYW1lUGFydBIbCgluYW1lX3BhcnQYASACKAlSCG5hbWVQYXJ0EiEKDGlzX2V4dGVuc2' + 'lvbhgCIAIoCFILaXNFeHRlbnNpb24='); + +@$core.Deprecated('Use featureSetDescriptor instead') +const FeatureSet$json = { + '1': 'FeatureSet', + '2': [ + { + '1': 'field_presence', + '3': 1, + '4': 1, + '5': 14, + '6': '.google.protobuf.FeatureSet.FieldPresence', + '8': {}, + '10': 'fieldPresence' + }, + { + '1': 'enum_type', + '3': 2, + '4': 1, + '5': 14, + '6': '.google.protobuf.FeatureSet.EnumType', + '8': {}, + '10': 'enumType' + }, + { + '1': 'repeated_field_encoding', + '3': 3, + '4': 1, + '5': 14, + '6': '.google.protobuf.FeatureSet.RepeatedFieldEncoding', + '8': {}, + '10': 'repeatedFieldEncoding' + }, + { + '1': 'utf8_validation', + '3': 4, + '4': 1, + '5': 14, + '6': '.google.protobuf.FeatureSet.Utf8Validation', + '8': {}, + '10': 'utf8Validation' + }, + { + '1': 'message_encoding', + '3': 5, + '4': 1, + '5': 14, + '6': '.google.protobuf.FeatureSet.MessageEncoding', + '8': {}, + '10': 'messageEncoding' + }, + { + '1': 'json_format', + '3': 6, + '4': 1, + '5': 14, + '6': '.google.protobuf.FeatureSet.JsonFormat', + '8': {}, + '10': 'jsonFormat' + }, + ], + '4': [ + FeatureSet_FieldPresence$json, + FeatureSet_EnumType$json, + FeatureSet_RepeatedFieldEncoding$json, + FeatureSet_Utf8Validation$json, + FeatureSet_MessageEncoding$json, + FeatureSet_JsonFormat$json + ], + '5': [ + {'1': 1000, '2': 9995, '3': {}}, + {'1': 9995, '2': 10000}, + {'1': 10000, '2': 10001}, + ], + '9': [ + {'1': 999, '2': 1000}, + ], +}; + +@$core.Deprecated('Use featureSetDescriptor instead') +const FeatureSet_FieldPresence$json = { + '1': 'FieldPresence', + '2': [ + {'1': 'FIELD_PRESENCE_UNKNOWN', '2': 0}, + {'1': 'EXPLICIT', '2': 1}, + {'1': 'IMPLICIT', '2': 2}, + {'1': 'LEGACY_REQUIRED', '2': 3}, + ], +}; + +@$core.Deprecated('Use featureSetDescriptor instead') +const FeatureSet_EnumType$json = { + '1': 'EnumType', + '2': [ + {'1': 'ENUM_TYPE_UNKNOWN', '2': 0}, + {'1': 'OPEN', '2': 1}, + {'1': 'CLOSED', '2': 2}, + ], +}; + +@$core.Deprecated('Use featureSetDescriptor instead') +const FeatureSet_RepeatedFieldEncoding$json = { + '1': 'RepeatedFieldEncoding', + '2': [ + {'1': 'REPEATED_FIELD_ENCODING_UNKNOWN', '2': 0}, + {'1': 'PACKED', '2': 1}, + {'1': 'EXPANDED', '2': 2}, + ], +}; + +@$core.Deprecated('Use featureSetDescriptor instead') +const FeatureSet_Utf8Validation$json = { + '1': 'Utf8Validation', + '2': [ + {'1': 'UTF8_VALIDATION_UNKNOWN', '2': 0}, + {'1': 'VERIFY', '2': 2}, + {'1': 'NONE', '2': 3}, + ], + '4': [ + {'1': 1, '2': 1}, + ], +}; + +@$core.Deprecated('Use featureSetDescriptor instead') +const FeatureSet_MessageEncoding$json = { + '1': 'MessageEncoding', + '2': [ + {'1': 'MESSAGE_ENCODING_UNKNOWN', '2': 0}, + {'1': 'LENGTH_PREFIXED', '2': 1}, + {'1': 'DELIMITED', '2': 2}, + ], +}; + +@$core.Deprecated('Use featureSetDescriptor instead') +const FeatureSet_JsonFormat$json = { + '1': 'JsonFormat', + '2': [ + {'1': 'JSON_FORMAT_UNKNOWN', '2': 0}, + {'1': 'ALLOW', '2': 1}, + {'1': 'LEGACY_BEST_EFFORT', '2': 2}, + ], +}; + +/// Descriptor for `FeatureSet`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List featureSetDescriptor = $convert.base64Decode( + 'CgpGZWF0dXJlU2V0EpEBCg5maWVsZF9wcmVzZW5jZRgBIAEoDjIpLmdvb2dsZS5wcm90b2J1Zi' + '5GZWF0dXJlU2V0LkZpZWxkUHJlc2VuY2VCP4gBAZgBBJgBAbIBAwjoB6IBDRIIRVhQTElDSVQY' + 'hAeiAQ0SCElNUExJQ0lUGOcHogENEghFWFBMSUNJVBjoB1INZmllbGRQcmVzZW5jZRJsCgllbn' + 'VtX3R5cGUYAiABKA4yJC5nb29nbGUucHJvdG9idWYuRmVhdHVyZVNldC5FbnVtVHlwZUIpiAEB' + 'mAEGmAEBsgEDCOgHogELEgZDTE9TRUQYhAeiAQkSBE9QRU4Y5wdSCGVudW1UeXBlEpgBChdyZX' + 'BlYXRlZF9maWVsZF9lbmNvZGluZxgDIAEoDjIxLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0' + 'LlJlcGVhdGVkRmllbGRFbmNvZGluZ0ItiAEBmAEEmAEBsgEDCOgHogENEghFWFBBTkRFRBiEB6' + 'IBCxIGUEFDS0VEGOcHUhVyZXBlYXRlZEZpZWxkRW5jb2RpbmcSfgoPdXRmOF92YWxpZGF0aW9u' + 'GAQgASgOMiouZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXQuVXRmOFZhbGlkYXRpb25CKYgBAZ' + 'gBBJgBAbIBAwjoB6IBCRIETk9ORRiEB6IBCxIGVkVSSUZZGOcHUg51dGY4VmFsaWRhdGlvbhJ+' + 'ChBtZXNzYWdlX2VuY29kaW5nGAUgASgOMisuZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXQuTW' + 'Vzc2FnZUVuY29kaW5nQiaIAQGYAQSYAQGyAQMI6AeiARQSD0xFTkdUSF9QUkVGSVhFRBiEB1IP' + 'bWVzc2FnZUVuY29kaW5nEoIBCgtqc29uX2Zvcm1hdBgGIAEoDjImLmdvb2dsZS5wcm90b2J1Zi' + '5GZWF0dXJlU2V0Lkpzb25Gb3JtYXRCOYgBAZgBA5gBBpgBAbIBAwjoB6IBFxISTEVHQUNZX0JF' + 'U1RfRUZGT1JUGIQHogEKEgVBTExPVxjnB1IKanNvbkZvcm1hdCJcCg1GaWVsZFByZXNlbmNlEh' + 'oKFkZJRUxEX1BSRVNFTkNFX1VOS05PV04QABIMCghFWFBMSUNJVBABEgwKCElNUExJQ0lUEAIS' + 'EwoPTEVHQUNZX1JFUVVJUkVEEAMiNwoIRW51bVR5cGUSFQoRRU5VTV9UWVBFX1VOS05PV04QAB' + 'IICgRPUEVOEAESCgoGQ0xPU0VEEAIiVgoVUmVwZWF0ZWRGaWVsZEVuY29kaW5nEiMKH1JFUEVB' + 'VEVEX0ZJRUxEX0VOQ09ESU5HX1VOS05PV04QABIKCgZQQUNLRUQQARIMCghFWFBBTkRFRBACIk' + 'kKDlV0ZjhWYWxpZGF0aW9uEhsKF1VURjhfVkFMSURBVElPTl9VTktOT1dOEAASCgoGVkVSSUZZ' + 'EAISCAoETk9ORRADIgQIARABIlMKD01lc3NhZ2VFbmNvZGluZxIcChhNRVNTQUdFX0VOQ09ESU' + '5HX1VOS05PV04QABITCg9MRU5HVEhfUFJFRklYRUQQARINCglERUxJTUlURUQQAiJICgpKc29u' + 'Rm9ybWF0EhcKE0pTT05fRk9STUFUX1VOS05PV04QABIJCgVBTExPVxABEhYKEkxFR0FDWV9CRV' + 'NUX0VGRk9SVBACKosBCOgHEItOGoIBEh0I6AcSBy5wYi5jcHAaDy5wYi5DcHBGZWF0dXJlcxIf' + 'COkHEggucGIuamF2YRoQLnBiLkphdmFGZWF0dXJlcxIbCOoHEgYucGIuZ28aDi5wYi5Hb0ZlYX' + 'R1cmVzEiMIhk4SCi5wYi5wcm90bzEaEi5wYi5Qcm90bzFGZWF0dXJlcyoGCItOEJBOKgYIkE4Q' + 'kU5KBgjnBxDoBw=='); + +@$core.Deprecated('Use featureSetDefaultsDescriptor instead') +const FeatureSetDefaults$json = { + '1': 'FeatureSetDefaults', + '2': [ + { + '1': 'defaults', + '3': 1, + '4': 3, + '5': 11, + '6': '.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault', + '10': 'defaults' + }, + { + '1': 'minimum_edition', + '3': 4, + '4': 1, + '5': 14, + '6': '.google.protobuf.Edition', + '10': 'minimumEdition' + }, + { + '1': 'maximum_edition', + '3': 5, + '4': 1, + '5': 14, + '6': '.google.protobuf.Edition', + '10': 'maximumEdition' + }, + ], + '3': [FeatureSetDefaults_FeatureSetEditionDefault$json], +}; + +@$core.Deprecated('Use featureSetDefaultsDescriptor instead') +const FeatureSetDefaults_FeatureSetEditionDefault$json = { + '1': 'FeatureSetEditionDefault', + '2': [ + { + '1': 'edition', + '3': 3, + '4': 1, + '5': 14, + '6': '.google.protobuf.Edition', + '10': 'edition' + }, + { + '1': 'overridable_features', + '3': 4, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'overridableFeatures' + }, + { + '1': 'fixed_features', + '3': 5, + '4': 1, + '5': 11, + '6': '.google.protobuf.FeatureSet', + '10': 'fixedFeatures' + }, + ], + '9': [ + {'1': 1, '2': 2}, + {'1': 2, '2': 3}, + ], + '10': ['features'], +}; + +/// Descriptor for `FeatureSetDefaults`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List featureSetDefaultsDescriptor = $convert.base64Decode( + 'ChJGZWF0dXJlU2V0RGVmYXVsdHMSWAoIZGVmYXVsdHMYASADKAsyPC5nb29nbGUucHJvdG9idW' + 'YuRmVhdHVyZVNldERlZmF1bHRzLkZlYXR1cmVTZXRFZGl0aW9uRGVmYXVsdFIIZGVmYXVsdHMS' + 'QQoPbWluaW11bV9lZGl0aW9uGAQgASgOMhguZ29vZ2xlLnByb3RvYnVmLkVkaXRpb25SDm1pbm' + 'ltdW1FZGl0aW9uEkEKD21heGltdW1fZWRpdGlvbhgFIAEoDjIYLmdvb2dsZS5wcm90b2J1Zi5F' + 'ZGl0aW9uUg5tYXhpbXVtRWRpdGlvbhr4AQoYRmVhdHVyZVNldEVkaXRpb25EZWZhdWx0EjIKB2' + 'VkaXRpb24YAyABKA4yGC5nb29nbGUucHJvdG9idWYuRWRpdGlvblIHZWRpdGlvbhJOChRvdmVy' + 'cmlkYWJsZV9mZWF0dXJlcxgEIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0UhNvdm' + 'VycmlkYWJsZUZlYXR1cmVzEkIKDmZpeGVkX2ZlYXR1cmVzGAUgASgLMhsuZ29vZ2xlLnByb3Rv' + 'YnVmLkZlYXR1cmVTZXRSDWZpeGVkRmVhdHVyZXNKBAgBEAJKBAgCEANSCGZlYXR1cmVz'); + @$core.Deprecated('Use sourceCodeInfoDescriptor instead') const SourceCodeInfo$json = { '1': 'SourceCodeInfo', @@ -987,7 +1733,13 @@ const SourceCodeInfo_Location$json = { /// Descriptor for `SourceCodeInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List sourceCodeInfoDescriptor = $convert.base64Decode( - 'Cg5Tb3VyY2VDb2RlSW5mbxJECghsb2NhdGlvbhgBIAMoCzIoLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5mby5Mb2NhdGlvblIIbG9jYXRpb24azgEKCExvY2F0aW9uEhYKBHBhdGgYASADKAVCAhABUgRwYXRoEhYKBHNwYW4YAiADKAVCAhABUgRzcGFuEikKEGxlYWRpbmdfY29tbWVudHMYAyABKAlSD2xlYWRpbmdDb21tZW50cxIrChF0cmFpbGluZ19jb21tZW50cxgEIAEoCVIQdHJhaWxpbmdDb21tZW50cxI6ChlsZWFkaW5nX2RldGFjaGVkX2NvbW1lbnRzGAYgAygJUhdsZWFkaW5nRGV0YWNoZWRDb21tZW50cw=='); + 'Cg5Tb3VyY2VDb2RlSW5mbxJECghsb2NhdGlvbhgBIAMoCzIoLmdvb2dsZS5wcm90b2J1Zi5Tb3' + 'VyY2VDb2RlSW5mby5Mb2NhdGlvblIIbG9jYXRpb24azgEKCExvY2F0aW9uEhYKBHBhdGgYASAD' + 'KAVCAhABUgRwYXRoEhYKBHNwYW4YAiADKAVCAhABUgRzcGFuEikKEGxlYWRpbmdfY29tbWVudH' + 'MYAyABKAlSD2xlYWRpbmdDb21tZW50cxIrChF0cmFpbGluZ19jb21tZW50cxgEIAEoCVIQdHJh' + 'aWxpbmdDb21tZW50cxI6ChlsZWFkaW5nX2RldGFjaGVkX2NvbW1lbnRzGAYgAygJUhdsZWFkaW' + '5nRGV0YWNoZWRDb21tZW50cw=='); + @$core.Deprecated('Use generatedCodeInfoDescriptor instead') const GeneratedCodeInfo$json = { '1': 'GeneratedCodeInfo', @@ -1019,9 +1771,34 @@ const GeneratedCodeInfo_Annotation$json = { {'1': 'source_file', '3': 2, '4': 1, '5': 9, '10': 'sourceFile'}, {'1': 'begin', '3': 3, '4': 1, '5': 5, '10': 'begin'}, {'1': 'end', '3': 4, '4': 1, '5': 5, '10': 'end'}, + { + '1': 'semantic', + '3': 5, + '4': 1, + '5': 14, + '6': '.google.protobuf.GeneratedCodeInfo.Annotation.Semantic', + '10': 'semantic' + }, + ], + '4': [GeneratedCodeInfo_Annotation_Semantic$json], +}; + +@$core.Deprecated('Use generatedCodeInfoDescriptor instead') +const GeneratedCodeInfo_Annotation_Semantic$json = { + '1': 'Semantic', + '2': [ + {'1': 'NONE', '2': 0}, + {'1': 'SET', '2': 1}, + {'1': 'ALIAS', '2': 2}, ], }; /// Descriptor for `GeneratedCodeInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List generatedCodeInfoDescriptor = $convert.base64Decode( - 'ChFHZW5lcmF0ZWRDb2RlSW5mbxJNCgphbm5vdGF0aW9uGAEgAygLMi0uZ29vZ2xlLnByb3RvYnVmLkdlbmVyYXRlZENvZGVJbmZvLkFubm90YXRpb25SCmFubm90YXRpb24abQoKQW5ub3RhdGlvbhIWCgRwYXRoGAEgAygFQgIQAVIEcGF0aBIfCgtzb3VyY2VfZmlsZRgCIAEoCVIKc291cmNlRmlsZRIUCgViZWdpbhgDIAEoBVIFYmVnaW4SEAoDZW5kGAQgASgFUgNlbmQ='); + 'ChFHZW5lcmF0ZWRDb2RlSW5mbxJNCgphbm5vdGF0aW9uGAEgAygLMi0uZ29vZ2xlLnByb3RvYn' + 'VmLkdlbmVyYXRlZENvZGVJbmZvLkFubm90YXRpb25SCmFubm90YXRpb24a6wEKCkFubm90YXRp' + 'b24SFgoEcGF0aBgBIAMoBUICEAFSBHBhdGgSHwoLc291cmNlX2ZpbGUYAiABKAlSCnNvdXJjZU' + 'ZpbGUSFAoFYmVnaW4YAyABKAVSBWJlZ2luEhAKA2VuZBgEIAEoBVIDZW5kElIKCHNlbWFudGlj' + 'GAUgASgOMjYuZ29vZ2xlLnByb3RvYnVmLkdlbmVyYXRlZENvZGVJbmZvLkFubm90YXRpb24uU2' + 'VtYW50aWNSCHNlbWFudGljIigKCFNlbWFudGljEggKBE5PTkUQABIHCgNTRVQQARIJCgVBTElB' + 'UxAC'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pb.dart index d097fcd0..4bcbcd32 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pb.dart @@ -1,62 +1,111 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/duration.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; - import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin; +/// A Duration represents a signed, fixed-length span of time represented +/// as a count of seconds and fractions of seconds at nanosecond +/// resolution. It is independent of any calendar and concepts like "day" +/// or "month". It is related to Timestamp in that the difference between +/// two Timestamp values is a Duration and it can be added or subtracted +/// from a Timestamp. Range is approximately +-10,000 years. +/// +/// # Examples +/// +/// Example 1: Compute Duration from two Timestamps in pseudo code. +/// +/// Timestamp start = ...; +/// Timestamp end = ...; +/// Duration duration = ...; +/// +/// duration.seconds = end.seconds - start.seconds; +/// duration.nanos = end.nanos - start.nanos; +/// +/// if (duration.seconds < 0 && duration.nanos > 0) { +/// duration.seconds += 1; +/// duration.nanos -= 1000000000; +/// } else if (duration.seconds > 0 && duration.nanos < 0) { +/// duration.seconds -= 1; +/// duration.nanos += 1000000000; +/// } +/// +/// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. +/// +/// Timestamp start = ...; +/// Duration duration = ...; +/// Timestamp end = ...; +/// +/// end.seconds = start.seconds + duration.seconds; +/// end.nanos = start.nanos + duration.nanos; +/// +/// if (end.nanos < 0) { +/// end.seconds -= 1; +/// end.nanos += 1000000000; +/// } else if (end.nanos >= 1000000000) { +/// end.seconds += 1; +/// end.nanos -= 1000000000; +/// } +/// +/// Example 3: Compute Duration from datetime.timedelta in Python. +/// +/// td = datetime.timedelta(days=3, minutes=10) +/// duration = Duration() +/// duration.FromTimedelta(td) +/// +/// # JSON Mapping +/// +/// In JSON format, the Duration type is encoded as a string rather than an +/// object, where the string ends in the suffix "s" (indicating seconds) and +/// is preceded by the number of seconds, with nanoseconds expressed as +/// fractional seconds. For example, 3 seconds with 0 nanoseconds should be +/// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +/// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +/// microsecond should be expressed in JSON format as "3.000001s". class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Duration', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.DurationMixin.toProto3JsonHelper, - fromProto3Json: $mixin.DurationMixin.fromProto3JsonHelper) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'seconds') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nanos', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - Duration._() : super(); factory Duration({ $fixnum.Int64? seconds, $core.int? nanos, }) { - final _result = create(); + final $result = create(); if (seconds != null) { - _result.seconds = seconds; + $result.seconds = seconds; } if (nanos != null) { - _result.nanos = nanos; + $result.nanos = nanos; } - return _result; + return $result; } + Duration._() : super(); factory Duration.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Duration.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Duration', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.DurationMixin.toProto3JsonHelper, + fromProto3Json: $mixin.DurationMixin.fromProto3JsonHelper) + ..aInt64(1, _omitFieldNames ? '' : 'seconds') + ..a<$core.int>(2, _omitFieldNames ? '' : 'nanos', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -65,9 +114,10 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Duration copyWith(void Function(Duration) updates) => - super.copyWith((message) => updates(message as Duration)) - as Duration; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Duration)) as Duration; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Duration create() => Duration._(); Duration createEmptyInstance() => create(); @@ -77,6 +127,9 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Duration? _defaultInstance; + /// Signed seconds of the span of time. Must be from -315,576,000,000 + /// to +315,576,000,000 inclusive. Note: these bounds are computed from: + /// 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years @$pb.TagNumber(1) $fixnum.Int64 get seconds => $_getI64(0); @$pb.TagNumber(1) @@ -89,6 +142,12 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { @$pb.TagNumber(1) void clearSeconds() => clearField(1); + /// Signed fractions of a second at nanosecond resolution of the span + /// of time. Durations less than one second are represented with a 0 + /// `seconds` field and a positive or negative `nanos` field. For durations + /// of one second or more, a non-zero value for the `nanos` field must be + /// of the same sign as the `seconds` field. Must be from -999,999,999 + /// to +999,999,999 inclusive. @$pb.TagNumber(2) $core.int get nanos => $_getIZ(1); @$pb.TagNumber(2) @@ -101,3 +160,7 @@ class Duration extends $pb.GeneratedMessage with $mixin.DurationMixin { @$pb.TagNumber(2) void clearNanos() => clearField(2); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pbenum.dart index af4119e7..1a2c58d8 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/duration.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pbjson.dart index ac5eaa95..5847acb2 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/duration.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/duration.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 durationDescriptor instead') @@ -20,4 +24,5 @@ const Duration$json = { /// Descriptor for `Duration`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List durationDescriptor = $convert.base64Decode( - 'CghEdXJhdGlvbhIYCgdzZWNvbmRzGAEgASgDUgdzZWNvbmRzEhQKBW5hbm9zGAIgASgFUgVuYW5vcw=='); + 'CghEdXJhdGlvbhIYCgdzZWNvbmRzGAEgASgDUgdzZWNvbmRzEhQKBW5hbm9zGAIgASgFUgVuYW' + '5vcw=='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pb.dart index 74d75138..5c5ce508 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pb.dart @@ -1,34 +1,42 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/empty.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// A generic empty message that you can re-use to avoid defining duplicated +/// empty messages in your APIs. A typical example is to use it as the request +/// or the response type of an API method. For instance: +/// +/// service Foo { +/// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); +/// } class Empty extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Empty', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; - - Empty._() : super(); 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') @@ -37,9 +45,10 @@ class Empty extends $pb.GeneratedMessage { '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; // ignore: deprecated_member_use + 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(); @@ -49,3 +58,6 @@ class Empty extends $pb.GeneratedMessage { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Empty? _defaultInstance; } + +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pbenum.dart index 73caaaf4..2f2a7613 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/empty.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pbjson.dart index b0d1e27e..35f6e2ec 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/empty.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/empty.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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') diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pb.dart index 9444f59d..90164081 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pb.dart @@ -1,51 +1,246 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/field_mask.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// `FieldMask` represents a set of symbolic field paths, for example: +/// +/// paths: "f.a" +/// paths: "f.b.d" +/// +/// Here `f` represents a field in some root message, `a` and `b` +/// fields in the message found in `f`, and `d` a field found in the +/// message in `f.b`. +/// +/// Field masks are used to specify a subset of fields that should be +/// returned by a get operation or modified by an update operation. +/// Field masks also have a custom JSON encoding (see below). +/// +/// # Field Masks in Projections +/// +/// When used in the context of a projection, a response message or +/// sub-message is filtered by the API to only contain those fields as +/// specified in the mask. For example, if the mask in the previous +/// example is applied to a response message as follows: +/// +/// f { +/// a : 22 +/// b { +/// d : 1 +/// x : 2 +/// } +/// y : 13 +/// } +/// z: 8 +/// +/// The result will not contain specific values for fields x,y and z +/// (their value will be set to the default, and omitted in proto text +/// output): +/// +/// +/// f { +/// a : 22 +/// b { +/// d : 1 +/// } +/// } +/// +/// A repeated field is not allowed except at the last position of a +/// paths string. +/// +/// If a FieldMask object is not present in a get operation, the +/// operation applies to all fields (as if a FieldMask of all fields +/// had been specified). +/// +/// Note that a field mask does not necessarily apply to the +/// top-level response message. In case of a REST get operation, the +/// field mask applies directly to the response, but in case of a REST +/// list operation, the mask instead applies to each individual message +/// in the returned resource list. In case of a REST custom method, +/// other definitions may be used. Where the mask applies will be +/// clearly documented together with its declaration in the API. In +/// any case, the effect on the returned resource/resources is required +/// behavior for APIs. +/// +/// # Field Masks in Update Operations +/// +/// A field mask in update operations specifies which fields of the +/// targeted resource are going to be updated. The API is required +/// to only change the values of the fields as specified in the mask +/// and leave the others untouched. If a resource is passed in to +/// describe the updated values, the API ignores the values of all +/// fields not covered by the mask. +/// +/// If a repeated field is specified for an update operation, new values will +/// be appended to the existing repeated field in the target resource. Note that +/// a repeated field is only allowed in the last position of a `paths` string. +/// +/// If a sub-message is specified in the last position of the field mask for an +/// update operation, then new value will be merged into the existing sub-message +/// in the target resource. +/// +/// For example, given the target message: +/// +/// f { +/// b { +/// d: 1 +/// x: 2 +/// } +/// c: [1] +/// } +/// +/// And an update message: +/// +/// f { +/// b { +/// d: 10 +/// } +/// c: [2] +/// } +/// +/// then if the field mask is: +/// +/// paths: ["f.b", "f.c"] +/// +/// then the result will be: +/// +/// f { +/// b { +/// d: 10 +/// x: 2 +/// } +/// c: [1, 2] +/// } +/// +/// An implementation may provide options to override this default behavior for +/// repeated and message fields. +/// +/// In order to reset a field's value to the default, the field must +/// be in the mask and set to the default value in the provided resource. +/// Hence, in order to reset all fields of a resource, provide a default +/// instance of the resource and set all fields in the mask, or do +/// not provide a mask as described below. +/// +/// If a field mask is not present on update, the operation applies to +/// all fields (as if a field mask of all fields has been specified). +/// Note that in the presence of schema evolution, this may mean that +/// fields the client does not know and has therefore not filled into +/// the request will be reset to their default. If this is unwanted +/// behavior, a specific service may require a client to always specify +/// a field mask, producing an error if not. +/// +/// As with get operations, the location of the resource which +/// describes the updated values in the request message depends on the +/// operation kind. In any case, the effect of the field mask is +/// required to be honored by the API. +/// +/// ## Considerations for HTTP REST +/// +/// The HTTP kind of an update operation which uses a field mask must +/// be set to PATCH instead of PUT in order to satisfy HTTP semantics +/// (PUT must only be used for full updates). +/// +/// # JSON Encoding of Field Masks +/// +/// In JSON, a field mask is encoded as a single string where paths are +/// separated by a comma. Fields name in each path are converted +/// to/from lower-camel naming conventions. +/// +/// As an example, consider the following message declarations: +/// +/// message Profile { +/// User user = 1; +/// Photo photo = 2; +/// } +/// message User { +/// string display_name = 1; +/// string address = 2; +/// } +/// +/// In proto a field mask for `Profile` may look as such: +/// +/// mask { +/// paths: "user.display_name" +/// paths: "photo" +/// } +/// +/// In JSON, the same mask is represented as below: +/// +/// { +/// mask: "user.displayName,photo" +/// } +/// +/// # Field Masks and Oneof Fields +/// +/// Field masks treat fields in oneofs just as regular fields. Consider the +/// following message: +/// +/// message SampleMessage { +/// oneof test_oneof { +/// string name = 4; +/// SubMessage sub_message = 9; +/// } +/// } +/// +/// The field mask can be: +/// +/// mask { +/// paths: "name" +/// } +/// +/// Or: +/// +/// mask { +/// paths: "sub_message" +/// } +/// +/// Note that oneof type names ("test_oneof" in this case) cannot be used in +/// paths. +/// +/// ## Field Mask Verification +/// +/// The implementation of any API method which has a FieldMask type field in the +/// request should verify the included field paths, and return an +/// `INVALID_ARGUMENT` error if any path is unmappable. class FieldMask extends $pb.GeneratedMessage with $mixin.FieldMaskMixin { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'FieldMask', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.FieldMaskMixin.toProto3JsonHelper, - fromProto3Json: $mixin.FieldMaskMixin.fromProto3JsonHelper) - ..pPS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'paths') - ..hasRequiredFields = false; - - FieldMask._() : super(); factory FieldMask({ $core.Iterable<$core.String>? paths, }) { - final _result = create(); + final $result = create(); if (paths != null) { - _result.paths.addAll(paths); + $result.paths.addAll(paths); } - return _result; + return $result; } + 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') @@ -54,9 +249,10 @@ class FieldMask extends $pb.GeneratedMessage with $mixin.FieldMaskMixin { '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; // ignore: deprecated_member_use + 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(); @@ -66,6 +262,11 @@ class FieldMask extends $pb.GeneratedMessage with $mixin.FieldMaskMixin { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static FieldMask? _defaultInstance; + /// The set of field mask paths. @$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/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pbenum.dart index a7f68935..33abcb7b 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/field_mask.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pbjson.dart index 1207a76b..151537f9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/field_mask.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/field_mask.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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') diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pb.dart index 5070a130..38944ee1 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pb.dart @@ -1,47 +1,46 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/source_context.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// `SourceContext` represents information about the source of a +/// protobuf element, like the file in which it is defined. class SourceContext extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SourceContext', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fileName') - ..hasRequiredFields = false; - - SourceContext._() : super(); factory SourceContext({ $core.String? fileName, }) { - final _result = create(); + final $result = create(); if (fileName != null) { - _result.fileName = fileName; + $result.fileName = fileName; } - return _result; + return $result; } + SourceContext._() : super(); factory SourceContext.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SourceContext.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'SourceContext', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'fileName') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -51,8 +50,10 @@ class SourceContext extends $pb.GeneratedMessage { 'Will be removed in next major version') SourceContext copyWith(void Function(SourceContext) updates) => super.copyWith((message) => updates(message as SourceContext)) - as SourceContext; // ignore: deprecated_member_use + as SourceContext; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static SourceContext create() => SourceContext._(); SourceContext createEmptyInstance() => create(); @@ -63,6 +64,8 @@ class SourceContext extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static SourceContext? _defaultInstance; + /// The path-qualified name of the .proto file that contained the associated + /// protobuf element. For example: `"google/protobuf/source_context.proto"`. @$pb.TagNumber(1) $core.String get fileName => $_getSZ(0); @$pb.TagNumber(1) @@ -75,3 +78,7 @@ class SourceContext extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearFileName() => clearField(1); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pbenum.dart index f312d3e1..be0de39e 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/source_context.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pbjson.dart index a523b917..2f562501 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/source_context.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/source_context.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 sourceContextDescriptor instead') diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pb.dart index d5ace651..42d55e42 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pb.dart @@ -1,60 +1,65 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/struct.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; import 'struct.pbenum.dart'; export 'struct.pbenum.dart'; +/// `Struct` represents a structured data value, consisting of fields +/// which map to dynamically typed values. In some languages, `Struct` +/// might be supported by a native representation. For example, in +/// scripting languages like JS a struct is represented as an +/// object. The details of that representation are described together +/// with the proto support for the language. +/// +/// The JSON representation for `Struct` is JSON object. class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Struct', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.StructMixin.toProto3JsonHelper, - fromProto3Json: $mixin.StructMixin.fromProto3JsonHelper) - ..m<$core.String, Value>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fields', - entryClassName: 'Struct.FieldsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OM, - valueCreator: Value.create, - packageName: const $pb.PackageName('google.protobuf')) - ..hasRequiredFields = false; - - Struct._() : super(); factory Struct({ $core.Map<$core.String, Value>? fields, }) { - final _result = create(); + final $result = create(); if (fields != null) { - _result.fields.addAll(fields); + $result.fields.addAll(fields); } - return _result; + return $result; } + Struct._() : super(); factory Struct.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Struct.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Struct', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.StructMixin.toProto3JsonHelper, + fromProto3Json: $mixin.StructMixin.fromProto3JsonHelper) + ..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', + entryClassName: 'Struct.FieldsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: Value.create, + valueDefaultOrMaker: Value.getDefault, + packageName: const $pb.PackageName('google.protobuf')) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -63,9 +68,10 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Struct copyWith(void Function(Struct) updates) => - super.copyWith((message) => updates(message as Struct)) - as Struct; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Struct)) as Struct; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Struct create() => Struct._(); Struct createEmptyInstance() => create(); @@ -75,6 +81,7 @@ class Struct extends $pb.GeneratedMessage with $mixin.StructMixin { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Struct? _defaultInstance; + /// Unordered map of dynamically typed values. @$pb.TagNumber(1) $core.Map<$core.String, Value> get fields => $_getMap(0); } @@ -89,48 +96,13 @@ enum Value_Kind { notSet } +/// `Value` represents a dynamically typed value which can be either +/// null, a number, a string, a boolean, a recursive struct value, or a +/// list of values. A producer of value is expected to set one of these +/// variants. Absence of any variant indicates an error. +/// +/// The JSON representation for `Value` is JSON value. class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { - static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { - 1: Value_Kind.nullValue, - 2: Value_Kind.numberValue, - 3: Value_Kind.stringValue, - 4: Value_Kind.boolValue, - 5: Value_Kind.structValue, - 6: Value_Kind.listValue, - 0: Value_Kind.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Value', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.ValueMixin.toProto3JsonHelper, - fromProto3Json: $mixin.ValueMixin.fromProto3JsonHelper) - ..oo(0, [1, 2, 3, 4, 5, 6]) - ..e( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nullValue', - $pb.PbFieldType.OE, - defaultOrMaker: NullValue.NULL_VALUE, - valueOf: NullValue.valueOf, - enumValues: NullValue.values) - ..a<$core.double>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'numberValue', - $pb.PbFieldType.OD) - ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'stringValue') - ..aOB(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'boolValue') - ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'structValue', subBuilder: Struct.create) - ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'listValue', subBuilder: ListValue.create) - ..hasRequiredFields = false; - - Value._() : super(); factory Value({ NullValue? nullValue, $core.double? numberValue, @@ -139,33 +111,66 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { Struct? structValue, ListValue? listValue, }) { - final _result = create(); + final $result = create(); if (nullValue != null) { - _result.nullValue = nullValue; + $result.nullValue = nullValue; } if (numberValue != null) { - _result.numberValue = numberValue; + $result.numberValue = numberValue; } if (stringValue != null) { - _result.stringValue = stringValue; + $result.stringValue = stringValue; } if (boolValue != null) { - _result.boolValue = boolValue; + $result.boolValue = boolValue; } if (structValue != null) { - _result.structValue = structValue; + $result.structValue = structValue; } if (listValue != null) { - _result.listValue = listValue; + $result.listValue = listValue; } - return _result; + return $result; } + Value._() : super(); factory Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = { + 1: Value_Kind.nullValue, + 2: Value_Kind.numberValue, + 3: Value_Kind.stringValue, + 4: Value_Kind.boolValue, + 5: Value_Kind.structValue, + 6: Value_Kind.listValue, + 0: Value_Kind.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Value', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.ValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.ValueMixin.fromProto3JsonHelper) + ..oo(0, [1, 2, 3, 4, 5, 6]) + ..e(1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, + defaultOrMaker: NullValue.NULL_VALUE, + valueOf: NullValue.valueOf, + enumValues: NullValue.values) + ..a<$core.double>( + 2, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) + ..aOS(3, _omitFieldNames ? '' : 'stringValue') + ..aOB(4, _omitFieldNames ? '' : 'boolValue') + ..aOM(5, _omitFieldNames ? '' : 'structValue', + subBuilder: Struct.create) + ..aOM(6, _omitFieldNames ? '' : 'listValue', + subBuilder: ListValue.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') @@ -174,9 +179,10 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Value copyWith(void Function(Value) updates) => - super.copyWith((message) => updates(message as Value)) - as Value; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Value)) as Value; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Value create() => Value._(); Value createEmptyInstance() => create(); @@ -189,6 +195,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { Value_Kind whichKind() => _Value_KindByTag[$_whichOneof(0)]!; void clearKind() => clearField($_whichOneof(0)); + /// Represents a null value. @$pb.TagNumber(1) NullValue get nullValue => $_getN(0); @$pb.TagNumber(1) @@ -201,6 +208,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(1) void clearNullValue() => clearField(1); + /// Represents a double value. @$pb.TagNumber(2) $core.double get numberValue => $_getN(1); @$pb.TagNumber(2) @@ -213,6 +221,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(2) void clearNumberValue() => clearField(2); + /// Represents a string value. @$pb.TagNumber(3) $core.String get stringValue => $_getSZ(2); @$pb.TagNumber(3) @@ -225,6 +234,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(3) void clearStringValue() => clearField(3); + /// Represents a boolean value. @$pb.TagNumber(4) $core.bool get boolValue => $_getBF(3); @$pb.TagNumber(4) @@ -237,6 +247,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(4) void clearBoolValue() => clearField(4); + /// Represents a structured value. @$pb.TagNumber(5) Struct get structValue => $_getN(4); @$pb.TagNumber(5) @@ -251,6 +262,7 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { @$pb.TagNumber(5) Struct ensureStructValue() => $_ensure(4); + /// Represents a repeated `Value`. @$pb.TagNumber(6) ListValue get listValue => $_getN(5); @$pb.TagNumber(6) @@ -266,43 +278,38 @@ class Value extends $pb.GeneratedMessage with $mixin.ValueMixin { ListValue ensureListValue() => $_ensure(5); } +/// `ListValue` is a wrapper around a repeated field of values. +/// +/// The JSON representation for `ListValue` is JSON array. class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ListValue', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.ListValueMixin.toProto3JsonHelper, - fromProto3Json: $mixin.ListValueMixin.fromProto3JsonHelper) - ..pc( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'values', - $pb.PbFieldType.PM, - subBuilder: Value.create) - ..hasRequiredFields = false; - - ListValue._() : super(); factory ListValue({ $core.Iterable? values, }) { - final _result = create(); + final $result = create(); if (values != null) { - _result.values.addAll(values); + $result.values.addAll(values); } - return _result; + return $result; } + ListValue._() : super(); factory ListValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ListValue', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.ListValueMixin.toProto3JsonHelper, + fromProto3Json: $mixin.ListValueMixin.fromProto3JsonHelper) + ..pc(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, + subBuilder: Value.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') @@ -311,9 +318,10 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ListValue copyWith(void Function(ListValue) updates) => - super.copyWith((message) => updates(message as ListValue)) - as ListValue; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as ListValue)) as ListValue; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ListValue create() => ListValue._(); ListValue createEmptyInstance() => create(); @@ -323,6 +331,11 @@ class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListValue? _defaultInstance; + /// Repeated field of dynamically typed values. @$pb.TagNumber(1) $core.List get values => $_getList(0); } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pbenum.dart index 8c6a9c9e..7f9bf0cb 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pbenum.dart @@ -1,20 +1,25 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/struct.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; +/// `NullValue` is a singleton enumeration to represent the null value for the +/// `Value` type union. +/// +/// The JSON representation for `NullValue` is JSON `null`. class NullValue extends $pb.ProtobufEnum { - static const NullValue NULL_VALUE = NullValue._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'NULL_VALUE'); + static const NullValue NULL_VALUE = + NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE'); static const $core.List values = [ NULL_VALUE, @@ -26,3 +31,5 @@ class NullValue extends $pb.ProtobufEnum { const NullValue._($core.int v, $core.String n) : super(v, n); } + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pbjson.dart index 00a33650..c0693f57 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/struct.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/struct.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 nullValueDescriptor instead') @@ -20,6 +24,7 @@ const NullValue$json = { /// Descriptor for `NullValue`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List nullValueDescriptor = $convert.base64Decode('CglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAA'); + @$core.Deprecated('Use structDescriptor instead') const Struct$json = { '1': 'Struct', @@ -55,7 +60,10 @@ const Struct_FieldsEntry$json = { /// Descriptor for `Struct`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List structDescriptor = $convert.base64Decode( - 'CgZTdHJ1Y3QSOwoGZmllbGRzGAEgAygLMiMuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdC5GaWVsZHNFbnRyeVIGZmllbGRzGlEKC0ZpZWxkc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EiwKBXZhbHVlGAIgASgLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgV2YWx1ZToCOAE='); + 'CgZTdHJ1Y3QSOwoGZmllbGRzGAEgAygLMiMuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdC5GaWVsZH' + 'NFbnRyeVIGZmllbGRzGlEKC0ZpZWxkc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EiwKBXZhbHVl' + 'GAIgASgLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgV2YWx1ZToCOAE='); + @$core.Deprecated('Use valueDescriptor instead') const Value$json = { '1': 'Value', @@ -98,7 +106,13 @@ const Value$json = { /// Descriptor for `Value`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List valueDescriptor = $convert.base64Decode( - 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZUgAUgludWxsVmFsdWUSIwoMbnVtYmVyX3ZhbHVlGAIgASgBSABSC251bWJlclZhbHVlEiMKDHN0cmluZ192YWx1ZRgDIAEoCUgAUgtzdHJpbmdWYWx1ZRIfCgpib29sX3ZhbHVlGAQgASgISABSCWJvb2xWYWx1ZRI8CgxzdHJ1Y3RfdmFsdWUYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0SABSC3N0cnVjdFZhbHVlEjsKCmxpc3RfdmFsdWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuTGlzdFZhbHVlSABSCWxpc3RWYWx1ZUIGCgRraW5k'); + 'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZU' + 'gAUgludWxsVmFsdWUSIwoMbnVtYmVyX3ZhbHVlGAIgASgBSABSC251bWJlclZhbHVlEiMKDHN0' + 'cmluZ192YWx1ZRgDIAEoCUgAUgtzdHJpbmdWYWx1ZRIfCgpib29sX3ZhbHVlGAQgASgISABSCW' + 'Jvb2xWYWx1ZRI8CgxzdHJ1Y3RfdmFsdWUYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0' + 'SABSC3N0cnVjdFZhbHVlEjsKCmxpc3RfdmFsdWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuTG' + 'lzdFZhbHVlSABSCWxpc3RWYWx1ZUIGCgRraW5k'); + @$core.Deprecated('Use listValueDescriptor instead') const ListValue$json = { '1': 'ListValue', @@ -116,4 +130,5 @@ const ListValue$json = { /// Descriptor for `ListValue`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List listValueDescriptor = $convert.base64Decode( - 'CglMaXN0VmFsdWUSLgoGdmFsdWVzGAEgAygLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgZ2YWx1ZXM='); + 'CglMaXN0VmFsdWUSLgoGdmFsdWVzGAEgAygLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgZ2YW' + 'x1ZXM='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pb.dart index c51dce2e..67efc083 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pb.dart @@ -1,9 +1,13 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/test_messages_proto2.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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; @@ -15,48 +19,36 @@ import 'test_messages_proto2.pbenum.dart'; export 'test_messages_proto2.pbenum.dart'; class TestAllTypesProto2_NestedMessage extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TestAllTypesProto2.NestedMessage', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'a', - $pb.PbFieldType.O3) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'corecursive', - subBuilder: TestAllTypesProto2.create); - - TestAllTypesProto2_NestedMessage._() : super(); factory TestAllTypesProto2_NestedMessage({ $core.int? a, TestAllTypesProto2? corecursive, }) { - final _result = create(); + final $result = create(); if (a != null) { - _result.a = a; + $result.a = a; } if (corecursive != null) { - _result.corecursive = corecursive; + $result.corecursive = corecursive; } - return _result; + return $result; } + TestAllTypesProto2_NestedMessage._() : super(); factory TestAllTypesProto2_NestedMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TestAllTypesProto2_NestedMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllTypesProto2.NestedMessage', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'a', $pb.PbFieldType.O3) + ..aOM(2, _omitFieldNames ? '' : 'corecursive', + subBuilder: TestAllTypesProto2.create); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -69,8 +61,10 @@ class TestAllTypesProto2_NestedMessage extends $pb.GeneratedMessage { void Function(TestAllTypesProto2_NestedMessage) updates) => super.copyWith( (message) => updates(message as TestAllTypesProto2_NestedMessage)) - as TestAllTypesProto2_NestedMessage; // ignore: deprecated_member_use + as TestAllTypesProto2_NestedMessage; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TestAllTypesProto2_NestedMessage create() => TestAllTypesProto2_NestedMessage._(); @@ -110,50 +104,39 @@ class TestAllTypesProto2_NestedMessage extends $pb.GeneratedMessage { TestAllTypesProto2 ensureCorecursive() => $_ensure(1); } +/// groups class TestAllTypesProto2_Data extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TestAllTypesProto2.Data', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2'), - createEmptyInstance: create) - ..a<$core.int>( - 202, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'groupInt32', - $pb.PbFieldType.O3) - ..a<$core.int>( - 203, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'groupUint32', - $pb.PbFieldType.OU3) - ..hasRequiredFields = false; - - TestAllTypesProto2_Data._() : super(); factory TestAllTypesProto2_Data({ $core.int? groupInt32, $core.int? groupUint32, }) { - final _result = create(); + final $result = create(); if (groupInt32 != null) { - _result.groupInt32 = groupInt32; + $result.groupInt32 = groupInt32; } if (groupUint32 != null) { - _result.groupUint32 = groupUint32; + $result.groupUint32 = groupUint32; } - return _result; + return $result; } + TestAllTypesProto2_Data._() : super(); factory TestAllTypesProto2_Data.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TestAllTypesProto2_Data.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllTypesProto2.Data', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>(202, _omitFieldNames ? '' : 'groupInt32', $pb.PbFieldType.O3) + ..a<$core.int>( + 203, _omitFieldNames ? '' : 'groupUint32', $pb.PbFieldType.OU3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -165,8 +148,10 @@ class TestAllTypesProto2_Data extends $pb.GeneratedMessage { TestAllTypesProto2_Data copyWith( void Function(TestAllTypesProto2_Data) updates) => super.copyWith((message) => updates(message as TestAllTypesProto2_Data)) - as TestAllTypesProto2_Data; // ignore: deprecated_member_use + as TestAllTypesProto2_Data; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TestAllTypesProto2_Data create() => TestAllTypesProto2_Data._(); TestAllTypesProto2_Data createEmptyInstance() => create(); @@ -202,20 +187,96 @@ class TestAllTypesProto2_Data extends $pb.GeneratedMessage { void clearGroupUint32() => clearField(203); } -class TestAllTypesProto2_MessageSetCorrect extends $pb.GeneratedMessage { +class TestAllTypesProto2_MultiWordGroupField extends $pb.GeneratedMessage { + factory TestAllTypesProto2_MultiWordGroupField({ + $core.int? groupInt32, + $core.int? groupUint32, + }) { + final $result = create(); + if (groupInt32 != null) { + $result.groupInt32 = groupInt32; + } + if (groupUint32 != null) { + $result.groupUint32 = groupUint32; + } + return $result; + } + TestAllTypesProto2_MultiWordGroupField._() : super(); + factory TestAllTypesProto2_MultiWordGroupField.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TestAllTypesProto2_MultiWordGroupField.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TestAllTypesProto2.MessageSetCorrect', + _omitMessageNames ? '' : 'TestAllTypesProto2.MultiWordGroupField', package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2'), + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), createEmptyInstance: create) - ..hasExtensions = true; + ..a<$core.int>(205, _omitFieldNames ? '' : 'groupInt32', $pb.PbFieldType.O3) + ..a<$core.int>( + 206, _omitFieldNames ? '' : 'groupUint32', $pb.PbFieldType.OU3) + ..hasRequiredFields = false; - TestAllTypesProto2_MessageSetCorrect._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TestAllTypesProto2_MultiWordGroupField clone() => + TestAllTypesProto2_MultiWordGroupField()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TestAllTypesProto2_MultiWordGroupField copyWith( + void Function(TestAllTypesProto2_MultiWordGroupField) updates) => + super.copyWith((message) => + updates(message as TestAllTypesProto2_MultiWordGroupField)) + as TestAllTypesProto2_MultiWordGroupField; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static TestAllTypesProto2_MultiWordGroupField create() => + TestAllTypesProto2_MultiWordGroupField._(); + TestAllTypesProto2_MultiWordGroupField createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static TestAllTypesProto2_MultiWordGroupField getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + TestAllTypesProto2_MultiWordGroupField>(create); + static TestAllTypesProto2_MultiWordGroupField? _defaultInstance; + + @$pb.TagNumber(205) + $core.int get groupInt32 => $_getIZ(0); + @$pb.TagNumber(205) + set groupInt32($core.int v) { + $_setSignedInt32(0, v); + } + + @$pb.TagNumber(205) + $core.bool hasGroupInt32() => $_has(0); + @$pb.TagNumber(205) + void clearGroupInt32() => clearField(205); + + @$pb.TagNumber(206) + $core.int get groupUint32 => $_getIZ(1); + @$pb.TagNumber(206) + set groupUint32($core.int v) { + $_setUnsignedInt32(1, v); + } + + @$pb.TagNumber(206) + $core.bool hasGroupUint32() => $_has(1); + @$pb.TagNumber(206) + void clearGroupUint32() => clearField(206); +} + +/// message_set test case. +class TestAllTypesProto2_MessageSetCorrect extends $pb.$_MessageSet { factory TestAllTypesProto2_MessageSetCorrect() => create(); + TestAllTypesProto2_MessageSetCorrect._() : super(); factory TestAllTypesProto2_MessageSetCorrect.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -223,6 +284,14 @@ class TestAllTypesProto2_MessageSetCorrect extends $pb.GeneratedMessage { factory TestAllTypesProto2_MessageSetCorrect.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllTypesProto2.MessageSetCorrect', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..hasExtensions = true; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -235,8 +304,10 @@ class TestAllTypesProto2_MessageSetCorrect extends $pb.GeneratedMessage { void Function(TestAllTypesProto2_MessageSetCorrect) updates) => super.copyWith((message) => updates(message as TestAllTypesProto2_MessageSetCorrect)) - as TestAllTypesProto2_MessageSetCorrect; // ignore: deprecated_member_use + as TestAllTypesProto2_MessageSetCorrect; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TestAllTypesProto2_MessageSetCorrect create() => TestAllTypesProto2_MessageSetCorrect._(); @@ -252,44 +323,16 @@ class TestAllTypesProto2_MessageSetCorrect extends $pb.GeneratedMessage { class TestAllTypesProto2_MessageSetCorrectExtension1 extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TestAllTypesProto2.MessageSetCorrectExtension1', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2'), - createEmptyInstance: create) - ..aOS( - 25, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'str') - ..hasRequiredFields = false; - static final messageSetExtension = $pb.Extension< - TestAllTypesProto2_MessageSetCorrectExtension1>( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrect', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'messageSetExtension', - 1547769, - $pb.PbFieldType.OM, - defaultOrMaker: TestAllTypesProto2_MessageSetCorrectExtension1.getDefault, - subBuilder: TestAllTypesProto2_MessageSetCorrectExtension1.create); - - TestAllTypesProto2_MessageSetCorrectExtension1._() : super(); factory TestAllTypesProto2_MessageSetCorrectExtension1({ $core.String? str, }) { - final _result = create(); + final $result = create(); if (str != null) { - _result.str = str; + $result.str = str; } - return _result; + return $result; } + TestAllTypesProto2_MessageSetCorrectExtension1._() : super(); factory TestAllTypesProto2_MessageSetCorrectExtension1.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -298,6 +341,25 @@ class TestAllTypesProto2_MessageSetCorrectExtension1 $core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllTypesProto2.MessageSetCorrectExtension1', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..aOS(25, _omitFieldNames ? '' : 'str') + ..hasRequiredFields = false; + static final messageSetExtension = $pb.Extension< + TestAllTypesProto2_MessageSetCorrectExtension1>( + _omitMessageNames + ? '' + : 'protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrect', + _omitFieldNames ? '' : 'messageSetExtension', + 1547769, + $pb.PbFieldType.OM, + defaultOrMaker: TestAllTypesProto2_MessageSetCorrectExtension1.getDefault, + subBuilder: TestAllTypesProto2_MessageSetCorrectExtension1.create); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -311,8 +373,10 @@ class TestAllTypesProto2_MessageSetCorrectExtension1 updates) => super.copyWith((message) => updates( message as TestAllTypesProto2_MessageSetCorrectExtension1)) - as TestAllTypesProto2_MessageSetCorrectExtension1; // ignore: deprecated_member_use + as TestAllTypesProto2_MessageSetCorrectExtension1; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TestAllTypesProto2_MessageSetCorrectExtension1 create() => TestAllTypesProto2_MessageSetCorrectExtension1._(); @@ -342,45 +406,16 @@ class TestAllTypesProto2_MessageSetCorrectExtension1 class TestAllTypesProto2_MessageSetCorrectExtension2 extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TestAllTypesProto2.MessageSetCorrectExtension2', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2'), - createEmptyInstance: create) - ..a<$core.int>( - 9, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'i', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - static final messageSetExtension = $pb.Extension< - TestAllTypesProto2_MessageSetCorrectExtension2>( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrect', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'messageSetExtension', - 4135312, - $pb.PbFieldType.OM, - defaultOrMaker: TestAllTypesProto2_MessageSetCorrectExtension2.getDefault, - subBuilder: TestAllTypesProto2_MessageSetCorrectExtension2.create); - - TestAllTypesProto2_MessageSetCorrectExtension2._() : super(); factory TestAllTypesProto2_MessageSetCorrectExtension2({ $core.int? i, }) { - final _result = create(); + final $result = create(); if (i != null) { - _result.i = i; + $result.i = i; } - return _result; + return $result; } + TestAllTypesProto2_MessageSetCorrectExtension2._() : super(); factory TestAllTypesProto2_MessageSetCorrectExtension2.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -389,6 +424,25 @@ class TestAllTypesProto2_MessageSetCorrectExtension2 $core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllTypesProto2.MessageSetCorrectExtension2', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>(9, _omitFieldNames ? '' : 'i', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + static final messageSetExtension = $pb.Extension< + TestAllTypesProto2_MessageSetCorrectExtension2>( + _omitMessageNames + ? '' + : 'protobuf_test_messages.proto2.TestAllTypesProto2.MessageSetCorrect', + _omitFieldNames ? '' : 'messageSetExtension', + 4135312, + $pb.PbFieldType.OM, + defaultOrMaker: TestAllTypesProto2_MessageSetCorrectExtension2.getDefault, + subBuilder: TestAllTypesProto2_MessageSetCorrectExtension2.create); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -402,8 +456,10 @@ class TestAllTypesProto2_MessageSetCorrectExtension2 updates) => super.copyWith((message) => updates( message as TestAllTypesProto2_MessageSetCorrectExtension2)) - as TestAllTypesProto2_MessageSetCorrectExtension2; // ignore: deprecated_member_use + as TestAllTypesProto2_MessageSetCorrectExtension2; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TestAllTypesProto2_MessageSetCorrectExtension2 create() => TestAllTypesProto2_MessageSetCorrectExtension2._(); @@ -444,164 +500,14 @@ enum TestAllTypesProto2_OneofField { notSet } +/// This proto includes every type of field in both singular and repeated +/// forms. +/// +/// Also, crucially, all messages and enums in this file are eventually +/// submessages of this message. So for example, a fuzz test of TestAllTypes +/// could trigger bugs that occur in any message type in this file. We verify +/// this stays true in a unit test. class TestAllTypesProto2 extends $pb.GeneratedMessage { - static const $core.Map<$core.int, TestAllTypesProto2_OneofField> - _TestAllTypesProto2_OneofFieldByTag = { - 111: TestAllTypesProto2_OneofField.oneofUint32, - 112: TestAllTypesProto2_OneofField.oneofNestedMessage, - 113: TestAllTypesProto2_OneofField.oneofString, - 114: TestAllTypesProto2_OneofField.oneofBytes, - 115: TestAllTypesProto2_OneofField.oneofBool, - 116: TestAllTypesProto2_OneofField.oneofUint64, - 117: TestAllTypesProto2_OneofField.oneofFloat, - 118: TestAllTypesProto2_OneofField.oneofDouble, - 119: TestAllTypesProto2_OneofField.oneofEnum, - 0: TestAllTypesProto2_OneofField.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TestAllTypesProto2', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2'), - createEmptyInstance: create) - ..oo(0, [111, 112, 113, 114, 115, 116, 117, 118, 119]) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'optionalInt32', - $pb.PbFieldType.O3) - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'optionalInt64') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'optionalUint32', - $pb.PbFieldType.OU3) - ..a<$fixnum.Int64>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalUint64', $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.int>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalSint32', $pb.PbFieldType.OS3) - ..a<$fixnum.Int64>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalSint64', $pb.PbFieldType.OS6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.int>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalFixed32', $pb.PbFieldType.OF3) - ..a<$fixnum.Int64>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalFixed64', $pb.PbFieldType.OF6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.int>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalSfixed32', $pb.PbFieldType.OSF3) - ..a<$fixnum.Int64>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalSfixed64', $pb.PbFieldType.OSF6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalFloat', $pb.PbFieldType.OF) - ..a<$core.double>(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalDouble', $pb.PbFieldType.OD) - ..aOB(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalBool') - ..aOS(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalString') - ..a<$core.List<$core.int>>(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalBytes', $pb.PbFieldType.OY) - ..aOM(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalNestedMessage', subBuilder: TestAllTypesProto2_NestedMessage.create) - ..aOM(19, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalForeignMessage', subBuilder: ForeignMessageProto2.create) - ..e(21, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalNestedEnum', $pb.PbFieldType.OE, defaultOrMaker: TestAllTypesProto2_NestedEnum.FOO, valueOf: TestAllTypesProto2_NestedEnum.valueOf, enumValues: TestAllTypesProto2_NestedEnum.values) - ..e(22, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalForeignEnum', $pb.PbFieldType.OE, defaultOrMaker: ForeignEnumProto2.FOREIGN_FOO, valueOf: ForeignEnumProto2.valueOf, enumValues: ForeignEnumProto2.values) - ..aOS(24, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalStringPiece') - ..aOS(25, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalCord') - ..aOM(27, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'recursiveMessage', subBuilder: TestAllTypesProto2.create) - ..p<$core.int>(31, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedInt32', $pb.PbFieldType.P3) - ..p<$fixnum.Int64>(32, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedInt64', $pb.PbFieldType.P6) - ..p<$core.int>(33, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedUint32', $pb.PbFieldType.PU3) - ..p<$fixnum.Int64>(34, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedUint64', $pb.PbFieldType.PU6) - ..p<$core.int>(35, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedSint32', $pb.PbFieldType.PS3) - ..p<$fixnum.Int64>(36, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedSint64', $pb.PbFieldType.PS6) - ..p<$core.int>(37, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedFixed32', $pb.PbFieldType.PF3) - ..p<$fixnum.Int64>(38, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedFixed64', $pb.PbFieldType.PF6) - ..p<$core.int>(39, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedSfixed32', $pb.PbFieldType.PSF3) - ..p<$fixnum.Int64>(40, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedSfixed64', $pb.PbFieldType.PSF6) - ..p<$core.double>(41, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedFloat', $pb.PbFieldType.PF) - ..p<$core.double>(42, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedDouble', $pb.PbFieldType.PD) - ..p<$core.bool>(43, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedBool', $pb.PbFieldType.PB) - ..pPS(44, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedString') - ..p<$core.List<$core.int>>(45, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedBytes', $pb.PbFieldType.PY) - ..pc(48, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedNestedMessage', $pb.PbFieldType.PM, subBuilder: TestAllTypesProto2_NestedMessage.create) - ..pc(49, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedForeignMessage', $pb.PbFieldType.PM, subBuilder: ForeignMessageProto2.create) - ..pc(51, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedNestedEnum', $pb.PbFieldType.PE, valueOf: TestAllTypesProto2_NestedEnum.valueOf, enumValues: TestAllTypesProto2_NestedEnum.values) - ..pc(52, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedForeignEnum', $pb.PbFieldType.PE, valueOf: ForeignEnumProto2.valueOf, enumValues: ForeignEnumProto2.values) - ..pPS(54, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedStringPiece') - ..pPS(55, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedCord') - ..m<$core.int, $core.int>(56, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapInt32Int32', entryClassName: 'TestAllTypesProto2.MapInt32Int32Entry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.O3, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$fixnum.Int64, $fixnum.Int64>(57, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapInt64Int64', entryClassName: 'TestAllTypesProto2.MapInt64Int64Entry', keyFieldType: $pb.PbFieldType.O6, valueFieldType: $pb.PbFieldType.O6, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.int, $core.int>(58, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapUint32Uint32', entryClassName: 'TestAllTypesProto2.MapUint32Uint32Entry', keyFieldType: $pb.PbFieldType.OU3, valueFieldType: $pb.PbFieldType.OU3, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$fixnum.Int64, $fixnum.Int64>(59, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapUint64Uint64', entryClassName: 'TestAllTypesProto2.MapUint64Uint64Entry', keyFieldType: $pb.PbFieldType.OU6, valueFieldType: $pb.PbFieldType.OU6, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.int, $core.int>(60, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapSint32Sint32', entryClassName: 'TestAllTypesProto2.MapSint32Sint32Entry', keyFieldType: $pb.PbFieldType.OS3, valueFieldType: $pb.PbFieldType.OS3, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$fixnum.Int64, $fixnum.Int64>(61, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapSint64Sint64', entryClassName: 'TestAllTypesProto2.MapSint64Sint64Entry', keyFieldType: $pb.PbFieldType.OS6, valueFieldType: $pb.PbFieldType.OS6, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.int, $core.int>(62, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapFixed32Fixed32', entryClassName: 'TestAllTypesProto2.MapFixed32Fixed32Entry', keyFieldType: $pb.PbFieldType.OF3, valueFieldType: $pb.PbFieldType.OF3, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$fixnum.Int64, $fixnum.Int64>(63, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapFixed64Fixed64', entryClassName: 'TestAllTypesProto2.MapFixed64Fixed64Entry', keyFieldType: $pb.PbFieldType.OF6, valueFieldType: $pb.PbFieldType.OF6, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.int, $core.int>(64, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapSfixed32Sfixed32', entryClassName: 'TestAllTypesProto2.MapSfixed32Sfixed32Entry', keyFieldType: $pb.PbFieldType.OSF3, valueFieldType: $pb.PbFieldType.OSF3, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$fixnum.Int64, $fixnum.Int64>(65, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapSfixed64Sfixed64', entryClassName: 'TestAllTypesProto2.MapSfixed64Sfixed64Entry', keyFieldType: $pb.PbFieldType.OSF6, valueFieldType: $pb.PbFieldType.OSF6, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.int, $core.double>(66, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapInt32Float', entryClassName: 'TestAllTypesProto2.MapInt32FloatEntry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.OF, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.int, $core.double>(67, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapInt32Double', entryClassName: 'TestAllTypesProto2.MapInt32DoubleEntry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.OD, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.bool, $core.bool>(68, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapBoolBool', entryClassName: 'TestAllTypesProto2.MapBoolBoolEntry', keyFieldType: $pb.PbFieldType.OB, valueFieldType: $pb.PbFieldType.OB, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.String, $core.String>(69, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringString', entryClassName: 'TestAllTypesProto2.MapStringStringEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.String, $core.List<$core.int>>(70, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringBytes', entryClassName: 'TestAllTypesProto2.MapStringBytesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OY, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.String, TestAllTypesProto2_NestedMessage>(71, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringNestedMessage', entryClassName: 'TestAllTypesProto2.MapStringNestedMessageEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: TestAllTypesProto2_NestedMessage.create, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.String, ForeignMessageProto2>(72, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringForeignMessage', entryClassName: 'TestAllTypesProto2.MapStringForeignMessageEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: ForeignMessageProto2.create, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.String, TestAllTypesProto2_NestedEnum>(73, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringNestedEnum', entryClassName: 'TestAllTypesProto2.MapStringNestedEnumEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OE, valueOf: TestAllTypesProto2_NestedEnum.valueOf, enumValues: TestAllTypesProto2_NestedEnum.values, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..m<$core.String, ForeignEnumProto2>(74, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringForeignEnum', entryClassName: 'TestAllTypesProto2.MapStringForeignEnumEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OE, valueOf: ForeignEnumProto2.valueOf, enumValues: ForeignEnumProto2.values, packageName: const $pb.PackageName('protobuf_test_messages.proto2')) - ..p<$core.int>(75, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedInt32', $pb.PbFieldType.K3) - ..p<$fixnum.Int64>(76, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedInt64', $pb.PbFieldType.K6) - ..p<$core.int>(77, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedUint32', $pb.PbFieldType.KU3) - ..p<$fixnum.Int64>(78, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedUint64', $pb.PbFieldType.KU6) - ..p<$core.int>(79, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedSint32', $pb.PbFieldType.KS3) - ..p<$fixnum.Int64>(80, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedSint64', $pb.PbFieldType.KS6) - ..p<$core.int>(81, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedFixed32', $pb.PbFieldType.KF3) - ..p<$fixnum.Int64>(82, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedFixed64', $pb.PbFieldType.KF6) - ..p<$core.int>(83, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedSfixed32', $pb.PbFieldType.KSF3) - ..p<$fixnum.Int64>(84, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedSfixed64', $pb.PbFieldType.KSF6) - ..p<$core.double>(85, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedFloat', $pb.PbFieldType.KF) - ..p<$core.double>(86, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedDouble', $pb.PbFieldType.KD) - ..p<$core.bool>(87, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedBool', $pb.PbFieldType.KB) - ..pc(88, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedNestedEnum', $pb.PbFieldType.KE, valueOf: TestAllTypesProto2_NestedEnum.valueOf, enumValues: TestAllTypesProto2_NestedEnum.values) - ..p<$core.int>(89, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedInt32', $pb.PbFieldType.P3) - ..p<$fixnum.Int64>(90, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedInt64', $pb.PbFieldType.P6) - ..p<$core.int>(91, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedUint32', $pb.PbFieldType.PU3) - ..p<$fixnum.Int64>(92, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedUint64', $pb.PbFieldType.PU6) - ..p<$core.int>(93, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedSint32', $pb.PbFieldType.PS3) - ..p<$fixnum.Int64>(94, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedSint64', $pb.PbFieldType.PS6) - ..p<$core.int>(95, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedFixed32', $pb.PbFieldType.PF3) - ..p<$fixnum.Int64>(96, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedFixed64', $pb.PbFieldType.PF6) - ..p<$core.int>(97, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedSfixed32', $pb.PbFieldType.PSF3) - ..p<$fixnum.Int64>(98, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedSfixed64', $pb.PbFieldType.PSF6) - ..p<$core.double>(99, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedFloat', $pb.PbFieldType.PF) - ..p<$core.double>(100, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedDouble', $pb.PbFieldType.PD) - ..p<$core.bool>(101, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedBool', $pb.PbFieldType.PB) - ..pc(102, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedNestedEnum', $pb.PbFieldType.PE, valueOf: TestAllTypesProto2_NestedEnum.valueOf, enumValues: TestAllTypesProto2_NestedEnum.values) - ..a<$core.int>(111, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofUint32', $pb.PbFieldType.OU3) - ..aOM(112, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofNestedMessage', subBuilder: TestAllTypesProto2_NestedMessage.create) - ..aOS(113, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofString') - ..a<$core.List<$core.int>>(114, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofBytes', $pb.PbFieldType.OY) - ..aOB(115, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofBool') - ..a<$fixnum.Int64>(116, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofUint64', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>(117, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofFloat', $pb.PbFieldType.OF) - ..a<$core.double>(118, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofDouble', $pb.PbFieldType.OD) - ..e(119, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofEnum', $pb.PbFieldType.OE, defaultOrMaker: TestAllTypesProto2_NestedEnum.FOO, valueOf: TestAllTypesProto2_NestedEnum.valueOf, enumValues: TestAllTypesProto2_NestedEnum.values) - ..a(201, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'data', $pb.PbFieldType.OG, subBuilder: TestAllTypesProto2_Data.create, defaultOrMaker: TestAllTypesProto2_Data.getDefault) - ..a<$core.int>(401, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldname1', $pb.PbFieldType.O3) - ..a<$core.int>(402, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName2', $pb.PbFieldType.O3) - ..a<$core.int>(403, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName3', $pb.PbFieldType.O3) - ..a<$core.int>(404, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName4', $pb.PbFieldType.O3, protoName: 'field__name4_') - ..a<$core.int>(405, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'field0name5', $pb.PbFieldType.O3) - ..a<$core.int>(406, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'field0Name6', $pb.PbFieldType.O3, protoName: 'field_0_name6') - ..a<$core.int>(407, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName7', $pb.PbFieldType.O3, protoName: 'fieldName7') - ..a<$core.int>(408, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName8', $pb.PbFieldType.O3, protoName: 'FieldName8') - ..a<$core.int>(409, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName9', $pb.PbFieldType.O3, protoName: 'field_Name9') - ..a<$core.int>(410, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName10', $pb.PbFieldType.O3, protoName: 'Field_Name10') - ..a<$core.int>(411, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FIELDNAME11', $pb.PbFieldType.O3, protoName: 'FIELD_NAME11') - ..a<$core.int>(412, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FIELDName12', $pb.PbFieldType.O3, protoName: 'FIELD_name12') - ..a<$core.int>(413, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName13', $pb.PbFieldType.O3, protoName: '__field_name13') - ..a<$core.int>(414, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName14', $pb.PbFieldType.O3, protoName: '__Field_name14') - ..a<$core.int>(415, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName15', $pb.PbFieldType.O3, protoName: 'field__name15') - ..a<$core.int>(416, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName16', $pb.PbFieldType.O3, protoName: 'field__Name16') - ..a<$core.int>(417, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName17', $pb.PbFieldType.O3, protoName: 'field_name17__') - ..a<$core.int>(418, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName18', $pb.PbFieldType.O3, protoName: 'Field_name18__') - ..hasExtensions = true; - - TestAllTypesProto2._() : super(); factory TestAllTypesProto2({ $core.int? optionalInt32, $fixnum.Int64? optionalInt64, @@ -704,6 +610,22 @@ class TestAllTypesProto2 extends $pb.GeneratedMessage { $core.double? oneofDouble, TestAllTypesProto2_NestedEnum? oneofEnum, TestAllTypesProto2_Data? data, + TestAllTypesProto2_MultiWordGroupField? multiWordGroupField, + $core.int? defaultInt32, + $fixnum.Int64? defaultInt64, + $core.int? defaultUint32, + $fixnum.Int64? defaultUint64, + $core.int? defaultSint32, + $fixnum.Int64? defaultSint64, + $core.int? defaultFixed32, + $fixnum.Int64? defaultFixed64, + $core.int? defaultSfixed32, + $fixnum.Int64? defaultSfixed64, + $core.double? defaultFloat, + $core.double? defaultDouble, + $core.bool? defaultBool, + $core.String? defaultString, + $core.List<$core.int>? defaultBytes, $core.int? fieldname1, $core.int? fieldName2, $core.int? fieldName3, @@ -723,423 +645,890 @@ class TestAllTypesProto2 extends $pb.GeneratedMessage { $core.int? fieldName17, $core.int? fieldName18, }) { - final _result = create(); + final $result = create(); if (optionalInt32 != null) { - _result.optionalInt32 = optionalInt32; + $result.optionalInt32 = optionalInt32; } if (optionalInt64 != null) { - _result.optionalInt64 = optionalInt64; + $result.optionalInt64 = optionalInt64; } if (optionalUint32 != null) { - _result.optionalUint32 = optionalUint32; + $result.optionalUint32 = optionalUint32; } if (optionalUint64 != null) { - _result.optionalUint64 = optionalUint64; + $result.optionalUint64 = optionalUint64; } if (optionalSint32 != null) { - _result.optionalSint32 = optionalSint32; + $result.optionalSint32 = optionalSint32; } if (optionalSint64 != null) { - _result.optionalSint64 = optionalSint64; + $result.optionalSint64 = optionalSint64; } if (optionalFixed32 != null) { - _result.optionalFixed32 = optionalFixed32; + $result.optionalFixed32 = optionalFixed32; } if (optionalFixed64 != null) { - _result.optionalFixed64 = optionalFixed64; + $result.optionalFixed64 = optionalFixed64; } if (optionalSfixed32 != null) { - _result.optionalSfixed32 = optionalSfixed32; + $result.optionalSfixed32 = optionalSfixed32; } if (optionalSfixed64 != null) { - _result.optionalSfixed64 = optionalSfixed64; + $result.optionalSfixed64 = optionalSfixed64; } if (optionalFloat != null) { - _result.optionalFloat = optionalFloat; + $result.optionalFloat = optionalFloat; } if (optionalDouble != null) { - _result.optionalDouble = optionalDouble; + $result.optionalDouble = optionalDouble; } if (optionalBool != null) { - _result.optionalBool = optionalBool; + $result.optionalBool = optionalBool; } if (optionalString != null) { - _result.optionalString = optionalString; + $result.optionalString = optionalString; } if (optionalBytes != null) { - _result.optionalBytes = optionalBytes; + $result.optionalBytes = optionalBytes; } if (optionalNestedMessage != null) { - _result.optionalNestedMessage = optionalNestedMessage; + $result.optionalNestedMessage = optionalNestedMessage; } if (optionalForeignMessage != null) { - _result.optionalForeignMessage = optionalForeignMessage; + $result.optionalForeignMessage = optionalForeignMessage; } if (optionalNestedEnum != null) { - _result.optionalNestedEnum = optionalNestedEnum; + $result.optionalNestedEnum = optionalNestedEnum; } if (optionalForeignEnum != null) { - _result.optionalForeignEnum = optionalForeignEnum; + $result.optionalForeignEnum = optionalForeignEnum; } if (optionalStringPiece != null) { - _result.optionalStringPiece = optionalStringPiece; + $result.optionalStringPiece = optionalStringPiece; } if (optionalCord != null) { - _result.optionalCord = optionalCord; + $result.optionalCord = optionalCord; } if (recursiveMessage != null) { - _result.recursiveMessage = recursiveMessage; + $result.recursiveMessage = recursiveMessage; } if (repeatedInt32 != null) { - _result.repeatedInt32.addAll(repeatedInt32); + $result.repeatedInt32.addAll(repeatedInt32); } if (repeatedInt64 != null) { - _result.repeatedInt64.addAll(repeatedInt64); + $result.repeatedInt64.addAll(repeatedInt64); } if (repeatedUint32 != null) { - _result.repeatedUint32.addAll(repeatedUint32); + $result.repeatedUint32.addAll(repeatedUint32); } if (repeatedUint64 != null) { - _result.repeatedUint64.addAll(repeatedUint64); + $result.repeatedUint64.addAll(repeatedUint64); } if (repeatedSint32 != null) { - _result.repeatedSint32.addAll(repeatedSint32); + $result.repeatedSint32.addAll(repeatedSint32); } if (repeatedSint64 != null) { - _result.repeatedSint64.addAll(repeatedSint64); + $result.repeatedSint64.addAll(repeatedSint64); } if (repeatedFixed32 != null) { - _result.repeatedFixed32.addAll(repeatedFixed32); + $result.repeatedFixed32.addAll(repeatedFixed32); } if (repeatedFixed64 != null) { - _result.repeatedFixed64.addAll(repeatedFixed64); + $result.repeatedFixed64.addAll(repeatedFixed64); } if (repeatedSfixed32 != null) { - _result.repeatedSfixed32.addAll(repeatedSfixed32); + $result.repeatedSfixed32.addAll(repeatedSfixed32); } if (repeatedSfixed64 != null) { - _result.repeatedSfixed64.addAll(repeatedSfixed64); + $result.repeatedSfixed64.addAll(repeatedSfixed64); } if (repeatedFloat != null) { - _result.repeatedFloat.addAll(repeatedFloat); + $result.repeatedFloat.addAll(repeatedFloat); } if (repeatedDouble != null) { - _result.repeatedDouble.addAll(repeatedDouble); + $result.repeatedDouble.addAll(repeatedDouble); } if (repeatedBool != null) { - _result.repeatedBool.addAll(repeatedBool); + $result.repeatedBool.addAll(repeatedBool); } if (repeatedString != null) { - _result.repeatedString.addAll(repeatedString); + $result.repeatedString.addAll(repeatedString); } if (repeatedBytes != null) { - _result.repeatedBytes.addAll(repeatedBytes); + $result.repeatedBytes.addAll(repeatedBytes); } if (repeatedNestedMessage != null) { - _result.repeatedNestedMessage.addAll(repeatedNestedMessage); + $result.repeatedNestedMessage.addAll(repeatedNestedMessage); } if (repeatedForeignMessage != null) { - _result.repeatedForeignMessage.addAll(repeatedForeignMessage); + $result.repeatedForeignMessage.addAll(repeatedForeignMessage); } if (repeatedNestedEnum != null) { - _result.repeatedNestedEnum.addAll(repeatedNestedEnum); + $result.repeatedNestedEnum.addAll(repeatedNestedEnum); } if (repeatedForeignEnum != null) { - _result.repeatedForeignEnum.addAll(repeatedForeignEnum); + $result.repeatedForeignEnum.addAll(repeatedForeignEnum); } if (repeatedStringPiece != null) { - _result.repeatedStringPiece.addAll(repeatedStringPiece); + $result.repeatedStringPiece.addAll(repeatedStringPiece); } if (repeatedCord != null) { - _result.repeatedCord.addAll(repeatedCord); + $result.repeatedCord.addAll(repeatedCord); } if (mapInt32Int32 != null) { - _result.mapInt32Int32.addAll(mapInt32Int32); + $result.mapInt32Int32.addAll(mapInt32Int32); } if (mapInt64Int64 != null) { - _result.mapInt64Int64.addAll(mapInt64Int64); + $result.mapInt64Int64.addAll(mapInt64Int64); } if (mapUint32Uint32 != null) { - _result.mapUint32Uint32.addAll(mapUint32Uint32); + $result.mapUint32Uint32.addAll(mapUint32Uint32); } if (mapUint64Uint64 != null) { - _result.mapUint64Uint64.addAll(mapUint64Uint64); + $result.mapUint64Uint64.addAll(mapUint64Uint64); } if (mapSint32Sint32 != null) { - _result.mapSint32Sint32.addAll(mapSint32Sint32); + $result.mapSint32Sint32.addAll(mapSint32Sint32); } if (mapSint64Sint64 != null) { - _result.mapSint64Sint64.addAll(mapSint64Sint64); + $result.mapSint64Sint64.addAll(mapSint64Sint64); } if (mapFixed32Fixed32 != null) { - _result.mapFixed32Fixed32.addAll(mapFixed32Fixed32); + $result.mapFixed32Fixed32.addAll(mapFixed32Fixed32); } if (mapFixed64Fixed64 != null) { - _result.mapFixed64Fixed64.addAll(mapFixed64Fixed64); + $result.mapFixed64Fixed64.addAll(mapFixed64Fixed64); } if (mapSfixed32Sfixed32 != null) { - _result.mapSfixed32Sfixed32.addAll(mapSfixed32Sfixed32); + $result.mapSfixed32Sfixed32.addAll(mapSfixed32Sfixed32); } if (mapSfixed64Sfixed64 != null) { - _result.mapSfixed64Sfixed64.addAll(mapSfixed64Sfixed64); + $result.mapSfixed64Sfixed64.addAll(mapSfixed64Sfixed64); } if (mapInt32Float != null) { - _result.mapInt32Float.addAll(mapInt32Float); + $result.mapInt32Float.addAll(mapInt32Float); } if (mapInt32Double != null) { - _result.mapInt32Double.addAll(mapInt32Double); + $result.mapInt32Double.addAll(mapInt32Double); } if (mapBoolBool != null) { - _result.mapBoolBool.addAll(mapBoolBool); + $result.mapBoolBool.addAll(mapBoolBool); } if (mapStringString != null) { - _result.mapStringString.addAll(mapStringString); + $result.mapStringString.addAll(mapStringString); } if (mapStringBytes != null) { - _result.mapStringBytes.addAll(mapStringBytes); + $result.mapStringBytes.addAll(mapStringBytes); } if (mapStringNestedMessage != null) { - _result.mapStringNestedMessage.addAll(mapStringNestedMessage); + $result.mapStringNestedMessage.addAll(mapStringNestedMessage); } if (mapStringForeignMessage != null) { - _result.mapStringForeignMessage.addAll(mapStringForeignMessage); + $result.mapStringForeignMessage.addAll(mapStringForeignMessage); } if (mapStringNestedEnum != null) { - _result.mapStringNestedEnum.addAll(mapStringNestedEnum); + $result.mapStringNestedEnum.addAll(mapStringNestedEnum); } if (mapStringForeignEnum != null) { - _result.mapStringForeignEnum.addAll(mapStringForeignEnum); + $result.mapStringForeignEnum.addAll(mapStringForeignEnum); } if (packedInt32 != null) { - _result.packedInt32.addAll(packedInt32); + $result.packedInt32.addAll(packedInt32); } if (packedInt64 != null) { - _result.packedInt64.addAll(packedInt64); + $result.packedInt64.addAll(packedInt64); } if (packedUint32 != null) { - _result.packedUint32.addAll(packedUint32); + $result.packedUint32.addAll(packedUint32); } if (packedUint64 != null) { - _result.packedUint64.addAll(packedUint64); + $result.packedUint64.addAll(packedUint64); } if (packedSint32 != null) { - _result.packedSint32.addAll(packedSint32); + $result.packedSint32.addAll(packedSint32); } if (packedSint64 != null) { - _result.packedSint64.addAll(packedSint64); + $result.packedSint64.addAll(packedSint64); } if (packedFixed32 != null) { - _result.packedFixed32.addAll(packedFixed32); + $result.packedFixed32.addAll(packedFixed32); } if (packedFixed64 != null) { - _result.packedFixed64.addAll(packedFixed64); + $result.packedFixed64.addAll(packedFixed64); } if (packedSfixed32 != null) { - _result.packedSfixed32.addAll(packedSfixed32); + $result.packedSfixed32.addAll(packedSfixed32); } if (packedSfixed64 != null) { - _result.packedSfixed64.addAll(packedSfixed64); + $result.packedSfixed64.addAll(packedSfixed64); } if (packedFloat != null) { - _result.packedFloat.addAll(packedFloat); + $result.packedFloat.addAll(packedFloat); } if (packedDouble != null) { - _result.packedDouble.addAll(packedDouble); + $result.packedDouble.addAll(packedDouble); } if (packedBool != null) { - _result.packedBool.addAll(packedBool); + $result.packedBool.addAll(packedBool); } if (packedNestedEnum != null) { - _result.packedNestedEnum.addAll(packedNestedEnum); + $result.packedNestedEnum.addAll(packedNestedEnum); } if (unpackedInt32 != null) { - _result.unpackedInt32.addAll(unpackedInt32); + $result.unpackedInt32.addAll(unpackedInt32); } if (unpackedInt64 != null) { - _result.unpackedInt64.addAll(unpackedInt64); + $result.unpackedInt64.addAll(unpackedInt64); } if (unpackedUint32 != null) { - _result.unpackedUint32.addAll(unpackedUint32); + $result.unpackedUint32.addAll(unpackedUint32); } if (unpackedUint64 != null) { - _result.unpackedUint64.addAll(unpackedUint64); + $result.unpackedUint64.addAll(unpackedUint64); } if (unpackedSint32 != null) { - _result.unpackedSint32.addAll(unpackedSint32); + $result.unpackedSint32.addAll(unpackedSint32); } if (unpackedSint64 != null) { - _result.unpackedSint64.addAll(unpackedSint64); + $result.unpackedSint64.addAll(unpackedSint64); } if (unpackedFixed32 != null) { - _result.unpackedFixed32.addAll(unpackedFixed32); + $result.unpackedFixed32.addAll(unpackedFixed32); } if (unpackedFixed64 != null) { - _result.unpackedFixed64.addAll(unpackedFixed64); + $result.unpackedFixed64.addAll(unpackedFixed64); } if (unpackedSfixed32 != null) { - _result.unpackedSfixed32.addAll(unpackedSfixed32); + $result.unpackedSfixed32.addAll(unpackedSfixed32); } if (unpackedSfixed64 != null) { - _result.unpackedSfixed64.addAll(unpackedSfixed64); + $result.unpackedSfixed64.addAll(unpackedSfixed64); } if (unpackedFloat != null) { - _result.unpackedFloat.addAll(unpackedFloat); + $result.unpackedFloat.addAll(unpackedFloat); } if (unpackedDouble != null) { - _result.unpackedDouble.addAll(unpackedDouble); + $result.unpackedDouble.addAll(unpackedDouble); } if (unpackedBool != null) { - _result.unpackedBool.addAll(unpackedBool); + $result.unpackedBool.addAll(unpackedBool); } if (unpackedNestedEnum != null) { - _result.unpackedNestedEnum.addAll(unpackedNestedEnum); + $result.unpackedNestedEnum.addAll(unpackedNestedEnum); } if (oneofUint32 != null) { - _result.oneofUint32 = oneofUint32; + $result.oneofUint32 = oneofUint32; } if (oneofNestedMessage != null) { - _result.oneofNestedMessage = oneofNestedMessage; + $result.oneofNestedMessage = oneofNestedMessage; } if (oneofString != null) { - _result.oneofString = oneofString; + $result.oneofString = oneofString; } if (oneofBytes != null) { - _result.oneofBytes = oneofBytes; + $result.oneofBytes = oneofBytes; } if (oneofBool != null) { - _result.oneofBool = oneofBool; + $result.oneofBool = oneofBool; } if (oneofUint64 != null) { - _result.oneofUint64 = oneofUint64; + $result.oneofUint64 = oneofUint64; } if (oneofFloat != null) { - _result.oneofFloat = oneofFloat; + $result.oneofFloat = oneofFloat; } if (oneofDouble != null) { - _result.oneofDouble = oneofDouble; + $result.oneofDouble = oneofDouble; } if (oneofEnum != null) { - _result.oneofEnum = oneofEnum; + $result.oneofEnum = oneofEnum; } if (data != null) { - _result.data = data; + $result.data = data; + } + if (multiWordGroupField != null) { + $result.multiWordGroupField = multiWordGroupField; + } + if (defaultInt32 != null) { + $result.defaultInt32 = defaultInt32; + } + if (defaultInt64 != null) { + $result.defaultInt64 = defaultInt64; + } + if (defaultUint32 != null) { + $result.defaultUint32 = defaultUint32; + } + if (defaultUint64 != null) { + $result.defaultUint64 = defaultUint64; + } + if (defaultSint32 != null) { + $result.defaultSint32 = defaultSint32; + } + if (defaultSint64 != null) { + $result.defaultSint64 = defaultSint64; + } + if (defaultFixed32 != null) { + $result.defaultFixed32 = defaultFixed32; + } + if (defaultFixed64 != null) { + $result.defaultFixed64 = defaultFixed64; + } + if (defaultSfixed32 != null) { + $result.defaultSfixed32 = defaultSfixed32; + } + if (defaultSfixed64 != null) { + $result.defaultSfixed64 = defaultSfixed64; + } + if (defaultFloat != null) { + $result.defaultFloat = defaultFloat; + } + if (defaultDouble != null) { + $result.defaultDouble = defaultDouble; + } + if (defaultBool != null) { + $result.defaultBool = defaultBool; + } + if (defaultString != null) { + $result.defaultString = defaultString; + } + if (defaultBytes != null) { + $result.defaultBytes = defaultBytes; } if (fieldname1 != null) { - _result.fieldname1 = fieldname1; + $result.fieldname1 = fieldname1; } if (fieldName2 != null) { - _result.fieldName2 = fieldName2; + $result.fieldName2 = fieldName2; } if (fieldName3 != null) { - _result.fieldName3 = fieldName3; + $result.fieldName3 = fieldName3; } if (fieldName4 != null) { - _result.fieldName4 = fieldName4; + $result.fieldName4 = fieldName4; } if (field0name5 != null) { - _result.field0name5 = field0name5; + $result.field0name5 = field0name5; } if (field0Name6 != null) { - _result.field0Name6 = field0Name6; + $result.field0Name6 = field0Name6; } if (fieldName7 != null) { - _result.fieldName7 = fieldName7; + $result.fieldName7 = fieldName7; } if (fieldName8 != null) { - _result.fieldName8 = fieldName8; + $result.fieldName8 = fieldName8; } if (fieldName9 != null) { - _result.fieldName9 = fieldName9; + $result.fieldName9 = fieldName9; } if (fieldName10 != null) { - _result.fieldName10 = fieldName10; + $result.fieldName10 = fieldName10; } if (fIELDNAME11 != null) { - _result.fIELDNAME11 = fIELDNAME11; + $result.fIELDNAME11 = fIELDNAME11; } if (fIELDName12 != null) { - _result.fIELDName12 = fIELDName12; + $result.fIELDName12 = fIELDName12; } if (fieldName13 != null) { - _result.fieldName13 = fieldName13; + $result.fieldName13 = fieldName13; } if (fieldName14 != null) { - _result.fieldName14 = fieldName14; + $result.fieldName14 = fieldName14; } if (fieldName15 != null) { - _result.fieldName15 = fieldName15; + $result.fieldName15 = fieldName15; } if (fieldName16 != null) { - _result.fieldName16 = fieldName16; + $result.fieldName16 = fieldName16; } if (fieldName17 != null) { - _result.fieldName17 = fieldName17; + $result.fieldName17 = fieldName17; } if (fieldName18 != null) { - _result.fieldName18 = fieldName18; + $result.fieldName18 = fieldName18; } - return _result; + return $result; } + TestAllTypesProto2._() : super(); factory TestAllTypesProto2.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TestAllTypesProto2.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - TestAllTypesProto2 clone() => TestAllTypesProto2()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - TestAllTypesProto2 copyWith(void Function(TestAllTypesProto2) updates) => - super.copyWith((message) => updates(message as TestAllTypesProto2)) - as TestAllTypesProto2; // ignore: deprecated_member_use - $pb.BuilderInfo get info_ => _i; - @$core.pragma('dart2js:noInline') - static TestAllTypesProto2 create() => TestAllTypesProto2._(); - TestAllTypesProto2 createEmptyInstance() => create(); - static $pb.PbList createRepeated() => - $pb.PbList(); - @$core.pragma('dart2js:noInline') - static TestAllTypesProto2 getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); - static TestAllTypesProto2? _defaultInstance; - - TestAllTypesProto2_OneofField whichOneofField() => - _TestAllTypesProto2_OneofFieldByTag[$_whichOneof(0)]!; - void clearOneofField() => clearField($_whichOneof(0)); - - @$pb.TagNumber(1) - $core.int get optionalInt32 => $_getIZ(0); - @$pb.TagNumber(1) - set optionalInt32($core.int v) { - $_setSignedInt32(0, v); - } - - @$pb.TagNumber(1) - $core.bool hasOptionalInt32() => $_has(0); - @$pb.TagNumber(1) - void clearOptionalInt32() => clearField(1); - - @$pb.TagNumber(2) - $fixnum.Int64 get optionalInt64 => $_getI64(1); - @$pb.TagNumber(2) - set optionalInt64($fixnum.Int64 v) { - $_setInt64(1, v); - } - - @$pb.TagNumber(2) - $core.bool hasOptionalInt64() => $_has(1); - @$pb.TagNumber(2) - void clearOptionalInt64() => clearField(2); - @$pb.TagNumber(3) - $core.int get optionalUint32 => $_getIZ(2); - @$pb.TagNumber(3) - set optionalUint32($core.int v) { - $_setUnsignedInt32(2, v); + static const $core.Map<$core.int, TestAllTypesProto2_OneofField> + _TestAllTypesProto2_OneofFieldByTag = { + 111: TestAllTypesProto2_OneofField.oneofUint32, + 112: TestAllTypesProto2_OneofField.oneofNestedMessage, + 113: TestAllTypesProto2_OneofField.oneofString, + 114: TestAllTypesProto2_OneofField.oneofBytes, + 115: TestAllTypesProto2_OneofField.oneofBool, + 116: TestAllTypesProto2_OneofField.oneofUint64, + 117: TestAllTypesProto2_OneofField.oneofFloat, + 118: TestAllTypesProto2_OneofField.oneofDouble, + 119: TestAllTypesProto2_OneofField.oneofEnum, + 0: TestAllTypesProto2_OneofField.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllTypesProto2', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..oo(0, [111, 112, 113, 114, 115, 116, 117, 118, 119]) + ..a<$core.int>( + 1, _omitFieldNames ? '' : 'optionalInt32', $pb.PbFieldType.O3) + ..aInt64(2, _omitFieldNames ? '' : 'optionalInt64') + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'optionalUint32', $pb.PbFieldType.OU3) + ..a<$fixnum.Int64>( + 4, _omitFieldNames ? '' : 'optionalUint64', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>( + 5, _omitFieldNames ? '' : 'optionalSint32', $pb.PbFieldType.OS3) + ..a<$fixnum.Int64>( + 6, _omitFieldNames ? '' : 'optionalSint64', $pb.PbFieldType.OS6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>( + 7, _omitFieldNames ? '' : 'optionalFixed32', $pb.PbFieldType.OF3) + ..a<$fixnum.Int64>( + 8, _omitFieldNames ? '' : 'optionalFixed64', $pb.PbFieldType.OF6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>( + 9, _omitFieldNames ? '' : 'optionalSfixed32', $pb.PbFieldType.OSF3) + ..a<$fixnum.Int64>( + 10, _omitFieldNames ? '' : 'optionalSfixed64', $pb.PbFieldType.OSF6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 11, _omitFieldNames ? '' : 'optionalFloat', $pb.PbFieldType.OF) + ..a<$core.double>( + 12, _omitFieldNames ? '' : 'optionalDouble', $pb.PbFieldType.OD) + ..aOB(13, _omitFieldNames ? '' : 'optionalBool') + ..aOS(14, _omitFieldNames ? '' : 'optionalString') + ..a<$core.List<$core.int>>( + 15, _omitFieldNames ? '' : 'optionalBytes', $pb.PbFieldType.OY) + ..aOM( + 18, _omitFieldNames ? '' : 'optionalNestedMessage', + subBuilder: TestAllTypesProto2_NestedMessage.create) + ..aOM( + 19, _omitFieldNames ? '' : 'optionalForeignMessage', + subBuilder: ForeignMessageProto2.create) + ..e( + 21, _omitFieldNames ? '' : 'optionalNestedEnum', $pb.PbFieldType.OE, + defaultOrMaker: TestAllTypesProto2_NestedEnum.FOO, + valueOf: TestAllTypesProto2_NestedEnum.valueOf, + enumValues: TestAllTypesProto2_NestedEnum.values) + ..e( + 22, _omitFieldNames ? '' : 'optionalForeignEnum', $pb.PbFieldType.OE, + defaultOrMaker: ForeignEnumProto2.FOREIGN_FOO, + valueOf: ForeignEnumProto2.valueOf, + enumValues: ForeignEnumProto2.values) + ..aOS(24, _omitFieldNames ? '' : 'optionalStringPiece') + ..aOS(25, _omitFieldNames ? '' : 'optionalCord') + ..aOM(27, _omitFieldNames ? '' : 'recursiveMessage', + subBuilder: TestAllTypesProto2.create) + ..p<$core.int>( + 31, _omitFieldNames ? '' : 'repeatedInt32', $pb.PbFieldType.P3) + ..p<$fixnum.Int64>( + 32, _omitFieldNames ? '' : 'repeatedInt64', $pb.PbFieldType.P6) + ..p<$core.int>( + 33, _omitFieldNames ? '' : 'repeatedUint32', $pb.PbFieldType.PU3) + ..p<$fixnum.Int64>( + 34, _omitFieldNames ? '' : 'repeatedUint64', $pb.PbFieldType.PU6) + ..p<$core.int>( + 35, _omitFieldNames ? '' : 'repeatedSint32', $pb.PbFieldType.PS3) + ..p<$fixnum.Int64>( + 36, _omitFieldNames ? '' : 'repeatedSint64', $pb.PbFieldType.PS6) + ..p<$core.int>( + 37, _omitFieldNames ? '' : 'repeatedFixed32', $pb.PbFieldType.PF3) + ..p<$fixnum.Int64>( + 38, _omitFieldNames ? '' : 'repeatedFixed64', $pb.PbFieldType.PF6) + ..p<$core.int>( + 39, _omitFieldNames ? '' : 'repeatedSfixed32', $pb.PbFieldType.PSF3) + ..p<$fixnum.Int64>( + 40, _omitFieldNames ? '' : 'repeatedSfixed64', $pb.PbFieldType.PSF6) + ..p<$core.double>( + 41, _omitFieldNames ? '' : 'repeatedFloat', $pb.PbFieldType.PF) + ..p<$core.double>( + 42, _omitFieldNames ? '' : 'repeatedDouble', $pb.PbFieldType.PD) + ..p<$core.bool>( + 43, _omitFieldNames ? '' : 'repeatedBool', $pb.PbFieldType.PB) + ..pPS(44, _omitFieldNames ? '' : 'repeatedString') + ..p<$core.List<$core.int>>( + 45, _omitFieldNames ? '' : 'repeatedBytes', $pb.PbFieldType.PY) + ..pc( + 48, _omitFieldNames ? '' : 'repeatedNestedMessage', $pb.PbFieldType.PM, + subBuilder: TestAllTypesProto2_NestedMessage.create) + ..pc( + 49, _omitFieldNames ? '' : 'repeatedForeignMessage', $pb.PbFieldType.PM, + subBuilder: ForeignMessageProto2.create) + ..pc( + 51, _omitFieldNames ? '' : 'repeatedNestedEnum', $pb.PbFieldType.PE, + valueOf: TestAllTypesProto2_NestedEnum.valueOf, + enumValues: TestAllTypesProto2_NestedEnum.values, + defaultEnumValue: TestAllTypesProto2_NestedEnum.FOO) + ..pc( + 52, _omitFieldNames ? '' : 'repeatedForeignEnum', $pb.PbFieldType.PE, + valueOf: ForeignEnumProto2.valueOf, + enumValues: ForeignEnumProto2.values, + defaultEnumValue: ForeignEnumProto2.FOREIGN_FOO) + ..pPS(54, _omitFieldNames ? '' : 'repeatedStringPiece') + ..pPS(55, _omitFieldNames ? '' : 'repeatedCord') + ..m<$core.int, $core.int>(56, _omitFieldNames ? '' : 'mapInt32Int32', + entryClassName: 'TestAllTypesProto2.MapInt32Int32Entry', + keyFieldType: $pb.PbFieldType.O3, + valueFieldType: $pb.PbFieldType.O3, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$fixnum.Int64, $fixnum.Int64>( + 57, _omitFieldNames ? '' : 'mapInt64Int64', + entryClassName: 'TestAllTypesProto2.MapInt64Int64Entry', + keyFieldType: $pb.PbFieldType.O6, + valueFieldType: $pb.PbFieldType.O6, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.int, $core.int>(58, _omitFieldNames ? '' : 'mapUint32Uint32', + entryClassName: 'TestAllTypesProto2.MapUint32Uint32Entry', + keyFieldType: $pb.PbFieldType.OU3, + valueFieldType: $pb.PbFieldType.OU3, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$fixnum.Int64, $fixnum.Int64>( + 59, _omitFieldNames ? '' : 'mapUint64Uint64', + entryClassName: 'TestAllTypesProto2.MapUint64Uint64Entry', + keyFieldType: $pb.PbFieldType.OU6, + valueFieldType: $pb.PbFieldType.OU6, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.int, $core.int>(60, _omitFieldNames ? '' : 'mapSint32Sint32', + entryClassName: 'TestAllTypesProto2.MapSint32Sint32Entry', + keyFieldType: $pb.PbFieldType.OS3, + valueFieldType: $pb.PbFieldType.OS3, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$fixnum.Int64, $fixnum.Int64>( + 61, _omitFieldNames ? '' : 'mapSint64Sint64', + entryClassName: 'TestAllTypesProto2.MapSint64Sint64Entry', + keyFieldType: $pb.PbFieldType.OS6, + valueFieldType: $pb.PbFieldType.OS6, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.int, $core.int>(62, _omitFieldNames ? '' : 'mapFixed32Fixed32', + entryClassName: 'TestAllTypesProto2.MapFixed32Fixed32Entry', + keyFieldType: $pb.PbFieldType.OF3, + valueFieldType: $pb.PbFieldType.OF3, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$fixnum.Int64, $fixnum.Int64>( + 63, _omitFieldNames ? '' : 'mapFixed64Fixed64', + entryClassName: 'TestAllTypesProto2.MapFixed64Fixed64Entry', + keyFieldType: $pb.PbFieldType.OF6, + valueFieldType: $pb.PbFieldType.OF6, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.int, $core.int>(64, _omitFieldNames ? '' : 'mapSfixed32Sfixed32', + entryClassName: 'TestAllTypesProto2.MapSfixed32Sfixed32Entry', + keyFieldType: $pb.PbFieldType.OSF3, + valueFieldType: $pb.PbFieldType.OSF3, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$fixnum.Int64, $fixnum.Int64>( + 65, _omitFieldNames ? '' : 'mapSfixed64Sfixed64', + entryClassName: 'TestAllTypesProto2.MapSfixed64Sfixed64Entry', + keyFieldType: $pb.PbFieldType.OSF6, + valueFieldType: $pb.PbFieldType.OSF6, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.int, $core.double>(66, _omitFieldNames ? '' : 'mapInt32Float', + entryClassName: 'TestAllTypesProto2.MapInt32FloatEntry', + keyFieldType: $pb.PbFieldType.O3, + valueFieldType: $pb.PbFieldType.OF, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.int, $core.double>(67, _omitFieldNames ? '' : 'mapInt32Double', + entryClassName: 'TestAllTypesProto2.MapInt32DoubleEntry', + keyFieldType: $pb.PbFieldType.O3, + valueFieldType: $pb.PbFieldType.OD, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.bool, $core.bool>(68, _omitFieldNames ? '' : 'mapBoolBool', + entryClassName: 'TestAllTypesProto2.MapBoolBoolEntry', + keyFieldType: $pb.PbFieldType.OB, + valueFieldType: $pb.PbFieldType.OB, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.String, $core.String>( + 69, _omitFieldNames ? '' : 'mapStringString', + entryClassName: 'TestAllTypesProto2.MapStringStringEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.String, $core.List<$core.int>>( + 70, _omitFieldNames ? '' : 'mapStringBytes', + entryClassName: 'TestAllTypesProto2.MapStringBytesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OY, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.String, TestAllTypesProto2_NestedMessage>( + 71, _omitFieldNames ? '' : 'mapStringNestedMessage', + entryClassName: 'TestAllTypesProto2.MapStringNestedMessageEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: TestAllTypesProto2_NestedMessage.create, + valueDefaultOrMaker: TestAllTypesProto2_NestedMessage.getDefault, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.String, ForeignMessageProto2>( + 72, _omitFieldNames ? '' : 'mapStringForeignMessage', + entryClassName: 'TestAllTypesProto2.MapStringForeignMessageEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: ForeignMessageProto2.create, + valueDefaultOrMaker: ForeignMessageProto2.getDefault, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.String, TestAllTypesProto2_NestedEnum>( + 73, _omitFieldNames ? '' : 'mapStringNestedEnum', + entryClassName: 'TestAllTypesProto2.MapStringNestedEnumEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OE, + valueOf: TestAllTypesProto2_NestedEnum.valueOf, + enumValues: TestAllTypesProto2_NestedEnum.values, + valueDefaultOrMaker: TestAllTypesProto2_NestedEnum.FOO, + defaultEnumValue: TestAllTypesProto2_NestedEnum.FOO, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..m<$core.String, ForeignEnumProto2>( + 74, _omitFieldNames ? '' : 'mapStringForeignEnum', + entryClassName: 'TestAllTypesProto2.MapStringForeignEnumEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OE, + valueOf: ForeignEnumProto2.valueOf, + enumValues: ForeignEnumProto2.values, + valueDefaultOrMaker: ForeignEnumProto2.FOREIGN_FOO, + defaultEnumValue: ForeignEnumProto2.FOREIGN_FOO, + packageName: const $pb.PackageName('protobuf_test_messages.proto2')) + ..p<$core.int>(75, _omitFieldNames ? '' : 'packedInt32', $pb.PbFieldType.K3) + ..p<$fixnum.Int64>( + 76, _omitFieldNames ? '' : 'packedInt64', $pb.PbFieldType.K6) + ..p<$core.int>( + 77, _omitFieldNames ? '' : 'packedUint32', $pb.PbFieldType.KU3) + ..p<$fixnum.Int64>( + 78, _omitFieldNames ? '' : 'packedUint64', $pb.PbFieldType.KU6) + ..p<$core.int>( + 79, _omitFieldNames ? '' : 'packedSint32', $pb.PbFieldType.KS3) + ..p<$fixnum.Int64>( + 80, _omitFieldNames ? '' : 'packedSint64', $pb.PbFieldType.KS6) + ..p<$core.int>( + 81, _omitFieldNames ? '' : 'packedFixed32', $pb.PbFieldType.KF3) + ..p<$fixnum.Int64>( + 82, _omitFieldNames ? '' : 'packedFixed64', $pb.PbFieldType.KF6) + ..p<$core.int>( + 83, _omitFieldNames ? '' : 'packedSfixed32', $pb.PbFieldType.KSF3) + ..p<$fixnum.Int64>( + 84, _omitFieldNames ? '' : 'packedSfixed64', $pb.PbFieldType.KSF6) + ..p<$core.double>( + 85, _omitFieldNames ? '' : 'packedFloat', $pb.PbFieldType.KF) + ..p<$core.double>( + 86, _omitFieldNames ? '' : 'packedDouble', $pb.PbFieldType.KD) + ..p<$core.bool>(87, _omitFieldNames ? '' : 'packedBool', $pb.PbFieldType.KB) + ..pc( + 88, _omitFieldNames ? '' : 'packedNestedEnum', $pb.PbFieldType.KE, + valueOf: TestAllTypesProto2_NestedEnum.valueOf, + enumValues: TestAllTypesProto2_NestedEnum.values, + defaultEnumValue: TestAllTypesProto2_NestedEnum.FOO) + ..p<$core.int>( + 89, _omitFieldNames ? '' : 'unpackedInt32', $pb.PbFieldType.P3) + ..p<$fixnum.Int64>( + 90, _omitFieldNames ? '' : 'unpackedInt64', $pb.PbFieldType.P6) + ..p<$core.int>( + 91, _omitFieldNames ? '' : 'unpackedUint32', $pb.PbFieldType.PU3) + ..p<$fixnum.Int64>( + 92, _omitFieldNames ? '' : 'unpackedUint64', $pb.PbFieldType.PU6) + ..p<$core.int>( + 93, _omitFieldNames ? '' : 'unpackedSint32', $pb.PbFieldType.PS3) + ..p<$fixnum.Int64>( + 94, _omitFieldNames ? '' : 'unpackedSint64', $pb.PbFieldType.PS6) + ..p<$core.int>( + 95, _omitFieldNames ? '' : 'unpackedFixed32', $pb.PbFieldType.PF3) + ..p<$fixnum.Int64>( + 96, _omitFieldNames ? '' : 'unpackedFixed64', $pb.PbFieldType.PF6) + ..p<$core.int>( + 97, _omitFieldNames ? '' : 'unpackedSfixed32', $pb.PbFieldType.PSF3) + ..p<$fixnum.Int64>( + 98, _omitFieldNames ? '' : 'unpackedSfixed64', $pb.PbFieldType.PSF6) + ..p<$core.double>( + 99, _omitFieldNames ? '' : 'unpackedFloat', $pb.PbFieldType.PF) + ..p<$core.double>( + 100, _omitFieldNames ? '' : 'unpackedDouble', $pb.PbFieldType.PD) + ..p<$core.bool>( + 101, _omitFieldNames ? '' : 'unpackedBool', $pb.PbFieldType.PB) + ..pc( + 102, _omitFieldNames ? '' : 'unpackedNestedEnum', $pb.PbFieldType.PE, + valueOf: TestAllTypesProto2_NestedEnum.valueOf, + enumValues: TestAllTypesProto2_NestedEnum.values, + defaultEnumValue: TestAllTypesProto2_NestedEnum.FOO) + ..a<$core.int>( + 111, _omitFieldNames ? '' : 'oneofUint32', $pb.PbFieldType.OU3) + ..aOM( + 112, _omitFieldNames ? '' : 'oneofNestedMessage', + subBuilder: TestAllTypesProto2_NestedMessage.create) + ..aOS(113, _omitFieldNames ? '' : 'oneofString') + ..a<$core.List<$core.int>>( + 114, _omitFieldNames ? '' : 'oneofBytes', $pb.PbFieldType.OY) + ..aOB(115, _omitFieldNames ? '' : 'oneofBool') + ..a<$fixnum.Int64>( + 116, _omitFieldNames ? '' : 'oneofUint64', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 117, _omitFieldNames ? '' : 'oneofFloat', $pb.PbFieldType.OF) + ..a<$core.double>( + 118, _omitFieldNames ? '' : 'oneofDouble', $pb.PbFieldType.OD) + ..e( + 119, _omitFieldNames ? '' : 'oneofEnum', $pb.PbFieldType.OE, + defaultOrMaker: TestAllTypesProto2_NestedEnum.FOO, + valueOf: TestAllTypesProto2_NestedEnum.valueOf, + enumValues: TestAllTypesProto2_NestedEnum.values) + ..a( + 201, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OG, + subBuilder: TestAllTypesProto2_Data.create, + defaultOrMaker: TestAllTypesProto2_Data.getDefault) + ..a( + 204, _omitFieldNames ? '' : 'multiwordgroupfield', $pb.PbFieldType.OG, + subBuilder: TestAllTypesProto2_MultiWordGroupField.create, + defaultOrMaker: TestAllTypesProto2_MultiWordGroupField.getDefault) + ..a<$core.int>( + 241, _omitFieldNames ? '' : 'defaultInt32', $pb.PbFieldType.O3, + defaultOrMaker: -123456789) + ..a<$fixnum.Int64>( + 242, _omitFieldNames ? '' : 'defaultInt64', $pb.PbFieldType.O6, + defaultOrMaker: $pb.parseLongInt('-9123456789123456789')) + ..a<$core.int>( + 243, _omitFieldNames ? '' : 'defaultUint32', $pb.PbFieldType.OU3, + defaultOrMaker: 2123456789) + ..a<$fixnum.Int64>( + 244, _omitFieldNames ? '' : 'defaultUint64', $pb.PbFieldType.OU6, + defaultOrMaker: $pb.parseLongInt('10123456789123456789')) + ..a<$core.int>( + 245, _omitFieldNames ? '' : 'defaultSint32', $pb.PbFieldType.OS3, + defaultOrMaker: -123456789) + ..a<$fixnum.Int64>( + 246, _omitFieldNames ? '' : 'defaultSint64', $pb.PbFieldType.OS6, + defaultOrMaker: $pb.parseLongInt('-9123456789123456789')) + ..a<$core.int>( + 247, _omitFieldNames ? '' : 'defaultFixed32', $pb.PbFieldType.OF3, + defaultOrMaker: 2123456789) + ..a<$fixnum.Int64>( + 248, _omitFieldNames ? '' : 'defaultFixed64', $pb.PbFieldType.OF6, + defaultOrMaker: $pb.parseLongInt('10123456789123456789')) + ..a<$core.int>( + 249, _omitFieldNames ? '' : 'defaultSfixed32', $pb.PbFieldType.OSF3, + defaultOrMaker: -123456789) + ..a<$fixnum.Int64>( + 250, _omitFieldNames ? '' : 'defaultSfixed64', $pb.PbFieldType.OSF6, + defaultOrMaker: $pb.parseLongInt('-9123456789123456789')) + ..a<$core.double>( + 251, _omitFieldNames ? '' : 'defaultFloat', $pb.PbFieldType.OF, + defaultOrMaker: 9e+09) + ..a<$core.double>( + 252, _omitFieldNames ? '' : 'defaultDouble', $pb.PbFieldType.OD, + defaultOrMaker: 7e+22) + ..a<$core.bool>( + 253, _omitFieldNames ? '' : 'defaultBool', $pb.PbFieldType.OB, + defaultOrMaker: true) + ..a<$core.String>( + 254, _omitFieldNames ? '' : 'defaultString', $pb.PbFieldType.OS, + defaultOrMaker: 'Rosebud') + ..a<$core.List<$core.int>>( + 255, _omitFieldNames ? '' : 'defaultBytes', $pb.PbFieldType.OY, + defaultOrMaker: () => <$core.int>[0x6a, 0x6f, 0x73, 0x68, 0x75, 0x61]) + ..a<$core.int>(401, _omitFieldNames ? '' : 'fieldname1', $pb.PbFieldType.O3) + ..a<$core.int>(402, _omitFieldNames ? '' : 'fieldName2', $pb.PbFieldType.O3) + ..a<$core.int>(403, _omitFieldNames ? '' : 'FieldName3', $pb.PbFieldType.O3) + ..a<$core.int>(404, _omitFieldNames ? '' : 'fieldName4', $pb.PbFieldType.O3, + protoName: 'field__name4_') + ..a<$core.int>( + 405, _omitFieldNames ? '' : 'field0name5', $pb.PbFieldType.O3) + ..a<$core.int>( + 406, _omitFieldNames ? '' : 'field0Name6', $pb.PbFieldType.O3, + protoName: 'field_0_name6') + ..a<$core.int>(407, _omitFieldNames ? '' : 'fieldName7', $pb.PbFieldType.O3, + protoName: 'fieldName7') + ..a<$core.int>(408, _omitFieldNames ? '' : 'FieldName8', $pb.PbFieldType.O3, + protoName: 'FieldName8') + ..a<$core.int>(409, _omitFieldNames ? '' : 'fieldName9', $pb.PbFieldType.O3, + protoName: 'field_Name9') + ..a<$core.int>( + 410, _omitFieldNames ? '' : 'FieldName10', $pb.PbFieldType.O3, + protoName: 'Field_Name10') + ..a<$core.int>( + 411, _omitFieldNames ? '' : 'FIELDNAME11', $pb.PbFieldType.O3, + protoName: 'FIELD_NAME11') + ..a<$core.int>( + 412, _omitFieldNames ? '' : 'FIELDName12', $pb.PbFieldType.O3, + protoName: 'FIELD_name12') + ..a<$core.int>( + 413, _omitFieldNames ? '' : 'FieldName13', $pb.PbFieldType.O3, + protoName: '__field_name13') + ..a<$core.int>( + 414, _omitFieldNames ? '' : 'FieldName14', $pb.PbFieldType.O3, + protoName: '__Field_name14') + ..a<$core.int>( + 415, _omitFieldNames ? '' : 'fieldName15', $pb.PbFieldType.O3, + protoName: 'field__name15') + ..a<$core.int>( + 416, _omitFieldNames ? '' : 'fieldName16', $pb.PbFieldType.O3, + protoName: 'field__Name16') + ..a<$core.int>( + 417, _omitFieldNames ? '' : 'fieldName17', $pb.PbFieldType.O3, + protoName: 'field_name17__') + ..a<$core.int>( + 418, _omitFieldNames ? '' : 'FieldName18', $pb.PbFieldType.O3, + protoName: 'Field_name18__') + ..hasExtensions = true; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TestAllTypesProto2 clone() => TestAllTypesProto2()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TestAllTypesProto2 copyWith(void Function(TestAllTypesProto2) updates) => + super.copyWith((message) => updates(message as TestAllTypesProto2)) + as TestAllTypesProto2; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static TestAllTypesProto2 create() => TestAllTypesProto2._(); + TestAllTypesProto2 createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static TestAllTypesProto2 getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static TestAllTypesProto2? _defaultInstance; + + TestAllTypesProto2_OneofField whichOneofField() => + _TestAllTypesProto2_OneofFieldByTag[$_whichOneof(0)]!; + void clearOneofField() => clearField($_whichOneof(0)); + + /// Singular + @$pb.TagNumber(1) + $core.int get optionalInt32 => $_getIZ(0); + @$pb.TagNumber(1) + set optionalInt32($core.int v) { + $_setSignedInt32(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasOptionalInt32() => $_has(0); + @$pb.TagNumber(1) + void clearOptionalInt32() => clearField(1); + + @$pb.TagNumber(2) + $fixnum.Int64 get optionalInt64 => $_getI64(1); + @$pb.TagNumber(2) + set optionalInt64($fixnum.Int64 v) { + $_setInt64(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasOptionalInt64() => $_has(1); + @$pb.TagNumber(2) + void clearOptionalInt64() => clearField(2); + + @$pb.TagNumber(3) + $core.int get optionalUint32 => $_getIZ(2); + @$pb.TagNumber(3) + set optionalUint32($core.int v) { + $_setUnsignedInt32(2, v); } @$pb.TagNumber(3) @@ -1382,6 +1771,7 @@ class TestAllTypesProto2 extends $pb.GeneratedMessage { @$pb.TagNumber(27) TestAllTypesProto2 ensureRecursiveMessage() => $_ensure(21); + /// Repeated @$pb.TagNumber(31) $core.List<$core.int> get repeatedInt32 => $_getList(22); @@ -1447,6 +1837,7 @@ class TestAllTypesProto2 extends $pb.GeneratedMessage { @$pb.TagNumber(55) $core.List<$core.String> get repeatedCord => $_getList(42); + /// Map @$pb.TagNumber(56) $core.Map<$core.int, $core.int> get mapInt32Int32 => $_getMap(43); @@ -1510,6 +1901,7 @@ class TestAllTypesProto2 extends $pb.GeneratedMessage { $core.Map<$core.String, ForeignEnumProto2> get mapStringForeignEnum => $_getMap(61); + /// Packed @$pb.TagNumber(75) $core.List<$core.int> get packedInt32 => $_getList(62); @@ -1553,6 +1945,7 @@ class TestAllTypesProto2 extends $pb.GeneratedMessage { $core.List get packedNestedEnum => $_getList(75); + /// Unpacked @$pb.TagNumber(89) $core.List<$core.int> get unpackedInt32 => $_getList(76); @@ -1718,257 +2111,444 @@ class TestAllTypesProto2 extends $pb.GeneratedMessage { @$pb.TagNumber(201) void clearData() => clearField(201); + @$pb.TagNumber(204) + TestAllTypesProto2_MultiWordGroupField get multiWordGroupField => $_getN(100); + @$pb.TagNumber(204) + set multiWordGroupField(TestAllTypesProto2_MultiWordGroupField v) { + setField(204, v); + } + + @$pb.TagNumber(204) + $core.bool hasMultiWordGroupField() => $_has(100); + @$pb.TagNumber(204) + void clearMultiWordGroupField() => clearField(204); + + /// default values + @$pb.TagNumber(241) + $core.int get defaultInt32 => $_getI(101, -123456789); + @$pb.TagNumber(241) + set defaultInt32($core.int v) { + $_setSignedInt32(101, v); + } + + @$pb.TagNumber(241) + $core.bool hasDefaultInt32() => $_has(101); + @$pb.TagNumber(241) + void clearDefaultInt32() => clearField(241); + + @$pb.TagNumber(242) + $fixnum.Int64 get defaultInt64 => $_getI64(102); + @$pb.TagNumber(242) + set defaultInt64($fixnum.Int64 v) { + $_setInt64(102, v); + } + + @$pb.TagNumber(242) + $core.bool hasDefaultInt64() => $_has(102); + @$pb.TagNumber(242) + void clearDefaultInt64() => clearField(242); + + @$pb.TagNumber(243) + $core.int get defaultUint32 => $_getI(103, 2123456789); + @$pb.TagNumber(243) + set defaultUint32($core.int v) { + $_setUnsignedInt32(103, v); + } + + @$pb.TagNumber(243) + $core.bool hasDefaultUint32() => $_has(103); + @$pb.TagNumber(243) + void clearDefaultUint32() => clearField(243); + + @$pb.TagNumber(244) + $fixnum.Int64 get defaultUint64 => $_getI64(104); + @$pb.TagNumber(244) + set defaultUint64($fixnum.Int64 v) { + $_setInt64(104, v); + } + + @$pb.TagNumber(244) + $core.bool hasDefaultUint64() => $_has(104); + @$pb.TagNumber(244) + void clearDefaultUint64() => clearField(244); + + @$pb.TagNumber(245) + $core.int get defaultSint32 => $_getI(105, -123456789); + @$pb.TagNumber(245) + set defaultSint32($core.int v) { + $_setSignedInt32(105, v); + } + + @$pb.TagNumber(245) + $core.bool hasDefaultSint32() => $_has(105); + @$pb.TagNumber(245) + void clearDefaultSint32() => clearField(245); + + @$pb.TagNumber(246) + $fixnum.Int64 get defaultSint64 => $_getI64(106); + @$pb.TagNumber(246) + set defaultSint64($fixnum.Int64 v) { + $_setInt64(106, v); + } + + @$pb.TagNumber(246) + $core.bool hasDefaultSint64() => $_has(106); + @$pb.TagNumber(246) + void clearDefaultSint64() => clearField(246); + + @$pb.TagNumber(247) + $core.int get defaultFixed32 => $_getI(107, 2123456789); + @$pb.TagNumber(247) + set defaultFixed32($core.int v) { + $_setUnsignedInt32(107, v); + } + + @$pb.TagNumber(247) + $core.bool hasDefaultFixed32() => $_has(107); + @$pb.TagNumber(247) + void clearDefaultFixed32() => clearField(247); + + @$pb.TagNumber(248) + $fixnum.Int64 get defaultFixed64 => $_getI64(108); + @$pb.TagNumber(248) + set defaultFixed64($fixnum.Int64 v) { + $_setInt64(108, v); + } + + @$pb.TagNumber(248) + $core.bool hasDefaultFixed64() => $_has(108); + @$pb.TagNumber(248) + void clearDefaultFixed64() => clearField(248); + + @$pb.TagNumber(249) + $core.int get defaultSfixed32 => $_getI(109, -123456789); + @$pb.TagNumber(249) + set defaultSfixed32($core.int v) { + $_setSignedInt32(109, v); + } + + @$pb.TagNumber(249) + $core.bool hasDefaultSfixed32() => $_has(109); + @$pb.TagNumber(249) + void clearDefaultSfixed32() => clearField(249); + + @$pb.TagNumber(250) + $fixnum.Int64 get defaultSfixed64 => $_getI64(110); + @$pb.TagNumber(250) + set defaultSfixed64($fixnum.Int64 v) { + $_setInt64(110, v); + } + + @$pb.TagNumber(250) + $core.bool hasDefaultSfixed64() => $_has(110); + @$pb.TagNumber(250) + void clearDefaultSfixed64() => clearField(250); + + @$pb.TagNumber(251) + $core.double get defaultFloat => $_getN(111); + @$pb.TagNumber(251) + set defaultFloat($core.double v) { + $_setFloat(111, v); + } + + @$pb.TagNumber(251) + $core.bool hasDefaultFloat() => $_has(111); + @$pb.TagNumber(251) + void clearDefaultFloat() => clearField(251); + + @$pb.TagNumber(252) + $core.double get defaultDouble => $_getN(112); + @$pb.TagNumber(252) + set defaultDouble($core.double v) { + $_setDouble(112, v); + } + + @$pb.TagNumber(252) + $core.bool hasDefaultDouble() => $_has(112); + @$pb.TagNumber(252) + void clearDefaultDouble() => clearField(252); + + @$pb.TagNumber(253) + $core.bool get defaultBool => $_getB(113, true); + @$pb.TagNumber(253) + set defaultBool($core.bool v) { + $_setBool(113, v); + } + + @$pb.TagNumber(253) + $core.bool hasDefaultBool() => $_has(113); + @$pb.TagNumber(253) + void clearDefaultBool() => clearField(253); + + @$pb.TagNumber(254) + $core.String get defaultString => $_getS(114, 'Rosebud'); + @$pb.TagNumber(254) + set defaultString($core.String v) { + $_setString(114, v); + } + + @$pb.TagNumber(254) + $core.bool hasDefaultString() => $_has(114); + @$pb.TagNumber(254) + void clearDefaultString() => clearField(254); + + @$pb.TagNumber(255) + $core.List<$core.int> get defaultBytes => $_getN(115); + @$pb.TagNumber(255) + set defaultBytes($core.List<$core.int> v) { + $_setBytes(115, v); + } + + @$pb.TagNumber(255) + $core.bool hasDefaultBytes() => $_has(115); + @$pb.TagNumber(255) + void clearDefaultBytes() => clearField(255); + + /// Test field-name-to-JSON-name convention. + /// (protobuf says names can be any valid C/C++ identifier.) @$pb.TagNumber(401) - $core.int get fieldname1 => $_getIZ(100); + $core.int get fieldname1 => $_getIZ(116); @$pb.TagNumber(401) set fieldname1($core.int v) { - $_setSignedInt32(100, v); + $_setSignedInt32(116, v); } @$pb.TagNumber(401) - $core.bool hasFieldname1() => $_has(100); + $core.bool hasFieldname1() => $_has(116); @$pb.TagNumber(401) void clearFieldname1() => clearField(401); @$pb.TagNumber(402) - $core.int get fieldName2 => $_getIZ(101); + $core.int get fieldName2 => $_getIZ(117); @$pb.TagNumber(402) set fieldName2($core.int v) { - $_setSignedInt32(101, v); + $_setSignedInt32(117, v); } @$pb.TagNumber(402) - $core.bool hasFieldName2() => $_has(101); + $core.bool hasFieldName2() => $_has(117); @$pb.TagNumber(402) void clearFieldName2() => clearField(402); @$pb.TagNumber(403) - $core.int get fieldName3 => $_getIZ(102); + $core.int get fieldName3 => $_getIZ(118); @$pb.TagNumber(403) set fieldName3($core.int v) { - $_setSignedInt32(102, v); + $_setSignedInt32(118, v); } @$pb.TagNumber(403) - $core.bool hasFieldName3() => $_has(102); + $core.bool hasFieldName3() => $_has(118); @$pb.TagNumber(403) void clearFieldName3() => clearField(403); @$pb.TagNumber(404) - $core.int get fieldName4 => $_getIZ(103); + $core.int get fieldName4 => $_getIZ(119); @$pb.TagNumber(404) set fieldName4($core.int v) { - $_setSignedInt32(103, v); + $_setSignedInt32(119, v); } @$pb.TagNumber(404) - $core.bool hasFieldName4() => $_has(103); + $core.bool hasFieldName4() => $_has(119); @$pb.TagNumber(404) void clearFieldName4() => clearField(404); @$pb.TagNumber(405) - $core.int get field0name5 => $_getIZ(104); + $core.int get field0name5 => $_getIZ(120); @$pb.TagNumber(405) set field0name5($core.int v) { - $_setSignedInt32(104, v); + $_setSignedInt32(120, v); } @$pb.TagNumber(405) - $core.bool hasField0name5() => $_has(104); + $core.bool hasField0name5() => $_has(120); @$pb.TagNumber(405) void clearField0name5() => clearField(405); @$pb.TagNumber(406) - $core.int get field0Name6 => $_getIZ(105); + $core.int get field0Name6 => $_getIZ(121); @$pb.TagNumber(406) set field0Name6($core.int v) { - $_setSignedInt32(105, v); + $_setSignedInt32(121, v); } @$pb.TagNumber(406) - $core.bool hasField0Name6() => $_has(105); + $core.bool hasField0Name6() => $_has(121); @$pb.TagNumber(406) void clearField0Name6() => clearField(406); @$pb.TagNumber(407) - $core.int get fieldName7 => $_getIZ(106); + $core.int get fieldName7 => $_getIZ(122); @$pb.TagNumber(407) set fieldName7($core.int v) { - $_setSignedInt32(106, v); + $_setSignedInt32(122, v); } @$pb.TagNumber(407) - $core.bool hasFieldName7() => $_has(106); + $core.bool hasFieldName7() => $_has(122); @$pb.TagNumber(407) void clearFieldName7() => clearField(407); @$pb.TagNumber(408) - $core.int get fieldName8 => $_getIZ(107); + $core.int get fieldName8 => $_getIZ(123); @$pb.TagNumber(408) set fieldName8($core.int v) { - $_setSignedInt32(107, v); + $_setSignedInt32(123, v); } @$pb.TagNumber(408) - $core.bool hasFieldName8() => $_has(107); + $core.bool hasFieldName8() => $_has(123); @$pb.TagNumber(408) void clearFieldName8() => clearField(408); @$pb.TagNumber(409) - $core.int get fieldName9 => $_getIZ(108); + $core.int get fieldName9 => $_getIZ(124); @$pb.TagNumber(409) set fieldName9($core.int v) { - $_setSignedInt32(108, v); + $_setSignedInt32(124, v); } @$pb.TagNumber(409) - $core.bool hasFieldName9() => $_has(108); + $core.bool hasFieldName9() => $_has(124); @$pb.TagNumber(409) void clearFieldName9() => clearField(409); @$pb.TagNumber(410) - $core.int get fieldName10 => $_getIZ(109); + $core.int get fieldName10 => $_getIZ(125); @$pb.TagNumber(410) set fieldName10($core.int v) { - $_setSignedInt32(109, v); + $_setSignedInt32(125, v); } @$pb.TagNumber(410) - $core.bool hasFieldName10() => $_has(109); + $core.bool hasFieldName10() => $_has(125); @$pb.TagNumber(410) void clearFieldName10() => clearField(410); @$pb.TagNumber(411) - $core.int get fIELDNAME11 => $_getIZ(110); + $core.int get fIELDNAME11 => $_getIZ(126); @$pb.TagNumber(411) set fIELDNAME11($core.int v) { - $_setSignedInt32(110, v); + $_setSignedInt32(126, v); } @$pb.TagNumber(411) - $core.bool hasFIELDNAME11() => $_has(110); + $core.bool hasFIELDNAME11() => $_has(126); @$pb.TagNumber(411) void clearFIELDNAME11() => clearField(411); @$pb.TagNumber(412) - $core.int get fIELDName12 => $_getIZ(111); + $core.int get fIELDName12 => $_getIZ(127); @$pb.TagNumber(412) set fIELDName12($core.int v) { - $_setSignedInt32(111, v); + $_setSignedInt32(127, v); } @$pb.TagNumber(412) - $core.bool hasFIELDName12() => $_has(111); + $core.bool hasFIELDName12() => $_has(127); @$pb.TagNumber(412) void clearFIELDName12() => clearField(412); @$pb.TagNumber(413) - $core.int get fieldName13 => $_getIZ(112); + $core.int get fieldName13 => $_getIZ(128); @$pb.TagNumber(413) set fieldName13($core.int v) { - $_setSignedInt32(112, v); + $_setSignedInt32(128, v); } @$pb.TagNumber(413) - $core.bool hasFieldName13() => $_has(112); + $core.bool hasFieldName13() => $_has(128); @$pb.TagNumber(413) void clearFieldName13() => clearField(413); @$pb.TagNumber(414) - $core.int get fieldName14 => $_getIZ(113); + $core.int get fieldName14 => $_getIZ(129); @$pb.TagNumber(414) set fieldName14($core.int v) { - $_setSignedInt32(113, v); + $_setSignedInt32(129, v); } @$pb.TagNumber(414) - $core.bool hasFieldName14() => $_has(113); + $core.bool hasFieldName14() => $_has(129); @$pb.TagNumber(414) void clearFieldName14() => clearField(414); @$pb.TagNumber(415) - $core.int get fieldName15 => $_getIZ(114); + $core.int get fieldName15 => $_getIZ(130); @$pb.TagNumber(415) set fieldName15($core.int v) { - $_setSignedInt32(114, v); + $_setSignedInt32(130, v); } @$pb.TagNumber(415) - $core.bool hasFieldName15() => $_has(114); + $core.bool hasFieldName15() => $_has(130); @$pb.TagNumber(415) void clearFieldName15() => clearField(415); @$pb.TagNumber(416) - $core.int get fieldName16 => $_getIZ(115); + $core.int get fieldName16 => $_getIZ(131); @$pb.TagNumber(416) set fieldName16($core.int v) { - $_setSignedInt32(115, v); + $_setSignedInt32(131, v); } @$pb.TagNumber(416) - $core.bool hasFieldName16() => $_has(115); + $core.bool hasFieldName16() => $_has(131); @$pb.TagNumber(416) void clearFieldName16() => clearField(416); @$pb.TagNumber(417) - $core.int get fieldName17 => $_getIZ(116); + $core.int get fieldName17 => $_getIZ(132); @$pb.TagNumber(417) set fieldName17($core.int v) { - $_setSignedInt32(116, v); + $_setSignedInt32(132, v); } @$pb.TagNumber(417) - $core.bool hasFieldName17() => $_has(116); + $core.bool hasFieldName17() => $_has(132); @$pb.TagNumber(417) void clearFieldName17() => clearField(417); @$pb.TagNumber(418) - $core.int get fieldName18 => $_getIZ(117); + $core.int get fieldName18 => $_getIZ(133); @$pb.TagNumber(418) set fieldName18($core.int v) { - $_setSignedInt32(117, v); + $_setSignedInt32(133, v); } @$pb.TagNumber(418) - $core.bool hasFieldName18() => $_has(117); + $core.bool hasFieldName18() => $_has(133); @$pb.TagNumber(418) void clearFieldName18() => clearField(418); } class ForeignMessageProto2 extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ForeignMessageProto2', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'c', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ForeignMessageProto2._() : super(); factory ForeignMessageProto2({ $core.int? c, }) { - final _result = create(); + final $result = create(); if (c != null) { - _result.c = c; + $result.c = c; } - return _result; + return $result; } + ForeignMessageProto2._() : super(); factory ForeignMessageProto2.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ForeignMessageProto2.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ForeignMessageProto2', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'c', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -1979,8 +2559,10 @@ class ForeignMessageProto2 extends $pb.GeneratedMessage { 'Will be removed in next major version') ForeignMessageProto2 copyWith(void Function(ForeignMessageProto2) updates) => super.copyWith((message) => updates(message as ForeignMessageProto2)) - as ForeignMessageProto2; // ignore: deprecated_member_use + as ForeignMessageProto2; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ForeignMessageProto2 create() => ForeignMessageProto2._(); ForeignMessageProto2 createEmptyInstance() => create(); @@ -2004,34 +2586,95 @@ class ForeignMessageProto2 extends $pb.GeneratedMessage { void clearC() => clearField(1); } -class UnknownToTestAllTypes_OptionalGroup extends $pb.GeneratedMessage { +class GroupField extends $pb.GeneratedMessage { + factory GroupField({ + $core.int? groupInt32, + $core.int? groupUint32, + }) { + final $result = create(); + if (groupInt32 != null) { + $result.groupInt32 = groupInt32; + } + if (groupUint32 != null) { + $result.groupUint32 = groupUint32; + } + return $result; + } + GroupField._() : super(); + factory GroupField.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GroupField.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UnknownToTestAllTypes.OptionalGroup', + _omitMessageNames ? '' : 'GroupField', package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2'), + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), createEmptyInstance: create) + ..a<$core.int>(122, _omitFieldNames ? '' : 'groupInt32', $pb.PbFieldType.O3) ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'a', - $pb.PbFieldType.O3) + 123, _omitFieldNames ? '' : 'groupUint32', $pb.PbFieldType.OU3) ..hasRequiredFields = false; - UnknownToTestAllTypes_OptionalGroup._() : super(); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GroupField clone() => GroupField()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GroupField copyWith(void Function(GroupField) updates) => + super.copyWith((message) => updates(message as GroupField)) as GroupField; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GroupField create() => GroupField._(); + GroupField createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GroupField getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GroupField? _defaultInstance; + + @$pb.TagNumber(122) + $core.int get groupInt32 => $_getIZ(0); + @$pb.TagNumber(122) + set groupInt32($core.int v) { + $_setSignedInt32(0, v); + } + + @$pb.TagNumber(122) + $core.bool hasGroupInt32() => $_has(0); + @$pb.TagNumber(122) + void clearGroupInt32() => clearField(122); + + @$pb.TagNumber(123) + $core.int get groupUint32 => $_getIZ(1); + @$pb.TagNumber(123) + set groupUint32($core.int v) { + $_setUnsignedInt32(1, v); + } + + @$pb.TagNumber(123) + $core.bool hasGroupUint32() => $_has(1); + @$pb.TagNumber(123) + void clearGroupUint32() => clearField(123); +} + +class UnknownToTestAllTypes_OptionalGroup extends $pb.GeneratedMessage { factory UnknownToTestAllTypes_OptionalGroup({ $core.int? a, }) { - final _result = create(); + final $result = create(); if (a != null) { - _result.a = a; + $result.a = a; } - return _result; + return $result; } + UnknownToTestAllTypes_OptionalGroup._() : super(); factory UnknownToTestAllTypes_OptionalGroup.fromBuffer( $core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => @@ -2039,6 +2682,15 @@ class UnknownToTestAllTypes_OptionalGroup extends $pb.GeneratedMessage { factory UnknownToTestAllTypes_OptionalGroup.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UnknownToTestAllTypes.OptionalGroup', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'a', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2051,8 +2703,10 @@ class UnknownToTestAllTypes_OptionalGroup extends $pb.GeneratedMessage { void Function(UnknownToTestAllTypes_OptionalGroup) updates) => super.copyWith((message) => updates(message as UnknownToTestAllTypes_OptionalGroup)) - as UnknownToTestAllTypes_OptionalGroup; // ignore: deprecated_member_use + as UnknownToTestAllTypes_OptionalGroup; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UnknownToTestAllTypes_OptionalGroup create() => UnknownToTestAllTypes_OptionalGroup._(); @@ -2079,36 +2733,6 @@ class UnknownToTestAllTypes_OptionalGroup extends $pb.GeneratedMessage { } class UnknownToTestAllTypes extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'UnknownToTestAllTypes', - package: const $pb.PackageName($core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2'), - createEmptyInstance: create) - ..a<$core.int>( - 1001, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'optionalInt32', - $pb.PbFieldType.O3) - ..aOS( - 1002, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'optionalString') - ..aOM(1003, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nestedMessage', - subBuilder: ForeignMessageProto2.create) - ..a( - 1004, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalgroup', $pb.PbFieldType.OG, - subBuilder: UnknownToTestAllTypes_OptionalGroup.create, - defaultOrMaker: UnknownToTestAllTypes_OptionalGroup.getDefault) - ..aOB(1006, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalBool') - ..p<$core.int>(1011, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedInt32', $pb.PbFieldType.P3) - ..hasRequiredFields = false; - - UnknownToTestAllTypes._() : super(); factory UnknownToTestAllTypes({ $core.int? optionalInt32, $core.String? optionalString, @@ -2117,35 +2741,56 @@ class UnknownToTestAllTypes extends $pb.GeneratedMessage { $core.bool? optionalBool, $core.Iterable<$core.int>? repeatedInt32, }) { - final _result = create(); + final $result = create(); if (optionalInt32 != null) { - _result.optionalInt32 = optionalInt32; + $result.optionalInt32 = optionalInt32; } if (optionalString != null) { - _result.optionalString = optionalString; + $result.optionalString = optionalString; } if (nestedMessage != null) { - _result.nestedMessage = nestedMessage; + $result.nestedMessage = nestedMessage; } if (optionalGroup != null) { - _result.optionalGroup = optionalGroup; + $result.optionalGroup = optionalGroup; } if (optionalBool != null) { - _result.optionalBool = optionalBool; + $result.optionalBool = optionalBool; } if (repeatedInt32 != null) { - _result.repeatedInt32.addAll(repeatedInt32); + $result.repeatedInt32.addAll(repeatedInt32); } - return _result; + return $result; } + UnknownToTestAllTypes._() : super(); factory UnknownToTestAllTypes.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UnknownToTestAllTypes.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'UnknownToTestAllTypes', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>( + 1001, _omitFieldNames ? '' : 'optionalInt32', $pb.PbFieldType.O3) + ..aOS(1002, _omitFieldNames ? '' : 'optionalString') + ..aOM(1003, _omitFieldNames ? '' : 'nestedMessage', + subBuilder: ForeignMessageProto2.create) + ..a( + 1004, _omitFieldNames ? '' : 'optionalgroup', $pb.PbFieldType.OG, + subBuilder: UnknownToTestAllTypes_OptionalGroup.create, + defaultOrMaker: UnknownToTestAllTypes_OptionalGroup.getDefault) + ..aOB(1006, _omitFieldNames ? '' : 'optionalBool') + ..p<$core.int>( + 1011, _omitFieldNames ? '' : 'repeatedInt32', $pb.PbFieldType.P3) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') UnknownToTestAllTypes clone() => UnknownToTestAllTypes()..mergeFromMessage(this); @@ -2155,8 +2800,10 @@ class UnknownToTestAllTypes extends $pb.GeneratedMessage { UnknownToTestAllTypes copyWith( void Function(UnknownToTestAllTypes) updates) => super.copyWith((message) => updates(message as UnknownToTestAllTypes)) - as UnknownToTestAllTypes; // ignore: deprecated_member_use + as UnknownToTestAllTypes; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static UnknownToTestAllTypes create() => UnknownToTestAllTypes._(); UnknownToTestAllTypes createEmptyInstance() => create(); @@ -2233,17 +2880,1473 @@ class UnknownToTestAllTypes extends $pb.GeneratedMessage { $core.List<$core.int> get repeatedInt32 => $_getList(5); } -class Test_messages_proto2 { - static final extensionInt32 = $pb.Extension<$core.int>( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto2.TestAllTypesProto2', - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'extensionInt32', - 120, - $pb.PbFieldType.O3); - static void registerAllExtensions($pb.ExtensionRegistry registry) { - registry.add(extensionInt32); +class NullHypothesisProto2 extends $pb.GeneratedMessage { + factory NullHypothesisProto2() => create(); + NullHypothesisProto2._() : super(); + factory NullHypothesisProto2.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory NullHypothesisProto2.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'NullHypothesisProto2', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + 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') + NullHypothesisProto2 clone() => + NullHypothesisProto2()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + NullHypothesisProto2 copyWith(void Function(NullHypothesisProto2) updates) => + super.copyWith((message) => updates(message as NullHypothesisProto2)) + as NullHypothesisProto2; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static NullHypothesisProto2 create() => NullHypothesisProto2._(); + NullHypothesisProto2 createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static NullHypothesisProto2 getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static NullHypothesisProto2? _defaultInstance; +} + +class EnumOnlyProto2 extends $pb.GeneratedMessage { + factory EnumOnlyProto2() => create(); + EnumOnlyProto2._() : super(); + factory EnumOnlyProto2.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory EnumOnlyProto2.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnumOnlyProto2', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + 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') + EnumOnlyProto2 clone() => EnumOnlyProto2()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + EnumOnlyProto2 copyWith(void Function(EnumOnlyProto2) updates) => + super.copyWith((message) => updates(message as EnumOnlyProto2)) + as EnumOnlyProto2; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static EnumOnlyProto2 create() => EnumOnlyProto2._(); + EnumOnlyProto2 createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static EnumOnlyProto2 getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static EnumOnlyProto2? _defaultInstance; +} + +class OneStringProto2 extends $pb.GeneratedMessage { + factory OneStringProto2({ + $core.String? data, + }) { + final $result = create(); + if (data != null) { + $result.data = data; + } + return $result; + } + OneStringProto2._() : super(); + factory OneStringProto2.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory OneStringProto2.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'OneStringProto2', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'data') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + OneStringProto2 clone() => OneStringProto2()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + OneStringProto2 copyWith(void Function(OneStringProto2) updates) => + super.copyWith((message) => updates(message as OneStringProto2)) + as OneStringProto2; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static OneStringProto2 create() => OneStringProto2._(); + OneStringProto2 createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static OneStringProto2 getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static OneStringProto2? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get data => $_getSZ(0); + @$pb.TagNumber(1) + set data($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasData() => $_has(0); + @$pb.TagNumber(1) + void clearData() => clearField(1); +} + +class ProtoWithKeywords extends $pb.GeneratedMessage { + factory ProtoWithKeywords({ + $core.int? inline, + $core.String? concept, + $core.Iterable<$core.String>? requires, + }) { + final $result = create(); + if (inline != null) { + $result.inline = inline; + } + if (concept != null) { + $result.concept = concept; + } + if (requires != null) { + $result.requires.addAll(requires); + } + return $result; + } + ProtoWithKeywords._() : super(); + factory ProtoWithKeywords.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory ProtoWithKeywords.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ProtoWithKeywords', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'inline', $pb.PbFieldType.O3) + ..aOS(2, _omitFieldNames ? '' : 'concept') + ..pPS(3, _omitFieldNames ? '' : 'requires') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ProtoWithKeywords clone() => ProtoWithKeywords()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ProtoWithKeywords copyWith(void Function(ProtoWithKeywords) updates) => + super.copyWith((message) => updates(message as ProtoWithKeywords)) + as ProtoWithKeywords; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ProtoWithKeywords create() => ProtoWithKeywords._(); + ProtoWithKeywords createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ProtoWithKeywords getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ProtoWithKeywords? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get inline => $_getIZ(0); + @$pb.TagNumber(1) + set inline($core.int v) { + $_setSignedInt32(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasInline() => $_has(0); + @$pb.TagNumber(1) + void clearInline() => clearField(1); + + @$pb.TagNumber(2) + $core.String get concept => $_getSZ(1); + @$pb.TagNumber(2) + set concept($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasConcept() => $_has(1); + @$pb.TagNumber(2) + void clearConcept() => clearField(2); + + @$pb.TagNumber(3) + $core.List<$core.String> get requires => $_getList(2); +} + +class TestAllRequiredTypesProto2_NestedMessage extends $pb.GeneratedMessage { + factory TestAllRequiredTypesProto2_NestedMessage({ + $core.int? a, + TestAllRequiredTypesProto2? corecursive, + TestAllRequiredTypesProto2? optionalCorecursive, + }) { + final $result = create(); + if (a != null) { + $result.a = a; + } + if (corecursive != null) { + $result.corecursive = corecursive; + } + if (optionalCorecursive != null) { + $result.optionalCorecursive = optionalCorecursive; + } + return $result; + } + TestAllRequiredTypesProto2_NestedMessage._() : super(); + factory TestAllRequiredTypesProto2_NestedMessage.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TestAllRequiredTypesProto2_NestedMessage.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllRequiredTypesProto2.NestedMessage', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'a', $pb.PbFieldType.Q3) + ..aQM(2, _omitFieldNames ? '' : 'corecursive', + subBuilder: TestAllRequiredTypesProto2.create) + ..aOM( + 3, _omitFieldNames ? '' : 'optionalCorecursive', + subBuilder: TestAllRequiredTypesProto2.create); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2_NestedMessage clone() => + TestAllRequiredTypesProto2_NestedMessage()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2_NestedMessage copyWith( + void Function(TestAllRequiredTypesProto2_NestedMessage) updates) => + super.copyWith((message) => + updates(message as TestAllRequiredTypesProto2_NestedMessage)) + as TestAllRequiredTypesProto2_NestedMessage; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2_NestedMessage create() => + TestAllRequiredTypesProto2_NestedMessage._(); + TestAllRequiredTypesProto2_NestedMessage createEmptyInstance() => create(); + static $pb.PbList + createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2_NestedMessage getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + TestAllRequiredTypesProto2_NestedMessage>(create); + static TestAllRequiredTypesProto2_NestedMessage? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get a => $_getIZ(0); + @$pb.TagNumber(1) + set a($core.int v) { + $_setSignedInt32(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasA() => $_has(0); + @$pb.TagNumber(1) + void clearA() => clearField(1); + + @$pb.TagNumber(2) + TestAllRequiredTypesProto2 get corecursive => $_getN(1); + @$pb.TagNumber(2) + set corecursive(TestAllRequiredTypesProto2 v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasCorecursive() => $_has(1); + @$pb.TagNumber(2) + void clearCorecursive() => clearField(2); + @$pb.TagNumber(2) + TestAllRequiredTypesProto2 ensureCorecursive() => $_ensure(1); + + @$pb.TagNumber(3) + TestAllRequiredTypesProto2 get optionalCorecursive => $_getN(2); + @$pb.TagNumber(3) + set optionalCorecursive(TestAllRequiredTypesProto2 v) { + setField(3, v); } + + @$pb.TagNumber(3) + $core.bool hasOptionalCorecursive() => $_has(2); + @$pb.TagNumber(3) + void clearOptionalCorecursive() => clearField(3); + @$pb.TagNumber(3) + TestAllRequiredTypesProto2 ensureOptionalCorecursive() => $_ensure(2); } + +/// groups +class TestAllRequiredTypesProto2_Data extends $pb.GeneratedMessage { + factory TestAllRequiredTypesProto2_Data({ + $core.int? groupInt32, + $core.int? groupUint32, + }) { + final $result = create(); + if (groupInt32 != null) { + $result.groupInt32 = groupInt32; + } + if (groupUint32 != null) { + $result.groupUint32 = groupUint32; + } + return $result; + } + TestAllRequiredTypesProto2_Data._() : super(); + factory TestAllRequiredTypesProto2_Data.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TestAllRequiredTypesProto2_Data.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllRequiredTypesProto2.Data', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>(202, _omitFieldNames ? '' : 'groupInt32', $pb.PbFieldType.Q3) + ..a<$core.int>( + 203, _omitFieldNames ? '' : 'groupUint32', $pb.PbFieldType.QU3); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2_Data clone() => + TestAllRequiredTypesProto2_Data()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2_Data copyWith( + void Function(TestAllRequiredTypesProto2_Data) updates) => + super.copyWith( + (message) => updates(message as TestAllRequiredTypesProto2_Data)) + as TestAllRequiredTypesProto2_Data; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2_Data create() => + TestAllRequiredTypesProto2_Data._(); + TestAllRequiredTypesProto2_Data createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2_Data getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor( + create); + static TestAllRequiredTypesProto2_Data? _defaultInstance; + + @$pb.TagNumber(202) + $core.int get groupInt32 => $_getIZ(0); + @$pb.TagNumber(202) + set groupInt32($core.int v) { + $_setSignedInt32(0, v); + } + + @$pb.TagNumber(202) + $core.bool hasGroupInt32() => $_has(0); + @$pb.TagNumber(202) + void clearGroupInt32() => clearField(202); + + @$pb.TagNumber(203) + $core.int get groupUint32 => $_getIZ(1); + @$pb.TagNumber(203) + set groupUint32($core.int v) { + $_setUnsignedInt32(1, v); + } + + @$pb.TagNumber(203) + $core.bool hasGroupUint32() => $_has(1); + @$pb.TagNumber(203) + void clearGroupUint32() => clearField(203); +} + +/// message_set test case. +class TestAllRequiredTypesProto2_MessageSetCorrect extends $pb.$_MessageSet { + factory TestAllRequiredTypesProto2_MessageSetCorrect() => create(); + TestAllRequiredTypesProto2_MessageSetCorrect._() : super(); + factory TestAllRequiredTypesProto2_MessageSetCorrect.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TestAllRequiredTypesProto2_MessageSetCorrect.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllRequiredTypesProto2.MessageSetCorrect', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..hasExtensions = true; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2_MessageSetCorrect clone() => + TestAllRequiredTypesProto2_MessageSetCorrect()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2_MessageSetCorrect copyWith( + void Function(TestAllRequiredTypesProto2_MessageSetCorrect) + updates) => + super.copyWith((message) => + updates(message as TestAllRequiredTypesProto2_MessageSetCorrect)) + as TestAllRequiredTypesProto2_MessageSetCorrect; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2_MessageSetCorrect create() => + TestAllRequiredTypesProto2_MessageSetCorrect._(); + TestAllRequiredTypesProto2_MessageSetCorrect createEmptyInstance() => + create(); + static $pb.PbList + createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2_MessageSetCorrect getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + TestAllRequiredTypesProto2_MessageSetCorrect>(create); + static TestAllRequiredTypesProto2_MessageSetCorrect? _defaultInstance; +} + +class TestAllRequiredTypesProto2_MessageSetCorrectExtension1 + extends $pb.GeneratedMessage { + factory TestAllRequiredTypesProto2_MessageSetCorrectExtension1({ + $core.String? str, + }) { + final $result = create(); + if (str != null) { + $result.str = str; + } + return $result; + } + TestAllRequiredTypesProto2_MessageSetCorrectExtension1._() : super(); + factory TestAllRequiredTypesProto2_MessageSetCorrectExtension1.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TestAllRequiredTypesProto2_MessageSetCorrectExtension1.fromJson( + $core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames + ? '' + : 'TestAllRequiredTypesProto2.MessageSetCorrectExtension1', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..aQS(25, _omitFieldNames ? '' : 'str'); + static final messageSetExtension = $pb.Extension< + TestAllRequiredTypesProto2_MessageSetCorrectExtension1>( + _omitMessageNames + ? '' + : 'protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrect', + _omitFieldNames ? '' : 'messageSetExtension', + 1547769, + $pb.PbFieldType.OM, + defaultOrMaker: + TestAllRequiredTypesProto2_MessageSetCorrectExtension1.getDefault, + subBuilder: + TestAllRequiredTypesProto2_MessageSetCorrectExtension1.create); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2_MessageSetCorrectExtension1 clone() => + TestAllRequiredTypesProto2_MessageSetCorrectExtension1() + ..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2_MessageSetCorrectExtension1 copyWith( + void Function(TestAllRequiredTypesProto2_MessageSetCorrectExtension1) + updates) => + super.copyWith((message) => updates(message + as TestAllRequiredTypesProto2_MessageSetCorrectExtension1)) + as TestAllRequiredTypesProto2_MessageSetCorrectExtension1; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2_MessageSetCorrectExtension1 create() => + TestAllRequiredTypesProto2_MessageSetCorrectExtension1._(); + TestAllRequiredTypesProto2_MessageSetCorrectExtension1 + createEmptyInstance() => create(); + static $pb.PbList + createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2_MessageSetCorrectExtension1 getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + TestAllRequiredTypesProto2_MessageSetCorrectExtension1>(create); + static TestAllRequiredTypesProto2_MessageSetCorrectExtension1? + _defaultInstance; + + @$pb.TagNumber(25) + $core.String get str => $_getSZ(0); + @$pb.TagNumber(25) + set str($core.String v) { + $_setString(0, v); + } + + @$pb.TagNumber(25) + $core.bool hasStr() => $_has(0); + @$pb.TagNumber(25) + void clearStr() => clearField(25); +} + +class TestAllRequiredTypesProto2_MessageSetCorrectExtension2 + extends $pb.GeneratedMessage { + factory TestAllRequiredTypesProto2_MessageSetCorrectExtension2({ + $core.int? i, + }) { + final $result = create(); + if (i != null) { + $result.i = i; + } + return $result; + } + TestAllRequiredTypesProto2_MessageSetCorrectExtension2._() : super(); + factory TestAllRequiredTypesProto2_MessageSetCorrectExtension2.fromBuffer( + $core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TestAllRequiredTypesProto2_MessageSetCorrectExtension2.fromJson( + $core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames + ? '' + : 'TestAllRequiredTypesProto2.MessageSetCorrectExtension2', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>(9, _omitFieldNames ? '' : 'i', $pb.PbFieldType.Q3); + static final messageSetExtension = $pb.Extension< + TestAllRequiredTypesProto2_MessageSetCorrectExtension2>( + _omitMessageNames + ? '' + : 'protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrect', + _omitFieldNames ? '' : 'messageSetExtension', + 4135312, + $pb.PbFieldType.OM, + defaultOrMaker: + TestAllRequiredTypesProto2_MessageSetCorrectExtension2.getDefault, + subBuilder: + TestAllRequiredTypesProto2_MessageSetCorrectExtension2.create); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2_MessageSetCorrectExtension2 clone() => + TestAllRequiredTypesProto2_MessageSetCorrectExtension2() + ..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2_MessageSetCorrectExtension2 copyWith( + void Function(TestAllRequiredTypesProto2_MessageSetCorrectExtension2) + updates) => + super.copyWith((message) => updates(message + as TestAllRequiredTypesProto2_MessageSetCorrectExtension2)) + as TestAllRequiredTypesProto2_MessageSetCorrectExtension2; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2_MessageSetCorrectExtension2 create() => + TestAllRequiredTypesProto2_MessageSetCorrectExtension2._(); + TestAllRequiredTypesProto2_MessageSetCorrectExtension2 + createEmptyInstance() => create(); + static $pb.PbList + createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2_MessageSetCorrectExtension2 getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor< + TestAllRequiredTypesProto2_MessageSetCorrectExtension2>(create); + static TestAllRequiredTypesProto2_MessageSetCorrectExtension2? + _defaultInstance; + + @$pb.TagNumber(9) + $core.int get i => $_getIZ(0); + @$pb.TagNumber(9) + set i($core.int v) { + $_setSignedInt32(0, v); + } + + @$pb.TagNumber(9) + $core.bool hasI() => $_has(0); + @$pb.TagNumber(9) + void clearI() => clearField(9); +} + +class TestAllRequiredTypesProto2 extends $pb.GeneratedMessage { + factory TestAllRequiredTypesProto2({ + $core.int? requiredInt32, + $fixnum.Int64? requiredInt64, + $core.int? requiredUint32, + $fixnum.Int64? requiredUint64, + $core.int? requiredSint32, + $fixnum.Int64? requiredSint64, + $core.int? requiredFixed32, + $fixnum.Int64? requiredFixed64, + $core.int? requiredSfixed32, + $fixnum.Int64? requiredSfixed64, + $core.double? requiredFloat, + $core.double? requiredDouble, + $core.bool? requiredBool, + $core.String? requiredString, + $core.List<$core.int>? requiredBytes, + TestAllRequiredTypesProto2_NestedMessage? requiredNestedMessage, + ForeignMessageProto2? requiredForeignMessage, + TestAllRequiredTypesProto2_NestedEnum? requiredNestedEnum, + ForeignEnumProto2? requiredForeignEnum, + $core.String? requiredStringPiece, + $core.String? requiredCord, + TestAllRequiredTypesProto2? recursiveMessage, + TestAllRequiredTypesProto2? optionalRecursiveMessage, + TestAllRequiredTypesProto2_Data? data, + $core.int? defaultInt32, + $fixnum.Int64? defaultInt64, + $core.int? defaultUint32, + $fixnum.Int64? defaultUint64, + $core.int? defaultSint32, + $fixnum.Int64? defaultSint64, + $core.int? defaultFixed32, + $fixnum.Int64? defaultFixed64, + $core.int? defaultSfixed32, + $fixnum.Int64? defaultSfixed64, + $core.double? defaultFloat, + $core.double? defaultDouble, + $core.bool? defaultBool, + $core.String? defaultString, + $core.List<$core.int>? defaultBytes, + }) { + final $result = create(); + if (requiredInt32 != null) { + $result.requiredInt32 = requiredInt32; + } + if (requiredInt64 != null) { + $result.requiredInt64 = requiredInt64; + } + if (requiredUint32 != null) { + $result.requiredUint32 = requiredUint32; + } + if (requiredUint64 != null) { + $result.requiredUint64 = requiredUint64; + } + if (requiredSint32 != null) { + $result.requiredSint32 = requiredSint32; + } + if (requiredSint64 != null) { + $result.requiredSint64 = requiredSint64; + } + if (requiredFixed32 != null) { + $result.requiredFixed32 = requiredFixed32; + } + if (requiredFixed64 != null) { + $result.requiredFixed64 = requiredFixed64; + } + if (requiredSfixed32 != null) { + $result.requiredSfixed32 = requiredSfixed32; + } + if (requiredSfixed64 != null) { + $result.requiredSfixed64 = requiredSfixed64; + } + if (requiredFloat != null) { + $result.requiredFloat = requiredFloat; + } + if (requiredDouble != null) { + $result.requiredDouble = requiredDouble; + } + if (requiredBool != null) { + $result.requiredBool = requiredBool; + } + if (requiredString != null) { + $result.requiredString = requiredString; + } + if (requiredBytes != null) { + $result.requiredBytes = requiredBytes; + } + if (requiredNestedMessage != null) { + $result.requiredNestedMessage = requiredNestedMessage; + } + if (requiredForeignMessage != null) { + $result.requiredForeignMessage = requiredForeignMessage; + } + if (requiredNestedEnum != null) { + $result.requiredNestedEnum = requiredNestedEnum; + } + if (requiredForeignEnum != null) { + $result.requiredForeignEnum = requiredForeignEnum; + } + if (requiredStringPiece != null) { + $result.requiredStringPiece = requiredStringPiece; + } + if (requiredCord != null) { + $result.requiredCord = requiredCord; + } + if (recursiveMessage != null) { + $result.recursiveMessage = recursiveMessage; + } + if (optionalRecursiveMessage != null) { + $result.optionalRecursiveMessage = optionalRecursiveMessage; + } + if (data != null) { + $result.data = data; + } + if (defaultInt32 != null) { + $result.defaultInt32 = defaultInt32; + } + if (defaultInt64 != null) { + $result.defaultInt64 = defaultInt64; + } + if (defaultUint32 != null) { + $result.defaultUint32 = defaultUint32; + } + if (defaultUint64 != null) { + $result.defaultUint64 = defaultUint64; + } + if (defaultSint32 != null) { + $result.defaultSint32 = defaultSint32; + } + if (defaultSint64 != null) { + $result.defaultSint64 = defaultSint64; + } + if (defaultFixed32 != null) { + $result.defaultFixed32 = defaultFixed32; + } + if (defaultFixed64 != null) { + $result.defaultFixed64 = defaultFixed64; + } + if (defaultSfixed32 != null) { + $result.defaultSfixed32 = defaultSfixed32; + } + if (defaultSfixed64 != null) { + $result.defaultSfixed64 = defaultSfixed64; + } + if (defaultFloat != null) { + $result.defaultFloat = defaultFloat; + } + if (defaultDouble != null) { + $result.defaultDouble = defaultDouble; + } + if (defaultBool != null) { + $result.defaultBool = defaultBool; + } + if (defaultString != null) { + $result.defaultString = defaultString; + } + if (defaultBytes != null) { + $result.defaultBytes = defaultBytes; + } + return $result; + } + TestAllRequiredTypesProto2._() : super(); + factory TestAllRequiredTypesProto2.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory TestAllRequiredTypesProto2.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllRequiredTypesProto2', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto2'), + createEmptyInstance: create) + ..a<$core.int>( + 1, _omitFieldNames ? '' : 'requiredInt32', $pb.PbFieldType.Q3) + ..a<$fixnum.Int64>( + 2, _omitFieldNames ? '' : 'requiredInt64', $pb.PbFieldType.Q6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'requiredUint32', $pb.PbFieldType.QU3) + ..a<$fixnum.Int64>( + 4, _omitFieldNames ? '' : 'requiredUint64', $pb.PbFieldType.QU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>( + 5, _omitFieldNames ? '' : 'requiredSint32', $pb.PbFieldType.QS3) + ..a<$fixnum.Int64>( + 6, _omitFieldNames ? '' : 'requiredSint64', $pb.PbFieldType.QS6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>( + 7, _omitFieldNames ? '' : 'requiredFixed32', $pb.PbFieldType.QF3) + ..a<$fixnum.Int64>( + 8, _omitFieldNames ? '' : 'requiredFixed64', $pb.PbFieldType.QF6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>( + 9, _omitFieldNames ? '' : 'requiredSfixed32', $pb.PbFieldType.QSF3) + ..a<$fixnum.Int64>( + 10, _omitFieldNames ? '' : 'requiredSfixed64', $pb.PbFieldType.QSF6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 11, _omitFieldNames ? '' : 'requiredFloat', $pb.PbFieldType.QF) + ..a<$core.double>( + 12, _omitFieldNames ? '' : 'requiredDouble', $pb.PbFieldType.QD) + ..a<$core.bool>( + 13, _omitFieldNames ? '' : 'requiredBool', $pb.PbFieldType.QB) + ..aQS(14, _omitFieldNames ? '' : 'requiredString') + ..a<$core.List<$core.int>>( + 15, _omitFieldNames ? '' : 'requiredBytes', $pb.PbFieldType.QY) + ..aQM( + 18, _omitFieldNames ? '' : 'requiredNestedMessage', + subBuilder: TestAllRequiredTypesProto2_NestedMessage.create) + ..aQM( + 19, _omitFieldNames ? '' : 'requiredForeignMessage', + subBuilder: ForeignMessageProto2.create) + ..e( + 21, _omitFieldNames ? '' : 'requiredNestedEnum', $pb.PbFieldType.QE, + defaultOrMaker: TestAllRequiredTypesProto2_NestedEnum.FOO, + valueOf: TestAllRequiredTypesProto2_NestedEnum.valueOf, + enumValues: TestAllRequiredTypesProto2_NestedEnum.values) + ..e( + 22, _omitFieldNames ? '' : 'requiredForeignEnum', $pb.PbFieldType.QE, + defaultOrMaker: ForeignEnumProto2.FOREIGN_FOO, + valueOf: ForeignEnumProto2.valueOf, + enumValues: ForeignEnumProto2.values) + ..aQS(24, _omitFieldNames ? '' : 'requiredStringPiece') + ..aQS(25, _omitFieldNames ? '' : 'requiredCord') + ..aQM( + 27, _omitFieldNames ? '' : 'recursiveMessage', + subBuilder: TestAllRequiredTypesProto2.create) + ..aOM( + 28, _omitFieldNames ? '' : 'optionalRecursiveMessage', + subBuilder: TestAllRequiredTypesProto2.create) + ..a( + 201, _omitFieldNames ? '' : 'data', $pb.PbFieldType.QG, + subBuilder: TestAllRequiredTypesProto2_Data.create, + defaultOrMaker: TestAllRequiredTypesProto2_Data.getDefault) + ..a<$core.int>( + 241, _omitFieldNames ? '' : 'defaultInt32', $pb.PbFieldType.Q3, + defaultOrMaker: -123456789) + ..a<$fixnum.Int64>( + 242, _omitFieldNames ? '' : 'defaultInt64', $pb.PbFieldType.Q6, + defaultOrMaker: $pb.parseLongInt('-9123456789123456789')) + ..a<$core.int>( + 243, _omitFieldNames ? '' : 'defaultUint32', $pb.PbFieldType.QU3, + defaultOrMaker: 2123456789) + ..a<$fixnum.Int64>( + 244, _omitFieldNames ? '' : 'defaultUint64', $pb.PbFieldType.QU6, + defaultOrMaker: $pb.parseLongInt('10123456789123456789')) + ..a<$core.int>( + 245, _omitFieldNames ? '' : 'defaultSint32', $pb.PbFieldType.QS3, + defaultOrMaker: -123456789) + ..a<$fixnum.Int64>( + 246, _omitFieldNames ? '' : 'defaultSint64', $pb.PbFieldType.QS6, + defaultOrMaker: $pb.parseLongInt('-9123456789123456789')) + ..a<$core.int>( + 247, _omitFieldNames ? '' : 'defaultFixed32', $pb.PbFieldType.QF3, + defaultOrMaker: 2123456789) + ..a<$fixnum.Int64>( + 248, _omitFieldNames ? '' : 'defaultFixed64', $pb.PbFieldType.QF6, + defaultOrMaker: $pb.parseLongInt('10123456789123456789')) + ..a<$core.int>( + 249, _omitFieldNames ? '' : 'defaultSfixed32', $pb.PbFieldType.QSF3, + defaultOrMaker: -123456789) + ..a<$fixnum.Int64>( + 250, _omitFieldNames ? '' : 'defaultSfixed64', $pb.PbFieldType.QSF6, + defaultOrMaker: $pb.parseLongInt('-9123456789123456789')) + ..a<$core.double>( + 251, _omitFieldNames ? '' : 'defaultFloat', $pb.PbFieldType.QF, + defaultOrMaker: 9e+09) + ..a<$core.double>( + 252, _omitFieldNames ? '' : 'defaultDouble', $pb.PbFieldType.QD, + defaultOrMaker: 7e+22) + ..a<$core.bool>( + 253, _omitFieldNames ? '' : 'defaultBool', $pb.PbFieldType.QB, + defaultOrMaker: true) + ..a<$core.String>( + 254, _omitFieldNames ? '' : 'defaultString', $pb.PbFieldType.QS, + defaultOrMaker: 'Rosebud') + ..a<$core.List<$core.int>>( + 255, _omitFieldNames ? '' : 'defaultBytes', $pb.PbFieldType.QY, + defaultOrMaker: () => <$core.int>[0x6a, 0x6f, 0x73, 0x68, 0x75, 0x61]) + ..hasExtensions = true; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2 clone() => + TestAllRequiredTypesProto2()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TestAllRequiredTypesProto2 copyWith( + void Function(TestAllRequiredTypesProto2) updates) => + super.copyWith( + (message) => updates(message as TestAllRequiredTypesProto2)) + as TestAllRequiredTypesProto2; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2 create() => TestAllRequiredTypesProto2._(); + TestAllRequiredTypesProto2 createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static TestAllRequiredTypesProto2 getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static TestAllRequiredTypesProto2? _defaultInstance; + + /// Singular + @$pb.TagNumber(1) + $core.int get requiredInt32 => $_getIZ(0); + @$pb.TagNumber(1) + set requiredInt32($core.int v) { + $_setSignedInt32(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasRequiredInt32() => $_has(0); + @$pb.TagNumber(1) + void clearRequiredInt32() => clearField(1); + + @$pb.TagNumber(2) + $fixnum.Int64 get requiredInt64 => $_getI64(1); + @$pb.TagNumber(2) + set requiredInt64($fixnum.Int64 v) { + $_setInt64(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasRequiredInt64() => $_has(1); + @$pb.TagNumber(2) + void clearRequiredInt64() => clearField(2); + + @$pb.TagNumber(3) + $core.int get requiredUint32 => $_getIZ(2); + @$pb.TagNumber(3) + set requiredUint32($core.int v) { + $_setUnsignedInt32(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasRequiredUint32() => $_has(2); + @$pb.TagNumber(3) + void clearRequiredUint32() => clearField(3); + + @$pb.TagNumber(4) + $fixnum.Int64 get requiredUint64 => $_getI64(3); + @$pb.TagNumber(4) + set requiredUint64($fixnum.Int64 v) { + $_setInt64(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasRequiredUint64() => $_has(3); + @$pb.TagNumber(4) + void clearRequiredUint64() => clearField(4); + + @$pb.TagNumber(5) + $core.int get requiredSint32 => $_getIZ(4); + @$pb.TagNumber(5) + set requiredSint32($core.int v) { + $_setSignedInt32(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasRequiredSint32() => $_has(4); + @$pb.TagNumber(5) + void clearRequiredSint32() => clearField(5); + + @$pb.TagNumber(6) + $fixnum.Int64 get requiredSint64 => $_getI64(5); + @$pb.TagNumber(6) + set requiredSint64($fixnum.Int64 v) { + $_setInt64(5, v); + } + + @$pb.TagNumber(6) + $core.bool hasRequiredSint64() => $_has(5); + @$pb.TagNumber(6) + void clearRequiredSint64() => clearField(6); + + @$pb.TagNumber(7) + $core.int get requiredFixed32 => $_getIZ(6); + @$pb.TagNumber(7) + set requiredFixed32($core.int v) { + $_setUnsignedInt32(6, v); + } + + @$pb.TagNumber(7) + $core.bool hasRequiredFixed32() => $_has(6); + @$pb.TagNumber(7) + void clearRequiredFixed32() => clearField(7); + + @$pb.TagNumber(8) + $fixnum.Int64 get requiredFixed64 => $_getI64(7); + @$pb.TagNumber(8) + set requiredFixed64($fixnum.Int64 v) { + $_setInt64(7, v); + } + + @$pb.TagNumber(8) + $core.bool hasRequiredFixed64() => $_has(7); + @$pb.TagNumber(8) + void clearRequiredFixed64() => clearField(8); + + @$pb.TagNumber(9) + $core.int get requiredSfixed32 => $_getIZ(8); + @$pb.TagNumber(9) + set requiredSfixed32($core.int v) { + $_setSignedInt32(8, v); + } + + @$pb.TagNumber(9) + $core.bool hasRequiredSfixed32() => $_has(8); + @$pb.TagNumber(9) + void clearRequiredSfixed32() => clearField(9); + + @$pb.TagNumber(10) + $fixnum.Int64 get requiredSfixed64 => $_getI64(9); + @$pb.TagNumber(10) + set requiredSfixed64($fixnum.Int64 v) { + $_setInt64(9, v); + } + + @$pb.TagNumber(10) + $core.bool hasRequiredSfixed64() => $_has(9); + @$pb.TagNumber(10) + void clearRequiredSfixed64() => clearField(10); + + @$pb.TagNumber(11) + $core.double get requiredFloat => $_getN(10); + @$pb.TagNumber(11) + set requiredFloat($core.double v) { + $_setFloat(10, v); + } + + @$pb.TagNumber(11) + $core.bool hasRequiredFloat() => $_has(10); + @$pb.TagNumber(11) + void clearRequiredFloat() => clearField(11); + + @$pb.TagNumber(12) + $core.double get requiredDouble => $_getN(11); + @$pb.TagNumber(12) + set requiredDouble($core.double v) { + $_setDouble(11, v); + } + + @$pb.TagNumber(12) + $core.bool hasRequiredDouble() => $_has(11); + @$pb.TagNumber(12) + void clearRequiredDouble() => clearField(12); + + @$pb.TagNumber(13) + $core.bool get requiredBool => $_getBF(12); + @$pb.TagNumber(13) + set requiredBool($core.bool v) { + $_setBool(12, v); + } + + @$pb.TagNumber(13) + $core.bool hasRequiredBool() => $_has(12); + @$pb.TagNumber(13) + void clearRequiredBool() => clearField(13); + + @$pb.TagNumber(14) + $core.String get requiredString => $_getSZ(13); + @$pb.TagNumber(14) + set requiredString($core.String v) { + $_setString(13, v); + } + + @$pb.TagNumber(14) + $core.bool hasRequiredString() => $_has(13); + @$pb.TagNumber(14) + void clearRequiredString() => clearField(14); + + @$pb.TagNumber(15) + $core.List<$core.int> get requiredBytes => $_getN(14); + @$pb.TagNumber(15) + set requiredBytes($core.List<$core.int> v) { + $_setBytes(14, v); + } + + @$pb.TagNumber(15) + $core.bool hasRequiredBytes() => $_has(14); + @$pb.TagNumber(15) + void clearRequiredBytes() => clearField(15); + + @$pb.TagNumber(18) + TestAllRequiredTypesProto2_NestedMessage get requiredNestedMessage => + $_getN(15); + @$pb.TagNumber(18) + set requiredNestedMessage(TestAllRequiredTypesProto2_NestedMessage v) { + setField(18, v); + } + + @$pb.TagNumber(18) + $core.bool hasRequiredNestedMessage() => $_has(15); + @$pb.TagNumber(18) + void clearRequiredNestedMessage() => clearField(18); + @$pb.TagNumber(18) + TestAllRequiredTypesProto2_NestedMessage ensureRequiredNestedMessage() => + $_ensure(15); + + @$pb.TagNumber(19) + ForeignMessageProto2 get requiredForeignMessage => $_getN(16); + @$pb.TagNumber(19) + set requiredForeignMessage(ForeignMessageProto2 v) { + setField(19, v); + } + + @$pb.TagNumber(19) + $core.bool hasRequiredForeignMessage() => $_has(16); + @$pb.TagNumber(19) + void clearRequiredForeignMessage() => clearField(19); + @$pb.TagNumber(19) + ForeignMessageProto2 ensureRequiredForeignMessage() => $_ensure(16); + + @$pb.TagNumber(21) + TestAllRequiredTypesProto2_NestedEnum get requiredNestedEnum => $_getN(17); + @$pb.TagNumber(21) + set requiredNestedEnum(TestAllRequiredTypesProto2_NestedEnum v) { + setField(21, v); + } + + @$pb.TagNumber(21) + $core.bool hasRequiredNestedEnum() => $_has(17); + @$pb.TagNumber(21) + void clearRequiredNestedEnum() => clearField(21); + + @$pb.TagNumber(22) + ForeignEnumProto2 get requiredForeignEnum => $_getN(18); + @$pb.TagNumber(22) + set requiredForeignEnum(ForeignEnumProto2 v) { + setField(22, v); + } + + @$pb.TagNumber(22) + $core.bool hasRequiredForeignEnum() => $_has(18); + @$pb.TagNumber(22) + void clearRequiredForeignEnum() => clearField(22); + + @$pb.TagNumber(24) + $core.String get requiredStringPiece => $_getSZ(19); + @$pb.TagNumber(24) + set requiredStringPiece($core.String v) { + $_setString(19, v); + } + + @$pb.TagNumber(24) + $core.bool hasRequiredStringPiece() => $_has(19); + @$pb.TagNumber(24) + void clearRequiredStringPiece() => clearField(24); + + @$pb.TagNumber(25) + $core.String get requiredCord => $_getSZ(20); + @$pb.TagNumber(25) + set requiredCord($core.String v) { + $_setString(20, v); + } + + @$pb.TagNumber(25) + $core.bool hasRequiredCord() => $_has(20); + @$pb.TagNumber(25) + void clearRequiredCord() => clearField(25); + + @$pb.TagNumber(27) + TestAllRequiredTypesProto2 get recursiveMessage => $_getN(21); + @$pb.TagNumber(27) + set recursiveMessage(TestAllRequiredTypesProto2 v) { + setField(27, v); + } + + @$pb.TagNumber(27) + $core.bool hasRecursiveMessage() => $_has(21); + @$pb.TagNumber(27) + void clearRecursiveMessage() => clearField(27); + @$pb.TagNumber(27) + TestAllRequiredTypesProto2 ensureRecursiveMessage() => $_ensure(21); + + @$pb.TagNumber(28) + TestAllRequiredTypesProto2 get optionalRecursiveMessage => $_getN(22); + @$pb.TagNumber(28) + set optionalRecursiveMessage(TestAllRequiredTypesProto2 v) { + setField(28, v); + } + + @$pb.TagNumber(28) + $core.bool hasOptionalRecursiveMessage() => $_has(22); + @$pb.TagNumber(28) + void clearOptionalRecursiveMessage() => clearField(28); + @$pb.TagNumber(28) + TestAllRequiredTypesProto2 ensureOptionalRecursiveMessage() => $_ensure(22); + + @$pb.TagNumber(201) + TestAllRequiredTypesProto2_Data get data => $_getN(23); + @$pb.TagNumber(201) + set data(TestAllRequiredTypesProto2_Data v) { + setField(201, v); + } + + @$pb.TagNumber(201) + $core.bool hasData() => $_has(23); + @$pb.TagNumber(201) + void clearData() => clearField(201); + + /// default values + @$pb.TagNumber(241) + $core.int get defaultInt32 => $_getI(24, -123456789); + @$pb.TagNumber(241) + set defaultInt32($core.int v) { + $_setSignedInt32(24, v); + } + + @$pb.TagNumber(241) + $core.bool hasDefaultInt32() => $_has(24); + @$pb.TagNumber(241) + void clearDefaultInt32() => clearField(241); + + @$pb.TagNumber(242) + $fixnum.Int64 get defaultInt64 => $_getI64(25); + @$pb.TagNumber(242) + set defaultInt64($fixnum.Int64 v) { + $_setInt64(25, v); + } + + @$pb.TagNumber(242) + $core.bool hasDefaultInt64() => $_has(25); + @$pb.TagNumber(242) + void clearDefaultInt64() => clearField(242); + + @$pb.TagNumber(243) + $core.int get defaultUint32 => $_getI(26, 2123456789); + @$pb.TagNumber(243) + set defaultUint32($core.int v) { + $_setUnsignedInt32(26, v); + } + + @$pb.TagNumber(243) + $core.bool hasDefaultUint32() => $_has(26); + @$pb.TagNumber(243) + void clearDefaultUint32() => clearField(243); + + @$pb.TagNumber(244) + $fixnum.Int64 get defaultUint64 => $_getI64(27); + @$pb.TagNumber(244) + set defaultUint64($fixnum.Int64 v) { + $_setInt64(27, v); + } + + @$pb.TagNumber(244) + $core.bool hasDefaultUint64() => $_has(27); + @$pb.TagNumber(244) + void clearDefaultUint64() => clearField(244); + + @$pb.TagNumber(245) + $core.int get defaultSint32 => $_getI(28, -123456789); + @$pb.TagNumber(245) + set defaultSint32($core.int v) { + $_setSignedInt32(28, v); + } + + @$pb.TagNumber(245) + $core.bool hasDefaultSint32() => $_has(28); + @$pb.TagNumber(245) + void clearDefaultSint32() => clearField(245); + + @$pb.TagNumber(246) + $fixnum.Int64 get defaultSint64 => $_getI64(29); + @$pb.TagNumber(246) + set defaultSint64($fixnum.Int64 v) { + $_setInt64(29, v); + } + + @$pb.TagNumber(246) + $core.bool hasDefaultSint64() => $_has(29); + @$pb.TagNumber(246) + void clearDefaultSint64() => clearField(246); + + @$pb.TagNumber(247) + $core.int get defaultFixed32 => $_getI(30, 2123456789); + @$pb.TagNumber(247) + set defaultFixed32($core.int v) { + $_setUnsignedInt32(30, v); + } + + @$pb.TagNumber(247) + $core.bool hasDefaultFixed32() => $_has(30); + @$pb.TagNumber(247) + void clearDefaultFixed32() => clearField(247); + + @$pb.TagNumber(248) + $fixnum.Int64 get defaultFixed64 => $_getI64(31); + @$pb.TagNumber(248) + set defaultFixed64($fixnum.Int64 v) { + $_setInt64(31, v); + } + + @$pb.TagNumber(248) + $core.bool hasDefaultFixed64() => $_has(31); + @$pb.TagNumber(248) + void clearDefaultFixed64() => clearField(248); + + @$pb.TagNumber(249) + $core.int get defaultSfixed32 => $_getI(32, -123456789); + @$pb.TagNumber(249) + set defaultSfixed32($core.int v) { + $_setSignedInt32(32, v); + } + + @$pb.TagNumber(249) + $core.bool hasDefaultSfixed32() => $_has(32); + @$pb.TagNumber(249) + void clearDefaultSfixed32() => clearField(249); + + @$pb.TagNumber(250) + $fixnum.Int64 get defaultSfixed64 => $_getI64(33); + @$pb.TagNumber(250) + set defaultSfixed64($fixnum.Int64 v) { + $_setInt64(33, v); + } + + @$pb.TagNumber(250) + $core.bool hasDefaultSfixed64() => $_has(33); + @$pb.TagNumber(250) + void clearDefaultSfixed64() => clearField(250); + + @$pb.TagNumber(251) + $core.double get defaultFloat => $_getN(34); + @$pb.TagNumber(251) + set defaultFloat($core.double v) { + $_setFloat(34, v); + } + + @$pb.TagNumber(251) + $core.bool hasDefaultFloat() => $_has(34); + @$pb.TagNumber(251) + void clearDefaultFloat() => clearField(251); + + @$pb.TagNumber(252) + $core.double get defaultDouble => $_getN(35); + @$pb.TagNumber(252) + set defaultDouble($core.double v) { + $_setDouble(35, v); + } + + @$pb.TagNumber(252) + $core.bool hasDefaultDouble() => $_has(35); + @$pb.TagNumber(252) + void clearDefaultDouble() => clearField(252); + + @$pb.TagNumber(253) + $core.bool get defaultBool => $_getB(36, true); + @$pb.TagNumber(253) + set defaultBool($core.bool v) { + $_setBool(36, v); + } + + @$pb.TagNumber(253) + $core.bool hasDefaultBool() => $_has(36); + @$pb.TagNumber(253) + void clearDefaultBool() => clearField(253); + + @$pb.TagNumber(254) + $core.String get defaultString => $_getS(37, 'Rosebud'); + @$pb.TagNumber(254) + set defaultString($core.String v) { + $_setString(37, v); + } + + @$pb.TagNumber(254) + $core.bool hasDefaultString() => $_has(37); + @$pb.TagNumber(254) + void clearDefaultString() => clearField(254); + + @$pb.TagNumber(255) + $core.List<$core.int> get defaultBytes => $_getN(38); + @$pb.TagNumber(255) + set defaultBytes($core.List<$core.int> v) { + $_setBytes(38, v); + } + + @$pb.TagNumber(255) + $core.bool hasDefaultBytes() => $_has(38); + @$pb.TagNumber(255) + void clearDefaultBytes() => clearField(255); +} + +class Test_messages_proto2 { + static final extensionInt32 = $pb.Extension<$core.int>( + _omitMessageNames + ? '' + : 'protobuf_test_messages.proto2.TestAllTypesProto2', + _omitFieldNames ? '' : 'extensionInt32', + 120, + $pb.PbFieldType.O3); + static final groupField = $pb.Extension( + _omitMessageNames + ? '' + : 'protobuf_test_messages.proto2.TestAllTypesProto2', + _omitFieldNames ? '' : 'groupField', + 121, + $pb.PbFieldType.OG, + defaultOrMaker: GroupField.getDefault, + subBuilder: GroupField.create); + static void registerAllExtensions($pb.ExtensionRegistry registry) { + registry.add(extensionInt32); + registry.add(groupField); + } +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pbenum.dart index 866d44ca..2c5387c9 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pbenum.dart @@ -1,30 +1,25 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/test_messages_proto2.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 ForeignEnumProto2 extends $pb.ProtobufEnum { - static const ForeignEnumProto2 FOREIGN_FOO = ForeignEnumProto2._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FOREIGN_FOO'); - static const ForeignEnumProto2 FOREIGN_BAR = ForeignEnumProto2._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FOREIGN_BAR'); - static const ForeignEnumProto2 FOREIGN_BAZ = ForeignEnumProto2._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FOREIGN_BAZ'); + static const ForeignEnumProto2 FOREIGN_FOO = + ForeignEnumProto2._(0, _omitEnumNames ? '' : 'FOREIGN_FOO'); + static const ForeignEnumProto2 FOREIGN_BAR = + ForeignEnumProto2._(1, _omitEnumNames ? '' : 'FOREIGN_BAR'); + static const ForeignEnumProto2 FOREIGN_BAZ = + ForeignEnumProto2._(2, _omitEnumNames ? '' : 'FOREIGN_BAZ'); static const $core.List values = [ FOREIGN_FOO, @@ -41,17 +36,13 @@ class ForeignEnumProto2 extends $pb.ProtobufEnum { class TestAllTypesProto2_NestedEnum extends $pb.ProtobufEnum { static const TestAllTypesProto2_NestedEnum FOO = - TestAllTypesProto2_NestedEnum._(0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FOO'); + TestAllTypesProto2_NestedEnum._(0, _omitEnumNames ? '' : 'FOO'); static const TestAllTypesProto2_NestedEnum BAR = - TestAllTypesProto2_NestedEnum._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BAR'); + TestAllTypesProto2_NestedEnum._(1, _omitEnumNames ? '' : 'BAR'); static const TestAllTypesProto2_NestedEnum BAZ = - TestAllTypesProto2_NestedEnum._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BAZ'); + TestAllTypesProto2_NestedEnum._(2, _omitEnumNames ? '' : 'BAZ'); static const TestAllTypesProto2_NestedEnum NEG = - TestAllTypesProto2_NestedEnum._(-1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'NEG'); + TestAllTypesProto2_NestedEnum._(-1, _omitEnumNames ? '' : 'NEG'); static const $core.List values = [ @@ -69,3 +60,50 @@ class TestAllTypesProto2_NestedEnum extends $pb.ProtobufEnum { const TestAllTypesProto2_NestedEnum._($core.int v, $core.String n) : super(v, n); } + +class EnumOnlyProto2_Bool extends $pb.ProtobufEnum { + static const EnumOnlyProto2_Bool kFalse = + EnumOnlyProto2_Bool._(0, _omitEnumNames ? '' : 'kFalse'); + static const EnumOnlyProto2_Bool kTrue = + EnumOnlyProto2_Bool._(1, _omitEnumNames ? '' : 'kTrue'); + + static const $core.List values = [ + kFalse, + kTrue, + ]; + + static final $core.Map<$core.int, EnumOnlyProto2_Bool> _byValue = + $pb.ProtobufEnum.initByValue(values); + static EnumOnlyProto2_Bool? valueOf($core.int value) => _byValue[value]; + + const EnumOnlyProto2_Bool._($core.int v, $core.String n) : super(v, n); +} + +class TestAllRequiredTypesProto2_NestedEnum extends $pb.ProtobufEnum { + static const TestAllRequiredTypesProto2_NestedEnum FOO = + TestAllRequiredTypesProto2_NestedEnum._(0, _omitEnumNames ? '' : 'FOO'); + static const TestAllRequiredTypesProto2_NestedEnum BAR = + TestAllRequiredTypesProto2_NestedEnum._(1, _omitEnumNames ? '' : 'BAR'); + static const TestAllRequiredTypesProto2_NestedEnum BAZ = + TestAllRequiredTypesProto2_NestedEnum._(2, _omitEnumNames ? '' : 'BAZ'); + static const TestAllRequiredTypesProto2_NestedEnum NEG = + TestAllRequiredTypesProto2_NestedEnum._(-1, _omitEnumNames ? '' : 'NEG'); + + static const $core.List values = + [ + FOO, + BAR, + BAZ, + NEG, + ]; + + static final $core.Map<$core.int, TestAllRequiredTypesProto2_NestedEnum> + _byValue = $pb.ProtobufEnum.initByValue(values); + static TestAllRequiredTypesProto2_NestedEnum? valueOf($core.int value) => + _byValue[value]; + + const TestAllRequiredTypesProto2_NestedEnum._($core.int v, $core.String n) + : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pbjson.dart index 98fca1ce..af9215d5 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto2.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/test_messages_proto2.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 foreignEnumProto2Descriptor instead') @@ -21,7 +25,9 @@ const ForeignEnumProto2$json = { /// Descriptor for `ForeignEnumProto2`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List foreignEnumProto2Descriptor = $convert.base64Decode( - 'ChFGb3JlaWduRW51bVByb3RvMhIPCgtGT1JFSUdOX0ZPTxAAEg8KC0ZPUkVJR05fQkFSEAESDwoLRk9SRUlHTl9CQVoQAg=='); + 'ChFGb3JlaWduRW51bVByb3RvMhIPCgtGT1JFSUdOX0ZPTxAAEg8KC0ZPUkVJR05fQkFSEAESDw' + 'oLRk9SRUlHTl9CQVoQAg=='); + @$core.Deprecated('Use testAllTypesProto2Descriptor instead') const TestAllTypesProto2$json = { '1': 'TestAllTypesProto2', @@ -641,6 +647,135 @@ const TestAllTypesProto2$json = { '6': '.protobuf_test_messages.proto2.TestAllTypesProto2.Data', '10': 'data' }, + { + '1': 'multiwordgroupfield', + '3': 204, + '4': 1, + '5': 10, + '6': + '.protobuf_test_messages.proto2.TestAllTypesProto2.MultiWordGroupField', + '10': 'multiwordgroupfield' + }, + { + '1': 'default_int32', + '3': 241, + '4': 1, + '5': 5, + '7': '-123456789', + '10': 'defaultInt32' + }, + { + '1': 'default_int64', + '3': 242, + '4': 1, + '5': 3, + '7': '-9123456789123456789', + '10': 'defaultInt64' + }, + { + '1': 'default_uint32', + '3': 243, + '4': 1, + '5': 13, + '7': '2123456789', + '10': 'defaultUint32' + }, + { + '1': 'default_uint64', + '3': 244, + '4': 1, + '5': 4, + '7': '10123456789123456789', + '10': 'defaultUint64' + }, + { + '1': 'default_sint32', + '3': 245, + '4': 1, + '5': 17, + '7': '-123456789', + '10': 'defaultSint32' + }, + { + '1': 'default_sint64', + '3': 246, + '4': 1, + '5': 18, + '7': '-9123456789123456789', + '10': 'defaultSint64' + }, + { + '1': 'default_fixed32', + '3': 247, + '4': 1, + '5': 7, + '7': '2123456789', + '10': 'defaultFixed32' + }, + { + '1': 'default_fixed64', + '3': 248, + '4': 1, + '5': 6, + '7': '10123456789123456789', + '10': 'defaultFixed64' + }, + { + '1': 'default_sfixed32', + '3': 249, + '4': 1, + '5': 15, + '7': '-123456789', + '10': 'defaultSfixed32' + }, + { + '1': 'default_sfixed64', + '3': 250, + '4': 1, + '5': 16, + '7': '-9123456789123456789', + '10': 'defaultSfixed64' + }, + { + '1': 'default_float', + '3': 251, + '4': 1, + '5': 2, + '7': '9e+09', + '10': 'defaultFloat' + }, + { + '1': 'default_double', + '3': 252, + '4': 1, + '5': 1, + '7': '7e+22', + '10': 'defaultDouble' + }, + { + '1': 'default_bool', + '3': 253, + '4': 1, + '5': 8, + '7': 'true', + '10': 'defaultBool' + }, + { + '1': 'default_string', + '3': 254, + '4': 1, + '5': 9, + '7': 'Rosebud', + '10': 'defaultString' + }, + { + '1': 'default_bytes', + '3': 255, + '4': 1, + '5': 12, + '7': 'joshua', + '10': 'defaultBytes' + }, {'1': 'fieldname1', '3': 401, '4': 1, '5': 5, '10': 'fieldname1'}, {'1': 'field_name2', '3': 402, '4': 1, '5': 5, '10': 'fieldName2'}, {'1': '_field_name3', '3': 403, '4': 1, '5': 5, '10': 'FieldName3'}, @@ -682,6 +817,7 @@ const TestAllTypesProto2$json = { TestAllTypesProto2_MapStringNestedEnumEntry$json, TestAllTypesProto2_MapStringForeignEnumEntry$json, TestAllTypesProto2_Data$json, + TestAllTypesProto2_MultiWordGroupField$json, TestAllTypesProto2_MessageSetCorrect$json, TestAllTypesProto2_MessageSetCorrectExtension1$json, TestAllTypesProto2_MessageSetCorrectExtension2$json @@ -941,6 +1077,15 @@ const TestAllTypesProto2_Data$json = { ], }; +@$core.Deprecated('Use testAllTypesProto2Descriptor instead') +const TestAllTypesProto2_MultiWordGroupField$json = { + '1': 'MultiWordGroupField', + '2': [ + {'1': 'group_int32', '3': 205, '4': 1, '5': 5, '10': 'groupInt32'}, + {'1': 'group_uint32', '3': 206, '4': 1, '5': 13, '10': 'groupUint32'}, + ], +}; + @$core.Deprecated('Use testAllTypesProto2Descriptor instead') const TestAllTypesProto2_MessageSetCorrect$json = { '1': 'MessageSetCorrect', @@ -1005,7 +1150,199 @@ const TestAllTypesProto2_NestedEnum$json = { /// Descriptor for `TestAllTypesProto2`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List testAllTypesProto2Descriptor = $convert.base64Decode( - 'ChJUZXN0QWxsVHlwZXNQcm90bzISJQoOb3B0aW9uYWxfaW50MzIYASABKAVSDW9wdGlvbmFsSW50MzISJQoOb3B0aW9uYWxfaW50NjQYAiABKANSDW9wdGlvbmFsSW50NjQSJwoPb3B0aW9uYWxfdWludDMyGAMgASgNUg5vcHRpb25hbFVpbnQzMhInCg9vcHRpb25hbF91aW50NjQYBCABKARSDm9wdGlvbmFsVWludDY0EicKD29wdGlvbmFsX3NpbnQzMhgFIAEoEVIOb3B0aW9uYWxTaW50MzISJwoPb3B0aW9uYWxfc2ludDY0GAYgASgSUg5vcHRpb25hbFNpbnQ2NBIpChBvcHRpb25hbF9maXhlZDMyGAcgASgHUg9vcHRpb25hbEZpeGVkMzISKQoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBlIPb3B0aW9uYWxGaXhlZDY0EisKEW9wdGlvbmFsX3NmaXhlZDMyGAkgASgPUhBvcHRpb25hbFNmaXhlZDMyEisKEW9wdGlvbmFsX3NmaXhlZDY0GAogASgQUhBvcHRpb25hbFNmaXhlZDY0EiUKDm9wdGlvbmFsX2Zsb2F0GAsgASgCUg1vcHRpb25hbEZsb2F0EicKD29wdGlvbmFsX2RvdWJsZRgMIAEoAVIOb3B0aW9uYWxEb3VibGUSIwoNb3B0aW9uYWxfYm9vbBgNIAEoCFIMb3B0aW9uYWxCb29sEicKD29wdGlvbmFsX3N0cmluZxgOIAEoCVIOb3B0aW9uYWxTdHJpbmcSJQoOb3B0aW9uYWxfYnl0ZXMYDyABKAxSDW9wdGlvbmFsQnl0ZXMSdwoXb3B0aW9uYWxfbmVzdGVkX21lc3NhZ2UYEiABKAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVzc2FnZVIVb3B0aW9uYWxOZXN0ZWRNZXNzYWdlEm0KGG9wdGlvbmFsX2ZvcmVpZ25fbWVzc2FnZRgTIAEoCzIzLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25NZXNzYWdlUHJvdG8yUhZvcHRpb25hbEZvcmVpZ25NZXNzYWdlEm4KFG9wdGlvbmFsX25lc3RlZF9lbnVtGBUgASgOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZEVudW1SEm9wdGlvbmFsTmVzdGVkRW51bRJkChVvcHRpb25hbF9mb3JlaWduX2VudW0YFiABKA4yMC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduRW51bVByb3RvMlITb3B0aW9uYWxGb3JlaWduRW51bRI2ChVvcHRpb25hbF9zdHJpbmdfcGllY2UYGCABKAlCAggCUhNvcHRpb25hbFN0cmluZ1BpZWNlEicKDW9wdGlvbmFsX2NvcmQYGSABKAlCAggBUgxvcHRpb25hbENvcmQSXgoRcmVjdXJzaXZlX21lc3NhZ2UYGyABKAsyMS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzJSEHJlY3Vyc2l2ZU1lc3NhZ2USJQoOcmVwZWF0ZWRfaW50MzIYHyADKAVSDXJlcGVhdGVkSW50MzISJQoOcmVwZWF0ZWRfaW50NjQYICADKANSDXJlcGVhdGVkSW50NjQSJwoPcmVwZWF0ZWRfdWludDMyGCEgAygNUg5yZXBlYXRlZFVpbnQzMhInCg9yZXBlYXRlZF91aW50NjQYIiADKARSDnJlcGVhdGVkVWludDY0EicKD3JlcGVhdGVkX3NpbnQzMhgjIAMoEVIOcmVwZWF0ZWRTaW50MzISJwoPcmVwZWF0ZWRfc2ludDY0GCQgAygSUg5yZXBlYXRlZFNpbnQ2NBIpChByZXBlYXRlZF9maXhlZDMyGCUgAygHUg9yZXBlYXRlZEZpeGVkMzISKQoQcmVwZWF0ZWRfZml4ZWQ2NBgmIAMoBlIPcmVwZWF0ZWRGaXhlZDY0EisKEXJlcGVhdGVkX3NmaXhlZDMyGCcgAygPUhByZXBlYXRlZFNmaXhlZDMyEisKEXJlcGVhdGVkX3NmaXhlZDY0GCggAygQUhByZXBlYXRlZFNmaXhlZDY0EiUKDnJlcGVhdGVkX2Zsb2F0GCkgAygCUg1yZXBlYXRlZEZsb2F0EicKD3JlcGVhdGVkX2RvdWJsZRgqIAMoAVIOcmVwZWF0ZWREb3VibGUSIwoNcmVwZWF0ZWRfYm9vbBgrIAMoCFIMcmVwZWF0ZWRCb29sEicKD3JlcGVhdGVkX3N0cmluZxgsIAMoCVIOcmVwZWF0ZWRTdHJpbmcSJQoOcmVwZWF0ZWRfYnl0ZXMYLSADKAxSDXJlcGVhdGVkQnl0ZXMSdwoXcmVwZWF0ZWRfbmVzdGVkX21lc3NhZ2UYMCADKAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVzc2FnZVIVcmVwZWF0ZWROZXN0ZWRNZXNzYWdlEm0KGHJlcGVhdGVkX2ZvcmVpZ25fbWVzc2FnZRgxIAMoCzIzLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25NZXNzYWdlUHJvdG8yUhZyZXBlYXRlZEZvcmVpZ25NZXNzYWdlEm4KFHJlcGVhdGVkX25lc3RlZF9lbnVtGDMgAygOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZEVudW1SEnJlcGVhdGVkTmVzdGVkRW51bRJkChVyZXBlYXRlZF9mb3JlaWduX2VudW0YNCADKA4yMC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduRW51bVByb3RvMlITcmVwZWF0ZWRGb3JlaWduRW51bRI2ChVyZXBlYXRlZF9zdHJpbmdfcGllY2UYNiADKAlCAggCUhNyZXBlYXRlZFN0cmluZ1BpZWNlEicKDXJlcGVhdGVkX2NvcmQYNyADKAlCAggBUgxyZXBlYXRlZENvcmQSJQoMcGFja2VkX2ludDMyGEsgAygFQgIQAVILcGFja2VkSW50MzISJQoMcGFja2VkX2ludDY0GEwgAygDQgIQAVILcGFja2VkSW50NjQSJwoNcGFja2VkX3VpbnQzMhhNIAMoDUICEAFSDHBhY2tlZFVpbnQzMhInCg1wYWNrZWRfdWludDY0GE4gAygEQgIQAVIMcGFja2VkVWludDY0EicKDXBhY2tlZF9zaW50MzIYTyADKBFCAhABUgxwYWNrZWRTaW50MzISJwoNcGFja2VkX3NpbnQ2NBhQIAMoEkICEAFSDHBhY2tlZFNpbnQ2NBIpCg5wYWNrZWRfZml4ZWQzMhhRIAMoB0ICEAFSDXBhY2tlZEZpeGVkMzISKQoOcGFja2VkX2ZpeGVkNjQYUiADKAZCAhABUg1wYWNrZWRGaXhlZDY0EisKD3BhY2tlZF9zZml4ZWQzMhhTIAMoD0ICEAFSDnBhY2tlZFNmaXhlZDMyEisKD3BhY2tlZF9zZml4ZWQ2NBhUIAMoEEICEAFSDnBhY2tlZFNmaXhlZDY0EiUKDHBhY2tlZF9mbG9hdBhVIAMoAkICEAFSC3BhY2tlZEZsb2F0EicKDXBhY2tlZF9kb3VibGUYViADKAFCAhABUgxwYWNrZWREb3VibGUSIwoLcGFja2VkX2Jvb2wYVyADKAhCAhABUgpwYWNrZWRCb29sEm4KEnBhY2tlZF9uZXN0ZWRfZW51bRhYIAMoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRFbnVtQgIQAVIQcGFja2VkTmVzdGVkRW51bRIpCg51bnBhY2tlZF9pbnQzMhhZIAMoBUICEABSDXVucGFja2VkSW50MzISKQoOdW5wYWNrZWRfaW50NjQYWiADKANCAhAAUg11bnBhY2tlZEludDY0EisKD3VucGFja2VkX3VpbnQzMhhbIAMoDUICEABSDnVucGFja2VkVWludDMyEisKD3VucGFja2VkX3VpbnQ2NBhcIAMoBEICEABSDnVucGFja2VkVWludDY0EisKD3VucGFja2VkX3NpbnQzMhhdIAMoEUICEABSDnVucGFja2VkU2ludDMyEisKD3VucGFja2VkX3NpbnQ2NBheIAMoEkICEABSDnVucGFja2VkU2ludDY0Ei0KEHVucGFja2VkX2ZpeGVkMzIYXyADKAdCAhAAUg91bnBhY2tlZEZpeGVkMzISLQoQdW5wYWNrZWRfZml4ZWQ2NBhgIAMoBkICEABSD3VucGFja2VkRml4ZWQ2NBIvChF1bnBhY2tlZF9zZml4ZWQzMhhhIAMoD0ICEABSEHVucGFja2VkU2ZpeGVkMzISLwoRdW5wYWNrZWRfc2ZpeGVkNjQYYiADKBBCAhAAUhB1bnBhY2tlZFNmaXhlZDY0EikKDnVucGFja2VkX2Zsb2F0GGMgAygCQgIQAFINdW5wYWNrZWRGbG9hdBIrCg91bnBhY2tlZF9kb3VibGUYZCADKAFCAhAAUg51bnBhY2tlZERvdWJsZRInCg11bnBhY2tlZF9ib29sGGUgAygIQgIQAFIMdW5wYWNrZWRCb29sEnIKFHVucGFja2VkX25lc3RlZF9lbnVtGGYgAygOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZEVudW1CAhAAUhJ1bnBhY2tlZE5lc3RlZEVudW0SbAoPbWFwX2ludDMyX2ludDMyGDggAygLMkQucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcEludDMySW50MzJFbnRyeVINbWFwSW50MzJJbnQzMhJsCg9tYXBfaW50NjRfaW50NjQYOSADKAsyRC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwSW50NjRJbnQ2NEVudHJ5Ug1tYXBJbnQ2NEludDY0EnIKEW1hcF91aW50MzJfdWludDMyGDogAygLMkYucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFVpbnQzMlVpbnQzMkVudHJ5Ug9tYXBVaW50MzJVaW50MzIScgoRbWFwX3VpbnQ2NF91aW50NjQYOyADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwVWludDY0VWludDY0RW50cnlSD21hcFVpbnQ2NFVpbnQ2NBJyChFtYXBfc2ludDMyX3NpbnQzMhg8IAMoCzJGLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTaW50MzJTaW50MzJFbnRyeVIPbWFwU2ludDMyU2ludDMyEnIKEW1hcF9zaW50NjRfc2ludDY0GD0gAygLMkYucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFNpbnQ2NFNpbnQ2NEVudHJ5Ug9tYXBTaW50NjRTaW50NjQSeAoTbWFwX2ZpeGVkMzJfZml4ZWQzMhg+IAMoCzJILnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBGaXhlZDMyRml4ZWQzMkVudHJ5UhFtYXBGaXhlZDMyRml4ZWQzMhJ4ChNtYXBfZml4ZWQ2NF9maXhlZDY0GD8gAygLMkgucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcEZpeGVkNjRGaXhlZDY0RW50cnlSEW1hcEZpeGVkNjRGaXhlZDY0En4KFW1hcF9zZml4ZWQzMl9zZml4ZWQzMhhAIAMoCzJKLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTZml4ZWQzMlNmaXhlZDMyRW50cnlSE21hcFNmaXhlZDMyU2ZpeGVkMzISfgoVbWFwX3NmaXhlZDY0X3NmaXhlZDY0GEEgAygLMkoucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFNmaXhlZDY0U2ZpeGVkNjRFbnRyeVITbWFwU2ZpeGVkNjRTZml4ZWQ2NBJsCg9tYXBfaW50MzJfZmxvYXQYQiADKAsyRC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwSW50MzJGbG9hdEVudHJ5Ug1tYXBJbnQzMkZsb2F0Em8KEG1hcF9pbnQzMl9kb3VibGUYQyADKAsyRS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwSW50MzJEb3VibGVFbnRyeVIObWFwSW50MzJEb3VibGUSZgoNbWFwX2Jvb2xfYm9vbBhEIAMoCzJCLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBCb29sQm9vbEVudHJ5UgttYXBCb29sQm9vbBJyChFtYXBfc3RyaW5nX3N0cmluZxhFIAMoCzJGLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTdHJpbmdTdHJpbmdFbnRyeVIPbWFwU3RyaW5nU3RyaW5nEm8KEG1hcF9zdHJpbmdfYnl0ZXMYRiADKAsyRS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwU3RyaW5nQnl0ZXNFbnRyeVIObWFwU3RyaW5nQnl0ZXMSiAEKGW1hcF9zdHJpbmdfbmVzdGVkX21lc3NhZ2UYRyADKAsyTS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwU3RyaW5nTmVzdGVkTWVzc2FnZUVudHJ5UhZtYXBTdHJpbmdOZXN0ZWRNZXNzYWdlEosBChptYXBfc3RyaW5nX2ZvcmVpZ25fbWVzc2FnZRhIIAMoCzJOLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTdHJpbmdGb3JlaWduTWVzc2FnZUVudHJ5UhdtYXBTdHJpbmdGb3JlaWduTWVzc2FnZRJ/ChZtYXBfc3RyaW5nX25lc3RlZF9lbnVtGEkgAygLMkoucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFN0cmluZ05lc3RlZEVudW1FbnRyeVITbWFwU3RyaW5nTmVzdGVkRW51bRKCAQoXbWFwX3N0cmluZ19mb3JlaWduX2VudW0YSiADKAsySy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwU3RyaW5nRm9yZWlnbkVudW1FbnRyeVIUbWFwU3RyaW5nRm9yZWlnbkVudW0SIwoMb25lb2ZfdWludDMyGG8gASgNSABSC29uZW9mVWludDMyEnMKFG9uZW9mX25lc3RlZF9tZXNzYWdlGHAgASgLMj8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZE1lc3NhZ2VIAFISb25lb2ZOZXN0ZWRNZXNzYWdlEiMKDG9uZW9mX3N0cmluZxhxIAEoCUgAUgtvbmVvZlN0cmluZxIhCgtvbmVvZl9ieXRlcxhyIAEoDEgAUgpvbmVvZkJ5dGVzEh8KCm9uZW9mX2Jvb2wYcyABKAhIAFIJb25lb2ZCb29sEiMKDG9uZW9mX3VpbnQ2NBh0IAEoBEgAUgtvbmVvZlVpbnQ2NBIhCgtvbmVvZl9mbG9hdBh1IAEoAkgAUgpvbmVvZkZsb2F0EiMKDG9uZW9mX2RvdWJsZRh2IAEoAUgAUgtvbmVvZkRvdWJsZRJdCgpvbmVvZl9lbnVtGHcgASgOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZEVudW1IAFIJb25lb2ZFbnVtEksKBGRhdGEYyQEgASgKMjYucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLkRhdGFSBGRhdGESHwoKZmllbGRuYW1lMRiRAyABKAVSCmZpZWxkbmFtZTESIAoLZmllbGRfbmFtZTIYkgMgASgFUgpmaWVsZE5hbWUyEiEKDF9maWVsZF9uYW1lMxiTAyABKAVSCkZpZWxkTmFtZTMSIgoNZmllbGRfX25hbWU0XxiUAyABKAVSCmZpZWxkTmFtZTQSIQoLZmllbGQwbmFtZTUYlQMgASgFUgtmaWVsZDBuYW1lNRIjCg1maWVsZF8wX25hbWU2GJYDIAEoBVILZmllbGQwTmFtZTYSHwoKZmllbGROYW1lNxiXAyABKAVSCmZpZWxkTmFtZTcSHwoKRmllbGROYW1lOBiYAyABKAVSCkZpZWxkTmFtZTgSIAoLZmllbGRfTmFtZTkYmQMgASgFUgpmaWVsZE5hbWU5EiIKDEZpZWxkX05hbWUxMBiaAyABKAVSC0ZpZWxkTmFtZTEwEiIKDEZJRUxEX05BTUUxMRibAyABKAVSC0ZJRUxETkFNRTExEiIKDEZJRUxEX25hbWUxMhicAyABKAVSC0ZJRUxETmFtZTEyEiQKDl9fZmllbGRfbmFtZTEzGJ0DIAEoBVILRmllbGROYW1lMTMSJAoOX19GaWVsZF9uYW1lMTQYngMgASgFUgtGaWVsZE5hbWUxNBIjCg1maWVsZF9fbmFtZTE1GJ8DIAEoBVILZmllbGROYW1lMTUSIwoNZmllbGRfX05hbWUxNhigAyABKAVSC2ZpZWxkTmFtZTE2EiQKDmZpZWxkX25hbWUxN19fGKEDIAEoBVILZmllbGROYW1lMTcSJAoORmllbGRfbmFtZTE4X18YogMgASgFUgtGaWVsZE5hbWUxOBpyCg1OZXN0ZWRNZXNzYWdlEgwKAWEYASABKAVSAWESUwoLY29yZWN1cnNpdmUYAiABKAsyMS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzJSC2NvcmVjdXJzaXZlGkAKEk1hcEludDMySW50MzJFbnRyeRIQCgNrZXkYASABKAVSA2tleRIUCgV2YWx1ZRgCIAEoBVIFdmFsdWU6AjgBGkAKEk1hcEludDY0SW50NjRFbnRyeRIQCgNrZXkYASABKANSA2tleRIUCgV2YWx1ZRgCIAEoA1IFdmFsdWU6AjgBGkIKFE1hcFVpbnQzMlVpbnQzMkVudHJ5EhAKA2tleRgBIAEoDVIDa2V5EhQKBXZhbHVlGAIgASgNUgV2YWx1ZToCOAEaQgoUTWFwVWludDY0VWludDY0RW50cnkSEAoDa2V5GAEgASgEUgNrZXkSFAoFdmFsdWUYAiABKARSBXZhbHVlOgI4ARpCChRNYXBTaW50MzJTaW50MzJFbnRyeRIQCgNrZXkYASABKBFSA2tleRIUCgV2YWx1ZRgCIAEoEVIFdmFsdWU6AjgBGkIKFE1hcFNpbnQ2NFNpbnQ2NEVudHJ5EhAKA2tleRgBIAEoElIDa2V5EhQKBXZhbHVlGAIgASgSUgV2YWx1ZToCOAEaRAoWTWFwRml4ZWQzMkZpeGVkMzJFbnRyeRIQCgNrZXkYASABKAdSA2tleRIUCgV2YWx1ZRgCIAEoB1IFdmFsdWU6AjgBGkQKFk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSEAoDa2V5GAEgASgGUgNrZXkSFAoFdmFsdWUYAiABKAZSBXZhbHVlOgI4ARpGChhNYXBTZml4ZWQzMlNmaXhlZDMyRW50cnkSEAoDa2V5GAEgASgPUgNrZXkSFAoFdmFsdWUYAiABKA9SBXZhbHVlOgI4ARpGChhNYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkSEAoDa2V5GAEgASgQUgNrZXkSFAoFdmFsdWUYAiABKBBSBXZhbHVlOgI4ARpAChJNYXBJbnQzMkZsb2F0RW50cnkSEAoDa2V5GAEgASgFUgNrZXkSFAoFdmFsdWUYAiABKAJSBXZhbHVlOgI4ARpBChNNYXBJbnQzMkRvdWJsZUVudHJ5EhAKA2tleRgBIAEoBVIDa2V5EhQKBXZhbHVlGAIgASgBUgV2YWx1ZToCOAEaPgoQTWFwQm9vbEJvb2xFbnRyeRIQCgNrZXkYASABKAhSA2tleRIUCgV2YWx1ZRgCIAEoCFIFdmFsdWU6AjgBGkIKFE1hcFN0cmluZ1N0cmluZ0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgJUgV2YWx1ZToCOAEaQQoTTWFwU3RyaW5nQnl0ZXNFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoDFIFdmFsdWU6AjgBGooBChtNYXBTdHJpbmdOZXN0ZWRNZXNzYWdlRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSVQoFdmFsdWUYAiABKAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVzc2FnZVIFdmFsdWU6AjgBGn8KHE1hcFN0cmluZ0ZvcmVpZ25NZXNzYWdlRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSSQoFdmFsdWUYAiABKAsyMy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduTWVzc2FnZVByb3RvMlIFdmFsdWU6AjgBGoQBChhNYXBTdHJpbmdOZXN0ZWRFbnVtRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSUgoFdmFsdWUYAiABKA4yPC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkRW51bVIFdmFsdWU6AjgBGnkKGU1hcFN0cmluZ0ZvcmVpZ25FbnVtRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSRgoFdmFsdWUYAiABKA4yMC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduRW51bVByb3RvMlIFdmFsdWU6AjgBGkwKBERhdGESIAoLZ3JvdXBfaW50MzIYygEgASgFUgpncm91cEludDMyEiIKDGdyb3VwX3VpbnQzMhjLASABKA1SC2dyb3VwVWludDMyGiEKEU1lc3NhZ2VTZXRDb3JyZWN0KggIBBD/////BzoCCAEa+gEKG01lc3NhZ2VTZXRDb3JyZWN0RXh0ZW5zaW9uMRIQCgNzdHIYGSABKAlSA3N0cjLIAQoVbWVzc2FnZV9zZXRfZXh0ZW5zaW9uEkMucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRDb3JyZWN0GPm7XiABKAsyTS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWVzc2FnZVNldENvcnJlY3RFeHRlbnNpb24xUhNtZXNzYWdlU2V0RXh0ZW5zaW9uGvcBChtNZXNzYWdlU2V0Q29ycmVjdEV4dGVuc2lvbjISDAoBaRgJIAEoBVIBaTLJAQoVbWVzc2FnZV9zZXRfZXh0ZW5zaW9uEkMucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRDb3JyZWN0GJCz/AEgASgLMk0ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRDb3JyZWN0RXh0ZW5zaW9uMlITbWVzc2FnZVNldEV4dGVuc2lvbiI5CgpOZXN0ZWRFbnVtEgcKA0ZPTxAAEgcKA0JBUhABEgcKA0JBWhACEhAKA05FRxD///////////8BKgUIeBDJAUINCgtvbmVvZl9maWVsZEoGCOgHEJBO'); + 'ChJUZXN0QWxsVHlwZXNQcm90bzISJQoOb3B0aW9uYWxfaW50MzIYASABKAVSDW9wdGlvbmFsSW' + '50MzISJQoOb3B0aW9uYWxfaW50NjQYAiABKANSDW9wdGlvbmFsSW50NjQSJwoPb3B0aW9uYWxf' + 'dWludDMyGAMgASgNUg5vcHRpb25hbFVpbnQzMhInCg9vcHRpb25hbF91aW50NjQYBCABKARSDm' + '9wdGlvbmFsVWludDY0EicKD29wdGlvbmFsX3NpbnQzMhgFIAEoEVIOb3B0aW9uYWxTaW50MzIS' + 'JwoPb3B0aW9uYWxfc2ludDY0GAYgASgSUg5vcHRpb25hbFNpbnQ2NBIpChBvcHRpb25hbF9maX' + 'hlZDMyGAcgASgHUg9vcHRpb25hbEZpeGVkMzISKQoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBlIP' + 'b3B0aW9uYWxGaXhlZDY0EisKEW9wdGlvbmFsX3NmaXhlZDMyGAkgASgPUhBvcHRpb25hbFNmaX' + 'hlZDMyEisKEW9wdGlvbmFsX3NmaXhlZDY0GAogASgQUhBvcHRpb25hbFNmaXhlZDY0EiUKDm9w' + 'dGlvbmFsX2Zsb2F0GAsgASgCUg1vcHRpb25hbEZsb2F0EicKD29wdGlvbmFsX2RvdWJsZRgMIA' + 'EoAVIOb3B0aW9uYWxEb3VibGUSIwoNb3B0aW9uYWxfYm9vbBgNIAEoCFIMb3B0aW9uYWxCb29s' + 'EicKD29wdGlvbmFsX3N0cmluZxgOIAEoCVIOb3B0aW9uYWxTdHJpbmcSJQoOb3B0aW9uYWxfYn' + 'l0ZXMYDyABKAxSDW9wdGlvbmFsQnl0ZXMSdwoXb3B0aW9uYWxfbmVzdGVkX21lc3NhZ2UYEiAB' + 'KAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTm' + 'VzdGVkTWVzc2FnZVIVb3B0aW9uYWxOZXN0ZWRNZXNzYWdlEm0KGG9wdGlvbmFsX2ZvcmVpZ25f' + 'bWVzc2FnZRgTIAEoCzIzLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25NZX' + 'NzYWdlUHJvdG8yUhZvcHRpb25hbEZvcmVpZ25NZXNzYWdlEm4KFG9wdGlvbmFsX25lc3RlZF9l' + 'bnVtGBUgASgOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUH' + 'JvdG8yLk5lc3RlZEVudW1SEm9wdGlvbmFsTmVzdGVkRW51bRJkChVvcHRpb25hbF9mb3JlaWdu' + 'X2VudW0YFiABKA4yMC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduRW51bV' + 'Byb3RvMlITb3B0aW9uYWxGb3JlaWduRW51bRI2ChVvcHRpb25hbF9zdHJpbmdfcGllY2UYGCAB' + 'KAlCAggCUhNvcHRpb25hbFN0cmluZ1BpZWNlEicKDW9wdGlvbmFsX2NvcmQYGSABKAlCAggBUg' + 'xvcHRpb25hbENvcmQSXgoRcmVjdXJzaXZlX21lc3NhZ2UYGyABKAsyMS5wcm90b2J1Zl90ZXN0' + 'X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzJSEHJlY3Vyc2l2ZU1lc3NhZ2USJQ' + 'oOcmVwZWF0ZWRfaW50MzIYHyADKAVSDXJlcGVhdGVkSW50MzISJQoOcmVwZWF0ZWRfaW50NjQY' + 'ICADKANSDXJlcGVhdGVkSW50NjQSJwoPcmVwZWF0ZWRfdWludDMyGCEgAygNUg5yZXBlYXRlZF' + 'VpbnQzMhInCg9yZXBlYXRlZF91aW50NjQYIiADKARSDnJlcGVhdGVkVWludDY0EicKD3JlcGVh' + 'dGVkX3NpbnQzMhgjIAMoEVIOcmVwZWF0ZWRTaW50MzISJwoPcmVwZWF0ZWRfc2ludDY0GCQgAy' + 'gSUg5yZXBlYXRlZFNpbnQ2NBIpChByZXBlYXRlZF9maXhlZDMyGCUgAygHUg9yZXBlYXRlZEZp' + 'eGVkMzISKQoQcmVwZWF0ZWRfZml4ZWQ2NBgmIAMoBlIPcmVwZWF0ZWRGaXhlZDY0EisKEXJlcG' + 'VhdGVkX3NmaXhlZDMyGCcgAygPUhByZXBlYXRlZFNmaXhlZDMyEisKEXJlcGVhdGVkX3NmaXhl' + 'ZDY0GCggAygQUhByZXBlYXRlZFNmaXhlZDY0EiUKDnJlcGVhdGVkX2Zsb2F0GCkgAygCUg1yZX' + 'BlYXRlZEZsb2F0EicKD3JlcGVhdGVkX2RvdWJsZRgqIAMoAVIOcmVwZWF0ZWREb3VibGUSIwoN' + 'cmVwZWF0ZWRfYm9vbBgrIAMoCFIMcmVwZWF0ZWRCb29sEicKD3JlcGVhdGVkX3N0cmluZxgsIA' + 'MoCVIOcmVwZWF0ZWRTdHJpbmcSJQoOcmVwZWF0ZWRfYnl0ZXMYLSADKAxSDXJlcGVhdGVkQnl0' + 'ZXMSdwoXcmVwZWF0ZWRfbmVzdGVkX21lc3NhZ2UYMCADKAsyPy5wcm90b2J1Zl90ZXN0X21lc3' + 'NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTmVzdGVkTWVzc2FnZVIVcmVwZWF0ZWRO' + 'ZXN0ZWRNZXNzYWdlEm0KGHJlcGVhdGVkX2ZvcmVpZ25fbWVzc2FnZRgxIAMoCzIzLnByb3RvYn' + 'VmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25NZXNzYWdlUHJvdG8yUhZyZXBlYXRlZEZv' + 'cmVpZ25NZXNzYWdlEm4KFHJlcGVhdGVkX25lc3RlZF9lbnVtGDMgAygOMjwucHJvdG9idWZfdG' + 'VzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZEVudW1SEnJlcGVh' + 'dGVkTmVzdGVkRW51bRJkChVyZXBlYXRlZF9mb3JlaWduX2VudW0YNCADKA4yMC5wcm90b2J1Zl' + '90ZXN0X21lc3NhZ2VzLnByb3RvMi5Gb3JlaWduRW51bVByb3RvMlITcmVwZWF0ZWRGb3JlaWdu' + 'RW51bRI2ChVyZXBlYXRlZF9zdHJpbmdfcGllY2UYNiADKAlCAggCUhNyZXBlYXRlZFN0cmluZ1' + 'BpZWNlEicKDXJlcGVhdGVkX2NvcmQYNyADKAlCAggBUgxyZXBlYXRlZENvcmQSJQoMcGFja2Vk' + 'X2ludDMyGEsgAygFQgIQAVILcGFja2VkSW50MzISJQoMcGFja2VkX2ludDY0GEwgAygDQgIQAV' + 'ILcGFja2VkSW50NjQSJwoNcGFja2VkX3VpbnQzMhhNIAMoDUICEAFSDHBhY2tlZFVpbnQzMhIn' + 'Cg1wYWNrZWRfdWludDY0GE4gAygEQgIQAVIMcGFja2VkVWludDY0EicKDXBhY2tlZF9zaW50Mz' + 'IYTyADKBFCAhABUgxwYWNrZWRTaW50MzISJwoNcGFja2VkX3NpbnQ2NBhQIAMoEkICEAFSDHBh' + 'Y2tlZFNpbnQ2NBIpCg5wYWNrZWRfZml4ZWQzMhhRIAMoB0ICEAFSDXBhY2tlZEZpeGVkMzISKQ' + 'oOcGFja2VkX2ZpeGVkNjQYUiADKAZCAhABUg1wYWNrZWRGaXhlZDY0EisKD3BhY2tlZF9zZml4' + 'ZWQzMhhTIAMoD0ICEAFSDnBhY2tlZFNmaXhlZDMyEisKD3BhY2tlZF9zZml4ZWQ2NBhUIAMoEE' + 'ICEAFSDnBhY2tlZFNmaXhlZDY0EiUKDHBhY2tlZF9mbG9hdBhVIAMoAkICEAFSC3BhY2tlZEZs' + 'b2F0EicKDXBhY2tlZF9kb3VibGUYViADKAFCAhABUgxwYWNrZWREb3VibGUSIwoLcGFja2VkX2' + 'Jvb2wYVyADKAhCAhABUgpwYWNrZWRCb29sEm4KEnBhY2tlZF9uZXN0ZWRfZW51bRhYIAMoDjI8' + 'LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZW' + 'RFbnVtQgIQAVIQcGFja2VkTmVzdGVkRW51bRIpCg51bnBhY2tlZF9pbnQzMhhZIAMoBUICEABS' + 'DXVucGFja2VkSW50MzISKQoOdW5wYWNrZWRfaW50NjQYWiADKANCAhAAUg11bnBhY2tlZEludD' + 'Y0EisKD3VucGFja2VkX3VpbnQzMhhbIAMoDUICEABSDnVucGFja2VkVWludDMyEisKD3VucGFj' + 'a2VkX3VpbnQ2NBhcIAMoBEICEABSDnVucGFja2VkVWludDY0EisKD3VucGFja2VkX3NpbnQzMh' + 'hdIAMoEUICEABSDnVucGFja2VkU2ludDMyEisKD3VucGFja2VkX3NpbnQ2NBheIAMoEkICEABS' + 'DnVucGFja2VkU2ludDY0Ei0KEHVucGFja2VkX2ZpeGVkMzIYXyADKAdCAhAAUg91bnBhY2tlZE' + 'ZpeGVkMzISLQoQdW5wYWNrZWRfZml4ZWQ2NBhgIAMoBkICEABSD3VucGFja2VkRml4ZWQ2NBIv' + 'ChF1bnBhY2tlZF9zZml4ZWQzMhhhIAMoD0ICEABSEHVucGFja2VkU2ZpeGVkMzISLwoRdW5wYW' + 'NrZWRfc2ZpeGVkNjQYYiADKBBCAhAAUhB1bnBhY2tlZFNmaXhlZDY0EikKDnVucGFja2VkX2Zs' + 'b2F0GGMgAygCQgIQAFINdW5wYWNrZWRGbG9hdBIrCg91bnBhY2tlZF9kb3VibGUYZCADKAFCAh' + 'AAUg51bnBhY2tlZERvdWJsZRInCg11bnBhY2tlZF9ib29sGGUgAygIQgIQAFIMdW5wYWNrZWRC' + 'b29sEnIKFHVucGFja2VkX25lc3RlZF9lbnVtGGYgAygOMjwucHJvdG9idWZfdGVzdF9tZXNzYW' + 'dlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZEVudW1CAhAAUhJ1bnBhY2tlZE5l' + 'c3RlZEVudW0SbAoPbWFwX2ludDMyX2ludDMyGDggAygLMkQucHJvdG9idWZfdGVzdF9tZXNzYW' + 'dlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcEludDMySW50MzJFbnRyeVINbWFwSW50' + 'MzJJbnQzMhJsCg9tYXBfaW50NjRfaW50NjQYOSADKAsyRC5wcm90b2J1Zl90ZXN0X21lc3NhZ2' + 'VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwSW50NjRJbnQ2NEVudHJ5Ug1tYXBJbnQ2' + 'NEludDY0EnIKEW1hcF91aW50MzJfdWludDMyGDogAygLMkYucHJvdG9idWZfdGVzdF9tZXNzYW' + 'dlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFVpbnQzMlVpbnQzMkVudHJ5Ug9tYXBV' + 'aW50MzJVaW50MzIScgoRbWFwX3VpbnQ2NF91aW50NjQYOyADKAsyRi5wcm90b2J1Zl90ZXN0X2' + '1lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwVWludDY0VWludDY0RW50cnlS' + 'D21hcFVpbnQ2NFVpbnQ2NBJyChFtYXBfc2ludDMyX3NpbnQzMhg8IAMoCzJGLnByb3RvYnVmX3' + 'Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTaW50MzJTaW50MzJF' + 'bnRyeVIPbWFwU2ludDMyU2ludDMyEnIKEW1hcF9zaW50NjRfc2ludDY0GD0gAygLMkYucHJvdG' + '9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFNpbnQ2NFNp' + 'bnQ2NEVudHJ5Ug9tYXBTaW50NjRTaW50NjQSeAoTbWFwX2ZpeGVkMzJfZml4ZWQzMhg+IAMoCz' + 'JILnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBG' + 'aXhlZDMyRml4ZWQzMkVudHJ5UhFtYXBGaXhlZDMyRml4ZWQzMhJ4ChNtYXBfZml4ZWQ2NF9maX' + 'hlZDY0GD8gAygLMkgucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVz' + 'UHJvdG8yLk1hcEZpeGVkNjRGaXhlZDY0RW50cnlSEW1hcEZpeGVkNjRGaXhlZDY0En4KFW1hcF' + '9zZml4ZWQzMl9zZml4ZWQzMhhAIAMoCzJKLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8y' + 'LlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTZml4ZWQzMlNmaXhlZDMyRW50cnlSE21hcFNmaXhlZD' + 'MyU2ZpeGVkMzISfgoVbWFwX3NmaXhlZDY0X3NmaXhlZDY0GEEgAygLMkoucHJvdG9idWZfdGVz' + 'dF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk1hcFNmaXhlZDY0U2ZpeGVkNj' + 'RFbnRyeVITbWFwU2ZpeGVkNjRTZml4ZWQ2NBJsCg9tYXBfaW50MzJfZmxvYXQYQiADKAsyRC5w' + 'cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwSW50Mz' + 'JGbG9hdEVudHJ5Ug1tYXBJbnQzMkZsb2F0Em8KEG1hcF9pbnQzMl9kb3VibGUYQyADKAsyRS5w' + 'cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwSW50Mz' + 'JEb3VibGVFbnRyeVIObWFwSW50MzJEb3VibGUSZgoNbWFwX2Jvb2xfYm9vbBhEIAMoCzJCLnBy' + 'b3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBCb29sQm' + '9vbEVudHJ5UgttYXBCb29sQm9vbBJyChFtYXBfc3RyaW5nX3N0cmluZxhFIAMoCzJGLnByb3Rv' + 'YnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTdHJpbmdTdH' + 'JpbmdFbnRyeVIPbWFwU3RyaW5nU3RyaW5nEm8KEG1hcF9zdHJpbmdfYnl0ZXMYRiADKAsyRS5w' + 'cm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwU3RyaW' + '5nQnl0ZXNFbnRyeVIObWFwU3RyaW5nQnl0ZXMSiAEKGW1hcF9zdHJpbmdfbmVzdGVkX21lc3Nh' + 'Z2UYRyADKAsyTS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm' + '90bzIuTWFwU3RyaW5nTmVzdGVkTWVzc2FnZUVudHJ5UhZtYXBTdHJpbmdOZXN0ZWRNZXNzYWdl' + 'EosBChptYXBfc3RyaW5nX2ZvcmVpZ25fbWVzc2FnZRhIIAMoCzJOLnByb3RvYnVmX3Rlc3RfbW' + 'Vzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NYXBTdHJpbmdGb3JlaWduTWVzc2Fn' + 'ZUVudHJ5UhdtYXBTdHJpbmdGb3JlaWduTWVzc2FnZRJ/ChZtYXBfc3RyaW5nX25lc3RlZF9lbn' + 'VtGEkgAygLMkoucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJv' + 'dG8yLk1hcFN0cmluZ05lc3RlZEVudW1FbnRyeVITbWFwU3RyaW5nTmVzdGVkRW51bRKCAQoXbW' + 'FwX3N0cmluZ19mb3JlaWduX2VudW0YSiADKAsySy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnBy' + 'b3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWFwU3RyaW5nRm9yZWlnbkVudW1FbnRyeVIUbWFwU3' + 'RyaW5nRm9yZWlnbkVudW0SIwoMb25lb2ZfdWludDMyGG8gASgNSABSC29uZW9mVWludDMyEnMK' + 'FG9uZW9mX25lc3RlZF9tZXNzYWdlGHAgASgLMj8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm' + '90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLk5lc3RlZE1lc3NhZ2VIAFISb25lb2ZOZXN0ZWRNZXNz' + 'YWdlEiMKDG9uZW9mX3N0cmluZxhxIAEoCUgAUgtvbmVvZlN0cmluZxIhCgtvbmVvZl9ieXRlcx' + 'hyIAEoDEgAUgpvbmVvZkJ5dGVzEh8KCm9uZW9mX2Jvb2wYcyABKAhIAFIJb25lb2ZCb29sEiMK' + 'DG9uZW9mX3VpbnQ2NBh0IAEoBEgAUgtvbmVvZlVpbnQ2NBIhCgtvbmVvZl9mbG9hdBh1IAEoAk' + 'gAUgpvbmVvZkZsb2F0EiMKDG9uZW9mX2RvdWJsZRh2IAEoAUgAUgtvbmVvZkRvdWJsZRJdCgpv' + 'bmVvZl9lbnVtGHcgASgOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbF' + 'R5cGVzUHJvdG8yLk5lc3RlZEVudW1IAFIJb25lb2ZFbnVtEksKBGRhdGEYyQEgASgKMjYucHJv' + 'dG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVGVzdEFsbFR5cGVzUHJvdG8yLkRhdGFSBGRhdG' + 'ESeAoTbXVsdGl3b3JkZ3JvdXBmaWVsZBjMASABKAoyRS5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz' + 'LnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTXVsdGlXb3JkR3JvdXBGaWVsZFITbXVsdGl3b3' + 'JkZ3JvdXBmaWVsZBIwCg1kZWZhdWx0X2ludDMyGPEBIAEoBToKLTEyMzQ1Njc4OVIMZGVmYXVs' + 'dEludDMyEjoKDWRlZmF1bHRfaW50NjQY8gEgASgDOhQtOTEyMzQ1Njc4OTEyMzQ1Njc4OVIMZG' + 'VmYXVsdEludDY0EjIKDmRlZmF1bHRfdWludDMyGPMBIAEoDToKMjEyMzQ1Njc4OVINZGVmYXVs' + 'dFVpbnQzMhI8Cg5kZWZhdWx0X3VpbnQ2NBj0ASABKAQ6FDEwMTIzNDU2Nzg5MTIzNDU2Nzg5Ug' + '1kZWZhdWx0VWludDY0EjIKDmRlZmF1bHRfc2ludDMyGPUBIAEoEToKLTEyMzQ1Njc4OVINZGVm' + 'YXVsdFNpbnQzMhI8Cg5kZWZhdWx0X3NpbnQ2NBj2ASABKBI6FC05MTIzNDU2Nzg5MTIzNDU2Nz' + 'g5Ug1kZWZhdWx0U2ludDY0EjQKD2RlZmF1bHRfZml4ZWQzMhj3ASABKAc6CjIxMjM0NTY3ODlS' + 'DmRlZmF1bHRGaXhlZDMyEj4KD2RlZmF1bHRfZml4ZWQ2NBj4ASABKAY6FDEwMTIzNDU2Nzg5MT' + 'IzNDU2Nzg5Ug5kZWZhdWx0Rml4ZWQ2NBI2ChBkZWZhdWx0X3NmaXhlZDMyGPkBIAEoDzoKLTEy' + 'MzQ1Njc4OVIPZGVmYXVsdFNmaXhlZDMyEkAKEGRlZmF1bHRfc2ZpeGVkNjQY+gEgASgQOhQtOT' + 'EyMzQ1Njc4OTEyMzQ1Njc4OVIPZGVmYXVsdFNmaXhlZDY0EisKDWRlZmF1bHRfZmxvYXQY+wEg' + 'ASgCOgU5ZSswOVIMZGVmYXVsdEZsb2F0Ei0KDmRlZmF1bHRfZG91YmxlGPwBIAEoAToFN2UrMj' + 'JSDWRlZmF1bHREb3VibGUSKAoMZGVmYXVsdF9ib29sGP0BIAEoCDoEdHJ1ZVILZGVmYXVsdEJv' + 'b2wSLwoOZGVmYXVsdF9zdHJpbmcY/gEgASgJOgdSb3NlYnVkUg1kZWZhdWx0U3RyaW5nEiwKDW' + 'RlZmF1bHRfYnl0ZXMY/wEgASgMOgZqb3NodWFSDGRlZmF1bHRCeXRlcxIfCgpmaWVsZG5hbWUx' + 'GJEDIAEoBVIKZmllbGRuYW1lMRIgCgtmaWVsZF9uYW1lMhiSAyABKAVSCmZpZWxkTmFtZTISIQ' + 'oMX2ZpZWxkX25hbWUzGJMDIAEoBVIKRmllbGROYW1lMxIiCg1maWVsZF9fbmFtZTRfGJQDIAEo' + 'BVIKZmllbGROYW1lNBIhCgtmaWVsZDBuYW1lNRiVAyABKAVSC2ZpZWxkMG5hbWU1EiMKDWZpZW' + 'xkXzBfbmFtZTYYlgMgASgFUgtmaWVsZDBOYW1lNhIfCgpmaWVsZE5hbWU3GJcDIAEoBVIKZmll' + 'bGROYW1lNxIfCgpGaWVsZE5hbWU4GJgDIAEoBVIKRmllbGROYW1lOBIgCgtmaWVsZF9OYW1lOR' + 'iZAyABKAVSCmZpZWxkTmFtZTkSIgoMRmllbGRfTmFtZTEwGJoDIAEoBVILRmllbGROYW1lMTAS' + 'IgoMRklFTERfTkFNRTExGJsDIAEoBVILRklFTEROQU1FMTESIgoMRklFTERfbmFtZTEyGJwDIA' + 'EoBVILRklFTEROYW1lMTISJAoOX19maWVsZF9uYW1lMTMYnQMgASgFUgtGaWVsZE5hbWUxMxIk' + 'Cg5fX0ZpZWxkX25hbWUxNBieAyABKAVSC0ZpZWxkTmFtZTE0EiMKDWZpZWxkX19uYW1lMTUYnw' + 'MgASgFUgtmaWVsZE5hbWUxNRIjCg1maWVsZF9fTmFtZTE2GKADIAEoBVILZmllbGROYW1lMTYS' + 'JAoOZmllbGRfbmFtZTE3X18YoQMgASgFUgtmaWVsZE5hbWUxNxIkCg5GaWVsZF9uYW1lMThfXx' + 'iiAyABKAVSC0ZpZWxkTmFtZTE4GnIKDU5lc3RlZE1lc3NhZ2USDAoBYRgBIAEoBVIBYRJTCgtj' + 'b3JlY3Vyc2l2ZRgCIAEoCzIxLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbG' + 'xUeXBlc1Byb3RvMlILY29yZWN1cnNpdmUaQAoSTWFwSW50MzJJbnQzMkVudHJ5EhAKA2tleRgB' + 'IAEoBVIDa2V5EhQKBXZhbHVlGAIgASgFUgV2YWx1ZToCOAEaQAoSTWFwSW50NjRJbnQ2NEVudH' + 'J5EhAKA2tleRgBIAEoA1IDa2V5EhQKBXZhbHVlGAIgASgDUgV2YWx1ZToCOAEaQgoUTWFwVWlu' + 'dDMyVWludDMyRW50cnkSEAoDa2V5GAEgASgNUgNrZXkSFAoFdmFsdWUYAiABKA1SBXZhbHVlOg' + 'I4ARpCChRNYXBVaW50NjRVaW50NjRFbnRyeRIQCgNrZXkYASABKARSA2tleRIUCgV2YWx1ZRgC' + 'IAEoBFIFdmFsdWU6AjgBGkIKFE1hcFNpbnQzMlNpbnQzMkVudHJ5EhAKA2tleRgBIAEoEVIDa2' + 'V5EhQKBXZhbHVlGAIgASgRUgV2YWx1ZToCOAEaQgoUTWFwU2ludDY0U2ludDY0RW50cnkSEAoD' + 'a2V5GAEgASgSUgNrZXkSFAoFdmFsdWUYAiABKBJSBXZhbHVlOgI4ARpEChZNYXBGaXhlZDMyRm' + 'l4ZWQzMkVudHJ5EhAKA2tleRgBIAEoB1IDa2V5EhQKBXZhbHVlGAIgASgHUgV2YWx1ZToCOAEa' + 'RAoWTWFwRml4ZWQ2NEZpeGVkNjRFbnRyeRIQCgNrZXkYASABKAZSA2tleRIUCgV2YWx1ZRgCIA' + 'EoBlIFdmFsdWU6AjgBGkYKGE1hcFNmaXhlZDMyU2ZpeGVkMzJFbnRyeRIQCgNrZXkYASABKA9S' + 'A2tleRIUCgV2YWx1ZRgCIAEoD1IFdmFsdWU6AjgBGkYKGE1hcFNmaXhlZDY0U2ZpeGVkNjRFbn' + 'RyeRIQCgNrZXkYASABKBBSA2tleRIUCgV2YWx1ZRgCIAEoEFIFdmFsdWU6AjgBGkAKEk1hcElu' + 'dDMyRmxvYXRFbnRyeRIQCgNrZXkYASABKAVSA2tleRIUCgV2YWx1ZRgCIAEoAlIFdmFsdWU6Aj' + 'gBGkEKE01hcEludDMyRG91YmxlRW50cnkSEAoDa2V5GAEgASgFUgNrZXkSFAoFdmFsdWUYAiAB' + 'KAFSBXZhbHVlOgI4ARo+ChBNYXBCb29sQm9vbEVudHJ5EhAKA2tleRgBIAEoCFIDa2V5EhQKBX' + 'ZhbHVlGAIgASgIUgV2YWx1ZToCOAEaQgoUTWFwU3RyaW5nU3RyaW5nRW50cnkSEAoDa2V5GAEg' + 'ASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4ARpBChNNYXBTdHJpbmdCeXRlc0VudH' + 'J5EhAKA2tleRgBIAEoCVIDa2V5EhQKBXZhbHVlGAIgASgMUgV2YWx1ZToCOAEaigEKG01hcFN0' + 'cmluZ05lc3RlZE1lc3NhZ2VFbnRyeRIQCgNrZXkYASABKAlSA2tleRJVCgV2YWx1ZRgCIAEoCz' + 'I/LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0' + 'ZWRNZXNzYWdlUgV2YWx1ZToCOAEafwocTWFwU3RyaW5nRm9yZWlnbk1lc3NhZ2VFbnRyeRIQCg' + 'NrZXkYASABKAlSA2tleRJJCgV2YWx1ZRgCIAEoCzIzLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMu' + 'cHJvdG8yLkZvcmVpZ25NZXNzYWdlUHJvdG8yUgV2YWx1ZToCOAEahAEKGE1hcFN0cmluZ05lc3' + 'RlZEVudW1FbnRyeRIQCgNrZXkYASABKAlSA2tleRJSCgV2YWx1ZRgCIAEoDjI8LnByb3RvYnVm' + 'X3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5OZXN0ZWRFbnVtUgV2YW' + 'x1ZToCOAEaeQoZTWFwU3RyaW5nRm9yZWlnbkVudW1FbnRyeRIQCgNrZXkYASABKAlSA2tleRJG' + 'CgV2YWx1ZRgCIAEoDjIwLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25Fbn' + 'VtUHJvdG8yUgV2YWx1ZToCOAEaTAoERGF0YRIgCgtncm91cF9pbnQzMhjKASABKAVSCmdyb3Vw' + 'SW50MzISIgoMZ3JvdXBfdWludDMyGMsBIAEoDVILZ3JvdXBVaW50MzIaWwoTTXVsdGlXb3JkR3' + 'JvdXBGaWVsZBIgCgtncm91cF9pbnQzMhjNASABKAVSCmdyb3VwSW50MzISIgoMZ3JvdXBfdWlu' + 'dDMyGM4BIAEoDVILZ3JvdXBVaW50MzIaIQoRTWVzc2FnZVNldENvcnJlY3QqCAgEEP////8HOg' + 'IIARr6AQobTWVzc2FnZVNldENvcnJlY3RFeHRlbnNpb24xEhAKA3N0chgZIAEoCVIDc3RyMsgB' + 'ChVtZXNzYWdlX3NldF9leHRlbnNpb24SQy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi' + '5UZXN0QWxsVHlwZXNQcm90bzIuTWVzc2FnZVNldENvcnJlY3QY+bteIAEoCzJNLnByb3RvYnVm' + 'X3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxUeXBlc1Byb3RvMi5NZXNzYWdlU2V0Q29ycm' + 'VjdEV4dGVuc2lvbjFSE21lc3NhZ2VTZXRFeHRlbnNpb24a9wEKG01lc3NhZ2VTZXRDb3JyZWN0' + 'RXh0ZW5zaW9uMhIMCgFpGAkgASgFUgFpMskBChVtZXNzYWdlX3NldF9leHRlbnNpb24SQy5wcm' + '90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsVHlwZXNQcm90bzIuTWVzc2FnZVNl' + 'dENvcnJlY3QYkLP8ASABKAsyTS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QW' + 'xsVHlwZXNQcm90bzIuTWVzc2FnZVNldENvcnJlY3RFeHRlbnNpb24yUhNtZXNzYWdlU2V0RXh0' + 'ZW5zaW9uIjkKCk5lc3RlZEVudW0SBwoDRk9PEAASBwoDQkFSEAESBwoDQkFaEAISEAoDTkVHEP' + '///////////wEqBQh4EMkBQg0KC29uZW9mX2ZpZWxkSgYI6AcQkE4='); + @$core.Deprecated('Use foreignMessageProto2Descriptor instead') const ForeignMessageProto2$json = { '1': 'ForeignMessageProto2', @@ -1017,6 +1354,21 @@ const ForeignMessageProto2$json = { /// Descriptor for `ForeignMessageProto2`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List foreignMessageProto2Descriptor = $convert.base64Decode('ChRGb3JlaWduTWVzc2FnZVByb3RvMhIMCgFjGAEgASgFUgFj'); + +@$core.Deprecated('Use groupFieldDescriptor instead') +const GroupField$json = { + '1': 'GroupField', + '2': [ + {'1': 'group_int32', '3': 122, '4': 1, '5': 5, '10': 'groupInt32'}, + {'1': 'group_uint32', '3': 123, '4': 1, '5': 13, '10': 'groupUint32'}, + ], +}; + +/// Descriptor for `GroupField`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List groupFieldDescriptor = $convert.base64Decode( + 'CgpHcm91cEZpZWxkEh8KC2dyb3VwX2ludDMyGHogASgFUgpncm91cEludDMyEiEKDGdyb3VwX3' + 'VpbnQzMhh7IAEoDVILZ3JvdXBVaW50MzI='); + @$core.Deprecated('Use unknownToTestAllTypesDescriptor instead') const UnknownToTestAllTypes$json = { '1': 'UnknownToTestAllTypes', @@ -1055,4 +1407,466 @@ const UnknownToTestAllTypes_OptionalGroup$json = { /// Descriptor for `UnknownToTestAllTypes`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List unknownToTestAllTypesDescriptor = $convert.base64Decode( - 'ChVVbmtub3duVG9UZXN0QWxsVHlwZXMSJgoOb3B0aW9uYWxfaW50MzIY6QcgASgFUg1vcHRpb25hbEludDMyEigKD29wdGlvbmFsX3N0cmluZxjqByABKAlSDm9wdGlvbmFsU3RyaW5nElsKDm5lc3RlZF9tZXNzYWdlGOsHIAEoCzIzLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcmVpZ25NZXNzYWdlUHJvdG8yUg1uZXN0ZWRNZXNzYWdlEmkKDW9wdGlvbmFsZ3JvdXAY7AcgASgKMkIucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVW5rbm93blRvVGVzdEFsbFR5cGVzLk9wdGlvbmFsR3JvdXBSDW9wdGlvbmFsZ3JvdXASJAoNb3B0aW9uYWxfYm9vbBjuByABKAhSDG9wdGlvbmFsQm9vbBImCg5yZXBlYXRlZF9pbnQzMhjzByADKAVSDXJlcGVhdGVkSW50MzIaHQoNT3B0aW9uYWxHcm91cBIMCgFhGAEgASgFUgFh'); + 'ChVVbmtub3duVG9UZXN0QWxsVHlwZXMSJgoOb3B0aW9uYWxfaW50MzIY6QcgASgFUg1vcHRpb2' + '5hbEludDMyEigKD29wdGlvbmFsX3N0cmluZxjqByABKAlSDm9wdGlvbmFsU3RyaW5nElsKDm5l' + 'c3RlZF9tZXNzYWdlGOsHIAEoCzIzLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLkZvcm' + 'VpZ25NZXNzYWdlUHJvdG8yUg1uZXN0ZWRNZXNzYWdlEmkKDW9wdGlvbmFsZ3JvdXAY7AcgASgK' + 'MkIucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzIuVW5rbm93blRvVGVzdEFsbFR5cGVzLk' + '9wdGlvbmFsR3JvdXBSDW9wdGlvbmFsZ3JvdXASJAoNb3B0aW9uYWxfYm9vbBjuByABKAhSDG9w' + 'dGlvbmFsQm9vbBImCg5yZXBlYXRlZF9pbnQzMhjzByADKAVSDXJlcGVhdGVkSW50MzIaHQoNT3' + 'B0aW9uYWxHcm91cBIMCgFhGAEgASgFUgFh'); + +@$core.Deprecated('Use nullHypothesisProto2Descriptor instead') +const NullHypothesisProto2$json = { + '1': 'NullHypothesisProto2', +}; + +/// Descriptor for `NullHypothesisProto2`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List nullHypothesisProto2Descriptor = + $convert.base64Decode('ChROdWxsSHlwb3RoZXNpc1Byb3RvMg=='); + +@$core.Deprecated('Use enumOnlyProto2Descriptor instead') +const EnumOnlyProto2$json = { + '1': 'EnumOnlyProto2', + '4': [EnumOnlyProto2_Bool$json], +}; + +@$core.Deprecated('Use enumOnlyProto2Descriptor instead') +const EnumOnlyProto2_Bool$json = { + '1': 'Bool', + '2': [ + {'1': 'kFalse', '2': 0}, + {'1': 'kTrue', '2': 1}, + ], +}; + +/// Descriptor for `EnumOnlyProto2`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List enumOnlyProto2Descriptor = $convert.base64Decode( + 'Cg5FbnVtT25seVByb3RvMiIdCgRCb29sEgoKBmtGYWxzZRAAEgkKBWtUcnVlEAE='); + +@$core.Deprecated('Use oneStringProto2Descriptor instead') +const OneStringProto2$json = { + '1': 'OneStringProto2', + '2': [ + {'1': 'data', '3': 1, '4': 1, '5': 9, '10': 'data'}, + ], +}; + +/// Descriptor for `OneStringProto2`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List oneStringProto2Descriptor = $convert + .base64Decode('Cg9PbmVTdHJpbmdQcm90bzISEgoEZGF0YRgBIAEoCVIEZGF0YQ=='); + +@$core.Deprecated('Use protoWithKeywordsDescriptor instead') +const ProtoWithKeywords$json = { + '1': 'ProtoWithKeywords', + '2': [ + {'1': 'inline', '3': 1, '4': 1, '5': 5, '10': 'inline'}, + {'1': 'concept', '3': 2, '4': 1, '5': 9, '10': 'concept'}, + {'1': 'requires', '3': 3, '4': 3, '5': 9, '10': 'requires'}, + ], +}; + +/// Descriptor for `ProtoWithKeywords`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List protoWithKeywordsDescriptor = $convert.base64Decode( + 'ChFQcm90b1dpdGhLZXl3b3JkcxIWCgZpbmxpbmUYASABKAVSBmlubGluZRIYCgdjb25jZXB0GA' + 'IgASgJUgdjb25jZXB0EhoKCHJlcXVpcmVzGAMgAygJUghyZXF1aXJlcw=='); + +@$core.Deprecated('Use testAllRequiredTypesProto2Descriptor instead') +const TestAllRequiredTypesProto2$json = { + '1': 'TestAllRequiredTypesProto2', + '2': [ + {'1': 'required_int32', '3': 1, '4': 2, '5': 5, '10': 'requiredInt32'}, + {'1': 'required_int64', '3': 2, '4': 2, '5': 3, '10': 'requiredInt64'}, + {'1': 'required_uint32', '3': 3, '4': 2, '5': 13, '10': 'requiredUint32'}, + {'1': 'required_uint64', '3': 4, '4': 2, '5': 4, '10': 'requiredUint64'}, + {'1': 'required_sint32', '3': 5, '4': 2, '5': 17, '10': 'requiredSint32'}, + {'1': 'required_sint64', '3': 6, '4': 2, '5': 18, '10': 'requiredSint64'}, + {'1': 'required_fixed32', '3': 7, '4': 2, '5': 7, '10': 'requiredFixed32'}, + {'1': 'required_fixed64', '3': 8, '4': 2, '5': 6, '10': 'requiredFixed64'}, + { + '1': 'required_sfixed32', + '3': 9, + '4': 2, + '5': 15, + '10': 'requiredSfixed32' + }, + { + '1': 'required_sfixed64', + '3': 10, + '4': 2, + '5': 16, + '10': 'requiredSfixed64' + }, + {'1': 'required_float', '3': 11, '4': 2, '5': 2, '10': 'requiredFloat'}, + {'1': 'required_double', '3': 12, '4': 2, '5': 1, '10': 'requiredDouble'}, + {'1': 'required_bool', '3': 13, '4': 2, '5': 8, '10': 'requiredBool'}, + {'1': 'required_string', '3': 14, '4': 2, '5': 9, '10': 'requiredString'}, + {'1': 'required_bytes', '3': 15, '4': 2, '5': 12, '10': 'requiredBytes'}, + { + '1': 'required_nested_message', + '3': 18, + '4': 2, + '5': 11, + '6': + '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedMessage', + '10': 'requiredNestedMessage' + }, + { + '1': 'required_foreign_message', + '3': 19, + '4': 2, + '5': 11, + '6': '.protobuf_test_messages.proto2.ForeignMessageProto2', + '10': 'requiredForeignMessage' + }, + { + '1': 'required_nested_enum', + '3': 21, + '4': 2, + '5': 14, + '6': + '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2.NestedEnum', + '10': 'requiredNestedEnum' + }, + { + '1': 'required_foreign_enum', + '3': 22, + '4': 2, + '5': 14, + '6': '.protobuf_test_messages.proto2.ForeignEnumProto2', + '10': 'requiredForeignEnum' + }, + { + '1': 'required_string_piece', + '3': 24, + '4': 2, + '5': 9, + '8': {'1': 2}, + '10': 'requiredStringPiece', + }, + { + '1': 'required_cord', + '3': 25, + '4': 2, + '5': 9, + '8': {'1': 1}, + '10': 'requiredCord', + }, + { + '1': 'recursive_message', + '3': 27, + '4': 2, + '5': 11, + '6': '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2', + '10': 'recursiveMessage' + }, + { + '1': 'optional_recursive_message', + '3': 28, + '4': 1, + '5': 11, + '6': '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2', + '10': 'optionalRecursiveMessage' + }, + { + '1': 'data', + '3': 201, + '4': 2, + '5': 10, + '6': '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2.Data', + '10': 'data' + }, + { + '1': 'default_int32', + '3': 241, + '4': 2, + '5': 5, + '7': '-123456789', + '10': 'defaultInt32' + }, + { + '1': 'default_int64', + '3': 242, + '4': 2, + '5': 3, + '7': '-9123456789123456789', + '10': 'defaultInt64' + }, + { + '1': 'default_uint32', + '3': 243, + '4': 2, + '5': 13, + '7': '2123456789', + '10': 'defaultUint32' + }, + { + '1': 'default_uint64', + '3': 244, + '4': 2, + '5': 4, + '7': '10123456789123456789', + '10': 'defaultUint64' + }, + { + '1': 'default_sint32', + '3': 245, + '4': 2, + '5': 17, + '7': '-123456789', + '10': 'defaultSint32' + }, + { + '1': 'default_sint64', + '3': 246, + '4': 2, + '5': 18, + '7': '-9123456789123456789', + '10': 'defaultSint64' + }, + { + '1': 'default_fixed32', + '3': 247, + '4': 2, + '5': 7, + '7': '2123456789', + '10': 'defaultFixed32' + }, + { + '1': 'default_fixed64', + '3': 248, + '4': 2, + '5': 6, + '7': '10123456789123456789', + '10': 'defaultFixed64' + }, + { + '1': 'default_sfixed32', + '3': 249, + '4': 2, + '5': 15, + '7': '-123456789', + '10': 'defaultSfixed32' + }, + { + '1': 'default_sfixed64', + '3': 250, + '4': 2, + '5': 16, + '7': '-9123456789123456789', + '10': 'defaultSfixed64' + }, + { + '1': 'default_float', + '3': 251, + '4': 2, + '5': 2, + '7': '9e+09', + '10': 'defaultFloat' + }, + { + '1': 'default_double', + '3': 252, + '4': 2, + '5': 1, + '7': '7e+22', + '10': 'defaultDouble' + }, + { + '1': 'default_bool', + '3': 253, + '4': 2, + '5': 8, + '7': 'true', + '10': 'defaultBool' + }, + { + '1': 'default_string', + '3': 254, + '4': 2, + '5': 9, + '7': 'Rosebud', + '10': 'defaultString' + }, + { + '1': 'default_bytes', + '3': 255, + '4': 2, + '5': 12, + '7': 'joshua', + '10': 'defaultBytes' + }, + ], + '3': [ + TestAllRequiredTypesProto2_NestedMessage$json, + TestAllRequiredTypesProto2_Data$json, + TestAllRequiredTypesProto2_MessageSetCorrect$json, + TestAllRequiredTypesProto2_MessageSetCorrectExtension1$json, + TestAllRequiredTypesProto2_MessageSetCorrectExtension2$json + ], + '4': [TestAllRequiredTypesProto2_NestedEnum$json], + '5': [ + {'1': 120, '2': 201}, + ], + '9': [ + {'1': 1000, '2': 10000}, + ], +}; + +@$core.Deprecated('Use testAllRequiredTypesProto2Descriptor instead') +const TestAllRequiredTypesProto2_NestedMessage$json = { + '1': 'NestedMessage', + '2': [ + {'1': 'a', '3': 1, '4': 2, '5': 5, '10': 'a'}, + { + '1': 'corecursive', + '3': 2, + '4': 2, + '5': 11, + '6': '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2', + '10': 'corecursive' + }, + { + '1': 'optional_corecursive', + '3': 3, + '4': 1, + '5': 11, + '6': '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2', + '10': 'optionalCorecursive' + }, + ], +}; + +@$core.Deprecated('Use testAllRequiredTypesProto2Descriptor instead') +const TestAllRequiredTypesProto2_Data$json = { + '1': 'Data', + '2': [ + {'1': 'group_int32', '3': 202, '4': 2, '5': 5, '10': 'groupInt32'}, + {'1': 'group_uint32', '3': 203, '4': 2, '5': 13, '10': 'groupUint32'}, + ], +}; + +@$core.Deprecated('Use testAllRequiredTypesProto2Descriptor instead') +const TestAllRequiredTypesProto2_MessageSetCorrect$json = { + '1': 'MessageSetCorrect', + '5': [ + {'1': 4, '2': 2147483647}, + ], + '7': {'1': true}, +}; + +@$core.Deprecated('Use testAllRequiredTypesProto2Descriptor instead') +const TestAllRequiredTypesProto2_MessageSetCorrectExtension1$json = { + '1': 'MessageSetCorrectExtension1', + '2': [ + {'1': 'str', '3': 25, '4': 2, '5': 9, '10': 'str'}, + ], + '6': [ + { + '1': 'message_set_extension', + '2': + '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrect', + '3': 1547769, + '4': 1, + '5': 11, + '6': + '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension1', + '10': 'messageSetExtension' + }, + ], +}; + +@$core.Deprecated('Use testAllRequiredTypesProto2Descriptor instead') +const TestAllRequiredTypesProto2_MessageSetCorrectExtension2$json = { + '1': 'MessageSetCorrectExtension2', + '2': [ + {'1': 'i', '3': 9, '4': 2, '5': 5, '10': 'i'}, + ], + '6': [ + { + '1': 'message_set_extension', + '2': + '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrect', + '3': 4135312, + '4': 1, + '5': 11, + '6': + '.protobuf_test_messages.proto2.TestAllRequiredTypesProto2.MessageSetCorrectExtension2', + '10': 'messageSetExtension' + }, + ], +}; + +@$core.Deprecated('Use testAllRequiredTypesProto2Descriptor instead') +const TestAllRequiredTypesProto2_NestedEnum$json = { + '1': 'NestedEnum', + '2': [ + {'1': 'FOO', '2': 0}, + {'1': 'BAR', '2': 1}, + {'1': 'BAZ', '2': 2}, + {'1': 'NEG', '2': -1}, + ], +}; + +/// Descriptor for `TestAllRequiredTypesProto2`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List testAllRequiredTypesProto2Descriptor = $convert.base64Decode( + 'ChpUZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMhIlCg5yZXF1aXJlZF9pbnQzMhgBIAIoBVINcm' + 'VxdWlyZWRJbnQzMhIlCg5yZXF1aXJlZF9pbnQ2NBgCIAIoA1INcmVxdWlyZWRJbnQ2NBInCg9y' + 'ZXF1aXJlZF91aW50MzIYAyACKA1SDnJlcXVpcmVkVWludDMyEicKD3JlcXVpcmVkX3VpbnQ2NB' + 'gEIAIoBFIOcmVxdWlyZWRVaW50NjQSJwoPcmVxdWlyZWRfc2ludDMyGAUgAigRUg5yZXF1aXJl' + 'ZFNpbnQzMhInCg9yZXF1aXJlZF9zaW50NjQYBiACKBJSDnJlcXVpcmVkU2ludDY0EikKEHJlcX' + 'VpcmVkX2ZpeGVkMzIYByACKAdSD3JlcXVpcmVkRml4ZWQzMhIpChByZXF1aXJlZF9maXhlZDY0' + 'GAggAigGUg9yZXF1aXJlZEZpeGVkNjQSKwoRcmVxdWlyZWRfc2ZpeGVkMzIYCSACKA9SEHJlcX' + 'VpcmVkU2ZpeGVkMzISKwoRcmVxdWlyZWRfc2ZpeGVkNjQYCiACKBBSEHJlcXVpcmVkU2ZpeGVk' + 'NjQSJQoOcmVxdWlyZWRfZmxvYXQYCyACKAJSDXJlcXVpcmVkRmxvYXQSJwoPcmVxdWlyZWRfZG' + '91YmxlGAwgAigBUg5yZXF1aXJlZERvdWJsZRIjCg1yZXF1aXJlZF9ib29sGA0gAigIUgxyZXF1' + 'aXJlZEJvb2wSJwoPcmVxdWlyZWRfc3RyaW5nGA4gAigJUg5yZXF1aXJlZFN0cmluZxIlCg5yZX' + 'F1aXJlZF9ieXRlcxgPIAIoDFINcmVxdWlyZWRCeXRlcxJ/ChdyZXF1aXJlZF9uZXN0ZWRfbWVz' + 'c2FnZRgSIAIoCzJHLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxSZXF1aX' + 'JlZFR5cGVzUHJvdG8yLk5lc3RlZE1lc3NhZ2VSFXJlcXVpcmVkTmVzdGVkTWVzc2FnZRJtChhy' + 'ZXF1aXJlZF9mb3JlaWduX21lc3NhZ2UYEyACKAsyMy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLn' + 'Byb3RvMi5Gb3JlaWduTWVzc2FnZVByb3RvMlIWcmVxdWlyZWRGb3JlaWduTWVzc2FnZRJ2ChRy' + 'ZXF1aXJlZF9uZXN0ZWRfZW51bRgVIAIoDjJELnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG' + '8yLlRlc3RBbGxSZXF1aXJlZFR5cGVzUHJvdG8yLk5lc3RlZEVudW1SEnJlcXVpcmVkTmVzdGVk' + 'RW51bRJkChVyZXF1aXJlZF9mb3JlaWduX2VudW0YFiACKA4yMC5wcm90b2J1Zl90ZXN0X21lc3' + 'NhZ2VzLnByb3RvMi5Gb3JlaWduRW51bVByb3RvMlITcmVxdWlyZWRGb3JlaWduRW51bRI2ChVy' + 'ZXF1aXJlZF9zdHJpbmdfcGllY2UYGCACKAlCAggCUhNyZXF1aXJlZFN0cmluZ1BpZWNlEicKDX' + 'JlcXVpcmVkX2NvcmQYGSACKAlCAggBUgxyZXF1aXJlZENvcmQSZgoRcmVjdXJzaXZlX21lc3Nh' + 'Z2UYGyACKAsyOS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsUmVxdWlyZW' + 'RUeXBlc1Byb3RvMlIQcmVjdXJzaXZlTWVzc2FnZRJ3ChpvcHRpb25hbF9yZWN1cnNpdmVfbWVz' + 'c2FnZRgcIAEoCzI5LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxSZXF1aX' + 'JlZFR5cGVzUHJvdG8yUhhvcHRpb25hbFJlY3Vyc2l2ZU1lc3NhZ2USUwoEZGF0YRjJASACKAoy' + 'Pi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3' + 'RvMi5EYXRhUgRkYXRhEjAKDWRlZmF1bHRfaW50MzIY8QEgAigFOgotMTIzNDU2Nzg5UgxkZWZh' + 'dWx0SW50MzISOgoNZGVmYXVsdF9pbnQ2NBjyASACKAM6FC05MTIzNDU2Nzg5MTIzNDU2Nzg5Ug' + 'xkZWZhdWx0SW50NjQSMgoOZGVmYXVsdF91aW50MzIY8wEgAigNOgoyMTIzNDU2Nzg5Ug1kZWZh' + 'dWx0VWludDMyEjwKDmRlZmF1bHRfdWludDY0GPQBIAIoBDoUMTAxMjM0NTY3ODkxMjM0NTY3OD' + 'lSDWRlZmF1bHRVaW50NjQSMgoOZGVmYXVsdF9zaW50MzIY9QEgAigROgotMTIzNDU2Nzg5Ug1k' + 'ZWZhdWx0U2ludDMyEjwKDmRlZmF1bHRfc2ludDY0GPYBIAIoEjoULTkxMjM0NTY3ODkxMjM0NT' + 'Y3ODlSDWRlZmF1bHRTaW50NjQSNAoPZGVmYXVsdF9maXhlZDMyGPcBIAIoBzoKMjEyMzQ1Njc4' + 'OVIOZGVmYXVsdEZpeGVkMzISPgoPZGVmYXVsdF9maXhlZDY0GPgBIAIoBjoUMTAxMjM0NTY3OD' + 'kxMjM0NTY3ODlSDmRlZmF1bHRGaXhlZDY0EjYKEGRlZmF1bHRfc2ZpeGVkMzIY+QEgAigPOgot' + 'MTIzNDU2Nzg5Ug9kZWZhdWx0U2ZpeGVkMzISQAoQZGVmYXVsdF9zZml4ZWQ2NBj6ASACKBA6FC' + '05MTIzNDU2Nzg5MTIzNDU2Nzg5Ug9kZWZhdWx0U2ZpeGVkNjQSKwoNZGVmYXVsdF9mbG9hdBj7' + 'ASACKAI6BTllKzA5UgxkZWZhdWx0RmxvYXQSLQoOZGVmYXVsdF9kb3VibGUY/AEgAigBOgU3ZS' + 'syMlINZGVmYXVsdERvdWJsZRIoCgxkZWZhdWx0X2Jvb2wY/QEgAigIOgR0cnVlUgtkZWZhdWx0' + 'Qm9vbBIvCg5kZWZhdWx0X3N0cmluZxj+ASACKAk6B1Jvc2VidWRSDWRlZmF1bHRTdHJpbmcSLA' + 'oNZGVmYXVsdF9ieXRlcxj/ASACKAw6Bmpvc2h1YVIMZGVmYXVsdEJ5dGVzGugBCg1OZXN0ZWRN' + 'ZXNzYWdlEgwKAWEYASACKAVSAWESWwoLY29yZWN1cnNpdmUYAiACKAsyOS5wcm90b2J1Zl90ZX' + 'N0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMlILY29yZWN1cnNp' + 'dmUSbAoUb3B0aW9uYWxfY29yZWN1cnNpdmUYAyABKAsyOS5wcm90b2J1Zl90ZXN0X21lc3NhZ2' + 'VzLnByb3RvMi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3RvMlITb3B0aW9uYWxDb3JlY3Vyc2l2' + 'ZRpMCgREYXRhEiAKC2dyb3VwX2ludDMyGMoBIAIoBVIKZ3JvdXBJbnQzMhIiCgxncm91cF91aW' + '50MzIYywEgAigNUgtncm91cFVpbnQzMhohChFNZXNzYWdlU2V0Q29ycmVjdCoICAQQ/////wc6' + 'AggBGooCChtNZXNzYWdlU2V0Q29ycmVjdEV4dGVuc2lvbjESEAoDc3RyGBkgAigJUgNzdHIy2A' + 'EKFW1lc3NhZ2Vfc2V0X2V4dGVuc2lvbhJLLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8y' + 'LlRlc3RBbGxSZXF1aXJlZFR5cGVzUHJvdG8yLk1lc3NhZ2VTZXRDb3JyZWN0GPm7XiABKAsyVS' + '5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsUmVxdWlyZWRUeXBlc1Byb3Rv' + 'Mi5NZXNzYWdlU2V0Q29ycmVjdEV4dGVuc2lvbjFSE21lc3NhZ2VTZXRFeHRlbnNpb24ahwIKG0' + '1lc3NhZ2VTZXRDb3JyZWN0RXh0ZW5zaW9uMhIMCgFpGAkgAigFUgFpMtkBChVtZXNzYWdlX3Nl' + 'dF9leHRlbnNpb24SSy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMi5UZXN0QWxsUmVxdW' + 'lyZWRUeXBlc1Byb3RvMi5NZXNzYWdlU2V0Q29ycmVjdBiQs/wBIAEoCzJVLnByb3RvYnVmX3Rl' + 'c3RfbWVzc2FnZXMucHJvdG8yLlRlc3RBbGxSZXF1aXJlZFR5cGVzUHJvdG8yLk1lc3NhZ2VTZX' + 'RDb3JyZWN0RXh0ZW5zaW9uMlITbWVzc2FnZVNldEV4dGVuc2lvbiI5CgpOZXN0ZWRFbnVtEgcK' + 'A0ZPTxAAEgcKA0JBUhABEgcKA0JBWhACEhAKA05FRxD///////////8BKgUIeBDJAUoGCOgHEJ' + 'BO'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pb.dart index 5af5c58d..415324ed 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pb.dart @@ -1,71 +1,62 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/test_messages_proto3.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; -import 'wrappers.pb.dart' as $0; -import 'duration.pb.dart' as $1; -import 'timestamp.pb.dart' as $2; -import 'field_mask.pb.dart' as $3; -import 'struct.pb.dart' as $4; -import 'any.pb.dart' as $5; - +import 'any.pb.dart' as $49; +import 'duration.pb.dart' as $51; +import 'field_mask.pb.dart' as $58; +import 'struct.pb.dart' as $48; +import 'struct.pbenum.dart' as $48; import 'test_messages_proto3.pbenum.dart'; -import 'struct.pbenum.dart' as $4; +import 'timestamp.pb.dart' as $50; +import 'wrappers.pb.dart' as $73; export 'test_messages_proto3.pbenum.dart'; class TestAllTypesProto3_NestedMessage extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'TestAllTypesProto3.NestedMessage', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto3'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'a', - $pb.PbFieldType.O3) - ..aOM( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'corecursive', - subBuilder: TestAllTypesProto3.create) - ..hasRequiredFields = false; - - TestAllTypesProto3_NestedMessage._() : super(); factory TestAllTypesProto3_NestedMessage({ $core.int? a, TestAllTypesProto3? corecursive, }) { - final _result = create(); + final $result = create(); if (a != null) { - _result.a = a; + $result.a = a; } if (corecursive != null) { - _result.corecursive = corecursive; + $result.corecursive = corecursive; } - return _result; + return $result; } + TestAllTypesProto3_NestedMessage._() : super(); factory TestAllTypesProto3_NestedMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TestAllTypesProto3_NestedMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllTypesProto3.NestedMessage', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto3'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'a', $pb.PbFieldType.O3) + ..aOM(2, _omitFieldNames ? '' : 'corecursive', + subBuilder: TestAllTypesProto3.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') @@ -78,8 +69,10 @@ class TestAllTypesProto3_NestedMessage extends $pb.GeneratedMessage { void Function(TestAllTypesProto3_NestedMessage) updates) => super.copyWith( (message) => updates(message as TestAllTypesProto3_NestedMessage)) - as TestAllTypesProto3_NestedMessage; // ignore: deprecated_member_use + as TestAllTypesProto3_NestedMessage; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TestAllTypesProto3_NestedMessage create() => TestAllTypesProto3_NestedMessage._(); @@ -133,198 +126,14 @@ enum TestAllTypesProto3_OneofField { notSet } +/// This proto includes every type of field in both singular and repeated +/// forms. +/// +/// Also, crucially, all messages and enums in this file are eventually +/// submessages of this message. So for example, a fuzz test of TestAllTypes +/// could trigger bugs that occur in any message type in this file. We verify +/// this stays true in a unit test. class TestAllTypesProto3 extends $pb.GeneratedMessage { - static const $core.Map<$core.int, TestAllTypesProto3_OneofField> - _TestAllTypesProto3_OneofFieldByTag = { - 111: TestAllTypesProto3_OneofField.oneofUint32, - 112: TestAllTypesProto3_OneofField.oneofNestedMessage, - 113: TestAllTypesProto3_OneofField.oneofString, - 114: TestAllTypesProto3_OneofField.oneofBytes, - 115: TestAllTypesProto3_OneofField.oneofBool, - 116: TestAllTypesProto3_OneofField.oneofUint64, - 117: TestAllTypesProto3_OneofField.oneofFloat, - 118: TestAllTypesProto3_OneofField.oneofDouble, - 119: TestAllTypesProto3_OneofField.oneofEnum, - 120: TestAllTypesProto3_OneofField.oneofNullValue, - 0: TestAllTypesProto3_OneofField.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TestAllTypesProto3', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto3'), - createEmptyInstance: create) - ..oo(0, [111, 112, 113, 114, 115, 116, 117, 118, 119, 120]) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'optionalInt32', - $pb.PbFieldType.O3) - ..aInt64( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'optionalInt64') - ..a<$core.int>( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'optionalUint32', - $pb.PbFieldType.OU3) - ..a<$fixnum.Int64>( - 4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalUint64', $pb.PbFieldType.OU6, - defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.int>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalSint32', $pb.PbFieldType.OS3) - ..a<$fixnum.Int64>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalSint64', $pb.PbFieldType.OS6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.int>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalFixed32', $pb.PbFieldType.OF3) - ..a<$fixnum.Int64>(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalFixed64', $pb.PbFieldType.OF6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.int>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalSfixed32', $pb.PbFieldType.OSF3) - ..a<$fixnum.Int64>(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalSfixed64', $pb.PbFieldType.OSF6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>(11, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalFloat', $pb.PbFieldType.OF) - ..a<$core.double>(12, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalDouble', $pb.PbFieldType.OD) - ..aOB(13, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalBool') - ..aOS(14, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalString') - ..a<$core.List<$core.int>>(15, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalBytes', $pb.PbFieldType.OY) - ..aOM(18, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalNestedMessage', subBuilder: TestAllTypesProto3_NestedMessage.create) - ..aOM(19, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalForeignMessage', subBuilder: ForeignMessage.create) - ..e(21, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalNestedEnum', $pb.PbFieldType.OE, defaultOrMaker: TestAllTypesProto3_NestedEnum.FOO, valueOf: TestAllTypesProto3_NestedEnum.valueOf, enumValues: TestAllTypesProto3_NestedEnum.values) - ..e(22, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalForeignEnum', $pb.PbFieldType.OE, defaultOrMaker: ForeignEnum.FOREIGN_FOO, valueOf: ForeignEnum.valueOf, enumValues: ForeignEnum.values) - ..e(23, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalAliasedEnum', $pb.PbFieldType.OE, defaultOrMaker: TestAllTypesProto3_AliasedEnum.ALIAS_FOO, valueOf: TestAllTypesProto3_AliasedEnum.valueOf, enumValues: TestAllTypesProto3_AliasedEnum.values) - ..aOS(24, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalStringPiece') - ..aOS(25, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalCord') - ..aOM(27, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'recursiveMessage', subBuilder: TestAllTypesProto3.create) - ..p<$core.int>(31, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedInt32', $pb.PbFieldType.P3) - ..p<$fixnum.Int64>(32, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedInt64', $pb.PbFieldType.P6) - ..p<$core.int>(33, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedUint32', $pb.PbFieldType.PU3) - ..p<$fixnum.Int64>(34, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedUint64', $pb.PbFieldType.PU6) - ..p<$core.int>(35, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedSint32', $pb.PbFieldType.PS3) - ..p<$fixnum.Int64>(36, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedSint64', $pb.PbFieldType.PS6) - ..p<$core.int>(37, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedFixed32', $pb.PbFieldType.PF3) - ..p<$fixnum.Int64>(38, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedFixed64', $pb.PbFieldType.PF6) - ..p<$core.int>(39, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedSfixed32', $pb.PbFieldType.PSF3) - ..p<$fixnum.Int64>(40, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedSfixed64', $pb.PbFieldType.PSF6) - ..p<$core.double>(41, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedFloat', $pb.PbFieldType.PF) - ..p<$core.double>(42, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedDouble', $pb.PbFieldType.PD) - ..p<$core.bool>(43, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedBool', $pb.PbFieldType.PB) - ..pPS(44, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedString') - ..p<$core.List<$core.int>>(45, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedBytes', $pb.PbFieldType.PY) - ..pc(48, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedNestedMessage', $pb.PbFieldType.PM, subBuilder: TestAllTypesProto3_NestedMessage.create) - ..pc(49, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedForeignMessage', $pb.PbFieldType.PM, subBuilder: ForeignMessage.create) - ..pc(51, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedNestedEnum', $pb.PbFieldType.PE, valueOf: TestAllTypesProto3_NestedEnum.valueOf, enumValues: TestAllTypesProto3_NestedEnum.values) - ..pc(52, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedForeignEnum', $pb.PbFieldType.PE, valueOf: ForeignEnum.valueOf, enumValues: ForeignEnum.values) - ..pPS(54, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedStringPiece') - ..pPS(55, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedCord') - ..m<$core.int, $core.int>(56, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapInt32Int32', entryClassName: 'TestAllTypesProto3.MapInt32Int32Entry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.O3, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$fixnum.Int64, $fixnum.Int64>(57, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapInt64Int64', entryClassName: 'TestAllTypesProto3.MapInt64Int64Entry', keyFieldType: $pb.PbFieldType.O6, valueFieldType: $pb.PbFieldType.O6, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.int, $core.int>(58, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapUint32Uint32', entryClassName: 'TestAllTypesProto3.MapUint32Uint32Entry', keyFieldType: $pb.PbFieldType.OU3, valueFieldType: $pb.PbFieldType.OU3, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$fixnum.Int64, $fixnum.Int64>(59, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapUint64Uint64', entryClassName: 'TestAllTypesProto3.MapUint64Uint64Entry', keyFieldType: $pb.PbFieldType.OU6, valueFieldType: $pb.PbFieldType.OU6, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.int, $core.int>(60, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapSint32Sint32', entryClassName: 'TestAllTypesProto3.MapSint32Sint32Entry', keyFieldType: $pb.PbFieldType.OS3, valueFieldType: $pb.PbFieldType.OS3, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$fixnum.Int64, $fixnum.Int64>(61, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapSint64Sint64', entryClassName: 'TestAllTypesProto3.MapSint64Sint64Entry', keyFieldType: $pb.PbFieldType.OS6, valueFieldType: $pb.PbFieldType.OS6, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.int, $core.int>(62, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapFixed32Fixed32', entryClassName: 'TestAllTypesProto3.MapFixed32Fixed32Entry', keyFieldType: $pb.PbFieldType.OF3, valueFieldType: $pb.PbFieldType.OF3, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$fixnum.Int64, $fixnum.Int64>(63, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapFixed64Fixed64', entryClassName: 'TestAllTypesProto3.MapFixed64Fixed64Entry', keyFieldType: $pb.PbFieldType.OF6, valueFieldType: $pb.PbFieldType.OF6, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.int, $core.int>(64, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapSfixed32Sfixed32', entryClassName: 'TestAllTypesProto3.MapSfixed32Sfixed32Entry', keyFieldType: $pb.PbFieldType.OSF3, valueFieldType: $pb.PbFieldType.OSF3, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$fixnum.Int64, $fixnum.Int64>(65, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapSfixed64Sfixed64', entryClassName: 'TestAllTypesProto3.MapSfixed64Sfixed64Entry', keyFieldType: $pb.PbFieldType.OSF6, valueFieldType: $pb.PbFieldType.OSF6, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.int, $core.double>(66, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapInt32Float', entryClassName: 'TestAllTypesProto3.MapInt32FloatEntry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.OF, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.int, $core.double>(67, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapInt32Double', entryClassName: 'TestAllTypesProto3.MapInt32DoubleEntry', keyFieldType: $pb.PbFieldType.O3, valueFieldType: $pb.PbFieldType.OD, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.bool, $core.bool>(68, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapBoolBool', entryClassName: 'TestAllTypesProto3.MapBoolBoolEntry', keyFieldType: $pb.PbFieldType.OB, valueFieldType: $pb.PbFieldType.OB, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.String, $core.String>(69, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringString', entryClassName: 'TestAllTypesProto3.MapStringStringEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.String, $core.List<$core.int>>(70, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringBytes', entryClassName: 'TestAllTypesProto3.MapStringBytesEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OY, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.String, TestAllTypesProto3_NestedMessage>(71, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringNestedMessage', entryClassName: 'TestAllTypesProto3.MapStringNestedMessageEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: TestAllTypesProto3_NestedMessage.create, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.String, ForeignMessage>(72, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringForeignMessage', entryClassName: 'TestAllTypesProto3.MapStringForeignMessageEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: ForeignMessage.create, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.String, TestAllTypesProto3_NestedEnum>(73, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringNestedEnum', entryClassName: 'TestAllTypesProto3.MapStringNestedEnumEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OE, valueOf: TestAllTypesProto3_NestedEnum.valueOf, enumValues: TestAllTypesProto3_NestedEnum.values, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..m<$core.String, ForeignEnum>(74, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mapStringForeignEnum', entryClassName: 'TestAllTypesProto3.MapStringForeignEnumEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OE, valueOf: ForeignEnum.valueOf, enumValues: ForeignEnum.values, packageName: const $pb.PackageName('protobuf_test_messages.proto3')) - ..p<$core.int>(75, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedInt32', $pb.PbFieldType.K3) - ..p<$fixnum.Int64>(76, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedInt64', $pb.PbFieldType.K6) - ..p<$core.int>(77, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedUint32', $pb.PbFieldType.KU3) - ..p<$fixnum.Int64>(78, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedUint64', $pb.PbFieldType.KU6) - ..p<$core.int>(79, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedSint32', $pb.PbFieldType.KS3) - ..p<$fixnum.Int64>(80, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedSint64', $pb.PbFieldType.KS6) - ..p<$core.int>(81, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedFixed32', $pb.PbFieldType.KF3) - ..p<$fixnum.Int64>(82, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedFixed64', $pb.PbFieldType.KF6) - ..p<$core.int>(83, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedSfixed32', $pb.PbFieldType.KSF3) - ..p<$fixnum.Int64>(84, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedSfixed64', $pb.PbFieldType.KSF6) - ..p<$core.double>(85, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedFloat', $pb.PbFieldType.KF) - ..p<$core.double>(86, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedDouble', $pb.PbFieldType.KD) - ..p<$core.bool>(87, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedBool', $pb.PbFieldType.KB) - ..pc(88, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'packedNestedEnum', $pb.PbFieldType.KE, valueOf: TestAllTypesProto3_NestedEnum.valueOf, enumValues: TestAllTypesProto3_NestedEnum.values) - ..p<$core.int>(89, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedInt32', $pb.PbFieldType.P3) - ..p<$fixnum.Int64>(90, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedInt64', $pb.PbFieldType.P6) - ..p<$core.int>(91, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedUint32', $pb.PbFieldType.PU3) - ..p<$fixnum.Int64>(92, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedUint64', $pb.PbFieldType.PU6) - ..p<$core.int>(93, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedSint32', $pb.PbFieldType.PS3) - ..p<$fixnum.Int64>(94, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedSint64', $pb.PbFieldType.PS6) - ..p<$core.int>(95, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedFixed32', $pb.PbFieldType.PF3) - ..p<$fixnum.Int64>(96, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedFixed64', $pb.PbFieldType.PF6) - ..p<$core.int>(97, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedSfixed32', $pb.PbFieldType.PSF3) - ..p<$fixnum.Int64>(98, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedSfixed64', $pb.PbFieldType.PSF6) - ..p<$core.double>(99, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedFloat', $pb.PbFieldType.PF) - ..p<$core.double>(100, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedDouble', $pb.PbFieldType.PD) - ..p<$core.bool>(101, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedBool', $pb.PbFieldType.PB) - ..pc(102, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'unpackedNestedEnum', $pb.PbFieldType.PE, valueOf: TestAllTypesProto3_NestedEnum.valueOf, enumValues: TestAllTypesProto3_NestedEnum.values) - ..a<$core.int>(111, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofUint32', $pb.PbFieldType.OU3) - ..aOM(112, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofNestedMessage', subBuilder: TestAllTypesProto3_NestedMessage.create) - ..aOS(113, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofString') - ..a<$core.List<$core.int>>(114, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofBytes', $pb.PbFieldType.OY) - ..aOB(115, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofBool') - ..a<$fixnum.Int64>(116, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofUint64', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$core.double>(117, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofFloat', $pb.PbFieldType.OF) - ..a<$core.double>(118, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofDouble', $pb.PbFieldType.OD) - ..e(119, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofEnum', $pb.PbFieldType.OE, defaultOrMaker: TestAllTypesProto3_NestedEnum.FOO, valueOf: TestAllTypesProto3_NestedEnum.valueOf, enumValues: TestAllTypesProto3_NestedEnum.values) - ..e<$4.NullValue>(120, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofNullValue', $pb.PbFieldType.OE, defaultOrMaker: $4.NullValue.NULL_VALUE, valueOf: $4.NullValue.valueOf, enumValues: $4.NullValue.values) - ..aOM<$0.BoolValue>(201, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalBoolWrapper', subBuilder: $0.BoolValue.create) - ..aOM<$0.Int32Value>(202, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalInt32Wrapper', subBuilder: $0.Int32Value.create) - ..aOM<$0.Int64Value>(203, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalInt64Wrapper', subBuilder: $0.Int64Value.create) - ..aOM<$0.UInt32Value>(204, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalUint32Wrapper', subBuilder: $0.UInt32Value.create) - ..aOM<$0.UInt64Value>(205, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalUint64Wrapper', subBuilder: $0.UInt64Value.create) - ..aOM<$0.FloatValue>(206, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalFloatWrapper', subBuilder: $0.FloatValue.create) - ..aOM<$0.DoubleValue>(207, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalDoubleWrapper', subBuilder: $0.DoubleValue.create) - ..aOM<$0.StringValue>(208, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalStringWrapper', subBuilder: $0.StringValue.create) - ..aOM<$0.BytesValue>(209, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalBytesWrapper', subBuilder: $0.BytesValue.create) - ..pc<$0.BoolValue>(211, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedBoolWrapper', $pb.PbFieldType.PM, subBuilder: $0.BoolValue.create) - ..pc<$0.Int32Value>(212, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedInt32Wrapper', $pb.PbFieldType.PM, subBuilder: $0.Int32Value.create) - ..pc<$0.Int64Value>(213, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedInt64Wrapper', $pb.PbFieldType.PM, subBuilder: $0.Int64Value.create) - ..pc<$0.UInt32Value>(214, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedUint32Wrapper', $pb.PbFieldType.PM, subBuilder: $0.UInt32Value.create) - ..pc<$0.UInt64Value>(215, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedUint64Wrapper', $pb.PbFieldType.PM, subBuilder: $0.UInt64Value.create) - ..pc<$0.FloatValue>(216, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedFloatWrapper', $pb.PbFieldType.PM, subBuilder: $0.FloatValue.create) - ..pc<$0.DoubleValue>(217, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedDoubleWrapper', $pb.PbFieldType.PM, subBuilder: $0.DoubleValue.create) - ..pc<$0.StringValue>(218, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedStringWrapper', $pb.PbFieldType.PM, subBuilder: $0.StringValue.create) - ..pc<$0.BytesValue>(219, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedBytesWrapper', $pb.PbFieldType.PM, subBuilder: $0.BytesValue.create) - ..aOM<$1.Duration>(301, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalDuration', subBuilder: $1.Duration.create) - ..aOM<$2.Timestamp>(302, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalTimestamp', subBuilder: $2.Timestamp.create) - ..aOM<$3.FieldMask>(303, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalFieldMask', subBuilder: $3.FieldMask.create) - ..aOM<$4.Struct>(304, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalStruct', subBuilder: $4.Struct.create) - ..aOM<$5.Any>(305, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalAny', subBuilder: $5.Any.create) - ..aOM<$4.Value>(306, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalValue', subBuilder: $4.Value.create) - ..e<$4.NullValue>(307, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'optionalNullValue', $pb.PbFieldType.OE, defaultOrMaker: $4.NullValue.NULL_VALUE, valueOf: $4.NullValue.valueOf, enumValues: $4.NullValue.values) - ..pc<$1.Duration>(311, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedDuration', $pb.PbFieldType.PM, subBuilder: $1.Duration.create) - ..pc<$2.Timestamp>(312, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedTimestamp', $pb.PbFieldType.PM, subBuilder: $2.Timestamp.create) - ..pc<$3.FieldMask>(313, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedFieldmask', $pb.PbFieldType.PM, subBuilder: $3.FieldMask.create) - ..pc<$5.Any>(315, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedAny', $pb.PbFieldType.PM, subBuilder: $5.Any.create) - ..pc<$4.Value>(316, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedValue', $pb.PbFieldType.PM, subBuilder: $4.Value.create) - ..pc<$4.ListValue>(317, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedListValue', $pb.PbFieldType.PM, subBuilder: $4.ListValue.create) - ..pc<$4.Struct>(324, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'repeatedStruct', $pb.PbFieldType.PM, subBuilder: $4.Struct.create) - ..a<$core.int>(401, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldname1', $pb.PbFieldType.O3) - ..a<$core.int>(402, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName2', $pb.PbFieldType.O3) - ..a<$core.int>(403, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName3', $pb.PbFieldType.O3) - ..a<$core.int>(404, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName4', $pb.PbFieldType.O3, protoName: 'field__name4_') - ..a<$core.int>(405, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'field0name5', $pb.PbFieldType.O3) - ..a<$core.int>(406, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'field0Name6', $pb.PbFieldType.O3, protoName: 'field_0_name6') - ..a<$core.int>(407, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName7', $pb.PbFieldType.O3, protoName: 'fieldName7') - ..a<$core.int>(408, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName8', $pb.PbFieldType.O3, protoName: 'FieldName8') - ..a<$core.int>(409, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName9', $pb.PbFieldType.O3, protoName: 'field_Name9') - ..a<$core.int>(410, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName10', $pb.PbFieldType.O3, protoName: 'Field_Name10') - ..a<$core.int>(411, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FIELDNAME11', $pb.PbFieldType.O3, protoName: 'FIELD_NAME11') - ..a<$core.int>(412, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FIELDName12', $pb.PbFieldType.O3, protoName: 'FIELD_name12') - ..a<$core.int>(413, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName13', $pb.PbFieldType.O3, protoName: '__field_name13') - ..a<$core.int>(414, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName14', $pb.PbFieldType.O3, protoName: '__Field_name14') - ..a<$core.int>(415, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName15', $pb.PbFieldType.O3, protoName: 'field__name15') - ..a<$core.int>(416, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName16', $pb.PbFieldType.O3, protoName: 'field__Name16') - ..a<$core.int>(417, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fieldName17', $pb.PbFieldType.O3, protoName: 'field_name17__') - ..a<$core.int>(418, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'FieldName18', $pb.PbFieldType.O3, protoName: 'Field_name18__') - ..hasRequiredFields = false; - - TestAllTypesProto3._() : super(); factory TestAllTypesProto3({ $core.int? optionalInt32, $fixnum.Int64? optionalInt64, @@ -427,39 +236,39 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { $core.double? oneofFloat, $core.double? oneofDouble, TestAllTypesProto3_NestedEnum? oneofEnum, - $4.NullValue? oneofNullValue, - $0.BoolValue? optionalBoolWrapper, - $0.Int32Value? optionalInt32Wrapper, - $0.Int64Value? optionalInt64Wrapper, - $0.UInt32Value? optionalUint32Wrapper, - $0.UInt64Value? optionalUint64Wrapper, - $0.FloatValue? optionalFloatWrapper, - $0.DoubleValue? optionalDoubleWrapper, - $0.StringValue? optionalStringWrapper, - $0.BytesValue? optionalBytesWrapper, - $core.Iterable<$0.BoolValue>? repeatedBoolWrapper, - $core.Iterable<$0.Int32Value>? repeatedInt32Wrapper, - $core.Iterable<$0.Int64Value>? repeatedInt64Wrapper, - $core.Iterable<$0.UInt32Value>? repeatedUint32Wrapper, - $core.Iterable<$0.UInt64Value>? repeatedUint64Wrapper, - $core.Iterable<$0.FloatValue>? repeatedFloatWrapper, - $core.Iterable<$0.DoubleValue>? repeatedDoubleWrapper, - $core.Iterable<$0.StringValue>? repeatedStringWrapper, - $core.Iterable<$0.BytesValue>? repeatedBytesWrapper, - $1.Duration? optionalDuration, - $2.Timestamp? optionalTimestamp, - $3.FieldMask? optionalFieldMask, - $4.Struct? optionalStruct, - $5.Any? optionalAny, - $4.Value? optionalValue, - $4.NullValue? optionalNullValue, - $core.Iterable<$1.Duration>? repeatedDuration, - $core.Iterable<$2.Timestamp>? repeatedTimestamp, - $core.Iterable<$3.FieldMask>? repeatedFieldmask, - $core.Iterable<$5.Any>? repeatedAny, - $core.Iterable<$4.Value>? repeatedValue, - $core.Iterable<$4.ListValue>? repeatedListValue, - $core.Iterable<$4.Struct>? repeatedStruct, + $48.NullValue? oneofNullValue, + $73.BoolValue? optionalBoolWrapper, + $73.Int32Value? optionalInt32Wrapper, + $73.Int64Value? optionalInt64Wrapper, + $73.UInt32Value? optionalUint32Wrapper, + $73.UInt64Value? optionalUint64Wrapper, + $73.FloatValue? optionalFloatWrapper, + $73.DoubleValue? optionalDoubleWrapper, + $73.StringValue? optionalStringWrapper, + $73.BytesValue? optionalBytesWrapper, + $core.Iterable<$73.BoolValue>? repeatedBoolWrapper, + $core.Iterable<$73.Int32Value>? repeatedInt32Wrapper, + $core.Iterable<$73.Int64Value>? repeatedInt64Wrapper, + $core.Iterable<$73.UInt32Value>? repeatedUint32Wrapper, + $core.Iterable<$73.UInt64Value>? repeatedUint64Wrapper, + $core.Iterable<$73.FloatValue>? repeatedFloatWrapper, + $core.Iterable<$73.DoubleValue>? repeatedDoubleWrapper, + $core.Iterable<$73.StringValue>? repeatedStringWrapper, + $core.Iterable<$73.BytesValue>? repeatedBytesWrapper, + $51.Duration? optionalDuration, + $50.Timestamp? optionalTimestamp, + $58.FieldMask? optionalFieldMask, + $48.Struct? optionalStruct, + $49.Any? optionalAny, + $48.Value? optionalValue, + $48.NullValue? optionalNullValue, + $core.Iterable<$51.Duration>? repeatedDuration, + $core.Iterable<$50.Timestamp>? repeatedTimestamp, + $core.Iterable<$58.FieldMask>? repeatedFieldmask, + $core.Iterable<$49.Any>? repeatedAny, + $core.Iterable<$48.Value>? repeatedValue, + $core.Iterable<$48.ListValue>? repeatedListValue, + $core.Iterable<$48.Struct>? repeatedStruct, $core.int? fieldname1, $core.int? fieldName2, $core.int? fieldName3, @@ -479,468 +288,923 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { $core.int? fieldName17, $core.int? fieldName18, }) { - final _result = create(); + final $result = create(); if (optionalInt32 != null) { - _result.optionalInt32 = optionalInt32; + $result.optionalInt32 = optionalInt32; } if (optionalInt64 != null) { - _result.optionalInt64 = optionalInt64; + $result.optionalInt64 = optionalInt64; } if (optionalUint32 != null) { - _result.optionalUint32 = optionalUint32; + $result.optionalUint32 = optionalUint32; } if (optionalUint64 != null) { - _result.optionalUint64 = optionalUint64; + $result.optionalUint64 = optionalUint64; } if (optionalSint32 != null) { - _result.optionalSint32 = optionalSint32; + $result.optionalSint32 = optionalSint32; } if (optionalSint64 != null) { - _result.optionalSint64 = optionalSint64; + $result.optionalSint64 = optionalSint64; } if (optionalFixed32 != null) { - _result.optionalFixed32 = optionalFixed32; + $result.optionalFixed32 = optionalFixed32; } if (optionalFixed64 != null) { - _result.optionalFixed64 = optionalFixed64; + $result.optionalFixed64 = optionalFixed64; } if (optionalSfixed32 != null) { - _result.optionalSfixed32 = optionalSfixed32; + $result.optionalSfixed32 = optionalSfixed32; } if (optionalSfixed64 != null) { - _result.optionalSfixed64 = optionalSfixed64; + $result.optionalSfixed64 = optionalSfixed64; } if (optionalFloat != null) { - _result.optionalFloat = optionalFloat; + $result.optionalFloat = optionalFloat; } if (optionalDouble != null) { - _result.optionalDouble = optionalDouble; + $result.optionalDouble = optionalDouble; } if (optionalBool != null) { - _result.optionalBool = optionalBool; + $result.optionalBool = optionalBool; } if (optionalString != null) { - _result.optionalString = optionalString; + $result.optionalString = optionalString; } if (optionalBytes != null) { - _result.optionalBytes = optionalBytes; + $result.optionalBytes = optionalBytes; } if (optionalNestedMessage != null) { - _result.optionalNestedMessage = optionalNestedMessage; + $result.optionalNestedMessage = optionalNestedMessage; } if (optionalForeignMessage != null) { - _result.optionalForeignMessage = optionalForeignMessage; + $result.optionalForeignMessage = optionalForeignMessage; } if (optionalNestedEnum != null) { - _result.optionalNestedEnum = optionalNestedEnum; + $result.optionalNestedEnum = optionalNestedEnum; } if (optionalForeignEnum != null) { - _result.optionalForeignEnum = optionalForeignEnum; + $result.optionalForeignEnum = optionalForeignEnum; } if (optionalAliasedEnum != null) { - _result.optionalAliasedEnum = optionalAliasedEnum; + $result.optionalAliasedEnum = optionalAliasedEnum; } if (optionalStringPiece != null) { - _result.optionalStringPiece = optionalStringPiece; + $result.optionalStringPiece = optionalStringPiece; } if (optionalCord != null) { - _result.optionalCord = optionalCord; + $result.optionalCord = optionalCord; } if (recursiveMessage != null) { - _result.recursiveMessage = recursiveMessage; + $result.recursiveMessage = recursiveMessage; } if (repeatedInt32 != null) { - _result.repeatedInt32.addAll(repeatedInt32); + $result.repeatedInt32.addAll(repeatedInt32); } if (repeatedInt64 != null) { - _result.repeatedInt64.addAll(repeatedInt64); + $result.repeatedInt64.addAll(repeatedInt64); } if (repeatedUint32 != null) { - _result.repeatedUint32.addAll(repeatedUint32); + $result.repeatedUint32.addAll(repeatedUint32); } if (repeatedUint64 != null) { - _result.repeatedUint64.addAll(repeatedUint64); + $result.repeatedUint64.addAll(repeatedUint64); } if (repeatedSint32 != null) { - _result.repeatedSint32.addAll(repeatedSint32); + $result.repeatedSint32.addAll(repeatedSint32); } if (repeatedSint64 != null) { - _result.repeatedSint64.addAll(repeatedSint64); + $result.repeatedSint64.addAll(repeatedSint64); } if (repeatedFixed32 != null) { - _result.repeatedFixed32.addAll(repeatedFixed32); + $result.repeatedFixed32.addAll(repeatedFixed32); } if (repeatedFixed64 != null) { - _result.repeatedFixed64.addAll(repeatedFixed64); + $result.repeatedFixed64.addAll(repeatedFixed64); } if (repeatedSfixed32 != null) { - _result.repeatedSfixed32.addAll(repeatedSfixed32); + $result.repeatedSfixed32.addAll(repeatedSfixed32); } if (repeatedSfixed64 != null) { - _result.repeatedSfixed64.addAll(repeatedSfixed64); + $result.repeatedSfixed64.addAll(repeatedSfixed64); } if (repeatedFloat != null) { - _result.repeatedFloat.addAll(repeatedFloat); + $result.repeatedFloat.addAll(repeatedFloat); } if (repeatedDouble != null) { - _result.repeatedDouble.addAll(repeatedDouble); + $result.repeatedDouble.addAll(repeatedDouble); } if (repeatedBool != null) { - _result.repeatedBool.addAll(repeatedBool); + $result.repeatedBool.addAll(repeatedBool); } if (repeatedString != null) { - _result.repeatedString.addAll(repeatedString); + $result.repeatedString.addAll(repeatedString); } if (repeatedBytes != null) { - _result.repeatedBytes.addAll(repeatedBytes); + $result.repeatedBytes.addAll(repeatedBytes); } if (repeatedNestedMessage != null) { - _result.repeatedNestedMessage.addAll(repeatedNestedMessage); + $result.repeatedNestedMessage.addAll(repeatedNestedMessage); } if (repeatedForeignMessage != null) { - _result.repeatedForeignMessage.addAll(repeatedForeignMessage); + $result.repeatedForeignMessage.addAll(repeatedForeignMessage); } if (repeatedNestedEnum != null) { - _result.repeatedNestedEnum.addAll(repeatedNestedEnum); + $result.repeatedNestedEnum.addAll(repeatedNestedEnum); } if (repeatedForeignEnum != null) { - _result.repeatedForeignEnum.addAll(repeatedForeignEnum); + $result.repeatedForeignEnum.addAll(repeatedForeignEnum); } if (repeatedStringPiece != null) { - _result.repeatedStringPiece.addAll(repeatedStringPiece); + $result.repeatedStringPiece.addAll(repeatedStringPiece); } if (repeatedCord != null) { - _result.repeatedCord.addAll(repeatedCord); + $result.repeatedCord.addAll(repeatedCord); } if (mapInt32Int32 != null) { - _result.mapInt32Int32.addAll(mapInt32Int32); + $result.mapInt32Int32.addAll(mapInt32Int32); } if (mapInt64Int64 != null) { - _result.mapInt64Int64.addAll(mapInt64Int64); + $result.mapInt64Int64.addAll(mapInt64Int64); } if (mapUint32Uint32 != null) { - _result.mapUint32Uint32.addAll(mapUint32Uint32); + $result.mapUint32Uint32.addAll(mapUint32Uint32); } if (mapUint64Uint64 != null) { - _result.mapUint64Uint64.addAll(mapUint64Uint64); + $result.mapUint64Uint64.addAll(mapUint64Uint64); } if (mapSint32Sint32 != null) { - _result.mapSint32Sint32.addAll(mapSint32Sint32); + $result.mapSint32Sint32.addAll(mapSint32Sint32); } if (mapSint64Sint64 != null) { - _result.mapSint64Sint64.addAll(mapSint64Sint64); + $result.mapSint64Sint64.addAll(mapSint64Sint64); } if (mapFixed32Fixed32 != null) { - _result.mapFixed32Fixed32.addAll(mapFixed32Fixed32); + $result.mapFixed32Fixed32.addAll(mapFixed32Fixed32); } if (mapFixed64Fixed64 != null) { - _result.mapFixed64Fixed64.addAll(mapFixed64Fixed64); + $result.mapFixed64Fixed64.addAll(mapFixed64Fixed64); } if (mapSfixed32Sfixed32 != null) { - _result.mapSfixed32Sfixed32.addAll(mapSfixed32Sfixed32); + $result.mapSfixed32Sfixed32.addAll(mapSfixed32Sfixed32); } if (mapSfixed64Sfixed64 != null) { - _result.mapSfixed64Sfixed64.addAll(mapSfixed64Sfixed64); + $result.mapSfixed64Sfixed64.addAll(mapSfixed64Sfixed64); } if (mapInt32Float != null) { - _result.mapInt32Float.addAll(mapInt32Float); + $result.mapInt32Float.addAll(mapInt32Float); } if (mapInt32Double != null) { - _result.mapInt32Double.addAll(mapInt32Double); + $result.mapInt32Double.addAll(mapInt32Double); } if (mapBoolBool != null) { - _result.mapBoolBool.addAll(mapBoolBool); + $result.mapBoolBool.addAll(mapBoolBool); } if (mapStringString != null) { - _result.mapStringString.addAll(mapStringString); + $result.mapStringString.addAll(mapStringString); } if (mapStringBytes != null) { - _result.mapStringBytes.addAll(mapStringBytes); + $result.mapStringBytes.addAll(mapStringBytes); } if (mapStringNestedMessage != null) { - _result.mapStringNestedMessage.addAll(mapStringNestedMessage); + $result.mapStringNestedMessage.addAll(mapStringNestedMessage); } if (mapStringForeignMessage != null) { - _result.mapStringForeignMessage.addAll(mapStringForeignMessage); + $result.mapStringForeignMessage.addAll(mapStringForeignMessage); } if (mapStringNestedEnum != null) { - _result.mapStringNestedEnum.addAll(mapStringNestedEnum); + $result.mapStringNestedEnum.addAll(mapStringNestedEnum); } if (mapStringForeignEnum != null) { - _result.mapStringForeignEnum.addAll(mapStringForeignEnum); + $result.mapStringForeignEnum.addAll(mapStringForeignEnum); } if (packedInt32 != null) { - _result.packedInt32.addAll(packedInt32); + $result.packedInt32.addAll(packedInt32); } if (packedInt64 != null) { - _result.packedInt64.addAll(packedInt64); + $result.packedInt64.addAll(packedInt64); } if (packedUint32 != null) { - _result.packedUint32.addAll(packedUint32); + $result.packedUint32.addAll(packedUint32); } if (packedUint64 != null) { - _result.packedUint64.addAll(packedUint64); + $result.packedUint64.addAll(packedUint64); } if (packedSint32 != null) { - _result.packedSint32.addAll(packedSint32); + $result.packedSint32.addAll(packedSint32); } if (packedSint64 != null) { - _result.packedSint64.addAll(packedSint64); + $result.packedSint64.addAll(packedSint64); } if (packedFixed32 != null) { - _result.packedFixed32.addAll(packedFixed32); + $result.packedFixed32.addAll(packedFixed32); } if (packedFixed64 != null) { - _result.packedFixed64.addAll(packedFixed64); + $result.packedFixed64.addAll(packedFixed64); } if (packedSfixed32 != null) { - _result.packedSfixed32.addAll(packedSfixed32); + $result.packedSfixed32.addAll(packedSfixed32); } if (packedSfixed64 != null) { - _result.packedSfixed64.addAll(packedSfixed64); + $result.packedSfixed64.addAll(packedSfixed64); } if (packedFloat != null) { - _result.packedFloat.addAll(packedFloat); + $result.packedFloat.addAll(packedFloat); } if (packedDouble != null) { - _result.packedDouble.addAll(packedDouble); + $result.packedDouble.addAll(packedDouble); } if (packedBool != null) { - _result.packedBool.addAll(packedBool); + $result.packedBool.addAll(packedBool); } if (packedNestedEnum != null) { - _result.packedNestedEnum.addAll(packedNestedEnum); + $result.packedNestedEnum.addAll(packedNestedEnum); } if (unpackedInt32 != null) { - _result.unpackedInt32.addAll(unpackedInt32); + $result.unpackedInt32.addAll(unpackedInt32); } if (unpackedInt64 != null) { - _result.unpackedInt64.addAll(unpackedInt64); + $result.unpackedInt64.addAll(unpackedInt64); } if (unpackedUint32 != null) { - _result.unpackedUint32.addAll(unpackedUint32); + $result.unpackedUint32.addAll(unpackedUint32); } if (unpackedUint64 != null) { - _result.unpackedUint64.addAll(unpackedUint64); + $result.unpackedUint64.addAll(unpackedUint64); } if (unpackedSint32 != null) { - _result.unpackedSint32.addAll(unpackedSint32); + $result.unpackedSint32.addAll(unpackedSint32); } if (unpackedSint64 != null) { - _result.unpackedSint64.addAll(unpackedSint64); + $result.unpackedSint64.addAll(unpackedSint64); } if (unpackedFixed32 != null) { - _result.unpackedFixed32.addAll(unpackedFixed32); + $result.unpackedFixed32.addAll(unpackedFixed32); } if (unpackedFixed64 != null) { - _result.unpackedFixed64.addAll(unpackedFixed64); + $result.unpackedFixed64.addAll(unpackedFixed64); } if (unpackedSfixed32 != null) { - _result.unpackedSfixed32.addAll(unpackedSfixed32); + $result.unpackedSfixed32.addAll(unpackedSfixed32); } if (unpackedSfixed64 != null) { - _result.unpackedSfixed64.addAll(unpackedSfixed64); + $result.unpackedSfixed64.addAll(unpackedSfixed64); } if (unpackedFloat != null) { - _result.unpackedFloat.addAll(unpackedFloat); + $result.unpackedFloat.addAll(unpackedFloat); } if (unpackedDouble != null) { - _result.unpackedDouble.addAll(unpackedDouble); + $result.unpackedDouble.addAll(unpackedDouble); } if (unpackedBool != null) { - _result.unpackedBool.addAll(unpackedBool); + $result.unpackedBool.addAll(unpackedBool); } if (unpackedNestedEnum != null) { - _result.unpackedNestedEnum.addAll(unpackedNestedEnum); + $result.unpackedNestedEnum.addAll(unpackedNestedEnum); } if (oneofUint32 != null) { - _result.oneofUint32 = oneofUint32; + $result.oneofUint32 = oneofUint32; } if (oneofNestedMessage != null) { - _result.oneofNestedMessage = oneofNestedMessage; + $result.oneofNestedMessage = oneofNestedMessage; } if (oneofString != null) { - _result.oneofString = oneofString; + $result.oneofString = oneofString; } if (oneofBytes != null) { - _result.oneofBytes = oneofBytes; + $result.oneofBytes = oneofBytes; } if (oneofBool != null) { - _result.oneofBool = oneofBool; + $result.oneofBool = oneofBool; } if (oneofUint64 != null) { - _result.oneofUint64 = oneofUint64; + $result.oneofUint64 = oneofUint64; } if (oneofFloat != null) { - _result.oneofFloat = oneofFloat; + $result.oneofFloat = oneofFloat; } if (oneofDouble != null) { - _result.oneofDouble = oneofDouble; + $result.oneofDouble = oneofDouble; } if (oneofEnum != null) { - _result.oneofEnum = oneofEnum; + $result.oneofEnum = oneofEnum; } if (oneofNullValue != null) { - _result.oneofNullValue = oneofNullValue; + $result.oneofNullValue = oneofNullValue; } if (optionalBoolWrapper != null) { - _result.optionalBoolWrapper = optionalBoolWrapper; + $result.optionalBoolWrapper = optionalBoolWrapper; } if (optionalInt32Wrapper != null) { - _result.optionalInt32Wrapper = optionalInt32Wrapper; + $result.optionalInt32Wrapper = optionalInt32Wrapper; } if (optionalInt64Wrapper != null) { - _result.optionalInt64Wrapper = optionalInt64Wrapper; + $result.optionalInt64Wrapper = optionalInt64Wrapper; } if (optionalUint32Wrapper != null) { - _result.optionalUint32Wrapper = optionalUint32Wrapper; + $result.optionalUint32Wrapper = optionalUint32Wrapper; } if (optionalUint64Wrapper != null) { - _result.optionalUint64Wrapper = optionalUint64Wrapper; + $result.optionalUint64Wrapper = optionalUint64Wrapper; } if (optionalFloatWrapper != null) { - _result.optionalFloatWrapper = optionalFloatWrapper; + $result.optionalFloatWrapper = optionalFloatWrapper; } if (optionalDoubleWrapper != null) { - _result.optionalDoubleWrapper = optionalDoubleWrapper; + $result.optionalDoubleWrapper = optionalDoubleWrapper; } if (optionalStringWrapper != null) { - _result.optionalStringWrapper = optionalStringWrapper; + $result.optionalStringWrapper = optionalStringWrapper; } if (optionalBytesWrapper != null) { - _result.optionalBytesWrapper = optionalBytesWrapper; + $result.optionalBytesWrapper = optionalBytesWrapper; } if (repeatedBoolWrapper != null) { - _result.repeatedBoolWrapper.addAll(repeatedBoolWrapper); + $result.repeatedBoolWrapper.addAll(repeatedBoolWrapper); } if (repeatedInt32Wrapper != null) { - _result.repeatedInt32Wrapper.addAll(repeatedInt32Wrapper); + $result.repeatedInt32Wrapper.addAll(repeatedInt32Wrapper); } if (repeatedInt64Wrapper != null) { - _result.repeatedInt64Wrapper.addAll(repeatedInt64Wrapper); + $result.repeatedInt64Wrapper.addAll(repeatedInt64Wrapper); } if (repeatedUint32Wrapper != null) { - _result.repeatedUint32Wrapper.addAll(repeatedUint32Wrapper); + $result.repeatedUint32Wrapper.addAll(repeatedUint32Wrapper); } if (repeatedUint64Wrapper != null) { - _result.repeatedUint64Wrapper.addAll(repeatedUint64Wrapper); + $result.repeatedUint64Wrapper.addAll(repeatedUint64Wrapper); } if (repeatedFloatWrapper != null) { - _result.repeatedFloatWrapper.addAll(repeatedFloatWrapper); + $result.repeatedFloatWrapper.addAll(repeatedFloatWrapper); } if (repeatedDoubleWrapper != null) { - _result.repeatedDoubleWrapper.addAll(repeatedDoubleWrapper); + $result.repeatedDoubleWrapper.addAll(repeatedDoubleWrapper); } if (repeatedStringWrapper != null) { - _result.repeatedStringWrapper.addAll(repeatedStringWrapper); + $result.repeatedStringWrapper.addAll(repeatedStringWrapper); } if (repeatedBytesWrapper != null) { - _result.repeatedBytesWrapper.addAll(repeatedBytesWrapper); + $result.repeatedBytesWrapper.addAll(repeatedBytesWrapper); } if (optionalDuration != null) { - _result.optionalDuration = optionalDuration; + $result.optionalDuration = optionalDuration; } if (optionalTimestamp != null) { - _result.optionalTimestamp = optionalTimestamp; + $result.optionalTimestamp = optionalTimestamp; } if (optionalFieldMask != null) { - _result.optionalFieldMask = optionalFieldMask; + $result.optionalFieldMask = optionalFieldMask; } if (optionalStruct != null) { - _result.optionalStruct = optionalStruct; + $result.optionalStruct = optionalStruct; } if (optionalAny != null) { - _result.optionalAny = optionalAny; + $result.optionalAny = optionalAny; } if (optionalValue != null) { - _result.optionalValue = optionalValue; + $result.optionalValue = optionalValue; } if (optionalNullValue != null) { - _result.optionalNullValue = optionalNullValue; + $result.optionalNullValue = optionalNullValue; } if (repeatedDuration != null) { - _result.repeatedDuration.addAll(repeatedDuration); + $result.repeatedDuration.addAll(repeatedDuration); } if (repeatedTimestamp != null) { - _result.repeatedTimestamp.addAll(repeatedTimestamp); + $result.repeatedTimestamp.addAll(repeatedTimestamp); } if (repeatedFieldmask != null) { - _result.repeatedFieldmask.addAll(repeatedFieldmask); + $result.repeatedFieldmask.addAll(repeatedFieldmask); } if (repeatedAny != null) { - _result.repeatedAny.addAll(repeatedAny); + $result.repeatedAny.addAll(repeatedAny); } if (repeatedValue != null) { - _result.repeatedValue.addAll(repeatedValue); + $result.repeatedValue.addAll(repeatedValue); } if (repeatedListValue != null) { - _result.repeatedListValue.addAll(repeatedListValue); + $result.repeatedListValue.addAll(repeatedListValue); } if (repeatedStruct != null) { - _result.repeatedStruct.addAll(repeatedStruct); + $result.repeatedStruct.addAll(repeatedStruct); } if (fieldname1 != null) { - _result.fieldname1 = fieldname1; + $result.fieldname1 = fieldname1; } if (fieldName2 != null) { - _result.fieldName2 = fieldName2; + $result.fieldName2 = fieldName2; } if (fieldName3 != null) { - _result.fieldName3 = fieldName3; + $result.fieldName3 = fieldName3; } if (fieldName4 != null) { - _result.fieldName4 = fieldName4; + $result.fieldName4 = fieldName4; } if (field0name5 != null) { - _result.field0name5 = field0name5; + $result.field0name5 = field0name5; } if (field0Name6 != null) { - _result.field0Name6 = field0Name6; + $result.field0Name6 = field0Name6; } if (fieldName7 != null) { - _result.fieldName7 = fieldName7; + $result.fieldName7 = fieldName7; } if (fieldName8 != null) { - _result.fieldName8 = fieldName8; + $result.fieldName8 = fieldName8; } if (fieldName9 != null) { - _result.fieldName9 = fieldName9; + $result.fieldName9 = fieldName9; } if (fieldName10 != null) { - _result.fieldName10 = fieldName10; + $result.fieldName10 = fieldName10; } if (fIELDNAME11 != null) { - _result.fIELDNAME11 = fIELDNAME11; + $result.fIELDNAME11 = fIELDNAME11; } if (fIELDName12 != null) { - _result.fIELDName12 = fIELDName12; + $result.fIELDName12 = fIELDName12; } if (fieldName13 != null) { - _result.fieldName13 = fieldName13; + $result.fieldName13 = fieldName13; } if (fieldName14 != null) { - _result.fieldName14 = fieldName14; + $result.fieldName14 = fieldName14; } if (fieldName15 != null) { - _result.fieldName15 = fieldName15; + $result.fieldName15 = fieldName15; } if (fieldName16 != null) { - _result.fieldName16 = fieldName16; + $result.fieldName16 = fieldName16; } if (fieldName17 != null) { - _result.fieldName17 = fieldName17; + $result.fieldName17 = fieldName17; } if (fieldName18 != null) { - _result.fieldName18 = fieldName18; + $result.fieldName18 = fieldName18; } - return _result; + return $result; } + TestAllTypesProto3._() : super(); factory TestAllTypesProto3.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory TestAllTypesProto3.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static const $core.Map<$core.int, TestAllTypesProto3_OneofField> + _TestAllTypesProto3_OneofFieldByTag = { + 111: TestAllTypesProto3_OneofField.oneofUint32, + 112: TestAllTypesProto3_OneofField.oneofNestedMessage, + 113: TestAllTypesProto3_OneofField.oneofString, + 114: TestAllTypesProto3_OneofField.oneofBytes, + 115: TestAllTypesProto3_OneofField.oneofBool, + 116: TestAllTypesProto3_OneofField.oneofUint64, + 117: TestAllTypesProto3_OneofField.oneofFloat, + 118: TestAllTypesProto3_OneofField.oneofDouble, + 119: TestAllTypesProto3_OneofField.oneofEnum, + 120: TestAllTypesProto3_OneofField.oneofNullValue, + 0: TestAllTypesProto3_OneofField.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'TestAllTypesProto3', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto3'), + createEmptyInstance: create) + ..oo(0, [111, 112, 113, 114, 115, 116, 117, 118, 119, 120]) + ..a<$core.int>( + 1, _omitFieldNames ? '' : 'optionalInt32', $pb.PbFieldType.O3) + ..aInt64(2, _omitFieldNames ? '' : 'optionalInt64') + ..a<$core.int>( + 3, _omitFieldNames ? '' : 'optionalUint32', $pb.PbFieldType.OU3) + ..a<$fixnum.Int64>( + 4, _omitFieldNames ? '' : 'optionalUint64', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>( + 5, _omitFieldNames ? '' : 'optionalSint32', $pb.PbFieldType.OS3) + ..a<$fixnum.Int64>( + 6, _omitFieldNames ? '' : 'optionalSint64', $pb.PbFieldType.OS6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>( + 7, _omitFieldNames ? '' : 'optionalFixed32', $pb.PbFieldType.OF3) + ..a<$fixnum.Int64>( + 8, _omitFieldNames ? '' : 'optionalFixed64', $pb.PbFieldType.OF6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>( + 9, _omitFieldNames ? '' : 'optionalSfixed32', $pb.PbFieldType.OSF3) + ..a<$fixnum.Int64>( + 10, _omitFieldNames ? '' : 'optionalSfixed64', $pb.PbFieldType.OSF6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 11, _omitFieldNames ? '' : 'optionalFloat', $pb.PbFieldType.OF) + ..a<$core.double>( + 12, _omitFieldNames ? '' : 'optionalDouble', $pb.PbFieldType.OD) + ..aOB(13, _omitFieldNames ? '' : 'optionalBool') + ..aOS(14, _omitFieldNames ? '' : 'optionalString') + ..a<$core.List<$core.int>>( + 15, _omitFieldNames ? '' : 'optionalBytes', $pb.PbFieldType.OY) + ..aOM( + 18, _omitFieldNames ? '' : 'optionalNestedMessage', + subBuilder: TestAllTypesProto3_NestedMessage.create) + ..aOM(19, _omitFieldNames ? '' : 'optionalForeignMessage', + subBuilder: ForeignMessage.create) + ..e( + 21, _omitFieldNames ? '' : 'optionalNestedEnum', $pb.PbFieldType.OE, + defaultOrMaker: TestAllTypesProto3_NestedEnum.FOO, + valueOf: TestAllTypesProto3_NestedEnum.valueOf, + enumValues: TestAllTypesProto3_NestedEnum.values) + ..e( + 22, _omitFieldNames ? '' : 'optionalForeignEnum', $pb.PbFieldType.OE, + defaultOrMaker: ForeignEnum.FOREIGN_FOO, + valueOf: ForeignEnum.valueOf, + enumValues: ForeignEnum.values) + ..e( + 23, _omitFieldNames ? '' : 'optionalAliasedEnum', $pb.PbFieldType.OE, + defaultOrMaker: TestAllTypesProto3_AliasedEnum.ALIAS_FOO, + valueOf: TestAllTypesProto3_AliasedEnum.valueOf, + enumValues: TestAllTypesProto3_AliasedEnum.values) + ..aOS(24, _omitFieldNames ? '' : 'optionalStringPiece') + ..aOS(25, _omitFieldNames ? '' : 'optionalCord') + ..aOM(27, _omitFieldNames ? '' : 'recursiveMessage', + subBuilder: TestAllTypesProto3.create) + ..p<$core.int>( + 31, _omitFieldNames ? '' : 'repeatedInt32', $pb.PbFieldType.K3) + ..p<$fixnum.Int64>( + 32, _omitFieldNames ? '' : 'repeatedInt64', $pb.PbFieldType.K6) + ..p<$core.int>( + 33, _omitFieldNames ? '' : 'repeatedUint32', $pb.PbFieldType.KU3) + ..p<$fixnum.Int64>( + 34, _omitFieldNames ? '' : 'repeatedUint64', $pb.PbFieldType.KU6) + ..p<$core.int>( + 35, _omitFieldNames ? '' : 'repeatedSint32', $pb.PbFieldType.KS3) + ..p<$fixnum.Int64>( + 36, _omitFieldNames ? '' : 'repeatedSint64', $pb.PbFieldType.KS6) + ..p<$core.int>( + 37, _omitFieldNames ? '' : 'repeatedFixed32', $pb.PbFieldType.KF3) + ..p<$fixnum.Int64>( + 38, _omitFieldNames ? '' : 'repeatedFixed64', $pb.PbFieldType.KF6) + ..p<$core.int>( + 39, _omitFieldNames ? '' : 'repeatedSfixed32', $pb.PbFieldType.KSF3) + ..p<$fixnum.Int64>( + 40, _omitFieldNames ? '' : 'repeatedSfixed64', $pb.PbFieldType.KSF6) + ..p<$core.double>( + 41, _omitFieldNames ? '' : 'repeatedFloat', $pb.PbFieldType.KF) + ..p<$core.double>( + 42, _omitFieldNames ? '' : 'repeatedDouble', $pb.PbFieldType.KD) + ..p<$core.bool>( + 43, _omitFieldNames ? '' : 'repeatedBool', $pb.PbFieldType.KB) + ..pPS(44, _omitFieldNames ? '' : 'repeatedString') + ..p<$core.List<$core.int>>( + 45, _omitFieldNames ? '' : 'repeatedBytes', $pb.PbFieldType.PY) + ..pc( + 48, _omitFieldNames ? '' : 'repeatedNestedMessage', $pb.PbFieldType.PM, + subBuilder: TestAllTypesProto3_NestedMessage.create) + ..pc( + 49, _omitFieldNames ? '' : 'repeatedForeignMessage', $pb.PbFieldType.PM, + subBuilder: ForeignMessage.create) + ..pc( + 51, _omitFieldNames ? '' : 'repeatedNestedEnum', $pb.PbFieldType.KE, + valueOf: TestAllTypesProto3_NestedEnum.valueOf, + enumValues: TestAllTypesProto3_NestedEnum.values, + defaultEnumValue: TestAllTypesProto3_NestedEnum.FOO) + ..pc( + 52, _omitFieldNames ? '' : 'repeatedForeignEnum', $pb.PbFieldType.KE, + valueOf: ForeignEnum.valueOf, + enumValues: ForeignEnum.values, + defaultEnumValue: ForeignEnum.FOREIGN_FOO) + ..pPS(54, _omitFieldNames ? '' : 'repeatedStringPiece') + ..pPS(55, _omitFieldNames ? '' : 'repeatedCord') + ..m<$core.int, $core.int>(56, _omitFieldNames ? '' : 'mapInt32Int32', + entryClassName: 'TestAllTypesProto3.MapInt32Int32Entry', + keyFieldType: $pb.PbFieldType.O3, + valueFieldType: $pb.PbFieldType.O3, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$fixnum.Int64, $fixnum.Int64>( + 57, _omitFieldNames ? '' : 'mapInt64Int64', + entryClassName: 'TestAllTypesProto3.MapInt64Int64Entry', + keyFieldType: $pb.PbFieldType.O6, + valueFieldType: $pb.PbFieldType.O6, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.int, $core.int>(58, _omitFieldNames ? '' : 'mapUint32Uint32', + entryClassName: 'TestAllTypesProto3.MapUint32Uint32Entry', + keyFieldType: $pb.PbFieldType.OU3, + valueFieldType: $pb.PbFieldType.OU3, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$fixnum.Int64, $fixnum.Int64>( + 59, _omitFieldNames ? '' : 'mapUint64Uint64', + entryClassName: 'TestAllTypesProto3.MapUint64Uint64Entry', + keyFieldType: $pb.PbFieldType.OU6, + valueFieldType: $pb.PbFieldType.OU6, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.int, $core.int>(60, _omitFieldNames ? '' : 'mapSint32Sint32', + entryClassName: 'TestAllTypesProto3.MapSint32Sint32Entry', + keyFieldType: $pb.PbFieldType.OS3, + valueFieldType: $pb.PbFieldType.OS3, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$fixnum.Int64, $fixnum.Int64>( + 61, _omitFieldNames ? '' : 'mapSint64Sint64', + entryClassName: 'TestAllTypesProto3.MapSint64Sint64Entry', + keyFieldType: $pb.PbFieldType.OS6, + valueFieldType: $pb.PbFieldType.OS6, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.int, $core.int>(62, _omitFieldNames ? '' : 'mapFixed32Fixed32', + entryClassName: 'TestAllTypesProto3.MapFixed32Fixed32Entry', + keyFieldType: $pb.PbFieldType.OF3, + valueFieldType: $pb.PbFieldType.OF3, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$fixnum.Int64, $fixnum.Int64>( + 63, _omitFieldNames ? '' : 'mapFixed64Fixed64', + entryClassName: 'TestAllTypesProto3.MapFixed64Fixed64Entry', + keyFieldType: $pb.PbFieldType.OF6, + valueFieldType: $pb.PbFieldType.OF6, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.int, $core.int>(64, _omitFieldNames ? '' : 'mapSfixed32Sfixed32', + entryClassName: 'TestAllTypesProto3.MapSfixed32Sfixed32Entry', + keyFieldType: $pb.PbFieldType.OSF3, + valueFieldType: $pb.PbFieldType.OSF3, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$fixnum.Int64, $fixnum.Int64>( + 65, _omitFieldNames ? '' : 'mapSfixed64Sfixed64', + entryClassName: 'TestAllTypesProto3.MapSfixed64Sfixed64Entry', + keyFieldType: $pb.PbFieldType.OSF6, + valueFieldType: $pb.PbFieldType.OSF6, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.int, $core.double>(66, _omitFieldNames ? '' : 'mapInt32Float', + entryClassName: 'TestAllTypesProto3.MapInt32FloatEntry', + keyFieldType: $pb.PbFieldType.O3, + valueFieldType: $pb.PbFieldType.OF, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.int, $core.double>(67, _omitFieldNames ? '' : 'mapInt32Double', + entryClassName: 'TestAllTypesProto3.MapInt32DoubleEntry', + keyFieldType: $pb.PbFieldType.O3, + valueFieldType: $pb.PbFieldType.OD, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.bool, $core.bool>(68, _omitFieldNames ? '' : 'mapBoolBool', + entryClassName: 'TestAllTypesProto3.MapBoolBoolEntry', + keyFieldType: $pb.PbFieldType.OB, + valueFieldType: $pb.PbFieldType.OB, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.String, $core.String>( + 69, _omitFieldNames ? '' : 'mapStringString', + entryClassName: 'TestAllTypesProto3.MapStringStringEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.String, $core.List<$core.int>>( + 70, _omitFieldNames ? '' : 'mapStringBytes', + entryClassName: 'TestAllTypesProto3.MapStringBytesEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OY, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.String, TestAllTypesProto3_NestedMessage>( + 71, _omitFieldNames ? '' : 'mapStringNestedMessage', + entryClassName: 'TestAllTypesProto3.MapStringNestedMessageEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: TestAllTypesProto3_NestedMessage.create, + valueDefaultOrMaker: TestAllTypesProto3_NestedMessage.getDefault, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.String, ForeignMessage>( + 72, _omitFieldNames ? '' : 'mapStringForeignMessage', + entryClassName: 'TestAllTypesProto3.MapStringForeignMessageEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OM, + valueCreator: ForeignMessage.create, + valueDefaultOrMaker: ForeignMessage.getDefault, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.String, TestAllTypesProto3_NestedEnum>( + 73, _omitFieldNames ? '' : 'mapStringNestedEnum', + entryClassName: 'TestAllTypesProto3.MapStringNestedEnumEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OE, + valueOf: TestAllTypesProto3_NestedEnum.valueOf, + enumValues: TestAllTypesProto3_NestedEnum.values, + valueDefaultOrMaker: TestAllTypesProto3_NestedEnum.FOO, + defaultEnumValue: TestAllTypesProto3_NestedEnum.FOO, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..m<$core.String, ForeignEnum>( + 74, _omitFieldNames ? '' : 'mapStringForeignEnum', + entryClassName: 'TestAllTypesProto3.MapStringForeignEnumEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OE, + valueOf: ForeignEnum.valueOf, + enumValues: ForeignEnum.values, + valueDefaultOrMaker: ForeignEnum.FOREIGN_FOO, + defaultEnumValue: ForeignEnum.FOREIGN_FOO, + packageName: const $pb.PackageName('protobuf_test_messages.proto3')) + ..p<$core.int>(75, _omitFieldNames ? '' : 'packedInt32', $pb.PbFieldType.K3) + ..p<$fixnum.Int64>( + 76, _omitFieldNames ? '' : 'packedInt64', $pb.PbFieldType.K6) + ..p<$core.int>( + 77, _omitFieldNames ? '' : 'packedUint32', $pb.PbFieldType.KU3) + ..p<$fixnum.Int64>( + 78, _omitFieldNames ? '' : 'packedUint64', $pb.PbFieldType.KU6) + ..p<$core.int>( + 79, _omitFieldNames ? '' : 'packedSint32', $pb.PbFieldType.KS3) + ..p<$fixnum.Int64>( + 80, _omitFieldNames ? '' : 'packedSint64', $pb.PbFieldType.KS6) + ..p<$core.int>( + 81, _omitFieldNames ? '' : 'packedFixed32', $pb.PbFieldType.KF3) + ..p<$fixnum.Int64>( + 82, _omitFieldNames ? '' : 'packedFixed64', $pb.PbFieldType.KF6) + ..p<$core.int>( + 83, _omitFieldNames ? '' : 'packedSfixed32', $pb.PbFieldType.KSF3) + ..p<$fixnum.Int64>( + 84, _omitFieldNames ? '' : 'packedSfixed64', $pb.PbFieldType.KSF6) + ..p<$core.double>( + 85, _omitFieldNames ? '' : 'packedFloat', $pb.PbFieldType.KF) + ..p<$core.double>( + 86, _omitFieldNames ? '' : 'packedDouble', $pb.PbFieldType.KD) + ..p<$core.bool>(87, _omitFieldNames ? '' : 'packedBool', $pb.PbFieldType.KB) + ..pc( + 88, _omitFieldNames ? '' : 'packedNestedEnum', $pb.PbFieldType.KE, + valueOf: TestAllTypesProto3_NestedEnum.valueOf, + enumValues: TestAllTypesProto3_NestedEnum.values, + defaultEnumValue: TestAllTypesProto3_NestedEnum.FOO) + ..p<$core.int>( + 89, _omitFieldNames ? '' : 'unpackedInt32', $pb.PbFieldType.P3) + ..p<$fixnum.Int64>( + 90, _omitFieldNames ? '' : 'unpackedInt64', $pb.PbFieldType.P6) + ..p<$core.int>( + 91, _omitFieldNames ? '' : 'unpackedUint32', $pb.PbFieldType.PU3) + ..p<$fixnum.Int64>( + 92, _omitFieldNames ? '' : 'unpackedUint64', $pb.PbFieldType.PU6) + ..p<$core.int>( + 93, _omitFieldNames ? '' : 'unpackedSint32', $pb.PbFieldType.PS3) + ..p<$fixnum.Int64>( + 94, _omitFieldNames ? '' : 'unpackedSint64', $pb.PbFieldType.PS6) + ..p<$core.int>( + 95, _omitFieldNames ? '' : 'unpackedFixed32', $pb.PbFieldType.PF3) + ..p<$fixnum.Int64>( + 96, _omitFieldNames ? '' : 'unpackedFixed64', $pb.PbFieldType.PF6) + ..p<$core.int>( + 97, _omitFieldNames ? '' : 'unpackedSfixed32', $pb.PbFieldType.PSF3) + ..p<$fixnum.Int64>( + 98, _omitFieldNames ? '' : 'unpackedSfixed64', $pb.PbFieldType.PSF6) + ..p<$core.double>( + 99, _omitFieldNames ? '' : 'unpackedFloat', $pb.PbFieldType.PF) + ..p<$core.double>( + 100, _omitFieldNames ? '' : 'unpackedDouble', $pb.PbFieldType.PD) + ..p<$core.bool>( + 101, _omitFieldNames ? '' : 'unpackedBool', $pb.PbFieldType.PB) + ..pc( + 102, _omitFieldNames ? '' : 'unpackedNestedEnum', $pb.PbFieldType.PE, + valueOf: TestAllTypesProto3_NestedEnum.valueOf, + enumValues: TestAllTypesProto3_NestedEnum.values, + defaultEnumValue: TestAllTypesProto3_NestedEnum.FOO) + ..a<$core.int>( + 111, _omitFieldNames ? '' : 'oneofUint32', $pb.PbFieldType.OU3) + ..aOM( + 112, _omitFieldNames ? '' : 'oneofNestedMessage', + subBuilder: TestAllTypesProto3_NestedMessage.create) + ..aOS(113, _omitFieldNames ? '' : 'oneofString') + ..a<$core.List<$core.int>>( + 114, _omitFieldNames ? '' : 'oneofBytes', $pb.PbFieldType.OY) + ..aOB(115, _omitFieldNames ? '' : 'oneofBool') + ..a<$fixnum.Int64>( + 116, _omitFieldNames ? '' : 'oneofUint64', $pb.PbFieldType.OU6, + defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.double>( + 117, _omitFieldNames ? '' : 'oneofFloat', $pb.PbFieldType.OF) + ..a<$core.double>( + 118, _omitFieldNames ? '' : 'oneofDouble', $pb.PbFieldType.OD) + ..e( + 119, _omitFieldNames ? '' : 'oneofEnum', $pb.PbFieldType.OE, + defaultOrMaker: TestAllTypesProto3_NestedEnum.FOO, + valueOf: TestAllTypesProto3_NestedEnum.valueOf, + enumValues: TestAllTypesProto3_NestedEnum.values) + ..e<$48.NullValue>( + 120, _omitFieldNames ? '' : 'oneofNullValue', $pb.PbFieldType.OE, + defaultOrMaker: $48.NullValue.NULL_VALUE, + valueOf: $48.NullValue.valueOf, + enumValues: $48.NullValue.values) + ..aOM<$73.BoolValue>(201, _omitFieldNames ? '' : 'optionalBoolWrapper', + subBuilder: $73.BoolValue.create) + ..aOM<$73.Int32Value>(202, _omitFieldNames ? '' : 'optionalInt32Wrapper', + subBuilder: $73.Int32Value.create) + ..aOM<$73.Int64Value>(203, _omitFieldNames ? '' : 'optionalInt64Wrapper', + subBuilder: $73.Int64Value.create) + ..aOM<$73.UInt32Value>(204, _omitFieldNames ? '' : 'optionalUint32Wrapper', + subBuilder: $73.UInt32Value.create) + ..aOM<$73.UInt64Value>(205, _omitFieldNames ? '' : 'optionalUint64Wrapper', + subBuilder: $73.UInt64Value.create) + ..aOM<$73.FloatValue>(206, _omitFieldNames ? '' : 'optionalFloatWrapper', + subBuilder: $73.FloatValue.create) + ..aOM<$73.DoubleValue>(207, _omitFieldNames ? '' : 'optionalDoubleWrapper', + subBuilder: $73.DoubleValue.create) + ..aOM<$73.StringValue>(208, _omitFieldNames ? '' : 'optionalStringWrapper', + subBuilder: $73.StringValue.create) + ..aOM<$73.BytesValue>(209, _omitFieldNames ? '' : 'optionalBytesWrapper', + subBuilder: $73.BytesValue.create) + ..pc<$73.BoolValue>( + 211, _omitFieldNames ? '' : 'repeatedBoolWrapper', $pb.PbFieldType.PM, + subBuilder: $73.BoolValue.create) + ..pc<$73.Int32Value>( + 212, _omitFieldNames ? '' : 'repeatedInt32Wrapper', $pb.PbFieldType.PM, + subBuilder: $73.Int32Value.create) + ..pc<$73.Int64Value>( + 213, _omitFieldNames ? '' : 'repeatedInt64Wrapper', $pb.PbFieldType.PM, + subBuilder: $73.Int64Value.create) + ..pc<$73.UInt32Value>( + 214, _omitFieldNames ? '' : 'repeatedUint32Wrapper', $pb.PbFieldType.PM, + subBuilder: $73.UInt32Value.create) + ..pc<$73.UInt64Value>( + 215, _omitFieldNames ? '' : 'repeatedUint64Wrapper', $pb.PbFieldType.PM, + subBuilder: $73.UInt64Value.create) + ..pc<$73.FloatValue>( + 216, _omitFieldNames ? '' : 'repeatedFloatWrapper', $pb.PbFieldType.PM, + subBuilder: $73.FloatValue.create) + ..pc<$73.DoubleValue>( + 217, _omitFieldNames ? '' : 'repeatedDoubleWrapper', $pb.PbFieldType.PM, + subBuilder: $73.DoubleValue.create) + ..pc<$73.StringValue>( + 218, _omitFieldNames ? '' : 'repeatedStringWrapper', $pb.PbFieldType.PM, + subBuilder: $73.StringValue.create) + ..pc<$73.BytesValue>( + 219, _omitFieldNames ? '' : 'repeatedBytesWrapper', $pb.PbFieldType.PM, + subBuilder: $73.BytesValue.create) + ..aOM<$51.Duration>(301, _omitFieldNames ? '' : 'optionalDuration', + subBuilder: $51.Duration.create) + ..aOM<$50.Timestamp>(302, _omitFieldNames ? '' : 'optionalTimestamp', + subBuilder: $50.Timestamp.create) + ..aOM<$58.FieldMask>(303, _omitFieldNames ? '' : 'optionalFieldMask', + subBuilder: $58.FieldMask.create) + ..aOM<$48.Struct>(304, _omitFieldNames ? '' : 'optionalStruct', + subBuilder: $48.Struct.create) + ..aOM<$49.Any>(305, _omitFieldNames ? '' : 'optionalAny', + subBuilder: $49.Any.create) + ..aOM<$48.Value>(306, _omitFieldNames ? '' : 'optionalValue', + subBuilder: $48.Value.create) + ..e<$48.NullValue>( + 307, _omitFieldNames ? '' : 'optionalNullValue', $pb.PbFieldType.OE, + defaultOrMaker: $48.NullValue.NULL_VALUE, + valueOf: $48.NullValue.valueOf, + enumValues: $48.NullValue.values) + ..pc<$51.Duration>( + 311, _omitFieldNames ? '' : 'repeatedDuration', $pb.PbFieldType.PM, + subBuilder: $51.Duration.create) + ..pc<$50.Timestamp>( + 312, _omitFieldNames ? '' : 'repeatedTimestamp', $pb.PbFieldType.PM, + subBuilder: $50.Timestamp.create) + ..pc<$58.FieldMask>( + 313, _omitFieldNames ? '' : 'repeatedFieldmask', $pb.PbFieldType.PM, + subBuilder: $58.FieldMask.create) + ..pc<$49.Any>(315, _omitFieldNames ? '' : 'repeatedAny', $pb.PbFieldType.PM, + subBuilder: $49.Any.create) + ..pc<$48.Value>( + 316, _omitFieldNames ? '' : 'repeatedValue', $pb.PbFieldType.PM, + subBuilder: $48.Value.create) + ..pc<$48.ListValue>( + 317, _omitFieldNames ? '' : 'repeatedListValue', $pb.PbFieldType.PM, + subBuilder: $48.ListValue.create) + ..pc<$48.Struct>( + 324, _omitFieldNames ? '' : 'repeatedStruct', $pb.PbFieldType.PM, + subBuilder: $48.Struct.create) + ..a<$core.int>(401, _omitFieldNames ? '' : 'fieldname1', $pb.PbFieldType.O3) + ..a<$core.int>(402, _omitFieldNames ? '' : 'fieldName2', $pb.PbFieldType.O3) + ..a<$core.int>(403, _omitFieldNames ? '' : 'FieldName3', $pb.PbFieldType.O3) + ..a<$core.int>(404, _omitFieldNames ? '' : 'fieldName4', $pb.PbFieldType.O3, + protoName: 'field__name4_') + ..a<$core.int>( + 405, _omitFieldNames ? '' : 'field0name5', $pb.PbFieldType.O3) + ..a<$core.int>( + 406, _omitFieldNames ? '' : 'field0Name6', $pb.PbFieldType.O3, + protoName: 'field_0_name6') + ..a<$core.int>(407, _omitFieldNames ? '' : 'fieldName7', $pb.PbFieldType.O3, + protoName: 'fieldName7') + ..a<$core.int>(408, _omitFieldNames ? '' : 'FieldName8', $pb.PbFieldType.O3, + protoName: 'FieldName8') + ..a<$core.int>(409, _omitFieldNames ? '' : 'fieldName9', $pb.PbFieldType.O3, + protoName: 'field_Name9') + ..a<$core.int>( + 410, _omitFieldNames ? '' : 'FieldName10', $pb.PbFieldType.O3, + protoName: 'Field_Name10') + ..a<$core.int>( + 411, _omitFieldNames ? '' : 'FIELDNAME11', $pb.PbFieldType.O3, + protoName: 'FIELD_NAME11') + ..a<$core.int>( + 412, _omitFieldNames ? '' : 'FIELDName12', $pb.PbFieldType.O3, + protoName: 'FIELD_name12') + ..a<$core.int>( + 413, _omitFieldNames ? '' : 'FieldName13', $pb.PbFieldType.O3, + protoName: '__field_name13') + ..a<$core.int>( + 414, _omitFieldNames ? '' : 'FieldName14', $pb.PbFieldType.O3, + protoName: '__Field_name14') + ..a<$core.int>( + 415, _omitFieldNames ? '' : 'fieldName15', $pb.PbFieldType.O3, + protoName: 'field__name15') + ..a<$core.int>( + 416, _omitFieldNames ? '' : 'fieldName16', $pb.PbFieldType.O3, + protoName: 'field__Name16') + ..a<$core.int>( + 417, _omitFieldNames ? '' : 'fieldName17', $pb.PbFieldType.O3, + protoName: 'field_name17__') + ..a<$core.int>( + 418, _omitFieldNames ? '' : 'FieldName18', $pb.PbFieldType.O3, + protoName: 'Field_name18__') + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -950,8 +1214,10 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { 'Will be removed in next major version') TestAllTypesProto3 copyWith(void Function(TestAllTypesProto3) updates) => super.copyWith((message) => updates(message as TestAllTypesProto3)) - as TestAllTypesProto3; // ignore: deprecated_member_use + as TestAllTypesProto3; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static TestAllTypesProto3 create() => TestAllTypesProto3._(); TestAllTypesProto3 createEmptyInstance() => create(); @@ -966,6 +1232,7 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { _TestAllTypesProto3_OneofFieldByTag[$_whichOneof(0)]!; void clearOneofField() => clearField($_whichOneof(0)); + /// Singular @$pb.TagNumber(1) $core.int get optionalInt32 => $_getIZ(0); @$pb.TagNumber(1) @@ -1249,6 +1516,7 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(27) TestAllTypesProto3 ensureRecursiveMessage() => $_ensure(22); + /// Repeated @$pb.TagNumber(31) $core.List<$core.int> get repeatedInt32 => $_getList(23); @@ -1314,6 +1582,7 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(55) $core.List<$core.String> get repeatedCord => $_getList(43); + /// Map @$pb.TagNumber(56) $core.Map<$core.int, $core.int> get mapInt32Int32 => $_getMap(44); @@ -1376,6 +1645,7 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(74) $core.Map<$core.String, ForeignEnum> get mapStringForeignEnum => $_getMap(62); + /// Packed @$pb.TagNumber(75) $core.List<$core.int> get packedInt32 => $_getList(63); @@ -1419,6 +1689,7 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { $core.List get packedNestedEnum => $_getList(76); + /// Unpacked @$pb.TagNumber(89) $core.List<$core.int> get unpackedInt32 => $_getList(77); @@ -1573,9 +1844,9 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { void clearOneofEnum() => clearField(119); @$pb.TagNumber(120) - $4.NullValue get oneofNullValue => $_getN(100); + $48.NullValue get oneofNullValue => $_getN(100); @$pb.TagNumber(120) - set oneofNullValue($4.NullValue v) { + set oneofNullValue($48.NullValue v) { setField(120, v); } @@ -1584,10 +1855,11 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(120) void clearOneofNullValue() => clearField(120); + /// Well-known types @$pb.TagNumber(201) - $0.BoolValue get optionalBoolWrapper => $_getN(101); + $73.BoolValue get optionalBoolWrapper => $_getN(101); @$pb.TagNumber(201) - set optionalBoolWrapper($0.BoolValue v) { + set optionalBoolWrapper($73.BoolValue v) { setField(201, v); } @@ -1596,12 +1868,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(201) void clearOptionalBoolWrapper() => clearField(201); @$pb.TagNumber(201) - $0.BoolValue ensureOptionalBoolWrapper() => $_ensure(101); + $73.BoolValue ensureOptionalBoolWrapper() => $_ensure(101); @$pb.TagNumber(202) - $0.Int32Value get optionalInt32Wrapper => $_getN(102); + $73.Int32Value get optionalInt32Wrapper => $_getN(102); @$pb.TagNumber(202) - set optionalInt32Wrapper($0.Int32Value v) { + set optionalInt32Wrapper($73.Int32Value v) { setField(202, v); } @@ -1610,12 +1882,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(202) void clearOptionalInt32Wrapper() => clearField(202); @$pb.TagNumber(202) - $0.Int32Value ensureOptionalInt32Wrapper() => $_ensure(102); + $73.Int32Value ensureOptionalInt32Wrapper() => $_ensure(102); @$pb.TagNumber(203) - $0.Int64Value get optionalInt64Wrapper => $_getN(103); + $73.Int64Value get optionalInt64Wrapper => $_getN(103); @$pb.TagNumber(203) - set optionalInt64Wrapper($0.Int64Value v) { + set optionalInt64Wrapper($73.Int64Value v) { setField(203, v); } @@ -1624,12 +1896,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(203) void clearOptionalInt64Wrapper() => clearField(203); @$pb.TagNumber(203) - $0.Int64Value ensureOptionalInt64Wrapper() => $_ensure(103); + $73.Int64Value ensureOptionalInt64Wrapper() => $_ensure(103); @$pb.TagNumber(204) - $0.UInt32Value get optionalUint32Wrapper => $_getN(104); + $73.UInt32Value get optionalUint32Wrapper => $_getN(104); @$pb.TagNumber(204) - set optionalUint32Wrapper($0.UInt32Value v) { + set optionalUint32Wrapper($73.UInt32Value v) { setField(204, v); } @@ -1638,12 +1910,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(204) void clearOptionalUint32Wrapper() => clearField(204); @$pb.TagNumber(204) - $0.UInt32Value ensureOptionalUint32Wrapper() => $_ensure(104); + $73.UInt32Value ensureOptionalUint32Wrapper() => $_ensure(104); @$pb.TagNumber(205) - $0.UInt64Value get optionalUint64Wrapper => $_getN(105); + $73.UInt64Value get optionalUint64Wrapper => $_getN(105); @$pb.TagNumber(205) - set optionalUint64Wrapper($0.UInt64Value v) { + set optionalUint64Wrapper($73.UInt64Value v) { setField(205, v); } @@ -1652,12 +1924,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(205) void clearOptionalUint64Wrapper() => clearField(205); @$pb.TagNumber(205) - $0.UInt64Value ensureOptionalUint64Wrapper() => $_ensure(105); + $73.UInt64Value ensureOptionalUint64Wrapper() => $_ensure(105); @$pb.TagNumber(206) - $0.FloatValue get optionalFloatWrapper => $_getN(106); + $73.FloatValue get optionalFloatWrapper => $_getN(106); @$pb.TagNumber(206) - set optionalFloatWrapper($0.FloatValue v) { + set optionalFloatWrapper($73.FloatValue v) { setField(206, v); } @@ -1666,12 +1938,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(206) void clearOptionalFloatWrapper() => clearField(206); @$pb.TagNumber(206) - $0.FloatValue ensureOptionalFloatWrapper() => $_ensure(106); + $73.FloatValue ensureOptionalFloatWrapper() => $_ensure(106); @$pb.TagNumber(207) - $0.DoubleValue get optionalDoubleWrapper => $_getN(107); + $73.DoubleValue get optionalDoubleWrapper => $_getN(107); @$pb.TagNumber(207) - set optionalDoubleWrapper($0.DoubleValue v) { + set optionalDoubleWrapper($73.DoubleValue v) { setField(207, v); } @@ -1680,12 +1952,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(207) void clearOptionalDoubleWrapper() => clearField(207); @$pb.TagNumber(207) - $0.DoubleValue ensureOptionalDoubleWrapper() => $_ensure(107); + $73.DoubleValue ensureOptionalDoubleWrapper() => $_ensure(107); @$pb.TagNumber(208) - $0.StringValue get optionalStringWrapper => $_getN(108); + $73.StringValue get optionalStringWrapper => $_getN(108); @$pb.TagNumber(208) - set optionalStringWrapper($0.StringValue v) { + set optionalStringWrapper($73.StringValue v) { setField(208, v); } @@ -1694,12 +1966,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(208) void clearOptionalStringWrapper() => clearField(208); @$pb.TagNumber(208) - $0.StringValue ensureOptionalStringWrapper() => $_ensure(108); + $73.StringValue ensureOptionalStringWrapper() => $_ensure(108); @$pb.TagNumber(209) - $0.BytesValue get optionalBytesWrapper => $_getN(109); + $73.BytesValue get optionalBytesWrapper => $_getN(109); @$pb.TagNumber(209) - set optionalBytesWrapper($0.BytesValue v) { + set optionalBytesWrapper($73.BytesValue v) { setField(209, v); } @@ -1708,39 +1980,39 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(209) void clearOptionalBytesWrapper() => clearField(209); @$pb.TagNumber(209) - $0.BytesValue ensureOptionalBytesWrapper() => $_ensure(109); + $73.BytesValue ensureOptionalBytesWrapper() => $_ensure(109); @$pb.TagNumber(211) - $core.List<$0.BoolValue> get repeatedBoolWrapper => $_getList(110); + $core.List<$73.BoolValue> get repeatedBoolWrapper => $_getList(110); @$pb.TagNumber(212) - $core.List<$0.Int32Value> get repeatedInt32Wrapper => $_getList(111); + $core.List<$73.Int32Value> get repeatedInt32Wrapper => $_getList(111); @$pb.TagNumber(213) - $core.List<$0.Int64Value> get repeatedInt64Wrapper => $_getList(112); + $core.List<$73.Int64Value> get repeatedInt64Wrapper => $_getList(112); @$pb.TagNumber(214) - $core.List<$0.UInt32Value> get repeatedUint32Wrapper => $_getList(113); + $core.List<$73.UInt32Value> get repeatedUint32Wrapper => $_getList(113); @$pb.TagNumber(215) - $core.List<$0.UInt64Value> get repeatedUint64Wrapper => $_getList(114); + $core.List<$73.UInt64Value> get repeatedUint64Wrapper => $_getList(114); @$pb.TagNumber(216) - $core.List<$0.FloatValue> get repeatedFloatWrapper => $_getList(115); + $core.List<$73.FloatValue> get repeatedFloatWrapper => $_getList(115); @$pb.TagNumber(217) - $core.List<$0.DoubleValue> get repeatedDoubleWrapper => $_getList(116); + $core.List<$73.DoubleValue> get repeatedDoubleWrapper => $_getList(116); @$pb.TagNumber(218) - $core.List<$0.StringValue> get repeatedStringWrapper => $_getList(117); + $core.List<$73.StringValue> get repeatedStringWrapper => $_getList(117); @$pb.TagNumber(219) - $core.List<$0.BytesValue> get repeatedBytesWrapper => $_getList(118); + $core.List<$73.BytesValue> get repeatedBytesWrapper => $_getList(118); @$pb.TagNumber(301) - $1.Duration get optionalDuration => $_getN(119); + $51.Duration get optionalDuration => $_getN(119); @$pb.TagNumber(301) - set optionalDuration($1.Duration v) { + set optionalDuration($51.Duration v) { setField(301, v); } @@ -1749,12 +2021,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(301) void clearOptionalDuration() => clearField(301); @$pb.TagNumber(301) - $1.Duration ensureOptionalDuration() => $_ensure(119); + $51.Duration ensureOptionalDuration() => $_ensure(119); @$pb.TagNumber(302) - $2.Timestamp get optionalTimestamp => $_getN(120); + $50.Timestamp get optionalTimestamp => $_getN(120); @$pb.TagNumber(302) - set optionalTimestamp($2.Timestamp v) { + set optionalTimestamp($50.Timestamp v) { setField(302, v); } @@ -1763,12 +2035,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(302) void clearOptionalTimestamp() => clearField(302); @$pb.TagNumber(302) - $2.Timestamp ensureOptionalTimestamp() => $_ensure(120); + $50.Timestamp ensureOptionalTimestamp() => $_ensure(120); @$pb.TagNumber(303) - $3.FieldMask get optionalFieldMask => $_getN(121); + $58.FieldMask get optionalFieldMask => $_getN(121); @$pb.TagNumber(303) - set optionalFieldMask($3.FieldMask v) { + set optionalFieldMask($58.FieldMask v) { setField(303, v); } @@ -1777,12 +2049,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(303) void clearOptionalFieldMask() => clearField(303); @$pb.TagNumber(303) - $3.FieldMask ensureOptionalFieldMask() => $_ensure(121); + $58.FieldMask ensureOptionalFieldMask() => $_ensure(121); @$pb.TagNumber(304) - $4.Struct get optionalStruct => $_getN(122); + $48.Struct get optionalStruct => $_getN(122); @$pb.TagNumber(304) - set optionalStruct($4.Struct v) { + set optionalStruct($48.Struct v) { setField(304, v); } @@ -1791,12 +2063,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(304) void clearOptionalStruct() => clearField(304); @$pb.TagNumber(304) - $4.Struct ensureOptionalStruct() => $_ensure(122); + $48.Struct ensureOptionalStruct() => $_ensure(122); @$pb.TagNumber(305) - $5.Any get optionalAny => $_getN(123); + $49.Any get optionalAny => $_getN(123); @$pb.TagNumber(305) - set optionalAny($5.Any v) { + set optionalAny($49.Any v) { setField(305, v); } @@ -1805,12 +2077,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(305) void clearOptionalAny() => clearField(305); @$pb.TagNumber(305) - $5.Any ensureOptionalAny() => $_ensure(123); + $49.Any ensureOptionalAny() => $_ensure(123); @$pb.TagNumber(306) - $4.Value get optionalValue => $_getN(124); + $48.Value get optionalValue => $_getN(124); @$pb.TagNumber(306) - set optionalValue($4.Value v) { + set optionalValue($48.Value v) { setField(306, v); } @@ -1819,12 +2091,12 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { @$pb.TagNumber(306) void clearOptionalValue() => clearField(306); @$pb.TagNumber(306) - $4.Value ensureOptionalValue() => $_ensure(124); + $48.Value ensureOptionalValue() => $_ensure(124); @$pb.TagNumber(307) - $4.NullValue get optionalNullValue => $_getN(125); + $48.NullValue get optionalNullValue => $_getN(125); @$pb.TagNumber(307) - set optionalNullValue($4.NullValue v) { + set optionalNullValue($48.NullValue v) { setField(307, v); } @@ -1834,26 +2106,28 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { void clearOptionalNullValue() => clearField(307); @$pb.TagNumber(311) - $core.List<$1.Duration> get repeatedDuration => $_getList(126); + $core.List<$51.Duration> get repeatedDuration => $_getList(126); @$pb.TagNumber(312) - $core.List<$2.Timestamp> get repeatedTimestamp => $_getList(127); + $core.List<$50.Timestamp> get repeatedTimestamp => $_getList(127); @$pb.TagNumber(313) - $core.List<$3.FieldMask> get repeatedFieldmask => $_getList(128); + $core.List<$58.FieldMask> get repeatedFieldmask => $_getList(128); @$pb.TagNumber(315) - $core.List<$5.Any> get repeatedAny => $_getList(129); + $core.List<$49.Any> get repeatedAny => $_getList(129); @$pb.TagNumber(316) - $core.List<$4.Value> get repeatedValue => $_getList(130); + $core.List<$48.Value> get repeatedValue => $_getList(130); @$pb.TagNumber(317) - $core.List<$4.ListValue> get repeatedListValue => $_getList(131); + $core.List<$48.ListValue> get repeatedListValue => $_getList(131); @$pb.TagNumber(324) - $core.List<$4.Struct> get repeatedStruct => $_getList(132); + $core.List<$48.Struct> get repeatedStruct => $_getList(132); + /// Test field-name-to-JSON-name convention. + /// (protobuf says names can be any valid C/C++ identifier.) @$pb.TagNumber(401) $core.int get fieldname1 => $_getIZ(133); @$pb.TagNumber(401) @@ -2072,39 +2346,31 @@ class TestAllTypesProto3 extends $pb.GeneratedMessage { } class ForeignMessage extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'ForeignMessage', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'protobuf_test_messages.proto3'), - createEmptyInstance: create) - ..a<$core.int>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'c', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - ForeignMessage._() : super(); factory ForeignMessage({ $core.int? c, }) { - final _result = create(); + final $result = create(); if (c != null) { - _result.c = c; + $result.c = c; } - return _result; + return $result; } + ForeignMessage._() : super(); factory ForeignMessage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ForeignMessage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'ForeignMessage', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto3'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'c', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -2114,8 +2380,10 @@ class ForeignMessage extends $pb.GeneratedMessage { 'Will be removed in next major version') ForeignMessage copyWith(void Function(ForeignMessage) updates) => super.copyWith((message) => updates(message as ForeignMessage)) - as ForeignMessage; // ignore: deprecated_member_use + as ForeignMessage; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static ForeignMessage create() => ForeignMessage._(); ForeignMessage createEmptyInstance() => create(); @@ -2138,3 +2406,90 @@ class ForeignMessage extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearC() => clearField(1); } + +class NullHypothesisProto3 extends $pb.GeneratedMessage { + factory NullHypothesisProto3() => create(); + NullHypothesisProto3._() : super(); + factory NullHypothesisProto3.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory NullHypothesisProto3.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'NullHypothesisProto3', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto3'), + 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') + NullHypothesisProto3 clone() => + NullHypothesisProto3()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + NullHypothesisProto3 copyWith(void Function(NullHypothesisProto3) updates) => + super.copyWith((message) => updates(message as NullHypothesisProto3)) + as NullHypothesisProto3; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static NullHypothesisProto3 create() => NullHypothesisProto3._(); + NullHypothesisProto3 createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static NullHypothesisProto3 getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static NullHypothesisProto3? _defaultInstance; +} + +class EnumOnlyProto3 extends $pb.GeneratedMessage { + factory EnumOnlyProto3() => create(); + EnumOnlyProto3._() : super(); + factory EnumOnlyProto3.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory EnumOnlyProto3.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'EnumOnlyProto3', + package: const $pb.PackageName( + _omitMessageNames ? '' : 'protobuf_test_messages.proto3'), + 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') + EnumOnlyProto3 clone() => EnumOnlyProto3()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + EnumOnlyProto3 copyWith(void Function(EnumOnlyProto3) updates) => + super.copyWith((message) => updates(message as EnumOnlyProto3)) + as EnumOnlyProto3; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static EnumOnlyProto3 create() => EnumOnlyProto3._(); + EnumOnlyProto3 createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static EnumOnlyProto3 getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static EnumOnlyProto3? _defaultInstance; +} + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pbenum.dart index b16a6e95..34ea35a2 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pbenum.dart @@ -1,30 +1,25 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/test_messages_proto3.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields -// ignore_for_file: UNDEFINED_SHOWN_NAME +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 ForeignEnum extends $pb.ProtobufEnum { - static const ForeignEnum FOREIGN_FOO = ForeignEnum._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FOREIGN_FOO'); - static const ForeignEnum FOREIGN_BAR = ForeignEnum._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FOREIGN_BAR'); - static const ForeignEnum FOREIGN_BAZ = ForeignEnum._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'FOREIGN_BAZ'); + static const ForeignEnum FOREIGN_FOO = + ForeignEnum._(0, _omitEnumNames ? '' : 'FOREIGN_FOO'); + static const ForeignEnum FOREIGN_BAR = + ForeignEnum._(1, _omitEnumNames ? '' : 'FOREIGN_BAR'); + static const ForeignEnum FOREIGN_BAZ = + ForeignEnum._(2, _omitEnumNames ? '' : 'FOREIGN_BAZ'); static const $core.List values = [ FOREIGN_FOO, @@ -41,17 +36,13 @@ class ForeignEnum extends $pb.ProtobufEnum { class TestAllTypesProto3_NestedEnum extends $pb.ProtobufEnum { static const TestAllTypesProto3_NestedEnum FOO = - TestAllTypesProto3_NestedEnum._(0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'FOO'); + TestAllTypesProto3_NestedEnum._(0, _omitEnumNames ? '' : 'FOO'); static const TestAllTypesProto3_NestedEnum BAR = - TestAllTypesProto3_NestedEnum._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BAR'); + TestAllTypesProto3_NestedEnum._(1, _omitEnumNames ? '' : 'BAR'); static const TestAllTypesProto3_NestedEnum BAZ = - TestAllTypesProto3_NestedEnum._(2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'BAZ'); + TestAllTypesProto3_NestedEnum._(2, _omitEnumNames ? '' : 'BAZ'); static const TestAllTypesProto3_NestedEnum NEG = - TestAllTypesProto3_NestedEnum._(-1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'NEG'); + TestAllTypesProto3_NestedEnum._(-1, _omitEnumNames ? '' : 'NEG'); static const $core.List values = [ @@ -72,26 +63,14 @@ class TestAllTypesProto3_NestedEnum extends $pb.ProtobufEnum { class TestAllTypesProto3_AliasedEnum extends $pb.ProtobufEnum { static const TestAllTypesProto3_AliasedEnum ALIAS_FOO = - TestAllTypesProto3_AliasedEnum._( - 0, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ALIAS_FOO'); + TestAllTypesProto3_AliasedEnum._(0, _omitEnumNames ? '' : 'ALIAS_FOO'); static const TestAllTypesProto3_AliasedEnum ALIAS_BAR = - TestAllTypesProto3_AliasedEnum._( - 1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ALIAS_BAR'); + TestAllTypesProto3_AliasedEnum._(1, _omitEnumNames ? '' : 'ALIAS_BAR'); static const TestAllTypesProto3_AliasedEnum ALIAS_BAZ = - TestAllTypesProto3_AliasedEnum._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'ALIAS_BAZ'); - - static const TestAllTypesProto3_AliasedEnum QUX = ALIAS_BAZ; - static const TestAllTypesProto3_AliasedEnum qux = ALIAS_BAZ; + TestAllTypesProto3_AliasedEnum._(2, _omitEnumNames ? '' : 'ALIAS_BAZ'); + + static const TestAllTypesProto3_AliasedEnum MOO = ALIAS_BAZ; + static const TestAllTypesProto3_AliasedEnum moo = ALIAS_BAZ; static const TestAllTypesProto3_AliasedEnum bAz = ALIAS_BAZ; static const $core.List values = @@ -109,3 +88,23 @@ class TestAllTypesProto3_AliasedEnum extends $pb.ProtobufEnum { const TestAllTypesProto3_AliasedEnum._($core.int v, $core.String n) : super(v, n); } + +class EnumOnlyProto3_Bool extends $pb.ProtobufEnum { + static const EnumOnlyProto3_Bool kFalse = + EnumOnlyProto3_Bool._(0, _omitEnumNames ? '' : 'kFalse'); + static const EnumOnlyProto3_Bool kTrue = + EnumOnlyProto3_Bool._(1, _omitEnumNames ? '' : 'kTrue'); + + static const $core.List values = [ + kFalse, + kTrue, + ]; + + static final $core.Map<$core.int, EnumOnlyProto3_Bool> _byValue = + $pb.ProtobufEnum.initByValue(values); + static EnumOnlyProto3_Bool? valueOf($core.int value) => _byValue[value]; + + const EnumOnlyProto3_Bool._($core.int v, $core.String n) : super(v, n); +} + +const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pbjson.dart index 23cd2503..fa541bc5 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/test_messages_proto3.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/test_messages_proto3.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 foreignEnumDescriptor instead') @@ -21,7 +25,9 @@ const ForeignEnum$json = { /// Descriptor for `ForeignEnum`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List foreignEnumDescriptor = $convert.base64Decode( - 'CgtGb3JlaWduRW51bRIPCgtGT1JFSUdOX0ZPTxAAEg8KC0ZPUkVJR05fQkFSEAESDwoLRk9SRUlHTl9CQVoQAg=='); + 'CgtGb3JlaWduRW51bRIPCgtGT1JFSUdOX0ZPTxAAEg8KC0ZPUkVJR05fQkFSEAESDwoLRk9SRU' + 'lHTl9CQVoQAg=='); + @$core.Deprecated('Use testAllTypesProto3Descriptor instead') const TestAllTypesProto3$json = { '1': 'TestAllTypesProto3', @@ -1211,8 +1217,8 @@ const TestAllTypesProto3_AliasedEnum$json = { {'1': 'ALIAS_FOO', '2': 0}, {'1': 'ALIAS_BAR', '2': 1}, {'1': 'ALIAS_BAZ', '2': 2}, - {'1': 'QUX', '2': 2}, - {'1': 'qux', '2': 2}, + {'1': 'MOO', '2': 2}, + {'1': 'moo', '2': 2}, {'1': 'bAz', '2': 2}, ], '3': {'2': true}, @@ -1220,7 +1226,218 @@ const TestAllTypesProto3_AliasedEnum$json = { /// Descriptor for `TestAllTypesProto3`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List testAllTypesProto3Descriptor = $convert.base64Decode( - 'ChJUZXN0QWxsVHlwZXNQcm90bzMSJQoOb3B0aW9uYWxfaW50MzIYASABKAVSDW9wdGlvbmFsSW50MzISJQoOb3B0aW9uYWxfaW50NjQYAiABKANSDW9wdGlvbmFsSW50NjQSJwoPb3B0aW9uYWxfdWludDMyGAMgASgNUg5vcHRpb25hbFVpbnQzMhInCg9vcHRpb25hbF91aW50NjQYBCABKARSDm9wdGlvbmFsVWludDY0EicKD29wdGlvbmFsX3NpbnQzMhgFIAEoEVIOb3B0aW9uYWxTaW50MzISJwoPb3B0aW9uYWxfc2ludDY0GAYgASgSUg5vcHRpb25hbFNpbnQ2NBIpChBvcHRpb25hbF9maXhlZDMyGAcgASgHUg9vcHRpb25hbEZpeGVkMzISKQoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBlIPb3B0aW9uYWxGaXhlZDY0EisKEW9wdGlvbmFsX3NmaXhlZDMyGAkgASgPUhBvcHRpb25hbFNmaXhlZDMyEisKEW9wdGlvbmFsX3NmaXhlZDY0GAogASgQUhBvcHRpb25hbFNmaXhlZDY0EiUKDm9wdGlvbmFsX2Zsb2F0GAsgASgCUg1vcHRpb25hbEZsb2F0EicKD29wdGlvbmFsX2RvdWJsZRgMIAEoAVIOb3B0aW9uYWxEb3VibGUSIwoNb3B0aW9uYWxfYm9vbBgNIAEoCFIMb3B0aW9uYWxCb29sEicKD29wdGlvbmFsX3N0cmluZxgOIAEoCVIOb3B0aW9uYWxTdHJpbmcSJQoOb3B0aW9uYWxfYnl0ZXMYDyABKAxSDW9wdGlvbmFsQnl0ZXMSdwoXb3B0aW9uYWxfbmVzdGVkX21lc3NhZ2UYEiABKAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTmVzdGVkTWVzc2FnZVIVb3B0aW9uYWxOZXN0ZWRNZXNzYWdlEmcKGG9wdGlvbmFsX2ZvcmVpZ25fbWVzc2FnZRgTIAEoCzItLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLkZvcmVpZ25NZXNzYWdlUhZvcHRpb25hbEZvcmVpZ25NZXNzYWdlEm4KFG9wdGlvbmFsX25lc3RlZF9lbnVtGBUgASgOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk5lc3RlZEVudW1SEm9wdGlvbmFsTmVzdGVkRW51bRJeChVvcHRpb25hbF9mb3JlaWduX2VudW0YFiABKA4yKi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5Gb3JlaWduRW51bVITb3B0aW9uYWxGb3JlaWduRW51bRJxChVvcHRpb25hbF9hbGlhc2VkX2VudW0YFyABKA4yPS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuQWxpYXNlZEVudW1SE29wdGlvbmFsQWxpYXNlZEVudW0SNgoVb3B0aW9uYWxfc3RyaW5nX3BpZWNlGBggASgJQgIIAlITb3B0aW9uYWxTdHJpbmdQaWVjZRInCg1vcHRpb25hbF9jb3JkGBkgASgJQgIIAVIMb3B0aW9uYWxDb3JkEl4KEXJlY3Vyc2l2ZV9tZXNzYWdlGBsgASgLMjEucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zUhByZWN1cnNpdmVNZXNzYWdlEiUKDnJlcGVhdGVkX2ludDMyGB8gAygFUg1yZXBlYXRlZEludDMyEiUKDnJlcGVhdGVkX2ludDY0GCAgAygDUg1yZXBlYXRlZEludDY0EicKD3JlcGVhdGVkX3VpbnQzMhghIAMoDVIOcmVwZWF0ZWRVaW50MzISJwoPcmVwZWF0ZWRfdWludDY0GCIgAygEUg5yZXBlYXRlZFVpbnQ2NBInCg9yZXBlYXRlZF9zaW50MzIYIyADKBFSDnJlcGVhdGVkU2ludDMyEicKD3JlcGVhdGVkX3NpbnQ2NBgkIAMoElIOcmVwZWF0ZWRTaW50NjQSKQoQcmVwZWF0ZWRfZml4ZWQzMhglIAMoB1IPcmVwZWF0ZWRGaXhlZDMyEikKEHJlcGVhdGVkX2ZpeGVkNjQYJiADKAZSD3JlcGVhdGVkRml4ZWQ2NBIrChFyZXBlYXRlZF9zZml4ZWQzMhgnIAMoD1IQcmVwZWF0ZWRTZml4ZWQzMhIrChFyZXBlYXRlZF9zZml4ZWQ2NBgoIAMoEFIQcmVwZWF0ZWRTZml4ZWQ2NBIlCg5yZXBlYXRlZF9mbG9hdBgpIAMoAlINcmVwZWF0ZWRGbG9hdBInCg9yZXBlYXRlZF9kb3VibGUYKiADKAFSDnJlcGVhdGVkRG91YmxlEiMKDXJlcGVhdGVkX2Jvb2wYKyADKAhSDHJlcGVhdGVkQm9vbBInCg9yZXBlYXRlZF9zdHJpbmcYLCADKAlSDnJlcGVhdGVkU3RyaW5nEiUKDnJlcGVhdGVkX2J5dGVzGC0gAygMUg1yZXBlYXRlZEJ5dGVzEncKF3JlcGVhdGVkX25lc3RlZF9tZXNzYWdlGDAgAygLMj8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk5lc3RlZE1lc3NhZ2VSFXJlcGVhdGVkTmVzdGVkTWVzc2FnZRJnChhyZXBlYXRlZF9mb3JlaWduX21lc3NhZ2UYMSADKAsyLS5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5Gb3JlaWduTWVzc2FnZVIWcmVwZWF0ZWRGb3JlaWduTWVzc2FnZRJuChRyZXBlYXRlZF9uZXN0ZWRfZW51bRgzIAMoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5OZXN0ZWRFbnVtUhJyZXBlYXRlZE5lc3RlZEVudW0SXgoVcmVwZWF0ZWRfZm9yZWlnbl9lbnVtGDQgAygOMioucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuRm9yZWlnbkVudW1SE3JlcGVhdGVkRm9yZWlnbkVudW0SNgoVcmVwZWF0ZWRfc3RyaW5nX3BpZWNlGDYgAygJQgIIAlITcmVwZWF0ZWRTdHJpbmdQaWVjZRInCg1yZXBlYXRlZF9jb3JkGDcgAygJQgIIAVIMcmVwZWF0ZWRDb3JkEiUKDHBhY2tlZF9pbnQzMhhLIAMoBUICEAFSC3BhY2tlZEludDMyEiUKDHBhY2tlZF9pbnQ2NBhMIAMoA0ICEAFSC3BhY2tlZEludDY0EicKDXBhY2tlZF91aW50MzIYTSADKA1CAhABUgxwYWNrZWRVaW50MzISJwoNcGFja2VkX3VpbnQ2NBhOIAMoBEICEAFSDHBhY2tlZFVpbnQ2NBInCg1wYWNrZWRfc2ludDMyGE8gAygRQgIQAVIMcGFja2VkU2ludDMyEicKDXBhY2tlZF9zaW50NjQYUCADKBJCAhABUgxwYWNrZWRTaW50NjQSKQoOcGFja2VkX2ZpeGVkMzIYUSADKAdCAhABUg1wYWNrZWRGaXhlZDMyEikKDnBhY2tlZF9maXhlZDY0GFIgAygGQgIQAVINcGFja2VkRml4ZWQ2NBIrCg9wYWNrZWRfc2ZpeGVkMzIYUyADKA9CAhABUg5wYWNrZWRTZml4ZWQzMhIrCg9wYWNrZWRfc2ZpeGVkNjQYVCADKBBCAhABUg5wYWNrZWRTZml4ZWQ2NBIlCgxwYWNrZWRfZmxvYXQYVSADKAJCAhABUgtwYWNrZWRGbG9hdBInCg1wYWNrZWRfZG91YmxlGFYgAygBQgIQAVIMcGFja2VkRG91YmxlEiMKC3BhY2tlZF9ib29sGFcgAygIQgIQAVIKcGFja2VkQm9vbBJuChJwYWNrZWRfbmVzdGVkX2VudW0YWCADKA4yPC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTmVzdGVkRW51bUICEAFSEHBhY2tlZE5lc3RlZEVudW0SKQoOdW5wYWNrZWRfaW50MzIYWSADKAVCAhAAUg11bnBhY2tlZEludDMyEikKDnVucGFja2VkX2ludDY0GFogAygDQgIQAFINdW5wYWNrZWRJbnQ2NBIrCg91bnBhY2tlZF91aW50MzIYWyADKA1CAhAAUg51bnBhY2tlZFVpbnQzMhIrCg91bnBhY2tlZF91aW50NjQYXCADKARCAhAAUg51bnBhY2tlZFVpbnQ2NBIrCg91bnBhY2tlZF9zaW50MzIYXSADKBFCAhAAUg51bnBhY2tlZFNpbnQzMhIrCg91bnBhY2tlZF9zaW50NjQYXiADKBJCAhAAUg51bnBhY2tlZFNpbnQ2NBItChB1bnBhY2tlZF9maXhlZDMyGF8gAygHQgIQAFIPdW5wYWNrZWRGaXhlZDMyEi0KEHVucGFja2VkX2ZpeGVkNjQYYCADKAZCAhAAUg91bnBhY2tlZEZpeGVkNjQSLwoRdW5wYWNrZWRfc2ZpeGVkMzIYYSADKA9CAhAAUhB1bnBhY2tlZFNmaXhlZDMyEi8KEXVucGFja2VkX3NmaXhlZDY0GGIgAygQQgIQAFIQdW5wYWNrZWRTZml4ZWQ2NBIpCg51bnBhY2tlZF9mbG9hdBhjIAMoAkICEABSDXVucGFja2VkRmxvYXQSKwoPdW5wYWNrZWRfZG91YmxlGGQgAygBQgIQAFIOdW5wYWNrZWREb3VibGUSJwoNdW5wYWNrZWRfYm9vbBhlIAMoCEICEABSDHVucGFja2VkQm9vbBJyChR1bnBhY2tlZF9uZXN0ZWRfZW51bRhmIAMoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5OZXN0ZWRFbnVtQgIQAFISdW5wYWNrZWROZXN0ZWRFbnVtEmwKD21hcF9pbnQzMl9pbnQzMhg4IAMoCzJELnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBJbnQzMkludDMyRW50cnlSDW1hcEludDMySW50MzISbAoPbWFwX2ludDY0X2ludDY0GDkgAygLMkQucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcEludDY0SW50NjRFbnRyeVINbWFwSW50NjRJbnQ2NBJyChFtYXBfdWludDMyX3VpbnQzMhg6IAMoCzJGLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBVaW50MzJVaW50MzJFbnRyeVIPbWFwVWludDMyVWludDMyEnIKEW1hcF91aW50NjRfdWludDY0GDsgAygLMkYucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcFVpbnQ2NFVpbnQ2NEVudHJ5Ug9tYXBVaW50NjRVaW50NjQScgoRbWFwX3NpbnQzMl9zaW50MzIYPCADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwU2ludDMyU2ludDMyRW50cnlSD21hcFNpbnQzMlNpbnQzMhJyChFtYXBfc2ludDY0X3NpbnQ2NBg9IAMoCzJGLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBTaW50NjRTaW50NjRFbnRyeVIPbWFwU2ludDY0U2ludDY0EngKE21hcF9maXhlZDMyX2ZpeGVkMzIYPiADKAsySC5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwRml4ZWQzMkZpeGVkMzJFbnRyeVIRbWFwRml4ZWQzMkZpeGVkMzISeAoTbWFwX2ZpeGVkNjRfZml4ZWQ2NBg/IAMoCzJILnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBGaXhlZDY0Rml4ZWQ2NEVudHJ5UhFtYXBGaXhlZDY0Rml4ZWQ2NBJ+ChVtYXBfc2ZpeGVkMzJfc2ZpeGVkMzIYQCADKAsySi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwU2ZpeGVkMzJTZml4ZWQzMkVudHJ5UhNtYXBTZml4ZWQzMlNmaXhlZDMyEn4KFW1hcF9zZml4ZWQ2NF9zZml4ZWQ2NBhBIAMoCzJKLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnlSE21hcFNmaXhlZDY0U2ZpeGVkNjQSbAoPbWFwX2ludDMyX2Zsb2F0GEIgAygLMkQucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcEludDMyRmxvYXRFbnRyeVINbWFwSW50MzJGbG9hdBJvChBtYXBfaW50MzJfZG91YmxlGEMgAygLMkUucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcEludDMyRG91YmxlRW50cnlSDm1hcEludDMyRG91YmxlEmYKDW1hcF9ib29sX2Jvb2wYRCADKAsyQi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwQm9vbEJvb2xFbnRyeVILbWFwQm9vbEJvb2wScgoRbWFwX3N0cmluZ19zdHJpbmcYRSADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwU3RyaW5nU3RyaW5nRW50cnlSD21hcFN0cmluZ1N0cmluZxJvChBtYXBfc3RyaW5nX2J5dGVzGEYgAygLMkUucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcFN0cmluZ0J5dGVzRW50cnlSDm1hcFN0cmluZ0J5dGVzEogBChltYXBfc3RyaW5nX25lc3RlZF9tZXNzYWdlGEcgAygLMk0ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcFN0cmluZ05lc3RlZE1lc3NhZ2VFbnRyeVIWbWFwU3RyaW5nTmVzdGVkTWVzc2FnZRKLAQoabWFwX3N0cmluZ19mb3JlaWduX21lc3NhZ2UYSCADKAsyTi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwU3RyaW5nRm9yZWlnbk1lc3NhZ2VFbnRyeVIXbWFwU3RyaW5nRm9yZWlnbk1lc3NhZ2USfwoWbWFwX3N0cmluZ19uZXN0ZWRfZW51bRhJIAMoCzJKLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBTdHJpbmdOZXN0ZWRFbnVtRW50cnlSE21hcFN0cmluZ05lc3RlZEVudW0SggEKF21hcF9zdHJpbmdfZm9yZWlnbl9lbnVtGEogAygLMksucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcFN0cmluZ0ZvcmVpZ25FbnVtRW50cnlSFG1hcFN0cmluZ0ZvcmVpZ25FbnVtEiMKDG9uZW9mX3VpbnQzMhhvIAEoDUgAUgtvbmVvZlVpbnQzMhJzChRvbmVvZl9uZXN0ZWRfbWVzc2FnZRhwIAEoCzI/LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5OZXN0ZWRNZXNzYWdlSABSEm9uZW9mTmVzdGVkTWVzc2FnZRIjCgxvbmVvZl9zdHJpbmcYcSABKAlIAFILb25lb2ZTdHJpbmcSIQoLb25lb2ZfYnl0ZXMYciABKAxIAFIKb25lb2ZCeXRlcxIfCgpvbmVvZl9ib29sGHMgASgISABSCW9uZW9mQm9vbBIjCgxvbmVvZl91aW50NjQYdCABKARIAFILb25lb2ZVaW50NjQSIQoLb25lb2ZfZmxvYXQYdSABKAJIAFIKb25lb2ZGbG9hdBIjCgxvbmVvZl9kb3VibGUYdiABKAFIAFILb25lb2ZEb3VibGUSXQoKb25lb2ZfZW51bRh3IAEoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5OZXN0ZWRFbnVtSABSCW9uZW9mRW51bRJGChBvbmVvZl9udWxsX3ZhbHVlGHggASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZUgAUg5vbmVvZk51bGxWYWx1ZRJPChVvcHRpb25hbF9ib29sX3dyYXBwZXIYyQEgASgLMhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZVITb3B0aW9uYWxCb29sV3JhcHBlchJSChZvcHRpb25hbF9pbnQzMl93cmFwcGVyGMoBIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlUhRvcHRpb25hbEludDMyV3JhcHBlchJSChZvcHRpb25hbF9pbnQ2NF93cmFwcGVyGMsBIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlUhRvcHRpb25hbEludDY0V3JhcHBlchJVChdvcHRpb25hbF91aW50MzJfd3JhcHBlchjMASABKAsyHC5nb29nbGUucHJvdG9idWYuVUludDMyVmFsdWVSFW9wdGlvbmFsVWludDMyV3JhcHBlchJVChdvcHRpb25hbF91aW50NjRfd3JhcHBlchjNASABKAsyHC5nb29nbGUucHJvdG9idWYuVUludDY0VmFsdWVSFW9wdGlvbmFsVWludDY0V3JhcHBlchJSChZvcHRpb25hbF9mbG9hdF93cmFwcGVyGM4BIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5GbG9hdFZhbHVlUhRvcHRpb25hbEZsb2F0V3JhcHBlchJVChdvcHRpb25hbF9kb3VibGVfd3JhcHBlchjPASABKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFsdWVSFW9wdGlvbmFsRG91YmxlV3JhcHBlchJVChdvcHRpb25hbF9zdHJpbmdfd3JhcHBlchjQASABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWVSFW9wdGlvbmFsU3RyaW5nV3JhcHBlchJSChZvcHRpb25hbF9ieXRlc193cmFwcGVyGNEBIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5CeXRlc1ZhbHVlUhRvcHRpb25hbEJ5dGVzV3JhcHBlchJPChVyZXBlYXRlZF9ib29sX3dyYXBwZXIY0wEgAygLMhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZVITcmVwZWF0ZWRCb29sV3JhcHBlchJSChZyZXBlYXRlZF9pbnQzMl93cmFwcGVyGNQBIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlUhRyZXBlYXRlZEludDMyV3JhcHBlchJSChZyZXBlYXRlZF9pbnQ2NF93cmFwcGVyGNUBIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlUhRyZXBlYXRlZEludDY0V3JhcHBlchJVChdyZXBlYXRlZF91aW50MzJfd3JhcHBlchjWASADKAsyHC5nb29nbGUucHJvdG9idWYuVUludDMyVmFsdWVSFXJlcGVhdGVkVWludDMyV3JhcHBlchJVChdyZXBlYXRlZF91aW50NjRfd3JhcHBlchjXASADKAsyHC5nb29nbGUucHJvdG9idWYuVUludDY0VmFsdWVSFXJlcGVhdGVkVWludDY0V3JhcHBlchJSChZyZXBlYXRlZF9mbG9hdF93cmFwcGVyGNgBIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5GbG9hdFZhbHVlUhRyZXBlYXRlZEZsb2F0V3JhcHBlchJVChdyZXBlYXRlZF9kb3VibGVfd3JhcHBlchjZASADKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFsdWVSFXJlcGVhdGVkRG91YmxlV3JhcHBlchJVChdyZXBlYXRlZF9zdHJpbmdfd3JhcHBlchjaASADKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWVSFXJlcGVhdGVkU3RyaW5nV3JhcHBlchJSChZyZXBlYXRlZF9ieXRlc193cmFwcGVyGNsBIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5CeXRlc1ZhbHVlUhRyZXBlYXRlZEJ5dGVzV3JhcHBlchJHChFvcHRpb25hbF9kdXJhdGlvbhitAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SEG9wdGlvbmFsRHVyYXRpb24SSgoSb3B0aW9uYWxfdGltZXN0YW1wGK4CIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSEW9wdGlvbmFsVGltZXN0YW1wEksKE29wdGlvbmFsX2ZpZWxkX21hc2sYrwIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IRb3B0aW9uYWxGaWVsZE1hc2sSQQoPb3B0aW9uYWxfc3RydWN0GLACIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RSDm9wdGlvbmFsU3RydWN0EjgKDG9wdGlvbmFsX2FueRixAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55UgtvcHRpb25hbEFueRI+Cg5vcHRpb25hbF92YWx1ZRiyAiABKAsyFi5nb29nbGUucHJvdG9idWYuVmFsdWVSDW9wdGlvbmFsVmFsdWUSSwoTb3B0aW9uYWxfbnVsbF92YWx1ZRizAiABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlUhFvcHRpb25hbE51bGxWYWx1ZRJHChFyZXBlYXRlZF9kdXJhdGlvbhi3AiADKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25SEHJlcGVhdGVkRHVyYXRpb24SSgoScmVwZWF0ZWRfdGltZXN0YW1wGLgCIAMoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSEXJlcGVhdGVkVGltZXN0YW1wEkoKEnJlcGVhdGVkX2ZpZWxkbWFzaxi5AiADKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUhFyZXBlYXRlZEZpZWxkbWFzaxJBCg9yZXBlYXRlZF9zdHJ1Y3QYxAIgAygLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdFIOcmVwZWF0ZWRTdHJ1Y3QSOAoMcmVwZWF0ZWRfYW55GLsCIAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlSC3JlcGVhdGVkQW55Ej4KDnJlcGVhdGVkX3ZhbHVlGLwCIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZVINcmVwZWF0ZWRWYWx1ZRJLChNyZXBlYXRlZF9saXN0X3ZhbHVlGL0CIAMoCzIaLmdvb2dsZS5wcm90b2J1Zi5MaXN0VmFsdWVSEXJlcGVhdGVkTGlzdFZhbHVlEh8KCmZpZWxkbmFtZTEYkQMgASgFUgpmaWVsZG5hbWUxEiAKC2ZpZWxkX25hbWUyGJIDIAEoBVIKZmllbGROYW1lMhIhCgxfZmllbGRfbmFtZTMYkwMgASgFUgpGaWVsZE5hbWUzEiIKDWZpZWxkX19uYW1lNF8YlAMgASgFUgpmaWVsZE5hbWU0EiEKC2ZpZWxkMG5hbWU1GJUDIAEoBVILZmllbGQwbmFtZTUSIwoNZmllbGRfMF9uYW1lNhiWAyABKAVSC2ZpZWxkME5hbWU2Eh8KCmZpZWxkTmFtZTcYlwMgASgFUgpmaWVsZE5hbWU3Eh8KCkZpZWxkTmFtZTgYmAMgASgFUgpGaWVsZE5hbWU4EiAKC2ZpZWxkX05hbWU5GJkDIAEoBVIKZmllbGROYW1lORIiCgxGaWVsZF9OYW1lMTAYmgMgASgFUgtGaWVsZE5hbWUxMBIiCgxGSUVMRF9OQU1FMTEYmwMgASgFUgtGSUVMRE5BTUUxMRIiCgxGSUVMRF9uYW1lMTIYnAMgASgFUgtGSUVMRE5hbWUxMhIkCg5fX2ZpZWxkX25hbWUxMxidAyABKAVSC0ZpZWxkTmFtZTEzEiQKDl9fRmllbGRfbmFtZTE0GJ4DIAEoBVILRmllbGROYW1lMTQSIwoNZmllbGRfX25hbWUxNRifAyABKAVSC2ZpZWxkTmFtZTE1EiMKDWZpZWxkX19OYW1lMTYYoAMgASgFUgtmaWVsZE5hbWUxNhIkCg5maWVsZF9uYW1lMTdfXxihAyABKAVSC2ZpZWxkTmFtZTE3EiQKDkZpZWxkX25hbWUxOF9fGKIDIAEoBVILRmllbGROYW1lMTgacgoNTmVzdGVkTWVzc2FnZRIMCgFhGAEgASgFUgFhElMKC2NvcmVjdXJzaXZlGAIgASgLMjEucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zUgtjb3JlY3Vyc2l2ZRpAChJNYXBJbnQzMkludDMyRW50cnkSEAoDa2V5GAEgASgFUgNrZXkSFAoFdmFsdWUYAiABKAVSBXZhbHVlOgI4ARpAChJNYXBJbnQ2NEludDY0RW50cnkSEAoDa2V5GAEgASgDUgNrZXkSFAoFdmFsdWUYAiABKANSBXZhbHVlOgI4ARpCChRNYXBVaW50MzJVaW50MzJFbnRyeRIQCgNrZXkYASABKA1SA2tleRIUCgV2YWx1ZRgCIAEoDVIFdmFsdWU6AjgBGkIKFE1hcFVpbnQ2NFVpbnQ2NEVudHJ5EhAKA2tleRgBIAEoBFIDa2V5EhQKBXZhbHVlGAIgASgEUgV2YWx1ZToCOAEaQgoUTWFwU2ludDMyU2ludDMyRW50cnkSEAoDa2V5GAEgASgRUgNrZXkSFAoFdmFsdWUYAiABKBFSBXZhbHVlOgI4ARpCChRNYXBTaW50NjRTaW50NjRFbnRyeRIQCgNrZXkYASABKBJSA2tleRIUCgV2YWx1ZRgCIAEoElIFdmFsdWU6AjgBGkQKFk1hcEZpeGVkMzJGaXhlZDMyRW50cnkSEAoDa2V5GAEgASgHUgNrZXkSFAoFdmFsdWUYAiABKAdSBXZhbHVlOgI4ARpEChZNYXBGaXhlZDY0Rml4ZWQ2NEVudHJ5EhAKA2tleRgBIAEoBlIDa2V5EhQKBXZhbHVlGAIgASgGUgV2YWx1ZToCOAEaRgoYTWFwU2ZpeGVkMzJTZml4ZWQzMkVudHJ5EhAKA2tleRgBIAEoD1IDa2V5EhQKBXZhbHVlGAIgASgPUgV2YWx1ZToCOAEaRgoYTWFwU2ZpeGVkNjRTZml4ZWQ2NEVudHJ5EhAKA2tleRgBIAEoEFIDa2V5EhQKBXZhbHVlGAIgASgQUgV2YWx1ZToCOAEaQAoSTWFwSW50MzJGbG9hdEVudHJ5EhAKA2tleRgBIAEoBVIDa2V5EhQKBXZhbHVlGAIgASgCUgV2YWx1ZToCOAEaQQoTTWFwSW50MzJEb3VibGVFbnRyeRIQCgNrZXkYASABKAVSA2tleRIUCgV2YWx1ZRgCIAEoAVIFdmFsdWU6AjgBGj4KEE1hcEJvb2xCb29sRW50cnkSEAoDa2V5GAEgASgIUgNrZXkSFAoFdmFsdWUYAiABKAhSBXZhbHVlOgI4ARpCChRNYXBTdHJpbmdTdHJpbmdFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBGkEKE01hcFN0cmluZ0J5dGVzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAxSBXZhbHVlOgI4ARqKAQobTWFwU3RyaW5nTmVzdGVkTWVzc2FnZUVudHJ5EhAKA2tleRgBIAEoCVIDa2V5ElUKBXZhbHVlGAIgASgLMj8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk5lc3RlZE1lc3NhZ2VSBXZhbHVlOgI4ARp5ChxNYXBTdHJpbmdGb3JlaWduTWVzc2FnZUVudHJ5EhAKA2tleRgBIAEoCVIDa2V5EkMKBXZhbHVlGAIgASgLMi0ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuRm9yZWlnbk1lc3NhZ2VSBXZhbHVlOgI4ARqEAQoYTWFwU3RyaW5nTmVzdGVkRW51bUVudHJ5EhAKA2tleRgBIAEoCVIDa2V5ElIKBXZhbHVlGAIgASgOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk5lc3RlZEVudW1SBXZhbHVlOgI4ARpzChlNYXBTdHJpbmdGb3JlaWduRW51bUVudHJ5EhAKA2tleRgBIAEoCVIDa2V5EkAKBXZhbHVlGAIgASgOMioucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuRm9yZWlnbkVudW1SBXZhbHVlOgI4ASI5CgpOZXN0ZWRFbnVtEgcKA0ZPTxAAEgcKA0JBUhABEgcKA0JBWhACEhAKA05FRxD///////////8BIlkKC0FsaWFzZWRFbnVtEg0KCUFMSUFTX0ZPTxAAEg0KCUFMSUFTX0JBUhABEg0KCUFMSUFTX0JBWhACEgcKA1FVWBACEgcKA3F1eBACEgcKA2JBehACGgIQAUINCgtvbmVvZl9maWVsZEoGCPUDEP8D'); + 'ChJUZXN0QWxsVHlwZXNQcm90bzMSJQoOb3B0aW9uYWxfaW50MzIYASABKAVSDW9wdGlvbmFsSW' + '50MzISJQoOb3B0aW9uYWxfaW50NjQYAiABKANSDW9wdGlvbmFsSW50NjQSJwoPb3B0aW9uYWxf' + 'dWludDMyGAMgASgNUg5vcHRpb25hbFVpbnQzMhInCg9vcHRpb25hbF91aW50NjQYBCABKARSDm' + '9wdGlvbmFsVWludDY0EicKD29wdGlvbmFsX3NpbnQzMhgFIAEoEVIOb3B0aW9uYWxTaW50MzIS' + 'JwoPb3B0aW9uYWxfc2ludDY0GAYgASgSUg5vcHRpb25hbFNpbnQ2NBIpChBvcHRpb25hbF9maX' + 'hlZDMyGAcgASgHUg9vcHRpb25hbEZpeGVkMzISKQoQb3B0aW9uYWxfZml4ZWQ2NBgIIAEoBlIP' + 'b3B0aW9uYWxGaXhlZDY0EisKEW9wdGlvbmFsX3NmaXhlZDMyGAkgASgPUhBvcHRpb25hbFNmaX' + 'hlZDMyEisKEW9wdGlvbmFsX3NmaXhlZDY0GAogASgQUhBvcHRpb25hbFNmaXhlZDY0EiUKDm9w' + 'dGlvbmFsX2Zsb2F0GAsgASgCUg1vcHRpb25hbEZsb2F0EicKD29wdGlvbmFsX2RvdWJsZRgMIA' + 'EoAVIOb3B0aW9uYWxEb3VibGUSIwoNb3B0aW9uYWxfYm9vbBgNIAEoCFIMb3B0aW9uYWxCb29s' + 'EicKD29wdGlvbmFsX3N0cmluZxgOIAEoCVIOb3B0aW9uYWxTdHJpbmcSJQoOb3B0aW9uYWxfYn' + 'l0ZXMYDyABKAxSDW9wdGlvbmFsQnl0ZXMSdwoXb3B0aW9uYWxfbmVzdGVkX21lc3NhZ2UYEiAB' + 'KAsyPy5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTm' + 'VzdGVkTWVzc2FnZVIVb3B0aW9uYWxOZXN0ZWRNZXNzYWdlEmcKGG9wdGlvbmFsX2ZvcmVpZ25f' + 'bWVzc2FnZRgTIAEoCzItLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLkZvcmVpZ25NZX' + 'NzYWdlUhZvcHRpb25hbEZvcmVpZ25NZXNzYWdlEm4KFG9wdGlvbmFsX25lc3RlZF9lbnVtGBUg' + 'ASgOMjwucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk' + '5lc3RlZEVudW1SEm9wdGlvbmFsTmVzdGVkRW51bRJeChVvcHRpb25hbF9mb3JlaWduX2VudW0Y' + 'FiABKA4yKi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5Gb3JlaWduRW51bVITb3B0aW' + '9uYWxGb3JlaWduRW51bRJxChVvcHRpb25hbF9hbGlhc2VkX2VudW0YFyABKA4yPS5wcm90b2J1' + 'Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuQWxpYXNlZEVudW1SE2' + '9wdGlvbmFsQWxpYXNlZEVudW0SNgoVb3B0aW9uYWxfc3RyaW5nX3BpZWNlGBggASgJQgIIAlIT' + 'b3B0aW9uYWxTdHJpbmdQaWVjZRInCg1vcHRpb25hbF9jb3JkGBkgASgJQgIIAVIMb3B0aW9uYW' + 'xDb3JkEl4KEXJlY3Vyc2l2ZV9tZXNzYWdlGBsgASgLMjEucHJvdG9idWZfdGVzdF9tZXNzYWdl' + 'cy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zUhByZWN1cnNpdmVNZXNzYWdlEiUKDnJlcGVhdG' + 'VkX2ludDMyGB8gAygFUg1yZXBlYXRlZEludDMyEiUKDnJlcGVhdGVkX2ludDY0GCAgAygDUg1y' + 'ZXBlYXRlZEludDY0EicKD3JlcGVhdGVkX3VpbnQzMhghIAMoDVIOcmVwZWF0ZWRVaW50MzISJw' + 'oPcmVwZWF0ZWRfdWludDY0GCIgAygEUg5yZXBlYXRlZFVpbnQ2NBInCg9yZXBlYXRlZF9zaW50' + 'MzIYIyADKBFSDnJlcGVhdGVkU2ludDMyEicKD3JlcGVhdGVkX3NpbnQ2NBgkIAMoElIOcmVwZW' + 'F0ZWRTaW50NjQSKQoQcmVwZWF0ZWRfZml4ZWQzMhglIAMoB1IPcmVwZWF0ZWRGaXhlZDMyEikK' + 'EHJlcGVhdGVkX2ZpeGVkNjQYJiADKAZSD3JlcGVhdGVkRml4ZWQ2NBIrChFyZXBlYXRlZF9zZm' + 'l4ZWQzMhgnIAMoD1IQcmVwZWF0ZWRTZml4ZWQzMhIrChFyZXBlYXRlZF9zZml4ZWQ2NBgoIAMo' + 'EFIQcmVwZWF0ZWRTZml4ZWQ2NBIlCg5yZXBlYXRlZF9mbG9hdBgpIAMoAlINcmVwZWF0ZWRGbG' + '9hdBInCg9yZXBlYXRlZF9kb3VibGUYKiADKAFSDnJlcGVhdGVkRG91YmxlEiMKDXJlcGVhdGVk' + 'X2Jvb2wYKyADKAhSDHJlcGVhdGVkQm9vbBInCg9yZXBlYXRlZF9zdHJpbmcYLCADKAlSDnJlcG' + 'VhdGVkU3RyaW5nEiUKDnJlcGVhdGVkX2J5dGVzGC0gAygMUg1yZXBlYXRlZEJ5dGVzEncKF3Jl' + 'cGVhdGVkX25lc3RlZF9tZXNzYWdlGDAgAygLMj8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm' + '90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk5lc3RlZE1lc3NhZ2VSFXJlcGVhdGVkTmVzdGVkTWVz' + 'c2FnZRJnChhyZXBlYXRlZF9mb3JlaWduX21lc3NhZ2UYMSADKAsyLS5wcm90b2J1Zl90ZXN0X2' + '1lc3NhZ2VzLnByb3RvMy5Gb3JlaWduTWVzc2FnZVIWcmVwZWF0ZWRGb3JlaWduTWVzc2FnZRJu' + 'ChRyZXBlYXRlZF9uZXN0ZWRfZW51bRgzIAMoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucH' + 'JvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5OZXN0ZWRFbnVtUhJyZXBlYXRlZE5lc3RlZEVudW0S' + 'XgoVcmVwZWF0ZWRfZm9yZWlnbl9lbnVtGDQgAygOMioucHJvdG9idWZfdGVzdF9tZXNzYWdlcy' + '5wcm90bzMuRm9yZWlnbkVudW1SE3JlcGVhdGVkRm9yZWlnbkVudW0SNgoVcmVwZWF0ZWRfc3Ry' + 'aW5nX3BpZWNlGDYgAygJQgIIAlITcmVwZWF0ZWRTdHJpbmdQaWVjZRInCg1yZXBlYXRlZF9jb3' + 'JkGDcgAygJQgIIAVIMcmVwZWF0ZWRDb3JkEiUKDHBhY2tlZF9pbnQzMhhLIAMoBUICEAFSC3Bh' + 'Y2tlZEludDMyEiUKDHBhY2tlZF9pbnQ2NBhMIAMoA0ICEAFSC3BhY2tlZEludDY0EicKDXBhY2' + 'tlZF91aW50MzIYTSADKA1CAhABUgxwYWNrZWRVaW50MzISJwoNcGFja2VkX3VpbnQ2NBhOIAMo' + 'BEICEAFSDHBhY2tlZFVpbnQ2NBInCg1wYWNrZWRfc2ludDMyGE8gAygRQgIQAVIMcGFja2VkU2' + 'ludDMyEicKDXBhY2tlZF9zaW50NjQYUCADKBJCAhABUgxwYWNrZWRTaW50NjQSKQoOcGFja2Vk' + 'X2ZpeGVkMzIYUSADKAdCAhABUg1wYWNrZWRGaXhlZDMyEikKDnBhY2tlZF9maXhlZDY0GFIgAy' + 'gGQgIQAVINcGFja2VkRml4ZWQ2NBIrCg9wYWNrZWRfc2ZpeGVkMzIYUyADKA9CAhABUg5wYWNr' + 'ZWRTZml4ZWQzMhIrCg9wYWNrZWRfc2ZpeGVkNjQYVCADKBBCAhABUg5wYWNrZWRTZml4ZWQ2NB' + 'IlCgxwYWNrZWRfZmxvYXQYVSADKAJCAhABUgtwYWNrZWRGbG9hdBInCg1wYWNrZWRfZG91Ymxl' + 'GFYgAygBQgIQAVIMcGFja2VkRG91YmxlEiMKC3BhY2tlZF9ib29sGFcgAygIQgIQAVIKcGFja2' + 'VkQm9vbBJuChJwYWNrZWRfbmVzdGVkX2VudW0YWCADKA4yPC5wcm90b2J1Zl90ZXN0X21lc3Nh' + 'Z2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTmVzdGVkRW51bUICEAFSEHBhY2tlZE5lc3' + 'RlZEVudW0SKQoOdW5wYWNrZWRfaW50MzIYWSADKAVCAhAAUg11bnBhY2tlZEludDMyEikKDnVu' + 'cGFja2VkX2ludDY0GFogAygDQgIQAFINdW5wYWNrZWRJbnQ2NBIrCg91bnBhY2tlZF91aW50Mz' + 'IYWyADKA1CAhAAUg51bnBhY2tlZFVpbnQzMhIrCg91bnBhY2tlZF91aW50NjQYXCADKARCAhAA' + 'Ug51bnBhY2tlZFVpbnQ2NBIrCg91bnBhY2tlZF9zaW50MzIYXSADKBFCAhAAUg51bnBhY2tlZF' + 'NpbnQzMhIrCg91bnBhY2tlZF9zaW50NjQYXiADKBJCAhAAUg51bnBhY2tlZFNpbnQ2NBItChB1' + 'bnBhY2tlZF9maXhlZDMyGF8gAygHQgIQAFIPdW5wYWNrZWRGaXhlZDMyEi0KEHVucGFja2VkX2' + 'ZpeGVkNjQYYCADKAZCAhAAUg91bnBhY2tlZEZpeGVkNjQSLwoRdW5wYWNrZWRfc2ZpeGVkMzIY' + 'YSADKA9CAhAAUhB1bnBhY2tlZFNmaXhlZDMyEi8KEXVucGFja2VkX3NmaXhlZDY0GGIgAygQQg' + 'IQAFIQdW5wYWNrZWRTZml4ZWQ2NBIpCg51bnBhY2tlZF9mbG9hdBhjIAMoAkICEABSDXVucGFj' + 'a2VkRmxvYXQSKwoPdW5wYWNrZWRfZG91YmxlGGQgAygBQgIQAFIOdW5wYWNrZWREb3VibGUSJw' + 'oNdW5wYWNrZWRfYm9vbBhlIAMoCEICEABSDHVucGFja2VkQm9vbBJyChR1bnBhY2tlZF9uZXN0' + 'ZWRfZW51bRhmIAMoDjI8LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeX' + 'Blc1Byb3RvMy5OZXN0ZWRFbnVtQgIQAFISdW5wYWNrZWROZXN0ZWRFbnVtEmwKD21hcF9pbnQz' + 'Ml9pbnQzMhg4IAMoCzJELnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeX' + 'Blc1Byb3RvMy5NYXBJbnQzMkludDMyRW50cnlSDW1hcEludDMySW50MzISbAoPbWFwX2ludDY0' + 'X2ludDY0GDkgAygLMkQucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cG' + 'VzUHJvdG8zLk1hcEludDY0SW50NjRFbnRyeVINbWFwSW50NjRJbnQ2NBJyChFtYXBfdWludDMy' + 'X3VpbnQzMhg6IAMoCzJGLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeX' + 'Blc1Byb3RvMy5NYXBVaW50MzJVaW50MzJFbnRyeVIPbWFwVWludDMyVWludDMyEnIKEW1hcF91' + 'aW50NjRfdWludDY0GDsgAygLMkYucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdE' + 'FsbFR5cGVzUHJvdG8zLk1hcFVpbnQ2NFVpbnQ2NEVudHJ5Ug9tYXBVaW50NjRVaW50NjQScgoR' + 'bWFwX3NpbnQzMl9zaW50MzIYPCADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy' + '5UZXN0QWxsVHlwZXNQcm90bzMuTWFwU2ludDMyU2ludDMyRW50cnlSD21hcFNpbnQzMlNpbnQz' + 'MhJyChFtYXBfc2ludDY0X3NpbnQ2NBg9IAMoCzJGLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucH' + 'JvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBTaW50NjRTaW50NjRFbnRyeVIPbWFwU2ludDY0' + 'U2ludDY0EngKE21hcF9maXhlZDMyX2ZpeGVkMzIYPiADKAsySC5wcm90b2J1Zl90ZXN0X21lc3' + 'NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwRml4ZWQzMkZpeGVkMzJFbnRyeVIR' + 'bWFwRml4ZWQzMkZpeGVkMzISeAoTbWFwX2ZpeGVkNjRfZml4ZWQ2NBg/IAMoCzJILnByb3RvYn' + 'VmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBGaXhlZDY0Rml4' + 'ZWQ2NEVudHJ5UhFtYXBGaXhlZDY0Rml4ZWQ2NBJ+ChVtYXBfc2ZpeGVkMzJfc2ZpeGVkMzIYQC' + 'ADKAsySi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMu' + 'TWFwU2ZpeGVkMzJTZml4ZWQzMkVudHJ5UhNtYXBTZml4ZWQzMlNmaXhlZDMyEn4KFW1hcF9zZm' + 'l4ZWQ2NF9zZml4ZWQ2NBhBIAMoCzJKLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRl' + 'c3RBbGxUeXBlc1Byb3RvMy5NYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnlSE21hcFNmaXhlZDY0U2' + 'ZpeGVkNjQSbAoPbWFwX2ludDMyX2Zsb2F0GEIgAygLMkQucHJvdG9idWZfdGVzdF9tZXNzYWdl' + 'cy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcEludDMyRmxvYXRFbnRyeVINbWFwSW50Mz' + 'JGbG9hdBJvChBtYXBfaW50MzJfZG91YmxlGEMgAygLMkUucHJvdG9idWZfdGVzdF9tZXNzYWdl' + 'cy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcEludDMyRG91YmxlRW50cnlSDm1hcEludD' + 'MyRG91YmxlEmYKDW1hcF9ib29sX2Jvb2wYRCADKAsyQi5wcm90b2J1Zl90ZXN0X21lc3NhZ2Vz' + 'LnByb3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwQm9vbEJvb2xFbnRyeVILbWFwQm9vbEJvb2' + 'wScgoRbWFwX3N0cmluZ19zdHJpbmcYRSADKAsyRi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnBy' + 'b3RvMy5UZXN0QWxsVHlwZXNQcm90bzMuTWFwU3RyaW5nU3RyaW5nRW50cnlSD21hcFN0cmluZ1' + 'N0cmluZxJvChBtYXBfc3RyaW5nX2J5dGVzGEYgAygLMkUucHJvdG9idWZfdGVzdF9tZXNzYWdl' + 'cy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcFN0cmluZ0J5dGVzRW50cnlSDm1hcFN0cm' + 'luZ0J5dGVzEogBChltYXBfc3RyaW5nX25lc3RlZF9tZXNzYWdlGEcgAygLMk0ucHJvdG9idWZf' + 'dGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk1hcFN0cmluZ05lc3RlZE' + '1lc3NhZ2VFbnRyeVIWbWFwU3RyaW5nTmVzdGVkTWVzc2FnZRKLAQoabWFwX3N0cmluZ19mb3Jl' + 'aWduX21lc3NhZ2UYSCADKAsyTi5wcm90b2J1Zl90ZXN0X21lc3NhZ2VzLnByb3RvMy5UZXN0QW' + 'xsVHlwZXNQcm90bzMuTWFwU3RyaW5nRm9yZWlnbk1lc3NhZ2VFbnRyeVIXbWFwU3RyaW5nRm9y' + 'ZWlnbk1lc3NhZ2USfwoWbWFwX3N0cmluZ19uZXN0ZWRfZW51bRhJIAMoCzJKLnByb3RvYnVmX3' + 'Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5NYXBTdHJpbmdOZXN0ZWRF' + 'bnVtRW50cnlSE21hcFN0cmluZ05lc3RlZEVudW0SggEKF21hcF9zdHJpbmdfZm9yZWlnbl9lbn' + 'VtGEogAygLMksucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJv' + 'dG8zLk1hcFN0cmluZ0ZvcmVpZ25FbnVtRW50cnlSFG1hcFN0cmluZ0ZvcmVpZ25FbnVtEiMKDG' + '9uZW9mX3VpbnQzMhhvIAEoDUgAUgtvbmVvZlVpbnQzMhJzChRvbmVvZl9uZXN0ZWRfbWVzc2Fn' + 'ZRhwIAEoCzI/LnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3' + 'RvMy5OZXN0ZWRNZXNzYWdlSABSEm9uZW9mTmVzdGVkTWVzc2FnZRIjCgxvbmVvZl9zdHJpbmcY' + 'cSABKAlIAFILb25lb2ZTdHJpbmcSIQoLb25lb2ZfYnl0ZXMYciABKAxIAFIKb25lb2ZCeXRlcx' + 'IfCgpvbmVvZl9ib29sGHMgASgISABSCW9uZW9mQm9vbBIjCgxvbmVvZl91aW50NjQYdCABKARI' + 'AFILb25lb2ZVaW50NjQSIQoLb25lb2ZfZmxvYXQYdSABKAJIAFIKb25lb2ZGbG9hdBIjCgxvbm' + 'VvZl9kb3VibGUYdiABKAFIAFILb25lb2ZEb3VibGUSXQoKb25lb2ZfZW51bRh3IAEoDjI8LnBy' + 'b3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zLlRlc3RBbGxUeXBlc1Byb3RvMy5OZXN0ZWRFbn' + 'VtSABSCW9uZW9mRW51bRJGChBvbmVvZl9udWxsX3ZhbHVlGHggASgOMhouZ29vZ2xlLnByb3Rv' + 'YnVmLk51bGxWYWx1ZUgAUg5vbmVvZk51bGxWYWx1ZRJPChVvcHRpb25hbF9ib29sX3dyYXBwZX' + 'IYyQEgASgLMhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZVITb3B0aW9uYWxCb29sV3JhcHBl' + 'chJSChZvcHRpb25hbF9pbnQzMl93cmFwcGVyGMoBIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5Jbn' + 'QzMlZhbHVlUhRvcHRpb25hbEludDMyV3JhcHBlchJSChZvcHRpb25hbF9pbnQ2NF93cmFwcGVy' + 'GMsBIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlUhRvcHRpb25hbEludDY0V3JhcH' + 'BlchJVChdvcHRpb25hbF91aW50MzJfd3JhcHBlchjMASABKAsyHC5nb29nbGUucHJvdG9idWYu' + 'VUludDMyVmFsdWVSFW9wdGlvbmFsVWludDMyV3JhcHBlchJVChdvcHRpb25hbF91aW50NjRfd3' + 'JhcHBlchjNASABKAsyHC5nb29nbGUucHJvdG9idWYuVUludDY0VmFsdWVSFW9wdGlvbmFsVWlu' + 'dDY0V3JhcHBlchJSChZvcHRpb25hbF9mbG9hdF93cmFwcGVyGM4BIAEoCzIbLmdvb2dsZS5wcm' + '90b2J1Zi5GbG9hdFZhbHVlUhRvcHRpb25hbEZsb2F0V3JhcHBlchJVChdvcHRpb25hbF9kb3Vi' + 'bGVfd3JhcHBlchjPASABKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFsdWVSFW9wdGlvbm' + 'FsRG91YmxlV3JhcHBlchJVChdvcHRpb25hbF9zdHJpbmdfd3JhcHBlchjQASABKAsyHC5nb29n' + 'bGUucHJvdG9idWYuU3RyaW5nVmFsdWVSFW9wdGlvbmFsU3RyaW5nV3JhcHBlchJSChZvcHRpb2' + '5hbF9ieXRlc193cmFwcGVyGNEBIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5CeXRlc1ZhbHVlUhRv' + 'cHRpb25hbEJ5dGVzV3JhcHBlchJPChVyZXBlYXRlZF9ib29sX3dyYXBwZXIY0wEgAygLMhouZ2' + '9vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZVITcmVwZWF0ZWRCb29sV3JhcHBlchJSChZyZXBlYXRl' + 'ZF9pbnQzMl93cmFwcGVyGNQBIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlUhRyZX' + 'BlYXRlZEludDMyV3JhcHBlchJSChZyZXBlYXRlZF9pbnQ2NF93cmFwcGVyGNUBIAMoCzIbLmdv' + 'b2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlUhRyZXBlYXRlZEludDY0V3JhcHBlchJVChdyZXBlYX' + 'RlZF91aW50MzJfd3JhcHBlchjWASADKAsyHC5nb29nbGUucHJvdG9idWYuVUludDMyVmFsdWVS' + 'FXJlcGVhdGVkVWludDMyV3JhcHBlchJVChdyZXBlYXRlZF91aW50NjRfd3JhcHBlchjXASADKA' + 'syHC5nb29nbGUucHJvdG9idWYuVUludDY0VmFsdWVSFXJlcGVhdGVkVWludDY0V3JhcHBlchJS' + 'ChZyZXBlYXRlZF9mbG9hdF93cmFwcGVyGNgBIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5GbG9hdF' + 'ZhbHVlUhRyZXBlYXRlZEZsb2F0V3JhcHBlchJVChdyZXBlYXRlZF9kb3VibGVfd3JhcHBlchjZ' + 'ASADKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFsdWVSFXJlcGVhdGVkRG91YmxlV3JhcH' + 'BlchJVChdyZXBlYXRlZF9zdHJpbmdfd3JhcHBlchjaASADKAsyHC5nb29nbGUucHJvdG9idWYu' + 'U3RyaW5nVmFsdWVSFXJlcGVhdGVkU3RyaW5nV3JhcHBlchJSChZyZXBlYXRlZF9ieXRlc193cm' + 'FwcGVyGNsBIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5CeXRlc1ZhbHVlUhRyZXBlYXRlZEJ5dGVz' + 'V3JhcHBlchJHChFvcHRpb25hbF9kdXJhdGlvbhitAiABKAsyGS5nb29nbGUucHJvdG9idWYuRH' + 'VyYXRpb25SEG9wdGlvbmFsRHVyYXRpb24SSgoSb3B0aW9uYWxfdGltZXN0YW1wGK4CIAEoCzIa' + 'Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSEW9wdGlvbmFsVGltZXN0YW1wEksKE29wdGlvbm' + 'FsX2ZpZWxkX21hc2sYrwIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFza1IRb3B0aW9u' + 'YWxGaWVsZE1hc2sSQQoPb3B0aW9uYWxfc3RydWN0GLACIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi' + '5TdHJ1Y3RSDm9wdGlvbmFsU3RydWN0EjgKDG9wdGlvbmFsX2FueRixAiABKAsyFC5nb29nbGUu' + 'cHJvdG9idWYuQW55UgtvcHRpb25hbEFueRI+Cg5vcHRpb25hbF92YWx1ZRiyAiABKAsyFi5nb2' + '9nbGUucHJvdG9idWYuVmFsdWVSDW9wdGlvbmFsVmFsdWUSSwoTb3B0aW9uYWxfbnVsbF92YWx1' + 'ZRizAiABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlUhFvcHRpb25hbE51bGxWYWx1ZR' + 'JHChFyZXBlYXRlZF9kdXJhdGlvbhi3AiADKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25S' + 'EHJlcGVhdGVkRHVyYXRpb24SSgoScmVwZWF0ZWRfdGltZXN0YW1wGLgCIAMoCzIaLmdvb2dsZS' + '5wcm90b2J1Zi5UaW1lc3RhbXBSEXJlcGVhdGVkVGltZXN0YW1wEkoKEnJlcGVhdGVkX2ZpZWxk' + 'bWFzaxi5AiADKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrUhFyZXBlYXRlZEZpZWxkbW' + 'FzaxJBCg9yZXBlYXRlZF9zdHJ1Y3QYxAIgAygLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdFIO' + 'cmVwZWF0ZWRTdHJ1Y3QSOAoMcmVwZWF0ZWRfYW55GLsCIAMoCzIULmdvb2dsZS5wcm90b2J1Zi' + '5BbnlSC3JlcGVhdGVkQW55Ej4KDnJlcGVhdGVkX3ZhbHVlGLwCIAMoCzIWLmdvb2dsZS5wcm90' + 'b2J1Zi5WYWx1ZVINcmVwZWF0ZWRWYWx1ZRJLChNyZXBlYXRlZF9saXN0X3ZhbHVlGL0CIAMoCz' + 'IaLmdvb2dsZS5wcm90b2J1Zi5MaXN0VmFsdWVSEXJlcGVhdGVkTGlzdFZhbHVlEh8KCmZpZWxk' + 'bmFtZTEYkQMgASgFUgpmaWVsZG5hbWUxEiAKC2ZpZWxkX25hbWUyGJIDIAEoBVIKZmllbGROYW' + '1lMhIhCgxfZmllbGRfbmFtZTMYkwMgASgFUgpGaWVsZE5hbWUzEiIKDWZpZWxkX19uYW1lNF8Y' + 'lAMgASgFUgpmaWVsZE5hbWU0EiEKC2ZpZWxkMG5hbWU1GJUDIAEoBVILZmllbGQwbmFtZTUSIw' + 'oNZmllbGRfMF9uYW1lNhiWAyABKAVSC2ZpZWxkME5hbWU2Eh8KCmZpZWxkTmFtZTcYlwMgASgF' + 'UgpmaWVsZE5hbWU3Eh8KCkZpZWxkTmFtZTgYmAMgASgFUgpGaWVsZE5hbWU4EiAKC2ZpZWxkX0' + '5hbWU5GJkDIAEoBVIKZmllbGROYW1lORIiCgxGaWVsZF9OYW1lMTAYmgMgASgFUgtGaWVsZE5h' + 'bWUxMBIiCgxGSUVMRF9OQU1FMTEYmwMgASgFUgtGSUVMRE5BTUUxMRIiCgxGSUVMRF9uYW1lMT' + 'IYnAMgASgFUgtGSUVMRE5hbWUxMhIkCg5fX2ZpZWxkX25hbWUxMxidAyABKAVSC0ZpZWxkTmFt' + 'ZTEzEiQKDl9fRmllbGRfbmFtZTE0GJ4DIAEoBVILRmllbGROYW1lMTQSIwoNZmllbGRfX25hbW' + 'UxNRifAyABKAVSC2ZpZWxkTmFtZTE1EiMKDWZpZWxkX19OYW1lMTYYoAMgASgFUgtmaWVsZE5h' + 'bWUxNhIkCg5maWVsZF9uYW1lMTdfXxihAyABKAVSC2ZpZWxkTmFtZTE3EiQKDkZpZWxkX25hbW' + 'UxOF9fGKIDIAEoBVILRmllbGROYW1lMTgacgoNTmVzdGVkTWVzc2FnZRIMCgFhGAEgASgFUgFh' + 'ElMKC2NvcmVjdXJzaXZlGAIgASgLMjEucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVG' + 'VzdEFsbFR5cGVzUHJvdG8zUgtjb3JlY3Vyc2l2ZRpAChJNYXBJbnQzMkludDMyRW50cnkSEAoD' + 'a2V5GAEgASgFUgNrZXkSFAoFdmFsdWUYAiABKAVSBXZhbHVlOgI4ARpAChJNYXBJbnQ2NEludD' + 'Y0RW50cnkSEAoDa2V5GAEgASgDUgNrZXkSFAoFdmFsdWUYAiABKANSBXZhbHVlOgI4ARpCChRN' + 'YXBVaW50MzJVaW50MzJFbnRyeRIQCgNrZXkYASABKA1SA2tleRIUCgV2YWx1ZRgCIAEoDVIFdm' + 'FsdWU6AjgBGkIKFE1hcFVpbnQ2NFVpbnQ2NEVudHJ5EhAKA2tleRgBIAEoBFIDa2V5EhQKBXZh' + 'bHVlGAIgASgEUgV2YWx1ZToCOAEaQgoUTWFwU2ludDMyU2ludDMyRW50cnkSEAoDa2V5GAEgAS' + 'gRUgNrZXkSFAoFdmFsdWUYAiABKBFSBXZhbHVlOgI4ARpCChRNYXBTaW50NjRTaW50NjRFbnRy' + 'eRIQCgNrZXkYASABKBJSA2tleRIUCgV2YWx1ZRgCIAEoElIFdmFsdWU6AjgBGkQKFk1hcEZpeG' + 'VkMzJGaXhlZDMyRW50cnkSEAoDa2V5GAEgASgHUgNrZXkSFAoFdmFsdWUYAiABKAdSBXZhbHVl' + 'OgI4ARpEChZNYXBGaXhlZDY0Rml4ZWQ2NEVudHJ5EhAKA2tleRgBIAEoBlIDa2V5EhQKBXZhbH' + 'VlGAIgASgGUgV2YWx1ZToCOAEaRgoYTWFwU2ZpeGVkMzJTZml4ZWQzMkVudHJ5EhAKA2tleRgB' + 'IAEoD1IDa2V5EhQKBXZhbHVlGAIgASgPUgV2YWx1ZToCOAEaRgoYTWFwU2ZpeGVkNjRTZml4ZW' + 'Q2NEVudHJ5EhAKA2tleRgBIAEoEFIDa2V5EhQKBXZhbHVlGAIgASgQUgV2YWx1ZToCOAEaQAoS' + 'TWFwSW50MzJGbG9hdEVudHJ5EhAKA2tleRgBIAEoBVIDa2V5EhQKBXZhbHVlGAIgASgCUgV2YW' + 'x1ZToCOAEaQQoTTWFwSW50MzJEb3VibGVFbnRyeRIQCgNrZXkYASABKAVSA2tleRIUCgV2YWx1' + 'ZRgCIAEoAVIFdmFsdWU6AjgBGj4KEE1hcEJvb2xCb29sRW50cnkSEAoDa2V5GAEgASgIUgNrZX' + 'kSFAoFdmFsdWUYAiABKAhSBXZhbHVlOgI4ARpCChRNYXBTdHJpbmdTdHJpbmdFbnRyeRIQCgNr' + 'ZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgBGkEKE01hcFN0cmluZ0J5dG' + 'VzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAxSBXZhbHVlOgI4ARqKAQob' + 'TWFwU3RyaW5nTmVzdGVkTWVzc2FnZUVudHJ5EhAKA2tleRgBIAEoCVIDa2V5ElUKBXZhbHVlGA' + 'IgASgLMj8ucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8z' + 'Lk5lc3RlZE1lc3NhZ2VSBXZhbHVlOgI4ARp5ChxNYXBTdHJpbmdGb3JlaWduTWVzc2FnZUVudH' + 'J5EhAKA2tleRgBIAEoCVIDa2V5EkMKBXZhbHVlGAIgASgLMi0ucHJvdG9idWZfdGVzdF9tZXNz' + 'YWdlcy5wcm90bzMuRm9yZWlnbk1lc3NhZ2VSBXZhbHVlOgI4ARqEAQoYTWFwU3RyaW5nTmVzdG' + 'VkRW51bUVudHJ5EhAKA2tleRgBIAEoCVIDa2V5ElIKBXZhbHVlGAIgASgOMjwucHJvdG9idWZf' + 'dGVzdF9tZXNzYWdlcy5wcm90bzMuVGVzdEFsbFR5cGVzUHJvdG8zLk5lc3RlZEVudW1SBXZhbH' + 'VlOgI4ARpzChlNYXBTdHJpbmdGb3JlaWduRW51bUVudHJ5EhAKA2tleRgBIAEoCVIDa2V5EkAK' + 'BXZhbHVlGAIgASgOMioucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuRm9yZWlnbkVudW' + '1SBXZhbHVlOgI4ASI5CgpOZXN0ZWRFbnVtEgcKA0ZPTxAAEgcKA0JBUhABEgcKA0JBWhACEhAK' + 'A05FRxD///////////8BIlkKC0FsaWFzZWRFbnVtEg0KCUFMSUFTX0ZPTxAAEg0KCUFMSUFTX0' + 'JBUhABEg0KCUFMSUFTX0JBWhACEgcKA01PTxACEgcKA21vbxACEgcKA2JBehACGgIQAUINCgtv' + 'bmVvZl9maWVsZEoGCPUDEP8D'); + @$core.Deprecated('Use foreignMessageDescriptor instead') const ForeignMessage$json = { '1': 'ForeignMessage', @@ -1232,3 +1449,31 @@ const ForeignMessage$json = { /// Descriptor for `ForeignMessage`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List foreignMessageDescriptor = $convert.base64Decode('Cg5Gb3JlaWduTWVzc2FnZRIMCgFjGAEgASgFUgFj'); + +@$core.Deprecated('Use nullHypothesisProto3Descriptor instead') +const NullHypothesisProto3$json = { + '1': 'NullHypothesisProto3', +}; + +/// Descriptor for `NullHypothesisProto3`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List nullHypothesisProto3Descriptor = + $convert.base64Decode('ChROdWxsSHlwb3RoZXNpc1Byb3RvMw=='); + +@$core.Deprecated('Use enumOnlyProto3Descriptor instead') +const EnumOnlyProto3$json = { + '1': 'EnumOnlyProto3', + '4': [EnumOnlyProto3_Bool$json], +}; + +@$core.Deprecated('Use enumOnlyProto3Descriptor instead') +const EnumOnlyProto3_Bool$json = { + '1': 'Bool', + '2': [ + {'1': 'kFalse', '2': 0}, + {'1': 'kTrue', '2': 1}, + ], +}; + +/// Descriptor for `EnumOnlyProto3`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List enumOnlyProto3Descriptor = $convert.base64Decode( + 'Cg5FbnVtT25seVByb3RvMyIdCgRCb29sEgoKBmtGYWxzZRAAEgkKBWtUcnVlEAE='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pb.dart index 6f1e41d3..48e11b93 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pb.dart @@ -1,62 +1,142 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/timestamp.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; - import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin; +/// A Timestamp represents a point in time independent of any time zone or local +/// calendar, encoded as a count of seconds and fractions of seconds at +/// nanosecond resolution. The count is relative to an epoch at UTC midnight on +/// January 1, 1970, in the proleptic Gregorian calendar which extends the +/// Gregorian calendar backwards to year one. +/// +/// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +/// second table is needed for interpretation, using a [24-hour linear +/// smear](https://developers.google.com/time/smear). +/// +/// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +/// restricting to that range, we ensure that we can convert to and from [RFC +/// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. +/// +/// # Examples +/// +/// Example 1: Compute Timestamp from POSIX `time()`. +/// +/// Timestamp timestamp; +/// timestamp.set_seconds(time(NULL)); +/// timestamp.set_nanos(0); +/// +/// Example 2: Compute Timestamp from POSIX `gettimeofday()`. +/// +/// struct timeval tv; +/// gettimeofday(&tv, NULL); +/// +/// Timestamp timestamp; +/// timestamp.set_seconds(tv.tv_sec); +/// timestamp.set_nanos(tv.tv_usec * 1000); +/// +/// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. +/// +/// FILETIME ft; +/// GetSystemTimeAsFileTime(&ft); +/// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; +/// +/// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z +/// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. +/// Timestamp timestamp; +/// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); +/// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); +/// +/// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. +/// +/// long millis = System.currentTimeMillis(); +/// +/// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) +/// .setNanos((int) ((millis % 1000) * 1000000)).build(); +/// +/// Example 5: Compute Timestamp from Java `Instant.now()`. +/// +/// Instant now = Instant.now(); +/// +/// Timestamp timestamp = +/// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) +/// .setNanos(now.getNano()).build(); +/// +/// Example 6: Compute Timestamp from current time in Python. +/// +/// timestamp = Timestamp() +/// timestamp.GetCurrentTime() +/// +/// # JSON Mapping +/// +/// In JSON format, the Timestamp type is encoded as a string in the +/// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +/// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +/// where {year} is always expressed using four digits while {month}, {day}, +/// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +/// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +/// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +/// is required. A proto3 JSON serializer should always use UTC (as indicated by +/// "Z") when printing the Timestamp type and a proto3 JSON parser should be +/// able to accept both UTC and other timezones (as indicated by an offset). +/// +/// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +/// 01:30 UTC on January 15, 2017. +/// +/// In JavaScript, one can convert a Date object to this format using the +/// standard +/// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +/// method. In Python, a standard `datetime.datetime` object can be converted +/// to this format using +/// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +/// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +/// the Joda Time's [`ISODateTimeFormat.dateTime()`]( +/// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() +/// ) to obtain a formatter capable of generating timestamps in this format. class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Timestamp', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create, - toProto3Json: $mixin.TimestampMixin.toProto3JsonHelper, - fromProto3Json: $mixin.TimestampMixin.fromProto3JsonHelper) - ..aInt64( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'seconds') - ..a<$core.int>( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'nanos', - $pb.PbFieldType.O3) - ..hasRequiredFields = false; - - Timestamp._() : super(); factory Timestamp({ $fixnum.Int64? seconds, $core.int? nanos, }) { - final _result = create(); + final $result = create(); if (seconds != null) { - _result.seconds = seconds; + $result.seconds = seconds; } if (nanos != null) { - _result.nanos = nanos; + $result.nanos = nanos; } - return _result; + return $result; } + Timestamp._() : super(); factory Timestamp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Timestamp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Timestamp', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.TimestampMixin.toProto3JsonHelper, + fromProto3Json: $mixin.TimestampMixin.fromProto3JsonHelper) + ..aInt64(1, _omitFieldNames ? '' : 'seconds') + ..a<$core.int>(2, _omitFieldNames ? '' : 'nanos', $pb.PbFieldType.O3) + ..hasRequiredFields = false; + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') @@ -65,9 +145,10 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Timestamp copyWith(void Function(Timestamp) updates) => - super.copyWith((message) => updates(message as Timestamp)) - as Timestamp; // ignore: deprecated_member_use + super.copyWith((message) => updates(message as Timestamp)) as Timestamp; + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') static Timestamp create() => Timestamp._(); Timestamp createEmptyInstance() => create(); @@ -77,6 +158,9 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Timestamp? _defaultInstance; + /// Represents seconds of UTC time since Unix epoch + /// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + /// 9999-12-31T23:59:59Z inclusive. @$pb.TagNumber(1) $fixnum.Int64 get seconds => $_getI64(0); @$pb.TagNumber(1) @@ -89,6 +173,10 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { @$pb.TagNumber(1) void clearSeconds() => clearField(1); + /// Non-negative fractions of a second at nanosecond resolution. Negative + /// second values with fractions must still have non-negative nanos values + /// that count forward in time. Must be from 0 to 999,999,999 + /// inclusive. @$pb.TagNumber(2) $core.int get nanos => $_getIZ(1); @$pb.TagNumber(2) @@ -110,3 +198,7 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { return result; } } + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = + $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pbenum.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pbenum.dart index 78b6cb53..a194b805 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pbenum.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pbenum.dart @@ -1,6 +1,10 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/timestamp.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pbjson.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pbjson.dart index ad62ea6c..39ab20fa 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pbjson.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/timestamp.pbjson.dart @@ -1,12 +1,16 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/timestamp.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields,deprecated_member_use_from_same_package -import 'dart:core' as $core; +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 timestampDescriptor instead') @@ -20,4 +24,5 @@ const Timestamp$json = { /// Descriptor for `Timestamp`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List timestampDescriptor = $convert.base64Decode( - 'CglUaW1lc3RhbXASGAoHc2Vjb25kcxgBIAEoA1IHc2Vjb25kcxIUCgVuYW5vcxgCIAEoBVIFbmFub3M='); + 'CglUaW1lc3RhbXASGAoHc2Vjb25kcxgBIAEoA1IHc2Vjb25kcxIUCgVuYW5vcxgCIAEoBVIFbm' + 'Fub3M='); diff --git a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/type.pb.dart b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/type.pb.dart index 37ec720e..d9eebdce 100644 --- a/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/type.pb.dart +++ b/pkgs/appengine/lib/src/grpc_api/dart/google/protobuf/type.pb.dart @@ -1,86 +1,87 @@ -/// +// // Generated code. Do not modify. // source: google/protobuf/type.proto // // @dart = 2.12 -// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// 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 'source_context.pb.dart' as $0; -import 'any.pb.dart' as $1; - +import 'any.pb.dart' as $49; +import 'source_context.pb.dart' as $82; import 'type.pbenum.dart'; export 'type.pbenum.dart'; +/// A protocol buffer message type. class Type extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'Type', - package: const $pb.PackageName( - $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'google.protobuf'), - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'name') - ..pc( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'fields', - $pb.PbFieldType.PM, - subBuilder: Field.create) - ..pPS( - 3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'oneofs') - ..pc

` +// // - `projects//instances//tables/
` +// // - `region//zones//tables/
` +// string table_name = 1; +// +// // This value specifies routing for replication. +// // It can be in the following formats: +// // - `profiles/` +// // - a legacy `profile_id` that can be any string +// string app_profile_id = 2; +// } +// +// Example message: +// +// { +// table_name: projects/proj_foo/instances/instance_bar/table/table_baz, +// app_profile_id: profiles/prof_qux +// } +// +// The routing header consists of one or multiple key-value pairs. Every key +// and value must be percent-encoded, and joined together in the format of +// `key1=value1&key2=value2`. +// In the examples below I am skipping the percent-encoding for readablity. +// +// Example 1 +// +// Extracting a field from the request to put into the routing header +// unchanged, with the key equal to the field name. +// +// annotation: +// +// option (google.api.routing) = { +// // Take the `app_profile_id`. +// routing_parameters { +// field: "app_profile_id" +// } +// }; +// +// result: +// +// x-goog-request-params: app_profile_id=profiles/prof_qux +// +// Example 2 +// +// Extracting a field from the request to put into the routing header +// unchanged, with the key different from the field name. +// +// annotation: +// +// option (google.api.routing) = { +// // Take the `app_profile_id`, but name it `routing_id` in the header. +// routing_parameters { +// field: "app_profile_id" +// path_template: "{routing_id=**}" +// } +// }; +// +// result: +// +// x-goog-request-params: routing_id=profiles/prof_qux +// +// Example 3 +// +// Extracting a field from the request to put into the routing +// header, while matching a path template syntax on the field's value. +// +// NB: it is more useful to send nothing than to send garbage for the purpose +// of dynamic routing, since garbage pollutes cache. Thus the matching. +// +// Sub-example 3a +// +// The field matches the template. +// +// annotation: +// +// option (google.api.routing) = { +// // Take the `table_name`, if it's well-formed (with project-based +// // syntax). +// routing_parameters { +// field: "table_name" +// path_template: "{table_name=projects/*/instances/*/**}" +// } +// }; +// +// result: +// +// x-goog-request-params: +// table_name=projects/proj_foo/instances/instance_bar/table/table_baz +// +// Sub-example 3b +// +// The field does not match the template. +// +// annotation: +// +// option (google.api.routing) = { +// // Take the `table_name`, if it's well-formed (with region-based +// // syntax). +// routing_parameters { +// field: "table_name" +// path_template: "{table_name=regions/*/zones/*/**}" +// } +// }; +// +// result: +// +// +// +// Sub-example 3c +// +// Multiple alternative conflictingly named path templates are +// specified. The one that matches is used to construct the header. +// +// annotation: +// +// option (google.api.routing) = { +// // Take the `table_name`, if it's well-formed, whether +// // using the region- or projects-based syntax. +// +// routing_parameters { +// field: "table_name" +// path_template: "{table_name=regions/*/zones/*/**}" +// } +// routing_parameters { +// field: "table_name" +// path_template: "{table_name=projects/*/instances/*/**}" +// } +// }; +// +// result: +// +// x-goog-request-params: +// table_name=projects/proj_foo/instances/instance_bar/table/table_baz +// +// Example 4 +// +// Extracting a single routing header key-value pair by matching a +// template syntax on (a part of) a single request field. +// +// annotation: +// +// option (google.api.routing) = { +// // Take just the project id from the `table_name` field. +// routing_parameters { +// field: "table_name" +// path_template: "{routing_id=projects/*}/**" +// } +// }; +// +// result: +// +// x-goog-request-params: routing_id=projects/proj_foo +// +// Example 5 +// +// Extracting a single routing header key-value pair by matching +// several conflictingly named path templates on (parts of) a single request +// field. The last template to match "wins" the conflict. +// +// annotation: +// +// option (google.api.routing) = { +// // If the `table_name` does not have instances information, +// // take just the project id for routing. +// // Otherwise take project + instance. +// +// routing_parameters { +// field: "table_name" +// path_template: "{routing_id=projects/*}/**" +// } +// routing_parameters { +// field: "table_name" +// path_template: "{routing_id=projects/*/instances/*}/**" +// } +// }; +// +// result: +// +// x-goog-request-params: +// routing_id=projects/proj_foo/instances/instance_bar +// +// Example 6 +// +// Extracting multiple routing header key-value pairs by matching +// several non-conflicting path templates on (parts of) a single request field. +// +// Sub-example 6a +// +// Make the templates strict, so that if the `table_name` does not +// have an instance information, nothing is sent. +// +// annotation: +// +// option (google.api.routing) = { +// // The routing code needs two keys instead of one composite +// // but works only for the tables with the "project-instance" name +// // syntax. +// +// routing_parameters { +// field: "table_name" +// path_template: "{project_id=projects/*}/instances/*/**" +// } +// routing_parameters { +// field: "table_name" +// path_template: "projects/*/{instance_id=instances/*}/**" +// } +// }; +// +// result: +// +// x-goog-request-params: +// project_id=projects/proj_foo&instance_id=instances/instance_bar +// +// Sub-example 6b +// +// Make the templates loose, so that if the `table_name` does not +// have an instance information, just the project id part is sent. +// +// annotation: +// +// option (google.api.routing) = { +// // The routing code wants two keys instead of one composite +// // but will work with just the `project_id` for tables without +// // an instance in the `table_name`. +// +// routing_parameters { +// field: "table_name" +// path_template: "{project_id=projects/*}/**" +// } +// routing_parameters { +// field: "table_name" +// path_template: "projects/*/{instance_id=instances/*}/**" +// } +// }; +// +// result (is the same as 6a for our example message because it has the instance +// information): +// +// x-goog-request-params: +// project_id=projects/proj_foo&instance_id=instances/instance_bar +// +// Example 7 +// +// Extracting multiple routing header key-value pairs by matching +// several path templates on multiple request fields. +// +// NB: note that here there is no way to specify sending nothing if one of the +// fields does not match its template. E.g. if the `table_name` is in the wrong +// format, the `project_id` will not be sent, but the `routing_id` will be. +// The backend routing code has to be aware of that and be prepared to not +// receive a full complement of keys if it expects multiple. +// +// annotation: +// +// option (google.api.routing) = { +// // The routing needs both `project_id` and `routing_id` +// // (from the `app_profile_id` field) for routing. +// +// routing_parameters { +// field: "table_name" +// path_template: "{project_id=projects/*}/**" +// } +// routing_parameters { +// field: "app_profile_id" +// path_template: "{routing_id=**}" +// } +// }; +// +// result: +// +// x-goog-request-params: +// project_id=projects/proj_foo&routing_id=profiles/prof_qux +// +// Example 8 +// +// Extracting a single routing header key-value pair by matching +// several conflictingly named path templates on several request fields. The +// last template to match "wins" the conflict. +// +// annotation: +// +// option (google.api.routing) = { +// // The `routing_id` can be a project id or a region id depending on +// // the table name format, but only if the `app_profile_id` is not set. +// // If `app_profile_id` is set it should be used instead. +// +// routing_parameters { +// field: "table_name" +// path_template: "{routing_id=projects/*}/**" +// } +// routing_parameters { +// field: "table_name" +// path_template: "{routing_id=regions/*}/**" +// } +// routing_parameters { +// field: "app_profile_id" +// path_template: "{routing_id=**}" +// } +// }; +// +// result: +// +// x-goog-request-params: routing_id=profiles/prof_qux +// +// Example 9 +// +// Bringing it all together. +// +// annotation: +// +// option (google.api.routing) = { +// // For routing both `table_location` and a `routing_id` are needed. +// // +// // table_location can be either an instance id or a region+zone id. +// // +// // For `routing_id`, take the value of `app_profile_id` +// // - If it's in the format `profiles/`, send +// // just the `` part. +// // - If it's any other literal, send it as is. +// // If the `app_profile_id` is empty, and the `table_name` starts with +// // the project_id, send that instead. +// +// routing_parameters { +// field: "table_name" +// path_template: "projects/*/{table_location=instances/*}/tables/*" +// } +// routing_parameters { +// field: "table_name" +// path_template: "{table_location=regions/*/zones/*}/tables/*" +// } +// routing_parameters { +// field: "table_name" +// path_template: "{routing_id=projects/*}/**" +// } +// routing_parameters { +// field: "app_profile_id" +// path_template: "{routing_id=**}" +// } +// routing_parameters { +// field: "app_profile_id" +// path_template: "profiles/{routing_id=*}" +// } +// }; +// +// result: +// +// x-goog-request-params: +// table_location=instances/instance_bar&routing_id=prof_qux +message RoutingRule { + // A collection of Routing Parameter specifications. + // **NOTE:** If multiple Routing Parameters describe the same key + // (via the `path_template` field or via the `field` field when + // `path_template` is not provided), "last one wins" rule + // determines which Parameter gets used. + // See the examples for more details. + repeated RoutingParameter routing_parameters = 2; +} + +// A projection from an input message to the GRPC or REST header. +message RoutingParameter { + // A request field to extract the header key-value pair from. + string field = 1; + + // A pattern matching the key-value field. Optional. + // If not specified, the whole field specified in the `field` field will be + // taken as value, and its name used as key. If specified, it MUST contain + // exactly one named segment (along with any number of unnamed segments) The + // pattern will be matched over the field specified in the `field` field, then + // if the match is successful: + // - the name of the single named segment will be used as a header name, + // - the match value of the segment will be used as a header value; + // if the match is NOT successful, nothing will be sent. + // + // Example: + // + // -- This is a field in the request message + // | that the header value will be extracted from. + // | + // | -- This is the key name in the + // | | routing header. + // V | + // field: "table_name" v + // path_template: "projects/*/{table_location=instances/*}/tables/*" + // ^ ^ + // | | + // In the {} brackets is the pattern that -- | + // specifies what to extract from the | + // field as a value to be sent. | + // | + // The string in the field must match the whole pattern -- + // before brackets, inside brackets, after brackets. + // + // When looking at this specific example, we can see that: + // - A key-value pair with the key `table_location` + // and the value matching `instances/*` should be added + // to the x-goog-request-params routing header. + // - The value is extracted from the request message's `table_name` field + // if it matches the full pattern specified: + // `projects/*/instances/*/tables/*`. + // + // **NB:** If the `path_template` field is not provided, the key name is + // equal to the field name, and the whole field should be sent as a value. + // This makes the pattern for the field and the value functionally equivalent + // to `**`, and the configuration + // + // { + // field: "table_name" + // } + // + // is a functionally equivalent shorthand to: + // + // { + // field: "table_name" + // path_template: "{table_name=**}" + // } + // + // See Example 1 for more details. + string path_template = 2; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/service.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/service.proto index bb988a98..48e9ef0b 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/service.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/service.proto @@ -1,4 +1,4 @@ -// Copyright 2015 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,23 +19,21 @@ package google.api; import "google/api/auth.proto"; import "google/api/backend.proto"; import "google/api/billing.proto"; +import "google/api/client.proto"; import "google/api/context.proto"; import "google/api/control.proto"; import "google/api/documentation.proto"; import "google/api/endpoint.proto"; import "google/api/http.proto"; -import "google/api/label.proto"; import "google/api/log.proto"; import "google/api/logging.proto"; import "google/api/metric.proto"; import "google/api/monitored_resource.proto"; import "google/api/monitoring.proto"; import "google/api/quota.proto"; -import "google/api/resource.proto"; import "google/api/source_info.proto"; import "google/api/system_parameter.proto"; import "google/api/usage.proto"; -import "google/protobuf/any.proto"; import "google/protobuf/api.proto"; import "google/protobuf/type.proto"; import "google/protobuf/wrappers.proto"; @@ -46,11 +44,12 @@ option java_outer_classname = "ServiceProto"; option java_package = "com.google.api"; option objc_class_prefix = "GAPI"; -// `Service` is the root object of Google service configuration schema. It -// describes basic information about a service, such as the name and the -// title, and delegates other aspects to sub-sections. Each sub-section is -// either a proto message or a repeated proto message that configures a -// specific aspect, such as auth. See each proto message definition for details. +// `Service` is the root object of Google API service configuration (service +// config). It describes the basic information about a logical service, +// such as the service name and the user-facing title, and delegates other +// aspects to sub-sections. Each sub-section is either a proto message or a +// repeated proto message that configures a specific aspect, such as auth. +// For more information, see each proto message definition. // // Example: // @@ -59,6 +58,16 @@ option objc_class_prefix = "GAPI"; // title: Google Calendar API // apis: // - name: google.calendar.v3.Calendar +// +// visibility: +// rules: +// - selector: "google.calendar.v3.*" +// restriction: PREVIEW +// backend: +// rules: +// - selector: "google.calendar.v3.*" +// address: calendar.example.com +// // authentication: // providers: // - id: google_calendar_auth @@ -75,7 +84,8 @@ message Service { // of the service also owns the DNS name. string name = 1; - // The product title for this service. + // The product title for this service, it is the name displayed in Google + // Cloud Console. string title = 2; // The Google project that owns this service. @@ -88,26 +98,26 @@ message Service { string id = 33; // A list of API interfaces exported by this service. Only the `name` field - // of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration - // author, as the remaining fields will be derived from the IDL during the - // normalization process. It is an error to specify an API interface here - // which cannot be resolved against the associated IDL files. + // of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by + // the configuration author, as the remaining fields will be derived from the + // IDL during the normalization process. It is an error to specify an API + // interface here which cannot be resolved against the associated IDL files. repeated google.protobuf.Api apis = 3; // A list of all proto message types included in this API service. - // Types referenced directly or indirectly by the `apis` are - // automatically included. Messages which are not referenced but - // shall be included, such as types used by the `google.protobuf.Any` type, - // should be listed here by name. Example: + // Types referenced directly or indirectly by the `apis` are automatically + // included. Messages which are not referenced but shall be included, such as + // types used by the `google.protobuf.Any` type, should be listed here by + // name by the configuration author. Example: // // types: // - name: google.protobuf.Int32 repeated google.protobuf.Type types = 4; - // A list of all enum types included in this API service. Enums - // referenced directly or indirectly by the `apis` are automatically - // included. Enums which are not referenced but shall be included - // should be listed here by name. Example: + // A list of all enum types included in this API service. Enums referenced + // directly or indirectly by the `apis` are automatically included. Enums + // which are not referenced but shall be included should be listed here by + // name by the configuration author. Example: // // enums: // - name: google.someapi.v1.SomeEnum @@ -149,7 +159,8 @@ message Service { repeated MetricDescriptor metrics = 24; // Defines the monitored resources used by this service. This is required - // by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations. + // by the [Service.monitoring][google.api.Service.monitoring] and + // [Service.logging][google.api.Service.logging] configurations. repeated MonitoredResourceDescriptor monitored_resources = 25; // Billing configuration. @@ -167,9 +178,14 @@ message Service { // Output only. The source information for this configuration if available. SourceInfo source_info = 37; + // Settings for [Google Cloud Client + // libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + // generated from APIs defined as protocol buffers. + Publishing publishing = 45; + // Obsolete. Do not use. // // This field has no semantic meaning. The service config compiler always // sets this field to `3`. - google.protobuf.UInt32Value config_version = 20 [deprecated = true]; + google.protobuf.UInt32Value config_version = 20; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceconfig.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceconfig.yaml index 054295e4..e71751ea 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceconfig.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceconfig.yaml @@ -7,6 +7,7 @@ types: - name: google.api.ConfigChange - name: google.api.Distribution - name: google.api.DocumentationRule +- name: google.api.FieldInfo - name: google.api.HttpBody - name: google.api.LabelDescriptor - name: google.api.Metric @@ -15,6 +16,7 @@ types: - name: google.api.MonitoredResourceMetadata - name: google.api.ResourceDescriptor - name: google.api.ResourceReference +- name: google.api.RoutingRule - name: google.api.Service - name: google.api.Visibility diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/BUILD.bazel index e69de29b..6444e18f 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/BUILD.bazel @@ -0,0 +1,41 @@ +# This build file includes a target for the Ruby wrapper library for +# google-cloud-service_control. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +# Export yaml configs. +exports_files(glob(["*.yaml"])) + +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", +) + +# Generates a Ruby wrapper client for servicecontrol. +# Ruby wrapper clients are versionless, but are generated from source protos +# for a particular service version, v1 in this case. +ruby_cloud_gapic_library( + name = "servicecontrol_ruby_wrapper", + srcs = ["//google/api/servicecontrol/v1:servicecontrol_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-service_control", + "ruby-cloud-env-prefix=SERVICE_CONTROL", + "ruby-cloud-wrapper-of=v1:0.9", + "ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/", + "ruby-cloud-api-id=servicecontrol.googleapis.com", + "ruby-cloud-api-shortname=servicecontrol", + ], + ruby_cloud_description = "The Service Control API provides control plane functionality to managed services, such as logging, monitoring, and status checks.", + ruby_cloud_title = "Service Control API", + transport = "grpc+rest", +) + +# Open Source package. +ruby_gapic_assembly_pkg( + name = "google-cloud-servicecontrol-ruby", + deps = [ + ":servicecontrol_ruby_wrapper", + ], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/BUILD.bazel index 770b9a3a..3ee92d47 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/BUILD.bazel @@ -1,5 +1,6 @@ # This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel +# https://github.com/googleapis/rules_gapic/tree/master/bazel + # Most of the manual changes to this file will be overwritten. # It's **only** allowed to change the following rule attribute values: # - names of *_gapic_assembly_* rules @@ -7,14 +8,44 @@ # * extra_protoc_parameters # * extra_protoc_file_parameters # The complete list of preserved parameters can be found in the source code. -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) ############################################################################## # Common ############################################################################## load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", + "proto_library_with_info", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_test", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) proto_library( name = "servicecontrol_proto", @@ -31,6 +62,7 @@ proto_library( deps = [ "//google/api:annotations_proto", "//google/api:client_proto", + "//google/api:distribution_proto", "//google/logging/type:type_proto", "//google/rpc:status_proto", "@com_google_protobuf//:any_proto", @@ -48,119 +80,119 @@ proto_library_with_info( ], ) -############################################################################## -# Java -############################################################################## -# load( -# "@com_google_googleapis_imports//:imports.bzl", -# "java_gapic_assembly_gradle_pkg", -# "java_gapic_library", -# "java_gapic_test", -# "java_grpc_library", -# "java_proto_library", -# ) -# java_proto_library( -# name = "servicecontrol_java_proto", -# deps = [":servicecontrol_proto"], -# ) -# java_grpc_library( -# name = "servicecontrol_java_grpc", -# srcs = [":servicecontrol_proto"], -# deps = [":servicecontrol_java_proto"], -# ) -# java_gapic_library( -# name = "servicecontrol_java_gapic", -# srcs = [":servicecontrol_proto_with_info"], -# grpc_service_config = None, -# package = "google.api.servicecontrol.v1", -# test_deps = [ -# ":servicecontrol_java_grpc", -# ], -# deps = [ -# ":servicecontrol_java_proto", -# ], -# ) -# java_gapic_test( -# name = "servicecontrol_java_gapic_test_suite", -# test_classes = [ -# ], -# runtime_deps = [":servicecontrol_java_gapic_test"], -# ) -# # Open Source Packages -# java_gapic_assembly_gradle_pkg( -# name = "google-cloud-api-servicecontrol-v1-java", -# deps = [ -# ":servicecontrol_java_gapic", -# ":servicecontrol_java_grpc", -# ":servicecontrol_java_proto", -# ":servicecontrol_proto", -# ], -# ) -############################################################################## -# Go -############################################################################## -# load( -# "@com_google_googleapis_imports//:imports.bzl", -# "go_gapic_assembly_pkg", -# "go_gapic_library", -# "go_proto_library", -# "go_test", -# ) -# go_proto_library( -# name = "servicecontrol_go_proto", -# compilers = ["@io_bazel_rules_go//proto:go_grpc"], -# importpath = "google.golang.org/genproto/googleapis/api/servicecontrol/v1", -# protos = [":servicecontrol_proto"], -# deps = [ -# "//google/api:annotations_go_proto", -# "//google/logging/type:type_proto", -# "//google/rpc:status_go_proto", -# ], -# ) -# go_gapic_library( -# name = "servicecontrol_go_gapic", -# srcs = [":servicecontrol_proto_with_info"], -# grpc_service_config = None, -# importpath = "cloud.google.com/go/api/servicecontrol/apiv1;servicecontrol", -# service_yaml = "servicecontrol.yaml", -# deps = [ -# ":servicecontrol_go_proto", -# "@io_bazel_rules_go//proto/wkt:duration_go_proto", -# ], -# ) -# go_test( -# name = "servicecontrol_go_gapic_test", -# srcs = [":servicecontrol_go_gapic_srcjar_test"], -# embed = [":servicecontrol_go_gapic"], -# importpath = "cloud.google.com/go/api/servicecontrol/apiv1", -# ) -# # Open Source Packages -# go_gapic_assembly_pkg( -# name = "gapi-cloud-api-servicecontrol-v1-go", -# deps = [ -# ":servicecontrol_go_gapic", -# ":servicecontrol_go_gapic_srcjar-test.srcjar", -# ":servicecontrol_go_proto", -# ], -# ) -############################################################################## -# Python -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "py_gapic_assembly_pkg", - "py_gapic_library", +java_proto_library( + name = "servicecontrol_java_proto", + deps = [":servicecontrol_proto"], +) + +java_grpc_library( + name = "servicecontrol_java_grpc", + srcs = [":servicecontrol_proto"], + deps = [":servicecontrol_java_proto"], +) + +java_gapic_library( + name = "servicecontrol_java_gapic", + srcs = [":servicecontrol_proto_with_info"], + grpc_service_config = "servicecontrol_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + test_deps = [ + ":servicecontrol_java_grpc", + ], + transport = "grpc+rest", + deps = [ + ":servicecontrol_java_proto", + ], +) + +java_gapic_test( + name = "servicecontrol_java_gapic_test_suite", + test_classes = [ + "com.google.api.servicecontrol.v1.QuotaControllerClientHttpJsonTest", + "com.google.api.servicecontrol.v1.QuotaControllerClientTest", + "com.google.api.servicecontrol.v1.ServiceControllerClientHttpJsonTest", + "com.google.api.servicecontrol.v1.ServiceControllerClientTest", + ], + runtime_deps = [":servicecontrol_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-api-servicecontrol-v1-java", + include_samples = True, + transport = "grpc+rest", + deps = [ + ":servicecontrol_java_gapic", + ":servicecontrol_java_grpc", + ":servicecontrol_java_proto", + ":servicecontrol_proto", + ], +) + +go_proto_library( + name = "servicecontrol_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb", + protos = [":servicecontrol_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/api:distribution_go_proto", + "//google/logging/type:type_go_proto", + "//google/rpc:status_go_proto", + ], +) + +go_gapic_library( + name = "servicecontrol_go_gapic", + srcs = [":servicecontrol_proto_with_info"], + grpc_service_config = "servicecontrol_grpc_service_config.json", + importpath = "cloud.google.com/go/servicecontrol/apiv1;servicecontrol", + metadata = True, + release_level = "ga", + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", + deps = [ + ":servicecontrol_go_proto", + "@io_bazel_rules_go//proto/wkt:duration_go_proto", + ], +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-api-servicecontrol-v1-go", + deps = [ + ":servicecontrol_go_gapic", + ":servicecontrol_go_gapic_srcjar-metadata.srcjar", + ":servicecontrol_go_gapic_srcjar-snippets.srcjar", + ":servicecontrol_go_gapic_srcjar-test.srcjar", + ":servicecontrol_go_proto", + ], ) py_gapic_library( name = "servicecontrol_py_gapic", srcs = [":servicecontrol_proto"], - grpc_service_config = None, + grpc_service_config = "servicecontrol_grpc_service_config.json", opt_args = [ - "warehouse-package-name=google-cloud-service-control", - "python-gapic-namespace=google.cloud", "python-gapic-name=servicecontrol", - ] + "python-gapic-namespace=google.cloud", + "warehouse-package-name=google-cloud-service-control", + ], + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", +) + +py_test( + name = "servicecontrol_py_gapic_test", + srcs = [ + "servicecontrol_py_gapic_pytest.py", + "servicecontrol_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":servicecontrol_py_gapic"], ) # Open Source Packages @@ -171,35 +203,20 @@ py_gapic_assembly_pkg( ], ) -############################################################################## -# PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", -) - php_proto_library( name = "servicecontrol_php_proto", deps = [":servicecontrol_proto"], ) -php_grpc_library( - name = "servicecontrol_php_grpc", - srcs = [":servicecontrol_proto"], - deps = [":servicecontrol_php_proto"], -) - php_gapic_library( name = "servicecontrol_php_gapic", srcs = [":servicecontrol_proto_with_info"], - grpc_service_config = None, + grpc_service_config = "servicecontrol_grpc_service_config.json", + migration_mode = "MIGRATING", + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", deps = [ - ":servicecontrol_php_grpc", ":servicecontrol_php_proto", ], ) @@ -209,28 +226,20 @@ php_gapic_assembly_pkg( name = "google-cloud-api-servicecontrol-v1-php", deps = [ ":servicecontrol_php_gapic", - ":servicecontrol_php_grpc", ":servicecontrol_php_proto", ], ) -############################################################################## -# Node.js -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - nodejs_gapic_library( name = "servicecontrol_nodejs_gapic", package_name = "@google-cloud/service-control", src = ":servicecontrol_proto_with_info", extra_protoc_parameters = ["metadata"], - grpc_service_config = None, + grpc_service_config = "servicecontrol_grpc_service_config.json", package = "google.api.servicecontrol.v1", + rest_numeric_enums = True, service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", deps = [], ) @@ -239,20 +248,11 @@ nodejs_gapic_assembly_pkg( deps = [ ":servicecontrol_nodejs_gapic", ":servicecontrol_proto", + ## DO NOT CHANGE: Owlbot add dependency logging type protos. + "//google/logging/type:type_proto", ], ) -############################################################################## -# Ruby -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "ruby_cloud_gapic_library", - "ruby_gapic_assembly_pkg", - "ruby_grpc_library", - "ruby_proto_library", -) - ruby_proto_library( name = "servicecontrol_ruby_proto", deps = [":servicecontrol_proto"], @@ -268,14 +268,18 @@ ruby_cloud_gapic_library( name = "servicecontrol_ruby_gapic", srcs = [":servicecontrol_proto_with_info"], extra_protoc_parameters = [ - "ruby-cloud-gem-name=google-cloud-service_control-v1", - "ruby-cloud-env-prefix=SERVICE_CONTROL", - "ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/", "ruby-cloud-api-id=servicecontrol.googleapis.com", "ruby-cloud-api-shortname=servicecontrol", + "ruby-cloud-env-prefix=SERVICE_CONTROL", + "ruby-cloud-gem-name=google-cloud-service_control-v1", + "ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/", ], + grpc_service_config = "servicecontrol_grpc_service_config.json", + rest_numeric_enums = True, ruby_cloud_description = "The Service Control API provides control plane functionality to managed services, such as logging, monitoring, and status checks.", ruby_cloud_title = "Service Control API V1", + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", deps = [ ":servicecontrol_ruby_grpc", ":servicecontrol_ruby_proto", @@ -292,17 +296,6 @@ ruby_gapic_assembly_pkg( ], ) -############################################################################## -# C# -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "csharp_gapic_assembly_pkg", - "csharp_gapic_library", - "csharp_grpc_library", - "csharp_proto_library", -) - csharp_proto_library( name = "servicecontrol_csharp_proto", deps = [":servicecontrol_proto"], @@ -318,7 +311,10 @@ csharp_gapic_library( name = "servicecontrol_csharp_gapic", srcs = [":servicecontrol_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", - grpc_service_config = None, + grpc_service_config = "servicecontrol_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", deps = [ ":servicecontrol_csharp_grpc", ":servicecontrol_csharp_proto", @@ -334,7 +330,15 @@ csharp_gapic_assembly_pkg( ":servicecontrol_csharp_proto", ], ) -############################################################################## -# C++ -############################################################################## -# Put your C++ rules here + +cc_proto_library( + name = "servicecontrol_cc_proto", + deps = [":servicecontrol_proto"], +) + +cc_grpc_library( + name = "servicecontrol_cc_grpc", + srcs = [":servicecontrol_proto"], + grpc_only = True, + deps = [":servicecontrol_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/check_error.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/check_error.proto index b165ca71..e9a619eb 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/check_error.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/check_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ import "google/rpc/status.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceControl.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; +option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb"; option java_multiple_files = true; option java_outer_classname = "CheckErrorProto"; option java_package = "com.google.api.servicecontrol.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/distribution.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/distribution.proto index 91f83387..ce4d3465 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/distribution.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/distribution.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,9 +16,11 @@ syntax = "proto3"; package google.api.servicecontrol.v1; +import "google/api/distribution.proto"; + option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceControl.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; +option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb"; option java_multiple_files = true; option java_outer_classname = "DistributionProto"; option java_package = "com.google.api.servicecontrol.v1"; @@ -29,10 +31,10 @@ option ruby_package = "Google::Cloud::ServiceControl::V1"; // points. It contains the size of the population of sample points plus // additional optional information: // -// - the arithmetic mean of the samples -// - the minimum and maximum of the samples -// - the sum-squared-deviation of the samples, used to compute variance -// - a histogram of the values of the sample points +// * the arithmetic mean of the samples +// * the minimum and maximum of the samples +// * the sum-squared-deviation of the samples, used to compute variance +// * a histogram of the values of the sample points message Distribution { // Describing buckets with constant width. message LinearBuckets { @@ -158,4 +160,7 @@ message Distribution { // Buckets with arbitrary user-provided width. ExplicitBuckets explicit_buckets = 9; } + + // Example points. Must be in increasing order of `value` field. + repeated google.api.Distribution.Exemplar exemplars = 10; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/http_request.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/http_request.proto index ce1d5fb4..3102e3b0 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/http_request.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/http_request.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ package google.api.servicecontrol.v1; import "google/protobuf/duration.proto"; option csharp_namespace = "Google.Cloud.ServiceControl.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; +option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb"; option java_multiple_files = true; option java_outer_classname = "HttpRequestProto"; option java_package = "com.google.api.servicecontrol.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/log_entry.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/log_entry.proto index c89f4617..782dd42e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/log_entry.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/log_entry.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.ServiceControl.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; +option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb"; option java_multiple_files = true; option java_outer_classname = "LogEntryProto"; option java_package = "com.google.api.servicecontrol.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/metric_value.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/metric_value.proto index e160e795..701749c1 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/metric_value.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/metric_value.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceControl.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; +option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb"; option java_multiple_files = true; option java_outer_classname = "MetricValueSetProto"; option java_package = "com.google.api.servicecontrol.v1"; @@ -39,11 +39,13 @@ message MetricValue { // The start of the time period over which this metric value's measurement // applies. The time period has different semantics for different metric // types (cumulative, delta, and gauge). See the metric definition - // documentation in the service configuration for details. + // documentation in the service configuration for details. If not specified, + // [google.api.servicecontrol.v1.Operation.start_time][google.api.servicecontrol.v1.Operation.start_time] will be used. google.protobuf.Timestamp start_time = 2; // The end of the time period over which this metric value's measurement - // applies. + // applies. If not specified, + // [google.api.servicecontrol.v1.Operation.end_time][google.api.servicecontrol.v1.Operation.end_time] will be used. google.protobuf.Timestamp end_time = 3; // The value. The type of value used in the request must diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/operation.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/operation.proto index 4bc67177..d01d95e0 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/operation.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/operation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceControl.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; +option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb"; option java_multiple_files = true; option java_outer_classname = "OperationProto"; option java_package = "com.google.api.servicecontrol.v1"; @@ -34,13 +34,13 @@ option ruby_package = "Google::Cloud::ServiceControl::V1"; message Operation { // Defines the importance of the data contained in the operation. enum Importance { - // The API implementation may cache and aggregate the data. - // The data may be lost when rare and unexpected system failures occur. + // Allows data caching, batching, and aggregation. It provides + // higher performance with higher data loss risk. LOW = 0; - // The API implementation doesn't cache and aggregate the data. - // If the method returns successfully, it's guaranteed that the data has - // been persisted in durable storage. + // Disables data aggregation to minimize data loss. It is for operations + // that contains significant monetary value or audit trail. This feature + // only applies to the client libraries. HIGH = 1; } @@ -76,8 +76,10 @@ message Operation { google.protobuf.Timestamp start_time = 4; // End time of the operation. - // Required when the operation is used in [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report], - // but optional when the operation is used in [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check]. + // Required when the operation is used in + // [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report], + // but optional when the operation is used in + // [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check]. google.protobuf.Timestamp end_time = 5; // Labels describing the operation. Only the following labels are allowed: diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/quota_controller.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/quota_controller.proto index 278d38e1..d4483766 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/quota_controller.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/quota_controller.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,18 +18,19 @@ package google.api.servicecontrol.v1; import "google/api/annotations.proto"; import "google/api/servicecontrol/v1/metric_value.proto"; +import "google/rpc/status.proto"; import "google/api/client.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceControl.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; +option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb"; option java_multiple_files = true; option java_outer_classname = "QuotaControllerProto"; option java_package = "com.google.api.servicecontrol.v1"; option php_namespace = "Google\\Cloud\\ServiceControl\\V1"; option ruby_package = "Google::Cloud::ServiceControl::V1"; -// [Google Quota Control API](https://cloud.google.com/service-control/overview) +// [Google Quota Control API](/service-control/overview) // // Allows clients to allocate and release quota against a [managed // service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService). @@ -115,7 +116,7 @@ message QuotaOperation { // The operation allocates quota for the amount specified in the service // configuration or specified using the quota metrics. If the requested // amount is higher than the available quota, request does not fail and - // remaining quota would become negative (going over the limit) + // remaining quota would become negative (going over the limit). // Not supported for Rate Quota. ADJUST_ONLY = 5; } @@ -139,6 +140,7 @@ message QuotaOperation { // (1) the quota operation is performed on non-API resources. // (2) quota_metrics is set because the caller is doing quota override. // + // // Example of an RPC method name: // google.example.library.v1.LibraryService.CreateShelf string method_name = 2; @@ -236,4 +238,8 @@ message QuotaError { // Free-form text that provides details on the cause of the error. string description = 3; + + // Contains additional information about the quota error. + // If available, `status.code` will be non zero. + google.rpc.Status status = 4; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/service_controller.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/service_controller.proto index 6916853f..2bc17c73 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/service_controller.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/service_controller.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,15 +17,14 @@ syntax = "proto3"; package google.api.servicecontrol.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/api/servicecontrol/v1/check_error.proto"; import "google/api/servicecontrol/v1/operation.proto"; -import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -import "google/api/client.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ServiceControl.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; +option go_package = "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb"; option java_multiple_files = true; option java_outer_classname = "ServiceControllerProto"; option java_package = "com.google.api.servicecontrol.v1"; @@ -33,7 +32,7 @@ option objc_class_prefix = "GASC"; option php_namespace = "Google\\Cloud\\ServiceControl\\V1"; option ruby_package = "Google::Cloud::ServiceControl::V1"; -// [Google Service Control API](https://cloud.google.com/service-control/overview) +// [Google Service Control API](/service-control/overview) // // Lets clients check and report operations against a [managed // service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService). @@ -54,7 +53,8 @@ service ServiceController { // propagation, therefore callers MUST NOT depend on the `Check` method having // the latest policy information. // - // NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the size limit of 64KB. + // NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has + // the size limit (wire-format byte size) of 1MB. // // This method requires the `servicemanagement.services.check` permission // on the specified service. For more information, see @@ -75,8 +75,8 @@ service ServiceController { // the aggregation time window to avoid data loss risk more than 0.01% // for business and compliance reasons. // - // NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has the size limit (wire-format byte size) of - // 1MB. + // NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has + // the size limit (wire-format byte size) of 1MB. // // This method requires the `servicemanagement.services.report` permission // on the specified service. For more information, see @@ -121,6 +121,11 @@ message CheckResponse { // Consumer info of this check. ConsumerInfo consumer_info = 2; + + // The unique id of the api key in the format of "apikey:". + // This field will be populated when the consumer passed to Service Control + // is an API key and all the API key related validations are successful. + string api_key_uid = 5; } // `ConsumerInfo` provides information about the consumer. @@ -163,8 +168,9 @@ message CheckResponse { int64 consumer_number = 3; } - // The same operation_id value used in the [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. - // Used for logging and diagnostics purposes. + // The same operation_id value used in the + // [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging + // and diagnostics purposes. string operation_id = 1; // Indicate the decision of the check. @@ -203,7 +209,8 @@ message ReportRequest { // // There is no limit on the number of operations in the same ReportRequest, // however the ReportRequest size should be no larger than 1MB. See - // [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] for partial failure behavior. + // [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] + // for partial failure behavior. repeated Operation operations = 2; // Specifies which version of service config should be used to process the @@ -216,12 +223,16 @@ message ReportRequest { // Response message for the Report method. message ReportResponse { - // Represents the processing error of one [Operation][google.api.servicecontrol.v1.Operation] in the request. + // Represents the processing error of one + // [Operation][google.api.servicecontrol.v1.Operation] in the request. message ReportError { - // The [Operation.operation_id][google.api.servicecontrol.v1.Operation.operation_id] value from the request. + // The + // [Operation.operation_id][google.api.servicecontrol.v1.Operation.operation_id] + // value from the request. string operation_id = 1; - // Details of the error when processing the [Operation][google.api.servicecontrol.v1.Operation]. + // Details of the error when processing the + // [Operation][google.api.servicecontrol.v1.Operation]. google.rpc.Status status = 2; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/servicecontrol.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/servicecontrol.yaml index a1cad564..7a2b5685 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/servicecontrol.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/servicecontrol.yaml @@ -1,5 +1,5 @@ type: google.api.Service -config_version: 2 +config_version: 3 name: servicecontrol.googleapis.com title: Service Control API @@ -9,8 +9,8 @@ apis: documentation: summary: |- - Provides control plane functionality to managed services, such as logging, - monitoring, and status checks. + Provides admission control and telemetry reporting for services integrated + with Service Infrastructure. overview: |- Google Service Control provides control plane functionality to managed services, such as logging, monitoring, and status checks. This page diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/servicecontrol_grpc_service_config.json b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/servicecontrol_grpc_service_config.json new file mode 100644 index 00000000..e5606616 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v1/servicecontrol_grpc_service_config.json @@ -0,0 +1,29 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.api.servicecontrol.v1.ServiceController", + "method": "Check" + } + ], + "timeout": "5s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + }, + { + "name": [ + { + "service": "google.api.servicecontrol.v1.ServiceController", + "method": "Report" + } + ], + "timeout": "16s" + } + ] +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/BUILD.bazel new file mode 100644 index 00000000..432b0608 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/BUILD.bazel @@ -0,0 +1,325 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", + "proto_library_with_info", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_test", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "servicecontrol_proto", + srcs = [ + "service_controller.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/rpc:status_proto", + "//google/rpc/context:attribute_context_proto", + ], +) + +proto_library_with_info( + name = "servicecontrol_proto_with_info", + deps = [ + ":servicecontrol_proto", + "//google/cloud:common_resources_proto", + ], +) + +java_proto_library( + name = "servicecontrol_java_proto", + deps = [":servicecontrol_proto"], +) + +java_grpc_library( + name = "servicecontrol_java_grpc", + srcs = [":servicecontrol_proto"], + deps = [":servicecontrol_java_proto"], +) + +java_gapic_library( + name = "servicecontrol_java_gapic", + srcs = [":servicecontrol_proto_with_info"], + gapic_yaml = None, + grpc_service_config = "servicecontrol_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + test_deps = [ + ":servicecontrol_java_grpc", + ], + transport = "grpc+rest", + deps = [ + ":servicecontrol_java_proto", + "//google/api:api_java_proto", + "//google/rpc/context:attribute_context_java_proto", + ], +) + +java_gapic_test( + name = "servicecontrol_java_gapic_test_suite", + test_classes = [ + "com.google.api.servicecontrol.v2.ServiceControllerClientHttpJsonTest", + "com.google.api.servicecontrol.v2.ServiceControllerClientTest", + ], + runtime_deps = [":servicecontrol_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-api-servicecontrol-v2-java", + include_samples = True, + transport = "grpc+rest", + deps = [ + ":servicecontrol_java_gapic", + ":servicecontrol_java_grpc", + ":servicecontrol_java_proto", + ":servicecontrol_proto", + ], +) + +go_proto_library( + name = "servicecontrol_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/api/servicecontrol/v2", + protos = [":servicecontrol_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/rpc:status_go_proto", + "//google/rpc/context:attribute_context_go_proto", + ], +) + +go_gapic_library( + name = "servicecontrol_go_gapic", + srcs = [":servicecontrol_proto_with_info"], + grpc_service_config = "servicecontrol_grpc_service_config.json", + importpath = "cloud.google.com/go/api/servicecontrol/apiv2;servicecontrol", + metadata = True, + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", + deps = [ + ":servicecontrol_go_proto", + ], +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-api-servicecontrol-v2-go", + deps = [ + ":servicecontrol_go_gapic", + ":servicecontrol_go_gapic_srcjar-metadata.srcjar", + ":servicecontrol_go_gapic_srcjar-snippets.srcjar", + ":servicecontrol_go_gapic_srcjar-test.srcjar", + ":servicecontrol_go_proto", + ], +) + +py_gapic_library( + name = "servicecontrol_py_gapic", + srcs = [":servicecontrol_proto"], + grpc_service_config = "servicecontrol_grpc_service_config.json", + opt_args = [ + "python-gapic-name=servicecontrol", + "python-gapic-namespace=google.cloud", + "warehouse-package-name=google-cloud-service-control", + ], + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", +) + +py_test( + name = "servicecontrol_py_gapic_test", + srcs = [ + "servicecontrol_py_gapic_pytest.py", + "servicecontrol_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":servicecontrol_py_gapic"], +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "api-servicecontrol-v2-py", + deps = [ + ":servicecontrol_py_gapic", + ], +) + +php_proto_library( + name = "servicecontrol_php_proto", + deps = [":servicecontrol_proto"], +) + +php_gapic_library( + name = "servicecontrol_php_gapic", + srcs = [":servicecontrol_proto_with_info"], + grpc_service_config = "servicecontrol_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", + deps = [":servicecontrol_php_proto"], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-api-servicecontrol-v2-php", + deps = [ + ":servicecontrol_php_gapic", + ":servicecontrol_php_proto", + ], +) + +nodejs_gapic_library( + name = "servicecontrol_nodejs_gapic", + package_name = "@google-cloud/servicecontrol", + src = ":servicecontrol_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "servicecontrol_grpc_service_config.json", + package = "google.api.servicecontrol.v2", + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "api-servicecontrol-v2-nodejs", + deps = [ + ":servicecontrol_nodejs_gapic", + ":servicecontrol_proto", + ], +) + +ruby_proto_library( + name = "servicecontrol_ruby_proto", + deps = [":servicecontrol_proto"], +) + +ruby_grpc_library( + name = "servicecontrol_ruby_grpc", + srcs = [":servicecontrol_proto"], + deps = [":servicecontrol_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "servicecontrol_ruby_gapic", + srcs = [":servicecontrol_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-api-id=servicecontrol.googleapis.com", + "ruby-cloud-api-shortname=servicecontrol", + "ruby-cloud-env-prefix=SERVICE_CONTROL", + "ruby-cloud-gem-name=google-cloud-service_control-v2", + "ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/", + ], + grpc_service_config = "servicecontrol_grpc_service_config.json", + rest_numeric_enums = True, + ruby_cloud_description = "The Service Control API provides control plane functionality to managed services, such as logging, monitoring, and status checks.", + ruby_cloud_title = "Service Control API V2", + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", + deps = [ + ":servicecontrol_ruby_grpc", + ":servicecontrol_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-api-servicecontrol-v2-ruby", + deps = [ + ":servicecontrol_ruby_gapic", + ":servicecontrol_ruby_grpc", + ":servicecontrol_ruby_proto", + ], +) + +csharp_proto_library( + name = "servicecontrol_csharp_proto", + deps = [":servicecontrol_proto"], +) + +csharp_grpc_library( + name = "servicecontrol_csharp_grpc", + srcs = [":servicecontrol_proto"], + deps = [":servicecontrol_csharp_proto"], +) + +csharp_gapic_library( + name = "servicecontrol_csharp_gapic", + srcs = [":servicecontrol_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "servicecontrol_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "servicecontrol.yaml", + transport = "grpc+rest", + deps = [ + ":servicecontrol_csharp_grpc", + ":servicecontrol_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-api-servicecontrol-v2-csharp", + deps = [ + ":servicecontrol_csharp_gapic", + ":servicecontrol_csharp_grpc", + ":servicecontrol_csharp_proto", + ], +) + +cc_proto_library( + name = "servicecontrol_cc_proto", + deps = [":servicecontrol_proto"], +) + +cc_grpc_library( + name = "servicecontrol_cc_grpc", + srcs = [":servicecontrol_proto"], + grpc_only = True, + deps = [":servicecontrol_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/service_controller.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/service_controller.proto new file mode 100644 index 00000000..4258ee76 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/service_controller.proto @@ -0,0 +1,196 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.api.servicecontrol.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/rpc/context/attribute_context.proto"; +import "google/rpc/status.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceControl.V2"; +option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v2;servicecontrol"; +option java_multiple_files = true; +option java_outer_classname = "ServiceControllerProto"; +option java_package = "com.google.api.servicecontrol.v2"; +option objc_class_prefix = "GASC"; +option php_namespace = "Google\\Cloud\\ServiceControl\\V2"; +option ruby_package = "Google::Cloud::ServiceControl::V2"; + +// [Service Control API +// v2](https://cloud.google.com/service-infrastructure/docs/service-control/access-control) +// +// Private Preview. This feature is only available for approved services. +// +// This API provides admission control and telemetry reporting for services +// that are integrated with [Service +// Infrastructure](https://cloud.google.com/service-infrastructure). +service ServiceController { + option (google.api.default_host) = "servicecontrol.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/servicecontrol"; + + // Private Preview. This feature is only available for approved services. + // + // This method provides admission control for services that are integrated + // with [Service + // Infrastructure](https://cloud.google.com/service-infrastructure). It checks + // whether an operation should be allowed based on the service configuration + // and relevant policies. It must be called before the operation is executed. + // For more information, see + // [Admission + // Control](https://cloud.google.com/service-infrastructure/docs/admission-control). + // + // NOTE: The admission control has an expected policy propagation delay of + // 60s. The caller **must** not depend on the most recent policy changes. + // + // NOTE: The admission control has a hard limit of 1 referenced resources + // per call. If an operation refers to more than 1 resources, the caller + // must call the Check method multiple times. + // + // This method requires the `servicemanagement.services.check` permission + // on the specified service. For more information, see + // [Service Control API Access + // Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control). + rpc Check(CheckRequest) returns (CheckResponse) { + option (google.api.http) = { + post: "/v2/services/{service_name}:check" + body: "*" + }; + } + + // Private Preview. This feature is only available for approved services. + // + // This method provides telemetry reporting for services that are integrated + // with [Service + // Infrastructure](https://cloud.google.com/service-infrastructure). It + // reports a list of operations that have occurred on a service. It must be + // called after the operations have been executed. For more information, see + // [Telemetry + // Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting). + // + // NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB + // per Report call. It is recommended to have no more than 100 operations per + // call. + // + // This method requires the `servicemanagement.services.report` permission + // on the specified service. For more information, see + // [Service Control API Access + // Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control). + rpc Report(ReportRequest) returns (ReportResponse) { + option (google.api.http) = { + post: "/v2/services/{service_name}:report" + body: "*" + }; + } +} + +// Request message for the Check method. +message CheckRequest { + // The service name as specified in its service configuration. For example, + // `"pubsub.googleapis.com"`. + // + // See + // [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) + // for the definition of a service name. + string service_name = 1; + + // Specifies the version of the service configuration that should be used to + // process the request. Must not be empty. Set this field to 'latest' to + // specify using the latest configuration. + string service_config_id = 2; + + // Describes attributes about the operation being executed by the service. + google.rpc.context.AttributeContext attributes = 3; + + // Describes the resources and the policies applied to each resource. + repeated ResourceInfo resources = 4; + + // Optional. Contains a comma-separated list of flags. + string flags = 5; +} + +// Describes a resource referenced in the request. +message ResourceInfo { + // The name of the resource referenced in the request. + string name = 1; + + // The resource type in the format of "{service}/{kind}". + string type = 2; + + // The resource permission needed for this request. + // The format must be "{service}/{plural}.{verb}". + string permission = 3; + + // Optional. The identifier of the container of this resource. For Google + // Cloud APIs, the resource container must be one of the following formats: + // - `projects/` + // - `folders/` + // - `organizations/` + // For the policy enforcement on the container level (VPCSC and Location + // Policy check), this field takes precedence on the container extracted from + // name when presents. + string container = 4; + + // Optional. The location of the resource. The value must be a valid zone, + // region or multiregion. For example: "europe-west4" or + // "northamerica-northeast1-a" + string location = 5; +} + +// Response message for the Check method. +message CheckResponse { + // Operation is allowed when this field is not set. Any non-'OK' status + // indicates a denial; [google.rpc.Status.details][google.rpc.Status.details] + // would contain additional details about the denial. + google.rpc.Status status = 1; + + // Returns a set of request contexts generated from the `CheckRequest`. + map headers = 2; +} + +// Request message for the Report method. +message ReportRequest { + // The service name as specified in its service configuration. For example, + // `"pubsub.googleapis.com"`. + // + // See + // [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) + // for the definition of a service name. + string service_name = 1; + + // Specifies the version of the service configuration that should be used to + // process the request. Must not be empty. Set this field to 'latest' to + // specify using the latest configuration. + string service_config_id = 2; + + // Describes the list of operations to be reported. Each operation is + // represented as an AttributeContext, and contains all attributes around an + // API access. + repeated google.rpc.context.AttributeContext operations = 3; +} + +// Response message for the Report method. +// If the request contains any invalid data, the server returns an RPC error. +message ReportResponse {} + +// Message containing resource details in a batch mode. +message ResourceInfoList { + // The resource details. + repeated ResourceInfo resources = 1; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/servicecontrol.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/servicecontrol.yaml new file mode 100644 index 00000000..9fd969fd --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/servicecontrol.yaml @@ -0,0 +1,171 @@ +type: google.api.Service +config_version: 3 +name: servicecontrol.googleapis.com +title: Service Control API + +apis: +- name: google.api.servicecontrol.v2.ServiceController + +documentation: + summary: |- + Provides admission control and telemetry reporting for services integrated + with Service Infrastructure. + overview: |- + Google Service Control provides control plane functionality to managed + services, such as logging, monitoring, and status checks. This page + provides an overview of what it does and how it works. + + ## Why use Service Control? + + When you develop a cloud service, you typically start with the business + requirements and the architecture design, then proceed with API definition + and implementation. Before you put your service into production, you + need to deal with many control plane issues: + + * How to control access to your service. + * How to send logging and monitoring data to both consumers and producers. + * How to create and manage dashboards to visualize this data. + * How to automatically scale the control plane components with your + service. + + Service Control is a mature and feature-rich control plane provider + that addresses these needs with high efficiency, high scalability, + and high availability. It provides a simple public API that can be + accessed from anywhere using JSON REST and gRPC clients, so when you move + your service from on-premise to a cloud provider, or from one cloud + provider to another, you don't need to change the control plane provider. + + Services built using Google Cloud Endpoints already take advantage of + Service Control. Cloud Endpoints sends logging and monitoring data + through Google Service Control for every request arriving at its + proxy. If you need to report any additional logging and monitoring data + for your Cloud Endpoints service, you can call the Service Control API + directly from your service. + + The Service Control API definition is open sourced and available on + [GitHub](https://github.com/googleapis/googleapis/tree/master/google/api/servicecontrol). By + changing the DNS name, you can easily use alternative implementations + of the Service Control API. + + ## Architecture + + Google Service Control works with a set of *managed services* and their + *operations* (activities), *checks* whether an operation is allowed to + proceed, and *reports* completed operations. Behind the scenes, it + leverages other + Google Cloud services, such as + [Google Service + Management](https://cloud.google.com/service-infrastructure/docs/service-management/getting-started), [Stackdriver + Logging](https://cloud.google.com/products/operations), and [Stackdriver + Monitoring](https://cloud.google.com/monitoring), while hiding their + complexity from service producers. It enables service + producers to send telemetry data to their consumers. It uses caching, + batching, aggregation, and retries to deliver higher performance and + availability than the individual backend systems it encapsulates. + +
+
+ The overall architecture of a service that uses Google Service
+    Control.
Figure 1: Using Google Service + Control.
+ + The Service Control API provides two methods: + + * + [`services.check`](https://cloud.google.com/service-infrastructure/docs/service-control/reference/rest/v1/services/check), + used for: + * Ensuring valid consumer status + * Validating API keys + * + [`services.report`](https://cloud.google.com/service-infrastructure/docs/service-control/reference/rest/v1/services/report), + used for: + * Sending logs to Stackdriver Logging + * Sending metrics to Stackdriver Monitoring + + We'll look at these in more detail in the rest of this overview. + + ## Managed services + + A [managed + service](https://cloud.google.com/service-infrastructure/docs/service-control/reference/rest/v1/services) is + a network service managed by + [Google Service + Management](https://cloud.google.com/service-infrastructure/docs/service-management/getting-started). Each + managed service has a unique name, such as `example.googleapis.com`, + which must be a valid fully-qualified DNS name, as per RFC 1035. + + For example: + + * Google Cloud Pub/Sub (`pubsub.googleapis.com`) + * Google Cloud Vision (`vision.googleapis.com`) + * Google Cloud Bigtable (`bigtable.googleapis.com`) + * Google Cloud Datastore (`datastore.googleapis.com`) + + Google Service Management manages the lifecycle of each service's + configuration, which is used to customize Google Service Control's + behavior. Service configurations are also used by Google Cloud Console for + displaying APIs and their settings, enabling/disabling APIs, and more. + + ## Operations + + Google Service Control uses the generic concept of an *operation* + to represent the activities of a managed service, such as API calls and + resource usage. Each operation is associated with a managed service and a + specific service consumer, and has a set of properties that describe the + operation, such as the API method name and resource usage amount. For more + information, see the + [Operation + definition](https://cloud.google.com/service-infrastructure/docs/service-control/reference/rest/v1/Operation). ## + Check + + The + [`services.check`](https://cloud.google.com/service-infrastructure/docs/service-control/reference/rest/v1/services/check) method + determines whether an operation should be allowed to proceed for a + managed service. + + For example: + + * Check if the consumer is still active. + * Check if the consumer has enabled the service. + * Check if the API key is still valid. + + By performing multiple checks within a single method call, it provides + better performance, higher reliability, and reduced development cost to + service producers compared to checking with multiple backend systems. + + ## Report + + The + [`services.report`](https://cloud.google.com/service-infrastructure/docs/service-control/reference/rest/v1/services/report) method + reports completed operations for a managed service to backend + systems, such as logging and monitoring. The reported data can be seen in + Google API Console and Google Cloud Console, and retrieved with + appropriate APIs, such as the Stackdriver Logging and Stackdriver + Monitoring APIs. + + ## Next steps + + * Read our [Getting Started + guide](https://cloud.google.com/service-infrastructure/docs/service-control/getting-started) + to find out how to set up and use the Google Service Control API. + +backend: + rules: + - selector: google.api.servicecontrol.v2.ServiceController.Check + deadline: 5.0 + - selector: google.api.servicecontrol.v2.ServiceController.Report + deadline: 5.0 + +authentication: + rules: + - selector: google.api.servicecontrol.v2.ServiceController.Check + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/servicecontrol + - selector: google.api.servicecontrol.v2.ServiceController.Report + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/servicecontrol diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/servicecontrol_grpc_service_config.json b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/servicecontrol_grpc_service_config.json new file mode 100644 index 00000000..a1ebcef0 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicecontrol/v2/servicecontrol_grpc_service_config.json @@ -0,0 +1,20 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.api.servicecontrol.v2.ServiceController", + "method": "Check" + } + ], + "timeout": "5s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + } + ] +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/BUILD.bazel index 1e5b8c2a..41c121b1 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/BUILD.bazel @@ -1 +1,41 @@ -exports_files(glob(["*.yaml"])) \ No newline at end of file +# This build file includes a target for the Ruby wrapper library for +# google-cloud-service_management. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +# Export yaml configs. +exports_files(glob(["*.yaml"])) + +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", +) + +# Generates a Ruby wrapper client for servicemanagement. +# Ruby wrapper clients are versionless, but are generated from source protos +# for a particular service version, v1 in this case. +ruby_cloud_gapic_library( + name = "servicemanagement_ruby_wrapper", + srcs = ["//google/api/servicemanagement/v1:servicemanagement_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-service_management", + "ruby-cloud-env-prefix=SERVICE_MANAGEMENT", + "ruby-cloud-wrapper-of=v1:0.10", + "ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/", + "ruby-cloud-api-id=servicemanagement.googleapis.com", + "ruby-cloud-api-shortname=servicemanagement", + ], + ruby_cloud_description = "Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers.", + ruby_cloud_title = "Service Management", + transport = "grpc+rest", +) + +# Open Source package. +ruby_gapic_assembly_pkg( + name = "google-cloud-servicemanagement-ruby", + deps = [ + ":servicemanagement_ruby_wrapper", + ], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/BUILD.bazel index bf764ccf..f6315e86 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -20,13 +29,10 @@ proto_library( "//google/api:client_proto", "//google/api:config_change_proto", "//google/api:field_behavior_proto", - "//google/api:metric_proto", - "//google/api:quota_proto", "//google/api:service_proto", "//google/longrunning:operations_proto", - "//google/rpc:status_proto", "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:empty_proto", "@com_google_protobuf//:timestamp_proto", ], ) @@ -36,6 +42,7 @@ proto_library_with_info( deps = [ ":servicemanagement_proto", "//google/cloud:common_resources_proto", + "//google/iam/v1:iam_policy_proto", ], ) @@ -67,18 +74,26 @@ java_gapic_library( srcs = [":servicemanagement_proto_with_info"], gapic_yaml = "servicemanagement_gapic.yaml", grpc_service_config = "servicemanagement_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "servicemanagement_v1.yaml", test_deps = [ + "//google/iam/v1:iam_java_grpc", ":servicemanagement_java_grpc", ], + transport = "grpc+rest", deps = [ ":servicemanagement_java_proto", "//google/api:api_java_proto", + "//google/iam/v1:iam_java_proto", ], ) java_gapic_test( name = "servicemanagement_java_gapic_test_suite", test_classes = [ + # This test is temporarily disabled due to the issue: + # https://github.com/googleapis/sdk-platform-java/issues/1780 + # "com.google.cloud.api.servicemanagement.v1.ServiceManagerClientHttpJsonTest", "com.google.cloud.api.servicemanagement.v1.ServiceManagerClientTest", ], runtime_deps = [":servicemanagement_java_gapic_test"], @@ -87,6 +102,8 @@ java_gapic_test( # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-cloud-api-servicemanagement-v1-java", + include_samples = True, + transport = "grpc+rest", deps = [ ":servicemanagement_java_gapic", ":servicemanagement_java_grpc", @@ -103,21 +120,18 @@ load( "go_gapic_assembly_pkg", "go_gapic_library", "go_proto_library", - "go_test", ) go_proto_library( name = "servicemanagement_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/api/servicemanagement/v1", + importpath = "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb", protos = [":servicemanagement_proto"], deps = [ "//google/api:annotations_go_proto", "//google/api:configchange_go_proto", - "//google/api:metric_go_proto", "//google/api:serviceconfig_go_proto", "//google/longrunning:longrunning_go_proto", - "//google/rpc:status_go_proto", ], ) @@ -125,30 +139,30 @@ go_gapic_library( name = "servicemanagement_go_gapic", srcs = [":servicemanagement_proto_with_info"], grpc_service_config = "servicemanagement_grpc_service_config.json", - importpath = "cloud.google.com/go/api/servicemanagement/apiv1;servicemanagement", + importpath = "cloud.google.com/go/servicemanagement/apiv1;servicemanagement", + metadata = True, + release_level = "ga", + rest_numeric_enums = True, service_yaml = "servicemanagement_v1.yaml", + transport = "grpc+rest", deps = [ ":servicemanagement_go_proto", "//google/api:serviceconfig_go_proto", + "//google/iam/v1:iam_go_proto", "//google/longrunning:longrunning_go_proto", - "@com_google_cloud_go//longrunning:go_default_library", - "@com_google_cloud_go//longrunning/autogen:go_default_library", + "@com_google_cloud_go_longrunning//:go_default_library", + "@com_google_cloud_go_longrunning//autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", ], ) -go_test( - name = "servicemanagement_go_gapic_test", - srcs = [":servicemanagement_go_gapic_srcjar_test"], - embed = [":servicemanagement_go_gapic"], - importpath = "cloud.google.com/go/api/servicemanagement/apiv1", -) - # Open Source Packages go_gapic_assembly_pkg( name = "gapi-cloud-api-servicemanagement-v1-go", deps = [ ":servicemanagement_go_gapic", + ":servicemanagement_go_gapic_srcjar-metadata.srcjar", + ":servicemanagement_go_gapic_srcjar-snippets.srcjar", ":servicemanagement_go_gapic_srcjar-test.srcjar", ":servicemanagement_go_proto", ], @@ -161,6 +175,7 @@ load( "@com_google_googleapis_imports//:imports.bzl", "py_gapic_assembly_pkg", "py_gapic_library", + "py_test", ) py_gapic_library( @@ -168,10 +183,26 @@ py_gapic_library( srcs = [":servicemanagement_proto"], grpc_service_config = "servicemanagement_grpc_service_config.json", opt_args = [ - "warehouse-package-name=google-cloud-service-management", - "python-gapic-namespace=google.cloud", "python-gapic-name=servicemanagement", - ] + "python-gapic-namespace=google.cloud", + "warehouse-package-name=google-cloud-service-management", + ], + rest_numeric_enums = True, + service_yaml = "servicemanagement_v1.yaml", + transport = "grpc+rest", + deps = [ + "//google/iam/v1:iam_policy_py_proto", + ], +) + +py_test( + name = "servicemanagement_py_gapic_test", + srcs = [ + "servicemanagement_py_gapic_pytest.py", + "servicemanagement_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":servicemanagement_py_gapic"], ) # Open Source Packages @@ -184,14 +215,12 @@ py_gapic_assembly_pkg( ############################################################################## # PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", ) php_proto_library( @@ -199,19 +228,15 @@ php_proto_library( deps = [":servicemanagement_proto"], ) -php_grpc_library( - name = "servicemanagement_php_grpc", - srcs = [":servicemanagement_proto"], - deps = [":servicemanagement_php_proto"], -) - php_gapic_library( name = "servicemanagement_php_gapic", srcs = [":servicemanagement_proto_with_info"], grpc_service_config = "servicemanagement_grpc_service_config.json", + migration_mode = "MIGRATING", + rest_numeric_enums = True, service_yaml = "servicemanagement_v1.yaml", + transport = "grpc+rest", deps = [ - ":servicemanagement_php_grpc", ":servicemanagement_php_proto", ], ) @@ -221,7 +246,6 @@ php_gapic_assembly_pkg( name = "google-cloud-api-servicemanagement-v1-php", deps = [ ":servicemanagement_php_gapic", - ":servicemanagement_php_grpc", ":servicemanagement_php_proto", ], ) @@ -242,7 +266,9 @@ nodejs_gapic_library( extra_protoc_parameters = ["metadata"], grpc_service_config = "servicemanagement_grpc_service_config.json", package = "google.api.servicemanagement.v1", + rest_numeric_enums = True, service_yaml = "servicemanagement_v1.yaml", + transport = "grpc+rest", deps = [], ) @@ -280,14 +306,18 @@ ruby_cloud_gapic_library( name = "servicemanagement_ruby_gapic", srcs = [":servicemanagement_proto_with_info"], extra_protoc_parameters = [ - "ruby-cloud-gem-name=google-cloud-service_management-v1", - "ruby-cloud-env-prefix=SERVICE_MANAGEMENT", - "ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/", "ruby-cloud-api-id=servicemanagement.googleapis.com", "ruby-cloud-api-shortname=servicemanagement", + "ruby-cloud-env-prefix=SERVICE_MANAGEMENT", + "ruby-cloud-gem-name=google-cloud-service_management-v1", + "ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/", ], + grpc_service_config = "servicemanagement_grpc_service_config.json", + rest_numeric_enums = True, ruby_cloud_description = "Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers.", - ruby_cloud_title = "Service Management API V1", + ruby_cloud_title = "Service Management V1", + service_yaml = "servicemanagement_v1.yaml", + transport = "grpc+rest", deps = [ ":servicemanagement_ruby_grpc", ":servicemanagement_ruby_proto", @@ -317,6 +347,7 @@ load( csharp_proto_library( name = "servicemanagement_csharp_proto", + extra_opts = [], deps = [":servicemanagement_proto"], ) @@ -331,6 +362,9 @@ csharp_gapic_library( srcs = [":servicemanagement_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", grpc_service_config = "servicemanagement_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "servicemanagement_v1.yaml", + transport = "grpc+rest", deps = [ ":servicemanagement_csharp_grpc", ":servicemanagement_csharp_proto", @@ -350,4 +384,20 @@ csharp_gapic_assembly_pkg( ############################################################################## # C++ ############################################################################## -# Put your C++ rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "servicemanagement_cc_proto", + deps = [":servicemanagement_proto"], +) + +cc_grpc_library( + name = "servicemanagement_cc_grpc", + srcs = [":servicemanagement_proto"], + grpc_only = True, + deps = [":servicemanagement_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/resources.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/resources.proto index 0d9ed6b5..1719ac8c 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/resources.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,26 +11,17 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; package google.api.servicemanagement.v1; -import "google/api/annotations.proto"; import "google/api/config_change.proto"; import "google/api/field_behavior.proto"; -import "google/api/metric.proto"; -import "google/api/quota.proto"; -import "google/api/service.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/any.proto"; -import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.ServiceManagement.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/servicemanagement/v1;servicemanagement"; +option go_package = "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb;servicemanagementpb"; option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.api.servicemanagement.v1"; @@ -41,7 +32,8 @@ option ruby_package = "Google::Cloud::ServiceManagement::V1"; // The full representation of a Service that is managed by // Google Service Management. message ManagedService { - // The name of the service. See the [overview](https://cloud.google.com/service-management/overview) + // The name of the service. See the + // [overview](https://cloud.google.com/service-infrastructure/docs/overview) // for naming requirements. string service_name = 2; @@ -235,9 +227,7 @@ message Rollout { // Strategy used to delete a service. This strategy is a placeholder only // used by the system generated rollout to delete a service. - message DeleteServiceStrategy { - - } + message DeleteServiceStrategy {} // Status of a Rollout. enum RolloutStatus { @@ -265,8 +255,9 @@ message Rollout { FAILED_ROLLED_BACK = 6; } - // Optional. Unique identifier of this Rollout. Must be no longer than 63 characters - // and only lower case letters, digits, '.', '_' and '-' are allowed. + // Optional. Unique identifier of this Rollout. Must be no longer than 63 + // characters and only lower case letters, digits, '.', '_' and '-' are + // allowed. // // If not specified by client, the server will generate one. The generated id // will have the form of , where "date" is the create diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/servicemanagement_v1.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/servicemanagement_v1.yaml index 43640dd5..0ef9494b 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/servicemanagement_v1.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/servicemanagement_v1.yaml @@ -1,15 +1,16 @@ type: google.api.Service -config_version: 2 +config_version: 3 name: servicemanagement.googleapis.com title: Service Management API apis: - name: google.api.servicemanagement.v1.ServiceManager +- name: google.iam.v1.IAMPolicy +- name: google.longrunning.Operations types: - name: google.api.servicemanagement.v1.ConfigRef - name: google.api.servicemanagement.v1.ConfigSource -- name: google.api.servicemanagement.v1.DisableServiceResponse - name: google.api.servicemanagement.v1.EnableServiceResponse - name: google.api.servicemanagement.v1.OperationMetadata - name: google.api.servicemanagement.v1.Rollout @@ -33,12 +34,12 @@ documentation: support the managed services. If you are a service producer, you can use the Google Service Management - API and [Google Cloud SDK (gcloud)](/sdk) to publish and manage your - services. - Each managed service has a service configuration which declares various - aspects of the service such as its API surface, along with parameters to - configure the supporting backend systems, such as logging and monitoring. - If you build your service using + API and [Google Cloud SDK (gcloud)](https://cloud.google.com/sdk) to + publish and manage your services. Each managed service has a service + configuration which declares various aspects of the service such as its + API surface, along with parameters to configure the supporting + backend + systems, such as logging and monitoring. If you build your service using [Google Cloud Endpoints](https://cloud.google.com/endpoints/), the service configuration will be handled automatically. @@ -54,9 +55,8 @@ documentation: REST URL: `https://servicemanagement.googleapis.com/v1/services/{service-name}`
REST schema is defined - [here](/service-management/reference/rest/v1/services). - - A managed service refers to a network service managed by + [here](https://cloud.google.com/service-management/reference/rest/v1/services). A + managed service refers to a network service managed by Service Management. Each managed service has a unique name, such as `example.googleapis.com`, which must be a valid fully-qualified DNS name, as per RFC 1035. @@ -66,9 +66,7 @@ documentation: services. Service producers can use methods, such as - [services.create](/service-management/reference/rest/v1/services/create), - [services.delete](/service-management/reference/rest/v1/services/delete), - [services.undelete](/service-management/reference/rest/v1/services/undelete), to + [services.create](https://cloud.google.com/service-management/reference/rest/v1/services/create), [services.delete](https://cloud.google.com/service-management/reference/rest/v1/services/delete), [services.undelete](https://cloud.google.com/service-management/reference/rest/v1/services/undelete), to manipulate their managed services. ## Service producers @@ -88,10 +86,9 @@ documentation: REST URL: `https://servicemanagement.googleapis.com/v1/services/{service-name}/configs/{config_id}`
REST schema is defined - [here](/service-management/reference/rest/v1/services.configs). - - Each managed service is described by a service configuration which covers - a wide range of features, including its name, title, RPC API + [here](https://cloud.google.com/service-management/reference/rest/v1/services.configs). Each + managed service is described by a service configuration which covers a + wide range of features, including its name, title, RPC API definitions, REST API definitions, documentation, authentication, and more. @@ -102,8 +99,8 @@ documentation: service configurations, making it possible to easily retrace how a service's configuration evolved over time. Service configurations can be published - using the [services.configs.create](/service-management/reference/rest/v1/services.configs/create) or - [services.configs.submit](/service-management/reference/rest/v1/services.configs/submit) methods. Alternatively, + using the [services.configs.create](https://cloud.google.com/service-management/reference/rest/v1/services.configs/create) or + [services.configs.submit](https://cloud.google.com/service-management/reference/rest/v1/services.configs/submit) methods. Alternatively, `services.configs.submit` allows publishing an [OpenAPI](https://github.com/OAI/OpenAPI-Specification) specification, formerly known as the Swagger Specification, which is automatically @@ -114,9 +111,8 @@ documentation: REST URL: `https://servicemanagement.googleapis.com/v1/services/{service-name}/rollouts/{rollout-id}`
REST schema is defined - [here](/service-management/reference/rest/v1/services.rollouts). - - A `Rollout` defines how Google Service Management should deploy service + [here](https://cloud.google.com/service-management/reference/rest/v1/services.rollouts). A + `Rollout` defines how Google Service Management should deploy service configurations to backend systems and how the configurations take effect at runtime. It lets service producers specify multiple service configuration @@ -137,8 +133,7 @@ documentation: Service Management keeps a history of rollouts so that service producers can undo to previous configuration versions. You can rollback a configuration by initiating a new `Rollout` that clones a previously - submitted - rollout record. + submitted rollout record. rules: - selector: google.iam.v1.IAMPolicy.GetIamPolicy description: |- @@ -150,14 +145,14 @@ documentation: Sets the access control policy on the specified resource. Replaces any existing policy. - Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and - PERMISSION_DENIED + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. - selector: google.iam.v1.IAMPolicy.TestIamPermissions description: |- Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of - permissions, not a NOT_FOUND error. + permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization @@ -166,17 +161,6 @@ documentation: - selector: google.longrunning.Operations.ListOperations description: Lists service operations that match the specified filter in the request. -backend: - rules: - - selector: 'google.api.servicemanagement.v1.ServiceManager.*' - deadline: 10.0 - - selector: google.api.servicemanagement.v1.ServiceManager.CreateServiceConfig - deadline: 20.0 - - selector: 'google.iam.v1.IAMPolicy.*' - deadline: 10.0 - - selector: 'google.longrunning.Operations.*' - deadline: 10.0 - http: rules: - selector: google.iam.v1.IAMPolicy.GetIamPolicy diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/servicemanager.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/servicemanager.proto index c12f7748..971ef649 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/servicemanager.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/servicemanagement/v1/servicemanager.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,10 @@ import "google/api/service.proto"; import "google/api/servicemanagement/v1/resources.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/any.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; +import "google/protobuf/empty.proto"; option csharp_namespace = "Google.Cloud.ServiceManagement.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/servicemanagement/v1;servicemanagement"; +option go_package = "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb;servicemanagementpb"; option java_multiple_files = true; option java_outer_classname = "ServiceManagerProto"; option java_package = "com.google.api.servicemanagement.v1"; @@ -35,7 +34,8 @@ option objc_class_prefix = "GASM"; option php_namespace = "Google\\Cloud\\ServiceManagement\\V1"; option ruby_package = "Google::Cloud::ServiceManagement::V1"; -// [Google Service Management API](https://cloud.google.com/service-management/overview) +// [Google Service Management +// API](https://cloud.google.com/service-infrastructure/docs/overview) service ServiceManager { option (google.api.default_host) = "servicemanagement.googleapis.com"; option (google.api.oauth_scopes) = @@ -49,10 +49,6 @@ service ServiceManager { // Returns all public services. For authenticated users, also returns all // services the calling user has "servicemanagement.services.get" permission // for. - // - // **BETA:** If the caller specifies the `consumer_id`, it returns only the - // services enabled on the consumer. The `consumer_id` must have the format - // of "project:{PROJECT-ID}". rpc ListServices(ListServicesRequest) returns (ListServicesResponse) { option (google.api.http) = { get: "/v1/services" @@ -70,10 +66,18 @@ service ServiceManager { } // Creates a new managed service. - // Please note one producer project can own no more than 20 services. + // + // A managed service is immutable, and is subject to mandatory 30-day + // data retention. You cannot move a service or recreate it within 30 days + // after deletion. + // + // One producer project can own no more than 500 services. For security and + // reliability purposes, a production service should be hosted in a + // dedicated producer project. // // Operation - rpc CreateService(CreateServiceRequest) returns (google.longrunning.Operation) { + rpc CreateService(CreateServiceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/services" body: "service" @@ -87,11 +91,14 @@ service ServiceManager { // Deletes a managed service. This method will change the service to the // `Soft-Delete` state for 30 days. Within this period, service producers may - // call [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] to restore the service. - // After 30 days, the service will be permanently deleted. + // call + // [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] + // to restore the service. After 30 days, the service will be permanently + // deleted. // // Operation - rpc DeleteService(DeleteServiceRequest) returns (google.longrunning.Operation) { + rpc DeleteService(DeleteServiceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/services/{service_name}" }; @@ -108,7 +115,8 @@ service ServiceManager { // last 30 days. // // Operation - rpc UndeleteService(UndeleteServiceRequest) returns (google.longrunning.Operation) { + rpc UndeleteService(UndeleteServiceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/services/{service_name}:undelete" }; @@ -121,7 +129,8 @@ service ServiceManager { // Lists the history of the service configuration for a managed service, // from the newest to the oldest. - rpc ListServiceConfigs(ListServiceConfigsRequest) returns (ListServiceConfigsResponse) { + rpc ListServiceConfigs(ListServiceConfigsRequest) + returns (ListServiceConfigsResponse) { option (google.api.http) = { get: "/v1/services/{service_name}/configs" }; @@ -132,9 +141,7 @@ service ServiceManager { rpc GetServiceConfig(GetServiceConfigRequest) returns (google.api.Service) { option (google.api.http) = { get: "/v1/services/{service_name}/configs/{config_id}" - additional_bindings { - get: "/v1/services/{service_name}/config" - } + additional_bindings { get: "/v1/services/{service_name}/config" } }; option (google.api.method_signature) = "service_name,config_id,view"; } @@ -147,7 +154,8 @@ service ServiceManager { // Only the 100 most recent service configurations and ones referenced by // existing rollouts are kept for each service. The rest will be deleted // eventually. - rpc CreateServiceConfig(CreateServiceConfigRequest) returns (google.api.Service) { + rpc CreateServiceConfig(CreateServiceConfigRequest) + returns (google.api.Service) { option (google.api.http) = { post: "/v1/services/{service_name}/configs" body: "service_config" @@ -161,19 +169,22 @@ service ServiceManager { // Specification). This method stores the source configurations as well as the // generated service configuration. To rollout the service configuration to // other services, - // please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. + // please call + // [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. // // Only the 100 most recent configuration sources and ones referenced by // existing service configurtions are kept for each service. The rest will be // deleted eventually. // // Operation - rpc SubmitConfigSource(SubmitConfigSourceRequest) returns (google.longrunning.Operation) { + rpc SubmitConfigSource(SubmitConfigSourceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/services/{service_name}/configs:submit" body: "*" }; - option (google.api.method_signature) = "service_name,config_source,validate_only"; + option (google.api.method_signature) = + "service_name,config_source,validate_only"; option (google.longrunning.operation_info) = { response_type: "google.api.servicemanagement.v1.SubmitConfigSourceResponse" metadata_type: "google.api.servicemanagement.v1.OperationMetadata" @@ -182,14 +193,16 @@ service ServiceManager { // Lists the history of the service configuration rollouts for a managed // service, from the newest to the oldest. - rpc ListServiceRollouts(ListServiceRolloutsRequest) returns (ListServiceRolloutsResponse) { + rpc ListServiceRollouts(ListServiceRolloutsRequest) + returns (ListServiceRolloutsResponse) { option (google.api.http) = { get: "/v1/services/{service_name}/rollouts" }; option (google.api.method_signature) = "service_name,filter"; } - // Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout]. + // Gets a service configuration + // [rollout][google.api.servicemanagement.v1.Rollout]. rpc GetServiceRollout(GetServiceRolloutRequest) returns (Rollout) { option (google.api.http) = { get: "/v1/services/{service_name}/rollouts/{rollout_id}" @@ -211,7 +224,8 @@ service ServiceManager { // service. The rest will be deleted eventually. // // Operation - rpc CreateServiceRollout(CreateServiceRolloutRequest) returns (google.longrunning.Operation) { + rpc CreateServiceRollout(CreateServiceRolloutRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/services/{service_name}/rollouts" body: "rollout" @@ -234,50 +248,14 @@ service ServiceManager { // If GenerateConfigReportRequest.old_value is not specified, this method // will compare GenerateConfigReportRequest.new_value with the last pushed // service configuration. - rpc GenerateConfigReport(GenerateConfigReportRequest) returns (GenerateConfigReportResponse) { + rpc GenerateConfigReport(GenerateConfigReportRequest) + returns (GenerateConfigReportResponse) { option (google.api.http) = { post: "/v1/services:generateConfigReport" body: "*" }; option (google.api.method_signature) = "new_config,old_config"; } - - // Enables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can be used - // for the project. See - // [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for - // more information. - // - // Operation - rpc EnableService(EnableServiceRequest) returns (google.longrunning.Operation) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/services/{service_name}:enable" - body: "*" - }; - option (google.api.method_signature) = "service_name,consumer_id"; - option (google.longrunning.operation_info) = { - response_type: "google.api.servicemanagement.v1.EnableServiceResponse" - metadata_type: "google.api.servicemanagement.v1.OperationMetadata" - }; - } - - // Disables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can no longer be - // be used for the project. It prevents accidental usage that may cause - // unexpected billing charges or security leaks. - // - // Operation - rpc DisableService(DisableServiceRequest) returns (google.longrunning.Operation) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/services/{service_name}:disable" - body: "*" - }; - option (google.api.method_signature) = "service_name,consumer_id"; - option (google.longrunning.operation_info) = { - response_type: "google.api.servicemanagement.v1.DisableServiceResponse" - metadata_type: "google.api.servicemanagement.v1.OperationMetadata" - }; - } } // Request message for `ListServices` method. @@ -286,7 +264,7 @@ message ListServicesRequest { string producer_project_id = 1; // The max number of items to include in the response list. Page size is 50 - // if not specified. Maximum value is 100. + // if not specified. Maximum value is 500. int32 page_size = 5; // Token identifying which result to start with; returned by a previous list @@ -312,8 +290,8 @@ message ListServicesResponse { // Request message for `GetService` method. message GetServiceRequest { - // Required. The name of the service. See the `ServiceManager` overview for naming - // requirements. For example: `example.googleapis.com`. + // Required. The name of the service. See the `ServiceManager` overview for + // naming requirements. For example: `example.googleapis.com`. string service_name = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -325,15 +303,17 @@ message CreateServiceRequest { // Request message for DeleteService method. message DeleteServiceRequest { - // Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) - // for naming requirements. For example: `example.googleapis.com`. + // Required. The name of the service. See the + // [overview](https://cloud.google.com/service-management/overview) for naming + // requirements. For example: `example.googleapis.com`. string service_name = 1 [(google.api.field_behavior) = REQUIRED]; } // Request message for UndeleteService method. message UndeleteServiceRequest { - // Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) - // for naming requirements. For example: `example.googleapis.com`. + // Required. The name of the service. See the + // [overview](https://cloud.google.com/service-management/overview) for naming + // requirements. For example: `example.googleapis.com`. string service_name = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -356,8 +336,9 @@ message GetServiceConfigRequest { FULL = 1; } - // Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) - // for naming requirements. For example: `example.googleapis.com`. + // Required. The name of the service. See the + // [overview](https://cloud.google.com/service-management/overview) for naming + // requirements. For example: `example.googleapis.com`. string service_name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The id of the service configuration resource. @@ -373,8 +354,9 @@ message GetServiceConfigRequest { // Request message for ListServiceConfigs method. message ListServiceConfigsRequest { - // Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) - // for naming requirements. For example: `example.googleapis.com`. + // Required. The name of the service. See the + // [overview](https://cloud.google.com/service-management/overview) for naming + // requirements. For example: `example.googleapis.com`. string service_name = 1 [(google.api.field_behavior) = REQUIRED]; // The token of the page to retrieve. @@ -396,18 +378,21 @@ message ListServiceConfigsResponse { // Request message for CreateServiceConfig method. message CreateServiceConfigRequest { - // Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) - // for naming requirements. For example: `example.googleapis.com`. + // Required. The name of the service. See the + // [overview](https://cloud.google.com/service-management/overview) for naming + // requirements. For example: `example.googleapis.com`. string service_name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The service configuration resource. - google.api.Service service_config = 2 [(google.api.field_behavior) = REQUIRED]; + google.api.Service service_config = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for SubmitConfigSource method. message SubmitConfigSourceRequest { - // Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) - // for naming requirements. For example: `example.googleapis.com`. + // Required. The name of the service. See the + // [overview](https://cloud.google.com/service-management/overview) for naming + // requirements. For example: `example.googleapis.com`. string service_name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The source configuration for the service. @@ -425,10 +410,12 @@ message SubmitConfigSourceResponse { google.api.Service service_config = 1; } +// // Request message for 'CreateServiceRollout' message CreateServiceRolloutRequest { - // Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) - // for naming requirements. For example: `example.googleapis.com`. + // Required. The name of the service. See the + // [overview](https://cloud.google.com/service-management/overview) for naming + // requirements. For example: `example.googleapis.com`. string service_name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The rollout resource. The `service_name` field is output only. @@ -437,8 +424,9 @@ message CreateServiceRolloutRequest { // Request message for 'ListServiceRollouts' message ListServiceRolloutsRequest { - // Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) - // for naming requirements. For example: `example.googleapis.com`. + // Required. The name of the service. See the + // [overview](https://cloud.google.com/service-management/overview) for naming + // requirements. For example: `example.googleapis.com`. string service_name = 1 [(google.api.field_behavior) = REQUIRED]; // The token of the page to retrieve. @@ -450,12 +438,14 @@ message ListServiceRolloutsRequest { // Required. Use `filter` to return subset of rollouts. // The following filters are supported: - // -- To limit the results to only those in - // status (google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS', - // use filter='status=SUCCESS' - // -- To limit the results to those in - // status (google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED' - // or 'FAILED', use filter='status=CANCELLED OR status=FAILED' + // + // -- By [status] + // [google.api.servicemanagement.v1.Rollout.RolloutStatus]. For example, + // `filter='status=SUCCESS'` + // + // -- By [strategy] + // [google.api.servicemanagement.v1.Rollout.strategy]. For example, + // `filter='strategy=TrafficPercentStrategy'` string filter = 4 [(google.api.field_behavior) = REQUIRED]; } @@ -470,59 +460,17 @@ message ListServiceRolloutsResponse { // Request message for GetServiceRollout method. message GetServiceRolloutRequest { - // Required. The name of the service. See the [overview](https://cloud.google.com/service-management/overview) - // for naming requirements. For example: `example.googleapis.com`. + // Required. The name of the service. See the + // [overview](https://cloud.google.com/service-management/overview) for naming + // requirements. For example: `example.googleapis.com`. string service_name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The id of the rollout resource. string rollout_id = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for EnableService method. -message EnableServiceRequest { - // Required. Name of the service to enable. Specifying an unknown service name will - // cause the request to fail. - string service_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The identity of consumer resource which service enablement will be - // applied to. - // - // The Google Service Management implementation accepts the following - // forms: - // - "project:" - // - // Note: this is made compatible with - // google.api.servicecontrol.v1.Operation.consumer_id. - string consumer_id = 2 [(google.api.field_behavior) = REQUIRED]; -} - // Operation payload for EnableService method. -message EnableServiceResponse { - -} - -// Request message for DisableService method. -message DisableServiceRequest { - // Required. Name of the service to disable. Specifying an unknown service name - // will cause the request to fail. - string service_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The identity of consumer resource which service disablement will be - // applied to. - // - // The Google Service Management implementation accepts the following - // forms: - // - "project:" - // - // Note: this is made compatible with - // google.api.servicecontrol.v1.Operation.consumer_id. - string consumer_id = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Operation payload for DisableService method. -message DisableServiceResponse { - -} +message EnableServiceResponse {} // Request message for GenerateConfigReport method. message GenerateConfigReportRequest { diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/BUILD.bazel new file mode 100644 index 00000000..a830b4ac --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/BUILD.bazel @@ -0,0 +1,40 @@ +# This build file includes a target for the Ruby wrapper library for +# google-cloud-service_usage. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +# Export yaml configs. +exports_files(glob(["*.yaml"])) + +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", +) + +# Generates a Ruby wrapper client for serviceusage. +# Ruby wrapper clients are versionless, but are generated from source protos +# for a particular service version, v1 in this case. +ruby_cloud_gapic_library( + name = "serviceusage_ruby_wrapper", + srcs = ["//google/api/serviceusage/v1:serviceusage_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-service_usage", + "ruby-cloud-env-prefix=SERVICE_USAGE", + "ruby-cloud-wrapper-of=v1:0.6", + "ruby-cloud-product-url=https://cloud.google.com/service-usage/", + "ruby-cloud-api-id=serviceusage.googleapis.com", + "ruby-cloud-api-shortname=serviceusage", + ], + ruby_cloud_description = "Service Usage is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. You can list and manage Google Cloud services and their APIs, as well as services created using Cloud Endpoints.", + ruby_cloud_title = "Service Usage", +) + +# Open Source package. +ruby_gapic_assembly_pkg( + name = "google-cloud-serviceusage-ruby", + deps = [ + ":serviceusage_ruby_wrapper", + ], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/BUILD.bazel index c8e9b780..7d98f485 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/BUILD.bazel @@ -33,6 +33,7 @@ proto_library( "//google/api:monitored_resource_proto", "//google/api:monitoring_proto", "//google/api:quota_proto", + "//google/api:resource_proto", "//google/api:usage_proto", "//google/longrunning:operations_proto", "@com_google_protobuf//:api_proto", @@ -73,18 +74,24 @@ java_grpc_library( java_gapic_library( name = "serviceusage_java_gapic", srcs = [":serviceusage_proto_with_info"], + gapic_yaml = None, grpc_service_config = "serviceusage_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "serviceusage_v1.yaml", test_deps = [ ":serviceusage_java_grpc", ], + transport = "grpc+rest", deps = [ ":serviceusage_java_proto", + "//google/api:api_java_proto", ], ) java_gapic_test( name = "serviceusage_java_gapic_test_suite", test_classes = [ + "com.google.api.serviceusage.v1.ServiceUsageClientHttpJsonTest", "com.google.api.serviceusage.v1.ServiceUsageClientTest", ], runtime_deps = [":serviceusage_java_gapic_test"], @@ -93,6 +100,8 @@ java_gapic_test( # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-cloud-api-serviceusage-v1-java", + include_samples = True, + transport = "grpc+rest", deps = [ ":serviceusage_java_gapic", ":serviceusage_java_grpc", @@ -104,64 +113,56 @@ java_gapic_assembly_gradle_pkg( ############################################################################## # Go ############################################################################## -# load( -# "@com_google_googleapis_imports//:imports.bzl", -# "go_gapic_assembly_pkg", -# "go_gapic_library", -# "go_proto_library", -# "go_test", -# ) - -# go_proto_library( -# name = "serviceusage_go_proto", -# compilers = ["@io_bazel_rules_go//proto:go_grpc"], -# importpath = "google.golang.org/genproto/googleapis/api/serviceusage/v1", -# protos = [":serviceusage_proto"], -# deps = [ -# "//google/api:annotations_go_proto", -# "//google/api:auth_go_proto", -# "//google/api:documentation_go_proto", -# "//google/api:endpoint_go_proto", -# "//google/api:monitoredres_go_proto", -# "//google/api:monitoring_go_proto", -# "//google/api:serviceconfig_go_proto", -# "//google/api:usage_go_proto", -# "//google/longrunning:longrunning_go_proto", -# ], -# ) - -# go_gapic_library( -# name = "serviceusage_go_gapic", -# srcs = [":serviceusage_proto_with_info"], -# grpc_service_config = "serviceusage_grpc_service_config.json", -# importpath = "cloud.google.com/go/api/serviceusage/apiv1;serviceusage", -# service_yaml = "serviceusage_v1.yaml", -# metadata = True, -# deps = [ -# ":serviceusage_go_proto", -# "//google/longrunning:longrunning_go_proto", -# "@com_google_cloud_go//longrunning/autogen:go_default_library", -# "@com_google_cloud_go//longrunning:go_default_library", -# ], -# ) - -# go_test( -# name = "serviceusage_go_gapic_test", -# srcs = [":serviceusage_go_gapic_srcjar_test"], -# embed = [":serviceusage_go_gapic"], -# importpath = "cloud.google.com/go/api/serviceusage/apiv1", -# ) - -# # Open Source Packages -# go_gapic_assembly_pkg( -# name = "gapi-cloud-api-serviceusage-v1-go", -# deps = [ -# ":serviceusage_go_gapic", -# ":serviceusage_go_gapic_srcjar-test.srcjar", -# ":serviceusage_go_gapic_srcjar-metadata.srcjar", -# ":serviceusage_go_proto", -# ], -# ) +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", +) + +go_proto_library( + name = "serviceusage_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "cloud.google.com/go/serviceusage/apiv1/serviceusagepb", + protos = [":serviceusage_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/api:monitoredres_go_proto", + "//google/api:serviceconfig_go_proto", + "//google/longrunning:longrunning_go_proto", + ], +) + +go_gapic_library( + name = "serviceusage_go_gapic", + srcs = [":serviceusage_proto_with_info"], + grpc_service_config = "serviceusage_grpc_service_config.json", + importpath = "cloud.google.com/go/serviceusage/apiv1;serviceusage", + metadata = True, + release_level = "ga", + rest_numeric_enums = False, + service_yaml = "serviceusage_v1.yaml", + transport = "grpc+rest", + deps = [ + ":serviceusage_go_proto", + "//google/api:monitoredres_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go_longrunning//:go_default_library", + "@com_google_cloud_go_longrunning//autogen:go_default_library", + ], +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-api-serviceusage-v1-go", + deps = [ + ":serviceusage_go_gapic", + ":serviceusage_go_gapic_srcjar-metadata.srcjar", + ":serviceusage_go_gapic_srcjar-snippets.srcjar", + ":serviceusage_go_gapic_srcjar-test.srcjar", + ":serviceusage_go_proto", + ], +) ############################################################################## # Python @@ -170,12 +171,33 @@ load( "@com_google_googleapis_imports//:imports.bzl", "py_gapic_assembly_pkg", "py_gapic_library", + "py_test", ) py_gapic_library( name = "serviceusage_py_gapic", srcs = [":serviceusage_proto"], grpc_service_config = "serviceusage_grpc_service_config.json", + opt_args = [ + "python-gapic-name=service_usage", + "python-gapic-namespace=google.cloud", + "warehouse-package-name=google-cloud-service-usage", + ], + rest_numeric_enums = True, + service_yaml = "serviceusage_v1.yaml", + transport = "grpc+rest", + deps = [ + ], +) + +py_test( + name = "serviceusage_py_gapic_test", + srcs = [ + "serviceusage_py_gapic_pytest.py", + "serviceusage_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":serviceusage_py_gapic"], ) # Open Source Packages @@ -191,10 +213,9 @@ py_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", ) php_proto_library( @@ -202,19 +223,15 @@ php_proto_library( deps = [":serviceusage_proto"], ) -php_grpc_library( - name = "serviceusage_php_grpc", - srcs = [":serviceusage_proto"], - deps = [":serviceusage_php_proto"], -) - php_gapic_library( name = "serviceusage_php_gapic", srcs = [":serviceusage_proto_with_info"], grpc_service_config = "serviceusage_grpc_service_config.json", + migration_mode = "MIGRATING", + rest_numeric_enums = True, service_yaml = "serviceusage_v1.yaml", + transport = "grpc+rest", deps = [ - ":serviceusage_php_grpc", ":serviceusage_php_proto", ], ) @@ -224,7 +241,6 @@ php_gapic_assembly_pkg( name = "google-cloud-api-serviceusage-v1-php", deps = [ ":serviceusage_php_gapic", - ":serviceusage_php_grpc", ":serviceusage_php_proto", ], ) @@ -245,7 +261,9 @@ nodejs_gapic_library( extra_protoc_parameters = ["metadata"], grpc_service_config = "serviceusage_grpc_service_config.json", package = "google.api.serviceusage.v1", + rest_numeric_enums = True, service_yaml = "serviceusage_v1.yaml", + transport = "grpc+rest", deps = [], ) @@ -262,8 +280,8 @@ nodejs_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "ruby_gapic_assembly_pkg", "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", "ruby_grpc_library", "ruby_proto_library", ) @@ -283,9 +301,18 @@ ruby_cloud_gapic_library( name = "serviceusage_ruby_gapic", srcs = [":serviceusage_proto_with_info"], extra_protoc_parameters = [ - "ruby-cloud-gem-name=google-cloud-api-serviceusage-v1", + "ruby-cloud-api-id=serviceusage.googleapis.com", + "ruby-cloud-api-shortname=serviceusage", + "ruby-cloud-env-prefix=SERVICE_USAGE", + "ruby-cloud-gem-name=google-cloud-service_usage-v1", + "ruby-cloud-product-url=https://cloud.google.com/service-usage/", ], grpc_service_config = "serviceusage_grpc_service_config.json", + rest_numeric_enums = True, + ruby_cloud_description = "Service Usage is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. You can list and manage Google Cloud services and their APIs, as well as services created using Cloud Endpoints.", + ruby_cloud_title = "Service Usage V1", + service_yaml = "serviceusage_v1.yaml", + transport = "grpc+rest", deps = [ ":serviceusage_ruby_grpc", ":serviceusage_ruby_proto", @@ -315,6 +342,7 @@ load( csharp_proto_library( name = "serviceusage_csharp_proto", + extra_opts = [], deps = [":serviceusage_proto"], ) @@ -329,6 +357,9 @@ csharp_gapic_library( srcs = [":serviceusage_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", grpc_service_config = "serviceusage_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "serviceusage_v1.yaml", + transport = "grpc+rest", deps = [ ":serviceusage_csharp_grpc", ":serviceusage_csharp_proto", @@ -348,4 +379,20 @@ csharp_gapic_assembly_pkg( ############################################################################## # C++ ############################################################################## -# Put your C++ rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "serviceusage_cc_proto", + deps = [":serviceusage_proto"], +) + +cc_grpc_library( + name = "serviceusage_cc_grpc", + srcs = [":serviceusage_proto"], + grpc_only = True, + deps = [":serviceusage_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/resources.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/resources.proto index a2aaae96..724feb5e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/resources.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,12 @@ import "google/api/endpoint.proto"; import "google/api/monitored_resource.proto"; import "google/api/monitoring.proto"; import "google/api/quota.proto"; +import "google/api/resource.proto"; import "google/api/usage.proto"; import "google/protobuf/api.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.ServiceUsage.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/serviceusage/v1;serviceusage"; +option go_package = "cloud.google.com/go/serviceusage/apiv1/serviceusagepb;serviceusagepb"; option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.api.serviceusage.v1"; @@ -36,6 +36,13 @@ option ruby_package = "Google::Cloud::ServiceUsage::V1"; // A service that is available for use by the consumer. message Service { + option (google.api.resource) = { + type: "serviceusage.googleapis.com/Service" + pattern: "projects/{project}/services/{service}" + pattern: "folders/{folder}/services/{service}" + pattern: "organizations/{organization}/services/{service}" + }; + // The resource name of the consumer and service. // // A valid name would be: @@ -106,7 +113,8 @@ message ServiceConfig { repeated google.api.Endpoint endpoints = 18; // Defines the monitored resources used by this service. This is required - // by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations. + // by the [Service.monitoring][google.api.Service.monitoring] and + // [Service.logging][google.api.Service.logging] configurations. repeated google.api.MonitoredResourceDescriptor monitored_resources = 25; // Monitoring configuration. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/serviceusage.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/serviceusage.proto index fad7c327..3db79850 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/serviceusage.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/serviceusage.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,12 +17,12 @@ syntax = "proto3"; package google.api.serviceusage.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/api/serviceusage/v1/resources.proto"; import "google/longrunning/operations.proto"; -import "google/api/client.proto"; option csharp_namespace = "Google.Cloud.ServiceUsage.V1"; -option go_package = "google.golang.org/genproto/googleapis/api/serviceusage/v1;serviceusage"; +option go_package = "cloud.google.com/go/serviceusage/apiv1/serviceusagepb;serviceusagepb"; option java_multiple_files = true; option java_outer_classname = "ServiceUsageProto"; option java_package = "com.google.api.serviceusage.v1"; @@ -42,7 +42,8 @@ service ServiceUsage { "https://www.googleapis.com/auth/service.management"; // Enable a service so that it can be used with a project. - rpc EnableService(EnableServiceRequest) returns (google.longrunning.Operation) { + rpc EnableService(EnableServiceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=*/*/services/*}:enable" body: "*" @@ -60,7 +61,8 @@ service ServiceUsage { // It is not valid to call the disable method on a service that is not // currently enabled. Callers will receive a `FAILED_PRECONDITION` status if // the target service is not currently enabled. - rpc DisableService(DisableServiceRequest) returns (google.longrunning.Operation) { + rpc DisableService(DisableServiceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=*/*/services/*}:disable" body: "*" @@ -100,7 +102,8 @@ service ServiceUsage { // Enable multiple services on a project. The operation is atomic: if enabling // any service fails, then the entire batch fails, and no state changes occur. // To enable a single service, use the `EnableService` method instead. - rpc BatchEnableServices(BatchEnableServicesRequest) returns (google.longrunning.Operation) { + rpc BatchEnableServices(BatchEnableServicesRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=*/*}/services:batchEnable" body: "*" @@ -113,7 +116,8 @@ service ServiceUsage { // Returns the service configurations and enabled states for a given list of // services. - rpc BatchGetServices(BatchGetServicesRequest) returns (BatchGetServicesResponse) { + rpc BatchGetServices(BatchGetServicesRequest) + returns (BatchGetServicesResponse) { option (google.api.http) = { get: "/v1/{parent=*/*}/services:batchGet" }; @@ -209,7 +213,7 @@ message ListServicesRequest { // Requested size of the next page of data. // Requested page size cannot exceed 200. - // If not set, the default page size is 50. + // If not set, the default page size is 50. int32 page_size = 2; // Token identifying which result to start with, which is returned by a diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/serviceusage_v1.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/serviceusage_v1.yaml index 28a46351..10fd14b9 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/serviceusage_v1.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1/serviceusage_v1.yaml @@ -5,6 +5,7 @@ title: Service Usage API apis: - name: google.api.serviceusage.v1.ServiceUsage +- name: google.longrunning.Operations types: - name: google.api.serviceusage.v1.BatchEnableServicesResponse diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/BUILD.bazel index 338a8dd4..b9602063 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/BUILD.bazel @@ -37,6 +37,7 @@ proto_library( "//google/api:usage_proto", "//google/longrunning:operations_proto", "@com_google_protobuf//:api_proto", + "@com_google_protobuf//:empty_proto", "@com_google_protobuf//:field_mask_proto", ], ) @@ -75,18 +76,24 @@ java_grpc_library( java_gapic_library( name = "serviceusage_java_gapic", srcs = [":serviceusage_proto_with_info"], + gapic_yaml = None, grpc_service_config = "serviceusage_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "serviceusage_v1beta1.yaml", test_deps = [ ":serviceusage_java_grpc", ], + transport = "grpc+rest", deps = [ ":serviceusage_java_proto", + "//google/api:api_java_proto", ], ) java_gapic_test( name = "serviceusage_java_gapic_test_suite", test_classes = [ + "com.google.api.serviceusage.v1beta1.ServiceUsageClientHttpJsonTest", "com.google.api.serviceusage.v1beta1.ServiceUsageClientTest", ], runtime_deps = [":serviceusage_java_gapic_test"], @@ -95,6 +102,8 @@ java_gapic_test( # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-cloud-api-serviceusage-v1beta1-java", + include_samples = True, + transport = "grpc+rest", deps = [ ":serviceusage_java_gapic", ":serviceusage_java_grpc", @@ -111,7 +120,6 @@ load( "go_gapic_assembly_pkg", "go_gapic_library", "go_proto_library", - "go_test", ) go_proto_library( @@ -133,28 +141,26 @@ go_gapic_library( grpc_service_config = "serviceusage_grpc_service_config.json", importpath = "cloud.google.com/go/api/serviceusage/apiv1beta1;serviceusage", metadata = True, + release_level = "beta", + rest_numeric_enums = True, service_yaml = "serviceusage_v1beta1.yaml", + transport = "grpc+rest", deps = [ ":serviceusage_go_proto", + "//google/api:monitoredres_go_proto", "//google/longrunning:longrunning_go_proto", - "@com_google_cloud_go//longrunning:go_default_library", - "@com_google_cloud_go//longrunning/autogen:go_default_library", + "@com_google_cloud_go_longrunning//:go_default_library", + "@com_google_cloud_go_longrunning//autogen:go_default_library", ], ) -go_test( - name = "serviceusage_go_gapic_test", - srcs = [":serviceusage_go_gapic_srcjar_test"], - embed = [":serviceusage_go_gapic"], - importpath = "cloud.google.com/go/api/serviceusage/apiv1beta1", -) - # Open Source Packages go_gapic_assembly_pkg( name = "gapi-cloud-api-serviceusage-v1beta1-go", deps = [ ":serviceusage_go_gapic", ":serviceusage_go_gapic_srcjar-metadata.srcjar", + ":serviceusage_go_gapic_srcjar-snippets.srcjar", ":serviceusage_go_gapic_srcjar-test.srcjar", ":serviceusage_go_proto", ], @@ -167,12 +173,33 @@ load( "@com_google_googleapis_imports//:imports.bzl", "py_gapic_assembly_pkg", "py_gapic_library", + "py_test", ) py_gapic_library( name = "serviceusage_py_gapic", srcs = [":serviceusage_proto"], grpc_service_config = "serviceusage_grpc_service_config.json", + opt_args = [ + "python-gapic-name=service_usage", + "python-gapic-namespace=google.cloud", + "warehouse-package-name=google-cloud-service-usage", + ], + rest_numeric_enums = True, + service_yaml = "serviceusage_v1beta1.yaml", + transport = "grpc+rest", + deps = [ + ], +) + +py_test( + name = "serviceusage_py_gapic_test", + srcs = [ + "serviceusage_py_gapic_pytest.py", + "serviceusage_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":serviceusage_py_gapic"], ) # Open Source Packages @@ -188,10 +215,9 @@ py_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", ) php_proto_library( @@ -199,19 +225,15 @@ php_proto_library( deps = [":serviceusage_proto"], ) -php_grpc_library( - name = "serviceusage_php_grpc", - srcs = [":serviceusage_proto"], - deps = [":serviceusage_php_proto"], -) - php_gapic_library( name = "serviceusage_php_gapic", srcs = [":serviceusage_proto_with_info"], grpc_service_config = "serviceusage_grpc_service_config.json", + migration_mode = "PRE_MIGRATION_SURFACE_ONLY", + rest_numeric_enums = True, service_yaml = "serviceusage_v1beta1.yaml", + transport = "grpc+rest", deps = [ - ":serviceusage_php_grpc", ":serviceusage_php_proto", ], ) @@ -221,7 +243,6 @@ php_gapic_assembly_pkg( name = "google-cloud-api-serviceusage-v1beta1-php", deps = [ ":serviceusage_php_gapic", - ":serviceusage_php_grpc", ":serviceusage_php_proto", ], ) @@ -242,7 +263,9 @@ nodejs_gapic_library( extra_protoc_parameters = ["metadata"], grpc_service_config = "serviceusage_grpc_service_config.json", package = "google.api.serviceusage.v1beta1", + rest_numeric_enums = True, service_yaml = "serviceusage_v1beta1.yaml", + transport = "grpc+rest", deps = [], ) @@ -279,8 +302,19 @@ ruby_grpc_library( ruby_cloud_gapic_library( name = "serviceusage_ruby_gapic", srcs = [":serviceusage_proto_with_info"], - extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-api-serviceusage-v1beta1"], + extra_protoc_parameters = [ + "ruby-cloud-api-id=serviceusage.googleapis.com", + "ruby-cloud-api-shortname=serviceusage", + "ruby-cloud-env-prefix=SERVICE_USAGE", + "ruby-cloud-gem-name=google-cloud-service_usage-v1beta1", + "ruby-cloud-product-url=https://cloud.google.com/service-usage/", + ], grpc_service_config = "serviceusage_grpc_service_config.json", + rest_numeric_enums = True, + ruby_cloud_description = "Service Usage is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. You can list and manage Google Cloud services and their APIs, as well as services created using Cloud Endpoints.", + ruby_cloud_title = "Service Usage V1beta1", + service_yaml = "serviceusage_v1beta1.yaml", + transport = "grpc+rest", deps = [ ":serviceusage_ruby_grpc", ":serviceusage_ruby_proto", @@ -310,6 +344,7 @@ load( csharp_proto_library( name = "serviceusage_csharp_proto", + extra_opts = [], deps = [":serviceusage_proto"], ) @@ -324,6 +359,9 @@ csharp_gapic_library( srcs = [":serviceusage_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", grpc_service_config = "serviceusage_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "serviceusage_v1beta1.yaml", + transport = "grpc+rest", deps = [ ":serviceusage_csharp_grpc", ":serviceusage_csharp_proto", @@ -343,4 +381,20 @@ csharp_gapic_assembly_pkg( ############################################################################## # C++ ############################################################################## -# Put your C++ rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "serviceusage_cc_proto", + deps = [":serviceusage_proto"], +) + +cc_grpc_library( + name = "serviceusage_cc_grpc", + srcs = [":serviceusage_proto"], + grpc_only = True, + deps = [":serviceusage_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/resources.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/resources.proto index 4db1161f..b2980721 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/resources.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import "google/api/monitoring.proto"; import "google/api/quota.proto"; import "google/api/usage.proto"; import "google/protobuf/api.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Api.ServiceUsage.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/api/serviceusage/v1beta1;serviceusage"; @@ -106,7 +105,8 @@ message ServiceConfig { repeated google.api.Endpoint endpoints = 18; // Defines the monitored resources used by this service. This is required - // by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations. + // by the [Service.monitoring][google.api.Service.monitoring] and + // [Service.logging][google.api.Service.logging] configurations. repeated google.api.MonitoredResourceDescriptor monitored_resources = 25; // Monitoring configuration. @@ -197,6 +197,10 @@ message ConsumerQuotaLimit { // ordered from least specific to most specific (for example, the global // default bucket, with no quota dimensions, will always appear first). repeated QuotaBucket quota_buckets = 9; + + // List of all supported locations. + // This field is present only if the limit has a {region} or {zone} dimension. + repeated string supported_locations = 11; } // Selected view of quota. Can be used to request more detailed quota @@ -237,6 +241,9 @@ message QuotaBucket { // Admin override on this quota bucket. QuotaOverride admin_override = 5; + // Producer policy inherited from the closet ancestor of the current consumer. + ProducerQuotaPolicy producer_quota_policy = 7; + // The dimensions of this quota bucket. // // If this map is empty, this is the global bucket, which is the default quota @@ -335,6 +342,62 @@ enum QuotaSafetyCheck { LIMIT_DECREASE_PERCENTAGE_TOO_HIGH = 2; } +// Quota policy created by service producer. +message ProducerQuotaPolicy { + // The resource name of the policy. + // This name is generated by the server when the policy is created. + // + // Example names would be: + // `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d` + string name = 1; + + // The quota policy value. + // Can be any nonnegative integer, or -1 (unlimited quota). + int64 policy_value = 2; + + // + // If this map is nonempty, then this policy applies only to specific values + // for dimensions defined in the limit unit. + // + // For example, a policy on a limit with the unit `1/{project}/{region}` + // could contain an entry with the key `region` and the value `us-east-1`; + // the policy is only applied to quota consumed in that region. + // + // This map has the following restrictions: + // + // * Keys that are not defined in the limit's unit are not valid keys. + // Any string appearing in {brackets} in the unit (besides {project} or + // {user}) is a defined key. + // * `project` is not a valid key; the project is already specified in + // the parent resource name. + // * `user` is not a valid key; the API does not support quota policies + // that apply only to a specific user. + // * If `region` appears as a key, its value must be a valid Cloud region. + // * If `zone` appears as a key, its value must be a valid Cloud zone. + // * If any valid key other than `region` or `zone` appears in the map, then + // all valid keys other than `region` or `zone` must also appear in the + // map. + map dimensions = 3; + + // The name of the metric to which this policy applies. + // + // An example name would be: + // `compute.googleapis.com/cpus` + string metric = 4; + + // The limit unit of the limit to which this policy applies. + // + // An example unit would be: + // `1/{project}/{region}` + // Note that `{project}` and `{region}` are not placeholders in this example; + // the literal characters `{` and `}` occur in the string. + string unit = 5; + + // The cloud resource container at which the quota policy is created. The + // format is `{container_type}/{container_number}` + string container = 6; +} + // Quota policy created by quota administrator. message AdminQuotaPolicy { // The resource name of the policy. @@ -352,7 +415,7 @@ message AdminQuotaPolicy { // If this map is nonempty, then this policy applies only to specific values // for dimensions defined in the limit unit. // - // For example, an policy on a limit with the unit `1/{project}/{region}` + // For example, a policy on a limit with the unit `1/{project}/{region}` // could contain an entry with the key `region` and the value `us-east-1`; // the policy is only applied to quota consumed in that region. // diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/serviceusage.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/serviceusage.proto index 2b0761f3..a7c18db8 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/serviceusage.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/serviceusage.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/serviceusage/v1beta1/resources.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Api.ServiceUsage.V1Beta1"; @@ -42,7 +43,8 @@ service ServiceUsage { // Enables a service so that it can be used with a project. // // Operation response type: `google.protobuf.Empty` - rpc EnableService(EnableServiceRequest) returns (google.longrunning.Operation) { + rpc EnableService(EnableServiceRequest) + returns (google.longrunning.Operation) { option deprecated = true; option (google.api.http) = { post: "/v1beta1/{name=*/*/services/*}:enable" @@ -63,7 +65,8 @@ service ServiceUsage { // the target service is not currently enabled. // // Operation response type: `google.protobuf.Empty` - rpc DisableService(DisableServiceRequest) returns (google.longrunning.Operation) { + rpc DisableService(DisableServiceRequest) + returns (google.longrunning.Operation) { option deprecated = true; option (google.api.http) = { post: "/v1beta1/{name=*/*/services/*}:disable" @@ -102,7 +105,8 @@ service ServiceUsage { // changes occur. // // Operation response type: `google.protobuf.Empty` - rpc BatchEnableServices(BatchEnableServicesRequest) returns (google.longrunning.Operation) { + rpc BatchEnableServices(BatchEnableServicesRequest) + returns (google.longrunning.Operation) { option deprecated = true; option (google.api.http) = { post: "/v1beta1/{parent=*/*}/services:batchEnable" @@ -119,21 +123,24 @@ service ServiceUsage { // about all of its defined limits. Each limit includes the limit // configuration (quota unit, preciseness, default value), the current // effective limit value, and all of the overrides applied to the limit. - rpc ListConsumerQuotaMetrics(ListConsumerQuotaMetricsRequest) returns (ListConsumerQuotaMetricsResponse) { + rpc ListConsumerQuotaMetrics(ListConsumerQuotaMetricsRequest) + returns (ListConsumerQuotaMetricsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=*/*/services/*}/consumerQuotaMetrics" }; } // Retrieves a summary of quota information for a specific quota metric - rpc GetConsumerQuotaMetric(GetConsumerQuotaMetricRequest) returns (ConsumerQuotaMetric) { + rpc GetConsumerQuotaMetric(GetConsumerQuotaMetricRequest) + returns (ConsumerQuotaMetric) { option (google.api.http) = { get: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*}" }; } // Retrieves a summary of quota information for a specific quota limit. - rpc GetConsumerQuotaLimit(GetConsumerQuotaLimitRequest) returns (ConsumerQuotaLimit) { + rpc GetConsumerQuotaLimit(GetConsumerQuotaLimitRequest) + returns (ConsumerQuotaLimit) { option (google.api.http) = { get: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*/limits/*}" }; @@ -145,7 +152,8 @@ service ServiceUsage { // override is intended to limit the amount of quota the consumer can use out // of the total quota pool allocated to all children of the folder or // organization. - rpc CreateAdminOverride(CreateAdminOverrideRequest) returns (google.longrunning.Operation) { + rpc CreateAdminOverride(CreateAdminOverrideRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=*/*/services/*/consumerQuotaMetrics/*/limits/*}/adminOverrides" body: "override" @@ -157,7 +165,8 @@ service ServiceUsage { } // Updates an admin override. - rpc UpdateAdminOverride(UpdateAdminOverrideRequest) returns (google.longrunning.Operation) { + rpc UpdateAdminOverride(UpdateAdminOverrideRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*/limits/*/adminOverrides/*}" body: "override" @@ -169,7 +178,8 @@ service ServiceUsage { } // Deletes an admin override. - rpc DeleteAdminOverride(DeleteAdminOverrideRequest) returns (google.longrunning.Operation) { + rpc DeleteAdminOverride(DeleteAdminOverrideRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*/limits/*/adminOverrides/*}" }; @@ -180,7 +190,8 @@ service ServiceUsage { } // Lists all admin overrides on this limit. - rpc ListAdminOverrides(ListAdminOverridesRequest) returns (ListAdminOverridesResponse) { + rpc ListAdminOverrides(ListAdminOverridesRequest) + returns (ListAdminOverridesResponse) { option (google.api.http) = { get: "/v1beta1/{parent=*/*/services/*/consumerQuotaMetrics/*/limits/*}/adminOverrides" }; @@ -189,7 +200,8 @@ service ServiceUsage { // Creates or updates multiple admin overrides atomically, all on the // same consumer, but on many different metrics or limits. // The name field in the quota override message should not be set. - rpc ImportAdminOverrides(ImportAdminOverridesRequest) returns (google.longrunning.Operation) { + rpc ImportAdminOverrides(ImportAdminOverridesRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=*/*/services/*}/consumerQuotaMetrics:importAdminOverrides" body: "*" @@ -205,7 +217,8 @@ service ServiceUsage { // limit its own quota usage. Consumer overrides cannot be used to grant more // quota than would be allowed by admin overrides, producer overrides, or the // default limit of the service. - rpc CreateConsumerOverride(CreateConsumerOverrideRequest) returns (google.longrunning.Operation) { + rpc CreateConsumerOverride(CreateConsumerOverrideRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=*/*/services/*/consumerQuotaMetrics/*/limits/*}/consumerOverrides" body: "override" @@ -217,7 +230,8 @@ service ServiceUsage { } // Updates a consumer override. - rpc UpdateConsumerOverride(UpdateConsumerOverrideRequest) returns (google.longrunning.Operation) { + rpc UpdateConsumerOverride(UpdateConsumerOverrideRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*/limits/*/consumerOverrides/*}" body: "override" @@ -229,7 +243,8 @@ service ServiceUsage { } // Deletes a consumer override. - rpc DeleteConsumerOverride(DeleteConsumerOverrideRequest) returns (google.longrunning.Operation) { + rpc DeleteConsumerOverride(DeleteConsumerOverrideRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1beta1/{name=*/*/services/*/consumerQuotaMetrics/*/limits/*/consumerOverrides/*}" }; @@ -240,7 +255,8 @@ service ServiceUsage { } // Lists all consumer overrides on this limit. - rpc ListConsumerOverrides(ListConsumerOverridesRequest) returns (ListConsumerOverridesResponse) { + rpc ListConsumerOverrides(ListConsumerOverridesRequest) + returns (ListConsumerOverridesResponse) { option (google.api.http) = { get: "/v1beta1/{parent=*/*/services/*/consumerQuotaMetrics/*/limits/*}/consumerOverrides" }; @@ -249,7 +265,8 @@ service ServiceUsage { // Creates or updates multiple consumer overrides atomically, all on the // same consumer, but on many different metrics or limits. // The name field in the quota override message should not be set. - rpc ImportConsumerOverrides(ImportConsumerOverridesRequest) returns (google.longrunning.Operation) { + rpc ImportConsumerOverrides(ImportConsumerOverridesRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=*/*/services/*}/consumerQuotaMetrics:importConsumerOverrides" body: "*" @@ -261,7 +278,8 @@ service ServiceUsage { } // Generates service identity for service. - rpc GenerateServiceIdentity(GenerateServiceIdentityRequest) returns (google.longrunning.Operation) { + rpc GenerateServiceIdentity(GenerateServiceIdentityRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=*/*/services/*}:generateServiceIdentity" }; @@ -566,9 +584,7 @@ message ImportAdminOverridesResponse { // Metadata message that provides information such as progress, // partial failures, and similar information on each GetOperation call // of LRO returned by ImportAdminOverrides. -message ImportAdminOverridesMetadata { - -} +message ImportAdminOverridesMetadata {} // Request message for CreateConsumerOverride. message CreateConsumerOverrideRequest { @@ -710,9 +726,7 @@ message ImportConsumerOverridesResponse { // Metadata message that provides information such as progress, // partial failures, and similar information on each GetOperation call // of LRO returned by ImportConsumerOverrides. -message ImportConsumerOverridesMetadata { - -} +message ImportConsumerOverridesMetadata {} // Response message for ImportAdminQuotaPolicies message ImportAdminQuotaPoliciesResponse { @@ -723,40 +737,34 @@ message ImportAdminQuotaPoliciesResponse { // Metadata message that provides information such as progress, // partial failures, and similar information on each GetOperation call // of LRO returned by ImportAdminQuotaPolicies. -message ImportAdminQuotaPoliciesMetadata { - -} +message ImportAdminQuotaPoliciesMetadata {} // Metadata message that provides information such as progress, // partial failures, and similar information on each GetOperation call // of LRO returned by CreateAdminQuotaPolicy. -message CreateAdminQuotaPolicyMetadata { - -} +message CreateAdminQuotaPolicyMetadata {} // Metadata message that provides information such as progress, // partial failures, and similar information on each GetOperation call // of LRO returned by UpdateAdminQuotaPolicy. -message UpdateAdminQuotaPolicyMetadata { - -} +message UpdateAdminQuotaPolicyMetadata {} // Metadata message that provides information such as progress, // partial failures, and similar information on each GetOperation call // of LRO returned by DeleteAdminQuotaPolicy. -message DeleteAdminQuotaPolicyMetadata { - -} +message DeleteAdminQuotaPolicyMetadata {} // Request message for generating service identity. message GenerateServiceIdentityRequest { // Name of the consumer and service to generate an identity for. // - // The `GenerateServiceIdentity` methods currently only support projects. + // The `GenerateServiceIdentity` methods currently support projects, folders, + // organizations. // - // An example name would be: - // `projects/123/services/example.googleapis.com` where `123` is the - // project number. + // Example parents would be: + // `projects/123/services/example.googleapis.com` + // `folders/123/services/example.googleapis.com` + // `organizations/123/services/example.googleapis.com` string parent = 1; } @@ -782,6 +790,4 @@ message GetServiceIdentityResponse { } // Metadata for the `GetServiceIdentity` method. -message GetServiceIdentityMetadata { - -} +message GetServiceIdentityMetadata {} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/serviceusage_v1beta1.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/serviceusage_v1beta1.yaml index 1a1db7e9..211cc8e2 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/serviceusage_v1beta1.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/serviceusage/v1beta1/serviceusage_v1beta1.yaml @@ -5,6 +5,7 @@ title: Service Usage API apis: - name: google.api.serviceusage.v1beta1.ServiceUsage +- name: google.longrunning.Operations types: - name: google.api.serviceusage.v1beta1.BatchCreateAdminOverridesResponse @@ -45,9 +46,9 @@ documentation: backend: rules: - selector: 'google.api.serviceusage.v1beta1.ServiceUsage.*' - deadline: 5.0 + deadline: 20.0 - selector: 'google.longrunning.Operations.*' - deadline: 5.0 + deadline: 20.0 http: rules: @@ -61,8 +62,45 @@ authentication: - selector: 'google.api.serviceusage.v1beta1.ServiceUsage.*' oauth: canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/service.management + - selector: google.api.serviceusage.v1beta1.ServiceUsage.GetConsumerQuotaLimit + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only + - selector: google.api.serviceusage.v1beta1.ServiceUsage.GetConsumerQuotaMetric + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only + - selector: google.api.serviceusage.v1beta1.ServiceUsage.GetService + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only + - selector: google.api.serviceusage.v1beta1.ServiceUsage.ListAdminOverrides + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only + - selector: google.api.serviceusage.v1beta1.ServiceUsage.ListConsumerOverrides + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only + - selector: google.api.serviceusage.v1beta1.ServiceUsage.ListConsumerQuotaMetrics + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only + - selector: google.api.serviceusage.v1beta1.ServiceUsage.ListServices + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only - selector: 'google.longrunning.Operations.*' oauth: canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/service.management diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/source_info.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/source_info.proto index cbdd625c..c9b1c9a1 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/source_info.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/source_info.proto @@ -1,4 +1,4 @@ -// Copyright 2015 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/system_parameter.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/system_parameter.proto index 7d0b1d57..4eb4f478 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/system_parameter.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/system_parameter.proto @@ -1,4 +1,4 @@ -// Copyright 2015 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ message SystemParameterRule { // Selects the methods to which this rule applies. Use '*' to indicate all // methods in all APIs. // - // Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + // Refer to [selector][google.api.DocumentationRule.selector] for syntax + // details. string selector = 1; // Define parameters. Multiple names may be defined for a parameter. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/usage.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/usage.proto index ad2764c9..5c6d6d81 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/usage.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/usage.proto @@ -1,4 +1,4 @@ -// Copyright 2015 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -80,7 +80,8 @@ message UsageRule { // Selects the methods to which this rule applies. Use '*' to indicate all // methods in all APIs. // - // Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + // Refer to [selector][google.api.DocumentationRule.selector] for syntax + // details. string selector = 1; // If true, the selected method allows unregistered calls, e.g. calls diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/api/visibility.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/api/visibility.proto index bde48dd2..bb378bf0 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/api/visibility.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/api/visibility.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -55,16 +55,17 @@ extend google.protobuf.ServiceOptions { google.api.VisibilityRule api_visibility = 72295727; } -// `Visibility` defines restrictions for the visibility of service -// elements. Restrictions are specified using visibility labels -// (e.g., PREVIEW) that are elsewhere linked to users and projects. +// `Visibility` restricts service consumer's access to service elements, +// such as whether an application can call a visibility-restricted method. +// The restriction is expressed by applying visibility labels on service +// elements. The visibility labels are elsewhere linked to service consumers. // -// Users and projects can have access to more than one visibility label. The -// effective visibility for multiple labels is the union of each label's -// elements, plus any unrestricted elements. +// A service can define multiple visibility labels, but a service consumer +// should be granted at most one visibility label. Multiple visibility +// labels for a single service consumer are not supported. // -// If an element and its parents have no restrictions, visibility is -// unconditionally granted. +// If an element and all its parents have no visibility label, its visibility +// is unconditionally granted. // // Example: // @@ -89,7 +90,8 @@ message Visibility { message VisibilityRule { // Selects methods, messages, fields, enums, etc. to which this rule applies. // - // Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + // Refer to [selector][google.api.DocumentationRule.selector] for syntax + // details. string selector = 1; // A comma-separated list of visibility labels that apply to the `selector`. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/BUILD.bazel new file mode 100644 index 00000000..7818336c --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/BUILD.bazel @@ -0,0 +1,41 @@ +# This build file includes a target for the Ruby wrapper library for +# google-cloud-app_engine. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +# Export yaml configs. +exports_files(glob(["*.yaml"])) + +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", +) + +# Generates a Ruby wrapper client for appengine. +# Ruby wrapper clients are versionless, but are generated from source protos +# for a particular service version, v1 in this case. +ruby_cloud_gapic_library( + name = "appengine_ruby_wrapper", + srcs = ["//google/appengine/v1:appengine_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-app_engine", + "ruby-cloud-env-prefix=APP_ENGINE", + "ruby-cloud-wrapper-of=v1:0.9", + "ruby-cloud-product-url=https://cloud.google.com/appengine/docs/admin-api/", + "ruby-cloud-api-id=appengine.googleapis.com", + "ruby-cloud-api-shortname=appengine", + ], + ruby_cloud_description = "The App Engine Admin API provisions and manages your App Engine applications.", + ruby_cloud_title = "App Engine Admin", + transport = "grpc+rest", +) + +# Open Source package. +ruby_gapic_assembly_pkg( + name = "google-cloud-appengine-ruby", + deps = [ + ":appengine_ruby_wrapper", + ], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/legacy/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/legacy/BUILD.bazel index ab1592b9..71ab3e4d 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/legacy/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/legacy/BUILD.bazel @@ -76,7 +76,6 @@ moved_proto_library( py_proto_library( name = "legacy_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", deps = [":legacy_moved_proto"], ) @@ -88,12 +87,10 @@ py_grpc_library( ############################################################################## # PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", + "php_proto_library", ) php_proto_library( @@ -101,21 +98,9 @@ php_proto_library( deps = [":legacy_proto"], ) -php_grpc_library( - name = "legacy_php_grpc", - srcs = [":legacy_proto"], - deps = [":legacy_php_proto"], -) - ############################################################################## # Node.js ############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - ############################################################################## # Ruby @@ -160,4 +145,20 @@ csharp_grpc_library( ############################################################################## # C++ ############################################################################## -# Put your C++ code here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "legacy_cc_proto", + deps = [":legacy_proto"], +) + +cc_grpc_library( + name = "legacy_cc_grpc", + srcs = [":legacy_proto"], + grpc_only = True, + deps = [":legacy_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/legacy/audit_data.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/legacy/audit_data.proto index 5aaa61d7..a77db19c 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/legacy/audit_data.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/legacy/audit_data.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,8 +16,6 @@ syntax = "proto3"; package google.appengine.legacy; -import "google/api/annotations.proto"; - option go_package = "google.golang.org/genproto/googleapis/appengine/legacy;legacy"; option java_multiple_files = true; option java_outer_classname = "AuditDataProto"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/logging/v1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/logging/v1/BUILD.bazel index 23a275f9..afd1d613 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/logging/v1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/logging/v1/BUILD.bazel @@ -63,8 +63,8 @@ go_proto_library( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", "py_gapic_library", - "py_gapic_assembly_pkg" ) py_gapic_library( @@ -72,9 +72,11 @@ py_gapic_library( srcs = [":logging_proto"], opt_args = [ "warehouse-package-name=google-cloud-appengine-logging", - "python-gapic-namespace=google.cloud", + "python-gapic-namespace=google.cloud", "python-gapic-name=appengine_logging", ], + rest_numeric_enums = False, + transport = "grpc", ) # Open Source Packages @@ -87,12 +89,10 @@ py_gapic_assembly_pkg( ############################################################################## # PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", + "php_proto_library", ) php_proto_library( @@ -100,20 +100,9 @@ php_proto_library( deps = [":logging_proto"], ) -php_grpc_library( - name = "logging_php_grpc", - srcs = [":logging_proto"], - deps = [":logging_php_proto"], -) - ############################################################################## # Node.js ############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) ############################################################################## # Ruby @@ -158,4 +147,20 @@ csharp_grpc_library( ############################################################################## # C++ ############################################################################## -# Put your C++ code here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "logging_cc_proto", + deps = [":logging_proto"], +) + +cc_grpc_library( + name = "logging_cc_grpc", + srcs = [":logging_proto"], + grpc_only = True, + deps = [":logging_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/logging/v1/request_log.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/logging/v1/request_log.proto index f44d31e3..026f1b10 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/logging/v1/request_log.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/logging/v1/request_log.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/BUILD.bazel index 2d2b178d..17a49828 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/BUILD.bazel @@ -9,14 +9,43 @@ # * extra_protoc_file_parameters # The complete list of preserved parameters can be found in the source code. -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - ############################################################################## # Common ############################################################################## load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", + "proto_library_with_info", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_test", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) proto_library( name = "appengine_proto", @@ -59,18 +88,6 @@ proto_library_with_info( ], ) -############################################################################## -# Java -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "java_gapic_assembly_gradle_pkg", - "java_gapic_library", - "java_gapic_test", - "java_grpc_library", - "java_proto_library", -) - java_proto_library( name = "appengine_java_proto", deps = [":appengine_proto"], @@ -86,24 +103,36 @@ java_gapic_library( name = "appengine_java_gapic", srcs = [":appengine_proto_with_info"], grpc_service_config = "appengine_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "appengine_v1.yaml", test_deps = [ ":appengine_java_grpc", ], + transport = "grpc+rest", deps = [ ":appengine_java_proto", + "//google/api:api_java_proto", ], ) java_gapic_test( name = "appengine_java_gapic_test_suite", test_classes = [ + "com.google.appengine.v1.ApplicationsClientHttpJsonTest", "com.google.appengine.v1.ApplicationsClientTest", + "com.google.appengine.v1.AuthorizedCertificatesClientHttpJsonTest", "com.google.appengine.v1.AuthorizedCertificatesClientTest", + "com.google.appengine.v1.AuthorizedDomainsClientHttpJsonTest", "com.google.appengine.v1.AuthorizedDomainsClientTest", + "com.google.appengine.v1.DomainMappingsClientHttpJsonTest", "com.google.appengine.v1.DomainMappingsClientTest", + "com.google.appengine.v1.FirewallClientHttpJsonTest", "com.google.appengine.v1.FirewallClientTest", + "com.google.appengine.v1.InstancesClientHttpJsonTest", "com.google.appengine.v1.InstancesClientTest", + "com.google.appengine.v1.ServicesClientHttpJsonTest", "com.google.appengine.v1.ServicesClientTest", + "com.google.appengine.v1.VersionsClientHttpJsonTest", "com.google.appengine.v1.VersionsClientTest", ], runtime_deps = [":appengine_java_gapic_test"], @@ -112,6 +141,8 @@ java_gapic_test( # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-cloud-appengine-v1-java", + include_samples = True, + transport = "grpc+rest", deps = [ ":appengine_java_gapic", ":appengine_java_grpc", @@ -120,21 +151,10 @@ java_gapic_assembly_gradle_pkg( ], ) -############################################################################## -# Go -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "go_gapic_assembly_pkg", - "go_gapic_library", - "go_proto_library", - "go_test", -) - go_proto_library( name = "appengine_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/appengine/v1", + importpath = "cloud.google.com/go/appengine/apiv1/appenginepb", protos = [":appengine_proto"], deps = [ "//google/api:annotations_go_proto", @@ -148,43 +168,31 @@ go_gapic_library( grpc_service_config = "appengine_grpc_service_config.json", importpath = "cloud.google.com/go/appengine/apiv1;appengine", metadata = True, + release_level = "ga", + rest_numeric_enums = True, service_yaml = "appengine_v1.yaml", + transport = "grpc+rest", deps = [ ":appengine_go_proto", "//google/longrunning:longrunning_go_proto", - "@com_google_cloud_go//longrunning:go_default_library", - "@com_google_cloud_go//longrunning/autogen:go_default_library", + "@com_google_cloud_go_longrunning//:go_default_library", + "@com_google_cloud_go_longrunning//autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) -go_test( - name = "appengine_go_gapic_test", - srcs = [":appengine_go_gapic_srcjar_test"], - embed = [":appengine_go_gapic"], - importpath = "cloud.google.com/go/appengine/apiv1", -) - # Open Source Packages go_gapic_assembly_pkg( name = "gapi-cloud-appengine-v1-go", deps = [ ":appengine_go_gapic", ":appengine_go_gapic_srcjar-metadata.srcjar", + ":appengine_go_gapic_srcjar-snippets.srcjar", ":appengine_go_gapic_srcjar-test.srcjar", ":appengine_go_proto", ], ) -############################################################################## -# Python -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "py_gapic_assembly_pkg", - "py_gapic_library", -) - py_gapic_library( name = "appengine_py_gapic", srcs = [":appengine_proto"], @@ -194,6 +202,19 @@ py_gapic_library( "python-gapic-namespace=google.cloud", "python-gapic-name=appengine_admin", ], + rest_numeric_enums = True, + service_yaml = "appengine_v1.yaml", + transport = "grpc+rest", +) + +py_test( + name = "appengine_py_gapic_test", + srcs = [ + "appengine_py_gapic_pytest.py", + "appengine_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":appengine_py_gapic"], ) # Open Source Packages @@ -204,38 +225,20 @@ py_gapic_assembly_pkg( ], ) -############################################################################## -# PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", -) - php_proto_library( name = "appengine_php_proto", deps = [":appengine_proto"], ) -php_grpc_library( - name = "appengine_php_grpc", - srcs = [":appengine_proto"], - deps = [":appengine_php_proto"], -) - php_gapic_library( name = "appengine_php_gapic", srcs = [":appengine_proto_with_info"], grpc_service_config = "appengine_grpc_service_config.json", + migration_mode = "MIGRATING", + rest_numeric_enums = True, service_yaml = "appengine_v1.yaml", - deps = [ - ":appengine_php_grpc", - ":appengine_php_proto", - ], + transport = "grpc+rest", + deps = [":appengine_php_proto"], ) # Open Source Packages @@ -243,20 +246,10 @@ php_gapic_assembly_pkg( name = "google-cloud-appengine-v1-php", deps = [ ":appengine_php_gapic", - ":appengine_php_grpc", ":appengine_php_proto", ], ) -############################################################################## -# Node.js -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - nodejs_gapic_library( name = "appengine_nodejs_gapic", package_name = "@google-cloud/appengine-admin", @@ -264,7 +257,9 @@ nodejs_gapic_library( extra_protoc_parameters = ["metadata"], grpc_service_config = "appengine_grpc_service_config.json", package = "google.appengine.v1", + rest_numeric_enums = True, service_yaml = "appengine_v1.yaml", + transport = "grpc+rest", deps = [], ) @@ -276,17 +271,6 @@ nodejs_gapic_assembly_pkg( ], ) -############################################################################## -# Ruby -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "ruby_gapic_assembly_pkg", - "ruby_cloud_gapic_library", - "ruby_grpc_library", - "ruby_proto_library", -) - ruby_proto_library( name = "appengine_ruby_proto", deps = [":appengine_proto"], @@ -308,8 +292,11 @@ ruby_cloud_gapic_library( "ruby-cloud-api-id=appengine.googleapis.com", "ruby-cloud-api-shortname=appengine", ], + rest_numeric_enums = True, ruby_cloud_description = "The App Engine Admin API provisions and manages your App Engine applications.", ruby_cloud_title = "App Engine Admin V1", + service_yaml = "appengine_v1.yaml", + transport = "grpc+rest", deps = [ ":appengine_ruby_grpc", ":appengine_ruby_proto", @@ -326,17 +313,6 @@ ruby_gapic_assembly_pkg( ], ) -############################################################################## -# C# -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "csharp_gapic_assembly_pkg", - "csharp_gapic_library", - "csharp_grpc_library", - "csharp_proto_library", -) - csharp_proto_library( name = "appengine_csharp_proto", deps = [":appengine_proto"], @@ -353,6 +329,9 @@ csharp_gapic_library( srcs = [":appengine_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", grpc_service_config = "appengine_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "appengine_v1.yaml", + transport = "grpc+rest", deps = [ ":appengine_csharp_grpc", ":appengine_csharp_proto", @@ -369,7 +348,14 @@ csharp_gapic_assembly_pkg( ], ) -############################################################################## -# C++ -############################################################################## -# Put your C++ rules here +cc_proto_library( + name = "appengine_cc_proto", + deps = [":appengine_proto"], +) + +cc_grpc_library( + name = "appengine_cc_grpc", + srcs = [":appengine_proto"], + grpc_only = True, + deps = [":appengine_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/app_yaml.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/app_yaml.proto index 657ad97f..91464fde 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/app_yaml.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/app_yaml.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,10 +17,9 @@ syntax = "proto3"; package google.appengine.v1; import "google/protobuf/duration.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "AppYamlProto"; option java_package = "com.google.appengine.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/appengine.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/appengine.proto index 76c6d687..0d63466e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/appengine.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/appengine.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,22 +16,22 @@ syntax = "proto3"; package google.appengine.v1; +import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/appengine/v1/application.proto"; import "google/appengine/v1/certificate.proto"; import "google/appengine/v1/domain.proto"; import "google/appengine/v1/domain_mapping.proto"; import "google/appengine/v1/firewall.proto"; import "google/appengine/v1/instance.proto"; -import "google/appengine/v1/version.proto"; import "google/appengine/v1/service.proto"; -import "google/api/annotations.proto"; +import "google/appengine/v1/version.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -import "google/api/client.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "AppengineProto"; option java_package = "com.google.appengine.v1"; @@ -51,6 +51,7 @@ service Applications { option (google.api.http) = { get: "/v1/{name=apps/*}" }; + option (google.api.method_signature) = "name"; } // Creates an App Engine application for a Google Cloud Platform project. @@ -76,6 +77,7 @@ service Applications { // // * `auth_domain` - Google authentication domain for controlling user access to the application. // * `default_cookie_expiration` - Cookie expiration policy for the application. + // * `iap` - Identity-Aware Proxy properties for the application. rpc UpdateApplication(UpdateApplicationRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{name=apps/*}" @@ -129,7 +131,7 @@ message UpdateApplicationRequest { // An Application containing the updated resource. Application application = 2; - // Standard field mask for the set of fields to be updated. + // Required. Standard field mask for the set of fields to be updated. google.protobuf.FieldMask update_mask = 3; } @@ -221,7 +223,7 @@ message UpdateServiceRequest { // field mask will be updated. Service service = 2; - // Standard field mask for the set of fields to be updated. + // Required. Standard field mask for the set of fields to be updated. google.protobuf.FieldMask update_mask = 3; // Set to `true` to gradually shift traffic to one or more versions that you @@ -365,6 +367,19 @@ message ListVersionsResponse { string next_page_token = 2; } +// Fields that should be returned when [Version][google.appengine.v1.Version] resources +// are retrieved. +enum VersionView { + // Basic version information including scaling and inbound services, + // but not detailed deployment information. + BASIC = 0; + + // The information from `BASIC`, plus detailed information about the + // deployment. This format is required when creating resources, but + // is not returned in `Get` or `List` by default. + FULL = 1; +} + // Request message for `Versions.GetVersion`. message GetVersionRequest { // Name of the resource requested. Example: @@ -399,19 +414,6 @@ message UpdateVersionRequest { google.protobuf.FieldMask update_mask = 3; } -// Fields that should be returned when [Version][google.appengine.v1.Version] resources -// are retrieved. -enum VersionView { - // Basic version information including scaling and inbound services, - // but not detailed deployment information. - BASIC = 0; - - // The information from `BASIC`, plus detailed information about the - // deployment. This format is required when creating resources, but - // is not returned in `Get` or `List` by default. - FULL = 1; -} - // Request message for `Versions.DeleteVersion`. message DeleteVersionRequest { // Name of the resource requested. Example: @@ -419,6 +421,73 @@ message DeleteVersionRequest { string name = 1; } +// Manages instances of a version. +service Instances { + option (google.api.default_host) = "appengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/appengine.admin," + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; + + // Lists the instances of a version. + // + // Tip: To aggregate details about instances over time, see the + // [Stackdriver Monitoring API](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). + rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) { + option (google.api.http) = { + get: "/v1/{parent=apps/*/services/*/versions/*}/instances" + }; + } + + // Gets instance information. + rpc GetInstance(GetInstanceRequest) returns (Instance) { + option (google.api.http) = { + get: "/v1/{name=apps/*/services/*/versions/*/instances/*}" + }; + } + + // Stops a running instance. + // + // The instance might be automatically recreated based on the scaling settings + // of the version. For more information, see "How Instances are Managed" + // ([standard environment](https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed) | + // [flexible environment](https://cloud.google.com/appengine/docs/flexible/python/how-instances-are-managed)). + // + // To ensure that instances are not re-created and avoid getting billed, you + // can stop all instances within the target version by changing the serving + // status of the version to `STOPPED` with the + // [`apps.services.versions.patch`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions/patch) + // method. + rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=apps/*/services/*/versions/*/instances/*}" + }; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadataV1" + }; + } + + // Enables debugging on a VM instance. This allows you to use the SSH + // command to connect to the virtual machine where the instance lives. + // While in "debug mode", the instance continues to serve live traffic. + // You should delete the instance when you are done debugging and then + // allow the system to take over and determine if another instance + // should be started. + // + // Only applicable for instances in App Engine flexible environment. + rpc DebugInstance(DebugInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=apps/*/services/*/versions/*/instances/*}:debug" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Instance" + metadata_type: "OperationMetadataV1" + }; + } +} + // Request message for `Instances.ListInstances`. message ListInstancesRequest { // Name of the parent Version resource. Example: @@ -471,91 +540,91 @@ message DebugInstanceRequest { string ssh_key = 2; } -// Request message for `Firewall.ListIngressRules`. -message ListIngressRulesRequest { - // Name of the Firewall collection to retrieve. - // Example: `apps/myapp/firewall/ingressRules`. - string parent = 1; - - // Maximum results to return per page. - int32 page_size = 2; - - // Continuation token for fetching the next page of results. - string page_token = 3; - - // A valid IP Address. If set, only rules matching this address will be - // returned. The first returned rule will be the rule that fires on requests - // from this IP. - string matching_address = 4; -} - -// Manages instances of a version. -service Instances { +// Firewall resources are used to define a collection of access control rules +// for an Application. Each rule is defined with a position which specifies +// the rule's order in the sequence of rules, an IP range to be matched against +// requests, and an action to take upon matching requests. +// +// Every request is evaluated against the Firewall rules in priority order. +// Processesing stops at the first rule which matches the request's IP address. +// A final rule always specifies an action that applies to all remaining +// IP addresses. The default final rule for a newly-created application will be +// set to "allow" if not otherwise specified by the user. +service Firewall { option (google.api.default_host) = "appengine.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/appengine.admin," "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/cloud-platform.read-only"; - // Lists the instances of a version. - // - // Tip: To aggregate details about instances over time, see the - // [Stackdriver Monitoring API](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). - rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) { + // Lists the firewall rules of an application. + rpc ListIngressRules(ListIngressRulesRequest) returns (ListIngressRulesResponse) { option (google.api.http) = { - get: "/v1/{parent=apps/*/services/*/versions/*}/instances" + get: "/v1/{parent=apps/*}/firewall/ingressRules" }; } - // Gets instance information. - rpc GetInstance(GetInstanceRequest) returns (Instance) { + // Replaces the entire firewall ruleset in one bulk operation. This overrides + // and replaces the rules of an existing firewall with the new rules. + // + // If the final rule does not match traffic with the '*' wildcard IP range, + // then an "allow all" rule is explicitly added to the end of the list. + rpc BatchUpdateIngressRules(BatchUpdateIngressRulesRequest) returns (BatchUpdateIngressRulesResponse) { option (google.api.http) = { - get: "/v1/{name=apps/*/services/*/versions/*/instances/*}" + post: "/v1/{name=apps/*/firewall/ingressRules}:batchUpdate" + body: "*" }; } - // Stops a running instance. - // - // The instance might be automatically recreated based on the scaling settings - // of the version. For more information, see "How Instances are Managed" - // ([standard environment](https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed) | - // [flexible environment](https://cloud.google.com/appengine/docs/flexible/python/how-instances-are-managed)). - // - // To ensure that instances are not re-created and avoid getting billed, you - // can stop all instances within the target version by changing the serving - // status of the version to `STOPPED` with the - // [`apps.services.versions.patch`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions/patch) - // method. - rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { + // Creates a firewall rule for the application. + rpc CreateIngressRule(CreateIngressRuleRequest) returns (google.appengine.v1.FirewallRule) { option (google.api.http) = { - delete: "/v1/{name=apps/*/services/*/versions/*/instances/*}" + post: "/v1/{parent=apps/*}/firewall/ingressRules" + body: "rule" }; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadataV1" + } + + // Gets the specified firewall rule. + rpc GetIngressRule(GetIngressRuleRequest) returns (google.appengine.v1.FirewallRule) { + option (google.api.http) = { + get: "/v1/{name=apps/*/firewall/ingressRules/*}" }; } - // Enables debugging on a VM instance. This allows you to use the SSH - // command to connect to the virtual machine where the instance lives. - // While in "debug mode", the instance continues to serve live traffic. - // You should delete the instance when you are done debugging and then - // allow the system to take over and determine if another instance - // should be started. - // - // Only applicable for instances in App Engine flexible environment. - rpc DebugInstance(DebugInstanceRequest) returns (google.longrunning.Operation) { + // Updates the specified firewall rule. + rpc UpdateIngressRule(UpdateIngressRuleRequest) returns (google.appengine.v1.FirewallRule) { option (google.api.http) = { - post: "/v1/{name=apps/*/services/*/versions/*/instances/*}:debug" - body: "*" + patch: "/v1/{name=apps/*/firewall/ingressRules/*}" + body: "rule" }; - option (google.longrunning.operation_info) = { - response_type: "Instance" - metadata_type: "OperationMetadataV1" + } + + // Deletes the specified firewall rule. + rpc DeleteIngressRule(DeleteIngressRuleRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=apps/*/firewall/ingressRules/*}" }; } } +// Request message for `Firewall.ListIngressRules`. +message ListIngressRulesRequest { + // Name of the Firewall collection to retrieve. + // Example: `apps/myapp/firewall/ingressRules`. + string parent = 1; + + // Maximum results to return per page. + int32 page_size = 2; + + // Continuation token for fetching the next page of results. + string page_token = 3; + + // A valid IP Address. If set, only rules matching this address will be + // returned. The first returned rule will be the rule that fires on requests + // from this IP. + string matching_address = 4; +} + // Response message for `Firewall.ListIngressRules`. message ListIngressRulesResponse { // The ingress FirewallRules for this application. @@ -627,6 +696,24 @@ message DeleteIngressRuleRequest { string name = 1; } +// Manages domains a user is authorized to administer. To authorize use of a +// domain, verify ownership via +// [Webmaster Central](https://www.google.com/webmasters/verification/home). +service AuthorizedDomains { + option (google.api.default_host) = "appengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/appengine.admin," + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; + + // Lists all domains the user is authorized to administer. + rpc ListAuthorizedDomains(ListAuthorizedDomainsRequest) returns (ListAuthorizedDomainsResponse) { + option (google.api.http) = { + get: "/v1/{parent=apps/*}/authorizedDomains" + }; + } +} + // Request message for `AuthorizedDomains.ListAuthorizedDomains`. message ListAuthorizedDomainsRequest { // Name of the parent Application resource. Example: `apps/myapp`. @@ -648,95 +735,79 @@ message ListAuthorizedDomainsResponse { string next_page_token = 2; } -// Request message for `AuthorizedCertificates.ListAuthorizedCertificates`. -message ListAuthorizedCertificatesRequest { - // Name of the parent `Application` resource. Example: `apps/myapp`. - string parent = 1; - - // Controls the set of fields returned in the `LIST` response. - AuthorizedCertificateView view = 4; +// Manages SSL certificates a user is authorized to administer. A user can +// administer any SSL certificates applicable to their authorized domains. +service AuthorizedCertificates { + option (google.api.default_host) = "appengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/appengine.admin," + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; - // Maximum results to return per page. - int32 page_size = 2; - - // Continuation token for fetching the next page of results. - string page_token = 3; -} - -// Response message for `AuthorizedCertificates.ListAuthorizedCertificates`. -message ListAuthorizedCertificatesResponse { - // The SSL certificates the user is authorized to administer. - repeated google.appengine.v1.AuthorizedCertificate certificates = 1; - - // Continuation token for fetching the next page of results. - string next_page_token = 2; -} - -// Firewall resources are used to define a collection of access control rules -// for an Application. Each rule is defined with a position which specifies -// the rule's order in the sequence of rules, an IP range to be matched against -// requests, and an action to take upon matching requests. -// -// Every request is evaluated against the Firewall rules in priority order. -// Processesing stops at the first rule which matches the request's IP address. -// A final rule always specifies an action that applies to all remaining -// IP addresses. The default final rule for a newly-created application will be -// set to "allow" if not otherwise specified by the user. -service Firewall { - option (google.api.default_host) = "appengine.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/appengine.admin," - "https://www.googleapis.com/auth/cloud-platform," - "https://www.googleapis.com/auth/cloud-platform.read-only"; - - // Lists the firewall rules of an application. - rpc ListIngressRules(ListIngressRulesRequest) returns (ListIngressRulesResponse) { + // Lists all SSL certificates the user is authorized to administer. + rpc ListAuthorizedCertificates(ListAuthorizedCertificatesRequest) returns (ListAuthorizedCertificatesResponse) { option (google.api.http) = { - get: "/v1/{parent=apps/*}/firewall/ingressRules" + get: "/v1/{parent=apps/*}/authorizedCertificates" }; } - // Replaces the entire firewall ruleset in one bulk operation. This overrides - // and replaces the rules of an existing firewall with the new rules. - // - // If the final rule does not match traffic with the '*' wildcard IP range, - // then an "allow all" rule is explicitly added to the end of the list. - rpc BatchUpdateIngressRules(BatchUpdateIngressRulesRequest) returns (BatchUpdateIngressRulesResponse) { + // Gets the specified SSL certificate. + rpc GetAuthorizedCertificate(GetAuthorizedCertificateRequest) returns (google.appengine.v1.AuthorizedCertificate) { option (google.api.http) = { - post: "/v1/{name=apps/*/firewall/ingressRules}:batchUpdate" - body: "*" + get: "/v1/{name=apps/*/authorizedCertificates/*}" }; } - // Creates a firewall rule for the application. - rpc CreateIngressRule(CreateIngressRuleRequest) returns (google.appengine.v1.FirewallRule) { + // Uploads the specified SSL certificate. + rpc CreateAuthorizedCertificate(CreateAuthorizedCertificateRequest) returns (google.appengine.v1.AuthorizedCertificate) { option (google.api.http) = { - post: "/v1/{parent=apps/*}/firewall/ingressRules" - body: "rule" + post: "/v1/{parent=apps/*}/authorizedCertificates" + body: "certificate" }; } - // Gets the specified firewall rule. - rpc GetIngressRule(GetIngressRuleRequest) returns (google.appengine.v1.FirewallRule) { + // Updates the specified SSL certificate. To renew a certificate and maintain + // its existing domain mappings, update `certificate_data` with a new + // certificate. The new certificate must be applicable to the same domains as + // the original certificate. The certificate `display_name` may also be + // updated. + rpc UpdateAuthorizedCertificate(UpdateAuthorizedCertificateRequest) returns (google.appengine.v1.AuthorizedCertificate) { option (google.api.http) = { - get: "/v1/{name=apps/*/firewall/ingressRules/*}" + patch: "/v1/{name=apps/*/authorizedCertificates/*}" + body: "certificate" }; } - // Updates the specified firewall rule. - rpc UpdateIngressRule(UpdateIngressRuleRequest) returns (google.appengine.v1.FirewallRule) { + // Deletes the specified SSL certificate. + rpc DeleteAuthorizedCertificate(DeleteAuthorizedCertificateRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - patch: "/v1/{name=apps/*/firewall/ingressRules/*}" - body: "rule" + delete: "/v1/{name=apps/*/authorizedCertificates/*}" }; } +} - // Deletes the specified firewall rule. - rpc DeleteIngressRule(DeleteIngressRuleRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/{name=apps/*/firewall/ingressRules/*}" - }; - } +// Request message for `AuthorizedCertificates.ListAuthorizedCertificates`. +message ListAuthorizedCertificatesRequest { + // Name of the parent `Application` resource. Example: `apps/myapp`. + string parent = 1; + + // Controls the set of fields returned in the `LIST` response. + AuthorizedCertificateView view = 4; + + // Maximum results to return per page. + int32 page_size = 2; + + // Continuation token for fetching the next page of results. + string page_token = 3; +} + +// Response message for `AuthorizedCertificates.ListAuthorizedCertificates`. +message ListAuthorizedCertificatesResponse { + // The SSL certificates the user is authorized to administer. + repeated google.appengine.v1.AuthorizedCertificate certificates = 1; + + // Continuation token for fetching the next page of results. + string next_page_token = 2; } // Request message for `AuthorizedCertificates.GetAuthorizedCertificate`. @@ -749,6 +820,18 @@ message GetAuthorizedCertificateRequest { AuthorizedCertificateView view = 2; } +// Fields that should be returned when an AuthorizedCertificate resource is +// retrieved. +enum AuthorizedCertificateView { + // Basic certificate information, including applicable domains and expiration + // date. + BASIC_CERTIFICATE = 0; + + // The information from `BASIC_CERTIFICATE`, plus detailed information on the + // domain mappings that have this certificate mapped. + FULL_CERTIFICATE = 1; +} + // Request message for `AuthorizedCertificates.CreateAuthorizedCertificate`. message CreateAuthorizedCertificateRequest { // Name of the parent `Application` resource. Example: `apps/myapp`. @@ -780,166 +863,6 @@ message DeleteAuthorizedCertificateRequest { string name = 1; } -// Request message for `DomainMappings.ListDomainMappings`. -message ListDomainMappingsRequest { - // Name of the parent Application resource. Example: `apps/myapp`. - string parent = 1; - - // Maximum results to return per page. - int32 page_size = 2; - - // Continuation token for fetching the next page of results. - string page_token = 3; -} - -// Response message for `DomainMappings.ListDomainMappings`. -message ListDomainMappingsResponse { - // The domain mappings for the application. - repeated google.appengine.v1.DomainMapping domain_mappings = 1; - - // Continuation token for fetching the next page of results. - string next_page_token = 2; -} - -// Request message for `DomainMappings.GetDomainMapping`. -message GetDomainMappingRequest { - // Name of the resource requested. Example: - // `apps/myapp/domainMappings/example.com`. - string name = 1; -} - -// Request message for `DomainMappings.CreateDomainMapping`. -message CreateDomainMappingRequest { - // Name of the parent Application resource. Example: `apps/myapp`. - string parent = 1; - - // Domain mapping configuration. - google.appengine.v1.DomainMapping domain_mapping = 2; - - // Whether the domain creation should override any existing mappings for this - // domain. By default, overrides are rejected. - DomainOverrideStrategy override_strategy = 4; -} - -// Manages domains a user is authorized to administer. To authorize use of a -// domain, verify ownership via -// [Webmaster Central](https://www.google.com/webmasters/verification/home). -service AuthorizedDomains { - option (google.api.default_host) = "appengine.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/appengine.admin," - "https://www.googleapis.com/auth/cloud-platform," - "https://www.googleapis.com/auth/cloud-platform.read-only"; - - // Lists all domains the user is authorized to administer. - rpc ListAuthorizedDomains(ListAuthorizedDomainsRequest) returns (ListAuthorizedDomainsResponse) { - option (google.api.http) = { - get: "/v1/{parent=apps/*}/authorizedDomains" - }; - } -} - -// Request message for `DomainMappings.UpdateDomainMapping`. -message UpdateDomainMappingRequest { - // Name of the resource to update. Example: - // `apps/myapp/domainMappings/example.com`. - string name = 1; - - // A domain mapping containing the updated resource. Only fields set - // in the field mask will be updated. - google.appengine.v1.DomainMapping domain_mapping = 2; - - // Standard field mask for the set of fields to be updated. - google.protobuf.FieldMask update_mask = 3; -} - -// Request message for `DomainMappings.DeleteDomainMapping`. -message DeleteDomainMappingRequest { - // Name of the resource to delete. Example: - // `apps/myapp/domainMappings/example.com`. - string name = 1; -} - -// Manages SSL certificates a user is authorized to administer. A user can -// administer any SSL certificates applicable to their authorized domains. -service AuthorizedCertificates { - option (google.api.default_host) = "appengine.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/appengine.admin," - "https://www.googleapis.com/auth/cloud-platform," - "https://www.googleapis.com/auth/cloud-platform.read-only"; - - // Lists all SSL certificates the user is authorized to administer. - rpc ListAuthorizedCertificates(ListAuthorizedCertificatesRequest) returns (ListAuthorizedCertificatesResponse) { - option (google.api.http) = { - get: "/v1/{parent=apps/*}/authorizedCertificates" - }; - } - - // Gets the specified SSL certificate. - rpc GetAuthorizedCertificate(GetAuthorizedCertificateRequest) returns (google.appengine.v1.AuthorizedCertificate) { - option (google.api.http) = { - get: "/v1/{name=apps/*/authorizedCertificates/*}" - }; - } - - // Uploads the specified SSL certificate. - rpc CreateAuthorizedCertificate(CreateAuthorizedCertificateRequest) returns (google.appengine.v1.AuthorizedCertificate) { - option (google.api.http) = { - post: "/v1/{parent=apps/*}/authorizedCertificates" - body: "certificate" - }; - } - - // Updates the specified SSL certificate. To renew a certificate and maintain - // its existing domain mappings, update `certificate_data` with a new - // certificate. The new certificate must be applicable to the same domains as - // the original certificate. The certificate `display_name` may also be - // updated. - rpc UpdateAuthorizedCertificate(UpdateAuthorizedCertificateRequest) returns (google.appengine.v1.AuthorizedCertificate) { - option (google.api.http) = { - patch: "/v1/{name=apps/*/authorizedCertificates/*}" - body: "certificate" - }; - } - - // Deletes the specified SSL certificate. - rpc DeleteAuthorizedCertificate(DeleteAuthorizedCertificateRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/{name=apps/*/authorizedCertificates/*}" - }; - } -} - -// Fields that should be returned when an AuthorizedCertificate resource is -// retrieved. -enum AuthorizedCertificateView { - // Basic certificate information, including applicable domains and expiration - // date. - BASIC_CERTIFICATE = 0; - - // The information from `BASIC_CERTIFICATE`, plus detailed information on the - // domain mappings that have this certificate mapped. - FULL_CERTIFICATE = 1; -} - -// Override strategy for mutating an existing mapping. -enum DomainOverrideStrategy { - // Strategy unspecified. Defaults to `STRICT`. - UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY = 0; - - // Overrides not allowed. If a mapping already exists for the - // specified domain, the request will return an ALREADY_EXISTS (409). - STRICT = 1; - - // Overrides allowed. If a mapping already exists for the specified domain, - // the request will overwrite it. Note that this might stop another - // Google product from serving. For example, if the domain is - // mapped to another App Engine application, that app will no - // longer serve from that domain. - OVERRIDE = 2; -} - // Manages domains serving an application. service DomainMappings { option (google.api.default_host) = "appengine.googleapis.com"; @@ -1004,3 +927,82 @@ service DomainMappings { }; } } + +// Request message for `DomainMappings.ListDomainMappings`. +message ListDomainMappingsRequest { + // Name of the parent Application resource. Example: `apps/myapp`. + string parent = 1; + + // Maximum results to return per page. + int32 page_size = 2; + + // Continuation token for fetching the next page of results. + string page_token = 3; +} + +// Response message for `DomainMappings.ListDomainMappings`. +message ListDomainMappingsResponse { + // The domain mappings for the application. + repeated google.appengine.v1.DomainMapping domain_mappings = 1; + + // Continuation token for fetching the next page of results. + string next_page_token = 2; +} + +// Request message for `DomainMappings.GetDomainMapping`. +message GetDomainMappingRequest { + // Name of the resource requested. Example: + // `apps/myapp/domainMappings/example.com`. + string name = 1; +} + +// Override strategy for mutating an existing mapping. +enum DomainOverrideStrategy { + // Strategy unspecified. Defaults to `STRICT`. + UNSPECIFIED_DOMAIN_OVERRIDE_STRATEGY = 0; + + // Overrides not allowed. If a mapping already exists for the + // specified domain, the request will return an ALREADY_EXISTS (409). + STRICT = 1; + + // Overrides allowed. If a mapping already exists for the specified domain, + // the request will overwrite it. Note that this might stop another + // Google product from serving. For example, if the domain is + // mapped to another App Engine application, that app will no + // longer serve from that domain. + OVERRIDE = 2; +} + +// Request message for `DomainMappings.CreateDomainMapping`. +message CreateDomainMappingRequest { + // Name of the parent Application resource. Example: `apps/myapp`. + string parent = 1; + + // Domain mapping configuration. + google.appengine.v1.DomainMapping domain_mapping = 2; + + // Whether the domain creation should override any existing mappings for this + // domain. By default, overrides are rejected. + DomainOverrideStrategy override_strategy = 4; +} + +// Request message for `DomainMappings.UpdateDomainMapping`. +message UpdateDomainMappingRequest { + // Name of the resource to update. Example: + // `apps/myapp/domainMappings/example.com`. + string name = 1; + + // A domain mapping containing the updated resource. Only fields set + // in the field mask will be updated. + google.appengine.v1.DomainMapping domain_mapping = 2; + + // Required. Standard field mask for the set of fields to be updated. + google.protobuf.FieldMask update_mask = 3; +} + +// Request message for `DomainMappings.DeleteDomainMapping`. +message DeleteDomainMappingRequest { + // Name of the resource to delete. Example: + // `apps/myapp/domainMappings/example.com`. + string name = 1; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/appengine_v1.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/appengine_v1.yaml index 8bf77772..d3573183 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/appengine_v1.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/appengine_v1.yaml @@ -46,10 +46,16 @@ backend: deadline: 30.0 - selector: 'google.appengine.v1.AuthorizedCertificates.*' deadline: 30.0 + - selector: google.appengine.v1.AuthorizedCertificates.GetAuthorizedCertificate + deadline: 60.0 - selector: google.appengine.v1.AuthorizedDomains.ListAuthorizedDomains deadline: 30.0 - selector: 'google.appengine.v1.DomainMappings.*' deadline: 30.0 + - selector: google.appengine.v1.DomainMappings.GetDomainMapping + deadline: 60.0 + - selector: google.appengine.v1.DomainMappings.ListDomainMappings + deadline: 60.0 - selector: 'google.appengine.v1.Firewall.*' deadline: 30.0 - selector: 'google.appengine.v1.Instances.*' diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/application.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/application.proto index ca4e6b0b..3dbce8b7 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/application.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/application.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,10 +17,9 @@ syntax = "proto3"; package google.appengine.v1; import "google/protobuf/duration.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "ApplicationProto"; option java_package = "com.google.appengine.v1"; @@ -30,6 +29,20 @@ option ruby_package = "Google::Cloud::AppEngine::V1"; // An Application resource contains the top-level configuration of an App // Engine application. message Application { + enum ServingStatus { + // Serving status is unspecified. + UNSPECIFIED = 0; + + // Application is serving. + SERVING = 1; + + // Application has been disabled by the user. + USER_DISABLED = 2; + + // Application has been disabled by the system. + SYSTEM_DISABLED = 3; + } + // Identity-Aware Proxy message IdentityAwareProxy { // Whether the serving infrastructure will authenticate and @@ -57,6 +70,20 @@ message Application { string oauth2_client_secret_sha256 = 4; } + enum DatabaseType { + // Database type is unspecified. + DATABASE_TYPE_UNSPECIFIED = 0; + + // Cloud Datastore + CLOUD_DATASTORE = 1; + + // Cloud Firestore Native + CLOUD_FIRESTORE = 2; + + // Cloud Firestore in Datastore Mode + CLOUD_DATASTORE_COMPATIBILITY = 3; + } + // The feature specific settings to be used in the application. These define // behaviors that are user configurable. message FeatureSettings { @@ -73,34 +100,6 @@ message Application { bool use_container_optimized_os = 2; } - enum ServingStatus { - // Serving status is unspecified. - UNSPECIFIED = 0; - - // Application is serving. - SERVING = 1; - - // Application has been disabled by the user. - USER_DISABLED = 2; - - // Application has been disabled by the system. - SYSTEM_DISABLED = 3; - } - - enum DatabaseType { - // Database type is unspecified. - DATABASE_TYPE_UNSPECIFIED = 0; - - // Cloud Datastore - CLOUD_DATASTORE = 1; - - // Cloud Firestore Native - CLOUD_FIRESTORE = 2; - - // Cloud Firestore in Datastore Mode - CLOUD_DATASTORE_COMPATIBILITY = 3; - } - // Full path to the Application resource in the API. // Example: `apps/myapp`. // @@ -158,6 +157,11 @@ message Application { // @OutputOnly string default_bucket = 12; + // The service account associated with the application. + // This is the app-level default identity. If no identity provided during + // create version, Admin API will fallback to this one. + string service_account = 13; + IdentityAwareProxy iap = 14; // The Google Container Registry domain used for storing managed build docker diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/audit_data.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/audit_data.proto index 101dd71c..929d23ab 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/audit_data.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/audit_data.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,10 +17,9 @@ syntax = "proto3"; package google.appengine.v1; import "google/appengine/v1/appengine.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "AuditDataProto"; option java_package = "com.google.appengine.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/certificate.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/certificate.proto index 9ce5e72d..b3b1912e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/certificate.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/certificate.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,10 +17,9 @@ syntax = "proto3"; package google.appengine.v1; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "CertificateProto"; option java_package = "com.google.appengine.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/deploy.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/deploy.proto index 4d9d2c16..0b31a0ba 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/deploy.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/deploy.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,10 +17,9 @@ syntax = "proto3"; package google.appengine.v1; import "google/protobuf/duration.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "DeployProto"; option java_package = "com.google.appengine.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/deployed_files.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/deployed_files.proto index b9024c86..f10041d2 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/deployed_files.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/deployed_files.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,10 +16,8 @@ syntax = "proto3"; package google.appengine.v1; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "DeployedFilesProto"; option java_package = "com.google.appengine.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/domain.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/domain.proto index 70951382..a4924868 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/domain.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/domain.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,10 +16,8 @@ syntax = "proto3"; package google.appengine.v1; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "DomainProto"; option java_package = "com.google.appengine.v1"; @@ -28,7 +26,7 @@ option ruby_package = "Google::Cloud::AppEngine::V1"; // A domain that a user has been authorized to administer. To authorize use // of a domain, verify ownership via -// [Webmaster Central](https://www.google.com/webmasters/verification/home). +// [Search Console](https://search.google.com/search-console/welcome). message AuthorizedDomain { // Full path to the `AuthorizedDomain` resource in the API. Example: // `apps/myapp/authorizedDomains/example.com`. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/domain_mapping.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/domain_mapping.proto index d0cfec75..81947761 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/domain_mapping.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/domain_mapping.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,10 +16,8 @@ syntax = "proto3"; package google.appengine.v1; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "DomainMappingProto"; option java_package = "com.google.appengine.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/firewall.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/firewall.proto index ba4e9634..15c189eb 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/firewall.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/firewall.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,10 +16,8 @@ syntax = "proto3"; package google.appengine.v1; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "FirewallProto"; option java_package = "com.google.appengine.v1.firewall"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/instance.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/instance.proto index d2f314f8..e50fc619 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/instance.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/instance.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,10 +19,9 @@ package google.appengine.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "InstanceProto"; option java_package = "com.google.appengine.v1"; @@ -37,6 +36,15 @@ message Instance { pattern: "apps/{app}/services/{service}/versions/{version}/instances/{instance}" }; + // Availability of the instance. + enum Availability { + UNSPECIFIED = 0; + + RESIDENT = 1; + + DYNAMIC = 2; + } + // Wrapper for LivenessState enum. message Liveness { // Liveness health check status for Flex instances. @@ -71,15 +79,6 @@ message Instance { } - // Availability of the instance. - enum Availability { - UNSPECIFIED = 0; - - RESIDENT = 1; - - DYNAMIC = 2; - } - // Output only. Full path to the Instance resource in the API. // Example: `apps/myapp/services/default/versions/v1/instances/instance-1`. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/location.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/location.proto index f150188f..c5fb300a 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/location.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/location.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,10 +17,9 @@ syntax = "proto3"; package google.appengine.v1; import "google/api/field_behavior.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "LocationProto"; option java_package = "com.google.appengine.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/network_settings.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/network_settings.proto index b6dab212..cc340ff5 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/network_settings.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/network_settings.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,10 +16,8 @@ syntax = "proto3"; package google.appengine.v1; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "NetworkSettingsProto"; option java_package = "com.google.appengine.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/operation.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/operation.proto index a8d4f7cd..04d63819 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/operation.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/operation.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,12 +16,10 @@ syntax = "proto3"; package google.appengine.v1; -import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "OperationProto"; option java_package = "com.google.appengine.v1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/service.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/service.proto index 7c03d835..5471174d 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/service.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,10 +17,9 @@ syntax = "proto3"; package google.appengine.v1; import "google/appengine/v1/network_settings.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.appengine.v1"; @@ -51,6 +50,19 @@ message Service { // different versions within the service. TrafficSplit split = 3; + // A set of labels to apply to this service. Labels are key/value pairs that + // describe the service and all resources that belong to it (e.g., + // versions). The labels can be used to search and group resources, and are + // propagated to the usage and billing reports, enabling fine-grain analysis + // of costs. An example of using labels is to tag resources belonging to + // different environments (e.g., "env=prod", "env=qa"). + // + //

Label keys and values can be no longer than 63 characters and can only + // contain lowercase letters, numeric characters, underscores, dashes, and + // international characters. Label keys must start with a lowercase letter + // or an international character. Each service can have at most 32 labels. + map labels = 4; + // Ingress settings for this service. Will apply to all versions. NetworkSettings network_settings = 6; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/version.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/version.proto index 4f253b02..5327adfd 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/version.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1/version.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,13 +18,11 @@ package google.appengine.v1; import "google/appengine/v1/app_yaml.proto"; import "google/appengine/v1/deploy.proto"; -import "google/appengine/v1/network_settings.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1"; -option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; +option go_package = "cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb"; option java_multiple_files = true; option java_outer_classname = "VersionProto"; option java_package = "com.google.appengine.v1"; @@ -104,6 +102,10 @@ message Version { // Whether to deploy this version in a container on a virtual machine. bool vm = 12; + // Allows App Engine second generation runtimes to access the legacy bundled + // services. + bool app_engine_apis = 128; + // Metadata settings that are supplied to this version to enable // beta runtime features. map beta_settings = 13; @@ -511,22 +513,6 @@ message Resources { string kms_key_reference = 5; } -// VPC access connector specification. -message VpcAccessConnector { - // Full Serverless VPC Access Connector name e.g. - // /projects/my-project/locations/us-central1/connectors/c1. - string name = 1; -} - -// The entrypoint for the application. -message Entrypoint { - // The command to run. - oneof command { - // The format should be a shell command that can be fed to `bash -c`. - string shell = 1; - } -} - // Available inbound services. enum InboundServiceType { // Not specified. @@ -572,3 +558,37 @@ enum ServingStatus { // to `SERVING`. STOPPED = 2; } + +// VPC access connector specification. +message VpcAccessConnector { + // Available egress settings. + // + // This controls what traffic is diverted through the VPC Access Connector + // resource. By default PRIVATE_IP_RANGES will be used. + enum EgressSetting { + EGRESS_SETTING_UNSPECIFIED = 0; + + // Force the use of VPC Access for all egress traffic from the function. + ALL_TRAFFIC = 1; + + // Use the VPC Access Connector for private IP space from RFC1918. + PRIVATE_IP_RANGES = 2; + } + + // Full Serverless VPC Access Connector name e.g. + // /projects/my-project/locations/us-central1/connectors/c1. + string name = 1; + + // The egress setting for the connector, controlling what traffic is diverted + // through it. + EgressSetting egress_setting = 2; +} + +// The entrypoint for the application. +message Entrypoint { + // The command to run. + oneof command { + // The format should be a shell command that can be fed to `bash -c`. + string shell = 1; + } +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/BUILD.bazel index 07ba196d..1582fd0a 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/BUILD.bazel @@ -107,7 +107,6 @@ moved_proto_library( py_proto_library( name = "appengine_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", deps = [":appengine_moved_proto"], ) @@ -119,12 +118,10 @@ py_grpc_library( ############################################################################## # PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", + "php_proto_library", ) php_proto_library( @@ -132,21 +129,9 @@ php_proto_library( deps = [":appengine_proto"], ) -php_grpc_library( - name = "appengine_php_grpc", - srcs = [":appengine_proto"], - deps = [":appengine_php_proto"], -) - ############################################################################## # Node.js ############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - ############################################################################## # Ruby diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/app_yaml.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/app_yaml.proto index d4cb4458..ec221a8a 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/app_yaml.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/app_yaml.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ syntax = "proto3"; package google.appengine.v1beta; import "google/protobuf/duration.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/appengine.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/appengine.proto index 9b26daba..67b62c0e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/appengine.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/appengine.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/application.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/application.proto index 34cb1e41..743de1e8 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/application.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/application.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ syntax = "proto3"; package google.appengine.v1beta; import "google/protobuf/duration.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/audit_data.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/audit_data.proto index 897154ef..c76d1b57 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/audit_data.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/audit_data.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ syntax = "proto3"; package google.appengine.v1beta; import "google/appengine/v1beta/appengine.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/certificate.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/certificate.proto index 9cb25399..6bae0c3d 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/certificate.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/certificate.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ syntax = "proto3"; package google.appengine.v1beta; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/deploy.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/deploy.proto index 09f6b19f..78400315 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/deploy.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/deploy.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ syntax = "proto3"; package google.appengine.v1beta; import "google/protobuf/duration.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/domain.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/domain.proto index dd434ba0..87cea788 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/domain.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/domain.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,8 +16,6 @@ syntax = "proto3"; package google.appengine.v1beta; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; @@ -28,7 +26,7 @@ option ruby_package = "Google::Cloud::AppEngine::V1beta"; // A domain that a user has been authorized to administer. To authorize use // of a domain, verify ownership via -// [Webmaster Central](https://www.google.com/webmasters/verification/home). +// [Search Console](https://search.google.com/search-console/welcome). message AuthorizedDomain { // Full path to the `AuthorizedDomain` resource in the API. Example: // `apps/myapp/authorizedDomains/example.com`. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/domain_mapping.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/domain_mapping.proto index f2527129..0b69e436 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/domain_mapping.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/domain_mapping.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ syntax = "proto3"; package google.appengine.v1beta; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/firewall.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/firewall.proto index 95b43aae..da5b87be 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/firewall.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/firewall.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ syntax = "proto3"; package google.appengine.v1beta; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/instance.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/instance.proto index d9e7154f..740ed34e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/instance.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/instance.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ package google.appengine.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/location.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/location.proto index d708c261..48afcbe6 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/location.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/location.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ syntax = "proto3"; package google.appengine.v1beta; import "google/api/field_behavior.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/network_settings.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/network_settings.proto index 3bc42ae9..d5c99cd8 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/network_settings.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/network_settings.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ syntax = "proto3"; package google.appengine.v1beta; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/operation.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/operation.proto index 3e9422fa..14df057f 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/operation.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/operation.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,9 +16,7 @@ syntax = "proto3"; package google.appengine.v1beta; -import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/service.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/service.proto index 1e65409a..982a9b67 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/service.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/service.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ syntax = "proto3"; package google.appengine.v1beta; import "google/appengine/v1beta/network_settings.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/version.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/version.proto index 39f93b98..90a69f17 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/version.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/appengine/v1beta/version.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import "google/appengine/v1beta/deploy.proto"; import "google/appengine/v1beta/network_settings.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/BUILD.bazel index a87c57fe..c1323cab 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/BUILD.bazel @@ -1 +1,41 @@ +# This build file includes a target for the Ruby wrapper library for +# google-cloud-datastore-admin. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +# Export yaml configs. exports_files(glob(["*.yaml"])) + +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", +) + +# Generates a Ruby wrapper client for datastore admin. +# Ruby wrapper clients are versionless, but are generated from source protos +# for a particular service version, v1 in this case. +ruby_cloud_gapic_library( + name = "admin_ruby_wrapper", + srcs = ["//google/datastore/admin/v1:admin_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-datastore-admin", + "ruby-cloud-env-prefix=DATASTORE", + "ruby-cloud-wrapper-of=v1:0.11", + "ruby-cloud-product-url=https://cloud.google.com/datastore", + "ruby-cloud-api-id=datastore.googleapis.com", + "ruby-cloud-api-shortname=datastore", + ], + ruby_cloud_description = "Firestore in Datastore mode is a NoSQL document database built for automatic scaling, high performance, and ease of application development.", + ruby_cloud_title = "Firestore in Datastore mode Admin", + transport = "grpc+rest", +) + +# Open Source package. +ruby_gapic_assembly_pkg( + name = "google-cloud-datastore-admin-ruby", + deps = [ + ":admin_ruby_wrapper", + ], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/BUILD.bazel index 19352f5e..e8ba27ed 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/BUILD.bazel @@ -1,25 +1,65 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. ############################################################################## # Common ############################################################################## load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", + "proto_library_with_info", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_test", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) proto_library( name = "admin_proto", srcs = [ "datastore_admin.proto", "index.proto", + "migration.proto", ], deps = [ "//google/api:annotations_proto", "//google/api:client_proto", "//google/api:field_behavior_proto", "//google/longrunning:operations_proto", + "@com_google_protobuf//:empty_proto", "@com_google_protobuf//:timestamp_proto", ], ) @@ -32,18 +72,6 @@ proto_library_with_info( ], ) -############################################################################## -# Java -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "java_gapic_assembly_gradle_pkg", - "java_gapic_library", - "java_gapic_test", - "java_grpc_library", - "java_proto_library", -) - java_proto_library( name = "admin_java_proto", deps = [":admin_proto"], @@ -60,17 +88,22 @@ java_gapic_library( srcs = [":admin_proto_with_info"], gapic_yaml = "datastore_admin_gapic.yaml", grpc_service_config = "datastore_admin_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "datastore_v1.yaml", test_deps = [ ":admin_java_grpc", ], + transport = "grpc+rest", deps = [ ":admin_java_proto", + "//google/api:api_java_proto", ], ) java_gapic_test( name = "admin_java_gapic_test_suite", test_classes = [ + "com.google.cloud.datastore.admin.v1.DatastoreAdminClientHttpJsonTest", "com.google.cloud.datastore.admin.v1.DatastoreAdminClientTest", ], runtime_deps = [":admin_java_gapic_test"], @@ -79,6 +112,8 @@ java_gapic_test( # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-cloud-datastore-admin-v1-java", + include_samples = True, + transport = "grpc+rest", deps = [ ":admin_java_gapic", ":admin_java_grpc", @@ -87,21 +122,10 @@ java_gapic_assembly_gradle_pkg( ], ) -############################################################################## -# Go -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "go_gapic_assembly_pkg", - "go_gapic_library", - "go_proto_library", - "go_test", -) - go_proto_library( name = "admin_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/datastore/admin/v1", + importpath = "cloud.google.com/go/datastore/admin/apiv1/adminpb", protos = [":admin_proto"], deps = [ "//google/api:annotations_go_proto", @@ -114,87 +138,77 @@ go_gapic_library( srcs = [":admin_proto_with_info"], grpc_service_config = "datastore_admin_grpc_service_config.json", importpath = "cloud.google.com/go/datastore/admin/apiv1;admin", - service_yaml = "datastore_admin_v1.yaml", + metadata = True, + release_level = "ga", + rest_numeric_enums = True, + service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", deps = [ ":admin_go_proto", "//google/longrunning:longrunning_go_proto", - "@com_google_cloud_go//longrunning:go_default_library", - "@com_google_cloud_go//longrunning/autogen:go_default_library", + "@com_google_cloud_go_longrunning//:go_default_library", + "@com_google_cloud_go_longrunning//autogen:go_default_library", ], ) -go_test( - name = "admin_go_gapic_test", - srcs = [":admin_go_gapic_srcjar_test"], - embed = [":admin_go_gapic"], - importpath = "cloud.google.com/go/datastore/admin/apiv1", -) - # Open Source Packages go_gapic_assembly_pkg( name = "gapi-cloud-datastore-admin-v1-go", deps = [ ":admin_go_gapic", + ":admin_go_gapic_srcjar-metadata.srcjar", + ":admin_go_gapic_srcjar-snippets.srcjar", ":admin_go_gapic_srcjar-test.srcjar", ":admin_go_proto", ], ) -############################################################################## -# Python -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "py_gapic_assembly_pkg", - "py_gapic_library", -) - py_gapic_library( - name = "datastore-admin_py_gapic", + name = "admin_py_gapic", srcs = [":admin_proto"], grpc_service_config = "datastore_admin_grpc_service_config.json", - opt_args = ["python-gapic-namespace=google.cloud, python-gapic-name=datastore-admin"], + opt_args = [ + "python-gapic-name=datastore_admin", + "python-gapic-namespace=google.cloud", + "warehouse-package-name=google-cloud-datastore", + ], + rest_numeric_enums = True, + service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", ) +py_test( + name = "admin_py_gapic_test", + srcs = [ + "admin_py_gapic_pytest.py", + "admin_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":admin_py_gapic"], +) + +# Open Source Packages py_gapic_assembly_pkg( name = "datastore-admin-v1-py", deps = [ - ":datastore-admin_py_gapic", + ":admin_py_gapic", ], ) -############################################################################## -# PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", -) - php_proto_library( name = "admin_php_proto", deps = [":admin_proto"], ) -php_grpc_library( - name = "admin_php_grpc", - srcs = [":admin_proto"], - deps = [":admin_php_proto"], -) - php_gapic_library( name = "admin_php_gapic", srcs = [":admin_proto_with_info"], grpc_service_config = "datastore_admin_grpc_service_config.json", - service_yaml = "datastore_admin_v1.yaml", - deps = [ - ":admin_php_grpc", - ":admin_php_proto", - ], + migration_mode = "NEW_SURFACE_ONLY", + rest_numeric_enums = True, + service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", + deps = [":admin_php_proto"], ) # Open Source Packages @@ -202,27 +216,20 @@ php_gapic_assembly_pkg( name = "google-cloud-datastore-admin-v1-php", deps = [ ":admin_php_gapic", - ":admin_php_grpc", ":admin_php_proto", ], ) -############################################################################## -# Node.js -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - nodejs_gapic_library( name = "admin_nodejs_gapic", + package_name = "@google-cloud/datastore-admin", src = ":admin_proto_with_info", extra_protoc_parameters = ["metadata"], grpc_service_config = "datastore_admin_grpc_service_config.json", package = "google.datastore.admin.v1", - service_yaml = "datastore_admin_v1.yaml", + rest_numeric_enums = True, + service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", deps = [], ) @@ -234,17 +241,6 @@ nodejs_gapic_assembly_pkg( ], ) -############################################################################## -# Ruby -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "ruby_cloud_gapic_library", - "ruby_gapic_assembly_pkg", - "ruby_grpc_library", - "ruby_proto_library", -) - ruby_proto_library( name = "admin_ruby_proto", deps = [":admin_proto"], @@ -267,8 +263,11 @@ ruby_cloud_gapic_library( "ruby-cloud-api-shortname=datastore", ], grpc_service_config = "datastore_admin_grpc_service_config.json", + rest_numeric_enums = True, ruby_cloud_description = "Firestore in Datastore mode is a NoSQL document database built for automatic scaling, high performance, and ease of application development.", ruby_cloud_title = "Firestore in Datastore mode Admin V1", + service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", deps = [ ":admin_ruby_grpc", ":admin_ruby_proto", @@ -285,17 +284,6 @@ ruby_gapic_assembly_pkg( ], ) -############################################################################## -# C# -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "csharp_gapic_assembly_pkg", - "csharp_gapic_library", - "csharp_grpc_library", - "csharp_proto_library", -) - csharp_proto_library( name = "admin_csharp_proto", deps = [":admin_proto"], @@ -312,6 +300,9 @@ csharp_gapic_library( srcs = [":admin_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", grpc_service_config = "datastore_admin_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", deps = [ ":admin_csharp_grpc", ":admin_csharp_proto", @@ -328,7 +319,14 @@ csharp_gapic_assembly_pkg( ], ) -############################################################################## -# C++ -############################################################################## -# Put your C++ rules here +cc_proto_library( + name = "admin_cc_proto", + deps = [":admin_proto"], +) + +cc_grpc_library( + name = "admin_cc_grpc", + srcs = [":admin_proto"], + grpc_only = True, + deps = [":admin_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_admin.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_admin.proto index 99a9bd4f..a8b3f998 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_admin.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,11 +20,12 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/datastore/admin/v1/index.proto"; +import "google/datastore/admin/v1/migration.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Datastore.Admin.V1"; -option go_package = "google.golang.org/genproto/googleapis/datastore/admin/v1;admin"; +option go_package = "cloud.google.com/go/datastore/admin/apiv1/adminpb;adminpb"; option java_multiple_files = true; option java_outer_classname = "DatastoreAdminProto"; option java_package = "com.google.datastore.admin.v1"; @@ -33,14 +34,10 @@ option ruby_package = "Google::Cloud::Datastore::Admin::V1"; // Google Cloud Datastore Admin API // -// // The Datastore Admin API provides several admin services for Cloud Datastore. // -// ----------------------------------------------------------------------------- -// ## Concepts -// -// Project, namespace, kind, and entity as defined in the Google Cloud Datastore -// API. +// Concepts: Project, namespace, kind, and entity as defined in the Google Cloud +// Datastore API. // // Operation: An Operation represents work being performed in the background. // @@ -48,50 +45,40 @@ option ruby_package = "Google::Cloud::Datastore::Admin::V1"; // specified as a combination of kinds and namespaces (either or both of which // may be all). // -// ----------------------------------------------------------------------------- -// ## Services +// Export/Import Service: // -// # Export/Import -// -// The Export/Import service provides the ability to copy all or a subset of +// - The Export/Import service provides the ability to copy all or a subset of // entities to/from Google Cloud Storage. -// -// Exported data may be imported into Cloud Datastore for any Google Cloud +// - Exported data may be imported into Cloud Datastore for any Google Cloud // Platform project. It is not restricted to the export source project. It is // possible to export from one project and then import into another. -// -// Exported data can also be loaded into Google BigQuery for analysis. -// -// Exports and imports are performed asynchronously. An Operation resource is +// - Exported data can also be loaded into Google BigQuery for analysis. +// - Exports and imports are performed asynchronously. An Operation resource is // created for each export/import. The state (including any errors encountered) // of the export/import may be queried via the Operation resource. // -// # Index -// -// The index service manages Cloud Datastore composite indexes. +// Index Service: // -// Index creation and deletion are performed asynchronously. +// - The index service manages Cloud Datastore composite indexes. +// - Index creation and deletion are performed asynchronously. // An Operation resource is created for each such asynchronous operation. // The state of the operation (including any errors encountered) // may be queried via the Operation resource. // -// # Operation +// Operation Service: // -// The Operations collection provides a record of actions performed for the +// - The Operations collection provides a record of actions performed for the // specified project (including any operations in progress). Operations are not // created directly but through calls on other collections or resources. -// -// An operation that is not yet done may be cancelled. The request to cancel is -// asynchronous and the operation may continue to run for some time after the +// - An operation that is not yet done may be cancelled. The request to cancel +// is asynchronous and the operation may continue to run for some time after the // request to cancel is made. -// -// An operation that is done may be deleted so that it is no longer listed as +// - An operation that is done may be deleted so that it is no longer listed as // part of the Operation collection. -// -// ListOperations returns all pending operations, but not completed operations. -// -// Operations are created by service DatastoreAdmin, -// but are accessed via service google.longrunning.Operations. +// - ListOperations returns all pending operations, but not completed +// operations. +// - Operations are created by service DatastoreAdmin, but are accessed via +// service google.longrunning.Operations. service DatastoreAdmin { option (google.api.default_host) = "datastore.googleapis.com"; option (google.api.oauth_scopes) = @@ -106,12 +93,14 @@ service DatastoreAdmin { // used once the associated operation is done. If an export operation is // cancelled before completion it may leave partial data behind in Google // Cloud Storage. - rpc ExportEntities(ExportEntitiesRequest) returns (google.longrunning.Operation) { + rpc ExportEntities(ExportEntitiesRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/projects/{project_id}:export" body: "*" }; - option (google.api.method_signature) = "project_id,labels,entity_filter,output_url_prefix"; + option (google.api.method_signature) = + "project_id,labels,entity_filter,output_url_prefix"; option (google.longrunning.operation_info) = { response_type: "ExportEntitiesResponse" metadata_type: "ExportEntitiesMetadata" @@ -123,12 +112,14 @@ service DatastoreAdmin { // progress can be monitored and managed via the Operation resource that is // created. If an ImportEntities operation is cancelled, it is possible // that a subset of the data has already been imported to Cloud Datastore. - rpc ImportEntities(ImportEntitiesRequest) returns (google.longrunning.Operation) { + rpc ImportEntities(ImportEntitiesRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/projects/{project_id}:import" body: "*" }; - option (google.api.method_signature) = "project_id,labels,input_url,entity_filter"; + option (google.api.method_signature) = + "project_id,labels,input_url,entity_filter"; option (google.longrunning.operation_info) = { response_type: "google.protobuf.Empty" metadata_type: "ImportEntitiesMetadata" @@ -137,9 +128,9 @@ service DatastoreAdmin { // Creates the specified index. // A newly created index's initial state is `CREATING`. On completion of the - // returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`. - // If the index already exists, the call will return an `ALREADY_EXISTS` - // status. + // returned [google.longrunning.Operation][google.longrunning.Operation], the + // state will be `READY`. If the index already exists, the call will return an + // `ALREADY_EXISTS` status. // // During index creation, the process could result in an error, in which // case the index will move to the `ERROR` state. The process can be recovered @@ -164,7 +155,8 @@ service DatastoreAdmin { // An index can only be deleted if it is in a `READY` or `ERROR` state. On // successful execution of the request, the index will be in a `DELETING` // [state][google.datastore.admin.v1.Index.State]. And on completion of the - // returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. + // returned [google.longrunning.Operation][google.longrunning.Operation], the + // index will be removed. // // During index deletion, the process could result in an error, in which // case the index will move to the `ERROR` state. The process can be recovered @@ -282,8 +274,8 @@ message ExportEntitiesRequest { // // The resulting files will be nested deeper than the specified URL prefix. // The final output URL will be provided in the - // [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field. That - // value should be used for subsequent ImportEntities operations. + // [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] + // field. That value should be used for subsequent ImportEntities operations. // // By nesting the data files deeper, the same Cloud Storage bucket can be used // in multiple ExportEntities operations without conflict. @@ -299,8 +291,9 @@ message ImportEntitiesRequest { // Client-assigned labels. map labels = 2; - // Required. The full resource URL of the external storage location. Currently, only - // Google Cloud Storage is supported. So input_url should be of the form: + // Required. The full resource URL of the external storage location. + // Currently, only Google Cloud Storage is supported. So input_url should be + // of the form: // `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where // `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is // an optional Cloud Storage namespace path (this is not a Cloud Datastore @@ -353,24 +346,6 @@ message ExportEntitiesMetadata { string output_url_prefix = 5; } -// Operation types. -enum OperationType { - // Unspecified. - OPERATION_TYPE_UNSPECIFIED = 0; - - // ExportEntities. - EXPORT_ENTITIES = 1; - - // ImportEntities. - IMPORT_ENTITIES = 2; - - // CreateIndex. - CREATE_INDEX = 3; - - // DeleteIndex. - DELETE_INDEX = 4; -} - // Metadata for ImportEntities operations. message ImportEntitiesMetadata { // Metadata common to all Datastore Admin operations. @@ -386,7 +361,9 @@ message ImportEntitiesMetadata { EntityFilter entity_filter = 4; // The location of the import metadata file. This will be the same value as - // the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field. + // the + // [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] + // field. string input_url = 5; } @@ -444,7 +421,8 @@ message DeleteIndexRequest { string index_id = 3; } -// The request for [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex]. +// The request for +// [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex]. message GetIndexRequest { // Project ID against which to make the request. string project_id = 1; @@ -490,3 +468,39 @@ message IndexOperationMetadata { // The index resource ID that this operation is acting on. string index_id = 3; } + +// Metadata for Datastore to Firestore migration operations. +// +// The DatastoreFirestoreMigration operation is not started by the end-user via +// an explicit "creation" method. This is an intentional deviation from the LRO +// design pattern. +// +// This singleton resource can be accessed at: +// "projects/{project_id}/operations/datastore-firestore-migration" +message DatastoreFirestoreMigrationMetadata { + // The current state of migration from Cloud Datastore to Cloud Firestore in + // Datastore mode. + MigrationState migration_state = 1; + + // The current step of migration from Cloud Datastore to Cloud Firestore in + // Datastore mode. + MigrationStep migration_step = 2; +} + +// Operation types. +enum OperationType { + // Unspecified. + OPERATION_TYPE_UNSPECIFIED = 0; + + // ExportEntities. + EXPORT_ENTITIES = 1; + + // ImportEntities. + IMPORT_ENTITIES = 2; + + // CreateIndex. + CREATE_INDEX = 3; + + // DeleteIndex. + DELETE_INDEX = 4; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_admin_v1.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_admin_v1.yaml deleted file mode 100644 index 836385eb..00000000 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_admin_v1.yaml +++ /dev/null @@ -1,49 +0,0 @@ -type: google.api.Service -config_version: 3 -name: datastore.googleapis.com -title: Cloud Datastore API - -apis: -- name: google.datastore.admin.v1.DatastoreAdmin - -types: -- name: google.datastore.admin.v1.ExportEntitiesMetadata -- name: google.datastore.admin.v1.ExportEntitiesResponse -- name: google.datastore.admin.v1.ImportEntitiesMetadata -- name: google.datastore.admin.v1.IndexOperationMetadata - -documentation: - summary: |- - Accesses the schemaless NoSQL database to provide fully managed, robust, - scalable storage for your application. - -backend: - rules: - - selector: 'google.datastore.admin.v1.DatastoreAdmin.*' - deadline: 295.0 - - selector: 'google.longrunning.Operations.*' - deadline: 295.0 - -http: - rules: - - selector: google.longrunning.Operations.CancelOperation - post: '/v1/{name=projects/*/operations/*}:cancel' - - selector: google.longrunning.Operations.DeleteOperation - delete: '/v1/{name=projects/*/operations/*}' - - selector: google.longrunning.Operations.GetOperation - get: '/v1/{name=projects/*/operations/*}' - - selector: google.longrunning.Operations.ListOperations - get: '/v1/{name=projects/*}/operations' - -authentication: - rules: - - selector: 'google.datastore.admin.v1.DatastoreAdmin.*' - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform, - https://www.googleapis.com/auth/datastore - - selector: 'google.longrunning.Operations.*' - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform, - https://www.googleapis.com/auth/datastore diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_v1.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_v1.yaml index 836385eb..29b337e3 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_v1.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/datastore_v1.yaml @@ -5,12 +5,16 @@ title: Cloud Datastore API apis: - name: google.datastore.admin.v1.DatastoreAdmin +- name: google.longrunning.Operations types: +- name: google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata - name: google.datastore.admin.v1.ExportEntitiesMetadata - name: google.datastore.admin.v1.ExportEntitiesResponse - name: google.datastore.admin.v1.ImportEntitiesMetadata - name: google.datastore.admin.v1.IndexOperationMetadata +- name: google.datastore.admin.v1.MigrationProgressEvent +- name: google.datastore.admin.v1.MigrationStateEvent documentation: summary: |- diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/index.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/index.proto index a211e7c9..6a1d1222 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/index.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/index.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,10 +17,9 @@ syntax = "proto3"; package google.datastore.admin.v1; import "google/api/field_behavior.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Datastore.Admin.V1"; -option go_package = "google.golang.org/genproto/googleapis/datastore/admin/v1;admin"; +option go_package = "cloud.google.com/go/datastore/admin/apiv1/adminpb;adminpb"; option java_multiple_files = true; option java_outer_classname = "IndexProto"; option java_package = "com.google.datastore.admin.v1"; @@ -29,15 +28,6 @@ option ruby_package = "Google::Cloud::Datastore::Admin::V1"; // Datastore composite index definition. message Index { - // A property of an index. - message IndexedProperty { - // Required. The property name to index. - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED. - Direction direction = 2 [(google.api.field_behavior) = REQUIRED]; - } - // For an ordered index, specifies whether each of the entity's ancestors // will be included. enum AncestorMode { @@ -65,6 +55,16 @@ message Index { DESCENDING = 2; } + // A property of an index. + message IndexedProperty { + // Required. The property name to index. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The indexed property's direction. Must not be + // DIRECTION_UNSPECIFIED. + Direction direction = 2 [(google.api.field_behavior) = REQUIRED]; + } + // The possible set of states of an index. enum State { // The state is unspecified. @@ -105,11 +105,17 @@ message Index { // Required. The entity kind to which this index applies. string kind = 4 [(google.api.field_behavior) = REQUIRED]; - // Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. + // Required. The index's ancestor mode. Must not be + // ANCESTOR_MODE_UNSPECIFIED. AncestorMode ancestor = 5 [(google.api.field_behavior) = REQUIRED]; // Required. An ordered sequence of property names and their index attributes. - repeated IndexedProperty properties = 6 [(google.api.field_behavior) = REQUIRED]; + // + // Requires: + // + // * A maximum of 100 properties. + repeated IndexedProperty properties = 6 + [(google.api.field_behavior) = REQUIRED]; // Output only. The state of the index. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/migration.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/migration.proto index 67a86274..813de87d 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/migration.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1/migration.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ syntax = "proto3"; package google.datastore.admin.v1; option csharp_namespace = "Google.Cloud.Datastore.Admin.V1"; -option go_package = "google.golang.org/genproto/googleapis/datastore/admin/v1;admin"; +option go_package = "cloud.google.com/go/datastore/admin/apiv1/adminpb;adminpb"; option java_multiple_files = true; option java_outer_classname = "MigrationProto"; option java_package = "com.google.datastore.admin.v1"; @@ -36,11 +36,48 @@ message MigrationStateEvent { // Datastore to Cloud Firestore in Datastore // mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore). message MigrationProgressEvent { + // Concurrency modes for transactions in Cloud Firestore. + enum ConcurrencyMode { + // Unspecified. + CONCURRENCY_MODE_UNSPECIFIED = 0; + + // Pessimistic concurrency. + PESSIMISTIC = 1; + + // Optimistic concurrency. + OPTIMISTIC = 2; + + // Optimistic concurrency with entity groups. + OPTIMISTIC_WITH_ENTITY_GROUPS = 3; + } + + // Details for the `PREPARE` step. + message PrepareStepDetails { + // The concurrency mode this database will use when it reaches the + // `REDIRECT_WRITES` step. + ConcurrencyMode concurrency_mode = 1; + } + + // Details for the `REDIRECT_WRITES` step. + message RedirectWritesStepDetails { + // Ths concurrency mode for this database. + ConcurrencyMode concurrency_mode = 1; + } + // The step that is starting. // // An event with step set to `START` indicates that the migration // has been reverted back to the initial pre-migration state. MigrationStep step = 1; + + // Details about this step. + oneof step_details { + // Details for the `PREPARE` step. + PrepareStepDetails prepare_step_details = 2; + + // Details for the `REDIRECT_WRITES` step. + RedirectWritesStepDetails redirect_writes_step_details = 3; + } } // States for a migration. @@ -63,9 +100,15 @@ enum MigrationStep { // Unspecified. MIGRATION_STEP_UNSPECIFIED = 0; + // Pre-migration: the database is prepared for migration. + PREPARE = 6; + // Start of migration. START = 1; + // Writes are applied synchronously to at least one replica. + APPLY_WRITES_SYNCHRONOUSLY = 7; + // Data is copied to Cloud Firestore and then verified to match the data in // Cloud Datastore. COPY_AND_VERIFY = 2; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1beta1/datastore_admin.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1beta1/datastore_admin.proto index 67753dce..811c2ac5 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1beta1/datastore_admin.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/admin/v1beta1/datastore_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ import "google/longrunning/operations.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Datastore.Admin.V1Beta1"; -option go_package = "google.golang.org/genproto/googleapis/datastore/admin/v1beta1;admin"; +option go_package = "cloud.google.com/go/datastore/admin/apiv1beta1/adminpb;adminpb"; option java_multiple_files = true; option java_outer_classname = "DatastoreAdminProto"; option java_package = "com.google.datastore.admin.v1beta1"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/BUILD.bazel index 27a1d994..543d8912 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -12,15 +21,19 @@ load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") proto_library( name = "datastore_proto", srcs = [ + "aggregation_result.proto", "datastore.proto", "entity.proto", "query.proto", + "query_profile.proto", ], deps = [ "//google/api:annotations_proto", "//google/api:client_proto", "//google/api:field_behavior_proto", + "//google/api:routing_proto", "//google/type:latlng_proto", + "@com_google_protobuf//:duration_proto", "@com_google_protobuf//:struct_proto", "@com_google_protobuf//:timestamp_proto", "@com_google_protobuf//:wrappers_proto", @@ -63,17 +76,22 @@ java_gapic_library( srcs = [":datastore_proto_with_info"], gapic_yaml = "datastore_gapic.yaml", grpc_service_config = "datastore_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "datastore_v1.yaml", test_deps = [ ":datastore_java_grpc", ], + transport = "grpc+rest", deps = [ ":datastore_java_proto", + "//google/api:api_java_proto", ], ) java_gapic_test( name = "datastore_java_gapic_test_suite", test_classes = [ + "com.google.cloud.datastore.v1.DatastoreClientHttpJsonTest", "com.google.cloud.datastore.v1.DatastoreClientTest", ], runtime_deps = [":datastore_java_gapic_test"], @@ -82,6 +100,8 @@ java_gapic_test( # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-cloud-datastore-v1-java", + include_samples = True, + transport = "grpc+rest", deps = [ ":datastore_java_gapic", ":datastore_java_grpc", @@ -98,13 +118,12 @@ load( "go_gapic_assembly_pkg", "go_gapic_library", "go_proto_library", - "go_test", ) go_proto_library( name = "datastore_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/datastore/v1", + importpath = "cloud.google.com/go/datastore/apiv1/datastorepb", protos = [":datastore_proto"], deps = [ "//google/api:annotations_go_proto", @@ -117,24 +136,26 @@ go_gapic_library( srcs = [":datastore_proto_with_info"], grpc_service_config = "datastore_grpc_service_config.json", importpath = "cloud.google.com/go/datastore/apiv1;datastore", + metadata = True, + rest_numeric_enums = True, service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", deps = [ ":datastore_go_proto", + "//google/longrunning:longrunning_go_gapic", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go_longrunning//:go_default_library", + "@com_google_cloud_go_longrunning//autogen:go_default_library", ], ) -go_test( - name = "datastore_go_gapic_test", - srcs = [":datastore_go_gapic_srcjar_test"], - embed = [":datastore_go_gapic"], - importpath = "cloud.google.com/go/datastore/apiv1", -) - # Open Source Packages go_gapic_assembly_pkg( name = "gapi-cloud-datastore-v1-go", deps = [ ":datastore_go_gapic", + ":datastore_go_gapic_srcjar-metadata.srcjar", + ":datastore_go_gapic_srcjar-snippets.srcjar", ":datastore_go_gapic_srcjar-test.srcjar", ":datastore_go_proto", ], @@ -147,6 +168,7 @@ load( "@com_google_googleapis_imports//:imports.bzl", "py_gapic_assembly_pkg", "py_gapic_library", + "py_test", ) py_gapic_library( @@ -154,8 +176,24 @@ py_gapic_library( srcs = [":datastore_proto"], grpc_service_config = "datastore_grpc_service_config.json", opt_args = ["python-gapic-namespace=google.cloud"], + rest_numeric_enums = True, + service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", + deps = [ + ], +) + +py_test( + name = "datastore_py_gapic_test", + srcs = [ + "datastore_py_gapic_pytest.py", + "datastore_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":datastore_py_gapic"], ) +# Open Source Packages py_gapic_assembly_pkg( name = "datastore-v1-py", deps = [ @@ -165,14 +203,12 @@ py_gapic_assembly_pkg( ############################################################################## # PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", ) php_proto_library( @@ -180,19 +216,15 @@ php_proto_library( deps = [":datastore_proto"], ) -php_grpc_library( - name = "datastore_php_grpc", - srcs = [":datastore_proto"], - deps = [":datastore_php_proto"], -) - php_gapic_library( name = "datastore_php_gapic", srcs = [":datastore_proto_with_info"], - deps = [ - ":datastore_php_grpc", - ":datastore_php_proto", - ], + grpc_service_config = "datastore_grpc_service_config.json", + migration_mode = "MIGRATING", + rest_numeric_enums = True, + service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", + deps = [":datastore_php_proto"], ) # Open Source Packages @@ -200,7 +232,6 @@ php_gapic_assembly_pkg( name = "google-cloud-datastore-v1-php", deps = [ ":datastore_php_gapic", - ":datastore_php_grpc", ":datastore_php_proto", ], ) @@ -221,8 +252,11 @@ nodejs_gapic_library( extra_protoc_parameters = ["metadata"], grpc_service_config = "datastore_grpc_service_config.json", main_service = "datastore", + mixins = "google.longrunning.Operations", package = "google.datastore.v1", + rest_numeric_enums = True, service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", deps = [], ) @@ -260,15 +294,18 @@ ruby_cloud_gapic_library( name = "datastore_ruby_gapic", srcs = [":datastore_proto_with_info"], extra_protoc_parameters = [ - "ruby-cloud-gem-name=google-cloud-datastore-v1", - "ruby-cloud-env-prefix=DATASTORE", - "ruby-cloud-product-url=https://cloud.google.com/datastore", "ruby-cloud-api-id=datastore.googleapis.com", "ruby-cloud-api-shortname=datastore", + "ruby-cloud-env-prefix=DATASTORE", + "ruby-cloud-gem-name=google-cloud-datastore-v1", + "ruby-cloud-product-url=https://cloud.google.com/datastore", ], grpc_service_config = "datastore_grpc_service_config.json", + rest_numeric_enums = True, ruby_cloud_description = "Firestore in Datastore mode is a NoSQL document database built for automatic scaling, high performance, and ease of application development.", ruby_cloud_title = "Firestore in Datastore mode V1", + service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", deps = [ ":datastore_ruby_grpc", ":datastore_ruby_proto", @@ -312,6 +349,9 @@ csharp_gapic_library( srcs = [":datastore_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", grpc_service_config = "datastore_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "datastore_v1.yaml", + transport = "grpc+rest", deps = [ ":datastore_csharp_grpc", ":datastore_csharp_proto", @@ -331,4 +371,20 @@ csharp_gapic_assembly_pkg( ############################################################################## # C++ ############################################################################## -# Put your C++ rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "datastore_cc_proto", + deps = [":datastore_proto"], +) + +cc_grpc_library( + name = "datastore_cc_grpc", + srcs = [":datastore_proto"], + grpc_only = True, + deps = [":datastore_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/aggregation_result.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/aggregation_result.proto new file mode 100644 index 00000000..e31052c0 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/aggregation_result.proto @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.datastore.v1; + +import "google/datastore/v1/entity.proto"; +import "google/datastore/v1/query.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Datastore.V1"; +option go_package = "cloud.google.com/go/datastore/apiv1/datastorepb;datastorepb"; +option java_multiple_files = true; +option java_outer_classname = "AggregationResultProto"; +option java_package = "com.google.datastore.v1"; +option php_namespace = "Google\\Cloud\\Datastore\\V1"; +option ruby_package = "Google::Cloud::Datastore::V1"; + +// The result of a single bucket from a Datastore aggregation query. +// +// The keys of `aggregate_properties` are the same for all results in an +// aggregation query, unlike entity queries which can have different fields +// present for each result. +message AggregationResult { + // The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. + // + // The key is the + // [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to + // the aggregation function on input and the size of this map equals the + // number of aggregation functions in the query. + map aggregate_properties = 2; +} + +// A batch of aggregation results produced by an aggregation query. +message AggregationResultBatch { + // The aggregation results for this batch. + repeated AggregationResult aggregation_results = 1; + + // The state of the query after the current batch. + // Only COUNT(*) aggregations are supported in the initial launch. Therefore, + // expected result type is limited to `NO_MORE_RESULTS`. + QueryResultBatch.MoreResultsType more_results = 2; + + // Read timestamp this batch was returned from. + // + // In a single transaction, subsequent query result batches for the same query + // can have a greater timestamp. Each batch's read timestamp + // is valid for all preceding batches. + google.protobuf.Timestamp read_time = 3; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore.proto index ad016194..9c44501a 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,11 +19,15 @@ package google.datastore.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/routing.proto"; +import "google/datastore/v1/aggregation_result.proto"; import "google/datastore/v1/entity.proto"; import "google/datastore/v1/query.proto"; +import "google/datastore/v1/query_profile.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Datastore.V1"; -option go_package = "google.golang.org/genproto/googleapis/datastore/v1;datastore"; +option go_package = "cloud.google.com/go/datastore/apiv1/datastorepb;datastorepb"; option java_multiple_files = true; option java_outer_classname = "DatastoreProto"; option java_package = "com.google.datastore.v1"; @@ -49,6 +53,10 @@ service Datastore { post: "/v1/projects/{project_id}:lookup" body: "*" }; + option (google.api.routing) = { + routing_parameters { field: "project_id" } + routing_parameters { field: "database_id" } + }; option (google.api.method_signature) = "project_id,read_options,keys"; } @@ -58,14 +66,36 @@ service Datastore { post: "/v1/projects/{project_id}:runQuery" body: "*" }; + option (google.api.routing) = { + routing_parameters { field: "project_id" } + routing_parameters { field: "database_id" } + }; + } + + // Runs an aggregation query. + rpc RunAggregationQuery(RunAggregationQueryRequest) + returns (RunAggregationQueryResponse) { + option (google.api.http) = { + post: "/v1/projects/{project_id}:runAggregationQuery" + body: "*" + }; + option (google.api.routing) = { + routing_parameters { field: "project_id" } + routing_parameters { field: "database_id" } + }; } // Begins a new transaction. - rpc BeginTransaction(BeginTransactionRequest) returns (BeginTransactionResponse) { + rpc BeginTransaction(BeginTransactionRequest) + returns (BeginTransactionResponse) { option (google.api.http) = { post: "/v1/projects/{project_id}:beginTransaction" body: "*" }; + option (google.api.routing) = { + routing_parameters { field: "project_id" } + routing_parameters { field: "database_id" } + }; option (google.api.method_signature) = "project_id"; } @@ -76,7 +106,12 @@ service Datastore { post: "/v1/projects/{project_id}:commit" body: "*" }; - option (google.api.method_signature) = "project_id,mode,transaction,mutations"; + option (google.api.routing) = { + routing_parameters { field: "project_id" } + routing_parameters { field: "database_id" } + }; + option (google.api.method_signature) = + "project_id,mode,transaction,mutations"; option (google.api.method_signature) = "project_id,mode,mutations"; } @@ -86,6 +121,10 @@ service Datastore { post: "/v1/projects/{project_id}:rollback" body: "*" }; + option (google.api.routing) = { + routing_parameters { field: "project_id" } + routing_parameters { field: "database_id" } + }; option (google.api.method_signature) = "project_id,transaction"; } @@ -96,6 +135,10 @@ service Datastore { post: "/v1/projects/{project_id}:allocateIds" body: "*" }; + option (google.api.routing) = { + routing_parameters { field: "project_id" } + routing_parameters { field: "database_id" } + }; option (google.api.method_signature) = "project_id,keys"; } @@ -106,6 +149,10 @@ service Datastore { post: "/v1/projects/{project_id}:reserveIds" body: "*" }; + option (google.api.routing) = { + routing_parameters { field: "project_id" } + routing_parameters { field: "database_id" } + }; option (google.api.method_signature) = "project_id,keys"; } } @@ -115,11 +162,25 @@ message LookupRequest { // Required. The ID of the project against which to make the request. string project_id = 8 [(google.api.field_behavior) = REQUIRED]; + // The ID of the database against which to make the request. + // + // '(default)' is not allowed; please use empty string '' to refer the default + // database. + string database_id = 9; + // The options for this lookup request. ReadOptions read_options = 1; // Required. Keys of entities to look up. repeated Key keys = 3 [(google.api.field_behavior) = REQUIRED]; + + // The properties to return. Defaults to returning all properties. + // + // If this field is set and an entity has a property not referenced in the + // mask, it will be absent from [LookupResponse.found.entity.properties][]. + // + // The entity's key is always returned. + PropertyMask property_mask = 5; } // The response for [Datastore.Lookup][google.datastore.v1.Datastore.Lookup]. @@ -138,6 +199,18 @@ message LookupResponse { // order of results in this field is undefined and has no relation to the // order of the keys in the input. repeated Key deferred = 3; + + // The identifier of the transaction that was started as part of this Lookup + // request. + // + // Set only when + // [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] + // was set in + // [LookupRequest.read_options][google.datastore.v1.LookupRequest.read_options]. + bytes transaction = 5; + + // The time at which these entities were read or found missing. + google.protobuf.Timestamp read_time = 7; } // The request for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery]. @@ -145,6 +218,12 @@ message RunQueryRequest { // Required. The ID of the project against which to make the request. string project_id = 8 [(google.api.field_behavior) = REQUIRED]; + // The ID of the database against which to make the request. + // + // '(default)' is not allowed; please use empty string '' to refer the default + // database. + string database_id = 9; + // Entities are partitioned into subsets, identified by a partition ID. // Queries are scoped to a single partition. // This partition ID is normalized with the standard default context @@ -159,30 +238,123 @@ message RunQueryRequest { // The query to run. Query query = 3; - // The GQL query to run. + // The GQL query to run. This query must be a non-aggregation query. GqlQuery gql_query = 7; } + + // The properties to return. + // This field must not be set for a projection query. + // + // See + // [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask]. + PropertyMask property_mask = 10; + + // Optional. Explain options for the query. If set, additional query + // statistics will be returned. If not, only query results will be returned. + ExplainOptions explain_options = 12 [(google.api.field_behavior) = OPTIONAL]; } -// The response for [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery]. +// The response for +// [Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery]. message RunQueryResponse { // A batch of query results (always present). QueryResultBatch batch = 1; // The parsed form of the `GqlQuery` from the request, if it was set. Query query = 2; + + // The identifier of the transaction that was started as part of this + // RunQuery request. + // + // Set only when + // [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] + // was set in + // [RunQueryRequest.read_options][google.datastore.v1.RunQueryRequest.read_options]. + bytes transaction = 5; + + // Query explain metrics. This is only present when the + // [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] + // is provided, and it is sent only once with the last response in the stream. + ExplainMetrics explain_metrics = 9; +} + +// The request for +// [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery]. +message RunAggregationQueryRequest { + // Required. The ID of the project against which to make the request. + string project_id = 8 [(google.api.field_behavior) = REQUIRED]; + + // The ID of the database against which to make the request. + // + // '(default)' is not allowed; please use empty string '' to refer the default + // database. + string database_id = 9; + + // Entities are partitioned into subsets, identified by a partition ID. + // Queries are scoped to a single partition. + // This partition ID is normalized with the standard default context + // partition ID. + PartitionId partition_id = 2; + + // The options for this query. + ReadOptions read_options = 1; + + // The type of query. + oneof query_type { + // The query to run. + AggregationQuery aggregation_query = 3; + + // The GQL query to run. This query must be an aggregation query. + GqlQuery gql_query = 7; + } + + // Optional. Explain options for the query. If set, additional query + // statistics will be returned. If not, only query results will be returned. + ExplainOptions explain_options = 11 [(google.api.field_behavior) = OPTIONAL]; } -// The request for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. +// The response for +// [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery]. +message RunAggregationQueryResponse { + // A batch of aggregation results. Always present. + AggregationResultBatch batch = 1; + + // The parsed form of the `GqlQuery` from the request, if it was set. + AggregationQuery query = 2; + + // The identifier of the transaction that was started as part of this + // RunAggregationQuery request. + // + // Set only when + // [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] + // was set in + // [RunAggregationQueryRequest.read_options][google.datastore.v1.RunAggregationQueryRequest.read_options]. + bytes transaction = 5; + + // Query explain metrics. This is only present when the + // [RunAggregationQueryRequest.explain_options][google.datastore.v1.RunAggregationQueryRequest.explain_options] + // is provided, and it is sent only once with the last response in the stream. + ExplainMetrics explain_metrics = 9; +} + +// The request for +// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. message BeginTransactionRequest { // Required. The ID of the project against which to make the request. string project_id = 8 [(google.api.field_behavior) = REQUIRED]; + // The ID of the database against which to make the request. + // + // '(default)' is not allowed; please use empty string '' to refer the default + // database. + string database_id = 9; + // Options for a new transaction. TransactionOptions transaction_options = 10; } -// The response for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. +// The response for +// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. message BeginTransactionResponse { // The transaction identifier (always present). bytes transaction = 1; @@ -193,16 +365,21 @@ message RollbackRequest { // Required. The ID of the project against which to make the request. string project_id = 8 [(google.api.field_behavior) = REQUIRED]; + // The ID of the database against which to make the request. + // + // '(default)' is not allowed; please use empty string '' to refer the default + // database. + string database_id = 9; + // Required. The transaction identifier, returned by a call to // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. bytes transaction = 1 [(google.api.field_behavior) = REQUIRED]; } -// The response for [Datastore.Rollback][google.datastore.v1.Datastore.Rollback]. -// (an empty message). -message RollbackResponse { - -} +// The response for +// [Datastore.Rollback][google.datastore.v1.Datastore.Rollback]. (an empty +// message). +message RollbackResponse {} // The request for [Datastore.Commit][google.datastore.v1.Datastore.Commit]. message CommitRequest { @@ -223,6 +400,12 @@ message CommitRequest { // Required. The ID of the project against which to make the request. string project_id = 8 [(google.api.field_behavior) = REQUIRED]; + // The ID of the database against which to make the request. + // + // '(default)' is not allowed; please use empty string '' to refer the default + // database. + string database_id = 9; + // The type of commit to perform. Defaults to `TRANSACTIONAL`. Mode mode = 5; @@ -232,6 +415,12 @@ message CommitRequest { // transaction identifier is returned by a call to // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. bytes transaction = 1; + + // Options for beginning a new transaction for this request. + // The transaction is committed when the request completes. If specified, + // [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be + // [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite]. + TransactionOptions single_use_transaction = 10; } // The mutations to perform. @@ -259,42 +448,56 @@ message CommitResponse { // The number of index entries updated during the commit, or zero if none were // updated. int32 index_updates = 4; + + // The transaction commit timestamp. Not set for non-transactional commits. + google.protobuf.Timestamp commit_time = 8; } -// The request for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds]. +// The request for +// [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds]. message AllocateIdsRequest { // Required. The ID of the project against which to make the request. string project_id = 8 [(google.api.field_behavior) = REQUIRED]; - // Required. A list of keys with incomplete key paths for which to allocate IDs. - // No key may be reserved/read-only. + // The ID of the database against which to make the request. + // + // '(default)' is not allowed; please use empty string '' to refer the default + // database. + string database_id = 9; + + // Required. A list of keys with incomplete key paths for which to allocate + // IDs. No key may be reserved/read-only. repeated Key keys = 1 [(google.api.field_behavior) = REQUIRED]; } -// The response for [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds]. +// The response for +// [Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds]. message AllocateIdsResponse { // The keys specified in the request (in the same order), each with // its key path completed with a newly allocated ID. repeated Key keys = 1; } -// The request for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds]. +// The request for +// [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds]. message ReserveIdsRequest { // Required. The ID of the project against which to make the request. string project_id = 8 [(google.api.field_behavior) = REQUIRED]; - // If not empty, the ID of the database against which to make the request. + // The ID of the database against which to make the request. + // + // '(default)' is not allowed; please use empty string '' to refer the default + // database. string database_id = 9; - // Required. A list of keys with complete key paths whose numeric IDs should not be - // auto-allocated. + // Required. A list of keys with complete key paths whose numeric IDs should + // not be auto-allocated. repeated Key keys = 1 [(google.api.field_behavior) = REQUIRED]; } -// The response for [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds]. -message ReserveIdsResponse { - -} +// The response for +// [Datastore.ReserveIds][google.datastore.v1.Datastore.ReserveIds]. +message ReserveIdsResponse {} // A mutation to apply to an entity. message Mutation { @@ -328,10 +531,26 @@ message Mutation { // with the current version of the entity on the server. Conflicting mutations // are not applied, and are marked as such in MutationResult. oneof conflict_detection_strategy { - // The version of the entity that this mutation is being applied to. If this - // does not match the current version on the server, the mutation conflicts. + // The version of the entity that this mutation is being applied + // to. If this does not match the current version on the server, the + // mutation conflicts. int64 base_version = 8; + + // The update time of the entity that this mutation is being applied + // to. If this does not match the current update time on the server, the + // mutation conflicts. + google.protobuf.Timestamp update_time = 11; } + + // The properties to write in this mutation. + // None of the properties in the mask may have a reserved name, except for + // `__key__`. + // This field is ignored for `delete`. + // + // If the entity already exists, only properties referenced in the mask are + // updated, others are left untouched. + // Properties referenced in the mask but not in the entity are deleted. + PropertyMask property_mask = 9; } // The result of applying a mutation. @@ -347,11 +566,37 @@ message MutationResult { // than the version of any possible future entity. int64 version = 4; + // The create time of the entity. This field will not be set after a 'delete'. + google.protobuf.Timestamp create_time = 7; + + // The update time of the entity on the server after processing the mutation. + // If the mutation doesn't change anything on the server, then the timestamp + // will be the update timestamp of the current entity. This field will not be + // set after a 'delete'. + google.protobuf.Timestamp update_time = 6; + // Whether a conflict was detected for this mutation. Always false when a // conflict detection strategy field is not set in the mutation. bool conflict_detected = 5; } +// The set of arbitrarily nested property paths used to restrict an operation to +// only a subset of properties in an entity. +message PropertyMask { + // The paths to the properties covered by this mask. + // + // A path is a list of property names separated by dots (`.`), for example + // `foo.bar` means the property `bar` inside the entity property `foo` inside + // the entity associated with this path. + // + // If a property name contains a dot `.` or a backslash `\`, then that + // name must be escaped. + // + // A path must not be empty, and may not reference a value inside an + // [array value][google.datastore.v1.Value.array_value]. + repeated string paths = 1; +} + // The options shared by read requests. message ReadOptions { // The possible values for read consistencies. @@ -366,26 +611,51 @@ message ReadOptions { EVENTUAL = 2; } - // If not specified, lookups and ancestor queries default to - // `read_consistency`=`STRONG`, global queries default to - // `read_consistency`=`EVENTUAL`. + // For Cloud Datastore, if read_consistency is not specified, then lookups and + // ancestor queries default to `read_consistency`=`STRONG`, global queries + // default to `read_consistency`=`EVENTUAL`. + // + // For Cloud Firestore in Datastore mode, if read_consistency is not specified + // then lookups and all queries default to `read_consistency`=`STRONG`. + // + // Explicitly setting `read_consistency`=`EVENTUAL` will result in eventually + // consistent lookups & queries in both Cloud Datastore & Cloud Firestore in + // Datastore mode. oneof consistency_type { // The non-transactional read consistency to use. - // Cannot be set to `STRONG` for global queries. ReadConsistency read_consistency = 1; // The identifier of the transaction in which to read. A // transaction identifier is returned by a call to // [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. bytes transaction = 2; + + // Options for beginning a new transaction for this request. + // + // The new transaction identifier will be returned in the corresponding + // response as either + // [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] + // or + // [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction]. + TransactionOptions new_transaction = 3; + + // Reads entities as they were at the given time. This value is only + // supported for Cloud Firestore in Datastore mode. + // + // This must be a microsecond precision timestamp within the past one hour, + // or if Point-in-Time Recovery is enabled, can additionally be a whole + // minute timestamp within the past 7 days. + google.protobuf.Timestamp read_time = 4; } } // Options for beginning a new transaction. // // Transactions can be created explicitly with calls to -// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction] or implicitly by setting -// [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] in read requests. +// [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction] +// or implicitly by setting +// [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] +// in read requests. message TransactionOptions { // Options specific to read / write transactions. message ReadWrite { @@ -395,7 +665,12 @@ message TransactionOptions { // Options specific to read-only transactions. message ReadOnly { - + // Reads entities at the given time. + // + // This must be a microsecond precision timestamp within the past one hour, + // or if Point-in-Time Recovery is enabled, can additionally be a whole + // minute timestamp within the past 7 days. + google.protobuf.Timestamp read_time = 1; } // The `mode` of the transaction, indicating whether write operations are diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore_grpc_service_config.json b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore_grpc_service_config.json index 48a210a8..3cdd03ac 100755 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore_grpc_service_config.json +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore_grpc_service_config.json @@ -10,6 +10,10 @@ "service": "google.datastore.v1.Datastore", "method": "RunQuery" }, + { + "service": "google.datastore.v1.Datastore", + "method": "RunAggregationQuery" + }, { "service": "google.datastore.v1.Datastore", "method": "ReserveIds" @@ -20,10 +24,7 @@ "initialBackoff": "0.100s", "maxBackoff": "60s", "backoffMultiplier": 1.3, - "retryableStatusCodes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ] + "retryableStatusCodes": ["UNAVAILABLE", "DEADLINE_EXCEEDED"] } }, { diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore_v1.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore_v1.yaml index bd26ed77..a9be927c 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore_v1.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/datastore_v1.yaml @@ -5,19 +5,13 @@ title: Cloud Datastore API apis: - name: google.datastore.v1.Datastore +- name: google.longrunning.Operations documentation: summary: |- Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. -backend: - rules: - - selector: 'google.datastore.v1.Datastore.*' - deadline: 295.0 - - selector: 'google.longrunning.Operations.*' - deadline: 295.0 - http: rules: - selector: google.longrunning.Operations.CancelOperation diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/entity.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/entity.proto index 61286cd7..d9742d68 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/entity.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/entity.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,13 +16,12 @@ syntax = "proto3"; package google.datastore.v1; -import "google/api/annotations.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/type/latlng.proto"; option csharp_namespace = "Google.Cloud.Datastore.V1"; -option go_package = "google.golang.org/genproto/googleapis/datastore/v1;datastore"; +option go_package = "cloud.google.com/go/datastore/apiv1/datastorepb;datastorepb"; option java_multiple_files = true; option java_outer_classname = "EntityProto"; option java_package = "com.google.datastore.v1"; @@ -53,6 +52,10 @@ message PartitionId { // The ID of the project to which the entities belong. string project_id = 2; + // If not empty, the ID of the database to which the entities + // belong. + string database_id = 3; + // If not empty, the ID of the namespace to which the entities belong. string namespace_id = 4; } @@ -68,22 +71,33 @@ message Key { // If neither is set, the element is incomplete. message PathElement { // The kind of the entity. + // // A kind matching regex `__.*__` is reserved/read-only. // A kind must not contain more than 1500 bytes when UTF-8 encoded. // Cannot be `""`. + // + // Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are + // encoded as `__bytes__` where `` is the base-64 encoding of the + // bytes. string kind = 1; // The type of ID. oneof id_type { // The auto-allocated ID of the entity. + // // Never equal to zero. Values less than zero are discouraged and may not // be supported in the future. int64 id = 2; // The name of the entity. + // // A name matching regex `__.*__` is reserved/read-only. // A name must not be more than 1500 bytes when UTF-8 encoded. // Cannot be `""`. + // + // Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are + // encoded as `__bytes__` where `` is the base-64 encoding of the + // bytes. string name = 3; } } @@ -146,7 +160,7 @@ message Value { Key key_value = 5; // A UTF-8 encoded string value. - // When `exclude_from_indexes` is false (it is indexed), may have at most + // When `exclude_from_indexes` is false (it is indexed) , may have at most // 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. string string_value = 17; @@ -183,9 +197,7 @@ message Value { // A Datastore data object. // -// An entity is limited to 1 megabyte when stored. That _roughly_ -// corresponds to a limit of 1 megabyte for the serialized form of this -// message. +// Must not exceed 1 MiB - 4 bytes. message Entity { // The entity's key. // @@ -199,7 +211,7 @@ message Entity { // The map's keys are property names. // A property name matching regex `__.*__` is reserved. // A reserved property name is forbidden in certain documented contexts. - // The name must not contain more than 500 characters. - // The name cannot be `""`. + // The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot + // be empty. map properties = 3; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/query.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/query.proto index 4cb3ef99..5ec0eea6 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/query.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/query.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,13 +16,13 @@ syntax = "proto3"; package google.datastore.v1; -import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; import "google/datastore/v1/entity.proto"; +import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; -import "google/type/latlng.proto"; option csharp_namespace = "Google.Cloud.Datastore.V1"; -option go_package = "google.golang.org/genproto/googleapis/datastore/v1;datastore"; +option go_package = "cloud.google.com/go/datastore/apiv1/datastorepb;datastorepb"; option java_multiple_files = true; option java_outer_classname = "QueryProto"; option java_package = "com.google.datastore.v1"; @@ -56,14 +56,26 @@ message EntityResult { // The version of the entity, a strictly positive number that monotonically // increases with changes to the entity. // - // This field is set for [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity - // results. + // This field is set for + // [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. // - // For [missing][google.datastore.v1.LookupResponse.missing] entities in `LookupResponse`, this - // is the version of the snapshot that was used to look up the entity, and it - // is always set except for eventually consistent reads. + // For [missing][google.datastore.v1.LookupResponse.missing] entities in + // `LookupResponse`, this is the version of the snapshot that was used to look + // up the entity, and it is always set except for eventually consistent reads. int64 version = 4; + // The time at which the entity was created. + // This field is set for + // [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. + // If this entity is missing, this field will not be set. + google.protobuf.Timestamp create_time = 6; + + // The time at which the entity was last changed. + // This field is set for + // [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. + // If this entity is missing, this field will not be set. + google.protobuf.Timestamp update_time = 5; + // A cursor that points to the position after the result entity. // Set only when the `EntityResult` is part of a `QueryResultBatch` message. bytes cursor = 3; @@ -87,6 +99,11 @@ message Query { // The properties to make distinct. The query results will contain the first // result for each distinct combination of values for the given properties // (if empty, all results are returned). + // + // Requires: + // + // * If `order` is specified, the set of distinct on properties must appear + // before the non-distinct on properties in `order`. repeated PropertyReference distinct_on = 6; // A starting point for the query results. Query cursors are @@ -112,6 +129,148 @@ message Query { google.protobuf.Int32Value limit = 12; } +// Datastore query for running an aggregation over a +// [Query][google.datastore.v1.Query]. +message AggregationQuery { + // Defines an aggregation that produces a single result. + message Aggregation { + // Count of entities that match the query. + // + // The `COUNT(*)` aggregation function operates on the entire entity + // so it does not require a field reference. + message Count { + // Optional. Optional constraint on the maximum number of entities to + // count. + // + // This provides a way to set an upper bound on the number of entities + // to scan, limiting latency, and cost. + // + // Unspecified is interpreted as no bound. + // + // If a zero value is provided, a count result of zero should always be + // expected. + // + // High-Level Example: + // + // ``` + // AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); + // ``` + // + // Requires: + // + // * Must be non-negative when present. + google.protobuf.Int64Value up_to = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Sum of the values of the requested property. + // + // * Only numeric values will be aggregated. All non-numeric values + // including `NULL` are skipped. + // + // * If the aggregated values contain `NaN`, returns `NaN`. Infinity math + // follows IEEE-754 standards. + // + // * If the aggregated value set is empty, returns 0. + // + // * Returns a 64-bit integer if all aggregated numbers are integers and the + // sum result does not overflow. Otherwise, the result is returned as a + // double. Note that even if all the aggregated values are integers, the + // result is returned as a double if it cannot fit within a 64-bit signed + // integer. When this occurs, the returned value will lose precision. + // + // * When underflow occurs, floating-point aggregation is non-deterministic. + // This means that running the same query repeatedly without any changes to + // the underlying values could produce slightly different results each + // time. In those cases, values should be stored as integers over + // floating-point numbers. + message Sum { + // The property to aggregate on. + PropertyReference property = 1; + } + + // Average of the values of the requested property. + // + // * Only numeric values will be aggregated. All non-numeric values + // including `NULL` are skipped. + // + // * If the aggregated values contain `NaN`, returns `NaN`. Infinity math + // follows IEEE-754 standards. + // + // * If the aggregated value set is empty, returns `NULL`. + // + // * Always returns the result as a double. + message Avg { + // The property to aggregate on. + PropertyReference property = 1; + } + + // The type of aggregation to perform, required. + oneof operator { + // Count aggregator. + Count count = 1; + + // Sum aggregator. + Sum sum = 2; + + // Average aggregator. + Avg avg = 3; + } + + // Optional. Optional name of the property to store the result of the + // aggregation. + // + // If not provided, Datastore will pick a default name following the format + // `property_`. For example: + // + // ``` + // AGGREGATE + // COUNT_UP_TO(1) AS count_up_to_1, + // COUNT_UP_TO(2), + // COUNT_UP_TO(3) AS count_up_to_3, + // COUNT(*) + // OVER ( + // ... + // ); + // ``` + // + // becomes: + // + // ``` + // AGGREGATE + // COUNT_UP_TO(1) AS count_up_to_1, + // COUNT_UP_TO(2) AS property_1, + // COUNT_UP_TO(3) AS count_up_to_3, + // COUNT(*) AS property_2 + // OVER ( + // ... + // ); + // ``` + // + // Requires: + // + // * Must be unique across all aggregation aliases. + // * Conform to [entity property + // name][google.datastore.v1.Entity.properties] limitations. + string alias = 7 [(google.api.field_behavior) = OPTIONAL]; + } + + // The base query to aggregate over. + oneof query_type { + // Nested query for aggregation + Query nested_query = 1; + } + + // Optional. Series of aggregations to apply over the results of the + // `nested_query`. + // + // Requires: + // + // * A minimum of one and maximum of five aggregations per query. + repeated Aggregation aggregations = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + // A representation of a kind. message KindExpression { // The name of the kind. @@ -120,8 +279,13 @@ message KindExpression { // A reference to a property relative to the kind expressions. message PropertyReference { - // The name of the property. - // If name includes "."s, it may be interpreted as a property name path. + // A reference to a property. + // + // Requires: + // + // * MUST be a dot-delimited (`.`) string of segments, where each segment + // conforms to [entity property name][google.datastore.v1.Entity.properties] + // limitations. string name = 2; } @@ -173,13 +337,19 @@ message CompositeFilter { // The results are required to satisfy each of the combined filters. AND = 1; + + // Documents are required to satisfy at least one of the combined filters. + OR = 2; } // The operator for combining multiple filters. Operator op = 1; // The list of filters to combine. - // Must contain at least one filter. + // + // Requires: + // + // * At least one filter is present. repeated Filter filters = 2; } @@ -190,23 +360,70 @@ message PropertyFilter { // Unspecified. This value must not be used. OPERATOR_UNSPECIFIED = 0; - // Less than. + // The given `property` is less than the given `value`. + // + // Requires: + // + // * That `property` comes first in `order_by`. LESS_THAN = 1; - // Less than or equal. + // The given `property` is less than or equal to the given `value`. + // + // Requires: + // + // * That `property` comes first in `order_by`. LESS_THAN_OR_EQUAL = 2; - // Greater than. + // The given `property` is greater than the given `value`. + // + // Requires: + // + // * That `property` comes first in `order_by`. GREATER_THAN = 3; - // Greater than or equal. + // The given `property` is greater than or equal to the given `value`. + // + // Requires: + // + // * That `property` comes first in `order_by`. GREATER_THAN_OR_EQUAL = 4; - // Equal. + // The given `property` is equal to the given `value`. EQUAL = 5; - // Has ancestor. + // The given `property` is equal to at least one value in the given array. + // + // Requires: + // + // * That `value` is a non-empty `ArrayValue`, subject to disjunction + // limits. + // * No `NOT_IN` is in the same query. + IN = 6; + + // The given `property` is not equal to the given `value`. + // + // Requires: + // + // * No other `NOT_EQUAL` or `NOT_IN` is in the same query. + // * That `property` comes first in the `order_by`. + NOT_EQUAL = 9; + + // Limit the result set to the given entity and its descendants. + // + // Requires: + // + // * That `value` is an entity key. + // * All evaluated disjunctions must have the same `HAS_ANCESTOR` filter. HAS_ANCESTOR = 11; + + // The value of the `property` is not in the given array. + // + // Requires: + // + // * That `value` is a non-empty `ArrayValue` with at most 10 values. + // * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query. + // * That `field` comes first in the `order_by`. + NOT_IN = 13; } // The property to filter by. @@ -310,4 +527,16 @@ message QueryResultBatch { // is valid for all preceding batches. // The value will be zero for eventually consistent queries. int64 snapshot_version = 7; + + // Read timestamp this batch was returned from. + // This applies to the range of results from the query's `start_cursor` (or + // the beginning of the query if no cursor was given) to this batch's + // `end_cursor` (not the query's `end_cursor`). + // + // In a single transaction, subsequent query result batches for the same query + // can have a greater timestamp. Each batch's read timestamp + // is valid for all preceding batches. + // This value will not be set for eventually consistent queries in Cloud + // Datastore. + google.protobuf.Timestamp read_time = 8; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/query_profile.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/query_profile.proto new file mode 100644 index 00000000..e00a28e3 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1/query_profile.proto @@ -0,0 +1,91 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.datastore.v1; + +import "google/api/field_behavior.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.Datastore.V1"; +option go_package = "cloud.google.com/go/datastore/apiv1/datastorepb;datastorepb"; +option java_multiple_files = true; +option java_outer_classname = "QueryProfileProto"; +option java_package = "com.google.datastore.v1"; +option php_namespace = "Google\\Cloud\\Datastore\\V1"; +option ruby_package = "Google::Cloud::Datastore::V1"; + +// Specification of the Datastore Query Profile fields. + +// Explain options for the query. +message ExplainOptions { + // Optional. Whether to execute this query. + // + // When false (the default), the query will be planned, returning only + // metrics from the planning stages. + // + // When true, the query will be planned and executed, returning the full + // query results along with both planning and execution stage metrics. + bool analyze = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Explain metrics for the query. +message ExplainMetrics { + // Planning phase information for the query. + PlanSummary plan_summary = 1; + + // Aggregated stats from the execution of the query. Only present when + // [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] is set + // to true. + ExecutionStats execution_stats = 2; +} + +// Planning phase information for the query. +message PlanSummary { + // The indexes selected for the query. For example: + // [ + // {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, + // {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} + // ] + repeated google.protobuf.Struct indexes_used = 1; +} + +// Execution statistics for the query. +message ExecutionStats { + // Total number of results returned, including documents, projections, + // aggregation results, keys. + int64 results_returned = 1; + + // Total time to execute the query in the backend. + google.protobuf.Duration execution_duration = 3; + + // Total billable read operations. + int64 read_operations = 4; + + // Debugging statistics from the execution of the query. Note that the + // debugging stats are subject to change as Firestore evolves. It could + // include: + // { + // "indexes_entries_scanned": "1000", + // "documents_scanned": "20", + // "billing_details" : { + // "documents_billable": "20", + // "index_entries_billable": "1000", + // "min_query_cost": "0" + // } + // } + google.protobuf.Struct debug_stats = 5; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/datastore.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/datastore.proto index 1dadfda5..377a055e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/datastore.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/datastore.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ import "google/datastore/v1beta3/entity.proto"; import "google/datastore/v1beta3/query.proto"; option csharp_namespace = "Google.Cloud.Datastore.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/datastore/v1beta3;datastore"; +option go_package = "cloud.google.com/go/datastore/apiv1beta3/datastorepb;datastorepb"; option java_multiple_files = true; option java_outer_classname = "DatastoreProto"; option java_package = "com.google.datastore.v1beta3"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/entity.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/entity.proto index 5d2fca2f..cc8452a5 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/entity.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/entity.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/latlng.proto"; option csharp_namespace = "Google.Cloud.Datastore.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/datastore/v1beta3;datastore"; +option go_package = "cloud.google.com/go/datastore/apiv1beta3/datastorepb;datastorepb"; option java_multiple_files = true; option java_outer_classname = "EntityProto"; option java_package = "com.google.datastore.v1beta3"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/query.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/query.proto index 4a7c5b6d..74b29155 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/query.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/datastore/v1beta3/query.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ import "google/protobuf/wrappers.proto"; import "google/type/latlng.proto"; option csharp_namespace = "Google.Cloud.Datastore.V1Beta3"; -option go_package = "google.golang.org/genproto/googleapis/datastore/v1beta3;datastore"; +option go_package = "cloud.google.com/go/datastore/apiv1beta3/datastorepb;datastorepb"; option java_multiple_files = true; option java_outer_classname = "QueryProto"; option java_package = "com.google.datastore.v1beta3"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/BUILD.bazel index a87c57fe..8725fa7b 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/BUILD.bazel @@ -1 +1,40 @@ +# This build file includes a target for the Ruby wrapper library for +# google-iam. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +# Export yaml configs. exports_files(glob(["*.yaml"])) + +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", +) + +# Generates a Ruby wrapper client for iam. +# Ruby wrapper clients are versionless, but are generated from source protos +# for a particular service version, v2 in this case. +ruby_cloud_gapic_library( + name = "iam_ruby_wrapper", + srcs = ["//google/iam/v2:iam_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-iam", + "ruby-cloud-wrapper-of=v2:0.5", + "ruby-cloud-product-url=https://cloud.google.com/iam", + "ruby-cloud-api-id=iam.googleapis.com", + "ruby-cloud-api-shortname=iam", + ], + ruby_cloud_description = "Manages identity and access control policies for Google Cloud Platform resources.", + ruby_cloud_title = "IAM", + transport = "grpc+rest", +) + +# Open Source package. +ruby_gapic_assembly_pkg( + name = "google-iam-ruby", + deps = [ + ":iam_ruby_wrapper", + ], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/README.md b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/README.md index c402a9dd..c78554d8 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/README.md +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/README.md @@ -1,14 +1,24 @@ -# Introduction +## IAM (Identity and Access Management) Protos -# Key Concepts +This folder contains [protocol buffer][protobuf] types which represent IAM +(Identity and Access Management) concepts plus a mix-in service declaration (IAMPolicy) +which can be inherited by APIs so that they follow a consistent pattern for +IAM operations. -## Service Account +### Key Concepts -A Service Account is an account used to identify services (non-humans) to Google. -A Service Account has a list of Service Account Keys, which can be used to authenticate to Google. +- **Binding**: Associates a list of identities with a particular role. An identity can + match things like all users, all authenticated users, a single user, a single service + account, a single group, or a single domain. A role is a permission defined by IAM, such as + `roles/viewer`, `roles/editor`, or `roles/owner`. +- **Policy**: A list of bindings where each role can only appear once. It also contains + a version to track iterations of the bindings. -## Service Account Keys +### Key Service definitions -A Service Account Key is a public/private keypair generated by Google. Google retains the public -key, while the customer is given the private key. The private key can be used to [sign JWTs and -authenticate Service Accounts to Google](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#authorizingrequests). +- **IAMPolicy**: This is a mix-in service which defines three operations: + - `SetIamPolicy`: Sets the access control policy on the specified resource. + - `GetIamPolicy`: Gets the access control policy for a resource. + - `TestIamPermissions`: Returns permissions that a caller has on the specified resource. + +[protobuf]: https://developers.google.com/protocol-buffers/ diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/BUILD.bazel index 9f4b2e30..178cf4e3 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/BUILD.bazel @@ -30,10 +30,8 @@ proto_library( "//google/api:field_behavior_proto", "//google/api:resource_proto", "//google/iam/v1:iam_policy_proto", - "//google/iam/v1:options_proto", "//google/iam/v1:policy_proto", "//google/type:expr_proto", - "@com_google_protobuf//:any_proto", "@com_google_protobuf//:empty_proto", "@com_google_protobuf//:field_mask_proto", "@com_google_protobuf//:timestamp_proto", @@ -77,12 +75,16 @@ java_gapic_library( # This was manually replaced - build_gen shouldn't have removed it. gapic_yaml = "iam_gapic.yaml", grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam.yaml", test_deps = [ ":admin_java_grpc", "//google/iam/v1:iam_java_grpc", ], + transport = "grpc", deps = [ ":admin_java_proto", + "//google/api:api_java_proto", "//google/iam/v1:iam_java_proto", ], ) @@ -101,6 +103,8 @@ java_gapic_test( # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-cloud-iam-admin-v1-java", + include_samples = True, + transport = "grpc", deps = [ ":admin_java_gapic", ":admin_java_grpc", @@ -117,13 +121,12 @@ load( "go_gapic_assembly_pkg", "go_gapic_library", "go_proto_library", - "go_test", ) go_proto_library( name = "admin_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/iam/admin/v1", + importpath = "cloud.google.com/go/iam/admin/apiv1/adminpb", protos = [":admin_proto"], deps = [ "//google/api:annotations_go_proto", @@ -138,26 +141,23 @@ go_gapic_library( grpc_service_config = "iam_grpc_service_config.json", importpath = "cloud.google.com/go/iam/admin/apiv1;admin", metadata = True, + release_level = "ga", + rest_numeric_enums = True, service_yaml = "iam.yaml", + transport = "grpc", deps = [ ":admin_go_proto", "//google/iam/v1:iam_go_proto", ], ) -go_test( - name = "admin_go_gapic_test", - srcs = [":admin_go_gapic_srcjar_test"], - embed = [":admin_go_gapic"], - importpath = "cloud.google.com/go/iam/admin/apiv1", -) - # Open Source Packages go_gapic_assembly_pkg( name = "gapi-cloud-iam-admin-v1-go", deps = [ ":admin_go_gapic", ":admin_go_gapic_srcjar-metadata.srcjar", + ":admin_go_gapic_srcjar-snippets.srcjar", ":admin_go_gapic_srcjar-test.srcjar", ":admin_go_proto", ], @@ -170,12 +170,34 @@ load( "@com_google_googleapis_imports//:imports.bzl", "py_gapic_assembly_pkg", "py_gapic_library", + "py_test", ) py_gapic_library( name = "admin_py_gapic", srcs = [":admin_proto"], grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam.yaml", + transport = "grpc", + deps = [ + "//google/iam/v1:iam_policy_py_proto", + ], + opt_args = [ + "python-gapic-name=iam_admin", + "python-gapic-namespace=google.cloud", + "warehouse-package-name=google-cloud-iam", + ], +) + +py_test( + name = "admin_py_gapic_test", + srcs = [ + "admin_py_gapic_pytest.py", + "admin_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":admin_py_gapic"], ) # Open Source Packages @@ -188,14 +210,12 @@ py_gapic_assembly_pkg( ############################################################################## # PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", ) php_proto_library( @@ -203,20 +223,14 @@ php_proto_library( deps = [":admin_proto"], ) -php_grpc_library( - name = "admin_php_grpc", - srcs = [":admin_proto"], - deps = [":admin_php_proto"], -) - php_gapic_library( name = "admin_php_gapic", srcs = [":admin_proto_with_info"], grpc_service_config = "iam_grpc_service_config.json", - deps = [ - ":admin_php_grpc", - ":admin_php_proto", - ], + rest_numeric_enums = True, + service_yaml = "iam.yaml", + transport = "grpc+rest", + deps = [":admin_php_proto"], ) # Open Source Packages @@ -224,7 +238,6 @@ php_gapic_assembly_pkg( name = "google-cloud-iam-admin-v1-php", deps = [ ":admin_php_gapic", - ":admin_php_grpc", ":admin_php_proto", ], ) @@ -245,7 +258,9 @@ nodejs_gapic_library( extra_protoc_parameters = ["metadata"], grpc_service_config = "iam_grpc_service_config.json", package = "google.iam.admin.v1", + rest_numeric_enums = True, service_yaml = "iam.yaml", + transport = "grpc", deps = [], ) @@ -284,6 +299,9 @@ ruby_cloud_gapic_library( srcs = [":admin_proto_with_info"], extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-iam-admin-v1"], grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam.yaml", + transport = "grpc", deps = [ ":admin_ruby_grpc", ":admin_ruby_proto", @@ -327,6 +345,9 @@ csharp_gapic_library( srcs = [":admin_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam.yaml", + transport = "grpc", deps = [ ":admin_csharp_grpc", ":admin_csharp_proto", diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/audit_data.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/audit_data.proto index 015ef85b..8f350872 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/audit_data.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/audit_data.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,12 +16,12 @@ syntax = "proto3"; package google.iam.admin.v1; -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/iam/admin/v1;admin"; +option csharp_namespace = "Google.Cloud.Iam.Admin.V1"; +option go_package = "cloud.google.com/go/iam/admin/apiv1/adminpb;adminpb"; option java_multiple_files = true; option java_outer_classname = "AuditDataProto"; option java_package = "com.google.iam.admin.v1"; +option php_namespace = "Google\\Cloud\\Iam\\Admin\\V1"; // Audit log information specific to Cloud IAM admin APIs. This message is // serialized as an `Any` type in the `ServiceData` message of an diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/iam.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/iam.proto index 8c052b03..8d3fe5cd 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/iam.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/admin/v1/iam.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,24 +16,23 @@ syntax = "proto3"; package google.iam.admin.v1; +import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/iam/v1/iam_policy.proto"; -import "google/iam/v1/options.proto"; import "google/iam/v1/policy.proto"; -import "google/protobuf/any.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/type/expr.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/iam/admin/v1;admin"; +option csharp_namespace = "Google.Cloud.Iam.Admin.V1"; +option go_package = "cloud.google.com/go/iam/admin/apiv1/adminpb;adminpb"; option java_multiple_files = true; -option java_outer_classname = "IamProto"; option java_package = "com.google.iam.admin.v1"; +option php_namespace = "Google\\Cloud\\Iam\\Admin\\V1"; // Creates and manages Identity and Access Management (IAM) resources. // @@ -44,9 +43,9 @@ option java_package = "com.google.iam.admin.v1"; // * **Service account keys**, which service accounts use to authenticate with // Google APIs // * **IAM policies for service accounts**, which specify the roles that a -// member has for the service account +// principal has for the service account // * **IAM custom roles**, which help you limit the number of permissions that -// you grant to members +// you grant to principals // // In addition, you can use this service to complete the following tasks, among // others: @@ -54,6 +53,16 @@ option java_package = "com.google.iam.admin.v1"; // * Test whether a service account can use specific permissions // * Check which roles you can grant for a specific resource // * Lint, or validate, condition expressions in an IAM policy +// +// When you read data from the IAM API, each read is eventually consistent. In +// other words, if you write data with the IAM API, then immediately read that +// data, the read operation might return an older version of the data. To deal +// with this behavior, your application can retry the request with truncated +// exponential backoff. +// +// In contrast, writing data to the IAM API is sequentially consistent. In other +// words, write operations are always processed in the order in which they were +// received. service IAM { option (google.api.default_host) = "iam.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; @@ -88,7 +97,7 @@ service IAM { // // Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. // - // You can update only the `display_name` and `description` fields. + // You can update only the `display_name` field. rpc UpdateServiceAccount(ServiceAccount) returns (ServiceAccount) { option (google.api.http) = { put: "/v1/{name=projects/*/serviceAccounts/*}" @@ -204,7 +213,11 @@ service IAM { option (google.api.method_signature) = "name,private_key_type,key_algorithm"; } - // Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey], using a public key that you provide. + // Uploads the public key portion of a key pair that you manage, and + // associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. + // + // After you upload the public key, you can use the private key from the key + // pair as a service account key. rpc UploadServiceAccountKey(UploadServiceAccountKeyRequest) returns (ServiceAccountKey) { option (google.api.http) = { post: "/v1/{name=projects/*/serviceAccounts/*}/keys:upload" @@ -222,6 +235,25 @@ service IAM { option (google.api.method_signature) = "name"; } + // Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be + // re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey]. + rpc DisableServiceAccountKey(DisableServiceAccountKeyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/serviceAccounts/*/keys/*}:disable" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. + rpc EnableServiceAccountKey(EnableServiceAccountKeyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/serviceAccounts/*/keys/*}:enable" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + // **Note:** This method is deprecated. Use the // [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob) // method in the IAM Service Account Credentials API instead. If you currently @@ -258,7 +290,7 @@ service IAM { } // Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM - // policy specifies which members have access to the service account. + // policy specifies which principals have access to the service account. // // This method does not tell you whether the service account has been granted // any roles on other resources. To check whether a service account has role @@ -277,7 +309,7 @@ service IAM { // Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. // // Use this method to grant or revoke access to the service account. For - // example, you could grant a member the ability to impersonate the service + // example, you could grant a principal the ability to impersonate the service // account. // // This method does not enable the service account to access other resources. @@ -289,8 +321,10 @@ service IAM { // 3. Call the resource's `setIamPolicy` method to update its IAM policy. // // For detailed instructions, see - // [Granting roles to a service account for specific - // resources](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts). + // [Manage access to project, folders, and + // organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) + // or [Manage access to other + // resources](https://cloud.google.com/iam/help/access/manage-other-resources). rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1/{resource=projects/*/serviceAccounts/*}:setIamPolicy" @@ -375,7 +409,7 @@ service IAM { // // When you delete a custom role, the following changes occur immediately: // - // * You cannot bind a member to the custom role in an IAM + // * You cannot bind a principal to the custom role in an IAM // [Policy][google.iam.v1.Policy]. // * Existing bindings to the custom role are not changed, but they have no // effect. @@ -410,7 +444,7 @@ service IAM { } // Lists every permission that you can test on a resource. A permission is - // testable if you can check whether a member has that permission on the + // testable if you can check whether a principal has that permission on the // resource. rpc QueryTestablePermissions(QueryTestablePermissionsRequest) returns (QueryTestablePermissionsResponse) { option (google.api.http) = { @@ -603,8 +637,7 @@ message DeleteServiceAccountRequest { ]; } -// The request for -// [PatchServiceAccount][google.iam.admin.v1.PatchServiceAccount]. +// The service account patch request. // // You can patch only the `display_name` and `description` fields. You must use // the `update_mask` field to specify which of these fields you want to patch. @@ -707,9 +740,59 @@ message GetServiceAccountKeyRequest { } ]; - // The output format of the public key requested. - // X509_PEM is the default output format. - ServiceAccountPublicKeyType public_key_type = 2; + // Optional. The output format of the public key. The default is `TYPE_NONE`, which + // means that the public key is not returned. + ServiceAccountPublicKeyType public_key_type = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Supported key algorithms. +enum ServiceAccountKeyAlgorithm { + // An unspecified key algorithm. + KEY_ALG_UNSPECIFIED = 0; + + // 1k RSA Key. + KEY_ALG_RSA_1024 = 1; + + // 2k RSA Key. + KEY_ALG_RSA_2048 = 2; +} + +// Supported private key output formats. +enum ServiceAccountPrivateKeyType { + // Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`. + TYPE_UNSPECIFIED = 0; + + // PKCS12 format. + // The password for the PKCS12 file is `notasecret`. + // For more information, see https://tools.ietf.org/html/rfc7292. + TYPE_PKCS12_FILE = 1; + + // Google Credentials File format. + TYPE_GOOGLE_CREDENTIALS_FILE = 2; +} + +// Supported public key output formats. +enum ServiceAccountPublicKeyType { + // Do not return the public key. + TYPE_NONE = 0; + + // X509 PEM format. + TYPE_X509_PEM_FILE = 1; + + // Raw public key. + TYPE_RAW_PUBLIC_KEY = 2; +} + +// Service Account Key Origin. +enum ServiceAccountKeyOrigin { + // Unspecified key origin. + ORIGIN_UNSPECIFIED = 0; + + // Key is provided by user. + USER_PROVIDED = 1; + + // Key is provided by Google. + GOOGLE_PROVIDED = 2; } // Represents a service account key. @@ -783,6 +866,9 @@ message ServiceAccountKey { // The key type. ListServiceAccountKeysRequest.KeyType key_type = 10; + + // The key status. + bool disabled = 11; } // The service account key create request. @@ -819,10 +905,10 @@ message UploadServiceAccountKeyRequest { // `unique_id` of the service account. string name = 1; - // A field that allows clients to upload their own public key. If set, - // use this public key data to create a service account key for given - // service account. - // Please note, the expected format for this field is X509_PEM. + // The public key to associate with the service account. Must be an RSA public + // key that is wrapped in an X.509 v3 certificate. Include the first line, + // `-----BEGIN CERTIFICATE-----`, and the last line, + // `-----END CERTIFICATE-----`. bytes public_key_data = 2; } @@ -841,6 +927,38 @@ message DeleteServiceAccountKeyRequest { ]; } +// The service account key disable request. +message DisableServiceAccountKeyRequest { + // Required. The resource name of the service account key in the following format: + // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + // + // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + // the account. The `ACCOUNT` value can be the `email` address or the + // `unique_id` of the service account. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/Key" + } + ]; +} + +// The service account key enable request. +message EnableServiceAccountKeyRequest { + // Required. The resource name of the service account key in the following format: + // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + // + // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + // the account. The `ACCOUNT` value can be the `email` address or the + // `unique_id` of the service account. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/Key" + } + ]; +} + // Deprecated. [Migrate to Service Account Credentials // API](https://cloud.google.com/iam/help/credentials/migrate-api). // @@ -890,56 +1008,6 @@ message SignBlobResponse { bytes signature = 2 [deprecated = true]; } -// Supported key algorithms. -enum ServiceAccountKeyAlgorithm { - // An unspecified key algorithm. - KEY_ALG_UNSPECIFIED = 0; - - // 1k RSA Key. - KEY_ALG_RSA_1024 = 1; - - // 2k RSA Key. - KEY_ALG_RSA_2048 = 2; -} - -// Supported private key output formats. -enum ServiceAccountPrivateKeyType { - // Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`. - TYPE_UNSPECIFIED = 0; - - // PKCS12 format. - // The password for the PKCS12 file is `notasecret`. - // For more information, see https://tools.ietf.org/html/rfc7292. - TYPE_PKCS12_FILE = 1; - - // Google Credentials File format. - TYPE_GOOGLE_CREDENTIALS_FILE = 2; -} - -// Supported public key output formats. -enum ServiceAccountPublicKeyType { - // Unspecified. Returns nothing here. - TYPE_NONE = 0; - - // X509 PEM format. - TYPE_X509_PEM_FILE = 1; - - // Raw public key. - TYPE_RAW_PUBLIC_KEY = 2; -} - -// Service Account Key Origin. -enum ServiceAccountKeyOrigin { - // Unspecified key origin. - ORIGIN_UNSPECIFIED = 0; - - // Key is provided by user. - USER_PROVIDED = 1; - - // Key is provided by Google. - GOOGLE_PROVIDED = 2; -} - // Deprecated. [Migrate to Service Account Credentials // API](https://cloud.google.com/iam/help/credentials/migrate-api). // @@ -968,8 +1036,8 @@ message SignJwtRequest { // JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` // // If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - // an integer timestamp that is not in the past and no more than 1 hour in the - // future. + // an integer timestamp that is not in the past and no more than 12 hours in + // the future. // // If the JWT Claims Set does not contain an expiration time (`exp`) claim, // this claim is added automatically, with a timestamp that is 1 hour in the @@ -1016,8 +1084,8 @@ message Role { // The user has indicated this role is being deprecated. DEPRECATED = 4; - // This role is disabled and will not contribute permissions to any members - // it is granted to in policies. + // This role is disabled and will not contribute permissions to any + // principals it is granted to in policies. DISABLED = 5; // The user has indicated this role is currently in an EAP phase. @@ -1087,36 +1155,51 @@ message QueryGrantableRolesResponse { string next_page_token = 2; } +// A view for Role objects. +enum RoleView { + // Omits the `included_permissions` field. + // This is the default value. + BASIC = 0; + + // Returns all fields. + FULL = 1; +} + // The request to get all roles defined under a resource. message ListRolesRequest { // The `parent` parameter's value depends on the target resource for the // request, namely - // [`roles`](/iam/reference/rest/v1/roles), - // [`projects`](/iam/reference/rest/v1/projects.roles), or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `parent` value format is described below: + // [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `parent` value format is described below: // - // * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string. + // * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string. // This method doesn't require a resource; it simply returns all - // [predefined roles](/iam/docs/understanding-roles#predefined_roles) in - // Cloud IAM. Example request URL: - // `https://iam.googleapis.com/v1/roles` + // [predefined + // roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + // in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles` // - // * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list): + // * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list): // `projects/{PROJECT_ID}`. This method lists all project-level - // [custom roles](/iam/docs/understanding-custom-roles). + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). // Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` // - // * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list): + // * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list): // `organizations/{ORGANIZATION_ID}`. This method lists all - // organization-level [custom roles](/iam/docs/understanding-custom-roles). + // organization-level [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). // Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string parent = 1 [(google.api.resource_reference).type = "*"]; + string parent = 1 [(google.api.resource_reference) = { + type: "*" + }]; // Optional limit on the number of roles to include in the response. // @@ -1150,57 +1233,68 @@ message ListRolesResponse { message GetRoleRequest { // The `name` parameter's value depends on the target resource for the // request, namely - // [`roles`](/iam/reference/rest/v1/roles), - // [`projects`](/iam/reference/rest/v1/projects.roles), or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `name` value format is described below: + // [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `name` value format is described below: // - // * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`. + // * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`. // This method returns results from all - // [predefined roles](/iam/docs/understanding-roles#predefined_roles) in - // Cloud IAM. Example request URL: + // [predefined + // roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + // in Cloud IAM. Example request URL: // `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` // - // * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get): + // * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get): // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only - // [custom roles](/iam/docs/understanding-custom-roles) that have been - // created at the project level. Example request URL: + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + // have been created at the project level. Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` // - // * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get): + // * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get): // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // returns only [custom roles](/iam/docs/understanding-custom-roles) that + // returns only [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that // have been created at the organization level. Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string name = 1 [(google.api.resource_reference).type = "*"]; + string name = 1 [(google.api.resource_reference) = { + type: "*" + }]; } // The request to create a new role. message CreateRoleRequest { // The `parent` parameter's value depends on the target resource for the // request, namely - // [`projects`](/iam/reference/rest/v1/projects.roles) or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `parent` value format is described below: + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `parent` value format is described below: // - // * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create): + // * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create): // `projects/{PROJECT_ID}`. This method creates project-level - // [custom roles](/iam/docs/understanding-custom-roles). + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). // Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` // - // * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create): + // * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create): // `organizations/{ORGANIZATION_ID}`. This method creates organization-level - // [custom roles](/iam/docs/understanding-custom-roles). Example request - // URL: + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). + // Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string parent = 1 [(google.api.resource_reference).type = "*"]; + string parent = 1 [(google.api.resource_reference) = { + type: "*" + }]; // The role ID to use for this role. // @@ -1217,25 +1311,30 @@ message CreateRoleRequest { message UpdateRoleRequest { // The `name` parameter's value depends on the target resource for the // request, namely - // [`projects`](/iam/reference/rest/v1/projects.roles) or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `name` value format is described below: + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `name` value format is described below: // - // * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch): + // * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch): // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only - // [custom roles](/iam/docs/understanding-custom-roles) that have been - // created at the project level. Example request URL: + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + // have been created at the project level. Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` // - // * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch): + // * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch): // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // updates only [custom roles](/iam/docs/understanding-custom-roles) that + // updates only [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that // have been created at the organization level. Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string name = 1 [(google.api.resource_reference).type = "*"]; + string name = 1 [(google.api.resource_reference) = { + type: "*" + }]; // The updated role. Role role = 2; @@ -1248,25 +1347,30 @@ message UpdateRoleRequest { message DeleteRoleRequest { // The `name` parameter's value depends on the target resource for the // request, namely - // [`projects`](/iam/reference/rest/v1/projects.roles) or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `name` value format is described below: + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `name` value format is described below: // - // * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete): + // * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete): // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only - // [custom roles](/iam/docs/understanding-custom-roles) that have been - // created at the project level. Example request URL: + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + // have been created at the project level. Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` // - // * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete): + // * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete): // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // deletes only [custom roles](/iam/docs/understanding-custom-roles) that + // deletes only [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that // have been created at the organization level. Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string name = 1 [(google.api.resource_reference).type = "*"]; + string name = 1 [(google.api.resource_reference) = { + type: "*" + }]; // Used to perform a consistent read-modify-write. bytes etag = 2; @@ -1276,25 +1380,30 @@ message DeleteRoleRequest { message UndeleteRoleRequest { // The `name` parameter's value depends on the target resource for the // request, namely - // [`projects`](/iam/reference/rest/v1/projects.roles) or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `name` value format is described below: + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `name` value format is described below: // - // * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete): + // * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete): // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes - // only [custom roles](/iam/docs/understanding-custom-roles) that have been - // created at the project level. Example request URL: + // only [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + // have been created at the project level. Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` // - // * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete): + // * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete): // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // undeletes only [custom roles](/iam/docs/understanding-custom-roles) that + // undeletes only [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that // have been created at the organization level. Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string name = 1 [(google.api.resource_reference).type = "*"]; + string name = 1 [(google.api.resource_reference) = { + type: "*" + }]; // Used to perform a consistent read-modify-write. bytes etag = 2; @@ -1319,7 +1428,7 @@ message Permission { // The state of the permission with regards to custom roles. enum CustomRolesSupportLevel { - // Permission is fully supported for custom role use. + // Default state. Permission is fully supported for custom role use. SUPPORTED = 0; // Permission is being tested to check custom role compatibility. @@ -1459,7 +1568,7 @@ message LintResult { // This includes the following common scenarios: // // - Unsatisfiable condition: Expired timestamp in date/time condition. - // - Ineffective condition: Condition on a pair which is + // - Ineffective condition: Condition on a pair which is // granted unconditionally in another binding of the same policy. WARNING = 2; @@ -1512,13 +1621,3 @@ message LintPolicyResponse { // List of lint results sorted by `severity` in descending order. repeated LintResult lint_results = 1; } - -// A view for Role objects. -enum RoleView { - // Omits the `included_permissions` field. - // This is the default value. - BASIC = 0; - - // Returns all fields. - FULL = 1; -} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/BUILD.bazel index a87c57fe..f3483e02 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/BUILD.bazel @@ -1 +1,41 @@ +# This build file includes a target for the Ruby wrapper library for +# google-iam-credentials. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +# Export yaml configs. exports_files(glob(["*.yaml"])) + +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", +) + +# Generates a Ruby wrapper client for iamcredentials. +# Ruby wrapper clients are versionless, but are generated from source protos +# for a particular service version, v1 in this case. +ruby_cloud_gapic_library( + name = "iamcredentials_ruby_wrapper", + srcs = ["//google/iam/credentials/v1:credentials_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-iam-credentials", + "ruby-cloud-env-prefix=IAM_CREDENTIALS", + "ruby-cloud-wrapper-of=v1:0.8", + "ruby-cloud-product-url=https://cloud.google.com/iam", + "ruby-cloud-api-id=iamcredentials.googleapis.com", + "ruby-cloud-api-shortname=iamcredentials", + ], + ruby_cloud_description = "The Service Account Credentials API creates short-lived credentials for Identity and Access Management (IAM) service accounts. You can also use this API to sign JSON Web Tokens (JWTs), as well as blobs of binary data that contain other types of tokens.", + ruby_cloud_title = "IAM Service Account Credentials", + transport = "grpc+rest", +) + +# Open Source package. +ruby_gapic_assembly_pkg( + name = "google-iam-credentials-ruby", + deps = [ + ":iamcredentials_ruby_wrapper", + ], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/iamcredentials_v1.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/iamcredentials_v1.yaml deleted file mode 100644 index bba6921c..00000000 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/iamcredentials_v1.yaml +++ /dev/null @@ -1,17 +0,0 @@ -type: google.api.Service -config_version: 3 -name: iamcredentials.googleapis.com -title: IAM Service Account Credentials API - -apis: -- name: google.iam.credentials.v1.IAMCredentials - -documentation: - summary: IAM Service Account Credentials API - -authentication: - rules: - - selector: '*' - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/BUILD.bazel index 4e4f21d8..d535d46e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/BUILD.bazel @@ -1,13 +1,42 @@ # This file was automatically generated by BuildFileGenerator -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - ############################################################################## # Common ############################################################################## load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", + "proto_library_with_info", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_test", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) proto_library( name = "credentials_proto", @@ -33,18 +62,6 @@ proto_library_with_info( ], ) -############################################################################## -# Java -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "java_gapic_assembly_gradle_pkg", - "java_gapic_library", - "java_gapic_test", - "java_grpc_library", - "java_proto_library", -) - java_proto_library( name = "credentials_java_proto", deps = [":credentials_proto"], @@ -60,9 +77,12 @@ java_gapic_library( name = "credentials_java_gapic", srcs = [":credentials_proto_with_info"], grpc_service_config = "iamcredentials_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iamcredentials_v1.yaml", test_deps = [ ":credentials_java_grpc", ], + transport = "grpc+rest", deps = [ ":credentials_java_proto", ], @@ -71,6 +91,7 @@ java_gapic_library( java_gapic_test( name = "credentials_java_gapic_test_suite", test_classes = [ + "com.google.cloud.iam.credentials.v1.IAMCredentialsClientHttpJsonTest", "com.google.cloud.iam.credentials.v1.IAMCredentialsClientTest", ], runtime_deps = [":credentials_java_gapic_test"], @@ -79,6 +100,8 @@ java_gapic_test( # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-cloud-iam-credentials-v1-java", + include_samples = True, + transport = "grpc+rest", deps = [ ":credentials_java_gapic", ":credentials_java_grpc", @@ -87,21 +110,10 @@ java_gapic_assembly_gradle_pkg( ], ) -############################################################################## -# Go -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "go_gapic_assembly_pkg", - "go_gapic_library", - "go_proto_library", - "go_test", -) - go_proto_library( name = "credentials_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/iam/credentials/v1", + importpath = "cloud.google.com/go/iam/credentials/apiv1/credentialspb", protos = [":credentials_proto"], deps = [ "//google/api:annotations_go_proto", @@ -113,43 +125,49 @@ go_gapic_library( srcs = [":credentials_proto_with_info"], grpc_service_config = "iamcredentials_grpc_service_config.json", importpath = "cloud.google.com/go/iam/credentials/apiv1;credentials", - service_yaml = "//google/iam/credentials:iamcredentials_v1.yaml", + release_level = "ga", + rest_numeric_enums = True, + service_yaml = "iamcredentials_v1.yaml", + transport = "grpc+rest", deps = [ ":credentials_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) -go_test( - name = "credentials_go_gapic_test", - srcs = [":credentials_go_gapic_srcjar_test"], - embed = [":credentials_go_gapic"], - importpath = "cloud.google.com/go/iam/credentials/apiv1", -) - # Open Source Packages go_gapic_assembly_pkg( name = "gapi-cloud-iam-credentials-v1-go", deps = [ ":credentials_go_gapic", + ":credentials_go_gapic_srcjar-snippets.srcjar", ":credentials_go_gapic_srcjar-test.srcjar", ":credentials_go_proto", ], ) -############################################################################## -# Python -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "py_gapic_assembly_pkg", - "py_gapic_library", -) - py_gapic_library( name = "credentials_py_gapic", srcs = [":credentials_proto"], grpc_service_config = "iamcredentials_grpc_service_config.json", + opt_args = [ + "warehouse-package-name=google-cloud-iam", + "python-gapic-namespace=google.cloud", + "python-gapic-name=iam_credentials", + ], + rest_numeric_enums = True, + service_yaml = "iamcredentials_v1.yaml", + transport = "grpc+rest", +) + +py_test( + name = "credentials_py_gapic_test", + srcs = [ + "credentials_py_gapic_pytest.py", + "credentials_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":credentials_py_gapic"], ) py_gapic_assembly_pkg( @@ -159,37 +177,20 @@ py_gapic_assembly_pkg( ], ) -############################################################################## -# PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", -) - php_proto_library( name = "credentials_php_proto", deps = [":credentials_proto"], ) -php_grpc_library( - name = "credentials_php_grpc", - srcs = [":credentials_proto"], - deps = [":credentials_php_proto"], -) - php_gapic_library( name = "credentials_php_gapic", srcs = [":credentials_proto_with_info"], grpc_service_config = "iamcredentials_grpc_service_config.json", - deps = [ - ":credentials_php_grpc", - ":credentials_php_proto", - ], + migration_mode = "MIGRATING", + rest_numeric_enums = True, + service_yaml = "iamcredentials_v1.yaml", + transport = "grpc+rest", + deps = [":credentials_php_proto"], ) # Open Source Packages @@ -197,20 +198,10 @@ php_gapic_assembly_pkg( name = "google-cloud-iam-credentials-v1-php", deps = [ ":credentials_php_gapic", - ":credentials_php_grpc", ":credentials_php_proto", ], ) -############################################################################## -# Node.js -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - nodejs_gapic_library( name = "credentials_nodejs_gapic", package_name = "@google-cloud/iam-credentials", @@ -218,7 +209,9 @@ nodejs_gapic_library( extra_protoc_parameters = ["metadata"], grpc_service_config = "iamcredentials_grpc_service_config.json", package = "google.iam.credentials.v1", - service_yaml = "//google/iam/credentials:iamcredentials_v1.yaml", + rest_numeric_enums = True, + service_yaml = "iamcredentials_v1.yaml", + transport = "grpc+rest", deps = [], ) @@ -230,17 +223,6 @@ nodejs_gapic_assembly_pkg( ], ) -############################################################################## -# Ruby -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "ruby_gapic_assembly_pkg", - "ruby_cloud_gapic_library", - "ruby_grpc_library", - "ruby_proto_library", -) - ruby_proto_library( name = "credentials_ruby_proto", deps = [":credentials_proto"], @@ -254,7 +236,7 @@ ruby_grpc_library( ruby_cloud_gapic_library( name = "credentials_ruby_gapic", - srcs = [":credentials_proto_with_info",], + srcs = [":credentials_proto_with_info"], extra_protoc_parameters = [ "ruby-cloud-gem-name=google-iam-credentials-v1", "ruby-cloud-env-prefix=IAM_CREDENTIALS", @@ -263,8 +245,11 @@ ruby_cloud_gapic_library( "ruby-cloud-api-shortname=iamcredentials", ], grpc_service_config = "iamcredentials_grpc_service_config.json", + rest_numeric_enums = True, ruby_cloud_description = "The Service Account Credentials API creates short-lived credentials for Identity and Access Management (IAM) service accounts. You can also use this API to sign JSON Web Tokens (JWTs), as well as blobs of binary data that contain other types of tokens.", ruby_cloud_title = "IAM Service Account Credentials V1", + service_yaml = "iamcredentials_v1.yaml", + transport = "grpc+rest", deps = [ ":credentials_ruby_grpc", ":credentials_ruby_proto", @@ -281,17 +266,6 @@ ruby_gapic_assembly_pkg( ], ) -############################################################################## -# C# -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "csharp_gapic_assembly_pkg", - "csharp_gapic_library", - "csharp_grpc_library", - "csharp_proto_library", -) - csharp_proto_library( name = "credentials_csharp_proto", deps = [":credentials_proto"], @@ -308,6 +282,9 @@ csharp_gapic_library( srcs = [":credentials_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", grpc_service_config = "iamcredentials_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iamcredentials_v1.yaml", + transport = "grpc+rest", deps = [ ":credentials_csharp_grpc", ":credentials_csharp_proto", @@ -324,15 +301,6 @@ csharp_gapic_assembly_pkg( ], ) -############################################################################## -# C++ -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "cc_grpc_library", - "cc_proto_library", -) - cc_proto_library( name = "credentials_cc_proto", deps = [":credentials_proto"], diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/common.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/common.proto index 045a0dfb..d25982da 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/common.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,10 +23,11 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Iam.Credentials.V1"; -option go_package = "google.golang.org/genproto/googleapis/iam/credentials/v1;credentials"; +option go_package = "cloud.google.com/go/iam/credentials/apiv1/credentialspb;credentialspb"; option java_multiple_files = true; option java_outer_classname = "IAMCredentialsCommonProto"; option java_package = "com.google.cloud.iam.credentials.v1"; +option php_namespace = "Google\\Cloud\\Iam\\Credentials\\V1"; option (google.api.resource_definition) = { type: "iam.googleapis.com/ServiceAccount" pattern: "projects/{project}/serviceAccounts/{service_account}" diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/iamcredentials.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/iamcredentials.proto index b5dcae87..3f5d7056 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/iamcredentials.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/credentials/v1/iamcredentials.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,10 +22,11 @@ import "google/iam/credentials/v1/common.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Iam.Credentials.V1"; -option go_package = "google.golang.org/genproto/googleapis/iam/credentials/v1;credentials"; +option go_package = "cloud.google.com/go/iam/credentials/apiv1/credentialspb;credentialspb"; option java_multiple_files = true; option java_outer_classname = "IAMCredentialsProto"; option java_package = "com.google.cloud.iam.credentials.v1"; +option php_namespace = "Google\\Cloud\\Iam\\Credentials\\V1"; // A service account is a special type of Google account that belongs to your // application or a virtual machine (VM), instead of to an individual end user. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/iam_meta_api.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/iam_meta_api.yaml deleted file mode 100644 index 93985679..00000000 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/iam_meta_api.yaml +++ /dev/null @@ -1,85 +0,0 @@ -type: google.api.Service -config_version: 2 -name: iam-meta-api.googleapis.com -title: IAM Meta API - -apis: -- name: google.iam.v1.IAMPolicy - -types: -- name: google.iam.v1.PolicyDelta - -documentation: - summary: Manages access control for Google Cloud Platform resources. - overview: |- - # Google Identity and Access Management (IAM) API - - Documentation of the access control API that will be implemented by all - 1st party services provided by the Google Cloud Platform (like Cloud - Storage, Compute Engine, App Engine). - - Any implementation of an API that offers access control features - will implement the google.iam.v1.IAMPolicy interface. - - ## Data model - - Access control is applied when a principal (user or service account), - takes some action on a resource exposed by a service. Resources, - identified by - URI-like names, are the unit of access control specification. It is up to - the service implementations to choose what granularity of access control - to support and what set of actions (permissions) to support for the - resources - they provide. For example one database service may allow access control to - be specified only at the Table level, whereas another might allow access - control to also be specified at the Column level. - - This is intentionally not a CRUD style API because access control policies - are created and deleted implicitly with the resources to which they are - attached. - - ## Policy - - A `Policy` consists of a list of bindings. A `Binding` binds a set of - members to a role, where the members can include user accounts, user - groups, user - domains, and service accounts. A role is a named set of permissions, - defined by the IAM system. The definition of a role is outside the - policy. - - A permission check involves determining the roles that include the - specified permission, and then determining if the principal specified by - the check is a member of a binding to at least one of these roles. The - membership check is recursive when a group is bound to a role. - rules: - - selector: google.iam.v1.IAMPolicy.GetIamPolicy - description: |- - Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - - - selector: google.iam.v1.IAMPolicy.SetIamPolicy - description: |- - Sets the access control policy on the specified resource. Replaces - any existing policy. - - - selector: google.iam.v1.IAMPolicy.TestIamPermissions - description: |- - Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a NOT_FOUND error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - -http: - rules: - - selector: google.iam.v1.IAMPolicy.GetIamPolicy - post: '/v1/{resource=**}:getIamPolicy' - body: '*' - - selector: google.iam.v1.IAMPolicy.SetIamPolicy - post: '/v1/{resource=**}:setIamPolicy' - body: '*' - - selector: google.iam.v1.IAMPolicy.TestIamPermissions - post: '/v1/{resource=**}:testIamPermissions' - body: '*' diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/BUILD.bazel index 7f7757e9..87f5dfcb 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/BUILD.bazel @@ -1,12 +1,34 @@ load("@rules_proto//proto:defs.bzl", "proto_library") -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - ############################################################################## # Common ############################################################################## -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "java_gapic_assembly_gradle_pkg", + "java_grpc_library", + "java_proto_library", + "php_gapic_assembly_pkg", + "php_proto_library", + "proto_library_with_info", + "py_proto_library", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) proto_library( name = "iam_policy_proto", @@ -18,6 +40,7 @@ proto_library( "//google/api:client_proto", "//google/api:field_behavior_proto", "//google/api:resource_proto", + "@com_google_protobuf//:field_mask_proto", ], ) @@ -47,17 +70,12 @@ proto_library_with_info( ], ) -############################################################################## -# Java -############################################################################## -load("@com_google_googleapis_imports//:imports.bzl", "java_grpc_library", "java_proto_library") - java_proto_library( name = "iam_java_proto", deps = [ ":iam_policy_proto", - ":policy_proto", ":options_proto", + ":policy_proto", ], ) @@ -67,19 +85,24 @@ java_grpc_library( deps = [":iam_java_proto"], ) -############################################################################## -# Go -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "go_gapic_assembly_pkg", - "go_proto_library", +# Please DO-NOT-REMOVE this section. +# This is required to generate java files for these protos. +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-iam-v1-java", + include_samples = True, + transport = "grpc+rest", + deps = [ + ":iam_java_grpc", + ":iam_java_proto", + ":iam_policy_proto", + ], ) go_proto_library( name = "iam_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/iam/v1", + importpath = "cloud.google.com/go/iam/apiv1/iampb", protos = [ ":iam_policy_proto", ":options_proto", @@ -91,21 +114,31 @@ go_proto_library( ], ) +# Manual addition for owlbot migration. +go_gapic_library( + name = "iam_go_gapic", + srcs = [":iam_proto_with_info"], + grpc_service_config = None, + importpath = "cloud.google.com/go/iam/apiv1;iam", + metadata = True, + release_level = "ga", + rest_numeric_enums = True, + service_yaml = "iam_meta_api.yaml", + transport = "grpc+rest", + deps = [":iam_go_proto"], +) + go_gapic_assembly_pkg( name = "gapi-cloud-iam-v1-go", deps = [ + ":iam_go_gapic", + ":iam_go_gapic_srcjar-metadata.srcjar", + ":iam_go_gapic_srcjar-snippets.srcjar", + ":iam_go_gapic_srcjar-test.srcjar", ":iam_go_proto", ], ) -############################################################################## -# C++ -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "cc_proto_library", - "cc_grpc_library") - cc_proto_library( name = "iam_policy_cc_proto", deps = [":iam_policy_proto"], @@ -128,25 +161,113 @@ cc_grpc_library( deps = [":iam_policy_cc_proto"], ) -############################################################################## -# Python -# ############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "py_proto_library", -) - py_proto_library( name = "iam_policy_py_proto", - deps = [":iam_policy_proto"] + deps = [":iam_policy_proto"], ) py_proto_library( name = "policy_py_proto", - deps = [":policy_proto"] + deps = [":policy_proto"], ) py_proto_library( name = "options_py_proto", - deps = [":options_proto"] + deps = [":options_proto"], +) + +php_proto_library( + name = "iam_php_proto", + deps = [ + ":iam_policy_proto", + ":options_proto", + ":policy_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-iam-v1-php", + deps = [":iam_php_proto"], +) + +ruby_proto_library( + name = "iam_ruby_proto", + deps = [ + ":iam_policy_proto", + ":options_proto", + ":policy_proto", + "//google/iam/v1/logging:audit_data_proto", + ], +) + +ruby_grpc_library( + name = "iam_ruby_grpc", + srcs = [":iam_policy_proto"], + deps = [":iam_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "iam_ruby_gapic", + srcs = [":iam_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-iam-v1", + ], + rest_numeric_enums = False, + ruby_cloud_description = "An add-on interface used by some Google API clients to provide IAM Policy calls.", + ruby_cloud_title = "IAM", + service_yaml = "iam_meta_api.yaml", + transport = "grpc+rest", + deps = [ + ":iam_ruby_grpc", + ":iam_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-iam-v1-ruby", + deps = [ + ":iam_ruby_gapic", + ":iam_ruby_grpc", + ":iam_ruby_proto", + ], +) + +csharp_proto_library( + name = "iam_csharp_proto", + deps = [ + ":iam_policy_proto", + ":options_proto", + ":policy_proto", + "//google/iam/v1/logging:audit_data_proto", + ], +) + +csharp_grpc_library( + name = "iam_csharp_grpc", + srcs = [":iam_policy_proto"], + deps = [":iam_csharp_proto"], +) + +csharp_gapic_library( + name = "iam_csharp_gapic", + srcs = [":iam_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + rest_numeric_enums = False, + service_yaml = "iam_meta_api.yaml", + deps = [ + ":iam_csharp_grpc", + ":iam_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-iam-v1-csharp", + deps = [ + ":iam_csharp_gapic", + ":iam_csharp_grpc", + ":iam_csharp_proto", + ], ) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/iam_meta_api.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/iam_meta_api.yaml index 93985679..6d1cc53d 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/iam_meta_api.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/iam_meta_api.yaml @@ -1,5 +1,5 @@ type: google.api.Service -config_version: 2 +config_version: 3 name: iam-meta-api.googleapis.com title: IAM Meta API @@ -11,46 +11,6 @@ types: documentation: summary: Manages access control for Google Cloud Platform resources. - overview: |- - # Google Identity and Access Management (IAM) API - - Documentation of the access control API that will be implemented by all - 1st party services provided by the Google Cloud Platform (like Cloud - Storage, Compute Engine, App Engine). - - Any implementation of an API that offers access control features - will implement the google.iam.v1.IAMPolicy interface. - - ## Data model - - Access control is applied when a principal (user or service account), - takes some action on a resource exposed by a service. Resources, - identified by - URI-like names, are the unit of access control specification. It is up to - the service implementations to choose what granularity of access control - to support and what set of actions (permissions) to support for the - resources - they provide. For example one database service may allow access control to - be specified only at the Table level, whereas another might allow access - control to also be specified at the Column level. - - This is intentionally not a CRUD style API because access control policies - are created and deleted implicitly with the resources to which they are - attached. - - ## Policy - - A `Policy` consists of a list of bindings. A `Binding` binds a set of - members to a role, where the members can include user accounts, user - groups, user - domains, and service accounts. A role is a named set of permissions, - defined by the IAM system. The definition of a role is outside the - policy. - - A permission check involves determining the roles that include the - specified permission, and then determining if the principal specified by - the check is a member of a binding to at least one of these roles. The - membership check is recursive when a group is bound to a role. rules: - selector: google.iam.v1.IAMPolicy.GetIamPolicy description: |- @@ -62,11 +22,14 @@ documentation: Sets the access control policy on the specified resource. Replaces any existing policy. + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + - selector: google.iam.v1.IAMPolicy.TestIamPermissions description: |- Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of - permissions, not a NOT_FOUND error. + permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/iam_policy.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/iam_policy.proto index 7072854e..12580e9c 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/iam_policy.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/iam_policy.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,28 +11,29 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; package google.iam.v1; -import "google/iam/v1/options.proto"; -import "google/iam/v1/policy.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/iam/v1/options.proto"; +import "google/iam/v1/policy.proto"; +import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Iam.V1"; -option go_package = "google.golang.org/genproto/googleapis/iam/v1;iam"; +option go_package = "cloud.google.com/go/iam/apiv1/iampb;iampb"; option java_multiple_files = true; option java_outer_classname = "IamPolicyProto"; option java_package = "com.google.iam.v1"; option php_namespace = "Google\\Cloud\\Iam\\V1"; -// ## API Overview +// API Overview +// // // Manages Identity and Access Management (IAM) policies. // @@ -62,6 +63,8 @@ service IAMPolicy { // Sets the access control policy on the specified resource. Replaces any // existing policy. + // + // Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. rpc SetIamPolicy(SetIamPolicyRequest) returns (Policy) { option (google.api.http) = { post: "/v1/{resource=**}:setIamPolicy" @@ -81,7 +84,7 @@ service IAMPolicy { // Returns permissions that a caller has on the specified resource. // If the resource does not exist, this will return an empty set of - // permissions, not a NOT_FOUND error. + // permissions, not a `NOT_FOUND` error. // // Note: This operation is designed to be used for building permission-aware // UIs and command-line tools, not for authorization checking. This operation @@ -107,6 +110,13 @@ message SetIamPolicyRequest { // valid policy but certain Cloud Platform services (such as Projects) // might reject them. Policy policy = 2 [(google.api.field_behavior) = REQUIRED]; + + // OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + // the fields in the mask will be modified. If no mask is provided, the + // following default mask is used: + // + // `paths: "bindings, etag"` + google.protobuf.FieldMask update_mask = 3; } // Request message for `GetIamPolicy` method. @@ -118,7 +128,7 @@ message GetIamPolicyRequest { (google.api.resource_reference).type = "*"]; // OPTIONAL: A `GetPolicyOptions` object for specifying options to - // `GetIamPolicy`. This field is only used by Cloud IAM. + // `GetIamPolicy`. GetPolicyOptions options = 2; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/logging/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/logging/BUILD.bazel index 5347d56f..6ad375a5 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/logging/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/logging/BUILD.bazel @@ -27,13 +27,20 @@ proto_library_with_info( ############################################################################## # Java ############################################################################## -load("@com_google_googleapis_imports//:imports.bzl", "java_proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "java_proto_library", "java_gapic_assembly_gradle_pkg") java_proto_library( name = "logging_java_proto", deps = [":audit_data_proto"], ) +java_gapic_assembly_gradle_pkg( + name = "google-iam-logging-v1-java", + deps = [ + ":logging_java_proto", + ], +) + ############################################################################## # Go ############################################################################## @@ -46,7 +53,7 @@ load( go_proto_library( name = "logging_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/iam/v1/logging", + importpath = "cloud.google.com/go/iam/apiv1/logging/loggingpb", protos = [":audit_data_proto"], deps = [ "//google/api:annotations_go_proto", @@ -66,18 +73,20 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", "py_gapic_library", - "py_gapic_assembly_pkg" ) py_gapic_library( name = "logging_py_gapic", - srcs =[":audit_data_proto"], + srcs = [":audit_data_proto"], opt_args = [ "warehouse-package-name=google-cloud-iam-logging", "python-gapic-namespace=google.cloud", "python-gapic-name=iam_logging", ], + rest_numeric_enums = False, + transport = "grpc", ) # Open Source Packages @@ -88,3 +97,43 @@ py_gapic_assembly_pkg( ], ) +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_proto_library", +) + +php_proto_library( + name = "logging_php_proto", + deps = [":audit_data_proto"], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-iam-v1-logging-php", + deps = [":logging_php_proto"], +) + +############################################################################## +# C++ +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "logging_cc_proto", + deps = [":audit_data_proto"], +) + +cc_grpc_library( + name = "logging_cc_grpc", + srcs = [":audit_data_proto"], + grpc_only = True, + deps = [":logging_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/logging/audit_data.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/logging/audit_data.proto index dfe441ba..ccafe048 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/logging/audit_data.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/logging/audit_data.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,11 +16,10 @@ syntax = "proto3"; package google.iam.v1.logging; -import "google/api/annotations.proto"; import "google/iam/v1/policy.proto"; option csharp_namespace = "Google.Cloud.Iam.V1.Logging"; -option go_package = "google.golang.org/genproto/googleapis/iam/v1/logging;logging"; +option go_package = "cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpb"; option java_multiple_files = true; option java_outer_classname = "AuditDataProto"; option java_package = "com.google.iam.v1.logging"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/options.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/options.proto index a4e17e58..5334962a 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/options.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/options.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,17 +11,14 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; package google.iam.v1; -import "google/api/annotations.proto"; - option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Iam.V1"; -option go_package = "google.golang.org/genproto/googleapis/iam/v1;iam"; +option go_package = "cloud.google.com/go/iam/apiv1/iampb;iampb"; option java_multiple_files = true; option java_outer_classname = "OptionsProto"; option java_package = "com.google.iam.v1"; @@ -29,13 +26,23 @@ option php_namespace = "Google\\Cloud\\Iam\\V1"; // Encapsulates settings provided to GetIamPolicy. message GetPolicyOptions { - // Optional. The policy format version to be returned. + // Optional. The maximum policy version that will be used to format the + // policy. // // Valid values are 0, 1, and 3. Requests specifying an invalid value will be // rejected. // - // Requests for policies with any conditional bindings must specify version 3. - // Policies without any conditional bindings may specify any valid value or - // leave the field unset. + // Requests for policies with any conditional role bindings must specify + // version 3. Policies with no conditional role bindings may specify any valid + // value or leave the field unset. + // + // The policy in the response might use the policy version that you specified, + // or it might use a lower policy version. For example, if you specify version + // 3, but the policy has no conditional role bindings, the response uses + // version 1. + // + // To learn which resources support conditions in their IAM policies, see the + // [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-policies). int32 requested_policy_version = 1; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/policy.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/policy.proto index e3aba47e..9bff39ac 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/policy.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1/policy.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,37 +11,42 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; package google.iam.v1; import "google/type/expr.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Iam.V1"; -option go_package = "google.golang.org/genproto/googleapis/iam/v1;iam"; +option go_package = "cloud.google.com/go/iam/apiv1/iampb;iampb"; option java_multiple_files = true; option java_outer_classname = "PolicyProto"; option java_package = "com.google.iam.v1"; option php_namespace = "Google\\Cloud\\Iam\\V1"; -// Defines an Identity and Access Management (IAM) policy. It is used to -// specify access control policies for Cloud Platform resources. +// An Identity and Access Management (IAM) policy, which specifies access +// controls for Google Cloud resources. // // // A `Policy` is a collection of `bindings`. A `binding` binds one or more -// `members` to a single `role`. Members can be user accounts, service accounts, -// Google groups, and domains (such as G Suite). A `role` is a named list of -// permissions (defined by IAM or configured by users). A `binding` can -// optionally specify a `condition`, which is a logic expression that further -// constrains the role binding based on attributes about the request and/or -// target resource. +// `members`, or principals, to a single `role`. Principals can be user +// accounts, service accounts, Google groups, and domains (such as G Suite). A +// `role` is a named list of permissions; each `role` can be an IAM predefined +// role or a user-created custom role. +// +// For some types of Google Cloud resources, a `binding` can also specify a +// `condition`, which is a logical expression that allows access to a resource +// only if the expression evaluates to `true`. A condition can add constraints +// based on attributes of the request, the resource, or both. To learn which +// resources support conditions in their IAM policies, see the +// [IAM +// documentation](https://cloud.google.com/iam/help/conditions/resource-policies). // -// **JSON Example** +// **JSON example:** // +// ``` // { // "bindings": [ // { @@ -55,7 +60,9 @@ option php_namespace = "Google\\Cloud\\Iam\\V1"; // }, // { // "role": "roles/resourcemanager.organizationViewer", -// "members": ["user:eve@example.com"], +// "members": [ +// "user:eve@example.com" +// ], // "condition": { // "title": "expirable access", // "description": "Does not grant access after Sep 2020", @@ -63,11 +70,15 @@ option php_namespace = "Google\\Cloud\\Iam\\V1"; // timestamp('2020-10-01T00:00:00.000Z')", // } // } -// ] +// ], +// "etag": "BwWWja0YfJA=", +// "version": 3 // } +// ``` // -// **YAML Example** +// **YAML example:** // +// ``` // bindings: // - members: // - user:mike@example.com @@ -82,31 +93,55 @@ option php_namespace = "Google\\Cloud\\Iam\\V1"; // title: expirable access // description: Does not grant access after Sep 2020 // expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +// etag: BwWWja0YfJA= +// version: 3 +// ``` // // For a description of IAM and its features, see the -// [IAM developer's guide](https://cloud.google.com/iam/docs). +// [IAM documentation](https://cloud.google.com/iam/docs/). message Policy { // Specifies the format of the policy. // - // Valid values are 0, 1, and 3. Requests specifying an invalid value will be - // rejected. + // Valid values are `0`, `1`, and `3`. Requests that specify an invalid value + // are rejected. + // + // Any operation that affects conditional role bindings must specify version + // `3`. This requirement applies to the following operations: + // + // * Getting a policy that includes a conditional role binding + // * Adding a conditional role binding to a policy + // * Changing a conditional role binding in a policy + // * Removing any role binding, with or without a condition, from a policy + // that includes conditions + // + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. // - // Operations affecting conditional bindings must specify version 3. This can - // be either setting a conditional policy, modifying a conditional binding, - // or removing a binding (conditional or unconditional) from the stored - // conditional policy. - // Operations on non-conditional policies may specify any valid value or - // leave the field unset. + // If a policy does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. // - // If no etag is provided in the call to `setIamPolicy`, version compliance - // checks against the stored policy is skipped. + // To learn which resources support conditions in their IAM policies, see the + // [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-policies). int32 version = 1; - // Associates a list of `members` to a `role`. Optionally may specify a - // `condition` that determines when binding is in effect. - // `bindings` with no members will result in an error. + // Associates a list of `members`, or principals, with a `role`. Optionally, + // may specify a `condition` that determines how and when the `bindings` are + // applied. Each of the `bindings` must contain at least one principal. + // + // The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 + // of these principals can be Google groups. Each occurrence of a principal + // counts towards these limits. For example, if the `bindings` grant 50 + // different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. repeated Binding bindings = 4; + // Specifies cloud audit logging configuration for this policy. + repeated AuditConfig audit_configs = 6; + // `etag` is used for optimistic concurrency control as a way to help // prevent simultaneous updates of a policy from overwriting each other. // It is strongly suggested that systems make use of the `etag` in the @@ -115,20 +150,20 @@ message Policy { // systems are expected to put that etag in the request to `setIamPolicy` to // ensure that their change will be applied to the same version of the policy. // - // If no `etag` is provided in the call to `setIamPolicy`, then the existing - // policy is overwritten. Due to blind-set semantics of an etag-less policy, - // 'setIamPolicy' will not fail even if the incoming policy version does not - // meet the requirements for modifying the stored policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. bytes etag = 3; } -// Associates `members` with a `role`. +// Associates `members`, or principals, with a `role`. message Binding { - // Role that is assigned to `members`. + // Role that is assigned to the list of `members`, or principals. // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. string role = 1; - // Specifies the identities requesting access for a Cloud Platform resource. + // Specifies the principals requesting access for a Google Cloud resource. // `members` can have the following values: // // * `allUsers`: A special identifier that represents anyone who is @@ -147,6 +182,26 @@ message Binding { // * `group:{emailid}`: An email address that represents a Google group. // For example, `admins@example.com`. // + // * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique + // identifier) representing a user that has been recently deleted. For + // example, `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered user + // retains the role in the binding. + // + // * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a service account that has been recently + // deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + // If the service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains the + // role in the binding. + // + // * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique + // identifier) representing a Google group that has been recently + // deleted. For example, `admins@example.com?uid=123456789012345678901`. If + // the group is recovered, this value reverts to `group:{emailid}` and the + // recovered group retains the role in the binding. + // // // * `domain:{domain}`: The G Suite domain (primary) that represents all the // users of that domain. For example, `google.com` or `example.com`. @@ -155,12 +210,127 @@ message Binding { repeated string members = 2; // The condition that is associated with this binding. - // NOTE: An unsatisfied condition will not allow user access via current - // binding. Different bindings, including their conditions, are examined - // independently. + // + // If the condition evaluates to `true`, then this binding applies to the + // current request. + // + // If the condition evaluates to `false`, then this binding does not apply to + // the current request. However, a different role binding might grant the same + // role to one or more of the principals in this binding. + // + // To learn which resources support conditions in their IAM policies, see the + // [IAM + // documentation](https://cloud.google.com/iam/help/conditions/resource-policies). google.type.Expr condition = 3; } +// Specifies the audit configuration for a service. +// The configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. +// An AuditConfig must have one or more AuditLogConfigs. +// +// If there are AuditConfigs for both `allServices` and a specific service, +// the union of the two AuditConfigs is used for that service: the log_types +// specified in each AuditConfig are enabled, and the exempted_members in each +// AuditLogConfig are exempted. +// +// Example Policy with multiple AuditConfigs: +// +// { +// "audit_configs": [ +// { +// "service": "allServices", +// "audit_log_configs": [ +// { +// "log_type": "DATA_READ", +// "exempted_members": [ +// "user:jose@example.com" +// ] +// }, +// { +// "log_type": "DATA_WRITE" +// }, +// { +// "log_type": "ADMIN_READ" +// } +// ] +// }, +// { +// "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ +// { +// "log_type": "DATA_READ" +// }, +// { +// "log_type": "DATA_WRITE", +// "exempted_members": [ +// "user:aliya@example.com" +// ] +// } +// ] +// } +// ] +// } +// +// For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts `jose@example.com` from DATA_READ logging, and +// `aliya@example.com` from DATA_WRITE logging. +message AuditConfig { + // Specifies a service that will be enabled for audit logging. + // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + // `allServices` is a special value that covers all services. + string service = 1; + + // The configuration for logging of each type of permission. + repeated AuditLogConfig audit_log_configs = 3; +} + +// Provides the configuration for logging a type of permissions. +// Example: +// +// { +// "audit_log_configs": [ +// { +// "log_type": "DATA_READ", +// "exempted_members": [ +// "user:jose@example.com" +// ] +// }, +// { +// "log_type": "DATA_WRITE" +// } +// ] +// } +// +// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting +// jose@example.com from DATA_READ logging. +message AuditLogConfig { + // The list of valid permission types for which logging can be configured. + // Admin writes are always logged, and are not configurable. + enum LogType { + // Default case. Should never be this. + LOG_TYPE_UNSPECIFIED = 0; + + // Admin reads. Example: CloudIAM getIamPolicy + ADMIN_READ = 1; + + // Data writes. Example: CloudSQL Users create + DATA_WRITE = 2; + + // Data reads. Example: CloudSQL Users list + DATA_READ = 3; + } + + // The log type that this config enables. + LogType log_type = 1; + + // Specifies the identities that do not cause logging for this type of + // permission. + // Follows the same format of + // [Binding.members][google.iam.v1.Binding.members]. + repeated string exempted_members = 2; +} + // The difference delta between two policies. message PolicyDelta { // The delta for Bindings between two policies. @@ -194,7 +364,7 @@ message BindingDelta { // Required string role = 2; - // A single identity requesting access for a Cloud Platform resource. + // A single identity requesting access for a Google Cloud resource. // Follows the same format of Binding.members. // Required string member = 3; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1beta/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1beta/BUILD.bazel index 16087551..2a08e2fd 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1beta/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1beta/BUILD.bazel @@ -9,14 +9,41 @@ # * extra_protoc_file_parameters # The complete list of preserved parameters can be found in the source code. -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - ############################################################################## # Common ############################################################################## load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", + "proto_library_with_info", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_test", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) proto_library( name = "iam_proto", @@ -41,18 +68,6 @@ proto_library_with_info( ], ) -############################################################################## -# Java -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "java_gapic_assembly_gradle_pkg", - "java_gapic_library", - "java_gapic_test", - "java_grpc_library", - "java_proto_library", -) - java_proto_library( name = "iam_java_proto", deps = [":iam_proto"], @@ -69,9 +84,12 @@ java_gapic_library( srcs = [":iam_proto_with_info"], gapic_yaml = "iam_gapic.yaml", grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam_v1beta.yaml", test_deps = [ ":iam_java_grpc", ], + transport = "grpc", deps = [ ":iam_java_proto", ], @@ -88,6 +106,8 @@ java_gapic_test( # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-iam-v1beta-java", + include_samples = True, + transport = "grpc", deps = [ ":iam_java_gapic", ":iam_java_grpc", @@ -96,21 +116,10 @@ java_gapic_assembly_gradle_pkg( ], ) -############################################################################## -# Go -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "go_gapic_assembly_pkg", - "go_gapic_library", - "go_proto_library", - "go_test", -) - go_proto_library( name = "iam_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/iam/v1beta", + importpath = "cloud.google.com/go/iam/apiv1beta/iampb", protos = [":iam_proto"], deps = [ "//google/api:annotations_go_proto", @@ -123,45 +132,45 @@ go_gapic_library( srcs = [":iam_proto_with_info"], grpc_service_config = "iam_grpc_service_config.json", importpath = "cloud.google.com/go/iam/apiv1beta;iam", + rest_numeric_enums = True, service_yaml = "iam_v1beta.yaml", + transport = "grpc", deps = [ ":iam_go_proto", "//google/longrunning:longrunning_go_proto", - "@com_google_cloud_go//longrunning:go_default_library", - "@com_google_cloud_go//longrunning/autogen:go_default_library", + "@com_google_cloud_go_longrunning//:go_default_library", + "@com_google_cloud_go_longrunning//autogen:go_default_library", ], ) -go_test( - name = "iam_go_gapic_test", - srcs = [":iam_go_gapic_srcjar_test"], - embed = [":iam_go_gapic"], - importpath = "cloud.google.com/go/iam/apiv1beta", -) - # Open Source Packages go_gapic_assembly_pkg( name = "gapi-cloud-iam-v1beta-go", deps = [ ":iam_go_gapic", + ":iam_go_gapic_srcjar-snippets.srcjar", ":iam_go_gapic_srcjar-test.srcjar", ":iam_go_proto", ], ) -############################################################################## -# Python -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "py_gapic_assembly_pkg", - "py_gapic_library", -) - py_gapic_library( name = "iam_py_gapic", srcs = [":iam_proto"], grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam_v1beta.yaml", + transport = "grpc", +) + +py_test( + name = "iam_py_gapic_test", + srcs = [ + "iam_py_gapic_pytest.py", + "iam_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":iam_py_gapic"], ) # Open Source Packages @@ -172,38 +181,19 @@ py_gapic_assembly_pkg( ], ) -############################################################################## -# PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", -) - php_proto_library( name = "iam_php_proto", deps = [":iam_proto"], ) -php_grpc_library( - name = "iam_php_grpc", - srcs = [":iam_proto"], - deps = [":iam_php_proto"], -) - php_gapic_library( name = "iam_php_gapic", srcs = [":iam_proto_with_info"], grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, service_yaml = "iam_v1beta.yaml", - deps = [ - ":iam_php_grpc", - ":iam_php_proto", - ], + transport = "grpc+rest", + deps = [":iam_php_proto"], ) # Open Source Packages @@ -211,27 +201,19 @@ php_gapic_assembly_pkg( name = "google-iam-v1beta-php", deps = [ ":iam_php_gapic", - ":iam_php_grpc", ":iam_php_proto", ], ) -############################################################################## -# Node.js -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - nodejs_gapic_library( name = "iam_nodejs_gapic", src = ":iam_proto_with_info", extra_protoc_parameters = ["metadata"], grpc_service_config = "iam_grpc_service_config.json", package = "google.iam.v1beta", + rest_numeric_enums = True, service_yaml = "iam_v1beta.yaml", + transport = "grpc", deps = [], ) @@ -243,17 +225,6 @@ nodejs_gapic_assembly_pkg( ], ) -############################################################################## -# Ruby -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "ruby_gapic_assembly_pkg", - "ruby_cloud_gapic_library", - "ruby_grpc_library", - "ruby_proto_library", -) - ruby_proto_library( name = "iam_ruby_proto", deps = [":iam_proto"], @@ -267,7 +238,7 @@ ruby_grpc_library( ruby_cloud_gapic_library( name = "iam_ruby_gapic", - srcs = [":iam_proto_with_info",], + srcs = [":iam_proto_with_info"], extra_protoc_parameters = [ "ruby-cloud-gem-name=google-iam-v1beta", "ruby-cloud-env-prefix=IAM", @@ -276,8 +247,11 @@ ruby_cloud_gapic_library( "ruby-cloud-api-shortname=iam", ], grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, ruby_cloud_description = "Pre-release client for the WorkloadIdentityPools service.", ruby_cloud_title = "Google IAM V1beta", + service_yaml = "iam_v1beta.yaml", + transport = "grpc", deps = [ ":iam_ruby_grpc", ":iam_ruby_proto", @@ -294,17 +268,6 @@ ruby_gapic_assembly_pkg( ], ) -############################################################################## -# C# -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "csharp_gapic_assembly_pkg", - "csharp_gapic_library", - "csharp_grpc_library", - "csharp_proto_library", -) - csharp_proto_library( name = "iam_csharp_proto", deps = [":iam_proto"], @@ -321,6 +284,9 @@ csharp_gapic_library( srcs = [":iam_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam_v1beta.yaml", + transport = "grpc", deps = [ ":iam_csharp_grpc", ":iam_csharp_proto", diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1beta/workload_identity_pool.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1beta/workload_identity_pool.proto index 757a2610..5a4a97a0 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1beta/workload_identity_pool.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v1beta/workload_identity_pool.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; -option go_package = "google.golang.org/genproto/googleapis/iam/v1beta;iam"; +option go_package = "cloud.google.com/go/iam/apiv1beta/iampb;iampb"; option java_multiple_files = true; option java_outer_classname = "WorkloadIdentityPoolProto"; option java_package = "com.google.iam.v1beta"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/BUILD.bazel new file mode 100644 index 00000000..e15eae01 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/BUILD.bazel @@ -0,0 +1,409 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "iam_proto", + srcs = [ + "deny.proto", + "policy.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/longrunning:operations_proto", + "//google/type:expr_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library( + name = "policy_proto", + srcs = [ + "deny.proto", + "policy.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/longrunning:operations_proto", + "//google/type:expr_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "iam_proto_with_info", + deps = [ + ":iam_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "iam_java_proto", + deps = [":iam_proto"], +) + +java_grpc_library( + name = "iam_java_grpc", + srcs = [":iam_proto"], + deps = [":iam_java_proto"], +) + +java_gapic_library( + name = "iam_java_gapic", + srcs = [":iam_proto_with_info"], + gapic_yaml = None, + grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam_v2.yaml", + test_deps = [ + ":iam_java_grpc", + ], + transport = "grpc+rest", + deps = [ + ":iam_java_proto", + "//google/api:api_java_proto", + ], +) + +java_gapic_test( + name = "iam_java_gapic_test_suite", + test_classes = [ + "com.google.iam.v2.PoliciesClientHttpJsonTest", + "com.google.iam.v2.PoliciesClientTest", + ], + runtime_deps = [":iam_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-iam-v2-java", + include_samples = True, + transport = "grpc+rest", + deps = [ + ":iam_java_gapic", + ":iam_java_grpc", + ":iam_java_proto", + ":iam_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", +) + +go_proto_library( + name = "iam_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "cloud.google.com/go/iam/apiv2/iampb", + protos = [":iam_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + "//google/type:expr_go_proto", + ], +) + +go_gapic_library( + name = "iam_go_gapic", + srcs = [":iam_proto_with_info"], + grpc_service_config = "iam_grpc_service_config.json", + importpath = "cloud.google.com/go/iam/apiv2;iam", + metadata = True, + release_level = "ga", + rest_numeric_enums = True, + service_yaml = "iam_v2.yaml", + transport = "grpc+rest", + deps = [ + ":iam_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go_longrunning//:go_default_library", + "@com_google_cloud_go_longrunning//autogen:go_default_library", + ], +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-iam-v2-go", + deps = [ + ":iam_go_gapic", + ":iam_go_gapic_srcjar-metadata.srcjar", + ":iam_go_gapic_srcjar-snippets.srcjar", + ":iam_go_gapic_srcjar-test.srcjar", + ":iam_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_proto_library", + "py_test", +) + +py_proto_library( + name = "iam_policy_py_proto", + deps = [":policy_proto"], +) + +py_gapic_library( + name = "iam_py_gapic", + srcs = [":iam_proto"], + grpc_service_config = "iam_grpc_service_config.json", + opt_args = [ + "python-gapic-name=iam", + "python-gapic-namespace=google.cloud", + "warehouse-package-name=google-cloud-iam", + ], + rest_numeric_enums = True, + service_yaml = "iam_v2.yaml", + transport = "grpc+rest", + deps = [ + ], +) + +py_test( + name = "iam_py_gapic_test", + srcs = [ + "iam_py_gapic_pytest.py", + "iam_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":iam_py_gapic"], +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "iam-v2-py", + deps = [ + ":iam_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", +) + +php_proto_library( + name = "iam_php_proto", + deps = [":iam_proto"], +) + +php_gapic_library( + name = "iam_php_gapic", + srcs = [":iam_proto_with_info"], + grpc_service_config = "iam_grpc_service_config.json", + migration_mode = "NEW_SURFACE_ONLY", + rest_numeric_enums = True, + service_yaml = "iam_v2.yaml", + transport = "grpc+rest", + deps = [":iam_php_proto"], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-iam-v2-php", + deps = [ + ":iam_php_gapic", + ":iam_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "iam_nodejs_gapic", + package_name = "@google-cloud/iam", + src = ":iam_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "iam_grpc_service_config.json", + package = "google.iam.v2", + rest_numeric_enums = True, + service_yaml = "iam_v2.yaml", + transport = "grpc+rest", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "iam-v2-nodejs", + deps = [ + ":iam_nodejs_gapic", + ":iam_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "iam_ruby_proto", + deps = [":iam_proto"], +) + +ruby_grpc_library( + name = "iam_ruby_grpc", + srcs = [":iam_proto"], + deps = [":iam_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "iam_ruby_gapic", + srcs = [":iam_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-api-id=iam.googleapis.com", + "ruby-cloud-api-shortname=iam", + "ruby-cloud-gem-name=google-iam-v2", + "ruby-cloud-product-url=https://cloud.google.com/iam", + "ruby-cloud-wrapper-gem-override=google-iam-client", + ], + grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + ruby_cloud_description = "Manages identity and access control policies for Google Cloud Platform resources.", + ruby_cloud_title = "IAM V2", + service_yaml = "iam_v2.yaml", + transport = "grpc+rest", + deps = [ + ":iam_ruby_grpc", + ":iam_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-iam-v2-ruby", + deps = [ + ":iam_ruby_gapic", + ":iam_ruby_grpc", + ":iam_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "iam_csharp_proto", + deps = [":iam_proto"], +) + +csharp_grpc_library( + name = "iam_csharp_grpc", + srcs = [":iam_proto"], + deps = [":iam_csharp_proto"], +) + +csharp_gapic_library( + name = "iam_csharp_gapic", + srcs = [":iam_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam_v2.yaml", + transport = "grpc+rest", + deps = [ + ":iam_csharp_grpc", + ":iam_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-iam-v2-csharp", + deps = [ + ":iam_csharp_gapic", + ":iam_csharp_grpc", + ":iam_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "iam_cc_proto", + deps = [":iam_proto"], +) + +cc_grpc_library( + name = "iam_cc_grpc", + srcs = [":iam_proto"], + grpc_only = True, + deps = [":iam_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/deny.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/deny.proto new file mode 100644 index 00000000..2f402872 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/deny.proto @@ -0,0 +1,109 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.iam.v2; + +import "google/type/expr.proto"; + +option csharp_namespace = "Google.Cloud.Iam.V2"; +option go_package = "cloud.google.com/go/iam/apiv2/iampb;iampb"; +option java_multiple_files = true; +option java_outer_classname = "DenyRuleProto"; +option java_package = "com.google.iam.v2"; +option php_namespace = "Google\\Cloud\\Iam\\V2"; + +// A deny rule in an IAM deny policy. +message DenyRule { + // The identities that are prevented from using one or more permissions on + // Google Cloud resources. This field can contain the following values: + // + // * `principalSet://goog/public:all`: A special identifier that represents + // any principal that is on the internet, even if they do not have a Google + // Account or are not logged in. + // + // * `principal://goog/subject/{email_id}`: A specific Google Account. + // Includes Gmail, Cloud Identity, and Google Workspace user accounts. For + // example, `principal://goog/subject/alice@example.com`. + // + // * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific + // Google Account that was deleted recently. For example, + // `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If + // the Google Account is recovered, this identifier reverts to the standard + // identifier for a Google Account. + // + // * `principalSet://goog/group/{group_id}`: A Google group. For example, + // `principalSet://goog/group/admins@example.com`. + // + // * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group + // that was deleted recently. For example, + // `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If + // the Google group is restored, this identifier reverts to the standard + // identifier for a Google group. + // + // * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`: + // A Google Cloud service account. For example, + // `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`. + // + // * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`: + // A Google Cloud service account that was deleted recently. For example, + // `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`. + // If the service account is undeleted, this identifier reverts to the + // standard identifier for a service account. + // + // * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the + // principals associated with the specified Google Workspace or Cloud + // Identity customer ID. For example, + // `principalSet://goog/cloudIdentityCustomerId/C01Abc35`. + repeated string denied_principals = 1; + + // The identities that are excluded from the deny rule, even if they are + // listed in the `denied_principals`. For example, you could add a Google + // group to the `denied_principals`, then exclude specific users who belong to + // that group. + // + // This field can contain the same values as the `denied_principals` field, + // excluding `principalSet://goog/public:all`, which represents all users on + // the internet. + repeated string exception_principals = 2; + + // The permissions that are explicitly denied by this rule. Each permission + // uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` + // is the fully qualified domain name for the service. For example, + // `iam.googleapis.com/roles.list`. + repeated string denied_permissions = 3; + + // Specifies the permissions that this rule excludes from the set of denied + // permissions given by `denied_permissions`. If a permission appears in + // `denied_permissions` _and_ in `exception_permissions` then it will _not_ be + // denied. + // + // The excluded permissions can be specified using the same syntax as + // `denied_permissions`. + repeated string exception_permissions = 4; + + // The condition that determines whether this deny rule applies to a request. + // If the condition expression evaluates to `true`, then the deny rule is + // applied; otherwise, the deny rule is not applied. + // + // Each deny rule is evaluated independently. If this deny rule does not apply + // to a request, other deny rules might still apply. + // + // The condition can use CEL functions that evaluate + // [resource + // tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other + // functions and operators are not supported. + google.type.Expr denial_condition = 5; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/iam_grpc_service_config.json b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/iam_grpc_service_config.json new file mode 100644 index 00000000..603087e0 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/iam_grpc_service_config.json @@ -0,0 +1,38 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.iam.v2.Policies", + "method": "ListPolicies" + }, + { + "service": "google.iam.v2.Policies", + "method": "GetPolicy" + }, + { + "service": "google.iam.v2.Policies", + "method": "CreatePolicy" + }, + { + "service": "google.iam.v2.Policies", + "method": "UpdatePolicy" + }, + { + "service": "google.iam.v2.Policies", + "method": "DeletePolicy" + } + ], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [ + "UNAVAILABLE" + ] + } + } + ] +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/iam_v2.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/iam_v2.yaml new file mode 100644 index 00000000..9e03ac8a --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/iam_v2.yaml @@ -0,0 +1,33 @@ +type: google.api.Service +config_version: 3 +name: iam.googleapis.com +title: Identity and Access Management (IAM) API + +apis: +- name: google.iam.v2.Policies +- name: google.longrunning.Operations + +types: +- name: google.iam.v2.PolicyOperationMetadata + +documentation: + summary: |- + Manages identity and access control for Google Cloud Platform resources, + including the creation of service accounts, which you can use to + authenticate to Google and make API calls. + +http: + rules: + - selector: google.longrunning.Operations.GetOperation + get: '/v2/{name=policies/*/*/*/operations/*}' + +authentication: + rules: + - selector: 'google.iam.v2.Policies.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.longrunning.Operations.GetOperation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/policy.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/policy.proto new file mode 100644 index 00000000..e732fa24 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2/policy.proto @@ -0,0 +1,287 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.iam.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/iam/v2/deny.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Iam.V2"; +option go_package = "cloud.google.com/go/iam/apiv2/iampb;iampb"; +option java_multiple_files = true; +option java_outer_classname = "PolicyProto"; +option java_package = "com.google.iam.v2"; +option php_namespace = "Google\\Cloud\\Iam\\V2"; + +// An interface for managing Identity and Access Management (IAM) policies. +service Policies { + option (google.api.default_host) = "iam.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves the policies of the specified kind that are attached to a + // resource. + // + // The response lists only policy metadata. In particular, policy rules are + // omitted. + rpc ListPolicies(ListPoliciesRequest) returns (ListPoliciesResponse) { + option (google.api.http) = { + get: "/v2/{parent=policies/*/*}" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a policy. + rpc GetPolicy(GetPolicyRequest) returns (Policy) { + option (google.api.http) = { + get: "/v2/{name=policies/*/*/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a policy. + rpc CreatePolicy(CreatePolicyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=policies/*/*}" + body: "policy" + }; + option (google.api.method_signature) = "parent,policy,policy_id"; + option (google.longrunning.operation_info) = { + response_type: "Policy" + metadata_type: "PolicyOperationMetadata" + }; + } + + // Updates the specified policy. + // + // You can update only the rules and the display name for the policy. + // + // To update a policy, you should use a read-modify-write loop: + // + // 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy. + // 2. Modify the policy as needed. + // 3. Use `UpdatePolicy` to write the updated policy. + // + // This pattern helps prevent conflicts between concurrent updates. + rpc UpdatePolicy(UpdatePolicyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + put: "/v2/{policy.name=policies/*/*/*}" + body: "policy" + }; + option (google.longrunning.operation_info) = { + response_type: "Policy" + metadata_type: "PolicyOperationMetadata" + }; + } + + // Deletes a policy. This action is permanent. + rpc DeletePolicy(DeletePolicyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2/{name=policies/*/*/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Policy" + metadata_type: "PolicyOperationMetadata" + }; + } +} + +// Data for an IAM policy. +message Policy { + // Immutable. The resource name of the `Policy`, which must be unique. Format: + // `policies/{attachment_point}/denypolicies/{policy_id}` + // + // + // The attachment point is identified by its URL-encoded full resource name, + // which means that the forward-slash character, `/`, must be written as + // `%2F`. For example, + // `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`. + // + // For organizations and folders, use the numeric ID in the full resource + // name. For projects, requests can use the alphanumeric or the numeric ID. + // Responses always contain the numeric ID. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The globally unique ID of the `Policy`. Assigned automatically when the + // `Policy` is created. + string uid = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`. + string kind = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A user-specified description of the `Policy`. This value can be up to 63 + // characters. + string display_name = 4; + + // A key-value map to store arbitrary metadata for the `Policy`. Keys + // can be up to 63 characters. Values can be up to 255 characters. + map annotations = 5; + + // An opaque tag that identifies the current version of the `Policy`. IAM uses + // this value to help manage concurrent updates, so they do not cause one + // update to be overwritten by another. + // + // If this field is present in a [CreatePolicy][] request, the value is + // ignored. + string etag = 6; + + // Output only. The time when the `Policy` was created. + google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the `Policy` was last updated. + google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted. + google.protobuf.Timestamp delete_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A list of rules that specify the behavior of the `Policy`. All of the rules + // should be of the `kind` specified in the `Policy`. + repeated PolicyRule rules = 10; + + // Immutable. Specifies that this policy is managed by an authority and can only be + // modified by that authority. Usage is restricted. + string managing_authority = 11 [(google.api.field_behavior) = IMMUTABLE]; +} + +// A single rule in a `Policy`. +message PolicyRule { + oneof kind { + // A rule for a deny policy. + DenyRule deny_rule = 2; + } + + // A user-specified description of the rule. This value can be up to 256 + // characters. + string description = 1; +} + +// Request message for `ListPolicies`. +message ListPoliciesRequest { + // Required. The resource that the policy is attached to, along with the kind of policy + // to list. Format: + // `policies/{attachment_point}/denypolicies` + // + // + // The attachment point is identified by its URL-encoded full resource name, + // which means that the forward-slash character, `/`, must be written as + // `%2F`. For example, + // `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + // + // For organizations and folders, use the numeric ID in the full resource + // name. For projects, you can use the alphanumeric or the numeric ID. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // The maximum number of policies to return. IAM ignores this value and uses + // the value 1000. + int32 page_size = 2; + + // A page token received in a [ListPoliciesResponse][google.iam.v2.ListPoliciesResponse]. Provide this token to + // retrieve the next page. + string page_token = 3; +} + +// Response message for `ListPolicies`. +message ListPoliciesResponse { + // Metadata for the policies that are attached to the resource. + repeated Policy policies = 1; + + // A page token that you can use in a [ListPoliciesRequest][google.iam.v2.ListPoliciesRequest] to retrieve the + // next page. If this field is omitted, there are no additional pages. + string next_page_token = 2; +} + +// Request message for `GetPolicy`. +message GetPolicyRequest { + // Required. The resource name of the policy to retrieve. Format: + // `policies/{attachment_point}/denypolicies/{policy_id}` + // + // + // Use the URL-encoded full resource name, which means that the forward-slash + // character, `/`, must be written as `%2F`. For example, + // `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`. + // + // For organizations and folders, use the numeric ID in the full resource + // name. For projects, you can use the alphanumeric or the numeric ID. + string name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `CreatePolicy`. +message CreatePolicyRequest { + // Required. The resource that the policy is attached to, along with the kind of policy + // to create. Format: `policies/{attachment_point}/denypolicies` + // + // + // The attachment point is identified by its URL-encoded full resource name, + // which means that the forward-slash character, `/`, must be written as + // `%2F`. For example, + // `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + // + // For organizations and folders, use the numeric ID in the full resource + // name. For projects, you can use the alphanumeric or the numeric ID. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The policy to create. + Policy policy = 2 [(google.api.field_behavior) = REQUIRED]; + + // The ID to use for this policy, which will become the final component of + // the policy's resource name. The ID must contain 3 to 63 characters. It can + // contain lowercase letters and numbers, as well as dashes (`-`) and periods + // (`.`). The first character must be a lowercase letter. + string policy_id = 3; +} + +// Request message for `UpdatePolicy`. +message UpdatePolicyRequest { + // Required. The policy to update. + // + // To prevent conflicting updates, the `etag` value must match the value that + // is stored in IAM. If the `etag` values do not match, the request fails with + // a `409` error code and `ABORTED` status. + Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `DeletePolicy`. +message DeletePolicyRequest { + // Required. The resource name of the policy to delete. Format: + // `policies/{attachment_point}/denypolicies/{policy_id}` + // + // + // Use the URL-encoded full resource name, which means that the forward-slash + // character, `/`, must be written as `%2F`. For example, + // `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`. + // + // For organizations and folders, use the numeric ID in the full resource + // name. For projects, you can use the alphanumeric or the numeric ID. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The expected `etag` of the policy to delete. If the value does not match + // the value that is stored in IAM, the request fails with a `409` error code + // and `ABORTED` status. + // + // If you omit this field, the policy is deleted regardless of its current + // `etag`. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Metadata for long-running `Policy` operations. +message PolicyOperationMetadata { + // Timestamp when the `google.longrunning.Operation` was created. + google.protobuf.Timestamp create_time = 1; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/BUILD.bazel new file mode 100644 index 00000000..8ccaec3f --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/BUILD.bazel @@ -0,0 +1,377 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "iam_proto", + srcs = [ + "deny.proto", + "policy.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/longrunning:operations_proto", + "//google/type:expr_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "iam_proto_with_info", + deps = [ + ":iam_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "iam_java_proto", + deps = [":iam_proto"], +) + +java_grpc_library( + name = "iam_java_grpc", + srcs = [":iam_proto"], + deps = [":iam_java_proto"], +) + +java_gapic_library( + name = "iam_java_gapic", + srcs = [":iam_proto_with_info"], + gapic_yaml = None, + grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam_v2beta.yaml", + test_deps = [ + ":iam_java_grpc", + ], + transport = "grpc+rest", + deps = [ + ":iam_java_proto", + "//google/api:api_java_proto", + ], +) + +java_gapic_test( + name = "iam_java_gapic_test_suite", + test_classes = [ + "com.google.iam.v2beta.PoliciesClientHttpJsonTest", + "com.google.iam.v2beta.PoliciesClientTest", + ], + runtime_deps = [":iam_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-iam-v2beta-java", + include_samples = True, + transport = "grpc+rest", + deps = [ + ":iam_java_gapic", + ":iam_java_grpc", + ":iam_java_proto", + ":iam_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", +) + +go_proto_library( + name = "iam_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "cloud.google.com/go/iam/apiv2beta/iampb", + protos = [":iam_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + "//google/type:expr_go_proto", + ], +) + +go_gapic_library( + name = "iam_go_gapic", + srcs = [":iam_proto_with_info"], + grpc_service_config = "iam_grpc_service_config.json", + importpath = "cloud.google.com/go/iam/apiv2beta;iam", + metadata = True, + rest_numeric_enums = True, + service_yaml = "iam_v2beta.yaml", + transport = "grpc", + deps = [ + ":iam_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go_longrunning//:go_default_library", + "@com_google_cloud_go_longrunning//autogen:go_default_library", + ], +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-iam-v2beta-go", + deps = [ + ":iam_go_gapic", + ":iam_go_gapic_srcjar-metadata.srcjar", + ":iam_go_gapic_srcjar-snippets.srcjar", + ":iam_go_gapic_srcjar-test.srcjar", + ":iam_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_test", +) + +py_gapic_library( + name = "iam_py_gapic", + srcs = [":iam_proto"], + grpc_service_config = "iam_grpc_service_config.json", + opt_args = [ + "python-gapic-name=iam", + "python-gapic-namespace=google.cloud", + "warehouse-package-name=google-cloud-iam", + ], + rest_numeric_enums = True, + service_yaml = "iam_v2beta.yaml", + transport = "grpc", + deps = [ + ], +) + +py_test( + name = "iam_py_gapic_test", + srcs = [ + "iam_py_gapic_pytest.py", + "iam_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":iam_py_gapic"], +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "iam-v2beta-py", + deps = [ + ":iam_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", +) + +php_proto_library( + name = "iam_php_proto", + deps = [":iam_proto"], +) + +php_gapic_library( + name = "iam_php_gapic", + srcs = [":iam_proto_with_info"], + grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam_v2beta.yaml", + transport = "grpc+rest", + deps = [":iam_php_proto"], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-iam-v2beta-php", + deps = [ + ":iam_php_gapic", + ":iam_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "iam_nodejs_gapic", + package_name = "@google-cloud/iam", + src = ":iam_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "iam_grpc_service_config.json", + package = "google.iam.v2beta", + rest_numeric_enums = True, + service_yaml = "iam_v2beta.yaml", + transport = "grpc", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "iam-v2beta-nodejs", + deps = [ + ":iam_nodejs_gapic", + ":iam_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "iam_ruby_proto", + deps = [":iam_proto"], +) + +ruby_grpc_library( + name = "iam_ruby_grpc", + srcs = [":iam_proto"], + deps = [":iam_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "iam_ruby_gapic", + srcs = [":iam_proto_with_info"], + extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-iam-v2beta"], + grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam_v2beta.yaml", + transport = "grpc+rest", + deps = [ + ":iam_ruby_grpc", + ":iam_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-iam-v2beta-ruby", + deps = [ + ":iam_ruby_gapic", + ":iam_ruby_grpc", + ":iam_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "iam_csharp_proto", + deps = [":iam_proto"], +) + +csharp_grpc_library( + name = "iam_csharp_grpc", + srcs = [":iam_proto"], + deps = [":iam_csharp_proto"], +) + +csharp_gapic_library( + name = "iam_csharp_gapic", + srcs = [":iam_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "iam_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "iam_v2beta.yaml", + transport = "grpc+rest", + deps = [ + ":iam_csharp_grpc", + ":iam_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-iam-v2beta-csharp", + deps = [ + ":iam_csharp_gapic", + ":iam_csharp_grpc", + ":iam_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "iam_cc_proto", + deps = [":iam_proto"], +) + +cc_grpc_library( + name = "iam_cc_grpc", + srcs = [":iam_proto"], + grpc_only = True, + deps = [":iam_cc_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/deny.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/deny.proto new file mode 100644 index 00000000..56dd64fc --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/deny.proto @@ -0,0 +1,109 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.iam.v2beta; + +import "google/type/expr.proto"; + +option csharp_namespace = "Google.Cloud.Iam.V2Beta"; +option go_package = "cloud.google.com/go/iam/apiv2beta/iampb;iampb"; +option java_multiple_files = true; +option java_outer_classname = "DenyRuleProto"; +option java_package = "com.google.iam.v2beta"; +option php_namespace = "Google\\Cloud\\Iam\\V2beta"; + +// A deny rule in an IAM deny policy. +message DenyRule { + // The identities that are prevented from using one or more permissions on + // Google Cloud resources. This field can contain the following values: + // + // * `principalSet://goog/public:all`: A special identifier that represents + // any principal that is on the internet, even if they do not have a Google + // Account or are not logged in. + // + // * `principal://goog/subject/{email_id}`: A specific Google Account. + // Includes Gmail, Cloud Identity, and Google Workspace user accounts. For + // example, `principal://goog/subject/alice@example.com`. + // + // * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific + // Google Account that was deleted recently. For example, + // `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If + // the Google Account is recovered, this identifier reverts to the standard + // identifier for a Google Account. + // + // * `principalSet://goog/group/{group_id}`: A Google group. For example, + // `principalSet://goog/group/admins@example.com`. + // + // * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group + // that was deleted recently. For example, + // `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If + // the Google group is restored, this identifier reverts to the standard + // identifier for a Google group. + // + // * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`: + // A Google Cloud service account. For example, + // `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`. + // + // * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`: + // A Google Cloud service account that was deleted recently. For example, + // `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`. + // If the service account is undeleted, this identifier reverts to the + // standard identifier for a service account. + // + // * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the + // principals associated with the specified Google Workspace or Cloud + // Identity customer ID. For example, + // `principalSet://goog/cloudIdentityCustomerId/C01Abc35`. + repeated string denied_principals = 1; + + // The identities that are excluded from the deny rule, even if they are + // listed in the `denied_principals`. For example, you could add a Google + // group to the `denied_principals`, then exclude specific users who belong to + // that group. + // + // This field can contain the same values as the `denied_principals` field, + // excluding `principalSet://goog/public:all`, which represents all users on + // the internet. + repeated string exception_principals = 2; + + // The permissions that are explicitly denied by this rule. Each permission + // uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` + // is the fully qualified domain name for the service. For example, + // `iam.googleapis.com/roles.list`. + repeated string denied_permissions = 3; + + // Specifies the permissions that this rule excludes from the set of denied + // permissions given by `denied_permissions`. If a permission appears in + // `denied_permissions` _and_ in `exception_permissions` then it will _not_ be + // denied. + // + // The excluded permissions can be specified using the same syntax as + // `denied_permissions`. + repeated string exception_permissions = 4; + + // The condition that determines whether this deny rule applies to a request. + // If the condition expression evaluates to `true`, then the deny rule is + // applied; otherwise, the deny rule is not applied. + // + // Each deny rule is evaluated independently. If this deny rule does not apply + // to a request, other deny rules might still apply. + // + // The condition can use CEL functions that evaluate + // [resource + // tags](https://cloud.google.com/iam/help/conditions/resource-tags). Other + // functions and operators are not supported. + google.type.Expr denial_condition = 5; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/iam_grpc_service_config.json b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/iam_grpc_service_config.json new file mode 100644 index 00000000..8db9764f --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/iam_grpc_service_config.json @@ -0,0 +1,42 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.iam.v2beta.Policies", + "method": "ListPolicies" + }, + { + "service": "google.iam.v2beta.Policies", + "method": "GetPolicy" + }, + { + "service": "google.iam.v2beta.Policies", + "method": "CreatePolicy" + }, + { + "service": "google.iam.v2beta.Policies", + "method": "UpdatePolicy" + }, + { + "service": "google.iam.v2beta.Policies", + "method": "DeletePolicy" + }, + { + "service": "google.iam.v2beta.Policies", + "method": "GetEffectivePolicies" + } + ], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [ + "UNAVAILABLE" + ] + } + } + ] +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/iam_v2beta.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/iam_v2beta.yaml new file mode 100644 index 00000000..a7d8d015 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/iam_v2beta.yaml @@ -0,0 +1,33 @@ +type: google.api.Service +config_version: 3 +name: iam.googleapis.com +title: Identity and Access Management (IAM) API + +apis: +- name: google.iam.v2beta.Policies +- name: google.longrunning.Operations + +types: +- name: google.iam.v2beta.PolicyOperationMetadata + +documentation: + summary: |- + Manages identity and access control for Google Cloud Platform resources, + including the creation of service accounts, which you can use to + authenticate to Google and make API calls. + +http: + rules: + - selector: google.longrunning.Operations.GetOperation + get: '/v2beta/{name=policies/*/*/*/operations/*}' + +authentication: + rules: + - selector: 'google.iam.v2beta.Policies.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.longrunning.Operations.GetOperation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/policy.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/policy.proto new file mode 100644 index 00000000..f96e4b50 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/iam/v2beta/policy.proto @@ -0,0 +1,283 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.iam.v2beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/iam/v2beta/deny.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Iam.V2Beta"; +option go_package = "cloud.google.com/go/iam/apiv2beta/iampb;iampb"; +option java_multiple_files = true; +option java_outer_classname = "PolicyProto"; +option java_package = "com.google.iam.v2beta"; +option php_namespace = "Google\\Cloud\\Iam\\V2beta"; + +// An interface for managing Identity and Access Management (IAM) policies. +service Policies { + option (google.api.default_host) = "iam.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves the policies of the specified kind that are attached to a + // resource. + // + // The response lists only policy metadata. In particular, policy rules are + // omitted. + rpc ListPolicies(ListPoliciesRequest) returns (ListPoliciesResponse) { + option (google.api.http) = { + get: "/v2beta/{parent=policies/*/*}" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a policy. + rpc GetPolicy(GetPolicyRequest) returns (Policy) { + option (google.api.http) = { + get: "/v2beta/{name=policies/*/*/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a policy. + rpc CreatePolicy(CreatePolicyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2beta/{parent=policies/*/*}" + body: "policy" + }; + option (google.api.method_signature) = "parent,policy,policy_id"; + option (google.longrunning.operation_info) = { + response_type: "Policy" + metadata_type: "PolicyOperationMetadata" + }; + } + + // Updates the specified policy. + // + // You can update only the rules and the display name for the policy. + // + // To update a policy, you should use a read-modify-write loop: + // + // 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy. + // 2. Modify the policy as needed. + // 3. Use `UpdatePolicy` to write the updated policy. + // + // This pattern helps prevent conflicts between concurrent updates. + rpc UpdatePolicy(UpdatePolicyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + put: "/v2beta/{policy.name=policies/*/*/*}" + body: "policy" + }; + option (google.longrunning.operation_info) = { + response_type: "Policy" + metadata_type: "PolicyOperationMetadata" + }; + } + + // Deletes a policy. This action is permanent. + rpc DeletePolicy(DeletePolicyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2beta/{name=policies/*/*/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Policy" + metadata_type: "PolicyOperationMetadata" + }; + } +} + +// Data for an IAM policy. +message Policy { + // Immutable. The resource name of the `Policy`, which must be unique. Format: + // `policies/{attachment_point}/denypolicies/{policy_id}` + // + // + // The attachment point is identified by its URL-encoded full resource name, + // which means that the forward-slash character, `/`, must be written as + // `%2F`. For example, + // `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`. + // + // For organizations and folders, use the numeric ID in the full resource + // name. For projects, requests can use the alphanumeric or the numeric ID. + // Responses always contain the numeric ID. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The globally unique ID of the `Policy`. Assigned automatically when the + // `Policy` is created. + string uid = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`. + string kind = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A user-specified description of the `Policy`. This value can be up to 63 + // characters. + string display_name = 4; + + // A key-value map to store arbitrary metadata for the `Policy`. Keys + // can be up to 63 characters. Values can be up to 255 characters. + map annotations = 5; + + // An opaque tag that identifies the current version of the `Policy`. IAM uses + // this value to help manage concurrent updates, so they do not cause one + // update to be overwritten by another. + // + // If this field is present in a [CreatePolicy][] request, the value is + // ignored. + string etag = 6; + + // Output only. The time when the `Policy` was created. + google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the `Policy` was last updated. + google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted. + google.protobuf.Timestamp delete_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A list of rules that specify the behavior of the `Policy`. All of the rules + // should be of the `kind` specified in the `Policy`. + repeated PolicyRule rules = 10; +} + +// A single rule in a `Policy`. +message PolicyRule { + oneof kind { + // A rule for a deny policy. + DenyRule deny_rule = 2; + } + + // A user-specified description of the rule. This value can be up to 256 + // characters. + string description = 1; +} + +// Request message for `ListPolicies`. +message ListPoliciesRequest { + // Required. The resource that the policy is attached to, along with the kind of policy + // to list. Format: + // `policies/{attachment_point}/denypolicies` + // + // + // The attachment point is identified by its URL-encoded full resource name, + // which means that the forward-slash character, `/`, must be written as + // `%2F`. For example, + // `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + // + // For organizations and folders, use the numeric ID in the full resource + // name. For projects, you can use the alphanumeric or the numeric ID. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // The maximum number of policies to return. IAM ignores this value and uses + // the value 1000. + int32 page_size = 2; + + // A page token received in a [ListPoliciesResponse][google.iam.v2beta.ListPoliciesResponse]. Provide this token to + // retrieve the next page. + string page_token = 3; +} + +// Response message for `ListPolicies`. +message ListPoliciesResponse { + // Metadata for the policies that are attached to the resource. + repeated Policy policies = 1; + + // A page token that you can use in a [ListPoliciesRequest][google.iam.v2beta.ListPoliciesRequest] to retrieve the + // next page. If this field is omitted, there are no additional pages. + string next_page_token = 2; +} + +// Request message for `GetPolicy`. +message GetPolicyRequest { + // Required. The resource name of the policy to retrieve. Format: + // `policies/{attachment_point}/denypolicies/{policy_id}` + // + // + // Use the URL-encoded full resource name, which means that the forward-slash + // character, `/`, must be written as `%2F`. For example, + // `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`. + // + // For organizations and folders, use the numeric ID in the full resource + // name. For projects, you can use the alphanumeric or the numeric ID. + string name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `CreatePolicy`. +message CreatePolicyRequest { + // Required. The resource that the policy is attached to, along with the kind of policy + // to create. Format: `policies/{attachment_point}/denypolicies` + // + // + // The attachment point is identified by its URL-encoded full resource name, + // which means that the forward-slash character, `/`, must be written as + // `%2F`. For example, + // `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. + // + // For organizations and folders, use the numeric ID in the full resource + // name. For projects, you can use the alphanumeric or the numeric ID. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The policy to create. + Policy policy = 2 [(google.api.field_behavior) = REQUIRED]; + + // The ID to use for this policy, which will become the final component of + // the policy's resource name. The ID must contain 3 to 63 characters. It can + // contain lowercase letters and numbers, as well as dashes (`-`) and periods + // (`.`). The first character must be a lowercase letter. + string policy_id = 3; +} + +// Request message for `UpdatePolicy`. +message UpdatePolicyRequest { + // Required. The policy to update. + // + // To prevent conflicting updates, the `etag` value must match the value that + // is stored in IAM. If the `etag` values do not match, the request fails with + // a `409` error code and `ABORTED` status. + Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `DeletePolicy`. +message DeletePolicyRequest { + // Required. The resource name of the policy to delete. Format: + // `policies/{attachment_point}/denypolicies/{policy_id}` + // + // + // Use the URL-encoded full resource name, which means that the forward-slash + // character, `/`, must be written as `%2F`. For example, + // `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy`. + // + // For organizations and folders, use the numeric ID in the full resource + // name. For projects, you can use the alphanumeric or the numeric ID. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The expected `etag` of the policy to delete. If the value does not match + // the value that is stored in IAM, the request fails with a `409` error code + // and `ABORTED` status. + // + // If you omit this field, the policy is deleted regardless of its current + // `etag`. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Metadata for long-running `Policy` operations. +message PolicyOperationMetadata { + // Timestamp when the `google.longrunning.Operation` was created. + google.protobuf.Timestamp create_time = 1; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/BUILD.bazel index 3923c581..e7089a3e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/BUILD.bazel @@ -15,7 +15,6 @@ proto_library( "log_severity.proto", ], deps = [ - "//google/api:annotations_proto", "@com_google_protobuf//:duration_proto", ], ) @@ -25,7 +24,7 @@ proto_library( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "java_grpc_library", + "java_gapic_assembly_gradle_pkg", "java_proto_library", ) @@ -34,10 +33,16 @@ java_proto_library( deps = [":type_proto"], ) -java_grpc_library( - name = "type_java_grpc", - srcs = [":type_proto"], - deps = [":type_java_proto"], +# Please DO-NOT-REMOVE this section. +# This is required to generate java files for these protos. +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-logging-type-java", + transport = "grpc+rest", + deps = [ + ":type_java_proto", + ":type_proto", + ], ) ############################################################################## @@ -45,6 +50,7 @@ java_grpc_library( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", "go_proto_library", ) @@ -54,7 +60,13 @@ go_proto_library( importpath = "google.golang.org/genproto/googleapis/logging/type", protos = [":type_proto"], deps = [ - "//google/api:annotations_go_proto", + ], +) + +go_gapic_assembly_pkg( + name = "logging-type-go", + deps = [ + ":type_go_proto", ], ) @@ -72,14 +84,12 @@ moved_proto_library( name = "type_moved_proto", srcs = [":type_proto"], deps = [ - "//google/api:annotations_proto", "@com_google_protobuf//:duration_proto", ], ) py_proto_library( name = "type_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", deps = [":type_moved_proto"], ) @@ -91,12 +101,11 @@ py_grpc_library( ############################################################################## # PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", + "php_gapic_assembly_pkg", + "php_proto_library", ) php_proto_library( @@ -104,21 +113,19 @@ php_proto_library( deps = [":type_proto"], ) -php_grpc_library( - name = "type_php_grpc", - srcs = [":type_proto"], - deps = [":type_php_proto"], +# Please DO-NOT-REMOVE this section. +# This is required to generate php files for these protos. +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-logging-type-php", + deps = [ + ":type_php_proto", + ], ) ############################################################################## # Node.js ############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - ############################################################################## # Ruby @@ -145,6 +152,7 @@ ruby_grpc_library( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", "csharp_grpc_library", "csharp_proto_library", ) @@ -160,6 +168,16 @@ csharp_grpc_library( deps = [":type_csharp_proto"], ) +csharp_gapic_assembly_pkg( + name = "google-logging-type-csharp", + package_name = "Google.Cloud.Logging.Type", + generate_nongapic_package = True, + deps = [ + ":type_csharp_grpc", + ":type_csharp_proto", + ], +) + ############################################################################## # C++ ############################################################################## diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/README.md b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/README.md new file mode 100644 index 00000000..227dc8c4 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/README.md @@ -0,0 +1,12 @@ +## Logging types + +This package contains shared [protocol buffer][protobuf] types that are populated +by the Cloud Logging API and consumed by other APIs. + +### Key Concepts + +- **HttpRequest**: Contains the complete set of information about a particular + HTTP request, such as HTTP method, request URL, status code, and other things. +- **LogSeverity**: The severity of a log entry (e.g. `DEBUG`, `INFO`, `WARNING`). + +[protobuf]: https://developers.google.com/protocol-buffers/ diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/http_request.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/http_request.proto index d34fe7be..fa2dd64e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/http_request.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/http_request.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ syntax = "proto3"; package google.logging.type; import "google/protobuf/duration.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Logging.Type"; option go_package = "google.golang.org/genproto/googleapis/logging/type;ltype"; @@ -68,7 +67,7 @@ message HttpRequest { // The referer URL of the request, as defined in // [HTTP/1.1 Header Field - // Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). + // Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). string referer = 8; // The request processing latency on the server, from the time the request was diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/log_severity.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/log_severity.proto index 0762b5c9..96ff8746 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/log_severity.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/type/log_severity.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,13 +16,12 @@ syntax = "proto3"; package google.logging.type; -import "google/api/annotations.proto"; - option csharp_namespace = "Google.Cloud.Logging.Type"; option go_package = "google.golang.org/genproto/googleapis/logging/type;ltype"; option java_multiple_files = true; option java_outer_classname = "LogSeverityProto"; option java_package = "com.google.logging.type"; +option objc_class_prefix = "GLOG"; option php_namespace = "Google\\Cloud\\Logging\\Type"; option ruby_package = "Google::Cloud::Logging::Type"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/BUILD.bazel index e40a782e..c4ccd454 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/BUILD.bazel @@ -1,5 +1,5 @@ # This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel +# https://github.com/googleapis/rules_gapic/tree/master/bazel # Most of the manual changes to this file will be overwritten. # It's **only** allowed to change the following rule attribute values: @@ -35,6 +35,7 @@ proto_library( "//google/api:monitored_resource_proto", "//google/api:resource_proto", "//google/logging/type:type_proto", + "//google/longrunning:operations_proto", "//google/rpc:status_proto", "@com_google_protobuf//:any_proto", "@com_google_protobuf//:duration_proto", @@ -81,9 +82,12 @@ java_gapic_library( srcs = [":logging_proto_with_info"], gapic_yaml = "logging_gapic.yaml", grpc_service_config = "logging_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "logging_v2.yaml", test_deps = [ ":logging_java_grpc", ], + transport = "grpc", deps = [ ":logging_java_proto", "//google/api:api_java_proto", @@ -103,6 +107,8 @@ java_gapic_test( # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-cloud-logging-v2-java", + include_samples = True, + transport = "grpc", deps = [ ":logging_java_gapic", ":logging_java_grpc", @@ -119,13 +125,12 @@ load( "go_gapic_assembly_pkg", "go_gapic_library", "go_proto_library", - "go_test", ) go_proto_library( name = "logging_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/logging/v2", + importpath = "cloud.google.com/go/logging/apiv2/loggingpb", protos = [":logging_proto"], deps = [ "//google/api:annotations_go_proto", @@ -133,6 +138,7 @@ go_proto_library( "//google/api:metric_go_proto", "//google/api:monitoredres_go_proto", "//google/logging/type:type_go_proto", + "//google/longrunning:longrunning_go_proto", "//google/rpc:status_go_proto", ], ) @@ -142,26 +148,31 @@ go_gapic_library( srcs = [":logging_proto_with_info"], grpc_service_config = "logging_grpc_service_config.json", importpath = "cloud.google.com/go/logging/apiv2;logging", - service_yaml = "logging.yaml", + metadata = True, + release_level = "ga", + rest_numeric_enums = True, + service_yaml = "logging_v2.yaml", + transport = "grpc", deps = [ ":logging_go_proto", + "//google/api:metric_go_proto", "//google/api:monitoredres_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go_longrunning//:go_default_library", + "@com_google_cloud_go_longrunning//autogen:go_default_library", + "@io_bazel_rules_go//proto/wkt:any_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", + "@io_bazel_rules_go//proto/wkt:struct_go_proto", ], ) -go_test( - name = "logging_go_gapic_test", - srcs = [":logging_go_gapic_srcjar_test"], - embed = [":logging_go_gapic"], - importpath = "cloud.google.com/go/logging/apiv2", -) - # Open Source Packages go_gapic_assembly_pkg( name = "gapi-cloud-logging-v2-go", deps = [ ":logging_go_gapic", + ":logging_go_gapic_srcjar-metadata.srcjar", + ":logging_go_gapic_srcjar-snippets.srcjar", ":logging_go_gapic_srcjar-test.srcjar", ":logging_go_proto", ], @@ -174,6 +185,7 @@ load( "@com_google_googleapis_imports//:imports.bzl", "py_gapic_assembly_pkg", "py_gapic_library", + "py_test", ) py_gapic_library( @@ -181,11 +193,26 @@ py_gapic_library( srcs = [":logging_proto"], grpc_service_config = "logging_grpc_service_config.json", opt_args = [ - "python-gapic-namespace=google.cloud", "python-gapic-name=logging", + "python-gapic-namespace=google.cloud", + ], + rest_numeric_enums = True, + service_yaml = "logging_v2.yaml", + transport = "grpc", + deps = [ ], ) +py_test( + name = "logging_py_gapic_test", + srcs = [ + "logging_py_gapic_pytest.py", + "logging_py_gapic_test.py", + ], + legacy_create_init = False, + deps = [":logging_py_gapic"], +) + # Open Source Packages py_gapic_assembly_pkg( name = "logging-v2-py", @@ -196,14 +223,12 @@ py_gapic_assembly_pkg( ############################################################################## # PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_gapic_assembly_pkg = "php_gapic_assembly_pkg2", - php_gapic_library = "php_gapic_library2", - php_grpc_library = "php_grpc_library2", - php_proto_library = "php_proto_library2", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", ) php_proto_library( @@ -211,21 +236,16 @@ php_proto_library( deps = [":logging_proto"], ) -php_grpc_library( - name = "logging_php_grpc", - srcs = [":logging_proto"], - deps = [":logging_php_proto"], -) - php_gapic_library( name = "logging_php_gapic", srcs = [":logging_proto_with_info"], gapic_yaml = "logging_gapic.yaml", grpc_service_config = "logging_grpc_service_config.json", - deps = [ - ":logging_php_grpc", - ":logging_php_proto", - ], + migration_mode = "MIGRATING", + rest_numeric_enums = True, + service_yaml = "logging_v2.yaml", + transport = "grpc+rest", + deps = [":logging_php_proto"], ) # Open Source Packages @@ -233,7 +253,6 @@ php_gapic_assembly_pkg( name = "google-cloud-logging-v2-php", deps = [ ":logging_php_gapic", - ":logging_php_grpc", ":logging_php_proto", ], ) @@ -256,7 +275,9 @@ nodejs_gapic_library( grpc_service_config = "logging_grpc_service_config.json", main_service = "logging", package = "google.logging.v2", - service_yaml = "logging.yaml", + rest_numeric_enums = True, + service_yaml = "logging_v2.yaml", + transport = "grpc", deps = [], ) @@ -265,6 +286,7 @@ nodejs_gapic_assembly_pkg( deps = [ ":logging_nodejs_gapic", ":logging_proto", + "//google/logging/type:type_proto", ], ) @@ -294,17 +316,20 @@ ruby_cloud_gapic_library( name = "logging_ruby_gapic", srcs = [":logging_proto_with_info"], extra_protoc_parameters = [ - "ruby-cloud-gem-name=google-cloud-logging-v2", - "ruby-cloud-env-prefix=LOGGING", - "ruby-cloud-product-url=https://cloud.google.com/logging", "ruby-cloud-api-id=logging.googleapis.com", "ruby-cloud-api-shortname=logging", + "ruby-cloud-env-prefix=LOGGING", + "ruby-cloud-gem-name=google-cloud-logging-v2", + "ruby-cloud-product-url=https://cloud.google.com/logging", "ruby-cloud-service-override=ConfigServiceV2=ConfigService;LoggingServiceV2=LoggingService;MetricsServiceV2=MetricsService", "ruby-cloud-yard-strict=false", ], grpc_service_config = "logging_grpc_service_config.json", + rest_numeric_enums = True, ruby_cloud_description = "The Cloud Logging API lets you programmatically read and write log entries, set up exclusions, create logs-based metrics, and manage export sinks.", ruby_cloud_title = "Cloud Logging V2", + service_yaml = "logging_v2.yaml", + transport = "grpc", deps = [ ":logging_ruby_grpc", ":logging_ruby_proto", @@ -348,6 +373,9 @@ csharp_gapic_library( srcs = [":logging_proto_with_info"], common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", grpc_service_config = "logging_grpc_service_config.json", + rest_numeric_enums = True, + service_yaml = "logging_v2.yaml", + transport = "grpc", deps = [ ":logging_csharp_grpc", ":logging_csharp_proto", diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/log_entry.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/log_entry.proto index 3ad2cfbb..2404219f 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/log_entry.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/log_entry.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,12 +24,10 @@ import "google/logging/type/log_severity.proto"; import "google/protobuf/any.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; -option go_package = "google.golang.org/genproto/googleapis/logging/v2;logging"; +option go_package = "cloud.google.com/go/logging/apiv2/loggingpb;loggingpb"; option java_multiple_files = true; option java_outer_classname = "LogEntryProto"; option java_package = "com.google.logging.v2"; @@ -37,8 +35,6 @@ option php_namespace = "Google\\Cloud\\Logging\\V2"; option ruby_package = "Google::Cloud::Logging::V2"; // An individual entry in a log. -// -// message LogEntry { option (google.api.resource) = { type: "logging.googleapis.com/Log" @@ -62,12 +58,13 @@ message LogEntry { // // `[LOG_ID]` must be URL-encoded within `log_name`. Example: // `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. + // // `[LOG_ID]` must be less than 512 characters long and can only include the // following characters: upper and lower case alphanumeric characters, // forward-slash, underscore, hyphen, and period. // // For backward compatibility, if `log_name` begins with a forward-slash, such - // as `/projects/...`, then the log entry is ingested as usual but the + // as `/projects/...`, then the log entry is ingested as usual, but the // forward-slash is removed. Listing the log entry will not show the leading // slash and filtering for a log name with a leading slash will never return // any results. @@ -78,7 +75,8 @@ message LogEntry { // Example: a log entry that reports a database error would be associated with // the monitored resource designating the particular database that reported // the error. - google.api.MonitoredResource resource = 8 [(google.api.field_behavior) = REQUIRED]; + google.api.MonitoredResource resource = 8 + [(google.api.field_behavior) = REQUIRED]; // The log entry payload, which can be one of multiple types. oneof payload { @@ -100,61 +98,109 @@ message LogEntry { google.protobuf.Struct json_payload = 6; } - // Optional. The time the event described by the log entry occurred. This time is used - // to compute the log entry's age and to enforce the logs retention period. - // If this field is omitted in a new log entry, then Logging assigns it the - // current time. Timestamps have nanosecond accuracy, but trailing zeros in - // the fractional seconds might be omitted when the timestamp is displayed. + // Optional. The time the event described by the log entry occurred. This time + // is used to compute the log entry's age and to enforce the logs retention + // period. If this field is omitted in a new log entry, then Logging assigns + // it the current time. Timestamps have nanosecond accuracy, but trailing + // zeros in the fractional seconds might be omitted when the timestamp is + // displayed. // // Incoming log entries must have timestamps that don't exceed the // [logs retention // period](https://cloud.google.com/logging/quotas#logs_retention_periods) in // the past, and that don't exceed 24 hours in the future. Log entries outside // those time boundaries aren't ingested by Logging. - google.protobuf.Timestamp timestamp = 9 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Timestamp timestamp = 9 + [(google.api.field_behavior) = OPTIONAL]; // Output only. The time the log entry was received by Logging. - google.protobuf.Timestamp receive_timestamp = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp receive_timestamp = 24 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`. - google.logging.type.LogSeverity severity = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The severity of the log entry. The default value is + // `LogSeverity.DEFAULT`. + google.logging.type.LogSeverity severity = 10 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. A unique identifier for the log entry. If you provide a value, then - // Logging considers other log entries in the same project, with the same + // Optional. A unique identifier for the log entry. If you provide a value, + // then Logging considers other log entries in the same project, with the same // `timestamp`, and with the same `insert_id` to be duplicates which are // removed in a single query result. However, there are no guarantees of // de-duplication in the export of logs. // // If the `insert_id` is omitted when writing a log entry, the Logging API - // assigns its own unique identifier in this field. + // assigns its own unique identifier in this field. // // In queries, the `insert_id` is also used to order log entries that have // the same `log_name` and `timestamp` values. string insert_id = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Information about the HTTP request associated with this log entry, if - // applicable. - google.logging.type.HttpRequest http_request = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Information about the HTTP request associated with this log + // entry, if applicable. + google.logging.type.HttpRequest http_request = 7 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. A set of user-defined (key, value) data that provides additional - // information about the log entry. + // Optional. A map of key, value pairs that provides additional information + // about the log entry. The labels can be user-defined or system-defined. + // + // User-defined labels are arbitrary key, value pairs that you can use to + // classify logs. + // + // System-defined labels are defined by GCP services for platform logs. + // They have two components - a service namespace component and the + // attribute name. For example: `compute.googleapis.com/resource_name`. + // + // Cloud Logging truncates label keys that exceed 512 B and label + // values that exceed 64 KB upon their associated log entry being + // written. The truncation is indicated by an ellipsis at the + // end of the character string. map labels = 11 [(google.api.field_behavior) = OPTIONAL]; // Optional. Information about an operation associated with the log entry, if // applicable. LogEntryOperation operation = 15 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Resource name of the trace associated with the log entry, if any. If it - // contains a relative resource name, the name is assumed to be relative to - // `//tracing.googleapis.com`. Example: - // `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824` + // Optional. The REST resource name of the trace being written to + // [Cloud Trace](https://cloud.google.com/trace) in + // association with this log entry. For example, if your trace data is stored + // in the Cloud project "my-trace-project" and if the service that is creating + // the log entry receives a trace header that includes the trace ID "12345", + // then the service should use "projects/my-tracing-project/traces/12345". + // + // The `trace` field provides the link between logs and traces. By using + // this field, you can navigate from a log entry to a trace. string trace = 22 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The span ID within the trace associated with the log entry. + // Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span + // associated with the current operation in which the log is being written. + // For example, if a span has the REST resource name of + // "projects/some-project/traces/some-trace/spans/some-span-id", then the + // `span_id` field is "some-span-id". + // + // A + // [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span) + // represents a single operation within a trace. Whereas a trace may involve + // multiple different microservices running on multiple different machines, + // a span generally corresponds to a single logical operation being performed + // in a single instance of a microservice on one specific machine. Spans + // are the nodes within the tree that is a trace. // - // For Trace spans, this is the same format that the Trace API v2 uses: a - // 16-character hexadecimal encoding of an 8-byte array, such as - // `000000000000004a`. + // Applications that are [instrumented for + // tracing](https://cloud.google.com/trace/docs/setup) will generally assign a + // new, unique span ID on each incoming request. It is also common to create + // and record additional spans corresponding to internal processing elements + // as well as issuing requests to dependencies. + // + // The span ID is expected to be a 16-character, hexadecimal encoding of an + // 8-byte array and should not be zero. It should be unique within the trace + // and should, ideally, be generated in a manner that is uniformly random. + // + // Example values: + // + // - `000000000000004a` + // - `7a2190356c3fc94b` + // - `0000f00300090021` + // - `d39223e101960076` string span_id = 27 [(google.api.field_behavior) = OPTIONAL]; // Optional. The sampling decision of the trace associated with the log entry. @@ -166,8 +212,14 @@ message LogEntry { // request correlation identifier. The default is False. bool trace_sampled = 30 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Source code location information associated with the log entry, if any. - LogEntrySourceLocation source_location = 23 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Source code location information associated with the log entry, + // if any. + LogEntrySourceLocation source_location = 23 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Information indicating this LogEntry is part of a sequence of + // multiple log entries split from a single LogEntry. + LogSplit split = 35 [(google.api.field_behavior) = OPTIONAL]; } // Additional information about a potentially long-running operation with which @@ -208,3 +260,21 @@ message LogEntrySourceLocation { // (Python). string function = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Additional information used to correlate multiple log entries. Used when a +// single LogEntry would exceed the Google Cloud Logging size limit and is +// split across multiple log entries. +message LogSplit { + // A globally unique identifier for all log entries in a sequence of split log + // entries. All log entries with the same |LogSplit.uid| are assumed to be + // part of the same sequence of split log entries. + string uid = 1; + + // The index of this LogEntry in the sequence of split log entries. Log + // entries are given |index| values 0, 1, ..., n-1 for a sequence of n log + // entries. + int32 index = 2; + + // The total number of log entries that the original LogEntry was split into. + int32 total_splits = 3; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging.proto index f8b01a71..cd686e9f 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,22 +16,19 @@ syntax = "proto3"; package google.logging.v2; +import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/monitored_resource.proto"; import "google/api/resource.proto"; import "google/logging/v2/log_entry.proto"; -import "google/logging/v2/logging_config.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; -option go_package = "google.golang.org/genproto/googleapis/logging/v2;logging"; +option go_package = "cloud.google.com/go/logging/apiv2/loggingpb;loggingpb"; option java_multiple_files = true; option java_outer_classname = "LoggingProto"; option java_package = "com.google.logging.v2"; @@ -48,25 +45,17 @@ service LoggingServiceV2 { "https://www.googleapis.com/auth/logging.read," "https://www.googleapis.com/auth/logging.write"; - // Deletes all the log entries in a log. The log reappears if it receives new - // entries. Log entries written shortly before the delete operation might not - // be deleted. Entries received after the delete operation with a timestamp - // before the operation will be deleted. + // Deletes all the log entries in a log for the _Default Log Bucket. The log + // reappears if it receives new entries. Log entries written shortly before + // the delete operation might not be deleted. Entries received after the + // delete operation with a timestamp before the operation will be deleted. rpc DeleteLog(DeleteLogRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{log_name=projects/*/logs/*}" - additional_bindings { - delete: "/v2/{log_name=*/*/logs/*}" - } - additional_bindings { - delete: "/v2/{log_name=organizations/*/logs/*}" - } - additional_bindings { - delete: "/v2/{log_name=folders/*/logs/*}" - } - additional_bindings { - delete: "/v2/{log_name=billingAccounts/*/logs/*}" - } + additional_bindings { delete: "/v2/{log_name=*/*/logs/*}" } + additional_bindings { delete: "/v2/{log_name=organizations/*/logs/*}" } + additional_bindings { delete: "/v2/{log_name=folders/*/logs/*}" } + additional_bindings { delete: "/v2/{log_name=billingAccounts/*/logs/*}" } }; option (google.api.method_signature) = "log_name"; } @@ -78,7 +67,8 @@ service LoggingServiceV2 { // A single request may contain log entries for a maximum of 1000 // different resources (projects, organizations, billing accounts or // folders) - rpc WriteLogEntries(WriteLogEntriesRequest) returns (WriteLogEntriesResponse) { + rpc WriteLogEntries(WriteLogEntriesRequest) + returns (WriteLogEntriesResponse) { option (google.api.http) = { post: "/v2/entries:write" body: "*" @@ -99,7 +89,8 @@ service LoggingServiceV2 { } // Lists the descriptors for monitored resource types used by Logging. - rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest) returns (ListMonitoredResourceDescriptorsResponse) { + rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest) + returns (ListMonitoredResourceDescriptorsResponse) { option (google.api.http) = { get: "/v2/monitoredResourceDescriptors" }; @@ -110,17 +101,21 @@ service LoggingServiceV2 { rpc ListLogs(ListLogsRequest) returns (ListLogsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*}/logs" + additional_bindings { get: "/v2/{parent=projects/*}/logs" } + additional_bindings { get: "/v2/{parent=organizations/*}/logs" } + additional_bindings { get: "/v2/{parent=folders/*}/logs" } + additional_bindings { get: "/v2/{parent=billingAccounts/*}/logs" } additional_bindings { - get: "/v2/{parent=projects/*}/logs" + get: "/v2/{parent=projects/*/locations/*/buckets/*/views/*}/logs" } additional_bindings { - get: "/v2/{parent=organizations/*}/logs" + get: "/v2/{parent=organizations/*/locations/*/buckets/*/views/*}/logs" } additional_bindings { - get: "/v2/{parent=folders/*}/logs" + get: "/v2/{parent=folders/*/locations/*/buckets/*/views/*}/logs" } additional_bindings { - get: "/v2/{parent=billingAccounts/*}/logs" + get: "/v2/{parent=billingAccounts/*/locations/*/buckets/*/views/*}/logs" } }; option (google.api.method_signature) = "parent"; @@ -128,7 +123,8 @@ service LoggingServiceV2 { // Streaming read of log entries as they are ingested. Until the stream is // terminated, it will continue reading logs. - rpc TailLogEntries(stream TailLogEntriesRequest) returns (stream TailLogEntriesResponse) { + rpc TailLogEntries(stream TailLogEntriesRequest) + returns (stream TailLogEntriesResponse) { option (google.api.http) = { post: "/v2/entries:tail" body: "*" @@ -140,21 +136,20 @@ service LoggingServiceV2 { message DeleteLogRequest { // Required. The resource name of the log to delete: // - // "projects/[PROJECT_ID]/logs/[LOG_ID]" - // "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - // "folders/[FOLDER_ID]/logs/[LOG_ID]" + // * `projects/[PROJECT_ID]/logs/[LOG_ID]` + // * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + // * `folders/[FOLDER_ID]/logs/[LOG_ID]` // // `[LOG_ID]` must be URL-encoded. For example, // `"projects/my-project-id/logs/syslog"`, - // `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. + // `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`. + // // For more information about log names, see // [LogEntry][google.logging.v2.LogEntry]. string log_name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "logging.googleapis.com/Log" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/Log" } ]; } @@ -163,15 +158,15 @@ message WriteLogEntriesRequest { // Optional. A default log resource name that is assigned to all log entries // in `entries` that do not specify a value for `log_name`: // - // "projects/[PROJECT_ID]/logs/[LOG_ID]" - // "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - // "folders/[FOLDER_ID]/logs/[LOG_ID]" + // * `projects/[PROJECT_ID]/logs/[LOG_ID]` + // * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + // * `folders/[FOLDER_ID]/logs/[LOG_ID]` // // `[LOG_ID]` must be URL-encoded. For example: // // "projects/my-project-id/logs/syslog" - // "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity" + // "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" // // The permission `logging.logEntries.create` is needed on each project, // organization, billing account, or folder that is receiving new log @@ -179,9 +174,7 @@ message WriteLogEntriesRequest { // individual log entry. string log_name = 1 [ (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { - type: "logging.googleapis.com/Log" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/Log" } ]; // Optional. A default monitored resource object that is assigned to all log @@ -192,7 +185,8 @@ message WriteLogEntriesRequest { // "zone": "us-central1-a", "instance_id": "00000000000000000000" }} // // See [LogEntry][google.logging.v2.LogEntry]. - google.api.MonitoredResource resource = 2 [(google.api.field_behavior) = OPTIONAL]; + google.api.MonitoredResource resource = 2 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Default labels that are added to the `labels` field of all log // entries in `entries`. If a log entry already has a label with the same key @@ -214,23 +208,25 @@ message WriteLogEntriesRequest { // the entries later in the list. See the `entries.list` method. // // Log entries with timestamps that are more than the - // [logs retention period](https://cloud.google.com/logging/quota-policy) in + // [logs retention period](https://cloud.google.com/logging/quotas) in // the past or more than 24 hours in the future will not be available when // calling `entries.list`. However, those log entries can still be [exported // with // LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). // // To improve throughput and to avoid exceeding the - // [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + // [quota limit](https://cloud.google.com/logging/quotas) for calls to // `entries.write`, you should try to include several log entries in this // list, rather than calling this method for each individual log entry. repeated LogEntry entries = 4 [(google.api.field_behavior) = REQUIRED]; - // Optional. Whether valid entries should be written even if some other - // entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any - // entry is not written, then the response status is the error associated - // with one of the failed entries and the response includes error details - // keyed by the entries' zero-based index in the `entries.write` method. + // Optional. Whether a batch's valid entries should be written even if some + // other entry failed due to a permanent error such as INVALID_ARGUMENT or + // PERMISSION_DENIED. If any entry failed, then the response status is the + // response status of one of the failed entries. The response will include + // error details in `WriteLogEntriesPartialErrors.log_entry_errors` keyed by + // the entries' zero-based index in the `entries`. Failed requests for which + // no entries are written will not include per-entry errors. bool partial_success = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. If true, the request should expect normal response, but the @@ -258,18 +254,20 @@ message ListLogEntriesRequest { // Required. Names of one or more parent resources from which to // retrieve log entries: // - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" + // * `projects/[PROJECT_ID]` + // * `organizations/[ORGANIZATION_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]` + // * `folders/[FOLDER_ID]` + // + // May alternatively be one or more views: // - // May alternatively be one or more views - // projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + // * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` // // Projects listed in the `project_ids` field are added to this list. + // A maximum of 100 resources may be specified in a single request. repeated string resource_names = 8 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -277,13 +275,11 @@ message ListLogEntriesRequest { } ]; - // Optional. A filter that chooses which log entries to return. See [Advanced - // Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries). - // Only log entries that match the filter are returned. An empty filter - // matches all log entries in the resources listed in `resource_names`. + // Optional. Only log entries that match the filter are returned. An empty + // filter matches all log entries in the resources listed in `resource_names`. // Referencing a parent resource that is not listed in `resource_names` will - // cause the filter to return no results. The maximum length of the filter is - // 20000 characters. + // cause the filter to return no results. The maximum length of a filter is + // 20,000 characters. string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. How the results should be sorted. Presently, the only permitted @@ -295,9 +291,9 @@ message ListLogEntriesRequest { string order_by = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The maximum number of results to return from this request. - // Default is 50. If the value is negative or exceeds 1000, - // the request is rejected. The presence of `next_page_token` in the - // response indicates that more results might be available. + // Default is 50. If the value is negative or exceeds 1000, the request is + // rejected. The presence of `next_page_token` in the response indicates that + // more results might be available. int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. If present, then retrieve the next batch of results from the @@ -354,12 +350,12 @@ message ListMonitoredResourceDescriptorsResponse { // The parameters to ListLogs. message ListLogsRequest { - // Required. The resource name that owns the logs: + // Required. The resource name to list logs for: // - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" + // * `projects/[PROJECT_ID]` + // * `organizations/[ORGANIZATION_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]` + // * `folders/[FOLDER_ID]` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -367,6 +363,28 @@ message ListLogsRequest { } ]; + // Optional. List of resource names to list logs for: + // + // * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // + // To support legacy queries, it could also be: + // + // * `projects/[PROJECT_ID]` + // * `organizations/[ORGANIZATION_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]` + // * `folders/[FOLDER_ID]` + // + // The resource name in the `parent` field is added to this list. + repeated string resource_names = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Log" + } + ]; + // Optional. The maximum number of results to return from this request. // Non-positive values are ignored. The presence of `nextPageToken` in the // response indicates that more results might be available. @@ -377,19 +395,6 @@ message ListLogsRequest { // `nextPageToken` from the previous response. The values of other method // parameters should be identical to those in the previous call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The resource name that owns the logs: - // projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // - // To support legacy queries, it could also be: - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" - repeated string resource_names = 8 [(google.api.field_behavior) = OPTIONAL]; } // Result returned from ListLogs. @@ -409,32 +414,32 @@ message ListLogsResponse { message TailLogEntriesRequest { // Required. Name of a parent resource from which to retrieve log entries: // - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" + // * `projects/[PROJECT_ID]` + // * `organizations/[ORGANIZATION_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]` + // * `folders/[FOLDER_ID]` // // May alternatively be one or more views: - // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" - // "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" - // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + // + // * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` repeated string resource_names = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. A filter that chooses which log entries to return. See [Advanced - // Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). - // Only log entries that match the filter are returned. An empty filter - // matches all log entries in the resources listed in `resource_names`. - // Referencing a parent resource that is not in `resource_names` will cause - // the filter to return no results. The maximum length of the filter is 20000 - // characters. + // Optional. Only log entries that match the filter are returned. An empty + // filter matches all log entries in the resources listed in `resource_names`. + // Referencing a parent resource that is not listed in `resource_names` will + // cause the filter to return no results. The maximum length of a filter is + // 20,000 characters. string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The amount of time to buffer log entries at the server before // being returned to prevent out of order results due to late arriving log // entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 // milliseconds. - google.protobuf.Duration buffer_window = 3 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration buffer_window = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Result returned from `TailLogEntries`. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging_config.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging_config.proto index 9b10932d..d914df1b 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging_config.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging_config.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,18 +16,18 @@ syntax = "proto3"; package google.logging.v2; +import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/protobuf/duration.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; -option go_package = "google.golang.org/genproto/googleapis/logging/v2;logging"; +option go_package = "cloud.google.com/go/logging/apiv2/loggingpb;loggingpb"; option java_multiple_files = true; option java_outer_classname = "LoggingConfigProto"; option java_package = "com.google.logging.v2"; @@ -55,19 +55,15 @@ service ConfigServiceV2 { "https://www.googleapis.com/auth/logging.admin," "https://www.googleapis.com/auth/logging.read"; - // Lists buckets. + // Lists log buckets. rpc ListBuckets(ListBucketsRequest) returns (ListBucketsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*/locations/*}/buckets" - additional_bindings { - get: "/v2/{parent=projects/*/locations/*}/buckets" - } + additional_bindings { get: "/v2/{parent=projects/*/locations/*}/buckets" } additional_bindings { get: "/v2/{parent=organizations/*/locations/*}/buckets" } - additional_bindings { - get: "/v2/{parent=folders/*/locations/*}/buckets" - } + additional_bindings { get: "/v2/{parent=folders/*/locations/*}/buckets" } additional_bindings { get: "/v2/{parent=billingAccounts/*/locations/*}/buckets" } @@ -75,27 +71,88 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent"; } - // Gets a bucket. + // Gets a log bucket. rpc GetBucket(GetBucketRequest) returns (LogBucket) { option (google.api.http) = { get: "/v2/{name=*/*/locations/*/buckets/*}" + additional_bindings { get: "/v2/{name=projects/*/locations/*/buckets/*}" } additional_bindings { - get: "/v2/{name=projects/*/locations/*/buckets/*}" + get: "/v2/{name=organizations/*/locations/*/buckets/*}" } + additional_bindings { get: "/v2/{name=folders/*/locations/*/buckets/*}" } additional_bindings { - get: "/v2/{name=organizations/*/locations/*/buckets/*}" + get: "/v2/{name=billingAccounts/*/locations/*/buckets/*}" } + }; + } + + // Creates a log bucket asynchronously that can be used to store log entries. + // + // After a bucket has been created, the bucket's location cannot be changed. + rpc CreateBucketAsync(CreateBucketRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=*/*/locations/*}/buckets:createAsync" + body: "bucket" additional_bindings { - get: "/v2/{name=folders/*/locations/*/buckets/*}" + post: "/v2/{parent=projects/*/locations/*}/buckets:createAsync" + body: "bucket" } additional_bindings { - get: "/v2/{name=billingAccounts/*/buckets/*}" + post: "/v2/{parent=organizations/*/locations/*}/buckets:createAsync" + body: "bucket" + } + additional_bindings { + post: "/v2/{parent=folders/*/locations/*}/buckets:createAsync" + body: "bucket" + } + additional_bindings { + post: "/v2/{parent=billingAccounts/*/locations/*}/buckets:createAsync" + body: "bucket" } }; + option (google.longrunning.operation_info) = { + response_type: "LogBucket" + metadata_type: "BucketMetadata" + }; } - // Creates a bucket that can be used to store log entries. Once a bucket has - // been created, the region cannot be changed. + // Updates a log bucket asynchronously. + // + // If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then + // `FAILED_PRECONDITION` will be returned. + // + // After a bucket has been created, the bucket's location cannot be changed. + rpc UpdateBucketAsync(UpdateBucketRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=*/*/locations/*/buckets/*}:updateAsync" + body: "bucket" + additional_bindings { + post: "/v2/{name=projects/*/locations/*/buckets/*}:updateAsync" + body: "bucket" + } + additional_bindings { + post: "/v2/{name=organizations/*/locations/*/buckets/*}:updateAsync" + body: "bucket" + } + additional_bindings { + post: "/v2/{name=folders/*/locations/*/buckets/*}:updateAsync" + body: "bucket" + } + additional_bindings { + post: "/v2/{name=billingAccounts/*/locations/*/buckets/*}:updateAsync" + body: "bucket" + } + }; + option (google.longrunning.operation_info) = { + response_type: "LogBucket" + metadata_type: "BucketMetadata" + }; + } + + // Creates a log bucket that can be used to store log entries. After a bucket + // has been created, the bucket's location cannot be changed. rpc CreateBucket(CreateBucketRequest) returns (LogBucket) { option (google.api.http) = { post: "/v2/{parent=*/*/locations/*}/buckets" @@ -119,16 +176,12 @@ service ConfigServiceV2 { }; } - // Updates a bucket. This method replaces the following fields in the - // existing bucket with values from the new bucket: `retention_period` + // Updates a log bucket. // - // If the retention period is decreased and the bucket is locked, - // FAILED_PRECONDITION will be returned. + // If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then + // `FAILED_PRECONDITION` will be returned. // - // If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION - // will be returned. - // - // A buckets region may not be modified after it is created. + // After a bucket has been created, the bucket's location cannot be changed. rpc UpdateBucket(UpdateBucketRequest) returns (LogBucket) { option (google.api.http) = { patch: "/v2/{name=*/*/locations/*/buckets/*}" @@ -152,10 +205,11 @@ service ConfigServiceV2 { }; } - // Deletes a bucket. - // Moves the bucket to the DELETE_REQUESTED state. After 7 days, the - // bucket will be purged and all logs in the bucket will be permanently - // deleted. + // Deletes a log bucket. + // + // Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. + // After 7 days, the bucket will be purged and all log entries in the bucket + // will be permanently deleted. rpc DeleteBucket(DeleteBucketRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=*/*/locations/*/buckets/*}" @@ -174,8 +228,8 @@ service ConfigServiceV2 { }; } - // Undeletes a bucket. A bucket that has been deleted may be undeleted within - // the grace period of 7 days. + // Undeletes a log bucket. A bucket that has been deleted can be undeleted + // within the grace period of 7 days. rpc UndeleteBucket(UndeleteBucketRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v2/{name=*/*/locations/*/buckets/*}:undelete" @@ -199,7 +253,7 @@ service ConfigServiceV2 { }; } - // Lists views on a bucket. + // Lists views on a log bucket. rpc ListViews(ListViewsRequest) returns (ListViewsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*/locations/*/buckets/*}/views" @@ -219,7 +273,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent"; } - // Gets a view. + // Gets a view on a log bucket.. rpc GetView(GetViewRequest) returns (LogView) { option (google.api.http) = { get: "/v2/{name=*/*/locations/*/buckets/*/views/*}" @@ -233,13 +287,13 @@ service ConfigServiceV2 { get: "/v2/{name=folders/*/locations/*/buckets/*/views/*}" } additional_bindings { - get: "/v2/{name=billingAccounts/*/buckets/*/views/*}" + get: "/v2/{name=billingAccounts/*/locations/*/buckets/*/views/*}" } }; } - // Creates a view over logs in a bucket. A bucket may contain a maximum of - // 50 views. + // Creates a view over log entries in a log bucket. A bucket may contain a + // maximum of 30 views. rpc CreateView(CreateViewRequest) returns (LogView) { option (google.api.http) = { post: "/v2/{parent=*/*/locations/*/buckets/*}/views" @@ -263,8 +317,11 @@ service ConfigServiceV2 { }; } - // Updates a view. This method replaces the following fields in the existing - // view with values from the new view: `filter`. + // Updates a view on a log bucket. This method replaces the following fields + // in the existing view with values from the new view: `filter`. + // If an `UNAVAILABLE` error is returned, this indicates that system is not in + // a state where it can update the view. If this occurs, please try again in a + // few minutes. rpc UpdateView(UpdateViewRequest) returns (LogView) { option (google.api.http) = { patch: "/v2/{name=*/*/locations/*/buckets/*/views/*}" @@ -288,7 +345,10 @@ service ConfigServiceV2 { }; } - // Deletes a view from a bucket. + // Deletes a view on a log bucket. + // If an `UNAVAILABLE` error is returned, this indicates that system is not in + // a state where it can delete the view. If this occurs, please try again in a + // few minutes. rpc DeleteView(DeleteViewRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=*/*/locations/*/buckets/*/views/*}" @@ -311,18 +371,10 @@ service ConfigServiceV2 { rpc ListSinks(ListSinksRequest) returns (ListSinksResponse) { option (google.api.http) = { get: "/v2/{parent=*/*}/sinks" - additional_bindings { - get: "/v2/{parent=projects/*}/sinks" - } - additional_bindings { - get: "/v2/{parent=organizations/*}/sinks" - } - additional_bindings { - get: "/v2/{parent=folders/*}/sinks" - } - additional_bindings { - get: "/v2/{parent=billingAccounts/*}/sinks" - } + additional_bindings { get: "/v2/{parent=projects/*}/sinks" } + additional_bindings { get: "/v2/{parent=organizations/*}/sinks" } + additional_bindings { get: "/v2/{parent=folders/*}/sinks" } + additional_bindings { get: "/v2/{parent=billingAccounts/*}/sinks" } }; option (google.api.method_signature) = "parent"; } @@ -331,18 +383,10 @@ service ConfigServiceV2 { rpc GetSink(GetSinkRequest) returns (LogSink) { option (google.api.http) = { get: "/v2/{sink_name=*/*/sinks/*}" - additional_bindings { - get: "/v2/{sink_name=projects/*/sinks/*}" - } - additional_bindings { - get: "/v2/{sink_name=organizations/*/sinks/*}" - } - additional_bindings { - get: "/v2/{sink_name=folders/*/sinks/*}" - } - additional_bindings { - get: "/v2/{sink_name=billingAccounts/*/sinks/*}" - } + additional_bindings { get: "/v2/{sink_name=projects/*/sinks/*}" } + additional_bindings { get: "/v2/{sink_name=organizations/*/sinks/*}" } + additional_bindings { get: "/v2/{sink_name=folders/*/sinks/*}" } + additional_bindings { get: "/v2/{sink_name=billingAccounts/*/sinks/*}" } }; option (google.api.method_signature) = "sink_name"; } @@ -355,18 +399,12 @@ service ConfigServiceV2 { option (google.api.http) = { post: "/v2/{parent=*/*}/sinks" body: "sink" - additional_bindings { - post: "/v2/{parent=projects/*}/sinks" - body: "sink" - } + additional_bindings { post: "/v2/{parent=projects/*}/sinks" body: "sink" } additional_bindings { post: "/v2/{parent=organizations/*}/sinks" body: "sink" } - additional_bindings { - post: "/v2/{parent=folders/*}/sinks" - body: "sink" - } + additional_bindings { post: "/v2/{parent=folders/*}/sinks" body: "sink" } additional_bindings { post: "/v2/{parent=billingAccounts/*}/sinks" body: "sink" @@ -426,65 +464,139 @@ service ConfigServiceV2 { rpc DeleteSink(DeleteSinkRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{sink_name=*/*/sinks/*}" + additional_bindings { delete: "/v2/{sink_name=projects/*/sinks/*}" } + additional_bindings { delete: "/v2/{sink_name=organizations/*/sinks/*}" } + additional_bindings { delete: "/v2/{sink_name=folders/*/sinks/*}" } additional_bindings { - delete: "/v2/{sink_name=projects/*/sinks/*}" + delete: "/v2/{sink_name=billingAccounts/*/sinks/*}" } + }; + option (google.api.method_signature) = "sink_name"; + } + + // Asynchronously creates a linked dataset in BigQuery which makes it possible + // to use BigQuery to read the logs stored in the log bucket. A log bucket may + // currently only contain one link. + rpc CreateLink(CreateLinkRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=*/*/locations/*/buckets/*}/links" + body: "link" additional_bindings { - delete: "/v2/{sink_name=organizations/*/sinks/*}" + post: "/v2/{parent=projects/*/locations/*/buckets/*}/links" + body: "link" } additional_bindings { - delete: "/v2/{sink_name=folders/*/sinks/*}" + post: "/v2/{parent=organizations/*/locations/*/buckets/*}/links" + body: "link" } additional_bindings { - delete: "/v2/{sink_name=billingAccounts/*/sinks/*}" + post: "/v2/{parent=folders/*/locations/*/buckets/*}/links" + body: "link" + } + additional_bindings { + post: "/v2/{parent=billingAccounts/*/locations/*/buckets/*}/links" + body: "link" } }; - option (google.api.method_signature) = "sink_name"; + option (google.api.method_signature) = "parent,link,link_id"; + option (google.longrunning.operation_info) = { + response_type: "Link" + metadata_type: "LinkMetadata" + }; } - // Lists all the exclusions in a parent resource. - rpc ListExclusions(ListExclusionsRequest) returns (ListExclusionsResponse) { + // Deletes a link. This will also delete the corresponding BigQuery linked + // dataset. + rpc DeleteLink(DeleteLinkRequest) returns (google.longrunning.Operation) { option (google.api.http) = { - get: "/v2/{parent=*/*}/exclusions" + delete: "/v2/{name=*/*/locations/*/buckets/*/links/*}" additional_bindings { - get: "/v2/{parent=projects/*}/exclusions" + delete: "/v2/{name=projects/*/locations/*/buckets/*/links/*}" } additional_bindings { - get: "/v2/{parent=organizations/*}/exclusions" + delete: "/v2/{name=organizations/*/locations/*/buckets/*/links/*}" } additional_bindings { - get: "/v2/{parent=folders/*}/exclusions" + delete: "/v2/{name=folders/*/locations/*/buckets/*/links/*}" } additional_bindings { - get: "/v2/{parent=billingAccounts/*}/exclusions" + delete: "/v2/{name=billingAccounts/*/locations/*/buckets/*/links/*}" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "LinkMetadata" + }; + } + + // Lists links. + rpc ListLinks(ListLinksRequest) returns (ListLinksResponse) { + option (google.api.http) = { + get: "/v2/{parent=*/*/locations/*/buckets/*}/links" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*/buckets/*}/links" + } + additional_bindings { + get: "/v2/{parent=organizations/*/locations/*/buckets/*}/links" + } + additional_bindings { + get: "/v2/{parent=folders/*/locations/*/buckets/*}/links" + } + additional_bindings { + get: "/v2/{parent=billingAccounts/*/locations/*/buckets/*}/links" } }; option (google.api.method_signature) = "parent"; } - // Gets the description of an exclusion. - rpc GetExclusion(GetExclusionRequest) returns (LogExclusion) { + // Gets a link. + rpc GetLink(GetLinkRequest) returns (Link) { option (google.api.http) = { - get: "/v2/{name=*/*/exclusions/*}" + get: "/v2/{name=*/*/locations/*/buckets/*/links/*}" additional_bindings { - get: "/v2/{name=projects/*/exclusions/*}" + get: "/v2/{name=projects/*/locations/*/buckets/*/links/*}" } additional_bindings { - get: "/v2/{name=organizations/*/exclusions/*}" + get: "/v2/{name=organizations/*/locations/*/buckets/*/links/*}" } additional_bindings { - get: "/v2/{name=folders/*/exclusions/*}" + get: "/v2/{name=folders/*/locations/*/buckets/*/links/*}" } additional_bindings { - get: "/v2/{name=billingAccounts/*/exclusions/*}" + get: "/v2/{name=billingAccounts/*/locations/*/buckets/*/links/*}" } }; option (google.api.method_signature) = "name"; } - // Creates a new exclusion in a specified parent resource. - // Only log entries belonging to that resource can be excluded. - // You can have up to 10 exclusions in a resource. + // Lists all the exclusions on the _Default sink in a parent resource. + rpc ListExclusions(ListExclusionsRequest) returns (ListExclusionsResponse) { + option (google.api.http) = { + get: "/v2/{parent=*/*}/exclusions" + additional_bindings { get: "/v2/{parent=projects/*}/exclusions" } + additional_bindings { get: "/v2/{parent=organizations/*}/exclusions" } + additional_bindings { get: "/v2/{parent=folders/*}/exclusions" } + additional_bindings { get: "/v2/{parent=billingAccounts/*}/exclusions" } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the description of an exclusion in the _Default sink. + rpc GetExclusion(GetExclusionRequest) returns (LogExclusion) { + option (google.api.http) = { + get: "/v2/{name=*/*/exclusions/*}" + additional_bindings { get: "/v2/{name=projects/*/exclusions/*}" } + additional_bindings { get: "/v2/{name=organizations/*/exclusions/*}" } + additional_bindings { get: "/v2/{name=folders/*/exclusions/*}" } + additional_bindings { get: "/v2/{name=billingAccounts/*/exclusions/*}" } + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new exclusion in the _Default sink in a specified parent + // resource. Only log entries belonging to that resource can be excluded. You + // can have up to 10 exclusions in a resource. rpc CreateExclusion(CreateExclusionRequest) returns (LogExclusion) { option (google.api.http) = { post: "/v2/{parent=*/*}/exclusions" @@ -509,7 +621,8 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent,exclusion"; } - // Changes one or more properties of an existing exclusion. + // Changes one or more properties of an existing exclusion in the _Default + // sink. rpc UpdateExclusion(UpdateExclusionRequest) returns (LogExclusion) { option (google.api.http) = { patch: "/v2/{name=*/*/exclusions/*}" @@ -534,19 +647,13 @@ service ConfigServiceV2 { option (google.api.method_signature) = "name,exclusion,update_mask"; } - // Deletes an exclusion. + // Deletes an exclusion in the _Default sink. rpc DeleteExclusion(DeleteExclusionRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=*/*/exclusions/*}" - additional_bindings { - delete: "/v2/{name=projects/*/exclusions/*}" - } - additional_bindings { - delete: "/v2/{name=organizations/*/exclusions/*}" - } - additional_bindings { - delete: "/v2/{name=folders/*/exclusions/*}" - } + additional_bindings { delete: "/v2/{name=projects/*/exclusions/*}" } + additional_bindings { delete: "/v2/{name=organizations/*/exclusions/*}" } + additional_bindings { delete: "/v2/{name=folders/*/exclusions/*}" } additional_bindings { delete: "/v2/{name=billingAccounts/*/exclusions/*}" } @@ -554,29 +661,31 @@ service ConfigServiceV2 { option (google.api.method_signature) = "name"; } - // Gets the Logs Router CMEK settings for the given resource. + // Gets the Logging CMEK settings for the given resource. // - // Note: CMEK for the Logs Router can currently only be configured for GCP - // organizations. Once configured, it applies to all projects and folders in - // the GCP organization. + // Note: CMEK for the Log Router can be configured for Google Cloud projects, + // folders, organizations and billing accounts. Once configured for an + // organization, it applies to all projects and folders in the Google Cloud + // organization. // - // See [Enabling CMEK for Logs + // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. rpc GetCmekSettings(GetCmekSettingsRequest) returns (CmekSettings) { option (google.api.http) = { get: "/v2/{name=*/*}/cmekSettings" - additional_bindings { - get: "/v2/{name=organizations/*}/cmekSettings" - } + additional_bindings { get: "/v2/{name=projects/*}/cmekSettings" } + additional_bindings { get: "/v2/{name=organizations/*}/cmekSettings" } + additional_bindings { get: "/v2/{name=folders/*}/cmekSettings" } + additional_bindings { get: "/v2/{name=billingAccounts/*}/cmekSettings" } }; } - // Updates the Logs Router CMEK settings for the given resource. + // Updates the Log Router CMEK settings for the given resource. // - // Note: CMEK for the Logs Router can currently only be configured for GCP - // organizations. Once configured, it applies to all projects and folders in - // the GCP organization. + // Note: CMEK for the Log Router can currently only be configured for Google + // Cloud organizations. Once configured, it applies to all projects and + // folders in the Google Cloud organization. // // [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] // will fail if 1) `kms_key_name` is invalid, or 2) the associated service @@ -584,7 +693,7 @@ service ConfigServiceV2 { // `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or // 3) access to the key is disabled. // - // See [Enabling CMEK for Logs + // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. rpc UpdateCmekSettings(UpdateCmekSettingsRequest) returns (CmekSettings) { @@ -597,9 +706,98 @@ service ConfigServiceV2 { } }; } + + // Gets the Log Router settings for the given resource. + // + // Note: Settings for the Log Router can be get for Google Cloud projects, + // folders, organizations and billing accounts. Currently it can only be + // configured for organizations. Once configured for an organization, it + // applies to all projects and folders in the Google Cloud organization. + // + // See [Enabling CMEK for Log + // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + // for more information. + rpc GetSettings(GetSettingsRequest) returns (Settings) { + option (google.api.http) = { + get: "/v2/{name=*/*}/settings" + additional_bindings { get: "/v2/{name=projects/*}/settings" } + additional_bindings { get: "/v2/{name=organizations/*}/settings" } + additional_bindings { get: "/v2/{name=folders/*}/settings" } + additional_bindings { get: "/v2/{name=billingAccounts/*}/settings" } + }; + option (google.api.method_signature) = "name"; + } + + // Updates the Log Router settings for the given resource. + // + // Note: Settings for the Log Router can currently only be configured for + // Google Cloud organizations. Once configured, it applies to all projects and + // folders in the Google Cloud organization. + // + // [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] + // will fail if 1) `kms_key_name` is invalid, or 2) the associated service + // account does not have the required + // `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or + // 3) access to the key is disabled. 4) `location_id` is not supported by + // Logging. 5) `location_id` violate OrgPolicy. + // + // See [Enabling CMEK for Log + // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + // for more information. + rpc UpdateSettings(UpdateSettingsRequest) returns (Settings) { + option (google.api.http) = { + patch: "/v2/{name=*/*}/settings" + body: "settings" + additional_bindings { + patch: "/v2/{name=organizations/*}/settings" + body: "settings" + } + additional_bindings { + patch: "/v2/{name=folders/*}/settings" + body: "settings" + } + }; + option (google.api.method_signature) = "settings,update_mask"; + } + + // Copies a set of log entries from a log bucket to a Cloud Storage bucket. + rpc CopyLogEntries(CopyLogEntriesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/entries:copy" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "CopyLogEntriesResponse" + metadata_type: "CopyLogEntriesMetadata" + }; + } +} + +// Configuration for an indexed field. +message IndexConfig { + // Required. The LogEntry field path to index. + // + // Note that some paths are automatically indexed, and other paths are not + // eligible for indexing. See [indexing documentation]( + // https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields) + // for details. + // + // For example: `jsonPayload.request.status` + string field_path = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The type of data in this index. + IndexType type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The timestamp when the index was last modified. + // + // This is used to return the timestamp, and will be ignored if supplied + // during update. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Describes a repository of logs. +// Describes a repository in which log entries are stored. message LogBucket { option (google.api.resource) = { type: "logging.googleapis.com/LogBucket" @@ -609,56 +807,75 @@ message LogBucket { pattern: "billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}" }; - // The resource name of the bucket. + // Output only. The resource name of the bucket. + // // For example: - // "projects/my-project-id/locations/my-location/buckets/my-bucket-id The - // supported locations are: - // "global" // - // For the location of `global` it is unspecified where logs are actually - // stored. - // Once a bucket has been created, the location can not be changed. - string name = 1; + // `projects/my-project/locations/global/buckets/my-bucket` + // + // For a list of supported locations, see [Supported + // Regions](https://cloud.google.com/logging/docs/region-support) + // + // For the location of `global` it is unspecified where log entries are + // actually stored. + // + // After a bucket has been created, the location cannot be changed. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Describes this bucket. string description = 3; - // Output only. The creation timestamp of the bucket. This is not set for any of the - // default buckets. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The creation timestamp of the bucket. This is not set for any + // of the default buckets. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of the bucket. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Logs will be retained by default for this amount of time, after which they - // will automatically be deleted. The minimum retention period is 1 day. - // If this value is set to zero at bucket creation time, the default time of - // 30 days will be used. + // will automatically be deleted. The minimum retention period is 1 day. If + // this value is set to zero at bucket creation time, the default time of 30 + // days will be used. int32 retention_days = 11; - // Whether the bucket has been locked. - // The retention period on a locked bucket may not be changed. - // Locked buckets may only be deleted if they are empty. + // Whether the bucket is locked. + // + // The retention period on a locked bucket cannot be changed. Locked buckets + // may only be deleted if they are empty. bool locked = 9; // Output only. The bucket lifecycle state. - LifecycleState lifecycle_state = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; -} + LifecycleState lifecycle_state = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; -// LogBucket lifecycle states. -enum LifecycleState { - // Unspecified state. This is only used/useful for distinguishing - // unset values. - LIFECYCLE_STATE_UNSPECIFIED = 0; + // Whether log analytics is enabled for this bucket. + // + // Once enabled, log analytics features cannot be disabled. + bool analytics_enabled = 14; - // The normal and active state. - ACTIVE = 1; + // Log entry field paths that are denied access in this bucket. + // + // The following fields and their children are eligible: `textPayload`, + // `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`. + // + // Restricting a repeated field will restrict all values. Adding a parent will + // block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`) + repeated string restricted_fields = 15; - // The bucket has been marked for deletion by the user. - DELETE_REQUESTED = 2; + // A list of indexed fields and related configuration data. + repeated IndexConfig index_configs = 17; + + // The CMEK settings of the log bucket. If present, new log entries written to + // this log bucket are encrypted using the CMEK key provided in this + // configuration. If a log bucket has CMEK settings, the CMEK settings cannot + // be disabled later by updating the log bucket. Changing the KMS key is + // allowed. + CmekSettings cmek_settings = 19; } -// Describes a view over logs in a bucket. +// Describes a view over log entries in a bucket. message LogView { option (google.api.resource) = { type: "logging.googleapis.com/LogView" @@ -669,35 +886,45 @@ message LogView { }; // The resource name of the view. - // For example - // "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view + // + // For example: + // + // `projects/my-project/locations/global/buckets/my-bucket/views/my-view` string name = 1; // Describes this view. string description = 3; // Output only. The creation timestamp of the view. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of the view. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Filter that restricts which log entries in a bucket are visible in this - // view. Filters are restricted to be a logical AND of ==/!= of any of the + // view. + // + // Filters are restricted to be a logical AND of ==/!= of any of the // following: - // originating project/folder/organization/billing account. - // resource type - // log id - // Example: SOURCE("projects/myproject") AND resource.type = "gce_instance" - // AND LOG_ID("stdout") + // + // - originating project/folder/organization/billing account. + // - resource type + // - log id + // + // For example: + // + // SOURCE("projects/myproject") AND resource.type = "gce_instance" + // AND LOG_ID("stdout") string filter = 7; } // Describes a sink used to export log entries to one of the following -// destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a -// Cloud Pub/Sub topic. A logs filter controls which log entries are exported. -// The sink must be created within a project, organization, billing account, or -// folder. +// destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a +// Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which log +// entries are exported. The sink must be created within a project, +// organization, billing account, or folder. message LogSink { option (google.api.resource) = { type: "logging.googleapis.com/LogSink" @@ -719,9 +946,10 @@ message LogSink { V1 = 2; } - // Required. The client-assigned sink identifier, unique within the project. Example: - // `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100 - // characters and can include only the following characters: upper and + // Required. The client-assigned sink identifier, unique within the project. + // + // For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited + // to 100 characters and can include only the following characters: upper and // lower-case alphanumeric characters, underscores, hyphens, and periods. // First character has to be alphanumeric. string name = 1 [(google.api.field_behavior) = REQUIRED]; @@ -732,95 +960,168 @@ message LogSink { // "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" // "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" // - // The sink's `writer_identity`, set when the sink is created, must - // have permission to write to the destination or else the log - // entries are not exported. For more information, see + // The sink's `writer_identity`, set when the sink is created, must have + // permission to write to the destination or else the log entries are not + // exported. For more information, see // [Exporting Logs with // Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). string destination = 3 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "*" - } + (google.api.resource_reference) = { type: "*" } ]; // Optional. An [advanced logs // filter](https://cloud.google.com/logging/docs/view/advanced-queries). The // only exported log entries are those that are in the resource owning the - // sink and that match the filter. For example: + // sink and that match the filter. // - // logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + // For example: + // + // `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` string filter = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. A description of this sink. + // // The maximum length of the description is 8000 characters. string description = 18 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set to True, then this sink is disabled and it does not - // export any log entries. + // Optional. If set to true, then this sink is disabled and it does not export + // any log entries. bool disabled = 19 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Log entries that match any of the exclusion filters will not be exported. + // Optional. Log entries that match any of these exclusion filters will not be + // exported. + // // If a log entry is matched by both `filter` and one of `exclusion_filters` // it will not be exported. - repeated LogExclusion exclusions = 16 [(google.api.field_behavior) = OPTIONAL]; + repeated LogExclusion exclusions = 16 + [(google.api.field_behavior) = OPTIONAL]; // Deprecated. This field is unused. VersionFormat output_version_format = 6 [deprecated = true]; - // Output only. An IAM identity—a service account or group—under which Logging - // writes the exported log entries to the sink's destination. This field is - // set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and + // Output only. An IAM identity—a service account or group—under + // which Cloud Logging writes the exported log entries to the sink's + // destination. This field is either set by specifying + // `custom_writer_identity` or set automatically by + // [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and // [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the // value of `unique_writer_identity` in those methods. // // Until you grant this identity write-access to the destination, log entry - // exports from this sink will fail. For more information, - // see [Granting Access for a + // exports from this sink will fail. For more information, see [Granting + // Access for a // Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). // Consult the destination service's documentation to determine the // appropriate IAM roles to assign to the identity. + // + // Sinks that have a destination that is a log bucket in the same project as + // the sink cannot have a writer_identity and no additional permissions are + // required. string writer_identity = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. This field applies only to sinks owned by organizations and // folders. If the field is false, the default, only the logs owned by the // sink's parent resource are available for export. If the field is true, then - // logs from all the projects, folders, and billing accounts contained in the - // sink's parent resource are also available for export. Whether a particular - // log entry from the children is exported depends on the sink's filter - // expression. For example, if this field is true, then the filter + // log entries from all the projects, folders, and billing accounts contained + // in the sink's parent resource are also available for export. Whether a + // particular log entry from the children is exported depends on the sink's + // filter expression. + // + // For example, if this field is true, then the filter // `resource.type=gce_instance` would export all Compute Engine VM instance - // log entries from all projects in the sink's parent. To only export entries - // from certain child projects, filter on the project part of the log name: + // log entries from all projects in the sink's parent. + // + // To only export entries from certain child projects, filter on the project + // part of the log name: // - // logName:("projects/test-project1/" OR "projects/test-project2/") AND - // resource.type=gce_instance + // logName:("projects/test-project1/" OR "projects/test-project2/") AND + // resource.type=gce_instance bool include_children = 9 [(google.api.field_behavior) = OPTIONAL]; // Destination dependent options. oneof options { // Optional. Options that affect sinks exporting data to BigQuery. - BigQueryOptions bigquery_options = 12 [(google.api.field_behavior) = OPTIONAL]; + BigQueryOptions bigquery_options = 12 + [(google.api.field_behavior) = OPTIONAL]; } // Output only. The creation timestamp of the sink. // // This field may not be present for older sinks. - google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of the sink. // // This field may not be present for older sinks. - google.protobuf.Timestamp update_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Describes a BigQuery dataset that was created by a link. +message BigQueryDataset { + // Output only. The full resource name of the BigQuery dataset. The DATASET_ID + // will match the ID of the link, so the link must match the naming + // restrictions of BigQuery datasets (alphanumeric characters and underscores + // only). + // + // The dataset will have a resource path of + // "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]" + string dataset_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Describes a link connected to an analytics enabled bucket. +message Link { + option (google.api.resource) = { + type: "logging.googleapis.com/Link" + pattern: "projects/{project}/locations/{location}/buckets/{bucket}/links/{link}" + pattern: "organizations/{organization}/locations/{location}/buckets/{bucket}/links/{link}" + pattern: "folders/{folder}/locations/{location}/buckets/{bucket}/links/{link}" + pattern: "billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/links/{link}" + }; + + // The resource name of the link. The name can have up to 100 characters. + // A valid link id (at the end of the link name) must only have alphanumeric + // characters and underscores within it. + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // + // For example: + // + // `projects/my-project/locations/global/buckets/my-bucket/links/my_link + string name = 1; + + // Describes this link. + // + // The maximum length of the description is 8000 characters. + string description = 2; + + // Output only. The creation timestamp of the link. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource lifecycle state. + LifecycleState lifecycle_state = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The information of a BigQuery Dataset. When a link is created, a BigQuery + // dataset is created along with it, in the same project as the LogBucket it's + // linked to. This dataset will also have BigQuery Views corresponding to the + // LogViews in the bucket. + BigQueryDataset bigquery_dataset = 5; } // Options that change functionality of a sink exporting data to BigQuery. message BigQueryOptions { // Optional. Whether to use [BigQuery's partition // tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By - // default, Logging creates dated tables based on the log entries' timestamps, - // e.g. syslog_20170523. With partitioned tables the date suffix is no longer - // present and [special query + // default, Cloud Logging creates dated tables based on the log entries' + // timestamps, e.g. syslog_20170523. With partitioned tables the date suffix + // is no longer present and [special query // syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables) // has to be used instead. In both cases, tables are sharded based on UTC // timezone. @@ -828,11 +1129,13 @@ message BigQueryOptions { // Output only. True if new timestamp column based partitioning is in use, // false if legacy ingestion-time partitioning is in use. + // // All new sinks will have this field set true and will use timestamp column // based partitioning. If use_partitioned_tables is false, this value has no // meaning and will be false. Legacy sinks using partitioned tables will have // this field set to false. - bool uses_timestamp_column_partitioning = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + bool uses_timestamp_column_partitioning = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The parameters to `ListBuckets`. @@ -879,11 +1182,13 @@ message ListBucketsResponse { // The parameters to `CreateBucket`. message CreateBucketRequest { - // Required. The resource in which to create the bucket: + // Required. The resource in which to create the log bucket: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]" // - // Example: `"projects/my-logging-project/locations/global"` + // For example: + // + // `"projects/my-project/locations/global"` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -891,14 +1196,14 @@ message CreateBucketRequest { } ]; - // Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are - // limited to 100 characters and can include only letters, digits, + // Required. A client-assigned identifier such as `"my-bucket"`. Identifiers + // are limited to 100 characters and can include only letters, digits, // underscores, hyphens, and periods. string bucket_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The new bucket. The region specified in the new bucket must be compliant - // with any Location Restriction Org Policy. The name field in the bucket is - // ignored. + // Required. The new bucket. The region specified in the new bucket must be + // compliant with any Location Restriction Org Policy. The name field in the + // bucket is ignored. LogBucket bucket = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -911,10 +1216,9 @@ message UpdateBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also - // requires permission "resourcemanager.projects.updateLiens" to set the - // locked property + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -925,15 +1229,16 @@ message UpdateBucketRequest { // Required. The updated bucket. LogBucket bucket = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. Field mask that specifies the fields in `bucket` that need an update. A - // bucket field will be overwritten if, and only if, it is in the update - // mask. `name` and output only fields cannot be updated. + // Required. Field mask that specifies the fields in `bucket` that need an + // update. A bucket field will be overwritten if, and only if, it is in the + // update mask. `name` and output only fields cannot be updated. // - // For a detailed `FieldMask` definition, see + // For a detailed `FieldMask` definition, see: // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // - // Example: `updateMask=retention_days`. - google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; + // For example: `updateMask=retention_days` + google.protobuf.FieldMask update_mask = 4 + [(google.api.field_behavior) = REQUIRED]; } // The parameters to `GetBucket`. @@ -945,8 +1250,9 @@ message GetBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -964,8 +1270,9 @@ message DeleteBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -983,8 +1290,9 @@ message UndeleteBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1007,6 +1315,7 @@ message ListViewsRequest { string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The maximum number of results to return from this request. + // // Non-positive values are ignored. The presence of `nextPageToken` in the // response indicates that more results might be available. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -1027,13 +1336,16 @@ message ListViewsResponse { message CreateViewRequest { // Required. The bucket in which to create the view // - // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` + // + // For example: // - // Example: - // `"projects/my-logging-project/locations/my-location/buckets/my-bucket"` + // `"projects/my-project/locations/global/buckets/my-bucket"` string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The id to use for this view. + // Required. A client-assigned identifier such as `"my-view"`. Identifiers are + // limited to 100 characters and can include only letters, digits, + // underscores, hyphens, and periods. string view_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The new view. @@ -1046,8 +1358,9 @@ message UpdateViewRequest { // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` string name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The updated view. @@ -1060,8 +1373,9 @@ message UpdateViewRequest { // For a detailed `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // - // Example: `updateMask=filter`. - google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = OPTIONAL]; + // For example: `updateMask=filter` + google.protobuf.FieldMask update_mask = 4 + [(google.api.field_behavior) = OPTIONAL]; } // The parameters to `GetView`. @@ -1070,13 +1384,12 @@ message GetViewRequest { // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "logging.googleapis.com/LogView" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/LogView" } ]; } @@ -1086,13 +1399,12 @@ message DeleteViewRequest { // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "logging.googleapis.com/LogView" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/LogView" } ]; } @@ -1143,12 +1455,12 @@ message GetSinkRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // - // Example: `"projects/my-project-id/sinks/my-sink-id"`. + // For example: + // + // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "logging.googleapis.com/LogSink" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/LogSink" } ]; } @@ -1161,7 +1473,10 @@ message CreateSinkRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]" // "folders/[FOLDER_ID]" // - // Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + // For examples: + // + // `"projects/my-project"` + // `"organizations/123456789"` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1176,37 +1491,38 @@ message CreateSinkRequest { // Optional. Determines the kind of IAM identity returned as `writer_identity` // in the new sink. If this value is omitted or set to false, and if the // sink's parent is a project, then the value returned as `writer_identity` is - // the same group or service account used by Logging before the addition of - // writer identities to this API. The sink's destination must be in the same - // project as the sink itself. + // the same group or service account used by Cloud Logging before the addition + // of writer identities to this API. The sink's destination must be in the + // same project as the sink itself. // // If this field is set to true, or if the sink is owned by a non-project // resource such as an organization, then the value of `writer_identity` will // be a unique service account used only for exports from the new sink. For - // more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink]. + // more information, see `writer_identity` in + // [LogSink][google.logging.v2.LogSink]. bool unique_writer_identity = 3 [(google.api.field_behavior) = OPTIONAL]; } // The parameters to `UpdateSink`. message UpdateSinkRequest { - // Required. The full resource name of the sink to update, including the parent - // resource and the sink identifier: + // Required. The full resource name of the sink to update, including the + // parent resource and the sink identifier: // // "projects/[PROJECT_ID]/sinks/[SINK_ID]" // "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // - // Example: `"projects/my-project-id/sinks/my-sink-id"`. + // For example: + // + // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "logging.googleapis.com/LogSink" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/LogSink" } ]; - // Required. The updated sink, whose name is the same identifier that appears as part - // of `sink_name`. + // Required. The updated sink, whose name is the same identifier that appears + // as part of `sink_name`. LogSink sink = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] @@ -1226,44 +1542,133 @@ message UpdateSinkRequest { // an update. A sink field will be overwritten if, and only if, it is // in the update mask. `name` and output only fields cannot be updated. // - // An empty updateMask is temporarily treated as using the following mask + // An empty `updateMask` is temporarily treated as using the following mask // for backwards compatibility purposes: - // destination,filter,includeChildren + // + // `destination,filter,includeChildren` + // // At some point in the future, behavior will be removed and specifying an - // empty updateMask will be an error. + // empty `updateMask` will be an error. // // For a detailed `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // - // Example: `updateMask=filter`. - google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = OPTIONAL]; + // For example: `updateMask=filter` + google.protobuf.FieldMask update_mask = 4 + [(google.api.field_behavior) = OPTIONAL]; } // The parameters to `DeleteSink`. message DeleteSinkRequest { - // Required. The full resource name of the sink to delete, including the parent - // resource and the sink identifier: + // Required. The full resource name of the sink to delete, including the + // parent resource and the sink identifier: // // "projects/[PROJECT_ID]/sinks/[SINK_ID]" // "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // - // Example: `"projects/my-project-id/sinks/my-sink-id"`. + // For example: + // + // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "logging.googleapis.com/LogSink" } + ]; +} + +// The parameters to CreateLink. +message CreateLinkRequest { + // Required. The full resource name of the bucket to create a link for. + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Link" + } + ]; + + // Required. The new link. + Link link = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the link. The link_id can have up to 100 + // characters. A valid link_id must only have alphanumeric characters and + // underscores within it. + string link_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The parameters to DeleteLink. +message DeleteLinkRequest { + // Required. The full resource name of the link to delete. + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "logging.googleapis.com/Link" } + ]; +} + +// The parameters to ListLinks. +message ListLinksRequest { + // Required. The parent resource whose links are to be listed: + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/ + string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "logging.googleapis.com/LogSink" + child_type: "logging.googleapis.com/Link" } ]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. `pageToken` must be the value of + // `nextPageToken` from the previous response. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of results to return from this request. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response from ListLinks. +message ListLinksResponse { + // A list of links. + repeated Link links = 1; + + // If there might be more results than those appearing in this response, then + // `nextPageToken` is included. To get the next set of results, call the same + // method again using the value of `nextPageToken` as `pageToken`. + string next_page_token = 2; +} + +// The parameters to GetLink. +message GetLinkRequest { + // Required. The resource name of the link: + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "logging.googleapis.com/Link" } + ]; } -// Specifies a set of log entries that are not to be stored in -// Logging. If your GCP resource receives a large volume of logs, you can -// use exclusions to reduce your chargeable logs. Exclusions are -// processed after log sinks, so you can export log entries before they are -// excluded. Note that organization-level and folder-level exclusions don't -// apply to child resources, and that you can't exclude audit log entries. +// Specifies a set of log entries that are filtered out by a sink. If +// your Google Cloud resource receives a large volume of log entries, you can +// use exclusions to reduce your chargeable logs. Note that exclusions on +// organization-level and folder-level sinks don't apply to child resources. +// Note also that you cannot modify the _Required sink or exclude logs from it. message LogExclusion { option (google.api.resource) = { type: "logging.googleapis.com/LogExclusion" @@ -1273,10 +1678,10 @@ message LogExclusion { pattern: "billingAccounts/{billing_account}/exclusions/{exclusion}" }; - // Required. A client-assigned identifier, such as `"load-balancer-exclusion"`. - // Identifiers are limited to 100 characters and can include only letters, - // digits, underscores, hyphens, and periods. First character has to be - // alphanumeric. + // Required. A client-assigned identifier, such as + // `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and + // can include only letters, digits, underscores, hyphens, and periods. First + // character has to be alphanumeric. string name = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. A description of this exclusion. @@ -1287,10 +1692,11 @@ message LogExclusion { // matches the log entries to be excluded. By using the [sample // function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), // you can exclude less than 100% of the matching log entries. - // For example, the following query matches 99% of low-severity log - // entries from Google Cloud Storage buckets: // - // `"resource.type=gcs_bucket severity label_extractors = 7 [(google.api.field_behavior) = OPTIONAL]; + map label_extractors = 7 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The `bucket_options` are required when the logs-based metric is // using a DISTRIBUTION value type and it describes the bucket boundaries // used to create a histogram of the extracted values. - google.api.Distribution.BucketOptions bucket_options = 8 [(google.api.field_behavior) = OPTIONAL]; + google.api.Distribution.BucketOptions bucket_options = 8 + [(google.api.field_behavior) = OPTIONAL]; // Output only. The creation timestamp of the metric. // // This field may not be present for older metrics. - google.protobuf.Timestamp create_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of the metric. // // This field may not be present for older metrics. - google.protobuf.Timestamp update_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Deprecated. The API version that created or updated this metric. // The v2 format is used by default and cannot be changed. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging_v2.yaml similarity index 59% rename from pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging.yaml rename to pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging_v2.yaml index 5f90e52c..6e217e9c 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/logging/v2/logging_v2.yaml @@ -7,21 +7,30 @@ apis: - name: google.logging.v2.ConfigServiceV2 - name: google.logging.v2.LoggingServiceV2 - name: google.logging.v2.MetricsServiceV2 +- name: google.longrunning.Operations + +types: +- name: google.logging.v2.BucketMetadata +- name: google.logging.v2.CopyLogEntriesMetadata +- name: google.logging.v2.CopyLogEntriesResponse +- name: google.logging.v2.LinkMetadata +- name: google.logging.v2.LocationMetadata documentation: - summary: |- - Writes log entries and manages your Cloud Logging configuration. The table - entries below are presented in alphabetical order, not in order of common - use. For explanations of the concepts found in the table entries, read the - documentation at https://cloud.google.com/logging/docs. - overview: '# Introduction + summary: Writes log entries and manages your Cloud Logging configuration. + overview: |- + # Introduction -The Cloud Logging service.' + The Cloud Logging service. backend: rules: - selector: 'google.logging.v2.ConfigServiceV2.*' deadline: 60.0 + - selector: google.logging.v2.ConfigServiceV2.CreateBucket + deadline: 600.0 + - selector: google.logging.v2.ConfigServiceV2.UpdateBucket + deadline: 600.0 - selector: 'google.logging.v2.LoggingServiceV2.*' deadline: 60.0 - selector: google.logging.v2.LoggingServiceV2.ListLogEntries @@ -30,6 +39,37 @@ backend: deadline: 3600.0 - selector: 'google.logging.v2.MetricsServiceV2.*' deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + +http: + rules: + - selector: google.longrunning.Operations.CancelOperation + post: '/v2/{name=*/*/locations/*/operations/*}:cancel' + body: '*' + additional_bindings: + - post: '/v2/{name=projects/*/locations/*/operations/*}:cancel' + body: '*' + - post: '/v2/{name=organizations/*/locations/*/operations/*}:cancel' + body: '*' + - post: '/v2/{name=folders/*/locations/*/operations/*}:cancel' + body: '*' + - post: '/v2/{name=billingAccounts/*/locations/*/operations/*}:cancel' + body: '*' + - selector: google.longrunning.Operations.GetOperation + get: '/v2/{name=*/*/locations/*/operations/*}' + additional_bindings: + - get: '/v2/{name=projects/*/locations/*/operations/*}' + - get: '/v2/{name=organizations/*/locations/*/operations/*}' + - get: '/v2/{name=folders/*/locations/*/operations/*}' + - get: '/v2/{name=billingAccounts/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v2/{name=*/*/locations/*}/operations' + additional_bindings: + - get: '/v2/{name=projects/*/locations/*}/operations' + - get: '/v2/{name=organizations/*/locations/*}/operations' + - get: '/v2/{name=folders/*/locations/*}/operations' + - get: '/v2/{name=billingAccounts/*/locations/*}/operations' authentication: rules: @@ -59,6 +99,20 @@ authentication: https://www.googleapis.com/auth/cloud-platform.read-only, https://www.googleapis.com/auth/logging.admin, https://www.googleapis.com/auth/logging.read + - selector: google.logging.v2.ConfigServiceV2.GetLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only, + https://www.googleapis.com/auth/logging.admin, + https://www.googleapis.com/auth/logging.read + - selector: google.logging.v2.ConfigServiceV2.GetSettings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only, + https://www.googleapis.com/auth/logging.admin, + https://www.googleapis.com/auth/logging.read - selector: google.logging.v2.ConfigServiceV2.GetSink oauth: canonical_scopes: |- @@ -87,6 +141,13 @@ authentication: https://www.googleapis.com/auth/cloud-platform.read-only, https://www.googleapis.com/auth/logging.admin, https://www.googleapis.com/auth/logging.read + - selector: google.logging.v2.ConfigServiceV2.ListLinks + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only, + https://www.googleapis.com/auth/logging.admin, + https://www.googleapis.com/auth/logging.read - selector: google.logging.v2.ConfigServiceV2.ListSinks oauth: canonical_scopes: |- @@ -139,3 +200,25 @@ authentication: https://www.googleapis.com/auth/cloud-platform.read-only, https://www.googleapis.com/auth/logging.admin, https://www.googleapis.com/auth/logging.read + - selector: google.longrunning.Operations.CancelOperation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/logging.admin + - selector: google.longrunning.Operations.GetOperation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only, + https://www.googleapis.com/auth/logging.admin, + https://www.googleapis.com/auth/logging.read + - selector: google.longrunning.Operations.ListOperations + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only, + https://www.googleapis.com/auth/logging.admin, + https://www.googleapis.com/auth/logging.read + +publishing: + documentation_uri: https://cloud.google.com/logging/docs/ diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/BUILD.bazel index 2ae3ccff..a2c6bf45 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/BUILD.bazel @@ -30,7 +30,12 @@ proto_library_with_info( ############################################################################## # Java ############################################################################## -load("@com_google_googleapis_imports//:imports.bzl", "java_grpc_library", "java_proto_library") +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_grpc_library", + "java_proto_library", +) java_proto_library( name = "longrunning_java_proto", @@ -43,6 +48,19 @@ java_grpc_library( deps = [":longrunning_java_proto"], ) +# Please DO-NOT-REMOVE this section. +# This is required to generate java files for these protos. +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-longrunning-java", + transport = "grpc+rest", + deps = [ + ":longrunning_java_grpc", + ":longrunning_java_proto", + ":operations_proto", + ], +) + ############################################################################## # Go ############################################################################## @@ -51,13 +69,12 @@ load( "go_gapic_assembly_pkg", "go_gapic_library", "go_proto_library", - "go_test", ) go_proto_library( name = "longrunning_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/longrunning", + importpath = "cloud.google.com/go/longrunning/autogen/longrunningpb", protos = [":operations_proto"], visibility = ["//visibility:public"], deps = [ @@ -71,22 +88,21 @@ go_gapic_library( srcs = [":longrunning_proto_with_info"], grpc_service_config = "longrunning_grpc_service_config.json", importpath = "cloud.google.com/go/longrunning/autogen;longrunning", - service_yaml = "//google/longrunning:longrunning.yaml", + metadata = True, + release_level = "ga", + rest_numeric_enums = False, + service_yaml = "longrunning.yaml", + transport = "grpc+rest", deps = [":longrunning_go_proto"], ) -go_test( - name = "longrunning_go_gapic_test", - srcs = [":longrunning_go_gapic_srcjar_test"], - embed = [":longrunning_go_gapic"], - importpath = "cloud.google.com/go/longrunning/autogen", -) - # Open Source Packages go_gapic_assembly_pkg( name = "gapi-cloud-longrunning-go", deps = [ ":longrunning_go_gapic", + ":longrunning_go_gapic_srcjar-metadata.srcjar", + ":longrunning_go_gapic_srcjar-snippets.srcjar", ":longrunning_go_gapic_srcjar-test.srcjar", ":longrunning_go_proto", ], @@ -112,3 +128,96 @@ cc_grpc_library( grpc_only = True, deps = [":longrunning_cc_proto"], ) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "longrunning_csharp_proto", + deps = [":operations_proto"], +) + +csharp_grpc_library( + name = "longrunning_csharp_grpc", + srcs = [":operations_proto"], + deps = [":longrunning_csharp_proto"], +) + +csharp_gapic_library( + name = "longrunning_csharp_gapic", + srcs = [":longrunning_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "longrunning_grpc_service_config.json", + rest_numeric_enums = False, + service_yaml = "longrunning.yaml", + deps = [ + ":longrunning_csharp_grpc", + ":longrunning_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-longrunning-csharp", + deps = [ + ":longrunning_csharp_gapic", + ":longrunning_csharp_grpc", + ":longrunning_csharp_proto", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_proto_library", +) + +php_proto_library( + name = "longrunning_php_proto", + deps = [":operations_proto"], +) + +php_gapic_library( + name = "longrunning_php_gapic", + srcs = [":longrunning_proto_with_info"], + grpc_service_config = "longrunning_grpc_service_config.json", + migration_mode = "MIGRATING", + rest_numeric_enums = False, + service_yaml = "longrunning.yaml", + transport = "grpc+rest", + deps = [":longrunning_php_proto"], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-longrunning-php", + deps = [ + ":longrunning_php_gapic", + ":longrunning_php_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "operations_py_proto", + deps = ["operations_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/README.md b/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/README.md index 90564227..7eba891e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/README.md +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/README.md @@ -1,5 +1,31 @@ -# Google Long Running Operations API +## Long-running Operations API This package contains the definition of an abstract interface that -manages long running operations with API services. See -[google.longrunning.Operations][] for details. \ No newline at end of file +manages long running operations with API services. + +### Operation + +The primary message to understand within LRO is the `Operation` message. +Operations have a unique name (in the context of a particular endpoint). +Additionally, a service (called `Operations` -- plural) defines the interface +for querying the state of any given operation. + +APIs that implement a concept of long-running operations are encouraged +to follow this pattern: When a caller invokes an API backend to start a job... + + * The API backend starts asychronous work to fulfill the caller's + request, and generates a unique name (the `Operation` name) to refer + to the ongoing asychronous work. + * The API backend immediately returns the `Operation` back to the caller. + * The caller can invoke the API methods defined in the `Operations` service + to get the current status of the asychronous work, and also to + discover the final result (success or error). + +For Google APIs, the implementation of this pattern and the use of this +proto are part of our [design rules][operations-rules]. Additionally, our +[API client tooling][gapic-generator] seeks to be intelligent about these, to +improve the client API consumption experience. Therefore, APIs outside of +Google can also benefit by following this same pattern. + + [operations-rules]: https://cloud.google.com/apis/design/design_patterns#long_running_operations + [gapic-generator]: https://github.com/googleapis/gapic-generator diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/longrunning_gapic.yaml b/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/longrunning_gapic.yaml index ce7fbf4a..d6502cfb 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/longrunning_gapic.yaml +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/longrunning_gapic.yaml @@ -13,7 +13,7 @@ language_settings: ruby: package_name: Google::Longrunning php: - package_name: Google\ApiCore\LongRunning + package_name: Google\LongRunning nodejs: package_name: longrunning interfaces: diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/operations.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/operations.proto index c1fdc6f5..be8880b3 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/operations.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/longrunning/operations.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ import "google/protobuf/descriptor.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.LongRunning"; -option go_package = "google.golang.org/genproto/googleapis/longrunning;longrunning"; +option go_package = "cloud.google.com/go/longrunning/autogen/longrunningpb;longrunningpb"; option java_multiple_files = true; option java_outer_classname = "OperationsProto"; option java_package = "com.google.longrunning"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/any.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/any.proto index 6ed8a23c..eff44e50 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/any.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/any.proto @@ -32,12 +32,12 @@ syntax = "proto3"; package google.protobuf; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option go_package = "google.golang.org/protobuf/types/known/anypb"; option java_package = "com.google.protobuf"; option java_outer_classname = "AnyProto"; option java_multiple_files = true; option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; // `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. @@ -63,6 +63,10 @@ option objc_class_prefix = "GPB"; // if (any.is(Foo.class)) { // foo = any.unpack(Foo.class); // } +// // or ... +// if (any.isSameTypeAs(Foo.getDefaultInstance())) { +// foo = any.unpack(Foo.getDefaultInstance()); +// } // // Example 3: Pack and unpack a message in Python. // @@ -93,7 +97,6 @@ option objc_class_prefix = "GPB"; // in the type URL, for example "foo.bar.com/x/y.z" will yield type // name "y.z". // -// // JSON // ==== // The JSON representation of an `Any` value uses the regular @@ -146,7 +149,8 @@ message Any { // // Note: this functionality is not currently available in the official // protobuf release, and it is not used for type URLs beginning with - // type.googleapis.com. + // type.googleapis.com. As of May 2023, there are no widely used type server + // implementations and no plans to implement one. // // Schemes other than `http`, `https` (or the empty scheme) might be // used with implementation specific semantics. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/any_test.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/any_test.proto index 256035b4..db8c97c1 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/any_test.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/any_test.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd syntax = "proto3"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/api.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/api.proto index 3d598fc8..42223516 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/api.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/api.proto @@ -35,11 +35,11 @@ package google.protobuf; import "google/protobuf/source_context.proto"; import "google/protobuf/type.proto"; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option java_package = "com.google.protobuf"; option java_outer_classname = "ApiProto"; option java_multiple_files = true; option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option go_package = "google.golang.org/protobuf/types/known/apipb"; // Api is a light-weight descriptor for an API Interface. @@ -82,7 +82,6 @@ message Api { // be omitted. Zero major versions must only be used for // experimental, non-GA interfaces. // - // string version = 4; // Source context for the protocol buffer service represented by this @@ -167,7 +166,7 @@ message Method { // The mixin construct implies that all methods in `AccessControl` are // also declared with same name and request/response types in // `Storage`. A documentation generator or annotation processor will -// see the effective `Storage.GetAcl` method after inheriting +// see the effective `Storage.GetAcl` method after inherting // documentation and annotations as follows: // // service Storage { diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/cpp_features.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/cpp_features.proto new file mode 100644 index 00000000..a0d19299 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/cpp_features.proto @@ -0,0 +1,67 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2023 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +syntax = "proto2"; + +package pb; + +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.FeatureSet { + optional CppFeatures cpp = 1000; +} + +message CppFeatures { + // Whether or not to treat an enum field as closed. This option is only + // applicable to enum fields, and will be removed in the future. It is + // consistent with the legacy behavior of using proto3 enum types for proto2 + // fields. + optional bool legacy_closed_enum = 1 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + feature_support = { + edition_introduced: EDITION_2023, + edition_deprecated: EDITION_2023, + deprecation_warning: "The legacy closed enum behavior in C++ is " + "deprecated and is scheduled to be removed in " + "edition 2025. See http://protobuf.dev/programming-guides/enum/#cpp for " + "more information", + }, + edition_defaults = { edition: EDITION_LEGACY, value: "true" }, + edition_defaults = { edition: EDITION_PROTO3, value: "false" } + ]; + + enum StringType { + STRING_TYPE_UNKNOWN = 0; + VIEW = 1; + CORD = 2; + STRING = 3; + } + + optional StringType string_type = 2 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + feature_support = { + edition_introduced: EDITION_2023, + }, + edition_defaults = { edition: EDITION_LEGACY, value: "STRING" }, + edition_defaults = { edition: EDITION_2024, value: "VIEW" } + ]; + + optional bool enum_name_uses_string_view = 3 [ + retention = RETENTION_SOURCE, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_FILE, + feature_support = { + edition_introduced: EDITION_2024, + }, + edition_defaults = { edition: EDITION_LEGACY, value: "false" }, + edition_defaults = { edition: EDITION_2024, value: "true" } + ]; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/descriptor.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/descriptor.proto index 156e410a..dfabac41 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/descriptor.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/descriptor.proto @@ -36,7 +36,6 @@ // A valid .proto file can be translated directly to a FileDescriptorProto // without any other information (e.g. without reading its imports). - syntax = "proto2"; package google.protobuf; @@ -58,6 +57,42 @@ message FileDescriptorSet { repeated FileDescriptorProto file = 1; } +// The full set of known editions. +enum Edition { + // A placeholder for an unknown edition value. + EDITION_UNKNOWN = 0; + + // A placeholder edition for specifying default behaviors *before* a feature + // was first introduced. This is effectively an "infinite past". + EDITION_LEGACY = 900; + + // Legacy syntax "editions". These pre-date editions, but behave much like + // distinct editions. These can't be used to specify the edition of proto + // files, but feature definitions must supply proto2/proto3 defaults for + // backwards compatibility. + EDITION_PROTO2 = 998; + EDITION_PROTO3 = 999; + + // Editions that have been released. The specific values are arbitrary and + // should not be depended on, but they will always be time-ordered for easy + // comparison. + EDITION_2023 = 1000; + EDITION_2024 = 1001; + + // Placeholder editions for testing feature resolution. These should not be + // used or relyed on outside of tests. + EDITION_1_TEST_ONLY = 1; + EDITION_2_TEST_ONLY = 2; + EDITION_99997_TEST_ONLY = 99997; + EDITION_99998_TEST_ONLY = 99998; + EDITION_99999_TEST_ONLY = 99999; + + // Placeholder for specifying unbounded edition support. This should only + // ever be used by plugins that can expect to never require any changes to + // support a new edition. + EDITION_MAX = 0x7FFFFFFF; +} + // Describes a complete .proto file. message FileDescriptorProto { optional string name = 1; // file name, relative to root of source tree @@ -86,8 +121,13 @@ message FileDescriptorProto { optional SourceCodeInfo source_code_info = 9; // The syntax of the proto file. - // The supported values are "proto2" and "proto3". + // The supported values are "proto2", "proto3", and "editions". + // + // If `edition` is present, this value must be "editions". optional string syntax = 12; + + // The edition of the proto file. + optional Edition edition = 14; } // Describes a message type. @@ -129,6 +169,51 @@ message ExtensionRangeOptions { // The parser stores options it doesn't recognize here. See above. repeated UninterpretedOption uninterpreted_option = 999; + message Declaration { + // The extension number declared within the extension range. + optional int32 number = 1; + + // The fully-qualified name of the extension field. There must be a leading + // dot in front of the full name. + optional string full_name = 2; + + // The fully-qualified type name of the extension field. Unlike + // Metadata.type, Declaration.type must have a leading dot for messages + // and enums. + optional string type = 3; + + // If true, indicates that the number is reserved in the extension range, + // and any extension field with the number will fail to compile. Set this + // when a declared extension field is deleted. + optional bool reserved = 5; + + // If true, indicates that the extension must be defined as repeated. + // Otherwise the extension must be defined as optional. + optional bool repeated = 6; + + reserved 4; // removed is_repeated + } + + // For external users: DO NOT USE. We are in the process of open sourcing + // extension declaration and executing internal cleanups before it can be + // used externally. + repeated Declaration declaration = 2 [retention = RETENTION_SOURCE]; + + // Any features defined in the specific edition. + optional FeatureSet features = 50; + + // The verification state of the extension range. + enum VerificationState { + // All the extensions of the range must be declared. + DECLARATION = 0; + UNVERIFIED = 1; + } + + // The verification state of the range. + // TODO: flip the default to DECLARATION once all empty ranges + // are marked as UNVERIFIED. + optional VerificationState verification = 3 + [default = UNVERIFIED, retention = RETENTION_SOURCE]; // Clients can define custom options in extensions of this message. See above. extensions 1000 to max; @@ -153,9 +238,10 @@ message FieldDescriptorProto { TYPE_BOOL = 8; TYPE_STRING = 9; // Tag-delimited aggregate. - // Group type is deprecated and not supported in proto3. However, Proto3 + // Group type is deprecated and not supported after google.protobuf. However, Proto3 // implementations should still be able to parse the group wire format and - // treat group fields as unknown fields. + // treat group fields as unknown fields. In Editions, the group wire format + // can be enabled via the `message_encoding` feature. TYPE_GROUP = 10; TYPE_MESSAGE = 11; // Length-delimited aggregate. @@ -172,8 +258,11 @@ message FieldDescriptorProto { enum Label { // 0 is reserved for errors LABEL_OPTIONAL = 1; - LABEL_REQUIRED = 2; LABEL_REPEATED = 3; + // The required label is only allowed in google.protobuf. In proto3 and Editions + // it's explicitly prohibited. In Editions, the `field_presence` feature + // can be used to get this behavior. + LABEL_REQUIRED = 2; } optional string name = 1; @@ -199,7 +288,6 @@ message FieldDescriptorProto { // For booleans, "true" or "false". // For strings, contains the default text contents (not escaped in any way). // For bytes, contains the C escaped value. All bytes >= 128 are escaped. - // TODO(kenton): Base-64 encode? optional string default_value = 7; // If set, gives the index of a oneof in the containing type's oneof_decl @@ -217,12 +305,12 @@ message FieldDescriptorProto { // If true, this is a proto3 "optional". When a proto3 field is optional, it // tracks presence regardless of field type. // - // When proto3_optional is true, this field must be belong to a oneof to - // signal to old proto3 clients that presence is tracked for this field. This - // oneof is known as a "synthetic" oneof, and this field must be its sole - // member (each proto3 optional field gets its own synthetic oneof). Synthetic - // oneofs exist in the descriptor only, and do not generate any API. Synthetic - // oneofs must be ordered after all "real" oneofs. + // When proto3_optional is true, this field must belong to a oneof to signal + // to old proto3 clients that presence is tracked for this field. This oneof + // is known as a "synthetic" oneof, and this field must be its sole member + // (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs + // exist in the descriptor only, and do not generate any API. Synthetic oneofs + // must be ordered after all "real" oneofs. // // For message fields, proto3_optional doesn't create any semantic change, // since non-repeated message fields always track presence. However it still @@ -306,7 +394,6 @@ message MethodDescriptorProto { optional bool server_streaming = 6 [default = false]; } - // =================================================================== // Options @@ -347,7 +434,6 @@ message FileOptions { // domain names. optional string java_package = 1; - // Controls the name of the wrapper Java class generated for the .proto file. // That class will always contain the .proto file's getDescriptor() method as // well as any top-level extensions defined in the .proto file. @@ -366,15 +452,18 @@ message FileOptions { // This option does nothing. optional bool java_generate_equals_and_hash = 20 [deprecated=true]; - // If set true, then the Java2 code generator will generate code that - // throws an exception whenever an attempt is made to assign a non-UTF-8 - // byte sequence to a string field. - // Message reflection will do the same. - // However, an extension field still accepts non-UTF-8 byte sequences. - // This option has no effect on when used with the lite runtime. + // A proto2 file can set this to true to opt in to UTF-8 checking for Java, + // which will throw an exception if invalid UTF-8 is parsed from the wire or + // assigned to a string field. + // + // TODO: clarify exactly what kinds of field types this option + // applies to, and update these docs accordingly. + // + // Proto3 files already perform these checks. Setting the option explicitly to + // false has no effect: it cannot be used to opt proto3 files out of UTF-8 + // checks. optional bool java_string_check_utf8 = 27 [default = false]; - // Generated classes can be optimized for speed or code size. enum OptimizeMode { SPEED = 1; // Generate complete code for parsing, serialization, @@ -391,9 +480,6 @@ message FileOptions { // - Otherwise, the basename of the .proto file, without extension. optional string go_package = 11; - - - // Should generic services be generated in each language? "Generic" services // are not specific to any particular RPC system. They are generated by the // main code generators in each language (without additional plugins). @@ -407,7 +493,8 @@ message FileOptions { optional bool cc_generic_services = 16 [default = false]; optional bool java_generic_services = 17 [default = false]; optional bool py_generic_services = 18 [default = false]; - optional bool php_generic_services = 42 [default = false]; + reserved 42; // removed php_generic_services + reserved "php_generic_services"; // Is this file deprecated? // Depending on the target platform, this can emit Deprecated annotations @@ -419,7 +506,6 @@ message FileOptions { // only to generated classes for C++. optional bool cc_enable_arenas = 31 [default = true]; - // Sets the objective c class prefix which is prepended to all objective c // generated classes from this .proto. There is no default. optional string objc_class_prefix = 36; @@ -452,6 +538,8 @@ message FileOptions { // determining the ruby package. optional string ruby_package = 45; + // Any features defined in the specific edition. + optional FeatureSet features = 50; // The parser stores options it doesn't recognize here. // See the documentation for the "Options" section above. @@ -524,6 +612,20 @@ message MessageOptions { reserved 8; // javalite_serializable reserved 9; // javanano_as_lite + // Enable the legacy handling of JSON field name conflicts. This lowercases + // and strips underscored from the fields before comparison in proto3 only. + // The new behavior takes `json_name` into account and applies to proto2 as + // well. + // + // This should only be used as a temporary measure against broken builds due + // to the change in behavior for JSON field name conflicts. + // + // TODO This is legacy behavior we plan to remove once downstream + // teams have had time to migrate. + optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; + + // Any features defined in the specific edition. + optional FeatureSet features = 12; // The parser stores options it doesn't recognize here. See above. repeated UninterpretedOption uninterpreted_option = 999; @@ -533,15 +635,24 @@ message MessageOptions { } message FieldOptions { + // NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead. // The ctype option instructs the C++ code generator to use a different // representation of the field than it normally would. See the specific - // options below. This option is not yet implemented in the open source - // release -- sorry, we'll try to include it in a future version! - optional CType ctype = 1 [default = STRING]; + // options below. This option is only implemented to support use of + // [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of + // type "bytes" in the open source release. + // TODO: make ctype actually deprecated. + optional CType ctype = 1 [/*deprecated = true,*/ default = STRING]; enum CType { // Default mode. STRING = 0; + // The option [ctype=CORD] may be applied to a non-repeated field of type + // "bytes". It indicates that in C++, the data should be stored in a Cord + // instead of a string. For very large strings, this may reduce memory + // fragmentation. It may also allow better performance when parsing from a + // Cord, or when parsing with aliasing enabled, as the parsed Cord may then + // alias the original buffer. CORD = 1; STRING_PIECE = 2; @@ -550,7 +661,9 @@ message FieldOptions { // a more efficient representation on the wire. Rather than repeatedly // writing the tag and type for each element, the entire array is encoded as // a single length-delimited blob. In proto3, only explicit setting it to - // false will avoid using packed encoding. + // false will avoid using packed encoding. This option is prohibited in + // Editions, but the `repeated_field_encoding` feature can be used to control + // the behavior. optional bool packed = 2; // The jstype option determines the JavaScript type used for values of the @@ -593,19 +706,18 @@ message FieldOptions { // call from multiple threads concurrently, while non-const methods continue // to require exclusive access. // - // - // Note that implementations may choose not to check required fields within - // a lazy sub-message. That is, calling IsInitialized() on the outer message - // may return true even if the inner message has missing required fields. - // This is necessary because otherwise the inner message would have to be - // parsed in order to perform the check, defeating the purpose of lazy - // parsing. An implementation which chooses not to check required fields - // must be consistent about it. That is, for any particular sub-message, the - // implementation must either *always* check its required fields, or *never* - // check its required fields, regardless of whether or not the message has - // been parsed. + // Note that lazy message fields are still eagerly verified to check + // ill-formed wireformat or missing required fields. Calling IsInitialized() + // on the outer message would fail if the inner message has missing required + // fields. Failed verification would result in parsing failure (except when + // uninitialized messages are acceptable). optional bool lazy = 5 [default = false]; + // unverified_lazy does no correctness checks on the byte stream. This should + // only be used where lazy with verification is prohibitive for performance + // reasons. + optional bool unverified_lazy = 15 [default = false]; + // Is this field deprecated? // Depending on the target platform, this can emit Deprecated annotations // for accessors, or it will be completely ignored; in the very least, this @@ -615,6 +727,70 @@ message FieldOptions { // For Google-internal migration only. Do not use. optional bool weak = 10 [default = false]; + // Indicate that the field value should not be printed out when using debug + // formats, e.g. when the field contains sensitive credentials. + optional bool debug_redact = 16 [default = false]; + + // If set to RETENTION_SOURCE, the option will be omitted from the binary. + // Note: as of January 2023, support for this is in progress and does not yet + // have an effect (b/264593489). + enum OptionRetention { + RETENTION_UNKNOWN = 0; + RETENTION_RUNTIME = 1; + RETENTION_SOURCE = 2; + } + + optional OptionRetention retention = 17; + + // This indicates the types of entities that the field may apply to when used + // as an option. If it is unset, then the field may be freely used as an + // option on any kind of entity. Note: as of January 2023, support for this is + // in progress and does not yet have an effect (b/264593489). + enum OptionTargetType { + TARGET_TYPE_UNKNOWN = 0; + TARGET_TYPE_FILE = 1; + TARGET_TYPE_EXTENSION_RANGE = 2; + TARGET_TYPE_MESSAGE = 3; + TARGET_TYPE_FIELD = 4; + TARGET_TYPE_ONEOF = 5; + TARGET_TYPE_ENUM = 6; + TARGET_TYPE_ENUM_ENTRY = 7; + TARGET_TYPE_SERVICE = 8; + TARGET_TYPE_METHOD = 9; + } + + repeated OptionTargetType targets = 19; + + message EditionDefault { + optional Edition edition = 3; + optional string value = 2; // Textproto value. + } + repeated EditionDefault edition_defaults = 20; + + // Any features defined in the specific edition. + optional FeatureSet features = 21; + + // Information about the support window of a feature. + message FeatureSupport { + // The edition that this feature was first available in. In editions + // earlier than this one, the default assigned to EDITION_LEGACY will be + // used, and proto files will not be able to override it. + optional Edition edition_introduced = 1; + + // The edition this feature becomes deprecated in. Using this after this + // edition may trigger warnings. + optional Edition edition_deprecated = 2; + + // The deprecation warning text if this feature is used after the edition it + // was marked deprecated in. + optional string deprecation_warning = 3; + + // The edition this feature is no longer available in. In editions after + // this one, the last default assigned will be used, and proto files will + // not be able to override it. + optional Edition edition_removed = 4; + } + optional FeatureSupport feature_support = 22; // The parser stores options it doesn't recognize here. See above. repeated UninterpretedOption uninterpreted_option = 999; @@ -622,10 +798,14 @@ message FieldOptions { // Clients can define custom options in extensions of this message. See above. extensions 1000 to max; - reserved 4; // removed jtype + reserved 4; // removed jtype + reserved 18; // reserve target, target_obsolete_do_not_use } message OneofOptions { + // Any features defined in the specific edition. + optional FeatureSet features = 1; + // The parser stores options it doesn't recognize here. See above. repeated UninterpretedOption uninterpreted_option = 999; @@ -647,6 +827,17 @@ message EnumOptions { reserved 5; // javanano_as_lite + // Enable the legacy handling of JSON field name conflicts. This lowercases + // and strips underscored from the fields before comparison in proto3 only. + // The new behavior takes `json_name` into account and applies to proto2 as + // well. + // TODO Remove this legacy behavior once downstream teams have + // had time to migrate. + optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; + + // Any features defined in the specific edition. + optional FeatureSet features = 7; + // The parser stores options it doesn't recognize here. See above. repeated UninterpretedOption uninterpreted_option = 999; @@ -661,6 +852,17 @@ message EnumValueOptions { // this is a formalization for deprecating enum values. optional bool deprecated = 1 [default = false]; + // Any features defined in the specific edition. + optional FeatureSet features = 2; + + // Indicate that fields annotated with this enum value should not be printed + // out when using debug formats, e.g. when the field contains sensitive + // credentials. + optional bool debug_redact = 3 [default = false]; + + // Information about the support window of a feature value. + optional FieldOptions.FeatureSupport feature_support = 4; + // The parser stores options it doesn't recognize here. See above. repeated UninterpretedOption uninterpreted_option = 999; @@ -670,6 +872,9 @@ message EnumValueOptions { message ServiceOptions { + // Any features defined in the specific edition. + optional FeatureSet features = 34; + // Note: Field numbers 1 through 32 are reserved for Google's internal RPC // framework. We apologize for hoarding these numbers to ourselves, but // we were already using them long before we decided to release Protocol @@ -712,6 +917,9 @@ message MethodOptions { optional IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; + // Any features defined in the specific edition. + optional FeatureSet features = 35; + // The parser stores options it doesn't recognize here. See above. repeated UninterpretedOption uninterpreted_option = 999; @@ -719,7 +927,6 @@ message MethodOptions { extensions 1000 to max; } - // A message representing a option the parser does not recognize. This only // appears in options protos created by the compiler::Parser class. // DescriptorPool resolves these when building Descriptor objects. Therefore, @@ -730,8 +937,8 @@ message UninterpretedOption { // The name of the uninterpreted option. Each string represents a segment in // a dot-separated name. is_extension is true iff a segment represents an // extension (denoted with parentheses in options specs in .proto files). - // E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - // "foo.(bar.baz).qux". + // E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents + // "foo.(bar.baz).moo". message NamePart { required string name_part = 1; required bool is_extension = 2; @@ -748,6 +955,172 @@ message UninterpretedOption { optional string aggregate_value = 8; } +// =================================================================== +// Features + +// TODO Enums in C++ gencode (and potentially other languages) are +// not well scoped. This means that each of the feature enums below can clash +// with each other. The short names we've chosen maximize call-site +// readability, but leave us very open to this scenario. A future feature will +// be designed and implemented to handle this, hopefully before we ever hit a +// conflict here. +message FeatureSet { + enum FieldPresence { + FIELD_PRESENCE_UNKNOWN = 0; + EXPLICIT = 1; + IMPLICIT = 2; + LEGACY_REQUIRED = 3; + } + optional FieldPresence field_presence = 1 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + feature_support = { + edition_introduced: EDITION_2023, + }, + edition_defaults = { edition: EDITION_LEGACY, value: "EXPLICIT" }, + edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" }, + edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" } + ]; + + enum EnumType { + ENUM_TYPE_UNKNOWN = 0; + OPEN = 1; + CLOSED = 2; + } + optional EnumType enum_type = 2 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_FILE, + feature_support = { + edition_introduced: EDITION_2023, + }, + edition_defaults = { edition: EDITION_LEGACY, value: "CLOSED" }, + edition_defaults = { edition: EDITION_PROTO3, value: "OPEN" } + ]; + + enum RepeatedFieldEncoding { + REPEATED_FIELD_ENCODING_UNKNOWN = 0; + PACKED = 1; + EXPANDED = 2; + } + optional RepeatedFieldEncoding repeated_field_encoding = 3 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + feature_support = { + edition_introduced: EDITION_2023, + }, + edition_defaults = { edition: EDITION_LEGACY, value: "EXPANDED" }, + edition_defaults = { edition: EDITION_PROTO3, value: "PACKED" } + ]; + + enum Utf8Validation { + UTF8_VALIDATION_UNKNOWN = 0; + VERIFY = 2; + NONE = 3; + reserved 1; + } + optional Utf8Validation utf8_validation = 4 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + feature_support = { + edition_introduced: EDITION_2023, + }, + edition_defaults = { edition: EDITION_LEGACY, value: "NONE" }, + edition_defaults = { edition: EDITION_PROTO3, value: "VERIFY" } + ]; + + enum MessageEncoding { + MESSAGE_ENCODING_UNKNOWN = 0; + LENGTH_PREFIXED = 1; + DELIMITED = 2; + } + optional MessageEncoding message_encoding = 5 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_FILE, + feature_support = { + edition_introduced: EDITION_2023, + }, + edition_defaults = { edition: EDITION_LEGACY, value: "LENGTH_PREFIXED" } + ]; + + enum JsonFormat { + JSON_FORMAT_UNKNOWN = 0; + ALLOW = 1; + LEGACY_BEST_EFFORT = 2; + } + optional JsonFormat json_format = 6 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_MESSAGE, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_FILE, + feature_support = { + edition_introduced: EDITION_2023, + }, + edition_defaults = { edition: EDITION_LEGACY, value: "LEGACY_BEST_EFFORT" }, + edition_defaults = { edition: EDITION_PROTO3, value: "ALLOW" } + ]; + + reserved 999; + + extensions 1000 to 9994 [ + declaration = { + number: 1000, + full_name: ".pb.cpp", + type: ".pb.CppFeatures" + }, + declaration = { + number: 1001, + full_name: ".pb.java", + type: ".pb.JavaFeatures" + }, + declaration = { number: 1002, full_name: ".pb.go", type: ".pb.GoFeatures" }, + declaration = { + number: 9990, + full_name: ".pb.proto1", + type: ".pb.Proto1Features" + } + ]; + + extensions 9995 to 9999; // For internal testing + extensions 10000; // for https://github.com/bufbuild/protobuf-es +} + +// A compiled specification for the defaults of a set of features. These +// messages are generated from FeatureSet extensions and can be used to seed +// feature resolution. The resolution with this object becomes a simple search +// for the closest matching edition, followed by proto merges. +message FeatureSetDefaults { + // A map from every known edition with a unique set of defaults to its + // defaults. Not all editions may be contained here. For a given edition, + // the defaults at the closest matching edition ordered at or before it should + // be used. This field must be in strict ascending order by edition. + message FeatureSetEditionDefault { + optional Edition edition = 3; + + // Defaults of features that can be overridden in this edition. + optional FeatureSet overridable_features = 4; + + // Defaults of features that can't be overridden in this edition. + optional FeatureSet fixed_features = 5; + + reserved 1, 2; + reserved "features"; + } + repeated FeatureSetEditionDefault defaults = 1; + + // The minimum supported edition (inclusive) when this was constructed. + // Editions before this will not have defaults. + optional Edition minimum_edition = 4; + + // The maximum known edition (inclusive) when this was constructed. Editions + // after this will not have reliable defaults. + optional Edition maximum_edition = 5; +} + // =================================================================== // Optional source code info @@ -803,8 +1176,8 @@ message SourceCodeInfo { // location. // // Each element is a field number or an index. They form a path from - // the root FileDescriptorProto to the place where the definition. For - // example, this path: + // the root FileDescriptorProto to the place where the definition appears. + // For example, this path: // [ 4, 3, 2, 7, 1 ] // refers to: // file.message_type(3) // 4, 3 @@ -858,13 +1231,13 @@ message SourceCodeInfo { // // Comment attached to baz. // // Another line attached to baz. // - // // Comment attached to qux. + // // Comment attached to moo. // // - // // Another line attached to qux. - // optional double qux = 4; + // // Another line attached to moo. + // optional double moo = 4; // // // Detached comment for corge. This is not leading or trailing comments - // // to qux or corge because there are blank lines separating it from + // // to moo or corge because there are blank lines separating it from // // both. // // // Detached comment for corge paragraph 2. @@ -904,8 +1277,20 @@ message GeneratedCodeInfo { optional int32 begin = 3; // Identifies the ending offset in bytes in the generated code that - // relates to the identified offset. The end offset should be one past + // relates to the identified object. The end offset should be one past // the last relevant byte (so the length of the text = end - begin). optional int32 end = 4; + + // Represents the identified object's effect on the element in the original + // .proto file. + enum Semantic { + // There is no effect or the effect is indescribable. + NONE = 0; + // The element is set or otherwise mutated. + SET = 1; + // An alias to the element is returned. + ALIAS = 2; + } + optional Semantic semantic = 5; } } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/duration.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/duration.proto index 81c3e369..41f40c22 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/duration.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/duration.proto @@ -32,13 +32,13 @@ syntax = "proto3"; package google.protobuf; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option cc_enable_arenas = true; option go_package = "google.golang.org/protobuf/types/known/durationpb"; option java_package = "com.google.protobuf"; option java_outer_classname = "DurationProto"; option java_multiple_files = true; option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; // A Duration represents a signed, fixed-length span of time represented // as a count of seconds and fractions of seconds at nanosecond @@ -99,7 +99,6 @@ option objc_class_prefix = "GPB"; // be expressed in JSON format as "3.000000001s", and 3 seconds and 1 // microsecond should be expressed in JSON format as "3.000001s". // -// message Duration { // Signed seconds of the span of time. Must be from -315,576,000,000 // to +315,576,000,000 inclusive. Note: these bounds are computed from: diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/edition_unittest.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/edition_unittest.proto new file mode 100644 index 00000000..81848b87 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/edition_unittest.proto @@ -0,0 +1,1908 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +// Author: kenton@google.com (Kenton Varda) +// Based on original Protocol Buffers design by +// Sanjay Ghemawat, Jeff Dean, and others. +// +// A proto file we will use for unit testing. See comments in +// edition_message_unittest.cc before adding new features. +// +// LINT: ALLOW_GROUPS, LEGACY_NAMES + +edition = "2023"; + +import "google/protobuf/cpp_features.proto"; + +option features.field_presence = EXPLICIT; +option features.enum_type = CLOSED; +option features.(pb.cpp).string_type = VIEW; + +// Some generic_services option(s) added automatically. +// See: http://go/proto2-generic-services-default +option cc_generic_services = true; // auto-added +option java_generic_services = true; // auto-added +option py_generic_services = true; // auto-added +option cc_enable_arenas = true; + +import "google/protobuf/unittest_import.proto"; + +// We don't put this in a package within proto2 because we need to make sure +// that the generated code doesn't depend on being in the proto2 namespace. +// In test_util.h we do "using namespace unittest = edition_unittest". +package edition_unittest; + +// Protos optimized for SPEED use a strict superset of the generated code +// of equivalent ones optimized for CODE_SIZE, so we should optimize all our +// tests for speed unless explicitly testing code size optimization. +option optimize_for = SPEED; + +// This proto includes every type of field in both singular and repeated +// forms. +message TestAllTypes { + message NestedMessage { + // The field name "b" fails to compile in proto1 because it conflicts with + // a local variable named "b" in one of the generated methods. Doh. + // This file needs to compile in proto1 to test backwards-compatibility. + int32 bb = 1; + } + + enum NestedEnum { + FOO = 1; + BAR = 2; + BAZ = 3; + NEG = -1; // Intentionally negative. + } + + // Singular + int32 optional_int32 = 1; + int64 optional_int64 = 2; + uint32 optional_uint32 = 3; + uint64 optional_uint64 = 4; + sint32 optional_sint32 = 5; + sint64 optional_sint64 = 6; + fixed32 optional_fixed32 = 7; + fixed64 optional_fixed64 = 8; + sfixed32 optional_sfixed32 = 9; + sfixed64 optional_sfixed64 = 10; + float optional_float = 11; + double optional_double = 12; + bool optional_bool = 13; + string optional_string = 14; + bytes optional_bytes = 15; + + message OptionalGroup { + int32 a = 17; + } + OptionalGroup optionalgroup = 16 + [features.message_encoding = DELIMITED]; + + NestedMessage optional_nested_message = 18; + ForeignMessage optional_foreign_message = 19; + protobuf_unittest_import.ImportMessage optional_import_message = 20; + + NestedEnum optional_nested_enum = 21; + ForeignEnum optional_foreign_enum = 22; + protobuf_unittest_import.ImportEnum optional_import_enum = 23; + + string optional_string_piece = 24 [ctype=STRING_PIECE]; + string optional_cord = 25 [ctype=CORD]; + + // Defined in unittest_import_public.proto + protobuf_unittest_import.PublicImportMessage + optional_public_import_message = 26; + + NestedMessage optional_lazy_message = 27 [lazy=true]; + NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy=true]; + + // Repeated + repeated int32 repeated_int32 = 31; + repeated int64 repeated_int64 = 32; + repeated uint32 repeated_uint32 = 33; + repeated uint64 repeated_uint64 = 34; + repeated sint32 repeated_sint32 = 35; + repeated sint64 repeated_sint64 = 36; + repeated fixed32 repeated_fixed32 = 37; + repeated fixed64 repeated_fixed64 = 38; + repeated sfixed32 repeated_sfixed32 = 39; + repeated sfixed64 repeated_sfixed64 = 40; + repeated float repeated_float = 41; + repeated double repeated_double = 42; + repeated bool repeated_bool = 43; + repeated string repeated_string = 44; + repeated bytes repeated_bytes = 45; + + message RepeatedGroup { + int32 a = 47; + } + repeated RepeatedGroup repeatedgroup = 46 + [features.message_encoding = DELIMITED]; + + repeated NestedMessage repeated_nested_message = 48; + repeated ForeignMessage repeated_foreign_message = 49; + repeated protobuf_unittest_import.ImportMessage repeated_import_message = 50; + + repeated NestedEnum repeated_nested_enum = 51; + repeated ForeignEnum repeated_foreign_enum = 52; + repeated protobuf_unittest_import.ImportEnum repeated_import_enum = 53; + + repeated string repeated_string_piece = 54 [ctype=STRING_PIECE]; + repeated string repeated_cord = 55 [ctype=CORD]; + + repeated NestedMessage repeated_lazy_message = 57 ; + + // Singular with defaults + int32 default_int32 = 61 [default = 41 ]; + int64 default_int64 = 62 [default = 42 ]; + uint32 default_uint32 = 63 [default = 43 ]; + uint64 default_uint64 = 64 [default = 44 ]; + sint32 default_sint32 = 65 [default = -45 ]; + sint64 default_sint64 = 66 [default = 46 ]; + fixed32 default_fixed32 = 67 [default = 47 ]; + fixed64 default_fixed64 = 68 [default = 48 ]; + sfixed32 default_sfixed32 = 69 [default = 49 ]; + sfixed64 default_sfixed64 = 70 [default = -50 ]; + float default_float = 71 [default = 51.5 ]; + double default_double = 72 [default = 52e3 ]; + bool default_bool = 73 [default = true ]; + string default_string = 74 [default = "hello"]; + bytes default_bytes = 75 [default = "world"]; + + NestedEnum default_nested_enum = 81 [default = BAR ]; + ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR]; + protobuf_unittest_import.ImportEnum + default_import_enum = 83 [default = IMPORT_BAR]; + + string default_string_piece = 84 [ctype=STRING_PIECE,default="abc"]; + string default_cord = 85 [ctype=CORD,default="123"]; + + // For oneof test + oneof oneof_field { + uint32 oneof_uint32 = 111; + NestedMessage oneof_nested_message = 112; + string oneof_string = 113; + bytes oneof_bytes = 114; + string oneof_cord = 115 [ctype=CORD]; + string oneof_string_piece = 116 [ctype=STRING_PIECE]; + NestedMessage oneof_lazy_nested_message = 117 [lazy=true]; + } +} + +// This proto includes a recursively nested message. +message NestedTestAllTypes { + NestedTestAllTypes child = 1; + TestAllTypes payload = 2; + repeated NestedTestAllTypes repeated_child = 3; + NestedTestAllTypes lazy_child = 4 [lazy=true]; + TestAllTypes eager_child = 5 [lazy=false]; +} + +message TestDeprecatedFields { + int32 deprecated_int32 = 1 [deprecated=true]; + repeated string deprecated_repeated_string = 4 [deprecated=true]; + TestAllTypes.NestedMessage deprecated_message = 3 [deprecated=true]; + oneof oneof_fields { + int32 deprecated_int32_in_oneof = 2 [deprecated=true]; + } + TestDeprecatedFields nested = 5; +} + +message TestDeprecatedMessage { + option deprecated = true; +} + +// Define these after TestAllTypes to make sure the compiler can handle that. +message ForeignMessage { + int32 c = 1; + int32 d = 2; +} + +enum ForeignEnum { + FOREIGN_FOO = 4; + FOREIGN_BAR = 5; + FOREIGN_BAZ = 6; + FOREIGN_BAX = 32; // (1 << 32) to generate a 64b bitmask would be incorrect. +} + +message TestReservedFields { + reserved 2, 15, 9 to 11; + reserved bar, baz; +} + +enum TestReservedEnumFields { + UNKNOWN = 0; + reserved 2, 15, 9 to 11; + reserved bar, baz; +} + +message TestAllExtensions { + extensions 1 to max; +} + + message OptionalGroup_extension { + int32 a = 17; + } + + message RepeatedGroup_extension { + int32 a = 47; + } + +extend TestAllExtensions { + // Singular + int32 optional_int32_extension = 1; + int64 optional_int64_extension = 2; + uint32 optional_uint32_extension = 3; + uint64 optional_uint64_extension = 4; + sint32 optional_sint32_extension = 5; + sint64 optional_sint64_extension = 6; + fixed32 optional_fixed32_extension = 7; + fixed64 optional_fixed64_extension = 8; + sfixed32 optional_sfixed32_extension = 9; + sfixed64 optional_sfixed64_extension = 10; + float optional_float_extension = 11; + double optional_double_extension = 12; + bool optional_bool_extension = 13; + string optional_string_extension = 14; + bytes optional_bytes_extension = 15; + + OptionalGroup_extension optionalgroup_extension = 16 + [features.message_encoding = DELIMITED]; + + TestAllTypes.NestedMessage optional_nested_message_extension = 18; + ForeignMessage optional_foreign_message_extension = 19; + protobuf_unittest_import.ImportMessage + optional_import_message_extension = 20; + + TestAllTypes.NestedEnum optional_nested_enum_extension = 21; + ForeignEnum optional_foreign_enum_extension = 22; + protobuf_unittest_import.ImportEnum + optional_import_enum_extension = 23; + + string optional_string_piece_extension = 24 [ctype=STRING_PIECE]; + // TODO: ctype=CORD is not supported for extension. Add + // ctype=CORD option back after it is supported. + string optional_cord_extension = 25; + + protobuf_unittest_import.PublicImportMessage + optional_public_import_message_extension = 26; + + TestAllTypes.NestedMessage + optional_lazy_message_extension = 27 [lazy=true]; + TestAllTypes.NestedMessage + optional_unverified_lazy_message_extension = 28 [unverified_lazy=true]; + + // Repeated + repeated int32 repeated_int32_extension = 31; + repeated int64 repeated_int64_extension = 32; + repeated uint32 repeated_uint32_extension = 33; + repeated uint64 repeated_uint64_extension = 34; + repeated sint32 repeated_sint32_extension = 35; + repeated sint64 repeated_sint64_extension = 36; + repeated fixed32 repeated_fixed32_extension = 37; + repeated fixed64 repeated_fixed64_extension = 38; + repeated sfixed32 repeated_sfixed32_extension = 39; + repeated sfixed64 repeated_sfixed64_extension = 40; + repeated float repeated_float_extension = 41; + repeated double repeated_double_extension = 42; + repeated bool repeated_bool_extension = 43; + repeated string repeated_string_extension = 44; + repeated bytes repeated_bytes_extension = 45; + + repeated RepeatedGroup_extension repeatedgroup_extension = 46 + [features.message_encoding = DELIMITED]; + + repeated TestAllTypes.NestedMessage repeated_nested_message_extension = 48; + repeated ForeignMessage repeated_foreign_message_extension = 49; + repeated protobuf_unittest_import.ImportMessage + repeated_import_message_extension = 50; + + repeated TestAllTypes.NestedEnum repeated_nested_enum_extension = 51; + repeated ForeignEnum repeated_foreign_enum_extension = 52; + repeated protobuf_unittest_import.ImportEnum + repeated_import_enum_extension = 53; + + repeated string repeated_string_piece_extension = 54 [ctype=STRING_PIECE]; + // TODO: ctype=CORD is not supported for extension. Add + // ctype=CORD option back after it is supported. + repeated string repeated_cord_extension = 55; + + repeated TestAllTypes.NestedMessage + repeated_lazy_message_extension = 57 [lazy=true]; + + // Singular with defaults + int32 default_int32_extension = 61 [default = 41 ]; + int64 default_int64_extension = 62 [default = 42 ]; + uint32 default_uint32_extension = 63 [default = 43 ]; + uint64 default_uint64_extension = 64 [default = 44 ]; + sint32 default_sint32_extension = 65 [default = -45 ]; + sint64 default_sint64_extension = 66 [default = 46 ]; + fixed32 default_fixed32_extension = 67 [default = 47 ]; + fixed64 default_fixed64_extension = 68 [default = 48 ]; + sfixed32 default_sfixed32_extension = 69 [default = 49 ]; + sfixed64 default_sfixed64_extension = 70 [default = -50 ]; + float default_float_extension = 71 [default = 51.5 ]; + double default_double_extension = 72 [default = 52e3 ]; + bool default_bool_extension = 73 [default = true ]; + string default_string_extension = 74 [default = "hello"]; + bytes default_bytes_extension = 75 [default = "world"]; + + TestAllTypes.NestedEnum + default_nested_enum_extension = 81 [default = BAR]; + ForeignEnum + default_foreign_enum_extension = 82 [default = FOREIGN_BAR]; + protobuf_unittest_import.ImportEnum + default_import_enum_extension = 83 [default = IMPORT_BAR]; + + string default_string_piece_extension = 84 + [ctype=STRING_PIECE, default="abc"]; + // TODO: ctype=CORD is not supported for extension. Add + // ctype=CORD option back after it is supported. + string default_cord_extension = 85 [default="123"]; + + // For oneof test + uint32 oneof_uint32_extension = 111; + TestAllTypes.NestedMessage oneof_nested_message_extension = 112; + string oneof_string_extension = 113; + bytes oneof_bytes_extension = 114; +} + +message TestMixedFieldsAndExtensions { + int32 a = 1; + repeated fixed32 b = 3; + extensions 2, 4; + extend TestMixedFieldsAndExtensions { + int32 c = 2; + repeated fixed32 d = 4; + } +} + +message TestGroup { + message OptionalGroup { + int32 a = 17; + int32 zz = 89; // fast table size must be at least 16, for this + // field to be parsed by the fast parser, since + // 89 - 17 = 72 is a multiple of 8. + } + OptionalGroup optionalgroup = 16 [features.message_encoding = DELIMITED]; + ForeignEnum optional_foreign_enum = 22; +} + +message TestGroupExtension { + extensions 1 to max; +} + +message TestNestedExtension { + extend TestAllExtensions { + // Check for bug where string extensions declared in tested scope did not + // compile. + string test = 1002 [default="test"]; + // Used to test if generated extension name is correct when there are + // underscores. + string nested_string_extension = 1003; + } + + message OptionalGroup_extension { + int32 a = 17; + } + extend TestGroupExtension { + OptionalGroup_extension optionalgroup_extension = 16 + [features.message_encoding = DELIMITED]; + ForeignEnum optional_foreign_enum_extension = 22; + } +} + +message TestChildExtension { + string a = 1; + string b = 2; + TestAllExtensions optional_extension = 3; +} + +// Emulates wireformat data of TestChildExtension with dynamic extension +// (DynamicExtension). +message TestChildExtensionData { + message NestedTestAllExtensionsData { + message NestedDynamicExtensions { + int32 a = 1; + int32 b = 2; + } + NestedDynamicExtensions dynamic = 409707008; + } + string a = 1; + string b = 2; + NestedTestAllExtensionsData optional_extension = 3; +} + +message TestNestedChildExtension { + int32 a = 1; + TestChildExtension child = 2; +} + +// Emulates wireformat data of TestNestedChildExtension with dynamic extension +// (DynamicExtension). +message TestNestedChildExtensionData { + int32 a = 1; + TestChildExtensionData child = 2; +} + +// Required and closed enum fields are considered unknown fields if the value is +// not valid. We need to make sure it functions as expected. +message TestRequiredEnum { + ForeignEnum required_enum = 1 [features.field_presence = LEGACY_REQUIRED]; + + // A dummy optional field. + int32 a = 2; +} + +// TestRequiredEnum + using enum values that won't fit to 64 bitmask. +message TestRequiredEnumNoMask { + enum NestedEnum { + UNSPECIFIED = 0; + FOO = 2; + BAR = 100; + BAZ = -1; // Intentionally negative. + } + + NestedEnum required_enum = 1 [features.field_presence = LEGACY_REQUIRED]; + + // A dummy optional field. + int32 a = 2; +} + +message TestRequiredEnumMulti { + enum NestedEnum { + UNSPECIFIED = 0; + FOO = 1; + BAR = 2; + BAZ = 100; + } + + // Intentionally placed in descending field number to force sorting in closed + // enum verification. + NestedEnum required_enum_4 = 4 [features.field_presence = LEGACY_REQUIRED]; + int32 a_3 = 3; + NestedEnum required_enum_2 = 2 [features.field_presence = LEGACY_REQUIRED]; + ForeignEnum required_enum_1 = 1 [features.field_presence = LEGACY_REQUIRED]; +} + +message TestRequiredNoMaskMulti { + enum NestedEnum { + UNSPECIFIED = 0; + FOO = 1; + BAR = 2; + BAZ = 100; + } + + // Intentionally placed in descending field number to force sorting in closed + // enum verification. Also, using large field numbers to use tag only + // matching for fields. + fixed32 required_fixed32_80 = 80 [features.field_presence = LEGACY_REQUIRED]; + fixed32 required_fixed32_70 = 70 [features.field_presence = LEGACY_REQUIRED]; + + NestedEnum required_enum_64 = 64 [features.field_presence = LEGACY_REQUIRED]; + NestedEnum required_enum_4 = 4 [features.field_presence = LEGACY_REQUIRED]; + int32 a_3 = 3; + NestedEnum required_enum_2 = 2 [features.field_presence = LEGACY_REQUIRED]; + ForeignEnum required_enum_1 = 1 [features.field_presence = LEGACY_REQUIRED]; +} + +// We have separate messages for testing fields because it's +// annoying to have to fill in fields in TestProto in order to +// do anything with it. Note that we don't need to test every type of +// filed because the code output is basically identical to +// optional fields for all types. +message TestRequired { + int32 a = 1 [features.field_presence = LEGACY_REQUIRED]; + int32 dummy2 = 2; + int32 b = 3 [features.field_presence = LEGACY_REQUIRED]; + + extend TestAllExtensions { + TestRequired single = 1000; + repeated TestRequired multi = 1001; + } + + // Pad the field count to 32 so that we can test that IsInitialized() + // properly checks multiple elements of has_bits_. + int32 dummy4 = 4; + int32 dummy5 = 5; + int32 dummy6 = 6; + int32 dummy7 = 7; + int32 dummy8 = 8; + int32 dummy9 = 9; + int32 dummy10 = 10; + int32 dummy11 = 11; + int32 dummy12 = 12; + int32 dummy13 = 13; + int32 dummy14 = 14; + int32 dummy15 = 15; + int32 dummy16 = 16; + int32 dummy17 = 17; + int32 dummy18 = 18; + int32 dummy19 = 19; + int32 dummy20 = 20; + int32 dummy21 = 21; + int32 dummy22 = 22; + int32 dummy23 = 23; + int32 dummy24 = 24; + int32 dummy25 = 25; + int32 dummy26 = 26; + int32 dummy27 = 27; + int32 dummy28 = 28; + int32 dummy29 = 29; + int32 dummy30 = 30; + int32 dummy31 = 31; + int32 dummy32 = 32; + + int32 c = 33 [features.field_presence = LEGACY_REQUIRED]; + + // Add an optional child message to make this non-trivial for go/pdlazy. + ForeignMessage optional_foreign = 34; +} + +message TestRequiredForeign { + TestRequired optional_message = 1; + repeated TestRequired repeated_message = 2; + int32 dummy = 3; + + // Missing fields must not affect verification of child messages. + NestedTestAllTypes optional_lazy_message = 4 [lazy = true]; +} + +message TestRequiredMessage { + TestRequired optional_message = 1; + repeated TestRequired repeated_message = 2; + TestRequired required_message = 3 [features.field_presence = LEGACY_REQUIRED]; +} + +message TestNestedRequiredForeign { + TestNestedRequiredForeign child = 1; + TestRequiredForeign payload = 2; + int32 dummy = 3; + // optional message to test closed enum. + TestRequiredEnum required_enum = 5; + TestRequiredEnumNoMask required_enum_no_mask = 6; + TestRequiredEnumMulti required_enum_multi = 7; + TestRequiredNoMaskMulti required_no_mask = 9; +} + +// Test that we can use NestedMessage from outside TestAllTypes. +message TestForeignNested { + TestAllTypes.NestedMessage foreign_nested = 1; +} + +// TestEmptyMessage is used to test unknown field support. +message TestEmptyMessage { +} + +// Like above, but declare all field numbers as potential extensions. No +// actual extensions should ever be defined for this type. +message TestEmptyMessageWithExtensions { + extensions 1 to max; +} + +// Needed for a Python test. +message TestPickleNestedMessage { + message NestedMessage { + int32 bb = 1; + message NestedNestedMessage { + int32 cc = 1; + } + } +} + +message TestMultipleExtensionRanges { + extensions 42; + extensions 4143 to 4243; + extensions 65536 to max; +} + +// Test that really large tag numbers don't break anything. +message TestReallyLargeTagNumber { + // The largest possible tag number is 2^28 - 1, since the wire format uses + // three bits to communicate wire type. + int32 a = 1; + int32 bb = 268435455; +} + +message TestRecursiveMessage { + TestRecursiveMessage a = 1; + int32 i = 2; +} + +// Test that mutual recursion works. +message TestMutualRecursionA { + message SubMessage { + TestMutualRecursionB b = 1; + } + TestMutualRecursionB bb = 1; + message SubGroup { + SubMessage sub_message = 3; // Needed because of bug in javatest + TestAllTypes not_in_this_scc = 4; + } + SubGroup subgroup = 2 [features.message_encoding = DELIMITED]; + message SubGroupR { + TestAllTypes payload = 6; + } + repeated SubGroupR subgroupr = 5 [features.message_encoding = DELIMITED]; +} + +message TestMutualRecursionB { + TestMutualRecursionA a = 1; + int32 optional_int32 = 2; +} + +message TestIsInitialized { + message SubMessage { + message SubGroup { + int32 i = 2 [features.field_presence = LEGACY_REQUIRED]; + } + SubGroup subgroup = 1 [features.message_encoding = DELIMITED]; + } + SubMessage sub_message = 1; +} + +// Test that groups have disjoint field numbers from their siblings and +// parents. This is NOT possible in proto1; only google.protobuf. When attempting +// to compile with proto1, this will emit an error; so we only include it +// in protobuf_unittest_proto. +message TestDupFieldNumber { // NO_PROTO1 + int32 a = 1; // NO_PROTO1 + message Foo { int32 a = 1; } // NO_PROTO1 + message Bar { int32 a = 1; } // NO_PROTO1 + Foo foo = 2 [features.message_encoding = DELIMITED]; + Bar bar = 3 [features.message_encoding = DELIMITED]; +} // NO_PROTO1 + +// Additional messages for testing lazy fields. +message TestEagerMessage { + TestAllTypes sub_message = 1 [lazy=false]; +} +message TestLazyMessage { + TestAllTypes sub_message = 1 [lazy=true]; +} +message TestLazyMessageRepeated { + repeated TestLazyMessage repeated_message = 1; +} +message TestEagerMaybeLazy { + message NestedMessage { + TestPackedTypes packed = 1; + } + TestAllTypes message_foo = 1; + TestAllTypes message_bar = 2; + NestedMessage message_baz = 3; +} +// Needed for a Python test. +message TestNestedMessageHasBits { + message NestedMessage { + repeated int32 nestedmessage_repeated_int32 = 1; + repeated ForeignMessage nestedmessage_repeated_foreignmessage = 2; + } + NestedMessage optional_nested_message = 1; +} + + +// Test an enum that has multiple values with the same number. +enum TestEnumWithDupValue { + option allow_alias = true; + + DUP_UNKNOWN1 = 0; + DUP_FOO1 = 1; + DUP_BAR1 = 2; + DUP_BAZ = 3; + DUP_UNKNOWN2 = 0; + DUP_FOO2 = 1; + DUP_BAR2 = 2; +} + +// Test an enum with large, unordered values. +enum TestSparseEnum { + SPARSE_A = 123; + SPARSE_B = 62374; + SPARSE_C = 12589234; + SPARSE_D = -15; + SPARSE_E = -53452; + SPARSE_F = 0; + SPARSE_G = 2; +} + +// Test message with CamelCase field names. This violates Protocol Buffer +// standard style. +message TestCamelCaseFieldNames { + int32 PrimitiveField = 1; + string StringField = 2; + ForeignEnum EnumField = 3; + ForeignMessage MessageField = 4; + string StringPieceField = 5 [ctype=STRING_PIECE]; + string CordField = 6 [ctype=CORD]; + + repeated int32 RepeatedPrimitiveField = 7; + repeated string RepeatedStringField = 8; + repeated ForeignEnum RepeatedEnumField = 9; + repeated ForeignMessage RepeatedMessageField = 10; + repeated string RepeatedStringPieceField = 11 [ctype=STRING_PIECE]; + repeated string RepeatedCordField = 12 [ctype=CORD]; +} + + +// We list fields out of order, to ensure that we're using field number and not +// field index to determine serialization order. +message TestFieldOrderings { + string my_string = 11; + extensions 2 to 10; + int64 my_int = 1; + extensions 12 to 100; + float my_float = 101; + message NestedMessage { + int64 oo = 2; + // The field name "b" fails to compile in proto1 because it conflicts with + // a local variable named "b" in one of the generated methods. Doh. + // This file needs to compile in proto1 to test backwards-compatibility. + int32 bb = 1; + } + + NestedMessage optional_nested_message = 200; +} + +extend TestFieldOrderings { + string my_extension_string = 50; + int32 my_extension_int = 5; +} + +message TestExtensionOrderings1 { + extend TestFieldOrderings { + TestExtensionOrderings1 test_ext_orderings1 = 13; + } + string my_string = 1; +} + +message TestExtensionOrderings2 { + extend TestFieldOrderings { + TestExtensionOrderings2 test_ext_orderings2 = 12; + } + message TestExtensionOrderings3 { + extend TestFieldOrderings { + TestExtensionOrderings3 test_ext_orderings3 = 14; + } + string my_string = 1; + } + string my_string = 1; +} + +message TestExtremeDefaultValues { + bytes escaped_bytes = 1 [default = "\0\001\a\b\f\n\r\t\v\\\'\"\xfe"]; + uint32 large_uint32 = 2 [default = 0xFFFFFFFF]; + uint64 large_uint64 = 3 [default = 0xFFFFFFFFFFFFFFFF]; + int32 small_int32 = 4 [default = -0x7FFFFFFF]; + int64 small_int64 = 5 [default = -0x7FFFFFFFFFFFFFFF]; + int32 really_small_int32 = 21 [default = -0x80000000]; + int64 really_small_int64 = 22 [default = -0x8000000000000000]; + + // The default value here is UTF-8 for "\u1234". (We could also just type + // the UTF-8 text directly into this text file rather than escape it, but + // lots of people use editors that would be confused by this.) + string utf8_string = 6 [default = "\341\210\264"]; + + // Tests for single-precision floating-point values. + float zero_float = 7 [default = 0]; + float one_float = 8 [default = 1]; + float small_float = 9 [default = 1.5]; + float negative_one_float = 10 [default = -1]; + float negative_float = 11 [default = -1.5]; + // Using exponents + float large_float = 12 [default = 2E8]; + float small_negative_float = 13 [default = -8e-28]; + + // Text for nonfinite floating-point values. + double inf_double = 14 [default = inf]; + double neg_inf_double = 15 [default = -inf]; + double nan_double = 16 [default = nan]; + float inf_float = 17 [default = inf]; + float neg_inf_float = 18 [default = -inf]; + float nan_float = 19 [default = nan]; + + // Tests for C++ trigraphs. + // Trigraphs should be escaped in C++ generated files, but they should not be + // escaped for other languages. + // Note that in .proto file, "\?" is a valid way to escape ? in string + // literals. + string cpp_trigraph = 20 [default = "? \? ?? \?? \??? ??/ ?\?-"]; + + // String defaults containing the character '\000' + string string_with_zero = 23 [default = "hel\000lo"]; + bytes bytes_with_zero = 24 [default = "wor\000ld"]; + string string_piece_with_zero = 25 [ctype=STRING_PIECE, + default="ab\000c"]; + string cord_with_zero = 26 [ctype=CORD, + default="12\0003"]; + string replacement_string = 27 [default="${unknown}"]; +} + +message SparseEnumMessage { + TestSparseEnum sparse_enum = 1; +} + +// Test String and Bytes: string is for valid UTF-8 strings +message OneString { + string data = 1; +} + +message MoreString { + repeated string data = 1; +} + +message OneBytes { + bytes data = 1; +} + +message MoreBytes { + repeated bytes data = 1; +} + +message ManyOptionalString { + string str1 = 1; + string str2 = 2; + string str3 = 3; + string str4 = 4; + string str5 = 5; + string str6 = 6; + string str7 = 7; + string str8 = 8; + string str9 = 9; + string str10 = 10; + string str11 = 11; + string str12 = 12; + string str13 = 13; + string str14 = 14; + string str15 = 15; + string str16 = 16; + string str17 = 17; + string str18 = 18; + string str19 = 19; + string str20 = 20; + string str21 = 21; + string str22 = 22; + string str23 = 23; + string str24 = 24; + string str25 = 25; + string str26 = 26; + string str27 = 27; + string str28 = 28; + string str29 = 29; + string str30 = 30; + string str31 = 31; + string str32 = 32; +} + +// Test int32, uint32, int64, uint64, and bool are all compatible +message Int32Message { + int32 data = 1; +} + +message Uint32Message { + uint32 data = 1; +} + +message Int64Message { + int64 data = 1; +} + +message Uint64Message { + uint64 data = 1; +} + +message BoolMessage { + bool data = 1; +} + +// Test oneofs. +message TestOneof { + message FooGroup { + int32 a = 5; + string b = 6; + } + oneof foo { + int32 foo_int = 1; + string foo_string = 2; + TestAllTypes foo_message = 3; + FooGroup foogroup= 4 [features.message_encoding = DELIMITED]; + } +} + +message TestOneofBackwardsCompatible { + int32 foo_int = 1; + string foo_string = 2; + TestAllTypes foo_message = 3; + message FooGroup { + int32 a = 5; + string b = 6; + } + FooGroup foogroup= 4 [features.message_encoding = DELIMITED]; +} + +message TestOneof2 { + message FooGroup { + int32 a = 9; + string b = 10; + } + oneof foo { + int32 foo_int = 1; + string foo_string = 2; + string foo_cord = 3 [ctype=CORD]; + string foo_string_piece = 4 [ctype=STRING_PIECE]; + bytes foo_bytes = 5; + NestedEnum foo_enum = 6; + NestedMessage foo_message = 7; + FooGroup foogroup = 8 [features.message_encoding = DELIMITED]; + NestedMessage foo_lazy_message = 11 [lazy=true]; + bytes foo_bytes_cord = 30 [ctype=CORD]; + } + + oneof bar { + int32 bar_int = 12 [default = 5]; + string bar_string = 13 [default = "STRING"]; + string bar_cord = 14 [ctype=CORD, default = "CORD"]; + string bar_string_piece = 15 [ctype=STRING_PIECE, default = "SPIECE"]; + bytes bar_bytes = 16 [default = "BYTES"]; + NestedEnum bar_enum = 17 [default = BAR]; + string bar_string_with_empty_default = 20 [default = ""]; + string bar_cord_with_empty_default = 21 [ctype=CORD, default = ""]; + string bar_string_piece_with_empty_default = 22 + [ctype=STRING_PIECE, default = ""]; + bytes bar_bytes_with_empty_default = 23 [default = ""]; + } + + int32 baz_int = 18; + string baz_string = 19 [default = "BAZ"]; + + message NestedMessage { + int64 moo_int = 1; + repeated int32 corge_int = 2; + } + + enum NestedEnum { + UNKNOWN = 0; + FOO = 1; + BAR = 2; + BAZ = 3; + } +} + +message TestRequiredOneof { + oneof foo { + int32 foo_int = 1; + string foo_string = 2; + NestedMessage foo_message = 3; + NestedMessage foo_lazy_message = 4 [lazy = true]; + } + message NestedMessage { + double required_double = 1 [features.field_presence = LEGACY_REQUIRED]; + } +} + +// Test messages for packed fields + +message TestPackedTypes { + repeated int32 packed_int32 = 90 [features.repeated_field_encoding = PACKED]; + repeated int64 packed_int64 = 91 [features.repeated_field_encoding = PACKED]; + repeated uint32 packed_uint32 = 92 [features.repeated_field_encoding = PACKED]; + repeated uint64 packed_uint64 = 93 [features.repeated_field_encoding = PACKED]; + repeated sint32 packed_sint32 = 94 [features.repeated_field_encoding = PACKED]; + repeated sint64 packed_sint64 = 95 [features.repeated_field_encoding = PACKED]; + repeated fixed32 packed_fixed32 = 96 [features.repeated_field_encoding = PACKED]; + repeated fixed64 packed_fixed64 = 97 [features.repeated_field_encoding = PACKED]; + repeated sfixed32 packed_sfixed32 = 98 [features.repeated_field_encoding = PACKED]; + repeated sfixed64 packed_sfixed64 = 99 [features.repeated_field_encoding = PACKED]; + repeated float packed_float = 100 [features.repeated_field_encoding = PACKED]; + repeated double packed_double = 101 [features.repeated_field_encoding = PACKED]; + repeated bool packed_bool = 102 [features.repeated_field_encoding = PACKED]; + repeated ForeignEnum packed_enum = 103 [features.repeated_field_encoding = PACKED]; +} + +// A message with the same fields as TestPackedTypes, but without packing. Used +// to test packed <-> unpacked wire compatibility. +message TestUnpackedTypes { + repeated int32 unpacked_int32 = 90 [features.repeated_field_encoding = EXPANDED]; + repeated int64 unpacked_int64 = 91 [features.repeated_field_encoding = EXPANDED]; + repeated uint32 unpacked_uint32 = 92 [features.repeated_field_encoding = EXPANDED]; + repeated uint64 unpacked_uint64 = 93 [features.repeated_field_encoding = EXPANDED]; + repeated sint32 unpacked_sint32 = 94 [features.repeated_field_encoding = EXPANDED]; + repeated sint64 unpacked_sint64 = 95 [features.repeated_field_encoding = EXPANDED]; + repeated fixed32 unpacked_fixed32 = 96 [features.repeated_field_encoding = EXPANDED]; + repeated fixed64 unpacked_fixed64 = 97 [features.repeated_field_encoding = EXPANDED]; + repeated sfixed32 unpacked_sfixed32 = 98 [features.repeated_field_encoding = EXPANDED]; + repeated sfixed64 unpacked_sfixed64 = 99 [features.repeated_field_encoding = EXPANDED]; + repeated float unpacked_float = 100 [features.repeated_field_encoding = EXPANDED]; + repeated double unpacked_double = 101 [features.repeated_field_encoding = EXPANDED]; + repeated bool unpacked_bool = 102 [features.repeated_field_encoding = EXPANDED]; + repeated ForeignEnum unpacked_enum = 103 [features.repeated_field_encoding = EXPANDED]; +} + +message TestPackedExtensions { + extensions 1 to max; +} + +extend TestPackedExtensions { + repeated int32 packed_int32_extension = 90 [features.repeated_field_encoding = PACKED]; + repeated int64 packed_int64_extension = 91 [features.repeated_field_encoding = PACKED]; + repeated uint32 packed_uint32_extension = 92 [features.repeated_field_encoding = PACKED]; + repeated uint64 packed_uint64_extension = 93 [features.repeated_field_encoding = PACKED]; + repeated sint32 packed_sint32_extension = 94 [features.repeated_field_encoding = PACKED]; + repeated sint64 packed_sint64_extension = 95 [features.repeated_field_encoding = PACKED]; + repeated fixed32 packed_fixed32_extension = 96 [features.repeated_field_encoding = PACKED]; + repeated fixed64 packed_fixed64_extension = 97 [features.repeated_field_encoding = PACKED]; + repeated sfixed32 packed_sfixed32_extension = 98 [features.repeated_field_encoding = PACKED]; + repeated sfixed64 packed_sfixed64_extension = 99 [features.repeated_field_encoding = PACKED]; + repeated float packed_float_extension = 100 [features.repeated_field_encoding = PACKED]; + repeated double packed_double_extension = 101 [features.repeated_field_encoding = PACKED]; + repeated bool packed_bool_extension = 102 [features.repeated_field_encoding = PACKED]; + repeated ForeignEnum packed_enum_extension = 103 [features.repeated_field_encoding = PACKED]; +} + +message TestUnpackedExtensions { + extensions 1 to max; +} + +extend TestUnpackedExtensions { + repeated int32 unpacked_int32_extension = 90 [features.repeated_field_encoding = EXPANDED]; + repeated int64 unpacked_int64_extension = 91 [features.repeated_field_encoding = EXPANDED]; + repeated uint32 unpacked_uint32_extension = 92 [features.repeated_field_encoding = EXPANDED]; + repeated uint64 unpacked_uint64_extension = 93 [features.repeated_field_encoding = EXPANDED]; + repeated sint32 unpacked_sint32_extension = 94 [features.repeated_field_encoding = EXPANDED]; + repeated sint64 unpacked_sint64_extension = 95 [features.repeated_field_encoding = EXPANDED]; + repeated fixed32 unpacked_fixed32_extension = 96 [features.repeated_field_encoding = EXPANDED]; + repeated fixed64 unpacked_fixed64_extension = 97 [features.repeated_field_encoding = EXPANDED]; + repeated sfixed32 unpacked_sfixed32_extension = 98 [features.repeated_field_encoding = EXPANDED]; + repeated sfixed64 unpacked_sfixed64_extension = 99 [features.repeated_field_encoding = EXPANDED]; + repeated float unpacked_float_extension = 100 [features.repeated_field_encoding = EXPANDED]; + repeated double unpacked_double_extension = 101 [features.repeated_field_encoding = EXPANDED]; + repeated bool unpacked_bool_extension = 102 [features.repeated_field_encoding = EXPANDED]; + repeated ForeignEnum unpacked_enum_extension = 103 [features.repeated_field_encoding = EXPANDED]; +} + +// Used by ExtensionSetTest/DynamicExtensions. The test actually builds +// a set of extensions to TestAllExtensions dynamically, based on the fields +// of this message type. +message TestDynamicExtensions { + enum DynamicEnumType { + DYNAMIC_UNKNOWN = 0; + DYNAMIC_FOO = 2200; + DYNAMIC_BAR = 2201; + DYNAMIC_BAZ = 2202; + } + message DynamicMessageType { + int32 dynamic_field = 2100; + } + + fixed32 scalar_extension = 2000; + ForeignEnum enum_extension = 2001; + DynamicEnumType dynamic_enum_extension = 2002; + + ForeignMessage message_extension = 2003; + DynamicMessageType dynamic_message_extension = 2004; + + repeated string repeated_extension = 2005; + repeated sint32 packed_extension = 2006 [features.repeated_field_encoding = PACKED]; +} + +message TestRepeatedString { + repeated string repeated_string1 = 1; + repeated string repeated_string2 = 2; + + repeated bytes repeated_bytes11 = 11; + repeated bytes repeated_bytes12 = 12; +} + +message TestRepeatedScalarDifferentTagSizes { + // Parsing repeated fixed size values used to fail. This message needs to be + // used in order to get a tag of the right size; all of the repeated fields + // in TestAllTypes didn't trigger the check. + repeated fixed32 repeated_fixed32 = 12; + // Check for a varint type, just for good measure. + repeated int32 repeated_int32 = 13; + + // These have two-byte tags. + repeated fixed64 repeated_fixed64 = 2046; + repeated int64 repeated_int64 = 2047; + + // Three byte tags. + repeated float repeated_float = 262142; + repeated uint64 repeated_uint64 = 262143; +} + +// Test that if an optional or message/group field appears multiple +// times in the input, they need to be merged. +message TestParsingMerge { + // RepeatedFieldsGenerator defines matching field types as TestParsingMerge, + // except that all fields are repeated. In the tests, we will serialize the + // RepeatedFieldsGenerator to bytes, and parse the bytes to TestParsingMerge. + // Repeated fields in RepeatedFieldsGenerator are expected to be merged into + // the corresponding required/optional fields in TestParsingMerge. + message RepeatedFieldsGenerator { + repeated TestAllTypes field1 = 1; + repeated TestAllTypes field2 = 2; + repeated TestAllTypes field3 = 3; + message Group1 { + TestAllTypes field1 = 11; + } + repeated Group1 group1= 10 [features.message_encoding = DELIMITED]; + message Group2 { + TestAllTypes field1 = 21; + } + repeated Group2 group2= 20 [features.message_encoding = DELIMITED]; + repeated TestAllTypes ext1 = 1000; + repeated TestAllTypes ext2 = 1001; + } + TestAllTypes required_all_types = 1 [features.field_presence = LEGACY_REQUIRED]; + TestAllTypes optional_all_types = 2; + repeated TestAllTypes repeated_all_types = 3; + message OptionalGroup { + TestAllTypes optional_group_all_types = 11; + } + OptionalGroup optionalgroup= 10 [features.message_encoding = DELIMITED]; + message RepeatedGroup { + TestAllTypes repeated_group_all_types = 21; + } + repeated RepeatedGroup repeatedgroup= 20 [features.message_encoding = DELIMITED]; + extensions 1000 to max; + extend TestParsingMerge { + TestAllTypes optional_ext = 1000; + repeated TestAllTypes repeated_ext = 1001; + } +} + +// Test that the correct exception is thrown by parseFrom in a corner case +// involving merging, extensions, and fields. +message TestMergeException { + TestAllExtensions all_extensions = 1; +} + +message TestCommentInjectionMessage { + // */ <- This should not close the generated doc comment + string a = 1 [default="*/ <- Neither should this."]; +} + +// Used to check that the c++ code generator re-orders messages to reduce +// padding. +message TestMessageSize { + bool m1 = 1; + int64 m2 = 2; + bool m3 = 3; + string m4 = 4; + int32 m5 = 5; + int64 m6 = 6; +} + +// Test that RPC services work. +message FooRequest {} +message FooResponse {} + +message FooClientMessage {} +message FooServerMessage{} + +message BarRequest {} +message BarResponse {} + +message TestJsonName { + int32 field_name1 = 1; + int32 fieldName2 = 2; + int32 FieldName3 = 3; + int32 _field_name4 = 4; + int32 FIELD_NAME5 = 5; + int32 field_name6 = 6 [json_name = "@type"]; + int32 fieldname7 = 7; +} + +message TestHugeFieldNumbers { + int32 optional_int32 = 536870000; + int32 fixed_32 = 536870001; + repeated int32 repeated_int32 = 536870002 [features.repeated_field_encoding = EXPANDED]; + repeated int32 packed_int32 = 536870003 [features.repeated_field_encoding = PACKED]; + + ForeignEnum optional_enum = 536870004; + string optional_string = 536870005; + bytes optional_bytes = 536870006; + ForeignMessage optional_message = 536870007; + + message OptionalGroup { + int32 group_a = 536870009; + } + OptionalGroup optionalgroup = 536870008 [features.message_encoding = DELIMITED]; + + map string_string_map = 536870010; + + oneof oneof_field { + uint32 oneof_uint32 = 536870011; + TestAllTypes oneof_test_all_types = 536870012; + string oneof_string = 536870013; + bytes oneof_bytes = 536870014; + } + + extensions 536860000 to 536869999 [declaration = { + number: 536860000 + full_name: ".edition_unittest.test_all_types" + type: ".edition_unittest.TestAllTypes" + }]; +} + +extend TestHugeFieldNumbers { + TestAllTypes test_all_types = 536860000; +} + +message TestExtensionInsideTable { + int32 field1 = 1; + int32 field2 = 2; + int32 field3 = 3; + int32 field4 = 4; + extensions 5 to 5; + int32 field6 = 6; + int32 field7 = 7; + int32 field8 = 8; + int32 field9 = 9; + int32 field10 = 10; +} + +extend TestExtensionInsideTable { + int32 test_extension_inside_table_extension = 5; +} + +// NOTE: Intentionally nested to mirror go/glep. +message TestNestedGroupExtensionOuter { + message Layer1OptionalGroup { + message Layer2RepeatedGroup { + extensions 3 + // NOTE: extension metadata is not supported due to targets such as + // `//google/protobuf_legacy_opensource/src:shell_scripts_test`, + // eee https://screenshot.googleplex.com/Axz2QD8nxjdpyFF + //[metadata = { + // NOTE: can't write type there due to some clever build gen code at + // http://google3/google/protobuf/BUILD;l=1247;rcl=411090862 + // type: "edition_unittest.TestNestedGroupExtensionInnerExtension", + // name: "inner", + // }] + ; + string another_field = 6; + } + message Layer2AnotherOptionalRepeatedGroup { + string but_why_tho = 5; + } + repeated Layer2RepeatedGroup layer2repeatedgroup = 2 [features.message_encoding = DELIMITED]; + repeated Layer2AnotherOptionalRepeatedGroup layer2anotheroptionalrepeatedgroup = 4 [features.message_encoding = DELIMITED]; + } + Layer1OptionalGroup lay1optionalgroup = 1 [features.message_encoding = DELIMITED]; +} + +message TestNestedGroupExtensionInnerExtension { + string inner_name= 1; +} + +extend TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2RepeatedGroup { + TestNestedGroupExtensionInnerExtension inner = 3; +} + +enum VeryLargeEnum { + ENUM_LABEL_DEFAULT = 0; + ENUM_LABEL_1 = 1; + ENUM_LABEL_2 = 2; + ENUM_LABEL_3 = 3; + ENUM_LABEL_4 = 4; + ENUM_LABEL_5 = 5; + ENUM_LABEL_6 = 6; + ENUM_LABEL_7 = 7; + ENUM_LABEL_8 = 8; + ENUM_LABEL_9 = 9; + ENUM_LABEL_10 = 10; + ENUM_LABEL_11 = 11; + ENUM_LABEL_12 = 12; + ENUM_LABEL_13 = 13; + ENUM_LABEL_14 = 14; + ENUM_LABEL_15 = 15; + ENUM_LABEL_16 = 16; + ENUM_LABEL_17 = 17; + ENUM_LABEL_18 = 18; + ENUM_LABEL_19 = 19; + ENUM_LABEL_20 = 20; + ENUM_LABEL_21 = 21; + ENUM_LABEL_22 = 22; + ENUM_LABEL_23 = 23; + ENUM_LABEL_24 = 24; + ENUM_LABEL_25 = 25; + ENUM_LABEL_26 = 26; + ENUM_LABEL_27 = 27; + ENUM_LABEL_28 = 28; + ENUM_LABEL_29 = 29; + ENUM_LABEL_30 = 30; + ENUM_LABEL_31 = 31; + ENUM_LABEL_32 = 32; + ENUM_LABEL_33 = 33; + ENUM_LABEL_34 = 34; + ENUM_LABEL_35 = 35; + ENUM_LABEL_36 = 36; + ENUM_LABEL_37 = 37; + ENUM_LABEL_38 = 38; + ENUM_LABEL_39 = 39; + ENUM_LABEL_40 = 40; + ENUM_LABEL_41 = 41; + ENUM_LABEL_42 = 42; + ENUM_LABEL_43 = 43; + ENUM_LABEL_44 = 44; + ENUM_LABEL_45 = 45; + ENUM_LABEL_46 = 46; + ENUM_LABEL_47 = 47; + ENUM_LABEL_48 = 48; + ENUM_LABEL_49 = 49; + ENUM_LABEL_50 = 50; + ENUM_LABEL_51 = 51; + ENUM_LABEL_52 = 52; + ENUM_LABEL_53 = 53; + ENUM_LABEL_54 = 54; + ENUM_LABEL_55 = 55; + ENUM_LABEL_56 = 56; + ENUM_LABEL_57 = 57; + ENUM_LABEL_58 = 58; + ENUM_LABEL_59 = 59; + ENUM_LABEL_60 = 60; + ENUM_LABEL_61 = 61; + ENUM_LABEL_62 = 62; + ENUM_LABEL_63 = 63; + ENUM_LABEL_64 = 64; + ENUM_LABEL_65 = 65; + ENUM_LABEL_66 = 66; + ENUM_LABEL_67 = 67; + ENUM_LABEL_68 = 68; + ENUM_LABEL_69 = 69; + ENUM_LABEL_70 = 70; + ENUM_LABEL_71 = 71; + ENUM_LABEL_72 = 72; + ENUM_LABEL_73 = 73; + ENUM_LABEL_74 = 74; + ENUM_LABEL_75 = 75; + ENUM_LABEL_76 = 76; + ENUM_LABEL_77 = 77; + ENUM_LABEL_78 = 78; + ENUM_LABEL_79 = 79; + ENUM_LABEL_80 = 80; + ENUM_LABEL_81 = 81; + ENUM_LABEL_82 = 82; + ENUM_LABEL_83 = 83; + ENUM_LABEL_84 = 84; + ENUM_LABEL_85 = 85; + ENUM_LABEL_86 = 86; + ENUM_LABEL_87 = 87; + ENUM_LABEL_88 = 88; + ENUM_LABEL_89 = 89; + ENUM_LABEL_90 = 90; + ENUM_LABEL_91 = 91; + ENUM_LABEL_92 = 92; + ENUM_LABEL_93 = 93; + ENUM_LABEL_94 = 94; + ENUM_LABEL_95 = 95; + ENUM_LABEL_96 = 96; + ENUM_LABEL_97 = 97; + ENUM_LABEL_98 = 98; + ENUM_LABEL_99 = 99; + ENUM_LABEL_100 = 100; +}; + +message TestExtensionRangeSerialize { + int32 foo_one = 1; + + extensions 2 to 2; + extensions 3 to 4; + + int32 foo_two = 6; + int32 foo_three = 7; + + extensions 9 to 10; + + int32 foo_four = 13; + + extensions 15 to 15; + extensions 17 to 17; + extensions 19 to 19; + + extend TestExtensionRangeSerialize { + int32 bar_one = 2; + int32 bar_two = 4; + + int32 bar_three = 10; + + int32 bar_four = 15; + int32 bar_five = 19; + } +} + +message TestVerifyInt32Simple { + int32 optional_int32_1 = 1; + int32 optional_int32_2 = 2; + int32 optional_int32_63 = 63; + int32 optional_int32_64 = 64; +} + +message TestVerifyInt32 { + int32 optional_int32_1 = 1; + int32 optional_int32_2 = 2; + int32 optional_int32_63 = 63; + int32 optional_int32_64 = 64; + + TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyMostlyInt32 { + int64 optional_int64_30 = 30; + + int32 optional_int32_1 = 1; + int32 optional_int32_2 = 2; + int32 optional_int32_3 = 3; + int32 optional_int32_4 = 4; + int32 optional_int32_63 = 63; + int32 optional_int32_64 = 64; + + TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyMostlyInt32BigFieldNumber { + int64 optional_int64_30 = 30; + int32 optional_int32_300 = 300; + + int32 optional_int32_1 = 1; + int32 optional_int32_2 = 2; + int32 optional_int32_3 = 3; + int32 optional_int32_4 = 4; + int32 optional_int32_63 = 63; + int32 optional_int32_64 = 64; + + TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyUint32Simple { + uint32 optional_uint32_1 = 1; + uint32 optional_uint32_2 = 2; + uint32 optional_uint32_63 = 63; + uint32 optional_uint32_64 = 64; +} + +message TestVerifyUint32 { + uint32 optional_uint32_1 = 1; + uint32 optional_uint32_2 = 2; + uint32 optional_uint32_63 = 63; + uint32 optional_uint32_64 = 64; + + TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyOneUint32 { + uint32 optional_uint32_1 = 1; + int32 optional_int32_2 = 2; + int32 optional_int32_63 = 63; + int32 optional_int32_64 = 64; + + TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyOneInt32BigFieldNumber { + int32 optional_int32_65 = 65; + + int64 optional_int64_1 = 1; + int64 optional_int64_2 = 2; + int64 optional_int64_63 = 63; + int64 optional_int64_64 = 64; + + TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyInt32BigFieldNumber { + int32 optional_int32_1000 = 1000; + int32 optional_int32_65 = 65; + + int32 optional_int32_1 = 1; + int32 optional_int32_2 = 2; + int32 optional_int32_63 = 63; + int32 optional_int32_64 = 64; + + TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyUint32BigFieldNumber { + uint32 optional_uint32_1000 = 1000; + uint32 optional_uint32_65 = 65; + + uint32 optional_uint32_1 = 1; + uint32 optional_uint32_2 = 2; + uint32 optional_uint32_63 = 63; + uint32 optional_uint32_64 = 64; + + TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyBigFieldNumberUint32 { + message Nested { + uint32 optional_uint32_5000 = 5000; + uint32 optional_uint32_1000 = 1000; + uint32 optional_uint32_66 = 66; + uint32 optional_uint32_65 = 65; + + uint32 optional_uint32_1 = 1; + uint32 optional_uint32_2 = 2; + uint32 optional_uint32_63 = 63; + uint32 optional_uint32_64 = 64; + + Nested optional_nested = 9; + repeated Nested repeated_nested = 10; + } + Nested optional_nested = 1; +} + +// This message contains different kind of enums to exercise the different +// parsers in table-driven. +message EnumParseTester { + enum SeqSmall0 { + SEQ_SMALL_0_DEFAULT = 0; + SEQ_SMALL_0_1 = 1; + SEQ_SMALL_0_2 = 2; + }; + SeqSmall0 optional_seq_small_0_lowfield = 1; + SeqSmall0 optional_seq_small_0_midfield = 1001; + SeqSmall0 optional_seq_small_0_hifield = 1000001; + repeated SeqSmall0 repeated_seq_small_0_lowfield = 2; + repeated SeqSmall0 repeated_seq_small_0_midfield = 1002; + repeated SeqSmall0 repeated_seq_small_0_hifield = 1000002; + repeated SeqSmall0 packed_seq_small_0_lowfield = 3 + [features.repeated_field_encoding = PACKED]; + repeated SeqSmall0 packed_seq_small_0_midfield = 1003 + [features.repeated_field_encoding = PACKED]; + repeated SeqSmall0 packed_seq_small_0_hifield = 1000003 + [features.repeated_field_encoding = PACKED]; + + enum SeqSmall1 { + UNKNOWN = 0; + SEQ_SMALL_1_DEFAULT = 1; + SEQ_SMALL_1_2 = 2; + SEQ_SMALL_1_3 = 3; + }; + SeqSmall1 optional_seq_small_1_lowfield = 4; + SeqSmall1 optional_seq_small_1_midfield = 1004; + SeqSmall1 optional_seq_small_1_hifield = 1000004; + repeated SeqSmall1 repeated_seq_small_1_lowfield = 5; + repeated SeqSmall1 repeated_seq_small_1_midfield = 1005; + repeated SeqSmall1 repeated_seq_small_1_hifield = 1000005; + repeated SeqSmall1 packed_seq_small_1_lowfield = 6 + [features.repeated_field_encoding = PACKED]; + repeated SeqSmall1 packed_seq_small_1_midfield = 1006 + [features.repeated_field_encoding = PACKED]; + repeated SeqSmall1 packed_seq_small_1_hifield = 1000006 + [features.repeated_field_encoding = PACKED]; + + enum SeqLarge { + SEQ_LARGE_DEFAULT = -1; + SEQ_LARGE_0 = 0; + SEQ_LARGE_1 = 1; + SEQ_LARGE_2 = 2; + SEQ_LARGE_3 = 3; + SEQ_LARGE_4 = 4; + SEQ_LARGE_5 = 5; + SEQ_LARGE_6 = 6; + SEQ_LARGE_7 = 7; + SEQ_LARGE_8 = 8; + SEQ_LARGE_9 = 9; + SEQ_LARGE_10 = 10; + SEQ_LARGE_11 = 11; + SEQ_LARGE_12 = 12; + SEQ_LARGE_13 = 13; + SEQ_LARGE_14 = 14; + SEQ_LARGE_15 = 15; + SEQ_LARGE_16 = 16; + SEQ_LARGE_17 = 17; + SEQ_LARGE_18 = 18; + SEQ_LARGE_19 = 19; + SEQ_LARGE_20 = 20; + SEQ_LARGE_21 = 21; + SEQ_LARGE_22 = 22; + SEQ_LARGE_23 = 23; + SEQ_LARGE_24 = 24; + SEQ_LARGE_25 = 25; + SEQ_LARGE_26 = 26; + SEQ_LARGE_27 = 27; + SEQ_LARGE_28 = 28; + SEQ_LARGE_29 = 29; + SEQ_LARGE_30 = 30; + SEQ_LARGE_31 = 31; + SEQ_LARGE_32 = 32; + SEQ_LARGE_33 = 33; + }; + SeqLarge optional_seq_large_lowfield = 7; + SeqLarge optional_seq_large_midfield = 1007; + SeqLarge optional_seq_large_hifield = 1000007; + repeated SeqLarge repeated_seq_large_lowfield = 8; + repeated SeqLarge repeated_seq_large_midfield = 1008; + repeated SeqLarge repeated_seq_large_hifield = 1000008; + repeated SeqLarge packed_seq_large_lowfield = 9 + [features.repeated_field_encoding = PACKED]; + repeated SeqLarge packed_seq_large_midfield = 1009 + [features.repeated_field_encoding = PACKED]; + repeated SeqLarge packed_seq_large_hifield = 1000009 + [features.repeated_field_encoding = PACKED]; + + enum Arbitrary { + ARBITRARY_DEFAULT = -123123; + ARBITRARY_1 = -123; + ARBITRARY_2 = 213; + ARBITRARY_3 = 213213; + ARBITRARY_MIN = -2147483648; + ARBITRARY_MAX = 2147483647; + }; + Arbitrary optional_arbitrary_lowfield = 10; + Arbitrary optional_arbitrary_midfield = 1010; + Arbitrary optional_arbitrary_hifield = 1000010; + repeated Arbitrary repeated_arbitrary_lowfield = 11; + repeated Arbitrary repeated_arbitrary_midfield = 1011; + repeated Arbitrary repeated_arbitrary_hifield = 1000011; + repeated Arbitrary packed_arbitrary_lowfield = 12 + [features.repeated_field_encoding = PACKED]; + repeated Arbitrary packed_arbitrary_midfield = 1012 + [features.repeated_field_encoding = PACKED]; + repeated Arbitrary packed_arbitrary_hifield = 1000012 + [features.repeated_field_encoding = PACKED]; + + extensions 2000000 to max; + extend EnumParseTester { + Arbitrary optional_arbitrary_ext = 2000000; + repeated Arbitrary repeated_arbitrary_ext = 2000001; + repeated Arbitrary packed_arbitrary_ext = 2000002 + [features.repeated_field_encoding = PACKED]; + } + + // An arbitrary field we can append to to break the runs of repeated fields. + int32 other_field = 99; +} + +// This message contains different kind of bool fields to exercise the different +// parsers in table-drived. +message BoolParseTester { + bool optional_bool_lowfield = 1; + bool optional_bool_midfield = 1001; + bool optional_bool_hifield = 1000001; + repeated bool repeated_bool_lowfield = 2; + repeated bool repeated_bool_midfield = 1002; + repeated bool repeated_bool_hifield = 1000002; + repeated bool packed_bool_lowfield = 3 + [features.repeated_field_encoding = PACKED]; + repeated bool packed_bool_midfield = 1003 + [features.repeated_field_encoding = PACKED]; + repeated bool packed_bool_hifield = 1000003 + [features.repeated_field_encoding = PACKED]; + + extensions 2000000 to max; + extend BoolParseTester { + bool optional_bool_ext = 2000000; + repeated bool repeated_bool_ext = 2000001; + repeated bool packed_bool_ext = 2000002 + [features.repeated_field_encoding = PACKED]; + } + + // An arbitrary field we can append to to break the runs of repeated fields. + int32 other_field = 99; +} + +message Int32ParseTester { + int32 optional_int32_lowfield = 1; + int32 optional_int32_midfield = 1001; + int32 optional_int32_hifield = 1000001; + repeated int32 repeated_int32_lowfield = 2; + repeated int32 repeated_int32_midfield = 1002; + repeated int32 repeated_int32_hifield = 1000002; + repeated int32 packed_int32_lowfield = 3 + [features.repeated_field_encoding = PACKED]; + repeated int32 packed_int32_midfield = 1003 + [features.repeated_field_encoding = PACKED]; + repeated int32 packed_int32_hifield = 1000003 + [features.repeated_field_encoding = PACKED]; + + extensions 2000000 to max; + extend Int32ParseTester { + int32 optional_int32_ext = 2000000; + repeated int32 repeated_int32_ext = 2000001; + repeated int32 packed_int32_ext = 2000002 + [features.repeated_field_encoding = PACKED]; + } + + // An arbitrary field we can append to to break the runs of repeated fields. + int32 other_field = 99; +} + +message Int64ParseTester { + int64 optional_int64_lowfield = 1; + int64 optional_int64_midfield = 1001; + int64 optional_int64_hifield = 1000001; + repeated int64 repeated_int64_lowfield = 2; + repeated int64 repeated_int64_midfield = 1002; + repeated int64 repeated_int64_hifield = 1000002; + repeated int64 packed_int64_lowfield = 3 + [features.repeated_field_encoding = PACKED]; + repeated int64 packed_int64_midfield = 1003 + [features.repeated_field_encoding = PACKED]; + repeated int64 packed_int64_hifield = 1000003 + [features.repeated_field_encoding = PACKED]; + + extensions 2000000 to max; + extend Int64ParseTester { + int64 optional_int64_ext = 2000000; + repeated int64 repeated_int64_ext = 2000001; + repeated int64 packed_int64_ext = 2000002 + [features.repeated_field_encoding = PACKED]; + } + + // An arbitrary field we can append to to break the runs of repeated fields. + int32 other_field = 99; +} + +message InlinedStringIdxRegressionProto { + // We mix data to make sure aux ids and inlined string idx do not match. + // aux_idx == inlined_string_idx == 1 + string str1 = 1; + // aux_idx == 2 + InlinedStringIdxRegressionProto sub = 2; + // aux_idx == 3, inlined_string_idx == 2 + string str2 = 3; + // aux_idx == 4, inlined_string_idx == 3 + bytes str3 = 4; +} + +message StringParseTester { + string optional_string_lowfield = 1; + string optional_string_midfield = 1001; + string optional_string_hifield = 1000001; + repeated string repeated_string_lowfield = 2; + repeated string repeated_string_midfield = 1002; + repeated string repeated_string_hifield = 1000002; + + extensions 2000000 to max; + extend StringParseTester { + string optional_string_ext = 2000000; + repeated string repeated_string_ext = 2000001; + } +} + +message BadFieldNames{ + int32 OptionalInt32 = 1; + int32 for = 2; +} + +message TestNestedMessageRedaction { + string optional_unredacted_nested_string = 1; + string optional_redacted_nested_string = 2 [debug_redact = true]; +} + +message RedactedFields { + string optional_redacted_string = 1 [debug_redact = true]; + string optional_unredacted_string = 2; + repeated string repeated_redacted_string = 3 [debug_redact = true]; + repeated string repeated_unredacted_string = 4; + TestNestedMessageRedaction optional_redacted_message = 5 [debug_redact = true]; + TestNestedMessageRedaction optional_unredacted_message = 6; + repeated TestNestedMessageRedaction repeated_redacted_message = 7 + [debug_redact = true]; + repeated TestNestedMessageRedaction repeated_unredacted_message = 8; + map map_redacted_string = 9 [debug_redact = true]; + map map_unredacted_string = 10; +} + +message TestCord{ + bytes optional_bytes_cord = 1 [ctype=CORD]; + bytes optional_bytes_cord_default = 2 [ctype=CORD, default = "hello"]; +} + +message TestPackedEnumSmallRange { + enum NestedEnum { + UNSPECIFIED = 0; + FOO = 1; + BAR = 2; + BAZ = 3; + } + repeated NestedEnum vals = 1 + [features.repeated_field_encoding = PACKED]; +} + +message EnumsForBenchmark { + enum Flat { + A0 = 0; + A1 = 1; + A2 = 2; + A3 = 3; + A4 = 4; + A5 = 5; + A6 = 6; + A7 = 7; + A8 = 8; + A9 = 9; + A10 = 10; + A11 = 11; + A12 = 12; + A13 = 13; + A14 = 14; + A15 = 15; + } + // Has a few holes, bitmap can be used. + enum AlmostFlat { + B0 = 0; + B1 = 1; + B2 = 2; + B3 = 3; + B5 = 5; + B6 = 6; + B7 = 7; + B8 = 8; + B9 = 9; + B11 = 11; + B12 = 12; + B13 = 13; + B14 = 14; + B15 = 15; + B17 = 17; + B19 = 19; + } + enum Sparse { + C0 = 0; + C536 = 536; + C8387 = 8387; + C9673 = 9673; + C10285 = 10285; + C13318 = 13318; + C15963 = 15963; + C16439 = 16439; + C18197 = 18197; + C19430 = 19430; + C20361 = 20361; + C20706 = 20706; + C21050 = 21050; + C21906 = 21906; + C27265 = 27265; + C30109 = 30109; + C31670 = 31670; + } +} + +message TestMessageWithManyRepeatedPtrFields { + repeated string repeated_string_1 = 1; + repeated string repeated_string_2 = 2; + repeated string repeated_string_3 = 3; + repeated string repeated_string_4 = 4; + repeated string repeated_string_5 = 5; + repeated string repeated_string_6 = 6; + repeated string repeated_string_7 = 7; + repeated string repeated_string_8 = 8; + repeated string repeated_string_9 = 9; + repeated string repeated_string_10 = 10; + repeated string repeated_string_11 = 11; + repeated string repeated_string_12 = 12; + repeated string repeated_string_13 = 13; + repeated string repeated_string_14 = 14; + repeated string repeated_string_15 = 15; + repeated string repeated_string_16 = 16; + repeated string repeated_string_17 = 17; + repeated string repeated_string_18 = 18; + repeated string repeated_string_19 = 19; + repeated string repeated_string_20 = 20; + repeated string repeated_string_21 = 21; + repeated string repeated_string_22 = 22; + repeated string repeated_string_23 = 23; + repeated string repeated_string_24 = 24; + repeated string repeated_string_25 = 25; + repeated string repeated_string_26 = 26; + repeated string repeated_string_27 = 27; + repeated string repeated_string_28 = 28; + repeated string repeated_string_29 = 29; + repeated string repeated_string_30 = 30; + repeated string repeated_string_31 = 31; + repeated string repeated_string_32 = 32; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/empty.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/empty.proto index 5f992de9..b87c89dc 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/empty.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/empty.proto @@ -32,12 +32,12 @@ syntax = "proto3"; package google.protobuf; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option go_package = "google.golang.org/protobuf/types/known/emptypb"; option java_package = "com.google.protobuf"; option java_outer_classname = "EmptyProto"; option java_multiple_files = true; option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option cc_enable_arenas = true; // A generic empty message that you can re-use to avoid defining duplicated @@ -48,5 +48,4 @@ option cc_enable_arenas = true; // rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); // } // -// The JSON representation for `Empty` is empty JSON object `{}`. message Empty {} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/field_mask.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/field_mask.proto index 6b5104f1..b28334b9 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/field_mask.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/field_mask.proto @@ -32,11 +32,11 @@ syntax = "proto3"; package google.protobuf; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option java_package = "com.google.protobuf"; option java_outer_classname = "FieldMaskProto"; option java_multiple_files = true; option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb"; option cc_enable_arenas = true; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_lite_unittest.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_lite_unittest.proto index cc00deec..b42b3de8 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_lite_unittest.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_lite_unittest.proto @@ -1,39 +1,18 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto2"; +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +edition = "2023"; package protobuf_unittest; import "google/protobuf/unittest_lite.proto"; +option features.enum_type = CLOSED; +option features.utf8_validation = NONE; option cc_enable_arenas = true; option optimize_for = LITE_RUNTIME; @@ -117,11 +96,17 @@ enum MapEnumLite { } message TestRequiredLite { - required int32 a = 1; - required int32 b = 2; - required int32 c = 3; + int32 a = 1 [features.field_presence = LEGACY_REQUIRED]; + + int32 b = 2 [features.field_presence = LEGACY_REQUIRED]; + + int32 c = 3 [features.field_presence = LEGACY_REQUIRED]; + + extend TestAllExtensionsLite { + TestRequiredLite single = 1000; + } } message ForeignMessageArenaLite { - optional int32 c = 1; + int32 c = 1; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_proto2_unittest.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_proto2_unittest.proto index 20d58f90..34a38128 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_proto2_unittest.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_proto2_unittest.proto @@ -1,64 +1,70 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd syntax = "proto2"; -option cc_enable_arenas = true; import "google/protobuf/unittest_import.proto"; +option cc_enable_arenas = true; + // We don't put this in a package within proto2 because we need to make sure // that the generated code doesn't depend on being in the proto2 namespace. // In map_test_util.h we do "using namespace unittest = protobuf_unittest". package protobuf_unittest; enum Proto2MapEnum { - PROTO2_MAP_ENUM_FOO = 0; - PROTO2_MAP_ENUM_BAR = 1; - PROTO2_MAP_ENUM_BAZ = 2; + PROTO2_MAP_ENUM_FOO = 0; + PROTO2_MAP_ENUM_BAR = 1; + PROTO2_MAP_ENUM_BAZ = 2; } enum Proto2MapEnumPlusExtra { - E_PROTO2_MAP_ENUM_FOO = 0; - E_PROTO2_MAP_ENUM_BAR = 1; - E_PROTO2_MAP_ENUM_BAZ = 2; + E_PROTO2_MAP_ENUM_FOO = 0; + E_PROTO2_MAP_ENUM_BAR = 1; + E_PROTO2_MAP_ENUM_BAZ = 2; E_PROTO2_MAP_ENUM_EXTRA = 3; } message TestEnumMap { map known_map_field = 101; map unknown_map_field = 102; + + // Other maps with all key types to test the unknown entry serialization + map unknown_map_field_int64 = 200; + map unknown_map_field_uint64 = 201; + map unknown_map_field_int32 = 202; + map unknown_map_field_uint32 = 203; + map unknown_map_field_fixed32 = 204; + map unknown_map_field_fixed64 = 205; + map unknown_map_field_bool = 206; + map unknown_map_field_string = 207; + map unknown_map_field_sint32 = 208; + map unknown_map_field_sint64 = 209; + map unknown_map_field_sfixed32 = 210; + map unknown_map_field_sfixed64 = 211; } message TestEnumMapPlusExtra { map known_map_field = 101; map unknown_map_field = 102; + + // Other maps with all key types to test the unknown entry serialization + map unknown_map_field_int64 = 200; + map unknown_map_field_uint64 = 201; + map unknown_map_field_int32 = 202; + map unknown_map_field_uint32 = 203; + map unknown_map_field_fixed32 = 204; + map unknown_map_field_fixed64 = 205; + map unknown_map_field_bool = 206; + map unknown_map_field_string = 207; + map unknown_map_field_sint32 = 208; + map unknown_map_field_sint64 = 209; + map unknown_map_field_sfixed32 = 210; + map unknown_map_field_sfixed64 = 211; } message TestImportEnumMap { @@ -89,3 +95,8 @@ message TestMaps { message TestSubmessageMaps { optional TestMaps m = 1; } + +message TestProto2BytesMap { + map map_bytes = 1; + map map_string = 2; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_proto3_unittest.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_proto3_unittest.proto new file mode 100644 index 00000000..29a3b367 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_proto3_unittest.proto @@ -0,0 +1,27 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +edition = "2023"; + +// Treat all fields as implicit present by default (proto3 behavior). +option features.field_presence = IMPLICIT; + +// This file contains definitions that have different behavior in proto3. + +// We don't put this in a package within proto2 because we need to make sure +// that the generated code doesn't depend on being in the proto2 namespace. +// In map_test_util.h we do "using namespace unittest = protobuf_unittest". +package proto3_unittest; + +message TestProto3BytesMap { + map map_bytes = 1; + map map_string = 2; +} + +message TestI32StrMap { + map m_32_str = 1; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_unittest.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_unittest.proto index 263ef61f..91ee855a 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_unittest.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/map_unittest.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd syntax = "proto3"; @@ -62,6 +39,21 @@ message TestMap { map map_int32_all_types = 19; } +message TestMapWithMessages { + map map_int32_all_types = 1; + map map_int64_all_types = 2; + map map_uint32_all_types = 3; + map map_uint64_all_types = 4; + map map_sint32_all_types = 5; + map map_sint64_all_types = 6; + map map_fixed32_all_types = 7; + map map_fixed64_all_types = 8; + map map_sfixed32_all_types = 9; + map map_sfixed64_all_types = 10; + map map_bool_all_types = 11; + map map_string_all_types = 12; +} + message TestMapSubmessage { TestMap test_map = 1; } @@ -76,7 +68,6 @@ message TestSameTypeMap { map map2 = 2; } - enum MapEnum { MAP_ENUM_FOO = 0; MAP_ENUM_BAR = 1; @@ -111,7 +102,9 @@ message TestArenaMap { // Previously, message containing enum called Type cannot be used as value of // map field. message MessageContainingEnumCalledType { - enum Type { TYPE_FOO = 0; } + enum Type { + TYPE_FOO = 0; + } map type = 1; } @@ -123,3 +116,7 @@ message MessageContainingMapCalledEntry { message TestRecursiveMapMessage { map a = 1; } + +message TestI32StrMap { + map m_32_str = 1; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/sample_messages_edition.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/sample_messages_edition.proto new file mode 100644 index 00000000..464a816d --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/sample_messages_edition.proto @@ -0,0 +1,427 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd +// +// Sample messages to generate example code. + +edition = "2023"; + +package protobuf_test_messages.edition; + +import "google/protobuf/cpp_features.proto"; + +option optimize_for = SPEED; +option features.(pb.cpp).string_type = VIEW; + +// This proto includes every type of field in both singular and repeated +// forms. +// +// Also, crucially, all messages and enums in this file are eventually +// submessages of this message. So for example, a fuzz test of TestAllTypes +// could trigger bugs that occur in any message type in this file. We verify +// this stays true in a unit test. +message TestAllTypesEdition { + message NestedMessage { + int32 a = 1; + TestAllTypesEdition corecursive = 2; + } + + enum NestedEnum { + FOO = 0; + BAR = 1; + BAZ = 2; + NEG = -1; // Intentionally negative. + } + + // Singular + int32 optional_int32 = 1; + int64 optional_int64 = 2; + uint32 optional_uint32 = 3; + uint64 optional_uint64 = 4; + sint32 optional_sint32 = 5; + sint64 optional_sint64 = 6; + fixed32 optional_fixed32 = 7; + fixed64 optional_fixed64 = 8; + sfixed32 optional_sfixed32 = 9; + sfixed64 optional_sfixed64 = 10; + float optional_float = 11; + double optional_double = 12; + bool optional_bool = 13; + string optional_string = 14; + bytes optional_bytes = 15; + + NestedMessage optional_nested_message = 18; + ForeignMessageEdition optional_foreign_message = 19; + + NestedEnum optional_nested_enum = 21; + ForeignEnumEdition optional_foreign_enum = 22; + + string optional_string_piece = 24 [ctype = STRING_PIECE]; + string optional_cord = 25 [ctype = CORD]; + + TestAllTypesEdition recursive_message = 27; + + // Repeated + repeated int32 repeated_int32 = 31; + repeated int64 repeated_int64 = 32; + repeated uint32 repeated_uint32 = 33; + repeated uint64 repeated_uint64 = 34; + repeated sint32 repeated_sint32 = 35; + repeated sint64 repeated_sint64 = 36; + repeated fixed32 repeated_fixed32 = 37; + repeated fixed64 repeated_fixed64 = 38; + repeated sfixed32 repeated_sfixed32 = 39; + repeated sfixed64 repeated_sfixed64 = 40; + repeated float repeated_float = 41; + repeated double repeated_double = 42; + repeated bool repeated_bool = 43; + repeated string repeated_string = 44; + repeated bytes repeated_bytes = 45; + + repeated NestedMessage repeated_nested_message = 48; + repeated ForeignMessageEdition repeated_foreign_message = 49; + + repeated NestedEnum repeated_nested_enum = 51; + repeated ForeignEnumEdition repeated_foreign_enum = 52; + + repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; + repeated string repeated_cord = 55 [ctype = CORD]; + + // Packed + repeated int32 packed_int32 = 75 [features.repeated_field_encoding = PACKED]; + repeated int64 packed_int64 = 76 [features.repeated_field_encoding = PACKED]; + repeated uint32 packed_uint32 = 77 + [features.repeated_field_encoding = PACKED]; + repeated uint64 packed_uint64 = 78 + [features.repeated_field_encoding = PACKED]; + repeated sint32 packed_sint32 = 79 + [features.repeated_field_encoding = PACKED]; + repeated sint64 packed_sint64 = 80 + [features.repeated_field_encoding = PACKED]; + repeated fixed32 packed_fixed32 = 81 + [features.repeated_field_encoding = PACKED]; + repeated fixed64 packed_fixed64 = 82 + [features.repeated_field_encoding = PACKED]; + repeated sfixed32 packed_sfixed32 = 83 + [features.repeated_field_encoding = PACKED]; + repeated sfixed64 packed_sfixed64 = 84 + [features.repeated_field_encoding = PACKED]; + repeated float packed_float = 85 [features.repeated_field_encoding = PACKED]; + repeated double packed_double = 86 + [features.repeated_field_encoding = PACKED]; + repeated bool packed_bool = 87 [features.repeated_field_encoding = PACKED]; + repeated NestedEnum packed_nested_enum = 88 + [features.repeated_field_encoding = PACKED]; + + // Unpacked + repeated int32 unpacked_int32 = 89 + [features.repeated_field_encoding = EXPANDED]; + repeated int64 unpacked_int64 = 90 + [features.repeated_field_encoding = EXPANDED]; + repeated uint32 unpacked_uint32 = 91 + [features.repeated_field_encoding = EXPANDED]; + repeated uint64 unpacked_uint64 = 92 + [features.repeated_field_encoding = EXPANDED]; + repeated sint32 unpacked_sint32 = 93 + [features.repeated_field_encoding = EXPANDED]; + repeated sint64 unpacked_sint64 = 94 + [features.repeated_field_encoding = EXPANDED]; + repeated fixed32 unpacked_fixed32 = 95 + [features.repeated_field_encoding = EXPANDED]; + repeated fixed64 unpacked_fixed64 = 96 + [features.repeated_field_encoding = EXPANDED]; + repeated sfixed32 unpacked_sfixed32 = 97 + [features.repeated_field_encoding = EXPANDED]; + repeated sfixed64 unpacked_sfixed64 = 98 + [features.repeated_field_encoding = EXPANDED]; + repeated float unpacked_float = 99 + [features.repeated_field_encoding = EXPANDED]; + repeated double unpacked_double = 100 + [features.repeated_field_encoding = EXPANDED]; + repeated bool unpacked_bool = 101 + [features.repeated_field_encoding = EXPANDED]; + repeated NestedEnum unpacked_nested_enum = 102 + [features.repeated_field_encoding = EXPANDED]; + + // Map + map map_int32_int32 = 56; + map map_int64_int64 = 57; + map map_uint32_uint32 = 58; + map map_uint64_uint64 = 59; + map map_sint32_sint32 = 60; + map map_sint64_sint64 = 61; + map map_fixed32_fixed32 = 62; + map map_fixed64_fixed64 = 63; + map map_sfixed32_sfixed32 = 64; + map map_sfixed64_sfixed64 = 65; + map map_int32_float = 66; + map map_int32_double = 67; + map map_bool_bool = 68; + map map_string_string = 69; + map map_string_bytes = 70; + map map_string_nested_message = 71; + map map_string_foreign_message = 72; + map map_string_nested_enum = 73; + map map_string_foreign_enum = 74; + + oneof oneof_field { + uint32 oneof_uint32 = 111; + NestedMessage oneof_nested_message = 112; + string oneof_string = 113; + bytes oneof_bytes = 114; + bool oneof_bool = 115; + uint64 oneof_uint64 = 116; + float oneof_float = 117; + double oneof_double = 118; + NestedEnum oneof_enum = 119; + } + + // extensions + extensions 120 to 200; + + // groups + message Data { + int32 group_int32 = 202; + uint32 group_uint32 = 203; + } + + Data data = 201 [features.message_encoding = DELIMITED]; + + // default values + int32 default_int32 = 241 [default = -123456789]; + int64 default_int64 = 242 [default = -9123456789123456789]; + uint32 default_uint32 = 243 [default = 2123456789]; + uint64 default_uint64 = 244 [default = 10123456789123456789]; + sint32 default_sint32 = 245 [default = -123456789]; + sint64 default_sint64 = 246 [default = -9123456789123456789]; + fixed32 default_fixed32 = 247 [default = 2123456789]; + fixed64 default_fixed64 = 248 [default = 10123456789123456789]; + sfixed32 default_sfixed32 = 249 [default = -123456789]; + sfixed64 default_sfixed64 = 250 [default = -9123456789123456789]; + float default_float = 251 [default = 9e9]; + double default_double = 252 [default = 7e22]; + bool default_bool = 253 [default = true]; + string default_string = 254 [default = "Rosebud"]; + bytes default_bytes = 255 [default = "joshua"]; + + // Test field-name-to-JSON-name convention. + // (protobuf says names can be any valid C/C++ identifier.) + int32 fieldname1 = 401; + int32 field_name2 = 402; + int32 _field_name3 = 403; + int32 field__name4_ = 404; + int32 field0name5 = 405; + int32 field_0_name6 = 406; + int32 fieldName7 = 407; + int32 FieldName8 = 408; + int32 field_Name9 = 409; + int32 Field_Name10 = 410; + int32 FIELD_NAME11 = 411; + int32 FIELD_name12 = 412; + int32 __field_name13 = 413; + int32 __Field_name14 = 414; + int32 field__name15 = 415; + int32 field__Name16 = 416; + int32 field_name17__ = 417; + int32 Field_name18__ = 418; + + // Reserved for unknown fields test. + reserved 1000 to 9999; + + // message_set test case. + message MessageSetCorrect { + option message_set_wire_format = true; + + extensions 4 to max; + } + + message MessageSetCorrectExtension1 { + extend MessageSetCorrect { + MessageSetCorrectExtension1 message_set_extension = 1547769; + } + string str = 25; + } + + message MessageSetCorrectExtension2 { + extend MessageSetCorrect { + MessageSetCorrectExtension2 message_set_extension = 4135312; + } + int32 i = 9; + } +} + +message ForeignMessageEdition { + int32 c = 1; +} + +enum ForeignEnumEdition { + FOREIGN_FOO = 0; + FOREIGN_BAR = 1; + FOREIGN_BAZ = 2; +} + +extend TestAllTypesEdition { + int32 extension_int32 = 120; +} + +message UnknownToTestAllTypes { + int32 optional_int32 = 1001; + string optional_string = 1002; + ForeignMessageEdition nested_message = 1003; + message OptionalGroup { + int32 a = 1; + } + OptionalGroup optionalgroup = 1004 [features.message_encoding = DELIMITED]; + bool optional_bool = 1006; + repeated int32 repeated_int32 = 1011; +} + +message NullHypothesisEdition {} + +message EnumOnlyEdition { + enum Bool { + kFalse = 0; + kTrue = 1; + } +} + +message OneStringEdition { + string data = 1; +} + +message ProtoWithKeywords { + int32 inline = 1; + string concept = 2; + repeated string requires = 3; +} + +message TestAllRequiredTypesEdition { + message NestedMessage { + int32 a = 1 [features.field_presence = LEGACY_REQUIRED]; + TestAllRequiredTypesEdition corecursive = 2 + [features.field_presence = LEGACY_REQUIRED]; + TestAllRequiredTypesEdition optional_corecursive = 3; + } + + enum NestedEnum { + FOO = 0; + BAR = 1; + BAZ = 2; + NEG = -1; // Intentionally negative. + } + + // Singular + int32 required_int32 = 1 [features.field_presence = LEGACY_REQUIRED]; + int64 required_int64 = 2 [features.field_presence = LEGACY_REQUIRED]; + uint32 required_uint32 = 3 [features.field_presence = LEGACY_REQUIRED]; + uint64 required_uint64 = 4 [features.field_presence = LEGACY_REQUIRED]; + sint32 required_sint32 = 5 [features.field_presence = LEGACY_REQUIRED]; + sint64 required_sint64 = 6 [features.field_presence = LEGACY_REQUIRED]; + fixed32 required_fixed32 = 7 [features.field_presence = LEGACY_REQUIRED]; + fixed64 required_fixed64 = 8 [features.field_presence = LEGACY_REQUIRED]; + sfixed32 required_sfixed32 = 9 [features.field_presence = LEGACY_REQUIRED]; + sfixed64 required_sfixed64 = 10 [features.field_presence = LEGACY_REQUIRED]; + float required_float = 11 [features.field_presence = LEGACY_REQUIRED]; + double required_double = 12 [features.field_presence = LEGACY_REQUIRED]; + bool required_bool = 13 [features.field_presence = LEGACY_REQUIRED]; + string required_string = 14 [features.field_presence = LEGACY_REQUIRED]; + bytes required_bytes = 15 [features.field_presence = LEGACY_REQUIRED]; + + NestedMessage required_nested_message = 18 + [features.field_presence = LEGACY_REQUIRED]; + ForeignMessageEdition required_foreign_message = 19 + [features.field_presence = LEGACY_REQUIRED]; + + NestedEnum required_nested_enum = 21 + [features.field_presence = LEGACY_REQUIRED]; + ForeignEnumEdition required_foreign_enum = 22 + [features.field_presence = LEGACY_REQUIRED]; + + string required_string_piece = 24 + [ctype = STRING_PIECE, features.field_presence = LEGACY_REQUIRED]; + string required_cord = 25 + [ctype = CORD, features.field_presence = LEGACY_REQUIRED]; + + TestAllRequiredTypesEdition recursive_message = 27; + TestAllRequiredTypesEdition optional_recursive_message = 28; + + // extensions + extensions 120 to 200; + + // groups + message Data { + int32 group_int32 = 202 [features.field_presence = LEGACY_REQUIRED]; + uint32 group_uint32 = 203 [features.field_presence = LEGACY_REQUIRED]; + } + + Data data = 201 [features.message_encoding = DELIMITED]; + + // default values + int32 default_int32 = 241 + [default = -123456789, features.field_presence = LEGACY_REQUIRED]; + int64 default_int64 = 242 [ + default = -9123456789123456789, + features.field_presence = LEGACY_REQUIRED + ]; + uint32 default_uint32 = 243 + [default = 2123456789, features.field_presence = LEGACY_REQUIRED]; + uint64 default_uint64 = 244 [ + default = 10123456789123456789, + features.field_presence = LEGACY_REQUIRED + ]; + sint32 default_sint32 = 245 + [default = -123456789, features.field_presence = LEGACY_REQUIRED]; + sint64 default_sint64 = 246 [ + default = -9123456789123456789, + features.field_presence = LEGACY_REQUIRED + ]; + fixed32 default_fixed32 = 247 + [default = 2123456789, features.field_presence = LEGACY_REQUIRED]; + fixed64 default_fixed64 = 248 [ + default = 10123456789123456789, + features.field_presence = LEGACY_REQUIRED + ]; + sfixed32 default_sfixed32 = 249 + [default = -123456789, features.field_presence = LEGACY_REQUIRED]; + sfixed64 default_sfixed64 = 250 [ + default = -9123456789123456789, + features.field_presence = LEGACY_REQUIRED + ]; + float default_float = 251 + [default = 9e9, features.field_presence = LEGACY_REQUIRED]; + double default_double = 252 + [default = 7e22, features.field_presence = LEGACY_REQUIRED]; + bool default_bool = 253 + [default = true, features.field_presence = LEGACY_REQUIRED]; + string default_string = 254 + [default = "Rosebud", features.field_presence = LEGACY_REQUIRED]; + bytes default_bytes = 255 + [default = "joshua", features.field_presence = LEGACY_REQUIRED]; + + // Reserved for unknown fields test. + reserved 1000 to 9999; + + // message_set test case. + message MessageSetCorrect { + option message_set_wire_format = true; + + extensions 4 to max; + } + + message MessageSetCorrectExtension1 { + extend MessageSetCorrect { + MessageSetCorrectExtension1 message_set_extension = 1547769; + } + string str = 25 [features.field_presence = LEGACY_REQUIRED]; + } + + message MessageSetCorrectExtension2 { + extend MessageSetCorrect { + MessageSetCorrectExtension2 message_set_extension = 4135312; + } + int32 i = 9 [features.field_presence = LEGACY_REQUIRED]; + } +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/source_context.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/source_context.proto index 06bfc43a..135f50fe 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/source_context.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/source_context.proto @@ -32,11 +32,11 @@ syntax = "proto3"; package google.protobuf; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option java_package = "com.google.protobuf"; option java_outer_classname = "SourceContextProto"; option java_multiple_files = true; option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb"; // `SourceContext` represents information about the source of a diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/struct.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/struct.proto index 545215c2..1bf0c1ad 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/struct.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/struct.proto @@ -32,13 +32,13 @@ syntax = "proto3"; package google.protobuf; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option cc_enable_arenas = true; option go_package = "google.golang.org/protobuf/types/known/structpb"; option java_package = "com.google.protobuf"; option java_outer_classname = "StructProto"; option java_multiple_files = true; option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; // `Struct` represents a structured data value, consisting of fields // which map to dynamically typed values. In some languages, `Struct` @@ -55,8 +55,8 @@ message Struct { // `Value` represents a dynamically typed value which can be either // null, a number, a string, a boolean, a recursive struct value, or a -// list of values. A producer of value is expected to set one of that -// variants, absence of any variant indicates an error. +// list of values. A producer of value is expected to set one of these +// variants. Absence of any variant indicates an error. // // The JSON representation for `Value` is JSON value. message Value { @@ -80,7 +80,7 @@ message Value { // `NullValue` is a singleton enumeration to represent the null value for the // `Value` type union. // -// The JSON representation for `NullValue` is JSON `null`. +// The JSON representation for `NullValue` is JSON `null`. enum NullValue { // Null value. NULL_VALUE = 0; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/test_messages_proto2.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/test_messages_proto2.proto index 1d0c33f5..73cba558 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/test_messages_proto2.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/test_messages_proto2.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // // Test schema for proto2 messages. This test schema is used by: // @@ -40,12 +17,14 @@ syntax = "proto2"; package protobuf_test_messages.proto2; option java_package = "com.google.protobuf_test_messages.proto2"; +option objc_class_prefix = "Proto2"; // This is the default, but we specify it here explicitly. option optimize_for = SPEED; option cc_enable_arenas = true; + // This proto includes every type of field in both singular and repeated // forms. // @@ -194,6 +173,28 @@ message TestAllTypesProto2 { optional uint32 group_uint32 = 203; } + optional group MultiWordGroupField = 204 { + optional int32 group_int32 = 205; + optional uint32 group_uint32 = 206; + } + + // default values + optional int32 default_int32 = 241 [default = -123456789]; + optional int64 default_int64 = 242 [default = -9123456789123456789]; + optional uint32 default_uint32 = 243 [default = 2123456789]; + optional uint64 default_uint64 = 244 [default = 10123456789123456789]; + optional sint32 default_sint32 = 245 [default = -123456789]; + optional sint64 default_sint64 = 246 [default = -9123456789123456789]; + optional fixed32 default_fixed32 = 247 [default = 2123456789]; + optional fixed64 default_fixed64 = 248 [default = 10123456789123456789]; + optional sfixed32 default_sfixed32 = 249 [default = -123456789]; + optional sfixed64 default_sfixed64 = 250 [default = -9123456789123456789]; + optional float default_float = 251 [default = 9e9]; + optional double default_double = 252 [default = 7e22]; + optional bool default_bool = 253 [default = true]; + optional string default_string = 254 [default = "Rosebud"]; + optional bytes default_bytes = 255 [default = "joshua"]; + // Test field-name-to-JSON-name convention. // (protobuf says names can be any valid C/C++ identifier.) optional int32 fieldname1 = 401; @@ -254,6 +255,13 @@ extend TestAllTypesProto2 { optional int32 extension_int32 = 120; } +extend TestAllTypesProto2 { + optional group GroupField = 121 { + optional int32 group_int32 = 122; + optional uint32 group_uint32 = 123; + } +} + message UnknownToTestAllTypes { optional int32 optional_int32 = 1001; optional string optional_string = 1002; @@ -264,3 +272,116 @@ message UnknownToTestAllTypes { optional bool optional_bool = 1006; repeated int32 repeated_int32 = 1011; } + +message NullHypothesisProto2 {} + +message EnumOnlyProto2 { + enum Bool { + kFalse = 0; + kTrue = 1; + } +} + +message OneStringProto2 { + optional string data = 1; +} + +message ProtoWithKeywords { + optional int32 inline = 1; + optional string concept = 2; + repeated string requires = 3; +} + +message TestAllRequiredTypesProto2 { + message NestedMessage { + required int32 a = 1; + required TestAllRequiredTypesProto2 corecursive = 2; + optional TestAllRequiredTypesProto2 optional_corecursive = 3; + } + + enum NestedEnum { + FOO = 0; + BAR = 1; + BAZ = 2; + NEG = -1; // Intentionally negative. + } + + // Singular + required int32 required_int32 = 1; + required int64 required_int64 = 2; + required uint32 required_uint32 = 3; + required uint64 required_uint64 = 4; + required sint32 required_sint32 = 5; + required sint64 required_sint64 = 6; + required fixed32 required_fixed32 = 7; + required fixed64 required_fixed64 = 8; + required sfixed32 required_sfixed32 = 9; + required sfixed64 required_sfixed64 = 10; + required float required_float = 11; + required double required_double = 12; + required bool required_bool = 13; + required string required_string = 14; + required bytes required_bytes = 15; + + required NestedMessage required_nested_message = 18; + required ForeignMessageProto2 required_foreign_message = 19; + + required NestedEnum required_nested_enum = 21; + required ForeignEnumProto2 required_foreign_enum = 22; + + required string required_string_piece = 24 [ctype = STRING_PIECE]; + required string required_cord = 25 [ctype = CORD]; + + required TestAllRequiredTypesProto2 recursive_message = 27; + optional TestAllRequiredTypesProto2 optional_recursive_message = 28; + + // extensions + extensions 120 to 200; + + // groups + required group Data = 201 { + required int32 group_int32 = 202; + required uint32 group_uint32 = 203; + } + + // default values + required int32 default_int32 = 241 [default = -123456789]; + required int64 default_int64 = 242 [default = -9123456789123456789]; + required uint32 default_uint32 = 243 [default = 2123456789]; + required uint64 default_uint64 = 244 [default = 10123456789123456789]; + required sint32 default_sint32 = 245 [default = -123456789]; + required sint64 default_sint64 = 246 [default = -9123456789123456789]; + required fixed32 default_fixed32 = 247 [default = 2123456789]; + required fixed64 default_fixed64 = 248 [default = 10123456789123456789]; + required sfixed32 default_sfixed32 = 249 [default = -123456789]; + required sfixed64 default_sfixed64 = 250 [default = -9123456789123456789]; + required float default_float = 251 [default = 9e9]; + required double default_double = 252 [default = 7e22]; + required bool default_bool = 253 [default = true]; + required string default_string = 254 [default = "Rosebud"]; + required bytes default_bytes = 255 [default = "joshua"]; + + // Reserved for unknown fields test. + reserved 1000 to 9999; + + // message_set test case. + message MessageSetCorrect { + option message_set_wire_format = true; + + extensions 4 to max; + } + + message MessageSetCorrectExtension1 { + extend MessageSetCorrect { + optional MessageSetCorrectExtension1 message_set_extension = 1547769; + } + required string str = 25; + } + + message MessageSetCorrectExtension2 { + extend MessageSetCorrect { + optional MessageSetCorrectExtension2 message_set_extension = 4135312; + } + required int32 i = 9; + } +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/test_messages_proto3.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/test_messages_proto3.proto index 4e409dc9..55ec54cb 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/test_messages_proto3.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/test_messages_proto3.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // // Test schema for proto3 messages. This test schema is used by: // @@ -80,8 +57,8 @@ message TestAllTypesProto3 { ALIAS_FOO = 0; ALIAS_BAR = 1; ALIAS_BAZ = 2; - QUX = 2; - qux = 2; + MOO = 2; + moo = 2; bAz = 2; } @@ -277,3 +254,12 @@ enum ForeignEnum { FOREIGN_BAR = 1; FOREIGN_BAZ = 2; } + +message NullHypothesisProto3 {} + +message EnumOnlyProto3 { + enum Bool { + kFalse = 0; + kTrue = 1; + } +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/timestamp.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/timestamp.proto index 3b2df6d9..fd0bc07d 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/timestamp.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/timestamp.proto @@ -32,13 +32,13 @@ syntax = "proto3"; package google.protobuf; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option cc_enable_arenas = true; option go_package = "google.golang.org/protobuf/types/known/timestamppb"; option java_package = "com.google.protobuf"; option java_outer_classname = "TimestampProto"; option java_multiple_files = true; option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; // A Timestamp represents a point in time independent of any time zone or local // calendar, encoded as a count of seconds and fractions of seconds at @@ -90,7 +90,6 @@ option objc_class_prefix = "GPB"; // Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) // .setNanos((int) ((millis % 1000) * 1000000)).build(); // -// // Example 5: Compute Timestamp from Java `Instant.now()`. // // Instant now = Instant.now(); @@ -99,7 +98,6 @@ option objc_class_prefix = "GPB"; // Timestamp.newBuilder().setSeconds(now.getEpochSecond()) // .setNanos(now.getNano()).build(); // -// // Example 6: Compute Timestamp from current time in Python. // // timestamp = Timestamp() @@ -129,10 +127,9 @@ option objc_class_prefix = "GPB"; // [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with // the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use // the Joda Time's [`ISODateTimeFormat.dateTime()`]( -// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D +// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() // ) to obtain a formatter capable of generating timestamps in this format. // -// message Timestamp { // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/type.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/type.proto index d3f6a68b..48cb11e7 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/type.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/type.proto @@ -35,12 +35,12 @@ package google.protobuf; import "google/protobuf/any.proto"; import "google/protobuf/source_context.proto"; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option cc_enable_arenas = true; option java_package = "com.google.protobuf"; option java_outer_classname = "TypeProto"; option java_multiple_files = true; option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option go_package = "google.golang.org/protobuf/types/known/typepb"; // A protocol buffer message type. @@ -57,6 +57,8 @@ message Type { SourceContext source_context = 5; // The source syntax. Syntax syntax = 6; + // The source edition string, only valid when syntax is SYNTAX_EDITIONS. + string edition = 7; } // A single field of a message type. @@ -151,6 +153,8 @@ message Enum { SourceContext source_context = 4; // The source syntax. Syntax syntax = 5; + // The source edition string, only valid when syntax is SYNTAX_EDITIONS. + string edition = 6; } // Enum value definition. @@ -184,4 +188,6 @@ enum Syntax { SYNTAX_PROTO2 = 0; // Syntax `proto3`. SYNTAX_PROTO3 = 1; + // Syntax `editions`. + SYNTAX_EDITIONS = 2; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest.proto index 0925165c..6e97be2f 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: kenton@google.com (Kenton Varda) // Based on original Protocol Buffers design by @@ -113,6 +90,7 @@ message TestAllTypes { optional_public_import_message = 26; optional NestedMessage optional_lazy_message = 27 [lazy=true]; + optional NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy=true]; // Repeated repeated int32 repeated_int32 = 31; @@ -179,6 +157,9 @@ message TestAllTypes { NestedMessage oneof_nested_message = 112; string oneof_string = 113; bytes oneof_bytes = 114; + string oneof_cord = 115 [ctype=CORD]; + string oneof_string_piece = 116 [ctype=STRING_PIECE]; + NestedMessage oneof_lazy_nested_message = 117 [lazy=true]; } } @@ -187,13 +168,18 @@ message NestedTestAllTypes { optional NestedTestAllTypes child = 1; optional TestAllTypes payload = 2; repeated NestedTestAllTypes repeated_child = 3; + optional NestedTestAllTypes lazy_child = 4 [lazy=true]; + optional TestAllTypes eager_child = 5 [lazy=false]; } message TestDeprecatedFields { optional int32 deprecated_int32 = 1 [deprecated=true]; + repeated string deprecated_repeated_string = 4 [deprecated=true]; + optional TestAllTypes.NestedMessage deprecated_message = 3 [deprecated=true]; oneof oneof_fields { int32 deprecated_int32_in_oneof = 2 [deprecated=true]; } + optional TestDeprecatedFields nested = 5; } message TestDeprecatedMessage { @@ -211,6 +197,15 @@ enum ForeignEnum { FOREIGN_FOO = 4; FOREIGN_BAR = 5; FOREIGN_BAZ = 6; + FOREIGN_BAX = 32; // (1 << 32) to generate a 64b bitmask would be incorrect. + FOREIGN_LARGE = 123456; // Large enough to escape the Boxed Integer cache. +} + +enum TestDeprecatedEnum { + option deprecated = true; + TEST_DEPRECATED_ENUM_UNSPECIFIED = 0; + TEST_DEPRECATED_ENUM_VALUE1 = 1; + TEST_DEPRECATED_ENUM_VALUE2 = 2; } message TestReservedFields { @@ -218,6 +213,12 @@ message TestReservedFields { reserved "bar", "baz"; } +enum TestReservedEnumFields { + UNKNOWN = 0; + reserved 2, 15, 9 to 11; + reserved "bar", "baz"; +} + message TestAllExtensions { extensions 1 to max; } @@ -255,13 +256,17 @@ extend TestAllExtensions { optional_import_enum_extension = 23; optional string optional_string_piece_extension = 24 [ctype=STRING_PIECE]; - optional string optional_cord_extension = 25 [ctype=CORD]; + // TODO: ctype=CORD is not supported for extension. Add + // ctype=CORD option back after it is supported. + optional string optional_cord_extension = 25; optional protobuf_unittest_import.PublicImportMessage optional_public_import_message_extension = 26; optional TestAllTypes.NestedMessage optional_lazy_message_extension = 27 [lazy=true]; + optional TestAllTypes.NestedMessage + optional_unverified_lazy_message_extension = 28 [unverified_lazy=true]; // Repeated repeated int32 repeated_int32_extension = 31; @@ -295,7 +300,9 @@ extend TestAllExtensions { repeated_import_enum_extension = 53; repeated string repeated_string_piece_extension = 54 [ctype=STRING_PIECE]; - repeated string repeated_cord_extension = 55 [ctype=CORD]; + // TODO: ctype=CORD is not supported for extension. Add + // ctype=CORD option back after it is supported. + repeated string repeated_cord_extension = 55; repeated TestAllTypes.NestedMessage repeated_lazy_message_extension = 57 [lazy=true]; @@ -326,7 +333,9 @@ extend TestAllExtensions { optional string default_string_piece_extension = 84 [ctype=STRING_PIECE, default="abc"]; - optional string default_cord_extension = 85 [ctype=CORD, default="123"]; + // TODO: ctype=CORD is not supported for extension. Add + // ctype=CORD option back after it is supported. + optional string default_cord_extension = 85 [default="123"]; // For oneof test optional uint32 oneof_uint32_extension = 111; @@ -335,9 +344,22 @@ extend TestAllExtensions { optional bytes oneof_bytes_extension = 114; } +message TestMixedFieldsAndExtensions { + optional int32 a = 1; + repeated fixed32 b = 3; + extensions 2, 4; + extend TestMixedFieldsAndExtensions { + optional int32 c = 2; + repeated fixed32 d = 4; + } +} + message TestGroup { optional group OptionalGroup = 16 { optional int32 a = 17; + optional int32 zz = 89; // fast table size must be at least 16, for this + // field to be parsed by the fast parser, since + // 89 - 17 = 72 is a multiple of 8. } optional ForeignEnum optional_foreign_enum = 22; } @@ -370,6 +392,94 @@ message TestChildExtension { optional TestAllExtensions optional_extension = 3; } +// Emulates wireformat data of TestChildExtension with dynamic extension +// (DynamicExtension). +message TestChildExtensionData { + message NestedTestAllExtensionsData { + message NestedDynamicExtensions { + optional int32 a = 1; + optional int32 b = 2; + } + optional NestedDynamicExtensions dynamic = 409707008; + } + optional string a = 1; + optional string b = 2; + optional NestedTestAllExtensionsData optional_extension = 3; +} + +message TestNestedChildExtension { + optional int32 a = 1; + optional TestChildExtension child = 2; +} + +// Emulates wireformat data of TestNestedChildExtension with dynamic extension +// (DynamicExtension). +message TestNestedChildExtensionData { + optional int32 a = 1; + optional TestChildExtensionData child = 2; +} + +// Required and closed enum fields are considered unknown fields if the value is +// not valid. We need to make sure it functions as expected. +message TestRequiredEnum { + required ForeignEnum required_enum = 1; + + // A dummy optional field. + optional int32 a = 2; +} + +// TestRequiredEnum + using enum values that won't fit to 64 bitmask. +message TestRequiredEnumNoMask { + enum NestedEnum { + UNSPECIFIED = 0; + FOO = 2; + BAR = 100; + BAZ = -1; // Intentionally negative. + } + + required NestedEnum required_enum = 1; + + // A dummy optional field. + optional int32 a = 2; +} + +message TestRequiredEnumMulti { + enum NestedEnum { + UNSPECIFIED = 0; + FOO = 1; + BAR = 2; + BAZ = 100; + } + + // Intentionally placed in descending field number to force sorting in closed + // enum verification. + required NestedEnum required_enum_4 = 4; + optional int32 a_3 = 3; + required NestedEnum required_enum_2 = 2; + required ForeignEnum required_enum_1 = 1; +} + +message TestRequiredNoMaskMulti { + enum NestedEnum { + UNSPECIFIED = 0; + FOO = 1; + BAR = 2; + BAZ = 100; + } + + // Intentionally placed in descending field number to force sorting in closed + // enum verification. Also, using large field numbers to use tag only + // matching for required fields. + required fixed32 required_fixed32_80 = 80; + required fixed32 required_fixed32_70 = 70; + + required NestedEnum required_enum_64 = 64; + required NestedEnum required_enum_4 = 4; + optional int32 a_3 = 3; + required NestedEnum required_enum_2 = 2; + required ForeignEnum required_enum_1 = 1; +} + // We have separate messages for testing required fields because it's // annoying to have to fill in required fields in TestProto in order to // do anything with it. Note that we don't need to test every type of @@ -418,12 +528,18 @@ message TestRequired { optional int32 dummy32 = 32; required int32 c = 33; + + // Add an optional child message to make this non-trivial for go/pdlazy. + optional ForeignMessage optional_foreign = 34; } message TestRequiredForeign { optional TestRequired optional_message = 1; repeated TestRequired repeated_message = 2; optional int32 dummy = 3; + + // Missing required fields must not affect verification of child messages. + optional NestedTestAllTypes optional_lazy_message = 4 [lazy = true]; } message TestRequiredMessage { @@ -432,6 +548,17 @@ message TestRequiredMessage { required TestRequired required_message = 3; } +message TestNestedRequiredForeign { + optional TestNestedRequiredForeign child = 1; + optional TestRequiredForeign payload = 2; + optional int32 dummy = 3; + // optional message to test required closed enum. + optional TestRequiredEnum required_enum = 5; + optional TestRequiredEnumNoMask required_enum_no_mask = 6; + optional TestRequiredEnumMulti required_enum_multi = 7; + optional TestRequiredNoMaskMulti required_no_mask = 9; +} + // Test that we can use NestedMessage from outside TestAllTypes. message TestForeignNested { optional TestAllTypes.NestedMessage foreign_nested = 1; @@ -486,6 +613,9 @@ message TestMutualRecursionA { optional SubMessage sub_message = 3; // Needed because of bug in javatest optional TestAllTypes not_in_this_scc = 4; } + repeated group SubGroupR = 5 { + optional TestAllTypes payload = 6; + } } message TestMutualRecursionB { @@ -519,7 +649,17 @@ message TestEagerMessage { message TestLazyMessage { optional TestAllTypes sub_message = 1 [lazy=true]; } - +message TestLazyMessageRepeated { + repeated TestLazyMessage repeated_message = 1; +} +message TestEagerMaybeLazy { + message NestedMessage { + optional TestPackedTypes packed = 1; + } + optional TestAllTypes message_foo = 1; + optional TestAllTypes message_bar = 2; + optional NestedMessage message_baz = 3; +} // Needed for a Python test. message TestNestedMessageHasBits { message NestedMessage { @@ -685,6 +825,41 @@ message MoreBytes { repeated bytes data = 1; } +message ManyOptionalString { + optional string str1 = 1; + optional string str2 = 2; + optional string str3 = 3; + optional string str4 = 4; + optional string str5 = 5; + optional string str6 = 6; + optional string str7 = 7; + optional string str8 = 8; + optional string str9 = 9; + optional string str10 = 10; + optional string str11 = 11; + optional string str12 = 12; + optional string str13 = 13; + optional string str14 = 14; + optional string str15 = 15; + optional string str16 = 16; + optional string str17 = 17; + optional string str18 = 18; + optional string str19 = 19; + optional string str20 = 20; + optional string str21 = 21; + optional string str22 = 22; + optional string str23 = 23; + optional string str24 = 24; + optional string str25 = 25; + optional string str26 = 26; + optional string str27 = 27; + optional string str28 = 28; + optional string str29 = 29; + optional string str30 = 30; + optional string str31 = 31; + optional string str32 = 32; +} + // Test int32, uint32, int64, uint64, and bool are all compatible message Int32Message { optional int32 data = 1; @@ -743,6 +918,7 @@ message TestOneof2 { optional string b = 10; } NestedMessage foo_lazy_message = 11 [lazy=true]; + bytes foo_bytes_cord = 30 [ctype=CORD]; } oneof bar { @@ -762,8 +938,9 @@ message TestOneof2 { optional string baz_string = 19 [default = "BAZ"]; message NestedMessage { - optional int64 qux_int = 1; + optional int64 moo_int = 1; repeated int32 corge_int = 2; + optional NestedMessage child = 3; } enum NestedEnum { @@ -778,13 +955,13 @@ message TestRequiredOneof { int32 foo_int = 1; string foo_string = 2; NestedMessage foo_message = 3; + NestedMessage foo_lazy_message = 4 [lazy = true]; } message NestedMessage { required double required_double = 1; } } - // Test messages for packed fields message TestPackedTypes { @@ -889,6 +1066,14 @@ message TestDynamicExtensions { repeated sint32 packed_extension = 2006 [packed = true]; } +message TestRepeatedString { + repeated string repeated_string1 = 1; + repeated string repeated_string2 = 2; + + repeated bytes repeated_bytes11 = 11; + repeated bytes repeated_bytes12 = 12; +} + message TestRepeatedScalarDifferentTagSizes { // Parsing repeated fixed size values used to fail. This message needs to be // used in order to get a tag of the right size; all of the repeated fields @@ -943,11 +1128,27 @@ message TestParsingMerge { } } +// Test that the correct exception is thrown by parseFrom in a corner case +// involving merging, extensions, and required fields. +message TestMergeException { + optional TestAllExtensions all_extensions = 1; +} + message TestCommentInjectionMessage { // */ <- This should not close the generated doc comment optional string a = 1 [default="*/ <- Neither should this."]; } +// Used to check that the c++ code generator re-orders messages to reduce +// padding. +message TestMessageSize { + optional bool m1 = 1; + optional int64 m2 = 2; + optional bool m3 = 3; + optional string m4 = 4; + optional int32 m5 = 5; + optional int64 m6 = 6; +} // Test that RPC services work. message FooRequest {} @@ -961,7 +1162,6 @@ service TestService { rpc Bar(BarRequest) returns (BarResponse); } - message BarRequest {} message BarResponse {} @@ -972,6 +1172,7 @@ message TestJsonName { optional int32 _field_name4 = 4; optional int32 FIELD_NAME5 = 5; optional int32 field_name6 = 6 [json_name = "@type"]; + optional int32 fieldname7 = 7; } message TestHugeFieldNumbers { @@ -998,7 +1199,11 @@ message TestHugeFieldNumbers { bytes oneof_bytes = 536870014; } - extensions 536860000 to 536869999; + extensions 536860000 to 536869999 [declaration = { + number: 536860000 + full_name: ".protobuf_unittest.test_all_types" + type: ".protobuf_unittest.TestAllTypes" + }]; } extend TestHugeFieldNumbers { @@ -1022,6 +1227,37 @@ extend TestExtensionInsideTable { optional int32 test_extension_inside_table_extension = 5; } +// NOTE: Intentionally nested to mirror go/glep. +message TestNestedGroupExtensionOuter { + optional group Layer1OptionalGroup = 1 { + repeated group Layer2RepeatedGroup = 2 { + extensions 3 + // NOTE: extension metadata is not supported due to targets such as + // `//google/protobuf_legacy_opensource/src:shell_scripts_test`, + // eee https://screenshot.googleplex.com/Axz2QD8nxjdpyFF + //[metadata = { + // NOTE: can't write type there due to some clever build gen code at + // http://google3/google/protobuf/BUILD;l=1247;rcl=411090862 + // type: "protobuf_unittest.TestNestedGroupExtensionInnerExtension", + // name: "inner", + // }] + ; + optional string another_field = 6; + } + repeated group Layer2AnotherOptionalRepeatedGroup = 4 { + optional string but_why_tho = 5; + } + } +} + +message TestNestedGroupExtensionInnerExtension { + optional string inner_name= 1; +} + +extend TestNestedGroupExtensionOuter.Layer1OptionalGroup.Layer2RepeatedGroup { + optional TestNestedGroupExtensionInnerExtension inner = 3; +} + enum VeryLargeEnum { ENUM_LABEL_DEFAULT = 0; ENUM_LABEL_1 = 1; @@ -1154,4 +1390,497 @@ message TestExtensionRangeSerialize { } } +message TestVerifyInt32Simple { + optional int32 optional_int32_1 = 1; + optional int32 optional_int32_2 = 2; + optional int32 optional_int32_63 = 63; + optional int32 optional_int32_64 = 64; +} + +message TestVerifyInt32 { + optional int32 optional_int32_1 = 1; + optional int32 optional_int32_2 = 2; + optional int32 optional_int32_63 = 63; + optional int32 optional_int32_64 = 64; + + optional TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyMostlyInt32 { + optional int64 optional_int64_30 = 30; + + optional int32 optional_int32_1 = 1; + optional int32 optional_int32_2 = 2; + optional int32 optional_int32_3 = 3; + optional int32 optional_int32_4 = 4; + optional int32 optional_int32_63 = 63; + optional int32 optional_int32_64 = 64; + + optional TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyMostlyInt32BigFieldNumber { + optional int64 optional_int64_30 = 30; + optional int32 optional_int32_300 = 300; + + optional int32 optional_int32_1 = 1; + optional int32 optional_int32_2 = 2; + optional int32 optional_int32_3 = 3; + optional int32 optional_int32_4 = 4; + optional int32 optional_int32_63 = 63; + optional int32 optional_int32_64 = 64; + + optional TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyUint32Simple { + optional uint32 optional_uint32_1 = 1; + optional uint32 optional_uint32_2 = 2; + optional uint32 optional_uint32_63 = 63; + optional uint32 optional_uint32_64 = 64; +} + +message TestVerifyUint32 { + optional uint32 optional_uint32_1 = 1; + optional uint32 optional_uint32_2 = 2; + optional uint32 optional_uint32_63 = 63; + optional uint32 optional_uint32_64 = 64; + + optional TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyOneUint32 { + optional uint32 optional_uint32_1 = 1; + optional int32 optional_int32_2 = 2; + optional int32 optional_int32_63 = 63; + optional int32 optional_int32_64 = 64; + + optional TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyOneInt32BigFieldNumber { + optional int32 optional_int32_65 = 65; + + optional int64 optional_int64_1 = 1; + optional int64 optional_int64_2 = 2; + optional int64 optional_int64_63 = 63; + optional int64 optional_int64_64 = 64; + + optional TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyInt32BigFieldNumber { + optional int32 optional_int32_1000 = 1000; + optional int32 optional_int32_65 = 65; + + optional int32 optional_int32_1 = 1; + optional int32 optional_int32_2 = 2; + optional int32 optional_int32_63 = 63; + optional int32 optional_int32_64 = 64; + + optional TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyUint32BigFieldNumber { + optional uint32 optional_uint32_1000 = 1000; + optional uint32 optional_uint32_65 = 65; + + optional uint32 optional_uint32_1 = 1; + optional uint32 optional_uint32_2 = 2; + optional uint32 optional_uint32_63 = 63; + optional uint32 optional_uint32_64 = 64; + + optional TestAllTypes optional_all_types = 9; + repeated TestAllTypes repeated_all_types = 10; +} + +message TestVerifyBigFieldNumberUint32 { + message Nested { + optional uint32 optional_uint32_5000 = 5000; + optional uint32 optional_uint32_1000 = 1000; + optional uint32 optional_uint32_66 = 66; + optional uint32 optional_uint32_65 = 65; + + optional uint32 optional_uint32_1 = 1; + optional uint32 optional_uint32_2 = 2; + optional uint32 optional_uint32_63 = 63; + optional uint32 optional_uint32_64 = 64; + + optional Nested optional_nested = 9; + repeated Nested repeated_nested = 10; + } + optional Nested optional_nested = 1; +} + +// This message contains different kind of enums to exercise the different +// parsers in table-driven. +message EnumParseTester { + enum SeqSmall0 { + SEQ_SMALL_0_DEFAULT = 0; + SEQ_SMALL_0_1 = 1; + SEQ_SMALL_0_2 = 2; + }; + optional SeqSmall0 optional_seq_small_0_lowfield = 1; + optional SeqSmall0 optional_seq_small_0_midfield = 1001; + optional SeqSmall0 optional_seq_small_0_hifield = 1000001; + repeated SeqSmall0 repeated_seq_small_0_lowfield = 2; + repeated SeqSmall0 repeated_seq_small_0_midfield = 1002; + repeated SeqSmall0 repeated_seq_small_0_hifield = 1000002; + repeated SeqSmall0 packed_seq_small_0_lowfield = 3 [packed = true]; + repeated SeqSmall0 packed_seq_small_0_midfield = 1003 [packed = true]; + repeated SeqSmall0 packed_seq_small_0_hifield = 1000003 [packed = true]; + + enum SeqSmall1 { + SEQ_SMALL_1_DEFAULT = 1; + SEQ_SMALL_1_2 = 2; + SEQ_SMALL_1_3 = 3; + }; + optional SeqSmall1 optional_seq_small_1_lowfield = 4; + optional SeqSmall1 optional_seq_small_1_midfield = 1004; + optional SeqSmall1 optional_seq_small_1_hifield = 1000004; + repeated SeqSmall1 repeated_seq_small_1_lowfield = 5; + repeated SeqSmall1 repeated_seq_small_1_midfield = 1005; + repeated SeqSmall1 repeated_seq_small_1_hifield = 1000005; + repeated SeqSmall1 packed_seq_small_1_lowfield = 6 [packed = true]; + repeated SeqSmall1 packed_seq_small_1_midfield = 1006 [packed = true]; + repeated SeqSmall1 packed_seq_small_1_hifield = 1000006 [packed = true]; + + enum SeqLarge { + SEQ_LARGE_DEFAULT = -1; + SEQ_LARGE_0 = 0; + SEQ_LARGE_1 = 1; + SEQ_LARGE_2 = 2; + SEQ_LARGE_3 = 3; + SEQ_LARGE_4 = 4; + SEQ_LARGE_5 = 5; + SEQ_LARGE_6 = 6; + SEQ_LARGE_7 = 7; + SEQ_LARGE_8 = 8; + SEQ_LARGE_9 = 9; + SEQ_LARGE_10 = 10; + SEQ_LARGE_11 = 11; + SEQ_LARGE_12 = 12; + SEQ_LARGE_13 = 13; + SEQ_LARGE_14 = 14; + SEQ_LARGE_15 = 15; + SEQ_LARGE_16 = 16; + SEQ_LARGE_17 = 17; + SEQ_LARGE_18 = 18; + SEQ_LARGE_19 = 19; + SEQ_LARGE_20 = 20; + SEQ_LARGE_21 = 21; + SEQ_LARGE_22 = 22; + SEQ_LARGE_23 = 23; + SEQ_LARGE_24 = 24; + SEQ_LARGE_25 = 25; + SEQ_LARGE_26 = 26; + SEQ_LARGE_27 = 27; + SEQ_LARGE_28 = 28; + SEQ_LARGE_29 = 29; + SEQ_LARGE_30 = 30; + SEQ_LARGE_31 = 31; + SEQ_LARGE_32 = 32; + SEQ_LARGE_33 = 33; + }; + optional SeqLarge optional_seq_large_lowfield = 7; + optional SeqLarge optional_seq_large_midfield = 1007; + optional SeqLarge optional_seq_large_hifield = 1000007; + repeated SeqLarge repeated_seq_large_lowfield = 8; + repeated SeqLarge repeated_seq_large_midfield = 1008; + repeated SeqLarge repeated_seq_large_hifield = 1000008; + repeated SeqLarge packed_seq_large_lowfield = 9 [packed = true]; + repeated SeqLarge packed_seq_large_midfield = 1009 [packed = true]; + repeated SeqLarge packed_seq_large_hifield = 1000009 [packed = true]; + + enum Arbitrary { + ARBITRARY_DEFAULT = -123123; + ARBITRARY_1 = -123; + ARBITRARY_2 = 213; + ARBITRARY_3 = 213213; + ARBITRARY_MIN = -2147483648; + ARBITRARY_MAX = 2147483647; + }; + optional Arbitrary optional_arbitrary_lowfield = 10; + optional Arbitrary optional_arbitrary_midfield = 1010; + optional Arbitrary optional_arbitrary_hifield = 1000010; + repeated Arbitrary repeated_arbitrary_lowfield = 11; + repeated Arbitrary repeated_arbitrary_midfield = 1011; + repeated Arbitrary repeated_arbitrary_hifield = 1000011; + repeated Arbitrary packed_arbitrary_lowfield = 12 [packed = true]; + repeated Arbitrary packed_arbitrary_midfield = 1012 [packed = true]; + repeated Arbitrary packed_arbitrary_hifield = 1000012 [packed = true]; + + extensions 2000000 to max; + extend EnumParseTester { + optional Arbitrary optional_arbitrary_ext = 2000000; + repeated Arbitrary repeated_arbitrary_ext = 2000001; + repeated Arbitrary packed_arbitrary_ext = 2000002 [packed = true]; + } + + // An arbitrary field we can append to to break the runs of repeated fields. + optional int32 other_field = 99; +} + +// This message contains different kind of bool fields to exercise the different +// parsers in table-drived. +message BoolParseTester { + optional bool optional_bool_lowfield = 1; + optional bool optional_bool_midfield = 1001; + optional bool optional_bool_hifield = 1000001; + repeated bool repeated_bool_lowfield = 2; + repeated bool repeated_bool_midfield = 1002; + repeated bool repeated_bool_hifield = 1000002; + repeated bool packed_bool_lowfield = 3 [packed = true]; + repeated bool packed_bool_midfield = 1003 [packed = true]; + repeated bool packed_bool_hifield = 1000003 [packed = true]; + + extensions 2000000 to max; + extend BoolParseTester { + optional bool optional_bool_ext = 2000000; + repeated bool repeated_bool_ext = 2000001; + repeated bool packed_bool_ext = 2000002 [packed = true]; + } + + // An arbitrary field we can append to to break the runs of repeated fields. + optional int32 other_field = 99; +} + +message Int32ParseTester { + optional int32 optional_int32_lowfield = 1; + optional int32 optional_int32_midfield = 1001; + optional int32 optional_int32_hifield = 1000001; + repeated int32 repeated_int32_lowfield = 2; + repeated int32 repeated_int32_midfield = 1002; + repeated int32 repeated_int32_hifield = 1000002; + repeated int32 packed_int32_lowfield = 3 [packed = true]; + repeated int32 packed_int32_midfield = 1003 [packed = true]; + repeated int32 packed_int32_hifield = 1000003 [packed = true]; + + extensions 2000000 to max; + extend Int32ParseTester { + optional int32 optional_int32_ext = 2000000; + repeated int32 repeated_int32_ext = 2000001; + repeated int32 packed_int32_ext = 2000002 [packed = true]; + } + + // An arbitrary field we can append to to break the runs of repeated fields. + optional int32 other_field = 99; +} + +message Int64ParseTester { + optional int64 optional_int64_lowfield = 1; + optional int64 optional_int64_midfield = 1001; + optional int64 optional_int64_hifield = 1000001; + repeated int64 repeated_int64_lowfield = 2; + repeated int64 repeated_int64_midfield = 1002; + repeated int64 repeated_int64_hifield = 1000002; + repeated int64 packed_int64_lowfield = 3 [packed = true]; + repeated int64 packed_int64_midfield = 1003 [packed = true]; + repeated int64 packed_int64_hifield = 1000003 [packed = true]; + + extensions 2000000 to max; + extend Int64ParseTester { + optional int64 optional_int64_ext = 2000000; + repeated int64 repeated_int64_ext = 2000001; + repeated int64 packed_int64_ext = 2000002 [packed = true]; + } + + // An arbitrary field we can append to to break the runs of repeated fields. + optional int32 other_field = 99; +} + +message InlinedStringIdxRegressionProto { + // We mix data to make sure aux ids and inlined string idx do not match. + // aux_idx == inlined_string_idx == 1 + optional string str1 = 1; + // aux_idx == 2 + optional InlinedStringIdxRegressionProto sub = 2; + // aux_idx == 3, inlined_string_idx == 2 + optional string str2 = 3; + // aux_idx == 4, inlined_string_idx == 3 + optional bytes str3 = 4; +} + +message StringParseTester { + optional string optional_string_lowfield = 1; + optional string optional_string_midfield = 1001; + optional string optional_string_hifield = 1000001; + repeated string repeated_string_lowfield = 2; + repeated string repeated_string_midfield = 1002; + repeated string repeated_string_hifield = 1000002; + + extensions 2000000 to max; + extend StringParseTester { + optional string optional_string_ext = 2000000; + repeated string repeated_string_ext = 2000001; + } +} + +message BadFieldNames{ + optional int32 OptionalInt32 = 1; + optional int32 for = 2; +} + +message TestNestedMessageRedaction { + optional string optional_unredacted_nested_string = 1; + optional string optional_redacted_nested_string = 2 [debug_redact = true]; +} + +message RedactedFields { + optional string optional_redacted_string = 1 [debug_redact = true]; + optional string optional_unredacted_string = 2; + repeated string repeated_redacted_string = 3 [debug_redact = true]; + repeated string repeated_unredacted_string = 4; + optional TestNestedMessageRedaction optional_redacted_message = 5 [debug_redact = true]; + optional TestNestedMessageRedaction optional_unredacted_message = 6; + repeated TestNestedMessageRedaction repeated_redacted_message = 7 + [debug_redact = true]; + repeated TestNestedMessageRedaction repeated_unredacted_message = 8; + map map_redacted_string = 9 [debug_redact = true]; + map map_unredacted_string = 10; + optional string optional_redacted_false_string = 11 [debug_redact = false]; + extensions 20 to 30; +} + +extend RedactedFields { + optional string redacted_extension = 20 [debug_redact = true]; +} + +message TestCord{ + optional bytes optional_bytes_cord = 1 [ctype=CORD]; + optional bytes optional_bytes_cord_default = 2 [ctype=CORD, default = "hello"]; +} + +message TestPackedEnumSmallRange { + enum NestedEnum { + UNSPECIFIED = 0; + FOO = 1; + BAR = 2; + BAZ = 3; + } + repeated NestedEnum vals = 1 [packed = true]; +} + +message EnumsForBenchmark { + enum Flat { + A0 = 0; + A1 = 1; + A2 = 2; + A3 = 3; + A4 = 4; + A5 = 5; + A6 = 6; + A7 = 7; + A8 = 8; + A9 = 9; + A10 = 10; + A11 = 11; + A12 = 12; + A13 = 13; + A14 = 14; + A15 = 15; + } + // Has a few holes, bitmap can be used. + enum AlmostFlat { + B0 = 0; + B1 = 1; + B2 = 2; + B3 = 3; + B5 = 5; + B6 = 6; + B7 = 7; + B8 = 8; + B9 = 9; + B11 = 11; + B12 = 12; + B13 = 13; + B14 = 14; + B15 = 15; + B17 = 17; + B19 = 19; + } + enum Sparse { + C536 = 536; + C8387 = 8387; + C9673 = 9673; + C10285 = 10285; + C13318 = 13318; + C15963 = 15963; + C16439 = 16439; + C18197 = 18197; + C19430 = 19430; + C20361 = 20361; + C20706 = 20706; + C21050 = 21050; + C21906 = 21906; + C27265 = 27265; + C30109 = 30109; + C31670 = 31670; + } +} + +message TestMessageWithManyRepeatedPtrFields { + repeated string repeated_string_1 = 1; + repeated string repeated_string_2 = 2; + repeated string repeated_string_3 = 3; + repeated string repeated_string_4 = 4; + repeated string repeated_string_5 = 5; + repeated string repeated_string_6 = 6; + repeated string repeated_string_7 = 7; + repeated string repeated_string_8 = 8; + repeated string repeated_string_9 = 9; + repeated string repeated_string_10 = 10; + repeated string repeated_string_11 = 11; + repeated string repeated_string_12 = 12; + repeated string repeated_string_13 = 13; + repeated string repeated_string_14 = 14; + repeated string repeated_string_15 = 15; + repeated string repeated_string_16 = 16; + repeated string repeated_string_17 = 17; + repeated string repeated_string_18 = 18; + repeated string repeated_string_19 = 19; + repeated string repeated_string_20 = 20; + repeated string repeated_string_21 = 21; + repeated string repeated_string_22 = 22; + repeated string repeated_string_23 = 23; + repeated string repeated_string_24 = 24; + repeated string repeated_string_25 = 25; + repeated string repeated_string_26 = 26; + repeated string repeated_string_27 = 27; + repeated string repeated_string_28 = 28; + repeated string repeated_string_29 = 29; + repeated string repeated_string_30 = 30; + repeated string repeated_string_31 = 31; + repeated string repeated_string_32 = 32; +} + +message MessageCreatorZeroInit { + optional int32 i = 1; + optional double d = 2; + optional MessageCreatorZeroInit m = 3; + oneof one { + string os = 10; + string oc = 11 [ctype=CORD]; + fixed64 of = 12; + MessageCreatorZeroInit ol = 13 [lazy=true]; + } +} + +message MessageCreatorMemcpy { + optional string s = 1; + repeated int32 i = 2 [packed=true]; + optional MessageCreatorMemcpy m = 3 [lazy=true]; + map m2 = 4; +} +message MessageCreatorFunc { + // This one is ArenaDtorNeeds::kRequired so we must run the constructor. + optional string c = 3 [ctype=CORD]; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_arena.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_arena.proto index 7b317399..d70e489c 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_arena.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_arena.proto @@ -1,41 +1,20 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd -syntax = "proto2"; +edition = "2023"; package proto2_arena_unittest; +// Use expanded encoding for repeated fields by default (proto2 behavior). +option features.repeated_field_encoding = EXPANDED; option cc_enable_arenas = true; message NestedMessage { - optional int32 d = 1; + int32 d = 1; } message ArenaMessage { diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_custom_options.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_custom_options.proto index f774c766..70750127 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_custom_options.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_custom_options.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: benjy@google.com (Benjy Weinberger) // Based on original Protocol Buffers design by @@ -108,6 +85,8 @@ message TestMessageWithCustomOptions { int32 oneof_field = 2; } + map map_field = 3 [(field_opt1) = 12345]; + enum AnEnum { option (enum_opt1) = -789; @@ -212,6 +191,26 @@ message SettingRealsFromNegativeInts { option (double_opt) = -154; } +message SettingRealsFromInf { + option (float_opt) = inf; + option (double_opt) = inf; +} + +message SettingRealsFromNegativeInf { + option (float_opt) = -inf; + option (double_opt) = -inf; +} + +message SettingRealsFromNan { + option (float_opt) = nan; + option (double_opt) = nan; +} + +message SettingRealsFromNegativeNan { + option (float_opt) = -nan; + option (double_opt) = -nan; +} + // Options of complex message types, themselves combined and extended in // various ways. @@ -243,7 +242,7 @@ message ComplexOptionType2 { } message ComplexOptionType3 { - optional int32 qux = 1; + optional int32 moo = 1; optional group ComplexOptionType5 = 2 { optional int32 plugh = 3; @@ -251,7 +250,7 @@ message ComplexOptionType3 { } extend ComplexOptionType1 { - optional int32 quux = 7663707; + optional int32 mooo = 7663707; optional ComplexOptionType3 corge = 7663442; } @@ -272,18 +271,18 @@ extend google.protobuf.MessageOptions { // Note that we try various different ways of naming the same extension. message VariousComplexOptions { option (.protobuf_unittest.complex_opt1).foo = 42; - option (protobuf_unittest.complex_opt1).(.protobuf_unittest.quux) = 324; - option (.protobuf_unittest.complex_opt1).(protobuf_unittest.corge).qux = 876; + option (protobuf_unittest.complex_opt1).(.protobuf_unittest.mooo) = 324; + option (.protobuf_unittest.complex_opt1).(protobuf_unittest.corge).moo = 876; option (protobuf_unittest.complex_opt1).foo4 = 99; option (protobuf_unittest.complex_opt1).foo4 = 88; option (complex_opt2).baz = 987; option (complex_opt2).(grault) = 654; option (complex_opt2).bar.foo = 743; - option (complex_opt2).bar.(quux) = 1999; - option (complex_opt2).bar.(protobuf_unittest.corge).qux = 2008; + option (complex_opt2).bar.(mooo) = 1999; + option (complex_opt2).bar.(protobuf_unittest.corge).moo = 2008; option (complex_opt2).(garply).foo = 741; - option (complex_opt2).(garply).(.protobuf_unittest.quux) = 1998; - option (complex_opt2).(protobuf_unittest.garply).(corge).qux = 2121; + option (complex_opt2).(garply).(.protobuf_unittest.mooo) = 1998; + option (complex_opt2).(protobuf_unittest.garply).(corge).moo = 2121; option (ComplexOptionType2.ComplexOptionType4.complex_opt4).waldo = 1971; option (complex_opt2).fred.waldo = 321; option (complex_opt2).barney = { @@ -292,7 +291,7 @@ message VariousComplexOptions { option (complex_opt2).barney = { waldo: 212 }; - option (protobuf_unittest.complex_opt3).qux = 9; + option (protobuf_unittest.complex_opt3).moo = 9; option (complex_opt3).complexoptiontype5.plugh = 22; option (complexopt6).xyzzy = 24; } @@ -437,7 +436,9 @@ message NestedOptionType { // Custom message option that has a required enum field. // WARNING: this is strongly discouraged! message OldOptionType { - enum TestEnum { OLD_VALUE = 0; } + enum TestEnum { + OLD_VALUE = 0; + } required TestEnum value = 1; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_delimited.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_delimited.proto new file mode 100644 index 00000000..6c69cf07 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_delimited.proto @@ -0,0 +1,77 @@ +edition = "2023"; + +package editions_unittest; + +import "google/protobuf/unittest_delimited_import.proto"; + +option java_multiple_files = true; + +// Test various scenarios that are now possible in edition 2023 that weren't in +// google.protobuf. + +message LengthPrefixed { + int32 a = 1; + int32 b = 2; +} + +message NotGroupLikeScope { + int32 a = 1; + int32 b = 2; +} + +message GroupLikeFileScope { + int32 a = 1; + int32 b = 2; +} + +message TestDelimited { + message LengthPrefixed { + int32 a = 1; + int32 b = 2; + } + // Non-delimited field that otherwise looks group-like. + LengthPrefixed lengthprefixed = 1; + + // Nested field for nested tests. + TestDelimited nested = 2 [features.message_encoding = DELIMITED]; + + message GroupLike { + int32 a = 1; + int32 b = 2; + } + + // Truly group-like field. + GroupLike grouplike = 3 [features.message_encoding = DELIMITED]; + + // Delimited field that isn't group-like solely because of its name. + GroupLike notgrouplike = 4 [features.message_encoding = DELIMITED]; + + // Delimited field that isn't group-like because of the scope of its type. + NotGroupLikeScope notgrouplikescope = 5 + [features.message_encoding = DELIMITED]; + + // Delimited field that's grouplike except that it's an imported type. + MessageImport messageimport = 6 [features.message_encoding = DELIMITED]; + + extensions 1000 to max; +} + +extend TestDelimited { + // Non-delimited field that otherwise looks group-like. + LengthPrefixed lengthprefixed = 1004; + + // Truly group-like extension. + GroupLikeFileScope grouplikefilescope = 1000 + [features.message_encoding = DELIMITED]; + + // Delimited extension that isn't group-like because of its name. + NotGroupLikeScope not_group_like_scope = 1001 + [features.message_encoding = DELIMITED]; + + // Delimited extension that isn't group-like because of the scope of its type. + TestDelimited.GroupLike grouplike = 1002 + [features.message_encoding = DELIMITED]; + + // Delimited extension that's grouplike except that it's an imported type. + MessageImport messageimport = 1003 [features.message_encoding = DELIMITED]; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_delimited_import.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_delimited_import.proto new file mode 100644 index 00000000..5dc1a21f --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_delimited_import.proto @@ -0,0 +1,10 @@ +edition = "2023"; + +package editions_unittest; + +option java_multiple_files = true; + +message MessageImport { + int32 a = 1; + int32 b = 2; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_drop_unknown_fields.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_drop_unknown_fields.proto index 8aa3a37b..10a62048 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_drop_unknown_fields.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_drop_unknown_fields.proto @@ -1,38 +1,17 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd -syntax = "proto3"; +edition = "2023"; package unittest_drop_unknown_fields; -option objc_class_prefix = "DropUnknowns"; +// Treat all fields as implicit present by default (proto3 behavior). +option features.field_presence = IMPLICIT; +option objc_class_prefix = "DropUnknowns"; option csharp_namespace = "Google.Protobuf.TestProtos"; message Foo { @@ -50,7 +29,7 @@ message FooWithExtraFields { FOO = 0; BAR = 1; BAZ = 2; - QUX = 3; + MOO = 3; } int32 int32_value = 1; NestedEnum enum_value = 2; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_embed_optimize_for.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_embed_optimize_for.proto index d8b0f9b9..f4f2f894 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_embed_optimize_for.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_embed_optimize_for.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: kenton@google.com (Kenton Varda) // Based on original Protocol Buffers design by @@ -35,10 +12,11 @@ // A proto file which imports a proto file that uses optimize_for = CODE_SIZE. syntax = "proto2"; -import "google/protobuf/unittest_optimize_for.proto"; package protobuf_unittest; +import "google/protobuf/unittest_optimize_for.proto"; + // We optimize for speed here, but we are importing a proto that is optimized // for code size. option optimize_for = SPEED; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_empty.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_empty.proto index 36443e7e..f2411781 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_empty.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_empty.proto @@ -1,33 +1,12 @@ +// NOLINT(no_package_specified): Test proto with no package + // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: // -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - // Author: kenton@google.com (Kenton Varda) // Based on original Protocol Buffers design by // Sanjay Ghemawat, Jeff Dean, and others. @@ -36,3 +15,4 @@ // correctly.) syntax = "proto2"; + diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_enormous_descriptor.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_enormous_descriptor.proto index c700a273..a8b6452a 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_enormous_descriptor.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_enormous_descriptor.proto @@ -1,33 +1,11 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd +// Copyright 2009 Google Inc. All rights reserved. // Author: kenton@google.com (Kenton Varda) // Based on original Protocol Buffers design by // Sanjay Ghemawat, Jeff Dean, and others. @@ -44,6 +22,7 @@ option java_package = "com.google.protobuf"; // Avoid generating insanely long methods. option optimize_for = CODE_SIZE; +// clang-format off message TestEnormousDescriptor { optional string long_field_name_is_looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong_1 = 1 [default="long default value is also loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong"]; optional string long_field_name_is_looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong_2 = 2 [default="long default value is also loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong"]; @@ -1046,3 +1025,4 @@ message TestEnormousDescriptor { optional string long_field_name_is_looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong_999 = 999 [default="long default value is also loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong"]; optional string long_field_name_is_looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong_1000 = 1000 [default="long default value is also loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong"]; } +// clang-format on diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_extension_set.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_extension_set.proto new file mode 100644 index 00000000..0aa923c3 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_extension_set.proto @@ -0,0 +1,28 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +// Author: kenton@google.com (Kenton Varda) +// Based on original Protocol Buffers design by +// Sanjay Ghemawat, Jeff Dean, and others. +// +// This file contains messages for testing extensions. + +syntax = "proto2"; + +package protobuf_unittest; + +option optimize_for = SPEED; +option csharp_namespace = "Google.ProtocolBuffers.TestProtos"; + +// A message with message_set_wire_format. +message TestExtensionSet { + extensions 4 to max; +} + +message TestExtensionSetContainer { + optional TestExtensionSet extension = 1; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_features.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_features.proto new file mode 100644 index 00000000..ddf510c6 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_features.proto @@ -0,0 +1,202 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2023 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +syntax = "proto2"; + +package pb; + +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.FeatureSet { + optional TestFeatures test = 9999; +} + +message TestMessage { + extend google.protobuf.FeatureSet { + optional TestFeatures test_message = 9998; + } + message Nested { + extend google.protobuf.FeatureSet { + optional TestFeatures test_nested = 9997; + } + } +} + +enum EnumFeature { + TEST_ENUM_FEATURE_UNKNOWN = 0; + VALUE1 = 1; + VALUE2 = 2; + VALUE3 = 3; + VALUE4 = 4; + VALUE5 = 5; + VALUE6 = 6; + VALUE7 = 7; + VALUE8 = 8; + VALUE9 = 9; + VALUE10 = 10; + VALUE11 = 11; + VALUE12 = 12; + VALUE13 = 13; + VALUE14 = 14; + VALUE15 = 15; + VALUE_EMPTY_SUPPORT = 98 [feature_support = {}]; + VALUE_FUTURE = 99 [feature_support = { + edition_introduced: EDITION_99997_TEST_ONLY + edition_deprecated: EDITION_99998_TEST_ONLY + deprecation_warning: "Custom feature deprecation warning" + edition_removed: EDITION_99999_TEST_ONLY + }]; +} + +message TestFeatures { + optional EnumFeature file_feature = 1 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FILE, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" }, + edition_defaults = { edition: EDITION_PROTO3, value: "VALUE2" }, + edition_defaults = { edition: EDITION_2023, value: "VALUE3" }, + edition_defaults = { edition: EDITION_99997_TEST_ONLY, value: "VALUE4" }, + edition_defaults = { edition: EDITION_99998_TEST_ONLY, value: "VALUE5" } + ]; + optional EnumFeature extension_range_feature = 2 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_EXTENSION_RANGE, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + optional EnumFeature message_feature = 3 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_MESSAGE, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + optional EnumFeature field_feature = 4 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + optional EnumFeature oneof_feature = 5 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_ONEOF, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + optional EnumFeature enum_feature = 6 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_ENUM, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + optional EnumFeature enum_entry_feature = 7 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_ENUM_ENTRY, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + optional EnumFeature service_feature = 8 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_SERVICE, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + optional EnumFeature method_feature = 9 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_METHOD, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + optional EnumFeature multiple_feature = 10 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FILE, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_MESSAGE, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_ENUM_ENTRY, + targets = TARGET_TYPE_SERVICE, + targets = TARGET_TYPE_METHOD, + targets = TARGET_TYPE_ONEOF, + targets = TARGET_TYPE_EXTENSION_RANGE, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + + optional bool bool_field_feature = 11 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "false" }, + edition_defaults = { edition: EDITION_99997_TEST_ONLY, value: "true" } + ]; + + optional EnumFeature source_feature = 15 [ + retention = RETENTION_SOURCE, + targets = TARGET_TYPE_FILE, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_MESSAGE, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_ENUM_ENTRY, + targets = TARGET_TYPE_SERVICE, + targets = TARGET_TYPE_METHOD, + targets = TARGET_TYPE_ONEOF, + targets = TARGET_TYPE_EXTENSION_RANGE, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + + optional EnumFeature source_feature2 = 16 [ + retention = RETENTION_SOURCE, + targets = TARGET_TYPE_FILE, + targets = TARGET_TYPE_FIELD, + targets = TARGET_TYPE_MESSAGE, + targets = TARGET_TYPE_ENUM, + targets = TARGET_TYPE_ENUM_ENTRY, + targets = TARGET_TYPE_SERVICE, + targets = TARGET_TYPE_METHOD, + targets = TARGET_TYPE_ONEOF, + targets = TARGET_TYPE_EXTENSION_RANGE, + feature_support.edition_introduced = EDITION_2023, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" } + ]; + + optional EnumFeature removed_feature = 17 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FILE, + targets = TARGET_TYPE_FIELD, + feature_support = { + edition_introduced: EDITION_2023 + edition_deprecated: EDITION_2023 + deprecation_warning: "Custom feature deprecation warning" + edition_removed: EDITION_2024 + }, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" }, + edition_defaults = { edition: EDITION_2023, value: "VALUE2" }, + edition_defaults = { edition: EDITION_2024, value: "VALUE3" } + ]; + + optional EnumFeature future_feature = 18 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FILE, + targets = TARGET_TYPE_FIELD, + feature_support = { edition_introduced: EDITION_2024 }, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" }, + edition_defaults = { edition: EDITION_2024, value: "VALUE2" } + ]; + + optional EnumFeature legacy_feature = 19 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FILE, + targets = TARGET_TYPE_FIELD, + feature_support = { + edition_introduced: EDITION_PROTO3 + edition_removed: EDITION_2023 + }, + edition_defaults = { edition: EDITION_LEGACY, value: "VALUE1" }, + edition_defaults = { edition: EDITION_2023, value: "VALUE2" } + ]; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import.proto index 8d03e388..23fa9a8f 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: kenton@google.com (Kenton Varda) // Based on original Protocol Buffers design by @@ -64,7 +41,6 @@ enum ImportEnum { IMPORT_BAZ = 9; } - // To use an enum in a map, it must has the first value as 0. enum ImportEnumForMap { UNKNOWN = 0; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_lite.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_lite.proto index a7afa452..88cce299 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_lite.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_lite.proto @@ -1,51 +1,30 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: kenton@google.com (Kenton Varda) // // This is like unittest_import.proto but with optimize_for = LITE_RUNTIME. -syntax = "proto2"; +edition = "2023"; + package protobuf_unittest_import; -option optimize_for = LITE_RUNTIME; +import public "google/protobuf/unittest_import_public_lite.proto"; +option optimize_for = LITE_RUNTIME; option java_package = "com.google.protobuf"; -import public "google/protobuf/unittest_import_public_lite.proto"; - message ImportMessageLite { - optional int32 d = 1; + int32 d = 1; } enum ImportEnumLite { + option features.enum_type = CLOSED; + IMPORT_LITE_FOO = 7; IMPORT_LITE_BAR = 8; IMPORT_LITE_BAZ = 9; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_public.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_public.proto index ffaf7736..ff428143 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_public.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_public.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: liujisi@google.com (Pherl Liu) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_public_lite.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_public_lite.proto index 33549c22..30172833 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_public_lite.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_import_public_lite.proto @@ -1,43 +1,19 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: liujisi@google.com (Pherl Liu) -syntax = "proto2"; +edition = "2023"; package protobuf_unittest_import; option optimize_for = LITE_RUNTIME; - option java_package = "com.google.protobuf"; message PublicImportMessageLite { - optional int32 e = 1; + int32 e = 1; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_invalid_features.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_invalid_features.proto new file mode 100644 index 00000000..aaecbf48 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_invalid_features.proto @@ -0,0 +1,24 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2023 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +syntax = "proto2"; + +package pb; + +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.FeatureSet { + optional TestInvalidFeatures test_invalid = 9996; +} + +message TestInvalidFeatures { + repeated int32 repeated_feature = 1 [ + retention = RETENTION_RUNTIME, + targets = TARGET_TYPE_FIELD, + edition_defaults = { edition: EDITION_2023, value: "3" } + ]; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies.proto index 2f5efd2a..5df67c77 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: trafacz@google.com (Todd Rafacz) // Based on original Protocol Buffers design by @@ -34,15 +11,15 @@ // // A proto file we will use for unit testing. -syntax = "proto2"; +edition = "2023"; import "google/protobuf/unittest_lazy_dependencies_custom_option.proto"; // Some generic_services option(s) added automatically. // See: http://go/proto2-generic-services-default -option cc_generic_services = true; // auto-added -option java_generic_services = true; // auto-added -option py_generic_services = true; // auto-added +option cc_generic_services = true; // auto-added +option java_generic_services = true; // auto-added +option py_generic_services = true; // auto-added option cc_enable_arenas = true; // We don't put this in a package within proto2 because we need to make sure @@ -64,11 +41,10 @@ option java_outer_classname = "UnittestLazyImportsProto"; // descriptor lazily and return it. message ImportedMessage { - optional LazyMessage lazy_message = 1; + LazyMessage lazy_message = 1; } -message MessageCustomOption { -} +message MessageCustomOption {} message MessageCustomOption2 { option (lazy_enum_option) = LAZY_ENUM_0; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies_custom_option.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies_custom_option.proto index 22438257..3b055dc6 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies_custom_option.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies_custom_option.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: trafacz@google.com (Todd Rafacz) // Based on original Protocol Buffers design by @@ -34,16 +11,16 @@ // // A proto file we will use for unit testing. -syntax = "proto2"; +edition = "2023"; -import "google/protobuf/unittest_lazy_dependencies_enum.proto"; import "google/protobuf/descriptor.proto"; +import "google/protobuf/unittest_lazy_dependencies_enum.proto"; // Some generic_services option(s) added automatically. // See: http://go/proto2-generic-services-default -option cc_generic_services = true; // auto-added -option java_generic_services = true; // auto-added -option py_generic_services = true; // auto-added +option cc_generic_services = true; // auto-added +option java_generic_services = true; // auto-added +option py_generic_services = true; // auto-added option cc_enable_arenas = true; // We don't put this in a package within proto2 because we need to make sure @@ -59,9 +36,9 @@ option optimize_for = SPEED; option java_outer_classname = "UnittestLazyImportsCustomOptionProto"; message LazyMessage { - optional int32 a = 1; + int32 a = 1; } extend google.protobuf.MessageOptions { - optional LazyEnum lazy_enum_option = 138596335 [default = LAZY_ENUM_1]; + LazyEnum lazy_enum_option = 138596335 [default = LAZY_ENUM_1]; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies_enum.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies_enum.proto index 9be64d85..851abc42 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies_enum.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lazy_dependencies_enum.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: trafacz@google.com (Todd Rafacz) // Based on original Protocol Buffers design by @@ -34,13 +11,16 @@ // // A proto file we will use for unit testing. -syntax = "proto2"; +edition = "2023"; + +// Treat all enums as closed by default (proto2 behavior). +option features.enum_type = CLOSED; // Some generic_services option(s) added automatically. // See: http://go/proto2-generic-services-default -option cc_generic_services = true; // auto-added -option java_generic_services = true; // auto-added -option py_generic_services = true; // auto-added +option cc_generic_services = true; // auto-added +option java_generic_services = true; // auto-added +option py_generic_services = true; // auto-added option cc_enable_arenas = true; // We don't put this in a package within proto2 because we need to make sure diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_legacy_features.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_legacy_features.proto new file mode 100644 index 00000000..77a72da8 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_legacy_features.proto @@ -0,0 +1,18 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +// Test that features with legacy descriptor helpers get properly converted. + +edition = "2023"; + +package legacy_features_unittest; + +message TestEditionsMessage { + int32 required_field = 1 [features.field_presence = LEGACY_REQUIRED]; + TestEditionsMessage delimited_field = 2 + [features.message_encoding = DELIMITED]; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite.proto index 92282a6f..4bc78c4d 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite.proto @@ -1,43 +1,23 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: kenton@google.com (Kenton Varda) // // This is like unittest.proto but with optimize_for = LITE_RUNTIME. -syntax = "proto2"; +edition = "2023"; package protobuf_unittest; import "google/protobuf/unittest_import_lite.proto"; +option features.enum_type = CLOSED; +option features.repeated_field_encoding = EXPANDED; +option features.utf8_validation = NONE; option cc_enable_arenas = true; option optimize_for = LITE_RUNTIME; option java_package = "com.google.protobuf"; @@ -45,12 +25,13 @@ option java_package = "com.google.protobuf"; // Same as TestAllTypes but with the lite runtime. message TestAllTypesLite { message NestedMessage { - optional int32 bb = 1; - optional int64 cc = 2; + int32 bb = 1; + int64 cc = 2; + repeated int32 dd = 3 [features.repeated_field_encoding = PACKED]; } message NestedMessage2 { - optional int32 dd = 1; + int32 dd = 1; } enum NestedEnum { @@ -60,43 +41,44 @@ message TestAllTypesLite { } // Singular - optional int32 optional_int32 = 1; - optional int64 optional_int64 = 2; - optional uint32 optional_uint32 = 3; - optional uint64 optional_uint64 = 4; - optional sint32 optional_sint32 = 5; - optional sint64 optional_sint64 = 6; - optional fixed32 optional_fixed32 = 7; - optional fixed64 optional_fixed64 = 8; - optional sfixed32 optional_sfixed32 = 9; - optional sfixed64 optional_sfixed64 = 10; - optional float optional_float = 11; - optional double optional_double = 12; - optional bool optional_bool = 13; - optional string optional_string = 14; - optional bytes optional_bytes = 15; - - optional group OptionalGroup = 16 { - optional int32 a = 17; + int32 optional_int32 = 1; + int64 optional_int64 = 2; + uint32 optional_uint32 = 3; + uint64 optional_uint64 = 4; + sint32 optional_sint32 = 5; + sint64 optional_sint64 = 6; + fixed32 optional_fixed32 = 7; + fixed64 optional_fixed64 = 8; + sfixed32 optional_sfixed32 = 9; + sfixed64 optional_sfixed64 = 10; + float optional_float = 11; + double optional_double = 12; + bool optional_bool = 13; + string optional_string = 14; + bytes optional_bytes = 15; + + message OptionalGroup { + int32 a = 17; } - optional NestedMessage optional_nested_message = 18; - optional ForeignMessageLite optional_foreign_message = 19; - optional protobuf_unittest_import.ImportMessageLite optional_import_message = - 20; + OptionalGroup optionalgroup = 16 [features.message_encoding = DELIMITED]; - optional NestedEnum optional_nested_enum = 21; - optional ForeignEnumLite optional_foreign_enum = 22; - optional protobuf_unittest_import.ImportEnumLite optional_import_enum = 23; + NestedMessage optional_nested_message = 18; + ForeignMessageLite optional_foreign_message = 19; + protobuf_unittest_import.ImportMessageLite optional_import_message = 20; + NestedEnum optional_nested_enum = 21; + ForeignEnumLite optional_foreign_enum = 22; + protobuf_unittest_import.ImportEnumLite optional_import_enum = 23; + string optional_string_piece = 24 [ctype = STRING_PIECE]; - optional string optional_string_piece = 24 [ctype = STRING_PIECE]; - optional string optional_cord = 25 [ctype = CORD]; + string optional_cord = 25 [ctype = CORD]; // Defined in unittest_import_public.proto - optional protobuf_unittest_import.PublicImportMessageLite + protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26; + NestedMessage optional_lazy_message = 27 [lazy = true]; - optional NestedMessage optional_lazy_message = 27 [lazy = true]; + NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; // Repeated repeated int32 repeated_int32 = 31; @@ -115,50 +97,67 @@ message TestAllTypesLite { repeated string repeated_string = 44; repeated bytes repeated_bytes = 45; - repeated group RepeatedGroup = 46 { - optional int32 a = 47; + message RepeatedGroup { + int32 a = 47; } + repeated RepeatedGroup repeatedgroup = 46 + [features.message_encoding = DELIMITED]; + repeated NestedMessage repeated_nested_message = 48; repeated ForeignMessageLite repeated_foreign_message = 49; repeated protobuf_unittest_import.ImportMessageLite repeated_import_message = 50; - repeated NestedEnum repeated_nested_enum = 51; repeated ForeignEnumLite repeated_foreign_enum = 52; repeated protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53; - repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; + repeated string repeated_cord = 55 [ctype = CORD]; - repeated NestedMessage repeated_lazy_message = 57 [lazy = true]; + repeated NestedMessage repeated_lazy_message = 57; // Singular with defaults - optional int32 default_int32 = 61 [default = 41]; - optional int64 default_int64 = 62 [default = 42]; - optional uint32 default_uint32 = 63 [default = 43]; - optional uint64 default_uint64 = 64 [default = 44]; - optional sint32 default_sint32 = 65 [default = -45]; - optional sint64 default_sint64 = 66 [default = 46]; - optional fixed32 default_fixed32 = 67 [default = 47]; - optional fixed64 default_fixed64 = 68 [default = 48]; - optional sfixed32 default_sfixed32 = 69 [default = 49]; - optional sfixed64 default_sfixed64 = 70 [default = -50]; - optional float default_float = 71 [default = 51.5]; - optional double default_double = 72 [default = 52e3]; - optional bool default_bool = 73 [default = true]; - optional string default_string = 74 [default = "hello"]; - optional bytes default_bytes = 75 [default = "world"]; - - optional NestedEnum default_nested_enum = 81 [default = BAR]; - optional ForeignEnumLite default_foreign_enum = 82 - [default = FOREIGN_LITE_BAR]; - optional protobuf_unittest_import.ImportEnumLite default_import_enum = 83 + int32 default_int32 = 61 [default = 41]; + + int64 default_int64 = 62 [default = 42]; + + uint32 default_uint32 = 63 [default = 43]; + + uint64 default_uint64 = 64 [default = 44]; + + sint32 default_sint32 = 65 [default = -45]; + + sint64 default_sint64 = 66 [default = 46]; + + fixed32 default_fixed32 = 67 [default = 47]; + + fixed64 default_fixed64 = 68 [default = 48]; + + sfixed32 default_sfixed32 = 69 [default = 49]; + + sfixed64 default_sfixed64 = 70 [default = -50]; + + float default_float = 71 [default = 51.5]; + + double default_double = 72 [default = 5.2e4]; + + bool default_bool = 73 [default = true]; + + string default_string = 74 [default = "hello"]; + + bytes default_bytes = 75 [default = "world"]; + + NestedEnum default_nested_enum = 81 [default = BAR]; + + ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR]; + + protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR]; - optional string default_string_piece = 84 - [ctype = STRING_PIECE, default = "abc"]; - optional string default_cord = 85 [ctype = CORD, default = "123"]; + string default_string_piece = 84 [ctype = STRING_PIECE, default = "abc"]; + + string default_cord = 85 [ctype = CORD, default = "123"]; // For oneof test oneof oneof_field { @@ -167,15 +166,16 @@ message TestAllTypesLite { string oneof_string = 113; bytes oneof_bytes = 114; NestedMessage oneof_lazy_nested_message = 115 [lazy = true]; + NestedMessage2 oneof_nested_message2 = 117; } // Tests toString for non-repeated fields with a list suffix - optional int32 deceptively_named_list = 116; + int32 deceptively_named_list = 116; } message ForeignMessageLite { - optional int32 c = 1; + int32 c = 1; } enum ForeignEnumLite { @@ -185,20 +185,43 @@ enum ForeignEnumLite { } message TestPackedTypesLite { - repeated int32 packed_int32 = 90 [packed = true]; - repeated int64 packed_int64 = 91 [packed = true]; - repeated uint32 packed_uint32 = 92 [packed = true]; - repeated uint64 packed_uint64 = 93 [packed = true]; - repeated sint32 packed_sint32 = 94 [packed = true]; - repeated sint64 packed_sint64 = 95 [packed = true]; - repeated fixed32 packed_fixed32 = 96 [packed = true]; - repeated fixed64 packed_fixed64 = 97 [packed = true]; - repeated sfixed32 packed_sfixed32 = 98 [packed = true]; - repeated sfixed64 packed_sfixed64 = 99 [packed = true]; - repeated float packed_float = 100 [packed = true]; - repeated double packed_double = 101 [packed = true]; - repeated bool packed_bool = 102 [packed = true]; - repeated ForeignEnumLite packed_enum = 103 [packed = true]; + repeated int32 packed_int32 = 90 [features.repeated_field_encoding = PACKED]; + + repeated int64 packed_int64 = 91 [features.repeated_field_encoding = PACKED]; + + repeated uint32 packed_uint32 = 92 + [features.repeated_field_encoding = PACKED]; + + repeated uint64 packed_uint64 = 93 + [features.repeated_field_encoding = PACKED]; + + repeated sint32 packed_sint32 = 94 + [features.repeated_field_encoding = PACKED]; + + repeated sint64 packed_sint64 = 95 + [features.repeated_field_encoding = PACKED]; + + repeated fixed32 packed_fixed32 = 96 + [features.repeated_field_encoding = PACKED]; + + repeated fixed64 packed_fixed64 = 97 + [features.repeated_field_encoding = PACKED]; + + repeated sfixed32 packed_sfixed32 = 98 + [features.repeated_field_encoding = PACKED]; + + repeated sfixed64 packed_sfixed64 = 99 + [features.repeated_field_encoding = PACKED]; + + repeated float packed_float = 100 [features.repeated_field_encoding = PACKED]; + + repeated double packed_double = 101 + [features.repeated_field_encoding = PACKED]; + + repeated bool packed_bool = 102 [features.repeated_field_encoding = PACKED]; + + repeated ForeignEnumLite packed_enum = 103 + [features.repeated_field_encoding = PACKED]; } message TestAllExtensionsLite { @@ -207,46 +230,45 @@ message TestAllExtensionsLite { extend TestAllExtensionsLite { // Singular - optional int32 optional_int32_extension_lite = 1; - optional int64 optional_int64_extension_lite = 2; - optional uint32 optional_uint32_extension_lite = 3; - optional uint64 optional_uint64_extension_lite = 4; - optional sint32 optional_sint32_extension_lite = 5; - optional sint64 optional_sint64_extension_lite = 6; - optional fixed32 optional_fixed32_extension_lite = 7; - optional fixed64 optional_fixed64_extension_lite = 8; - optional sfixed32 optional_sfixed32_extension_lite = 9; - optional sfixed64 optional_sfixed64_extension_lite = 10; - optional float optional_float_extension_lite = 11; - optional double optional_double_extension_lite = 12; - optional bool optional_bool_extension_lite = 13; - optional string optional_string_extension_lite = 14; - optional bytes optional_bytes_extension_lite = 15; - - optional group OptionalGroup_extension_lite = 16 { - optional int32 a = 17; - } - - optional TestAllTypesLite.NestedMessage - optional_nested_message_extension_lite = 18; - optional ForeignMessageLite optional_foreign_message_extension_lite = 19; - optional protobuf_unittest_import.ImportMessageLite + int32 optional_int32_extension_lite = 1; + int64 optional_int64_extension_lite = 2; + uint32 optional_uint32_extension_lite = 3; + uint64 optional_uint64_extension_lite = 4; + sint32 optional_sint32_extension_lite = 5; + sint64 optional_sint64_extension_lite = 6; + fixed32 optional_fixed32_extension_lite = 7; + fixed64 optional_fixed64_extension_lite = 8; + sfixed32 optional_sfixed32_extension_lite = 9; + sfixed64 optional_sfixed64_extension_lite = 10; + float optional_float_extension_lite = 11; + double optional_double_extension_lite = 12; + bool optional_bool_extension_lite = 13; + string optional_string_extension_lite = 14; + bytes optional_bytes_extension_lite = 15; + OptionalGroup_extension_lite optionalgroup_extension_lite = 16 + [features.message_encoding = DELIMITED]; + + TestAllTypesLite.NestedMessage optional_nested_message_extension_lite = 18; + ForeignMessageLite optional_foreign_message_extension_lite = 19; + protobuf_unittest_import.ImportMessageLite optional_import_message_extension_lite = 20; - - optional TestAllTypesLite.NestedEnum optional_nested_enum_extension_lite = 21; - optional ForeignEnumLite optional_foreign_enum_extension_lite = 22; - optional protobuf_unittest_import.ImportEnumLite - optional_import_enum_extension_lite = 23; - - optional string optional_string_piece_extension_lite = 24 - [ctype = STRING_PIECE]; - optional string optional_cord_extension_lite = 25 [ctype = CORD]; - - optional protobuf_unittest_import.PublicImportMessageLite + TestAllTypesLite.NestedEnum optional_nested_enum_extension_lite = 21; + ForeignEnumLite optional_foreign_enum_extension_lite = 22; + protobuf_unittest_import.ImportEnumLite optional_import_enum_extension_lite = + 23; + string optional_string_piece_extension_lite = 24 [ctype = STRING_PIECE]; + + // TODO: ctype=CORD is not supported for extension. Add + // ctype=CORD option back after it is supported. + string optional_cord_extension_lite = 25; + protobuf_unittest_import.PublicImportMessageLite optional_public_import_message_extension_lite = 26; + TestAllTypesLite.NestedMessage optional_lazy_message_extension_lite = 27 + [lazy = true]; - optional TestAllTypesLite.NestedMessage optional_lazy_message_extension_lite = - 27 [lazy = true]; + TestAllTypesLite.NestedMessage + optional_unverified_lazy_message_extension_lite = 28 + [unverified_lazy = true]; // Repeated repeated int32 repeated_int32_extension_lite = 31; @@ -264,64 +286,87 @@ extend TestAllExtensionsLite { repeated bool repeated_bool_extension_lite = 43; repeated string repeated_string_extension_lite = 44; repeated bytes repeated_bytes_extension_lite = 45; - - repeated group RepeatedGroup_extension_lite = 46 { - optional int32 a = 47; - } + repeated RepeatedGroup_extension_lite repeatedgroup_extension_lite = 46 + [features.message_encoding = DELIMITED]; repeated TestAllTypesLite.NestedMessage repeated_nested_message_extension_lite = 48; repeated ForeignMessageLite repeated_foreign_message_extension_lite = 49; repeated protobuf_unittest_import.ImportMessageLite repeated_import_message_extension_lite = 50; - repeated TestAllTypesLite.NestedEnum repeated_nested_enum_extension_lite = 51; repeated ForeignEnumLite repeated_foreign_enum_extension_lite = 52; repeated protobuf_unittest_import.ImportEnumLite repeated_import_enum_extension_lite = 53; - repeated string repeated_string_piece_extension_lite = 54 [ctype = STRING_PIECE]; - repeated string repeated_cord_extension_lite = 55 [ctype = CORD]; + // TODO: ctype=CORD is not supported for extension. Add + // ctype=CORD option back after it is supported. + repeated string repeated_cord_extension_lite = 55; repeated TestAllTypesLite.NestedMessage repeated_lazy_message_extension_lite = 57 [lazy = true]; // Singular with defaults - optional int32 default_int32_extension_lite = 61 [default = 41]; - optional int64 default_int64_extension_lite = 62 [default = 42]; - optional uint32 default_uint32_extension_lite = 63 [default = 43]; - optional uint64 default_uint64_extension_lite = 64 [default = 44]; - optional sint32 default_sint32_extension_lite = 65 [default = -45]; - optional sint64 default_sint64_extension_lite = 66 [default = 46]; - optional fixed32 default_fixed32_extension_lite = 67 [default = 47]; - optional fixed64 default_fixed64_extension_lite = 68 [default = 48]; - optional sfixed32 default_sfixed32_extension_lite = 69 [default = 49]; - optional sfixed64 default_sfixed64_extension_lite = 70 [default = -50]; - optional float default_float_extension_lite = 71 [default = 51.5]; - optional double default_double_extension_lite = 72 [default = 52e3]; - optional bool default_bool_extension_lite = 73 [default = true]; - optional string default_string_extension_lite = 74 [default = "hello"]; - optional bytes default_bytes_extension_lite = 75 [default = "world"]; - - optional TestAllTypesLite.NestedEnum default_nested_enum_extension_lite = 81 + int32 default_int32_extension_lite = 61 [default = 41]; + + int64 default_int64_extension_lite = 62 [default = 42]; + + uint32 default_uint32_extension_lite = 63 [default = 43]; + + uint64 default_uint64_extension_lite = 64 [default = 44]; + + sint32 default_sint32_extension_lite = 65 [default = -45]; + + sint64 default_sint64_extension_lite = 66 [default = 46]; + + fixed32 default_fixed32_extension_lite = 67 [default = 47]; + + fixed64 default_fixed64_extension_lite = 68 [default = 48]; + + sfixed32 default_sfixed32_extension_lite = 69 [default = 49]; + + sfixed64 default_sfixed64_extension_lite = 70 [default = -50]; + + float default_float_extension_lite = 71 [default = 51.5]; + + double default_double_extension_lite = 72 [default = 5.2e4]; + + bool default_bool_extension_lite = 73 [default = true]; + + string default_string_extension_lite = 74 [default = "hello"]; + + bytes default_bytes_extension_lite = 75 [default = "world"]; + + TestAllTypesLite.NestedEnum default_nested_enum_extension_lite = 81 [default = BAR]; - optional ForeignEnumLite default_foreign_enum_extension_lite = 82 + + ForeignEnumLite default_foreign_enum_extension_lite = 82 [default = FOREIGN_LITE_BAR]; - optional protobuf_unittest_import.ImportEnumLite - default_import_enum_extension_lite = 83 [default = IMPORT_LITE_BAR]; - optional string default_string_piece_extension_lite = 84 + protobuf_unittest_import.ImportEnumLite default_import_enum_extension_lite = 83 + [default = IMPORT_LITE_BAR]; + + string default_string_piece_extension_lite = 84 [ctype = STRING_PIECE, default = "abc"]; - optional string default_cord_extension_lite = 85 - [ctype = CORD, default = "123"]; + + // TODO: ctype=CORD is not supported for extension. Add + // ctype=CORD option back after it is supported. + string default_cord_extension_lite = 85 [default = "123"]; // For oneof test - optional uint32 oneof_uint32_extension_lite = 111; - optional TestAllTypesLite.NestedMessage oneof_nested_message_extension_lite = - 112; - optional string oneof_string_extension_lite = 113; - optional bytes oneof_bytes_extension_lite = 114; + uint32 oneof_uint32_extension_lite = 111; + TestAllTypesLite.NestedMessage oneof_nested_message_extension_lite = 112; + string oneof_string_extension_lite = 113; + bytes oneof_bytes_extension_lite = 114; +} + +message OptionalGroup_extension_lite { + int32 a = 17; +} + +message RepeatedGroup_extension_lite { + int32 a = 47; } message TestPackedExtensionsLite { @@ -329,35 +374,66 @@ message TestPackedExtensionsLite { } extend TestPackedExtensionsLite { - repeated int32 packed_int32_extension_lite = 90 [packed = true]; - repeated int64 packed_int64_extension_lite = 91 [packed = true]; - repeated uint32 packed_uint32_extension_lite = 92 [packed = true]; - repeated uint64 packed_uint64_extension_lite = 93 [packed = true]; - repeated sint32 packed_sint32_extension_lite = 94 [packed = true]; - repeated sint64 packed_sint64_extension_lite = 95 [packed = true]; - repeated fixed32 packed_fixed32_extension_lite = 96 [packed = true]; - repeated fixed64 packed_fixed64_extension_lite = 97 [packed = true]; - repeated sfixed32 packed_sfixed32_extension_lite = 98 [packed = true]; - repeated sfixed64 packed_sfixed64_extension_lite = 99 [packed = true]; - repeated float packed_float_extension_lite = 100 [packed = true]; - repeated double packed_double_extension_lite = 101 [packed = true]; - repeated bool packed_bool_extension_lite = 102 [packed = true]; - repeated ForeignEnumLite packed_enum_extension_lite = 103 [packed = true]; + repeated int32 packed_int32_extension_lite = 90 + [features.repeated_field_encoding = PACKED]; + + repeated int64 packed_int64_extension_lite = 91 + [features.repeated_field_encoding = PACKED]; + + repeated uint32 packed_uint32_extension_lite = 92 + [features.repeated_field_encoding = PACKED]; + + repeated uint64 packed_uint64_extension_lite = 93 + [features.repeated_field_encoding = PACKED]; + + repeated sint32 packed_sint32_extension_lite = 94 + [features.repeated_field_encoding = PACKED]; + + repeated sint64 packed_sint64_extension_lite = 95 + [features.repeated_field_encoding = PACKED]; + + repeated fixed32 packed_fixed32_extension_lite = 96 + [features.repeated_field_encoding = PACKED]; + + repeated fixed64 packed_fixed64_extension_lite = 97 + [features.repeated_field_encoding = PACKED]; + + repeated sfixed32 packed_sfixed32_extension_lite = 98 + [features.repeated_field_encoding = PACKED]; + + repeated sfixed64 packed_sfixed64_extension_lite = 99 + [features.repeated_field_encoding = PACKED]; + + repeated float packed_float_extension_lite = 100 + [features.repeated_field_encoding = PACKED]; + + repeated double packed_double_extension_lite = 101 + [features.repeated_field_encoding = PACKED]; + + repeated bool packed_bool_extension_lite = 102 + [features.repeated_field_encoding = PACKED]; + + repeated ForeignEnumLite packed_enum_extension_lite = 103 + [features.repeated_field_encoding = PACKED]; } message TestNestedExtensionLite { extend TestAllExtensionsLite { - optional int32 nested_extension = 12345; + int32 nested_extension = 12345; } } // Test that deprecated fields work. We only verify that they compile (at one // point this failed). message TestDeprecatedLite { - optional int32 deprecated_field = 1 [deprecated = true]; - required int32 deprecated_field2 = 2 [deprecated = true]; - optional string deprecated_field3 = 3 [deprecated = true]; - optional TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; + int32 deprecated_field = 1 [deprecated = true]; + + int32 deprecated_field2 = 2 + [features.field_presence = LEGACY_REQUIRED, deprecated = true]; + + string deprecated_field3 = 3 [deprecated = true]; + + TestDeprecatedLite deprecated_field4 = 4 [deprecated = true]; } // See the comments of the same type in unittest.proto. @@ -366,31 +442,56 @@ message TestParsingMergeLite { repeated TestAllTypesLite field1 = 1; repeated TestAllTypesLite field2 = 2; repeated TestAllTypesLite field3 = 3; - repeated group Group1 = 10 { - optional TestAllTypesLite field1 = 11; + + message Group1 { + TestAllTypesLite field1 = 11; } - repeated group Group2 = 20 { - optional TestAllTypesLite field1 = 21; + + repeated Group1 group1 = 10 [features.message_encoding = DELIMITED]; + + message Group2 { + TestAllTypesLite field1 = 21; } + + repeated Group2 group2 = 20 [features.message_encoding = DELIMITED]; + repeated TestAllTypesLite ext1 = 1000; repeated TestAllTypesLite ext2 = 1001; } - required TestAllTypesLite required_all_types = 1; - optional TestAllTypesLite optional_all_types = 2; + + TestAllTypesLite required_all_types = 1 + [features.field_presence = LEGACY_REQUIRED]; + + TestAllTypesLite optional_all_types = 2; repeated TestAllTypesLite repeated_all_types = 3; - optional group OptionalGroup = 10 { - optional TestAllTypesLite optional_group_all_types = 11; + + message OptionalGroup { + TestAllTypesLite optional_group_all_types = 11; } - repeated group RepeatedGroup = 20 { - optional TestAllTypesLite repeated_group_all_types = 21; + + OptionalGroup optionalgroup = 10 [features.message_encoding = DELIMITED]; + + message RepeatedGroup { + TestAllTypesLite repeated_group_all_types = 21; } + + repeated RepeatedGroup repeatedgroup = 20 + [features.message_encoding = DELIMITED]; + extensions 1000 to max; + extend TestParsingMergeLite { - optional TestAllTypesLite optional_ext = 1000; + TestAllTypesLite optional_ext = 1000; repeated TestAllTypesLite repeated_ext = 1001; } } +// Test that the correct exception is thrown by parseFrom in a corner case +// involving merging, extensions, and required fields. +message TestMergeExceptionLite { + TestAllExtensionsLite all_extensions = 1; +} + // TestEmptyMessageLite is used to test unknown fields support in lite mode. message TestEmptyMessageLite {} @@ -400,7 +501,9 @@ message TestEmptyMessageWithExtensionsLite { extensions 1 to max; } -enum V1EnumLite { V1_FIRST = 1; } +enum V1EnumLite { + V1_FIRST = 1; +} enum V2EnumLite { V2_FIRST = 1; @@ -408,30 +511,36 @@ enum V2EnumLite { } message V1MessageLite { - required int32 int_field = 1; - optional V1EnumLite enum_field = 2 [default = V1_FIRST]; + int32 int_field = 1 [features.field_presence = LEGACY_REQUIRED]; + + V1EnumLite enum_field = 2 [default = V1_FIRST]; } message V2MessageLite { - required int32 int_field = 1; - optional V2EnumLite enum_field = 2 [default = V2_FIRST]; + int32 int_field = 1 [features.field_presence = LEGACY_REQUIRED]; + + V2EnumLite enum_field = 2 [default = V2_FIRST]; } message TestHugeFieldNumbersLite { - optional int32 optional_int32 = 536870000; - optional int32 fixed_32 = 536870001; - repeated int32 repeated_int32 = 536870002 [packed = false]; - repeated int32 packed_int32 = 536870003 [packed = true]; - - optional ForeignEnumLite optional_enum = 536870004; - optional string optional_string = 536870005; - optional bytes optional_bytes = 536870006; - optional ForeignMessageLite optional_message = 536870007; - - optional group OptionalGroup = 536870008 { - optional int32 group_a = 536870009; + int32 optional_int32 = 536870000; + int32 fixed_32 = 536870001; + repeated int32 repeated_int32 = 536870002; + repeated int32 packed_int32 = 536870003 + [features.repeated_field_encoding = PACKED]; + + ForeignEnumLite optional_enum = 536870004; + string optional_string = 536870005; + bytes optional_bytes = 536870006; + ForeignMessageLite optional_message = 536870007; + + message OptionalGroup { + int32 group_a = 536870009; } + OptionalGroup optionalgroup = 536870008 + [features.message_encoding = DELIMITED]; + map string_string_map = 536870010; oneof oneof_field { @@ -441,11 +550,15 @@ message TestHugeFieldNumbersLite { bytes oneof_bytes = 536870014; } - extensions 536860000 to 536869999; + extensions 536860000 to 536869999 [declaration = { + number: 536860000 + full_name: ".protobuf_unittest.test_all_types_lite" + type: ".protobuf_unittest.TestAllTypesLite" + }]; } extend TestHugeFieldNumbersLite { - optional TestAllTypesLite test_all_types_lite = 536860000; + TestAllTypesLite test_all_types_lite = 536860000; } message TestOneofParsingLite { @@ -454,20 +567,32 @@ message TestOneofParsingLite { TestAllTypesLite oneof_submessage = 2; string oneof_string = 3; bytes oneof_bytes = 4 [default = "default bytes"]; + string oneof_string_cord = 5 [ctype = CORD, default = "default Cord"]; + bytes oneof_bytes_cord = 6 [ctype = CORD]; + string oneof_string_string_piece = 7 [ctype = STRING_PIECE]; + bytes oneof_bytes_string_piece = 8 [ctype = STRING_PIECE, default = "default StringPiece"]; + V2EnumLite oneof_enum = 9; } } +message TestMessageSetLite { + option message_set_wire_format = true; + + extensions 100 to max; +} + // The following four messages are set up to test for wire compatibility between // packed and non-packed repeated fields. We use the field number 2048, because // that is large enough to require a 3-byte varint for the tag. message PackedInt32 { - repeated int32 repeated_int32 = 2048 [packed = true]; + repeated int32 repeated_int32 = 2048 + [features.repeated_field_encoding = PACKED]; } message NonPackedInt32 { @@ -475,7 +600,8 @@ message NonPackedInt32 { } message PackedFixed32 { - repeated fixed32 repeated_fixed32 = 2048 [packed = true]; + repeated fixed32 repeated_fixed32 = 2048 + [features.repeated_field_encoding = PACKED]; } message NonPackedFixed32 { @@ -496,6 +622,10 @@ message DupEnum { } message RecursiveMessage { - optional RecursiveMessage recurse = 1; - optional bytes payload = 2; + RecursiveMessage recurse = 1; + bytes payload = 2; +} + +message RecursiveGroup { + RecursiveGroup recurse = 1 [features.message_encoding = DELIMITED]; } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite_edition_2024.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite_edition_2024.proto new file mode 100644 index 00000000..b56f7d02 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite_edition_2024.proto @@ -0,0 +1,10 @@ +edition = "2024"; + +package protobuf_unittest; + +option optimize_for = LITE_RUNTIME; + +enum EnumNameStringView { + ENUM_NAME_STRING_VIEW_DEFAULT = 0; + ENUM_NAME_STRING_VIEW_ANOTHER_VALUE = 1; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite_imports_nonlite.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite_imports_nonlite.proto index 8a470160..681e6a87 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite_imports_nonlite.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_lite_imports_nonlite.proto @@ -1,38 +1,16 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: kenton@google.com (Kenton Varda) // // Tests that a "lite" message can import a regular message. syntax = "proto2"; + package protobuf_unittest; import "google/protobuf/unittest.proto"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_mset.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_mset.proto index 4e7a8c51..8c7a7b15 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_mset.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_mset.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: kenton@google.com (Kenton Varda) // Based on original Protocol Buffers design by @@ -48,6 +25,18 @@ message TestMessageSetContainer { optional proto2_wireformat_unittest.TestMessageSet message_set = 1; } +message NestedTestMessageSetContainer { + optional TestMessageSetContainer container = 1; + optional NestedTestMessageSetContainer child = 2; + optional NestedTestMessageSetContainer lazy_child = 3 [lazy = true]; +} + +message NestedTestInt { + optional fixed32 a = 1; + optional int32 b = 3; + optional NestedTestInt child = 2; +} + message TestMessageSetExtension1 { extend proto2_wireformat_unittest.TestMessageSet { optional TestMessageSetExtension1 message_set_extension = 1545008; @@ -64,6 +53,14 @@ message TestMessageSetExtension2 { optional string str = 25; } +message TestMessageSetExtension3 { + extend proto2_wireformat_unittest.TestMessageSet { + optional TestMessageSetExtension3 message_set_extension = 195273129; + } + optional NestedTestInt msg = 35; + required int32 required_int = 36; +} + // This message was used to generate // //net/proto2/python/internal/testdata/message_set_message, but is commented // out since it must not actually exist in code, to simulate an "unknown" diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_mset_wire_format.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_mset_wire_format.proto index 04e4352e..548e248e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_mset_wire_format.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_mset_wire_format.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: kenton@google.com (Kenton Varda) // Based on original Protocol Buffers design by @@ -35,6 +12,7 @@ // This file contains messages for testing message_set_wire_format. syntax = "proto2"; + package proto2_wireformat_unittest; option cc_enable_arenas = true; @@ -44,7 +22,15 @@ option csharp_namespace = "Google.ProtocolBuffers.TestProtos"; // A message with message_set_wire_format. message TestMessageSet { option message_set_wire_format = true; - extensions 4 to max; + + extensions 4 to 529999999; + + extensions 530000000 to max + [declaration = { + number: 1952731290, + full_name: ".protobuf_unittest_v1api.TestMessageSetExtension3.message_set_extension", + type: ".protobuf_unittest_v1api.TestMessageSetExtension3" + }]; } message TestMessageSetWireFormatContainer { diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_no_field_presence.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_no_field_presence.proto index 994afff4..cc02acc9 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_no_field_presence.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_no_field_presence.proto @@ -1,42 +1,22 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // A proto file used to test a message type with no explicit field presence. -syntax = "proto3"; +edition = "2023"; -// We want to test embedded proto2 messages, so include some proto2 types. -import "google/protobuf/unittest.proto"; +// Treat all fields as implicit present by default (proto3 behavior). +option features.field_presence = IMPLICIT; +// We want to test embedded proto2 messages, so include some proto2 types. package proto2_nofieldpresence_unittest; +import "google/protobuf/unittest.proto"; + // This proto includes every type of field in both singular and repeated // forms. message TestAllTypes { @@ -53,65 +33,66 @@ message TestAllTypes { // Singular // TODO: remove 'optional' labels as soon as CL 69188077 is LGTM'd to make // 'optional' optional. - int32 optional_int32 = 1; - int64 optional_int64 = 2; - uint32 optional_uint32 = 3; - uint64 optional_uint64 = 4; - sint32 optional_sint32 = 5; - sint64 optional_sint64 = 6; - fixed32 optional_fixed32 = 7; - fixed64 optional_fixed64 = 8; - sfixed32 optional_sfixed32 = 9; + int32 optional_int32 = 1; + int64 optional_int64 = 2; + uint32 optional_uint32 = 3; + uint64 optional_uint64 = 4; + sint32 optional_sint32 = 5; + sint64 optional_sint64 = 6; + fixed32 optional_fixed32 = 7; + fixed64 optional_fixed64 = 8; + sfixed32 optional_sfixed32 = 9; sfixed64 optional_sfixed64 = 10; - float optional_float = 11; - double optional_double = 12; - bool optional_bool = 13; - string optional_string = 14; - bytes optional_bytes = 15; - - NestedMessage optional_nested_message = 18; - ForeignMessage optional_foreign_message = 19; - protobuf_unittest.TestAllTypes optional_proto2_message = 20; - - NestedEnum optional_nested_enum = 21; - ForeignEnum optional_foreign_enum = 22; + float optional_float = 11; + double optional_double = 12; + bool optional_bool = 13; + string optional_string = 14; + bytes optional_bytes = 15; + + NestedMessage optional_nested_message = 18; + ForeignMessage optional_foreign_message = 19; + protobuf_unittest.TestAllTypes optional_proto2_message = 20; + + NestedEnum optional_nested_enum = 21; + ForeignEnum optional_foreign_enum = 22; // N.B.: proto2-enum-type fields not allowed, because their default values // might not be zero. - //optional protobuf_unittest.ForeignEnum optional_proto2_enum = 23; + // optional protobuf_unittest.ForeignEnum optional_proto2_enum = + // 23; - string optional_string_piece = 24 [ctype=STRING_PIECE]; - string optional_cord = 25 [ctype=CORD]; + string optional_string_piece = 24 [ctype = STRING_PIECE]; + string optional_cord = 25 [ctype = CORD]; - NestedMessage optional_lazy_message = 30 [lazy=true]; + NestedMessage optional_lazy_message = 30 [lazy = true]; // Repeated - repeated int32 repeated_int32 = 31; - repeated int64 repeated_int64 = 32; - repeated uint32 repeated_uint32 = 33; - repeated uint64 repeated_uint64 = 34; - repeated sint32 repeated_sint32 = 35; - repeated sint64 repeated_sint64 = 36; - repeated fixed32 repeated_fixed32 = 37; - repeated fixed64 repeated_fixed64 = 38; + repeated int32 repeated_int32 = 31; + repeated int64 repeated_int64 = 32; + repeated uint32 repeated_uint32 = 33; + repeated uint64 repeated_uint64 = 34; + repeated sint32 repeated_sint32 = 35; + repeated sint64 repeated_sint64 = 36; + repeated fixed32 repeated_fixed32 = 37; + repeated fixed64 repeated_fixed64 = 38; repeated sfixed32 repeated_sfixed32 = 39; repeated sfixed64 repeated_sfixed64 = 40; - repeated float repeated_float = 41; - repeated double repeated_double = 42; - repeated bool repeated_bool = 43; - repeated string repeated_string = 44; - repeated bytes repeated_bytes = 45; + repeated float repeated_float = 41; + repeated double repeated_double = 42; + repeated bool repeated_bool = 43; + repeated string repeated_string = 44; + repeated bytes repeated_bytes = 45; - repeated NestedMessage repeated_nested_message = 48; - repeated ForeignMessage repeated_foreign_message = 49; - repeated protobuf_unittest.TestAllTypes repeated_proto2_message = 50; + repeated NestedMessage repeated_nested_message = 48; + repeated ForeignMessage repeated_foreign_message = 49; + repeated protobuf_unittest.TestAllTypes repeated_proto2_message = 50; - repeated NestedEnum repeated_nested_enum = 51; - repeated ForeignEnum repeated_foreign_enum = 52; + repeated NestedEnum repeated_nested_enum = 51; + repeated ForeignEnum repeated_foreign_enum = 52; - repeated string repeated_string_piece = 54 [ctype=STRING_PIECE]; - repeated string repeated_cord = 55 [ctype=CORD]; + repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; + repeated string repeated_cord = 55 [ctype = CORD]; - repeated NestedMessage repeated_lazy_message = 57 [lazy=true]; + repeated NestedMessage repeated_lazy_message = 57; oneof oneof_field { uint32 oneof_uint32 = 111; @@ -131,6 +112,12 @@ message ForeignMessage { int32 c = 1; } +// Same as ForeignMessage, but all fields have explicit presence. +// It can be useful for testing explicit-implicit presence interop behaviour. +message ExplicitForeignMessage { + int32 c = 1 [features.field_presence = EXPLICIT]; +} + enum ForeignEnum { FOREIGN_FOO = 0; FOREIGN_BAR = 1; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_no_generic_services.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_no_generic_services.proto index c2f042ba..af3ecb57 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_no_generic_services.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_no_generic_services.proto @@ -1,36 +1,14 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: kenton@google.com (Kenton Varda) syntax = "proto2"; + package protobuf_unittest.no_generic_services_test; @@ -50,5 +28,5 @@ extend TestMessage { } service TestService { - rpc Foo(TestMessage) returns(TestMessage); + rpc Foo(TestMessage) returns (TestMessage); } diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_optimize_for.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_optimize_for.proto index ee9cc7bd..c5e17072 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_optimize_for.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_optimize_for.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd // Author: kenton@google.com (Kenton Varda) // Based on original Protocol Buffers design by @@ -35,10 +12,11 @@ // A proto file which uses optimize_for = CODE_SIZE. syntax = "proto2"; -import "google/protobuf/unittest.proto"; package protobuf_unittest; +import "google/protobuf/unittest.proto"; + option optimize_for = CODE_SIZE; message TestOptimizedForSize { diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_preserve_unknown_enum.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_preserve_unknown_enum.proto index 2f91332c..d289741b 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_preserve_unknown_enum.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_preserve_unknown_enum.proto @@ -1,38 +1,17 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd -syntax = "proto3"; +edition = "2023"; package proto3_preserve_unknown_enum_unittest; -option objc_class_prefix = "UnknownEnums"; +// Treat all fields as implicit present by default (proto3 behavior). +option features.field_presence = IMPLICIT; +option objc_class_prefix = "UnknownEnums"; option csharp_namespace = "Google.Protobuf.TestProtos"; enum MyEnum { @@ -51,7 +30,7 @@ enum MyEnumPlusExtra { message MyMessage { MyEnum e = 1; repeated MyEnum repeated_e = 2; - repeated MyEnum repeated_packed_e = 3 [packed=true]; + repeated MyEnum repeated_packed_e = 3; repeated MyEnumPlusExtra repeated_packed_unexpected_e = 4; // not packed oneof o { MyEnum oneof_e_1 = 5; @@ -62,8 +41,8 @@ message MyMessage { message MyMessagePlusExtra { MyEnumPlusExtra e = 1; repeated MyEnumPlusExtra repeated_e = 2; - repeated MyEnumPlusExtra repeated_packed_e = 3 [packed=true]; - repeated MyEnumPlusExtra repeated_packed_unexpected_e = 4 [packed=true]; + repeated MyEnumPlusExtra repeated_packed_e = 3; + repeated MyEnumPlusExtra repeated_packed_unexpected_e = 4; oneof o { MyEnumPlusExtra oneof_e_1 = 5; MyEnumPlusExtra oneof_e_2 = 6; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_preserve_unknown_enum2.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_preserve_unknown_enum2.proto index adf42968..2d14f17f 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_preserve_unknown_enum2.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_preserve_unknown_enum2.proto @@ -1,37 +1,19 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd -syntax = "proto2"; +edition = "2023"; package proto2_preserve_unknown_enum_unittest; +// Treat all enums as closed and use expanded encoding for repeated fields by +// default (proto2 behavior). +option features.enum_type = CLOSED; +option features.repeated_field_encoding = EXPANDED; + enum MyEnum { FOO = 0; BAR = 1; @@ -39,9 +21,10 @@ enum MyEnum { } message MyMessage { - optional MyEnum e = 1; + MyEnum e = 1; repeated MyEnum repeated_e = 2; - repeated MyEnum repeated_packed_e = 3 [packed=true]; + repeated MyEnum repeated_packed_e = 3 + [features.repeated_field_encoding = PACKED]; repeated MyEnum repeated_packed_unexpected_e = 4; // not packed oneof o { MyEnum oneof_e_1 = 5; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3.proto index 89c8799a..d88521af 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd syntax = "proto3"; @@ -76,7 +53,7 @@ message TestAllTypes { // optional int32 a = 17; // } - NestedMessage optional_nested_message = 18; + optional NestedMessage optional_nested_message = 18; ForeignMessage optional_foreign_message = 19; protobuf_unittest_import.ImportMessage optional_import_message = 20; @@ -96,6 +73,7 @@ message TestAllTypes { 26; NestedMessage optional_lazy_message = 27 [lazy = true]; + NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy = true]; protobuf_unittest_import.ImportMessage optional_lazy_import_message = 115 [lazy = true]; @@ -136,7 +114,7 @@ message TestAllTypes { repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; repeated string repeated_cord = 55 [ctype = CORD]; - repeated NestedMessage repeated_lazy_message = 57 [lazy = true]; + repeated NestedMessage repeated_lazy_message = 57; oneof oneof_field { uint32 oneof_uint32 = 111; @@ -200,6 +178,7 @@ enum ForeignEnum { FOREIGN_FOO = 4; FOREIGN_BAR = 5; FOREIGN_BAZ = 6; + FOREIGN_LARGE = 123456; // Large enough to escape the Boxed Integer cache. } // TestEmptyMessage is used to test behavior of unknown fields. @@ -226,3 +205,79 @@ message TestOneof2 { BAZ = 3; } } + +// If bool fields are incorrectly assumed to have hasbits, InternalSwap would +// result in swapping N more 32bit hasbits incorrectly. Considering padding, we +// need many bool fields to stress this. +message TestHasbits { + bool b1 = 1; + bool b2 = 2; + bool b3 = 3; + bool b4 = 4; + bool b5 = 5; + bool b6 = 6; + bool b7 = 7; + bool b8 = 8; + bool b9 = 9; + bool b10 = 10; + bool b11 = 11; + bool b12 = 12; + bool b13 = 13; + bool b14 = 14; + bool b15 = 15; + bool b16 = 16; + bool b17 = 17; + bool b18 = 18; + bool b19 = 19; + bool b20 = 20; + bool b21 = 21; + bool b22 = 22; + bool b23 = 23; + bool b24 = 24; + bool b25 = 25; + bool b26 = 26; + bool b27 = 27; + bool b28 = 28; + bool b29 = 29; + bool b30 = 30; + bool b31 = 31; + bool b32 = 32; + bool b33 = 33; + bool b34 = 34; + bool b35 = 35; + bool b36 = 36; + bool b37 = 37; + bool b38 = 38; + bool b39 = 39; + bool b40 = 40; + bool b41 = 41; + bool b42 = 42; + bool b43 = 43; + bool b44 = 44; + bool b45 = 45; + bool b46 = 46; + bool b47 = 47; + bool b48 = 48; + bool b49 = 49; + bool b50 = 50; + bool b51 = 51; + bool b52 = 52; + bool b53 = 53; + bool b54 = 54; + bool b55 = 55; + bool b56 = 56; + bool b57 = 57; + bool b58 = 58; + bool b59 = 59; + bool b60 = 60; + bool b61 = 61; + bool b62 = 62; + bool b63 = 63; + bool b64 = 64; + bool b65 = 65; + bool b66 = 66; + bool b67 = 67; + bool b68 = 68; + bool b69 = 69; + TestAllTypes child = 100; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_arena.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_arena.proto index 17529397..96a9ea85 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_arena.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_arena.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd syntax = "proto3"; @@ -96,6 +73,7 @@ message TestAllTypes { optional_public_import_message = 26; NestedMessage optional_lazy_message = 27 [lazy=true]; + NestedMessage optional_unverified_lazy_message = 28 [unverified_lazy=true]; protobuf_unittest_import.ImportMessage optional_lazy_import_message = 115 [lazy = true]; @@ -153,7 +131,7 @@ message TestAllTypes { repeated string repeated_string_piece = 54 [ctype=STRING_PIECE]; repeated string repeated_cord = 55 [ctype=CORD]; - repeated NestedMessage repeated_lazy_message = 57 [lazy=true]; + repeated NestedMessage repeated_lazy_message = 57 ; oneof oneof_field { uint32 oneof_uint32 = 111; @@ -205,6 +183,7 @@ message NestedTestAllTypes { NestedTestAllTypes child = 1; TestAllTypes payload = 2; repeated NestedTestAllTypes repeated_child = 3; + TestAllTypes lazy_payload = 4 [lazy = true]; } // Define these after TestAllTypes to make sure the compiler can handle @@ -218,6 +197,7 @@ enum ForeignEnum { FOREIGN_FOO = 4; FOREIGN_BAR = 5; FOREIGN_BAZ = 6; + FOREIGN_LARGE = 123456; // Large enough to escape the Boxed Integer cache. } // TestEmptyMessage is used to test behavior of unknown fields. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_arena_lite.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_arena_lite.proto index 0d4218b9..9c736756 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_arena_lite.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_arena_lite.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd syntax = "proto3"; @@ -135,7 +112,7 @@ message TestAllTypes { repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; repeated string repeated_cord = 55 [ctype = CORD]; - repeated NestedMessage repeated_lazy_message = 57 [lazy = true]; + repeated NestedMessage repeated_lazy_message = 57 ; oneof oneof_field { uint32 oneof_uint32 = 111; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_bad_macros.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_bad_macros.proto new file mode 100644 index 00000000..14fbcde2 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_bad_macros.proto @@ -0,0 +1,75 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2023 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +syntax = "proto3"; + +package protobuf_unittest; + +option csharp_namespace = "ProtobufUnittest"; +option java_multiple_files = true; +option java_package = "com.google.protobuf.testing.proto"; + +// `google/protobuf/port_def.inc` #undef's a number of inconvenient macros +// defined in system headers under varying circumstances. The code generated +// from this file will not compile if those `#undef` calls are accidentally +// removed. + +// This generates `GID_MAX`, which is a macro in some circumstances. +enum GID { + GID_UNUSED = 0; +} + +// This generates `UID_MAX`, which is a mcro in some circumstances. +enum UID { + UID_UNUSED = 0; +} + +// Just a container for bad macro names. Some of these do not follow the normal +// naming conventions, this is intentional, we just want to trigger a build +// failure if the macro is left defined. +enum BadNames { + // autoheader defines this in some circumstances. + PACKAGE = 0; + // The comment says "a few common headers define this". + PACKED = 1; + // Defined in many Linux system headers. + linux = 2; + // This is often a macro in ``. + DOMAIN = 3; + // These are defined in both Windows and macOS headers. + TRUE = 4; + FALSE = 5; + // Sometimes defined in Windows system headers. + CREATE_NEW = 6; + DELETE = 7; + DOUBLE_CLICK = 8; + ERROR = 9; + ERROR_BUSY = 10; + ERROR_INSTALL_FAILED = 11; + ERROR_NOT_FOUND = 12; + GetClassName = 13; + GetCurrentTime = 14; + GetMessage = 15; + GetObject = 16; + IGNORE = 17; + IN = 18; + INPUT_KEYBOARD = 19; + NO_ERROR = 20; + OUT = 21; + OPTIONAL = 22; + NEAR = 23; + NO_DATA = 24; + REASON_UNKNOWN = 25; + SERVICE_DISABLED = 26; + SEVERITY_ERROR = 27; + STATUS_PENDING = 28; + STRICT = 29; + // Sometimed defined in macOS system headers. + TYPE_BOOL = 30; + // Defined in macOS, Windows, and Linux headers. + DEBUG = 31; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_extensions.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_extensions.proto new file mode 100644 index 00000000..a59c43e7 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_extensions.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package protobuf_unittest; + +import "google/protobuf/descriptor.proto"; + +option java_outer_classname = "UnittestProto3Extensions"; + +// For testing proto3 extension behaviors. +message Proto3FileExtensions { + extend google.protobuf.FileOptions { + int32 singular_int = 1001; + repeated int32 repeated_int = 1002; + } +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_lite.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_lite.proto index 837bb03c..ffc6681b 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_lite.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_lite.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd syntax = "proto3"; @@ -134,7 +111,7 @@ message TestAllTypes { repeated string repeated_string_piece = 54 [ctype = STRING_PIECE]; repeated string repeated_cord = 55 [ctype = CORD]; - repeated NestedMessage repeated_lazy_message = 57 [lazy = true]; + repeated NestedMessage repeated_lazy_message = 57 ; oneof oneof_field { uint32 oneof_uint32 = 111; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_optional.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_optional.proto index 09d17182..1169847f 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_optional.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_proto3_optional.proto @@ -1,32 +1,9 @@ // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ // -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd syntax = "proto3"; @@ -34,6 +11,7 @@ package protobuf_unittest; import "google/protobuf/descriptor.proto"; +option csharp_namespace = "ProtobufUnittest"; option java_multiple_files = true; option java_package = "com.google.protobuf.testing.proto"; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_retention.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_retention.proto new file mode 100644 index 00000000..99983638 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_retention.proto @@ -0,0 +1,185 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +syntax = "proto2"; + +package protobuf_unittest; + +import "google/protobuf/descriptor.proto"; + +option csharp_namespace = "ProtobufUnittest"; + +// Retention attributes set directly on custom options +extend google.protobuf.FileOptions { + optional int32 plain_option = 505092806; + optional int32 runtime_retention_option = 505039132 + [retention = RETENTION_RUNTIME]; + optional int32 source_retention_option = 504878676 + [retention = RETENTION_SOURCE]; +} + +option (plain_option) = 1; +option (runtime_retention_option) = 2; +option (source_retention_option) = 3; + +// Retention attributes set on fields nested within a message +message OptionsMessage { + optional int32 plain_field = 1; + optional int32 runtime_retention_field = 2 [retention = RETENTION_RUNTIME]; + optional int32 source_retention_field = 3 [retention = RETENTION_SOURCE]; +} + +extend google.protobuf.FileOptions { + optional OptionsMessage file_option = 504871168; +} + +option (file_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 +}; + +// Retention attribute nested inside a repeated message field +extend google.protobuf.FileOptions { + repeated OptionsMessage repeated_options = 504823570; +} + +option (repeated_options) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 +}; + +extend google.protobuf.ExtensionRangeOptions { + optional OptionsMessage extension_range_option = 504822148; +} + +extend google.protobuf.MessageOptions { + optional OptionsMessage message_option = 504820819; +} + +extend google.protobuf.FieldOptions { + optional OptionsMessage field_option = 504589219; +} + +extend google.protobuf.OneofOptions { + optional OptionsMessage oneof_option = 504479153; +} + +extend google.protobuf.EnumOptions { + optional OptionsMessage enum_option = 504451567; +} + +extend google.protobuf.EnumValueOptions { + optional OptionsMessage enum_entry_option = 504450522; +} + +extend google.protobuf.ServiceOptions { + optional OptionsMessage service_option = 504387709; +} + +extend google.protobuf.MethodOptions { + optional OptionsMessage method_option = 504349420; +} + +message Extendee { + extensions 1, 2; +} + +extend Extendee { + optional int32 i = 1 [(field_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }]; +} + +message TopLevelMessage { + option (message_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }; + + message NestedMessage { + option (message_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }; + } + + enum NestedEnum { + option (enum_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }; + + NESTED_UNKNOWN = 0; + } + + optional float f = 1 [(field_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }]; + + oneof o { + option (oneof_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }; + + int64 i = 2; + } + + extensions 10 to 100 [(extension_range_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }]; + + extend Extendee { + optional string s = 2 [(field_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }]; + } +} + +enum TopLevelEnum { + option (enum_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }; + + TOP_LEVEL_UNKNOWN = 0 [(enum_entry_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }]; +} + +service Service { + option (service_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }; + + rpc DoStuff(TopLevelMessage) returns (TopLevelMessage) { + option (method_option) = { + plain_field: 1 + runtime_retention_field: 2 + source_retention_field: 3 + }; + } +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_string_type.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_string_type.proto new file mode 100644 index 00000000..611588f1 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_string_type.proto @@ -0,0 +1,16 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + +edition = "2023"; + +package protobuf_unittest; + +import "google/protobuf/cpp_features.proto"; + +message EntryProto { + bytes value = 3 [features.(pb.cpp).string_type = CORD]; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_string_view.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_string_view.proto new file mode 100644 index 00000000..543ef7c2 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_string_view.proto @@ -0,0 +1,18 @@ +edition = "2023"; + +package protobuf_unittest; + +import "google/protobuf/cpp_features.proto"; + +option java_multiple_files = true; +option optimize_for = SPEED; +option features.(pb.cpp).string_type = VIEW; + +// NEXT_TAG = 5; +message TestStringView { + string singular_string = 1; + bytes singular_bytes = 2; + + repeated string repeated_string = 3; + repeated bytes repeated_bytes = 4; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_well_known_types.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_well_known_types.proto index c9075244..05f25d6a 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_well_known_types.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/unittest_well_known_types.proto @@ -1,3 +1,10 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file or at +// https://developers.google.com/open-source/licenses/bsd + syntax = "proto3"; package protobuf_unittest; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/wrappers.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/wrappers.proto index d49dd53c..1959fa55 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/wrappers.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/protobuf/wrappers.proto @@ -27,7 +27,7 @@ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - +// // Wrappers for primitive (non-message) types. These types are useful // for embedding primitives in the `google.protobuf.Any` type and for places // where we need to distinguish between the absence of a primitive @@ -42,13 +42,13 @@ syntax = "proto3"; package google.protobuf; -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; option cc_enable_arenas = true; option go_package = "google.golang.org/protobuf/types/known/wrapperspb"; option java_package = "com.google.protobuf"; option java_outer_classname = "WrappersProto"; option java_multiple_files = true; option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; // Wrapper message for `double`. // diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/BUILD.bazel index 645f329f..18835afa 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/BUILD.bazel @@ -31,7 +31,11 @@ proto_library( ############################################################################## # Java ############################################################################## -load("@com_google_googleapis_imports//:imports.bzl", "java_proto_library") +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_proto_library", +) java_proto_library( name = "rpc_java_proto", @@ -42,6 +46,20 @@ java_proto_library( ], ) +# Please DO-NOT-REMOVE this section. +# This is required to generate java files for these protos. +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-rpc-java", + transport = "grpc+rest", + deps = [ + "error_details_proto", + "status_proto", + ":code_proto", + ":rpc_java_proto", + ], +) + ############################################################################## # Go ############################################################################## @@ -107,3 +125,29 @@ py_proto_library( name = "status_py_proto", deps = [":status_proto"], ) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_proto_library", +) + +php_proto_library( + name = "rpc_php_proto", + deps = [ + ":code_proto", + ":error_details_proto", + ":status_proto", + ], +) + +# Please DO-NOT-REMOVE this section. +# This is required to generate php files for these protos. +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-rpc-php", + deps = [":rpc_php_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/README.md b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/README.md index 164bc809..b4775007 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/README.md +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/README.md @@ -1,5 +1,18 @@ -# Google RPC +## RPC (Remote Procedure Call) Types -This package contains type definitions for general RPC systems. While -[gRPC](https://github.com/grpc) is using these definitions, they -are not designed specifically to support gRPC. +This package contains [protocol buffer][protobuf] types that represent remote procedure +call concepts. While [gRPC](https://grpc.io) uses these types, we encourage their +use in any interested RPC implementation to promote compatibility and consistency. + +### Key Concepts + +- **Code**: An enum that represents an error code returned by an RPC. These error codes + map to HTTP codes, but are slightly finer-grained. Every gRPC code has exactly one + corresponding HTTP code; however, some HTTP codes have more than one corresponding + gRPC code. +- **Error details**: Any of the types contained in `error_details.proto` which provide + extra details about particular types of failures. +- **Status**: Combines a code, message, and error details to represent the success or + failure details of an RPC call. + +[protobuf]: https://developers.google.com/protocol-buffers/ diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/code.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/code.proto index 4b87f230..ba8f2bf9 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/code.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/code.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ option objc_class_prefix = "RPC"; // `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply. // Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`. enum Code { - // Not an error; returned on success + // Not an error; returned on success. // // HTTP Mapping: 200 OK OK = 0; @@ -115,11 +115,11 @@ enum Code { // Service implementors can use the following guidelines to decide // between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: // (a) Use `UNAVAILABLE` if the client can retry just the failing call. - // (b) Use `ABORTED` if the client should retry at a higher level - // (e.g., when a client-specified test-and-set fails, indicating the - // client should restart a read-modify-write sequence). + // (b) Use `ABORTED` if the client should retry at a higher level. For + // example, when a client-specified test-and-set fails, indicating the + // client should restart a read-modify-write sequence. // (c) Use `FAILED_PRECONDITION` if the client should not retry until - // the system state has been explicitly fixed. E.g., if an "rmdir" + // the system state has been explicitly fixed. For example, if an "rmdir" // fails because the directory is non-empty, `FAILED_PRECONDITION` // should be returned since the client should not retry unless // the files are deleted from the directory. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/BUILD.bazel index 4c7d85cb..46c13095 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/BUILD.bazel @@ -21,11 +21,23 @@ proto_library( ], ) +# Manually added target. See b/274975612 for why. +proto_library( + name = "audit_context_proto", + srcs = [ + "audit_context.proto", + ], + deps = [ + "@com_google_protobuf//:struct_proto", + ], +) + ############################################################################## # Java ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", "java_proto_library", ) @@ -34,6 +46,27 @@ java_proto_library( deps = [":attribute_context_proto"], ) +# Manually added target. See b/274975612 for why. +java_proto_library( + name = "audit_context_java_proto", + deps = [":audit_context_proto"], +) + +# Please DO-NOT-REMOVE this section. +# This is required to generate java files for these protos. +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-context-java", + transport = "grpc+rest", + deps = [ + ":attribute_context_java_proto", + ":attribute_context_proto", + # Manually added. See b/274975612 for why. + ":audit_context_java_proto", + ":audit_context_proto", + ], +) + ############################################################################## # Go ############################################################################## @@ -47,9 +80,16 @@ go_proto_library( compilers = ["@io_bazel_rules_go//proto:go_grpc"], importpath = "google.golang.org/genproto/googleapis/rpc/context/attribute_context", protos = [":attribute_context_proto"], - deps = [ + deps = [], +) - ], +# Manually added target. See b/274975612 for why. +go_proto_library( + name = "audit_context_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/rpc/context;context", + protos = [":audit_context_proto"], + deps = [], ) ############################################################################## @@ -74,17 +114,31 @@ moved_proto_library( py_proto_library( name = "attribute_context_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", deps = [":attribute_context_moved_proto"], ) +# Manually added target. See b/274975612 for why. +moved_proto_library( + name = "audit_context_moved_proto", + srcs = [":audit_context_proto"], + deps = [ + "@com_google_protobuf//:struct_proto", + ], +) + +# Manually added target. See b/274975612 for why. +py_proto_library( + name = "audit_context_py_proto", + deps = [":audit_context_moved_proto"], +) + ############################################################################## # PHP -# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules. ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - php_proto_library = "php_proto_library2", + "php_gapic_assembly_pkg", + "php_proto_library", ) php_proto_library( @@ -92,6 +146,23 @@ php_proto_library( deps = [":attribute_context_proto"], ) +# Manually added target. See b/274975612 for why. +php_proto_library( + name = "audit_context_php_proto", + deps = [":audit_context_proto"], +) + +# Please DO-NOT-REMOVE this section. +# This is required to generate PHP files for these protos. +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-context-php", + deps = [ + ":attribute_context_php_proto", + ":audit_context_php_proto", + ], +) + ############################################################################## # Ruby ############################################################################## @@ -105,6 +176,12 @@ ruby_proto_library( deps = [":attribute_context_proto"], ) +# Manually added target. See b/274975612 for why. +ruby_proto_library( + name = "audit_context_ruby_proto", + deps = [":audit_context_proto"], +) + ############################################################################## # C# ############################################################################## @@ -118,6 +195,12 @@ csharp_proto_library( deps = [":attribute_context_proto"], ) +# Manually added target. See b/274975612 for why. +csharp_proto_library( + name = "audit_context_csharp_proto", + deps = [":audit_context_proto"], +) + ############################################################################## # C++ ############################################################################## @@ -131,4 +214,8 @@ cc_proto_library( deps = [":attribute_context_proto"], ) - +# Manually added target. See b/274975612 for why. +cc_proto_library( + name = "audit_context_cc_proto", + deps = [":audit_context_proto"], +) diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/attribute_context.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/attribute_context.proto index 30fe6f25..d6871eb4 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/attribute_context.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/attribute_context.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -61,7 +61,7 @@ message AttributeContext { // The identity of this peer. Similar to `Request.auth.principal`, but // relative to the peer instead of the request. For example, the - // idenity associated with a load balancer that forwared the request. + // identity associated with a load balancer that forwarded the request. string principal = 7; // The CLDR country/region code associated with the above IP address. @@ -170,7 +170,7 @@ message AttributeContext { // lowercased, because HTTP header keys are case-insensitive. map headers = 3; - // The HTTP URL path. + // The HTTP URL path, excluding the query parameters. string path = 4; // The HTTP request `Host` header value. @@ -223,7 +223,7 @@ message AttributeContext { // the response. google.protobuf.Timestamp time = 4; - // The length of time it takes the backend service to fully respond to a + // The amount of time it takes the backend service to fully respond to a // request. Measured from when the destination service starts to send the // request to the backend until when the destination service receives the // complete response from the backend. @@ -256,7 +256,8 @@ message AttributeContext { // The type of the resource. The syntax is platform-specific because // different platforms define their resources differently. // - // For Google APIs, the type format must be "{service}/{kind}". + // For Google APIs, the type format must be "{service}/{kind}", such as + // "pubsub.googleapis.com/Topic". string type = 3; // The labels or tags on the resource, such as AWS resource tags and diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/audit_context.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/audit_context.proto new file mode 100644 index 00000000..74945cd4 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/context/audit_context.proto @@ -0,0 +1,49 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc.context; + +import "google/protobuf/struct.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/rpc/context;context"; +option java_multiple_files = true; +option java_outer_classname = "AuditContextProto"; +option java_package = "com.google.rpc.context"; + +// `AuditContext` provides information that is needed for audit logging. +message AuditContext { + // Serialized audit log. + bytes audit_log = 1; + + // An API request message that is scrubbed based on the method annotation. + // This field should only be filled if audit_log field is present. + // Service Control will use this to assemble a complete log for Cloud Audit + // Logs and Google internal audit logs. + google.protobuf.Struct scrubbed_request = 2; + + // An API response message that is scrubbed based on the method annotation. + // This field should only be filled if audit_log field is present. + // Service Control will use this to assemble a complete log for Cloud Audit + // Logs and Google internal audit logs. + google.protobuf.Struct scrubbed_response = 3; + + // Number of scrubbed response items. + int32 scrubbed_response_item_count = 4; + + // Audit resource name which is scrubbed. + string target_resource = 5; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/error_details.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/error_details.proto index c4d6c4b7..c06afd48 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/error_details.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/error_details.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,6 +24,57 @@ option java_outer_classname = "ErrorDetailsProto"; option java_package = "com.google.rpc"; option objc_class_prefix = "RPC"; +// Describes the cause of the error with structured details. +// +// Example of an error when contacting the "pubsub.googleapis.com" API when it +// is not enabled: +// +// { "reason": "API_DISABLED" +// "domain": "googleapis.com" +// "metadata": { +// "resource": "projects/123", +// "service": "pubsub.googleapis.com" +// } +// } +// +// This response indicates that the pubsub.googleapis.com API is not enabled. +// +// Example of an error that is returned when attempting to create a Spanner +// instance in a region that is out of stock: +// +// { "reason": "STOCKOUT" +// "domain": "spanner.googleapis.com", +// "metadata": { +// "availableRegions": "us-central1,us-east2" +// } +// } +message ErrorInfo { + // The reason of the error. This is a constant value that identifies the + // proximate cause of the error. Error reasons are unique within a particular + // domain of errors. This should be at most 63 characters and match a + // regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents + // UPPER_SNAKE_CASE. + string reason = 1; + + // The logical grouping to which the "reason" belongs. The error domain + // is typically the registered service name of the tool or product that + // generates the error. Example: "pubsub.googleapis.com". If the error is + // generated by some common infrastructure, the error domain must be a + // globally unique value that identifies the infrastructure. For Google API + // infrastructure, the error domain is "googleapis.com". + string domain = 2; + + // Additional structured details about this error. + // + // Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in + // length. When identifying the current value of an exceeded limit, the units + // should be contained in the key, not the value. For example, rather than + // {"instanceLimit": "100/request"}, should be returned as, + // {"instanceLimitPerRequest": "100"}, if the client exceeds the number of + // instances that can be created in a single (batch) request. + map metadata = 3; +} + // Describes when the clients can retry a failed request. Clients could ignore // the recommendation here or retry when this information is missing from error // responses. @@ -85,56 +136,6 @@ message QuotaFailure { repeated Violation violations = 1; } -// Describes the cause of the error with structured details. -// -// Example of an error when contacting the "pubsub.googleapis.com" API when it -// is not enabled: -// -// { "reason": "API_DISABLED" -// "domain": "googleapis.com" -// "metadata": { -// "resource": "projects/123", -// "service": "pubsub.googleapis.com" -// } -// } -// -// This response indicates that the pubsub.googleapis.com API is not enabled. -// -// Example of an error that is returned when attempting to create a Spanner -// instance in a region that is out of stock: -// -// { "reason": "STOCKOUT" -// "domain": "spanner.googleapis.com", -// "metadata": { -// "availableRegions": "us-central1,us-east2" -// } -// } -message ErrorInfo { - // The reason of the error. This is a constant value that identifies the - // proximate cause of the error. Error reasons are unique within a particular - // domain of errors. This should be at most 63 characters and match - // /[A-Z0-9_]+/. - string reason = 1; - - // The logical grouping to which the "reason" belongs. The error domain - // is typically the registered service name of the tool or product that - // generates the error. Example: "pubsub.googleapis.com". If the error is - // generated by some common infrastructure, the error domain must be a - // globally unique value that identifies the infrastructure. For Google API - // infrastructure, the error domain is "googleapis.com". - string domain = 2; - - // Additional structured details about this error. - // - // Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in - // length. When identifying the current value of an exceeded limit, the units - // should be contained in the key, not the value. For example, rather than - // {"instanceLimit": "100/request"}, should be returned as, - // {"instanceLimitPerRequest": "100"}, if the client exceeds the number of - // instances that can be created in a single (batch) request. - map metadata = 3; -} - // Describes what preconditions have failed. // // For example, if an RPC failed because it required the Terms of Service to be @@ -169,9 +170,43 @@ message PreconditionFailure { message BadRequest { // A message type used to describe a single bad request field. message FieldViolation { - // A path leading to a field in the request body. The value will be a + // A path that leads to a field in the request body. The value will be a // sequence of dot-separated identifiers that identify a protocol buffer - // field. E.g., "field_violations.field" would identify this field. + // field. + // + // Consider the following: + // + // message CreateContactRequest { + // message EmailAddress { + // enum Type { + // TYPE_UNSPECIFIED = 0; + // HOME = 1; + // WORK = 2; + // } + // + // optional string email = 1; + // repeated EmailType type = 2; + // } + // + // string full_name = 1; + // repeated EmailAddress email_addresses = 2; + // } + // + // In this example, in proto `field` could take one of the following values: + // + // * `full_name` for a violation in the `full_name` value + // * `email_addresses[1].email` for a violation in the `email` field of the + // first `email_addresses` message + // * `email_addresses[3].type[2]` for a violation in the second `type` + // value in the third `email_addresses` message. + // + // In JSON, the same values are represented as: + // + // * `fullName` for a violation in the `fullName` value + // * `emailAddresses[1].email` for a violation in the `email` field of the + // first `emailAddresses` message + // * `emailAddresses[3].type[2]` for a violation in the second `type` + // value in the third `emailAddresses` message. string field = 1; // A description of why the request element is bad. @@ -203,7 +238,8 @@ message ResourceInfo { // The name of the resource being accessed. For example, a shared calendar // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current - // error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + // error is + // [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. string resource_name = 2; // The owner of the resource (optional). @@ -240,7 +276,7 @@ message Help { // which can be attached to an RPC error. message LocalizedMessage { // The locale used following the specification defined at - // http://www.rfc-editor.org/rfc/bcp/bcp47.txt. + // https://www.rfc-editor.org/rfc/bcp/bcp47.txt. // Examples are: "en-US", "fr-CH", "es-MX" string locale = 1; diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/http.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/http.proto new file mode 100644 index 00000000..11688ea4 --- /dev/null +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/http.proto @@ -0,0 +1,64 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.rpc; + +option go_package = "google.golang.org/genproto/googleapis/rpc/http;http"; +option java_multiple_files = true; +option java_outer_classname = "HttpProto"; +option java_package = "com.google.rpc"; +option objc_class_prefix = "RPC"; + +// Represents an HTTP request. +message HttpRequest { + // The HTTP request method. + string method = 1; + + // The HTTP request URI. + string uri = 2; + + // The HTTP request headers. The ordering of the headers is significant. + // Multiple headers with the same key may present for the request. + repeated HttpHeader headers = 3; + + // The HTTP request body. If the body is not expected, it should be empty. + bytes body = 4; +} + +// Represents an HTTP response. +message HttpResponse { + // The HTTP status code, such as 200 or 404. + int32 status = 1; + + // The HTTP reason phrase, such as "OK" or "Not Found". + string reason = 2; + + // The HTTP response headers. The ordering of the headers is significant. + // Multiple headers with the same key may present for the response. + repeated HttpHeader headers = 3; + + // The HTTP response body. If the body is not expected, it should be empty. + bytes body = 4; +} + +// Represents an HTTP header. +message HttpHeader { + // The HTTP header key. It is case insensitive. + string key = 1; + + // The HTTP header value. + string value = 2; +} diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/status.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/status.proto index 3b1f7a93..90b70ddf 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/status.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/rpc/status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,12 +33,14 @@ option objc_class_prefix = "RPC"; // You can find out more about this error model and how to work with it in the // [API Design Guide](https://cloud.google.com/apis/design/errors). message Status { - // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. + // The status code, which should be an enum value of + // [google.rpc.Code][google.rpc.Code]. int32 code = 1; // A developer-facing error message, which should be in English. Any // user-facing error message should be localized and sent in the - // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. + // [google.rpc.Status.details][google.rpc.Status.details] field, or localized + // by the client. string message = 2; // A list of messages that carry the error details. There is a common set of diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/BUILD.bazel b/pkgs/appengine/lib/src/grpc_api/protos/google/type/BUILD.bazel index 418fc0f5..4374eb98 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/BUILD.bazel +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/BUILD.bazel @@ -103,7 +103,11 @@ proto_library( ############################################################################## # Java ############################################################################## -load("@com_google_googleapis_imports//:imports.bzl", "java_proto_library") +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_proto_library", +) java_proto_library( name = "type_java_proto", @@ -118,12 +122,41 @@ java_proto_library( ":fraction_proto", ":interval_proto", ":latlng_proto", + ":localized_text_proto", + ":money_proto", + ":month_proto", + ":phone_number_proto", + ":postal_address_proto", + ":quaternion_proto", + ":timeofday_proto", + ], +) + +# Please DO-NOT-REMOVE this section. +# This is required to generate java files for these protos. +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-type-java", + transport = "grpc+rest", + deps = [ + ":calendar_period_proto", + ":color_proto", + ":date_proto", + ":datetime_proto", + ":dayofweek_proto", + ":decimal_proto", + ":expr_proto", + ":fraction_proto", + ":interval_proto", + ":latlng_proto", + ":localized_text_proto", ":money_proto", ":month_proto", ":phone_number_proto", ":postal_address_proto", ":quaternion_proto", ":timeofday_proto", + ":type_java_proto", ], ) @@ -415,6 +448,46 @@ py_proto_library( deps = [":timeofday_proto"], ) +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_proto_library", +) + +php_proto_library( + name = "type_php_proto", + deps = [ + ":calendar_period_proto", + ":color_proto", + ":date_proto", + ":datetime_proto", + ":dayofweek_proto", + ":decimal_proto", + ":expr_proto", + ":fraction_proto", + ":interval_proto", + ":latlng_proto", + ":localized_text_proto", + ":money_proto", + ":month_proto", + ":phone_number_proto", + ":postal_address_proto", + ":quaternion_proto", + ":timeofday_proto", + ], +) + +# Please DO-NOT-REMOVE this section. +# This is required to generate PHP files for these protos. +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-type-php", + deps = [":type_php_proto"], +) + ############################################################################## # C# ############################################################################## diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/README.md b/pkgs/appengine/lib/src/grpc_api/protos/google/type/README.md index 6caf02cf..adf1563a 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/README.md +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/README.md @@ -1,16 +1,7 @@ -# Google Common Types +## Google Common Types This package contains definitions of common types for Google APIs. All types defined in this package are suitable for different APIs to exchange data, and will never break binary compatibility. They should have design quality comparable to major programming languages like Java and C#. - -NOTE: Some common types are defined in the package `google.protobuf` -as they are directly supported by Protocol Buffers compiler and -runtime. Those types are called Well-Known Types. - -## Java Utilities - -A set of Java utilities for the Common Types are provided in the -`//java/com/google/type/util/` package. \ No newline at end of file diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/calendar_period.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/calendar_period.proto index 82f5690b..25a8f644 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/calendar_period.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/calendar_period.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/color.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/color.proto index 5dc85a6a..3e57c1fb 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/color.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/color.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/date.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/date.proto index e4e730e6..6370cd86 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/date.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/date.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/datetime.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/datetime.proto index cfed85d7..a363a41e 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/datetime.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/datetime.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/dayofweek.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/dayofweek.proto index 4c80c62e..e16c1946 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/dayofweek.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/dayofweek.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/decimal.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/decimal.proto index beb18a5d..293d0827 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/decimal.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/decimal.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/expr.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/expr.proto index af0778cf..544e6687 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/expr.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/expr.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/fraction.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/fraction.proto index 6c5ae6e2..06f07232 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/fraction.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/fraction.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/interval.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/interval.proto index 9702324c..fcf94c86 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/interval.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/interval.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/latlng.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/latlng.proto index 9231456e..daeba48b 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/latlng.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/latlng.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/localized_text.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/localized_text.proto index 5c6922b8..82d083c4 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/localized_text.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/localized_text.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/money.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/money.proto index 98d6494e..c6109433 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/money.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/money.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/month.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/month.proto index 99e7551b..19982cb5 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/month.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/month.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/phone_number.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/phone_number.proto index 7bbb7d87..370d1623 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/phone_number.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/phone_number.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/postal_address.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/postal_address.proto index c57c7c31..7023a9b3 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/postal_address.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/postal_address.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/quaternion.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/quaternion.proto index dfb822de..416de30c 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/quaternion.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/quaternion.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/lib/src/grpc_api/protos/google/type/timeofday.proto b/pkgs/appengine/lib/src/grpc_api/protos/google/type/timeofday.proto index 5cb48aa9..3735745a 100644 --- a/pkgs/appengine/lib/src/grpc_api/protos/google/type/timeofday.proto +++ b/pkgs/appengine/lib/src/grpc_api/protos/google/type/timeofday.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkgs/appengine/pubspec.yaml b/pkgs/appengine/pubspec.yaml index 67a6991f..02ebd0b0 100644 --- a/pkgs/appengine/pubspec.yaml +++ b/pkgs/appengine/pubspec.yaml @@ -1,5 +1,5 @@ name: appengine -version: 0.13.7 +version: 0.13.8 description: > Support for using Dart as a custom runtime on Google App Engine Flexible Environment @@ -20,9 +20,10 @@ dependencies: http: '>=0.13.3 <2.0.0' logging: ^1.0.1 path: ^1.8.0 - protobuf: ^2.0.0 + protobuf: ^3.1.0 stack_trace: ^1.10.0 dev_dependencies: pedantic: ^1.11.0 + protoc_plugin: ^21.1.2 test: ^1.17.5 diff --git a/pkgs/appengine/test/integration/db/metamodel_tests.dart b/pkgs/appengine/test/integration/db/metamodel_tests.dart index d36ca3e3..d9a336cf 100644 --- a/pkgs/appengine/test/integration/db/metamodel_tests.dart +++ b/pkgs/appengine/test/integration/db/metamodel_tests.dart @@ -64,7 +64,7 @@ runTests(datastore, db.DatastoreDB store, String uniquePostfix) { try { for (final namespace in [null, 'FooNamespace', 'BarNamespace']) { // TODO: Partition.newPartition should be updated to accept null. - final partition = store.newPartition(namespace ?? ''); + final partition = db.Partition(namespace); final kindQuery = store.query(partition: partition); final List kinds = await kindQuery.run().cast().toList(); diff --git a/pkgs/appengine/test/integration/grpc_datastore_test.dart b/pkgs/appengine/test/integration/grpc_datastore_test.dart index 575d38dc..0e830b51 100644 --- a/pkgs/appengine/test/integration/grpc_datastore_test.dart +++ b/pkgs/appengine/test/integration/grpc_datastore_test.dart @@ -8,6 +8,8 @@ import 'package:appengine/src/grpc_api_impl/datastore_impl.dart'; import 'package:gcloud/db.dart' as db; import 'package:grpc/grpc.dart' as grpc; import 'package:test/test.dart' as test; +import 'db/db_tests.dart' as db_tests; +import 'db/metamodel_tests.dart' as metamodel_tests; import 'common_e2e.dart' show onBot, withAuthenticator; import 'raw_datastore_test_impl.dart' as datastore_tests; @@ -16,10 +18,9 @@ main() async { final endpoint = 'datastore.googleapis.com'; final String nsPrefix = Platform.operatingSystem; - - test.group('grpc datastore', () { - withAuthenticator(OAuth2Scopes, - (String project, grpc.HttpBasedAuthenticator authenticator) async { + await withAuthenticator(OAuth2Scopes, + (String project, grpc.HttpBasedAuthenticator authenticator) async { + test.group('grpc datastore', () { final clientChannel = grpc.ClientChannel(endpoint); final datastore = GrpcDatastoreImpl(clientChannel, authenticator, project); @@ -36,12 +37,12 @@ main() async { datastore, '${nsPrefix}${DateTime.now().millisecondsSinceEpoch}'); // Run high-level db tests. - /* db_tests.runTests( - dbService, '${nsPrefix}${DateTime.now().millisecondsSinceEpoch}'); - - // Run metamodel tests. - metamodel_tests.runTests(datastore, dbService, - '${nsPrefix}${DateTime.now().millisecondsSinceEpoch}');*/ - }); - }, skip: onBot()); + db_tests.runTests( + dbService, '${nsPrefix}${DateTime.now().millisecondsSinceEpoch}'); + + // Run metamodel tests. + metamodel_tests.runTests(datastore, dbService, + '${nsPrefix}${DateTime.now().millisecondsSinceEpoch}'); + }, skip: onBot()); + }); } diff --git a/pkgs/appengine/test/integration/raw_datastore_test_impl.dart b/pkgs/appengine/test/integration/raw_datastore_test_impl.dart index 6ed00342..317f1825 100644 --- a/pkgs/appengine/test/integration/raw_datastore_test_impl.dart +++ b/pkgs/appengine/test/integration/raw_datastore_test_impl.dart @@ -270,10 +270,10 @@ runTests(Datastore datastore, String namespace) { skip: 'With Firestore in Datastore mode, transactions are no longer ' 'limited to 25 entity groups'); - test('negative_insert_20000_entities', () { + test('insert_20000_entities', () async { // Maybe it should not be a [DataStoreError] here? - expect(datastore.commit(inserts: named20000), - throwsA(isDatastoreApplicationError)); + final result = await datastore.commit(inserts: named20000); + expect(result.autoIdInsertKeys.length, 0); }); // TODO: test invalid inserts (like entities without key, ...) diff --git a/pkgs/appengine/lib/src/grpc_api/fetch_protos_and_generate_dart.sh b/pkgs/appengine/tool/fetch_protos_and_generate_dart.sh similarity index 51% rename from pkgs/appengine/lib/src/grpc_api/fetch_protos_and_generate_dart.sh rename to pkgs/appengine/tool/fetch_protos_and_generate_dart.sh index 840f1f39..8d6b9da2 100755 --- a/pkgs/appengine/lib/src/grpc_api/fetch_protos_and_generate_dart.sh +++ b/pkgs/appengine/tool/fetch_protos_and_generate_dart.sh @@ -1,18 +1,12 @@ #!/bin/bash # Unlike $0, $BASH_SOURCE points to the absolute path of this file. -DIR="$(dirname $BASH_SOURCE)" +ROOT="$(dirname $(dirname $BASH_SOURCE))" +DIR="$ROOT/lib/src/grpc_api" -export PROTOBUF_DIR=/tmp/protobuf-dir -export GOOGLEAPIS_DIR=/tmp/googleapis-dir - -# Do a quick validation that we have the protoc plugin in PATH. -PROTOC_PLUGIN=$(which protoc-gen-dart) -if [ ! -f "$PROTOC_PLUGIN" ]; then - echo -en "Could not find Dart plugin for protoc! \nMake sure \$PATH includes " - echo "the protoc compiler plugin for Dart (named \"protoc-gen-dart\")!" - exit 1 -fi +export PROTOBUF_DIR=tmp/protobuf-dir +export GOOGLEAPIS_DIR=tmp/googleapis-dir +mkdir -p $ROOT/tmp function run { echo "Running $@" @@ -25,11 +19,19 @@ function run { fi } -# Clone the two repositories to /tmp -run rm -rf $PROTOBUF_DIR -run git clone https://github.com/google/protobuf.git $PROTOBUF_DIR -run rm -rf $GOOGLEAPIS_DIR -run git clone https://github.com/googleapis/googleapis.git $GOOGLEAPIS_DIR +# Clone the two repositories to tmp/ if they don't exist +[ ! -d "$PROTOBUF_DIR" ] && run git clone https://github.com/google/protobuf.git $PROTOBUF_DIR +[ ! -d "$GOOGLEAPIS_DIR" ] && run git clone https://github.com/googleapis/googleapis.git $GOOGLEAPIS_DIR + +# Bring both repositories up to date +for repo in "$GOOGLEAPIS_DIR" "$PROTOBUF_DIR"; do + FIRST_REMOTE=$(git -C "$repo" remote | grep origin || git remote | head -n 1) + # https://stackoverflow.com/a/62397081 + DEFAULT_BRANCH=$(git -C "$repo" rev-parse --abbrev-ref $FIRST_REMOTE/HEAD) + run git -C "$repo" fetch $FIRST_REMOTE + run git -C "$repo" checkout $DEFAULT_BRANCH + run git -C "$repo" reset --hard +done # Get rid of all old proto files & fetch new ones from protobuf/googleapis # repositories. @@ -46,17 +48,13 @@ run cp -R $GOOGLEAPIS_DIR/google/rpc $DIR/protos/google run cp -R $GOOGLEAPIS_DIR/google/type $DIR/protos/google run cp -R $GOOGLEAPIS_DIR/google/longrunning $DIR/protos/google - # Generate the dart code. run rm -rf $DIR/dart run mkdir -p $DIR/dart -for file in $(find $DIR/protos -name '*proto' | grep -v unittest); do - echo -e "\nCompiling $file" - run protoc "-I$DIR/protos" "--dart_out=grpc:$DIR/dart" "$file" - echo -done -run rm -rf $PROTOBUF_DIR -run rm -rf $GOOGLEAPIS_DIR +FILES=$(find $DIR/protos -name '*proto' | grep -v unittest | grep -v 'sample_messages_edition\.proto') +PROTOC_PLUGIN=tool/protoc-gen-dart + +run protoc "-I$DIR/protos" "--dart_out=grpc:$DIR/dart" "$FILES" --plugin=$PROTOC_PLUGIN -dartfmt --fix -w $DIR +dart format $DIR diff --git a/pkgs/appengine/tool/protoc-gen-dart b/pkgs/appengine/tool/protoc-gen-dart new file mode 100755 index 00000000..f075d979 --- /dev/null +++ b/pkgs/appengine/tool/protoc-gen-dart @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +dart run protoc_plugin:protoc_plugin $* diff --git a/pkgs/appengine/tool/run_tests.sh b/pkgs/appengine/tool/run_tests.sh deleted file mode 100755 index ea2fcdc3..00000000 --- a/pkgs/appengine/tool/run_tests.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash - -REPO_ROOT=$( cd $(dirname $(dirname "${BASH_SOURCE[0]}" )) && pwd ) - -# Source utility functions -source "$REPO_ROOT/tool/utils.sh" - -# Check that the necessary environment variables are set. -check_env_variable "DART_SDK" - -# You must have gcloud tools installed -# https://cloud.google.com/sdk/gcloud/ -# Running `gcloud info` will display the Installation Root -# e.g. /Users/alice/google-cloud-sdk -# The API server – api_server.py – should be at -# [Installation Root]/platform/google_appengine/api_server.py -check_env_variable "APPENGINE_API_SERVER" - -export PATH="$PATH:$DART_SDK/bin" -export RETURN_VALUE=0 - -start_phase "Analyzing" -dart analyze lib -RETURN_VALUE=$(expr $RETURN_VALUE + $?) - -dart analyze test -RETURN_VALUE=$(expr $RETURN_VALUE + $?) - -start_phase "Starting API server" -python "$APPENGINE_API_SERVER" -A 'dev~test-application' \ - --api_port 4444 & -API_SERVER_PID=$! -sleep 3 - - -start_phase "Testing" -dart pub run test -RETURN_VALUE=$(expr $RETURN_VALUE + $?) - -start_phase "Killing API server" -kill $API_SERVER_PID &> /dev/null - - -# Wait until background jobs are done. -wait -echo -echo - -test $RETURN_VALUE -ne 0 && exit 1 -exit 0